2020-07-05 21:44:19 +00:00
|
|
|
/* Generated by ts-generator ver. 0.0.8 */
|
|
|
|
/* tslint:disable */
|
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
|
|
|
|
import { Listener, Provider } from "ethers/providers";
|
|
|
|
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
|
|
|
|
import {
|
|
|
|
TransactionOverrides,
|
|
|
|
TypedEventDescription,
|
|
|
|
TypedFunctionDescription
|
|
|
|
} from ".";
|
2020-07-05 21:44:19 +00:00
|
|
|
|
|
|
|
interface IKyberNetworkProxyInterfaceInterface extends Interface {
|
|
|
|
functions: {
|
2020-08-07 17:29:13 +00:00
|
|
|
enabled: TypedFunctionDescription<{ encode([]: []): string }>;
|
2020-07-05 21:44:19 +00:00
|
|
|
|
|
|
|
getExpectedRate: TypedFunctionDescription<{
|
|
|
|
encode([src, dest, srcQty]: [string, string, BigNumberish]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
getUserCapInTokenWei: TypedFunctionDescription<{
|
|
|
|
encode([user, token]: [string, string]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
getUserCapInWei: TypedFunctionDescription<{
|
|
|
|
encode([user]: [string]): string;
|
|
|
|
}>;
|
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
info: TypedFunctionDescription<{ encode([id]: [Arrayish]): string }>;
|
2020-07-05 21:44:19 +00:00
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
maxGasPrice: TypedFunctionDescription<{ encode([]: []): string }>;
|
2020-07-05 21:44:19 +00:00
|
|
|
|
|
|
|
tradeWithHint: TypedFunctionDescription<{
|
|
|
|
encode([
|
|
|
|
src,
|
|
|
|
srcAmount,
|
|
|
|
dest,
|
|
|
|
destAddress,
|
|
|
|
maxDestAmount,
|
|
|
|
minConversionRate,
|
|
|
|
walletId,
|
2020-08-07 17:29:13 +00:00
|
|
|
hint
|
2020-07-05 21:44:19 +00:00
|
|
|
]: [
|
|
|
|
string,
|
|
|
|
BigNumberish,
|
|
|
|
string,
|
|
|
|
string,
|
|
|
|
BigNumberish,
|
|
|
|
BigNumberish,
|
|
|
|
string,
|
|
|
|
Arrayish
|
|
|
|
]): string;
|
|
|
|
}>;
|
|
|
|
};
|
|
|
|
|
|
|
|
events: {};
|
|
|
|
}
|
|
|
|
|
|
|
|
export class IKyberNetworkProxyInterface extends Contract {
|
2020-08-07 17:29:13 +00:00
|
|
|
connect(
|
|
|
|
signerOrProvider: Signer | Provider | string
|
|
|
|
): IKyberNetworkProxyInterface;
|
2020-07-05 21:44:19 +00:00
|
|
|
attach(addressOrName: string): IKyberNetworkProxyInterface;
|
|
|
|
deployed(): Promise<IKyberNetworkProxyInterface>;
|
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
on(
|
|
|
|
event: EventFilter | string,
|
|
|
|
listener: Listener
|
|
|
|
): IKyberNetworkProxyInterface;
|
|
|
|
once(
|
|
|
|
event: EventFilter | string,
|
|
|
|
listener: Listener
|
|
|
|
): IKyberNetworkProxyInterface;
|
|
|
|
addListener(
|
|
|
|
eventName: EventFilter | string,
|
|
|
|
listener: Listener
|
|
|
|
): IKyberNetworkProxyInterface;
|
|
|
|
removeAllListeners(
|
|
|
|
eventName: EventFilter | string
|
|
|
|
): IKyberNetworkProxyInterface;
|
|
|
|
removeListener(
|
|
|
|
eventName: any,
|
|
|
|
listener: Listener
|
|
|
|
): IKyberNetworkProxyInterface;
|
2020-07-05 21:44:19 +00:00
|
|
|
|
|
|
|
interface: IKyberNetworkProxyInterfaceInterface;
|
|
|
|
|
|
|
|
functions: {
|
|
|
|
enabled(): Promise<boolean>;
|
|
|
|
|
|
|
|
getExpectedRate(
|
|
|
|
src: string,
|
|
|
|
dest: string,
|
|
|
|
srcQty: BigNumberish
|
|
|
|
): Promise<{
|
|
|
|
expectedRate: BigNumber;
|
|
|
|
slippageRate: BigNumber;
|
|
|
|
0: BigNumber;
|
|
|
|
1: BigNumber;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
getUserCapInTokenWei(user: string, token: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
getUserCapInWei(user: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
info(id: Arrayish): Promise<BigNumber>;
|
|
|
|
|
|
|
|
maxGasPrice(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
tradeWithHint(
|
|
|
|
src: string,
|
|
|
|
srcAmount: BigNumberish,
|
|
|
|
dest: string,
|
|
|
|
destAddress: string,
|
|
|
|
maxDestAmount: BigNumberish,
|
|
|
|
minConversionRate: BigNumberish,
|
|
|
|
walletId: string,
|
|
|
|
hint: Arrayish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
};
|
|
|
|
|
|
|
|
enabled(): Promise<boolean>;
|
|
|
|
|
|
|
|
getExpectedRate(
|
|
|
|
src: string,
|
|
|
|
dest: string,
|
|
|
|
srcQty: BigNumberish
|
|
|
|
): Promise<{
|
|
|
|
expectedRate: BigNumber;
|
|
|
|
slippageRate: BigNumber;
|
|
|
|
0: BigNumber;
|
|
|
|
1: BigNumber;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
getUserCapInTokenWei(user: string, token: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
getUserCapInWei(user: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
info(id: Arrayish): Promise<BigNumber>;
|
|
|
|
|
|
|
|
maxGasPrice(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
tradeWithHint(
|
|
|
|
src: string,
|
|
|
|
srcAmount: BigNumberish,
|
|
|
|
dest: string,
|
|
|
|
destAddress: string,
|
|
|
|
maxDestAmount: BigNumberish,
|
|
|
|
minConversionRate: BigNumberish,
|
|
|
|
walletId: string,
|
|
|
|
hint: Arrayish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
filters: {};
|
|
|
|
|
|
|
|
estimate: {
|
|
|
|
enabled(): Promise<BigNumber>;
|
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
getExpectedRate(
|
|
|
|
src: string,
|
|
|
|
dest: string,
|
|
|
|
srcQty: BigNumberish
|
|
|
|
): Promise<BigNumber>;
|
2020-07-05 21:44:19 +00:00
|
|
|
|
|
|
|
getUserCapInTokenWei(user: string, token: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
getUserCapInWei(user: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
info(id: Arrayish): Promise<BigNumber>;
|
|
|
|
|
|
|
|
maxGasPrice(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
tradeWithHint(
|
|
|
|
src: string,
|
|
|
|
srcAmount: BigNumberish,
|
|
|
|
dest: string,
|
|
|
|
destAddress: string,
|
|
|
|
maxDestAmount: BigNumberish,
|
|
|
|
minConversionRate: BigNumberish,
|
|
|
|
walletId: string,
|
|
|
|
hint: Arrayish
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
};
|
|
|
|
}
|