Properties
Optional _contract
_contract?: ERC20
address
address: string
approve
approve: (spender: string, amount: number | BigNumber) => Promise<ContractTransaction> = ...
Type declaration
- (spender: string, amount: number | BigNumber): Promise<ContractTransaction>
Parameters
spender: string
amount: number | BigNumber
Returns Promise<ContractTransaction>
connect
connect: (provider: Provider | Signer) => void = ...
Type declaration
- (provider: Provider | Signer): void
Parameters
provider: Provider | Signer
Returns void
decimals
decimals: number
fetchAllowance
fetchAllowance: (spender: string, account: string) => Promise<BigNumber> = ...
Type declaration
- (spender: string, account: string): Promise<BigNumber>
Parameters
spender: string
account: string
Returns Promise<BigNumber>
the allowance the account has given to the spender address to spend this token
fetchBalance
fetchBalance: (account: string) => Promise<BigNumber> = ...
Type declaration
- (account: string): Promise<BigNumber>
Parameters
Returns Promise<BigNumber>
The accounts balance formatted in a BigNumber
Private init
init
: (tokenInfo
: IToken) => Promise<void> = ...Type declaration
- (tokenInfo: IToken): Promise<void>
Parameters
Returns Promise<void>
multicallProvider
multicallProvider: undefined | Signer | MulticallProvider
name
name: string
provider
provider: undefined | Provider | Signer
symbol
symbol: string
Static Create
Type declaration
Parameters
Returns Promise<Token>
a Promise containing an initialised Token class ready to be used
Static CreateDefault
Create
Default
: () => Token = ...Type declaration
default constructed token
Token class for interacting with ERC20 tokens The constructor is private so must be instantiated with
Token.Create