@coolwallet/ton
Version:
40 lines (39 loc) • 1.07 kB
TypeScript
import { Transport } from '@coolwallet/core';
export declare type TokenInfo = {
symbol: string;
decimals: string | number;
address: string;
signature?: string;
};
declare type BaseSignTxType<T> = {
transport: Transport;
appPrivateKey: string;
appId: string;
addressIndex: number;
transaction: T;
confirmCB: () => void;
authorizedCB: () => void;
};
export declare type SignTransferTxType = BaseSignTxType<TransferTransaction>;
export declare type SignTransferTokenTxType = BaseSignTxType<TransferTokenTransaction>;
declare type BaseTransaction = {
toAddress: string;
amount: string;
seqno: number;
expireAt?: number;
sendMode?: number;
};
export interface TransferTransaction extends BaseTransaction {
payload?: string;
}
export interface TransferTokenTransaction extends BaseTransaction {
payload: {
jettonAmount: string;
toAddress: string;
forwardAmount: string;
forwardPayload?: string;
responseAddress: string;
};
tokenInfo: TokenInfo;
}
export {};