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

252 lines
6.9 KiB
TypeScript
Raw Normal View History

2020-06-03 10:23:21 +00:00
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
2020-07-13 08:54:08 +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-06-03 10:23:21 +00:00
interface TokenDistributorInterface extends Interface {
functions: {
2020-07-13 08:54:08 +00:00
DISTRIBUTION_BASE: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-03 10:23:21 +00:00
IMPLEMENTATION_REVISION: TypedFunctionDescription<{
encode([]: []): string;
}>;
KYBER_ETH_MOCK_ADDRESS: TypedFunctionDescription<{
encode([]: []): string;
}>;
2020-07-13 08:54:08 +00:00
MAX_UINT: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-03 10:23:21 +00:00
2020-07-13 08:54:08 +00:00
MAX_UINT_MINUS_ONE: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-03 10:23:21 +00:00
2020-07-13 08:54:08 +00:00
MIN_CONVERSION_RATE: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-03 10:23:21 +00:00
approveExchange: TypedFunctionDescription<{
encode([_tokens]: [string[]]): string;
}>;
distribute: TypedFunctionDescription<{
encode([_tokens]: [string[]]): string;
}>;
distributeWithAmounts: TypedFunctionDescription<{
encode([_tokens, _amounts]: [string[], BigNumberish[]]): string;
}>;
distributeWithPercentages: TypedFunctionDescription<{
encode([_tokens, _percentages]: [string[], BigNumberish[]]): string;
}>;
2020-07-13 08:54:08 +00:00
exchangeAdapter: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-03 10:23:21 +00:00
2020-07-13 08:54:08 +00:00
getDistribution: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-03 10:23:21 +00:00
initialize: TypedFunctionDescription<{
2020-07-13 08:54:08 +00:00
encode([_recipientBurn, _tokenToBurn, _exchangeAdapter, _receivers, _percentages, _tokens]: [
string,
string,
string,
string[],
BigNumberish[],
string[]
]): string;
2020-06-03 10:23:21 +00:00
}>;
2020-07-13 08:54:08 +00:00
recipientBurn: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-03 10:23:21 +00:00
2020-07-13 08:54:08 +00:00
tokenToBurn: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-03 10:23:21 +00:00
};
events: {
2020-07-13 08:54:08 +00:00
Burn: TypedEventDescription<{encodeTopics([amount]: [null]): string[]}>;
2020-06-03 10:23:21 +00:00
Distributed: TypedEventDescription<{
2020-07-13 08:54:08 +00:00
encodeTopics([receiver, percentage, amount]: [null, null, null]): string[];
2020-06-03 10:23:21 +00:00
}>;
DistributionUpdated: TypedEventDescription<{
encodeTopics([receivers, percentages]: [null, null]): string[];
}>;
Setup: TypedEventDescription<{
2020-07-13 08:54:08 +00:00
encodeTopics([tokenToBurn, exchangeAdapter, _recipientBurn]: [null, null, null]): string[];
2020-06-03 10:23:21 +00:00
}>;
};
}
export class TokenDistributor extends Contract {
connect(signerOrProvider: Signer | Provider | string): TokenDistributor;
attach(addressOrName: string): TokenDistributor;
deployed(): Promise<TokenDistributor>;
on(event: EventFilter | string, listener: Listener): TokenDistributor;
once(event: EventFilter | string, listener: Listener): TokenDistributor;
2020-07-13 08:54:08 +00:00
addListener(eventName: EventFilter | string, listener: Listener): TokenDistributor;
2020-06-03 10:23:21 +00:00
removeAllListeners(eventName: EventFilter | string): TokenDistributor;
removeListener(eventName: any, listener: Listener): TokenDistributor;
interface: TokenDistributorInterface;
functions: {
DISTRIBUTION_BASE(): Promise<BigNumber>;
IMPLEMENTATION_REVISION(): Promise<BigNumber>;
KYBER_ETH_MOCK_ADDRESS(): Promise<string>;
MAX_UINT(): Promise<BigNumber>;
MAX_UINT_MINUS_ONE(): Promise<BigNumber>;
MIN_CONVERSION_RATE(): Promise<BigNumber>;
approveExchange(
_tokens: string[],
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
2020-07-13 08:54:08 +00:00
distribute(_tokens: string[], overrides?: TransactionOverrides): Promise<ContractTransaction>;
2020-06-03 10:23:21 +00:00
distributeWithAmounts(
_tokens: string[],
_amounts: BigNumberish[],
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
distributeWithPercentages(
_tokens: string[],
_percentages: BigNumberish[],
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
exchangeAdapter(): Promise<string>;
getDistribution(): Promise<{
receivers: string[];
percentages: BigNumber[];
0: string[];
1: BigNumber[];
}>;
initialize(
_recipientBurn: string,
_tokenToBurn: string,
_exchangeAdapter: string,
_receivers: string[],
_percentages: BigNumberish[],
_tokens: string[],
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
recipientBurn(): Promise<string>;
tokenToBurn(): Promise<string>;
};
DISTRIBUTION_BASE(): Promise<BigNumber>;
IMPLEMENTATION_REVISION(): Promise<BigNumber>;
KYBER_ETH_MOCK_ADDRESS(): Promise<string>;
MAX_UINT(): Promise<BigNumber>;
MAX_UINT_MINUS_ONE(): Promise<BigNumber>;
MIN_CONVERSION_RATE(): Promise<BigNumber>;
approveExchange(
_tokens: string[],
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
2020-07-13 08:54:08 +00:00
distribute(_tokens: string[], overrides?: TransactionOverrides): Promise<ContractTransaction>;
2020-06-03 10:23:21 +00:00
distributeWithAmounts(
_tokens: string[],
_amounts: BigNumberish[],
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
distributeWithPercentages(
_tokens: string[],
_percentages: BigNumberish[],
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
exchangeAdapter(): Promise<string>;
getDistribution(): Promise<{
receivers: string[];
percentages: BigNumber[];
0: string[];
1: BigNumber[];
}>;
initialize(
_recipientBurn: string,
_tokenToBurn: string,
_exchangeAdapter: string,
_receivers: string[],
_percentages: BigNumberish[],
_tokens: string[],
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
recipientBurn(): Promise<string>;
tokenToBurn(): Promise<string>;
filters: {
Burn(amount: null): EventFilter;
Distributed(receiver: null, percentage: null, amount: null): EventFilter;
DistributionUpdated(receivers: null, percentages: null): EventFilter;
2020-07-13 08:54:08 +00:00
Setup(tokenToBurn: null, exchangeAdapter: null, _recipientBurn: null): EventFilter;
2020-06-03 10:23:21 +00:00
};
estimate: {
DISTRIBUTION_BASE(): Promise<BigNumber>;
IMPLEMENTATION_REVISION(): Promise<BigNumber>;
KYBER_ETH_MOCK_ADDRESS(): Promise<BigNumber>;
MAX_UINT(): Promise<BigNumber>;
MAX_UINT_MINUS_ONE(): Promise<BigNumber>;
MIN_CONVERSION_RATE(): Promise<BigNumber>;
approveExchange(_tokens: string[]): Promise<BigNumber>;
distribute(_tokens: string[]): Promise<BigNumber>;
2020-07-13 08:54:08 +00:00
distributeWithAmounts(_tokens: string[], _amounts: BigNumberish[]): Promise<BigNumber>;
2020-06-03 10:23:21 +00:00
2020-07-13 08:54:08 +00:00
distributeWithPercentages(_tokens: string[], _percentages: BigNumberish[]): Promise<BigNumber>;
2020-06-03 10:23:21 +00:00
exchangeAdapter(): Promise<BigNumber>;
getDistribution(): Promise<BigNumber>;
initialize(
_recipientBurn: string,
_tokenToBurn: string,
_exchangeAdapter: string,
_receivers: string[],
_percentages: BigNumberish[],
_tokens: string[]
): Promise<BigNumber>;
recipientBurn(): Promise<BigNumber>;
tokenToBurn(): Promise<BigNumber>;
};
}