Methods
addTokenToWallet
- addTokenToWallet(token: string): Promise<boolean>
Parameters
Returns Promise<boolean>
approveACForAB
- approveACForAB(amount?: BigNumber, scale?: Value): Promise<undefined | IWeb3SendResult>
Parameters
Optional amount: BigNumber
Optional scale: Value
Returns Promise<undefined | IWeb3SendResult>
fetchTxReceipt
- fetchTxReceipt(txHash: string): Promise<null | TransactionReceipt>
Parameters
Returns Promise<null | TransactionReceipt>
getABBalance
- getABBalance(isFormatted?: boolean): Promise<BigNumber>
Parameters
Optional isFormatted: boolean
Returns Promise<BigNumber>
getACAllowance
- getACAllowance(spender?: string): Promise<BigNumber>
Parameters
Returns Promise<BigNumber>
getACBalance
- getACBalance(isFormatted?: boolean): Promise<BigNumber>
Parameters
Optional isFormatted: boolean
Returns Promise<BigNumber>
getACRatio
- getACRatio(isFormatted?: boolean): Promise<BigNumber>
Parameters
Optional isFormatted: boolean
Returns Promise<BigNumber>
lockShares
- lockShares(data: IShareArgs): Promise<IWeb3SendResult>
Parameters
Returns Promise<IWeb3SendResult>
unlockShares
- unlockShares(data: IShareArgs): Promise<IWeb3SendResult>
Parameters
Returns Promise<IWeb3SendResult>
You need to implement this interface if you want to integrate new tokens into Ankr Switch.