@celo/wallet-ledger › "tokens"
Module: "tokens"
Index
Interfaces
Functions
Functions
compareLedgerAppVersions
▸ compareLedgerAppVersions(version1
: string, version2
: string): number
Defined in wallet-ledger/src/tokens.ts:33
Parameters:
Name | Type |
---|---|
version1 |
string |
version2 |
string |
Returns: number
-1: version1 < version2, 0: version1 == version2, 1: version1 > version2
Const
list
▸ list(): TokenInfo[]
Defined in wallet-ledger/src/tokens.ts:16
list all the ERC20 tokens informations
Returns: TokenInfo[]
Const
tokenInfoByAddressAndChainId
▸ tokenInfoByAddressAndChainId(contract
: Address, chainId
: number): TokenInfo | null | undefined
Defined in wallet-ledger/src/tokens.ts:8
Retrieve the token information by a given contract address and chainId if any
Parameters:
Name | Type |
---|---|
contract |
Address |
chainId |
number |
Returns: TokenInfo | null | undefined