UNPKG

barterjs-sdk

Version:
16 lines (15 loc) 973 B
import { BarterProviderType } from '../types/paramTypes'; import { BarterTransactionReceipt } from '../types/responseTypes'; import { BaseCurrency } from '../entities'; export declare class TokenRegister { private readonly contract; private readonly provider; constructor(contractAddress: string, signerOrProvider: BarterProviderType); registerToken(sourceChain: string, sourceMapToken: string, mapToken: string): Promise<BarterTransactionReceipt>; getToChainToken(tokenAddress: string, targetChain: string): Promise<string>; getToChainAmount(token: BaseCurrency, amount: string, toChainId: string): Promise<string>; getRelayChainToken(fromChain: string, fromToken: BaseCurrency): Promise<string>; getRelayChainAmount(token: BaseCurrency, fromChain: string, amount: string): Promise<string>; getVaultToken(tokenAddress: string): Promise<string>; getTokenFee(tokenAddress: string, amount: string, toChain: string): Promise<string>; }