UNPKG

@overgold/light-client

Version:

## Установка переменных

139 lines (138 loc) 3.57 kB
import * as Helpers from 'src/data'; declare function MsgSend({ session, toAddress, fromAddress, amount, denom, memo, }: Helpers.GasTransactionSendProps): Promise<{ data: { msg: ReturnType<typeof session.message.MsgSend>; gasPrice: number; }; error: null; } | { data: null; error: { status: number; statusText: string; }; }>; declare function MsgTransferFromUser({ session, address, amount, memo, }: Helpers.GasTransactionFromUser): Promise<{ data: { msg: ReturnType<typeof session.message.MsgTransferFromUser>; gasPrice: number; }; error: null; } | { data: null; error: { status: number; statusText: string; }; }>; declare function MsgSellStake({ session, fromAddress, amount, memo, }: Pick<Helpers.GasTransactionSendProps, 'session' | 'amount' | 'memo' | 'fromAddress'>): Promise<{ data: { msg: ReturnType<typeof session.message.MsgSellStake>; gasPrice: number; }; error: null; } | { data: null; error: { status: number; statusText: string; }; }>; declare function MsgBuyStake({ session, fromAddress, amount, memo, }: Pick<Helpers.GasTransactionSendProps, 'session' | 'amount' | 'memo' | 'fromAddress'>): Promise<{ data: { msg: ReturnType<typeof session.message.MsgBuyStake>; gasPrice: number; }; error: null; } | { data: null; error: { status: number; statusText: string; }; }>; declare function MsgCancelSellStake({ session, fromAddress, amount, denom, memo, }: Pick<Helpers.GasTransactionSendProps, 'session' | 'amount' | 'memo' | 'fromAddress' | 'denom'>): Promise<{ data: { msg: ReturnType<typeof session.message.MsgCancelSellStake>; gasPrice: number; }; error: null; } | { data: null; error: { status: number; statusText: string; }; }>; declare function MsgClaimReward({ session, accountAddress, denom, amount, memo, }: Helpers.ClaimRewardRequest): Promise<{ data: { msg: ReturnType<typeof session.message.MsgClaimReward>; gasPrice: number; }; error: null; } | { data: null; error: { status: number; statusText: string; }; }>; declare const getMessageGasPrice: { MsgSend: typeof MsgSend; MsgTransferFromUser: typeof MsgTransferFromUser; MsgSellStake: typeof MsgSellStake; MsgBuyStake: typeof MsgBuyStake; MsgCancelSellStake: typeof MsgCancelSellStake; MsgClaimReward: typeof MsgClaimReward; }; declare const makeTransactionSendOVG: (payload: Helpers.MakeTransactionSendProps) => Promise<{ data: null; error: { status: number; message: string; }; } | { data: { gas: string | number; hash: null; }; error: null; } | { data: { hash: string; gas: number; }; error: null; } | { data: null; error: { status: number; statusText: string; } | null; }>; declare const makeTransactionFromUser: (payload: Helpers.MakeTransactionFromUserProps) => Promise<{ data: null; error: { status: number; message: string; }; } | { data: { gas: string | number; hash: null; }; error: null; } | { data: { hash: string; gas: number; }; error: null; } | { data: null; error: { status: number; statusText: string; } | null; }>; export { getMessageGasPrice, makeTransactionSendOVG, makeTransactionFromUser };