@xchainjs/xchain-thorchain-amm
Version:
module that exposes estimating & swappping cryptocurrency assets on thorchain
23 lines (22 loc) • 831 B
TypeScript
import { CompatibleAsset } from '@xchainjs/xchain-thorchain-query';
import { Address, Asset, CryptoAmount, TokenAsset } from '@xchainjs/xchain-util';
import { Wallet } from '@xchainjs/xchain-wallet';
import { TxSubmitted } from './types';
export type NonProtocolActionParams = {
wallet: Wallet;
assetAmount: CryptoAmount<Asset | TokenAsset>;
recipient: Address;
memo: string;
};
export type ProtocolActionParams = {
wallet: Wallet;
assetAmount: CryptoAmount<CompatibleAsset>;
memo: string;
};
export type ActionParams = ProtocolActionParams | NonProtocolActionParams;
export declare class ThorchainAction {
static makeAction(actionParams: ActionParams): Promise<TxSubmitted>;
private static makeProtocolAction;
private static makeNonProtocolAction;
private static isNonProtocolParams;
}