rubic-sdk-next
Version:
Simplify dApp creation
18 lines (17 loc) • 920 B
TypeScript
import { PriceToken, PriceTokenAmount } from '../../../../../common/tokens';
import { BlockchainName } from '../../../../../core/blockchain/models/blockchain-name';
import { OnChainSubtype } from '../common/models/on-chain-subtype';
import { SymbiosisTradeType } from './models/symbiosis-trade-data';
export declare class SymbiosisUtils {
static getChainId(token: PriceToken): number;
static getChainId(blockchain: BlockchainName): number;
static getRevertableAddress(receiverAddress: string | undefined, walletAddress: string, toBlockchain: BlockchainName): string;
static getSubtype(tradeType: {
in?: SymbiosisTradeType;
out?: SymbiosisTradeType;
}, toBlockchain: BlockchainName): OnChainSubtype;
static getReceiver(from: PriceTokenAmount, to: PriceTokenAmount, wallet: string, receiver?: string): Promise<{
receiverAddress: string;
toAddress: string;
}>;
}