aave-protocol-v2/types/IKyberNetworkProxyInterface.d.ts

187 lines
4.3 KiB
TypeScript
Raw Normal View History

/* 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 ".";
interface IKyberNetworkProxyInterfaceInterface extends Interface {
functions: {
2020-08-07 17:29:13 +00:00
enabled: TypedFunctionDescription<{ encode([]: []): string }>;
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-08-07 17:29:13 +00:00
maxGasPrice: TypedFunctionDescription<{ encode([]: []): string }>;
tradeWithHint: TypedFunctionDescription<{
encode([
src,
srcAmount,
dest,
destAddress,
maxDestAmount,
minConversionRate,
walletId,
2020-08-07 17:29:13 +00:00
hint
]: [
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;
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;
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>;
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>;
};
}