@overgold/light-client
Version:
## Установка переменных
75 lines (74 loc) • 1.68 kB
TypeScript
import { ISession } from 'js-client';
export interface ServerResponse<D = any, E = any> {
data: D;
error: E;
}
export interface ErrorResponse {
status: number;
statusText: string;
}
export interface BalanceAll {
ovg: {
amount: number;
};
stovg: {
amount: number;
stakeAmount: number;
sellAmount: number;
};
}
export interface MakeTransactionSendProps {
mnemonic: string;
toAddress: string;
amount: string;
denom?: string;
memo?: string;
isSimulate?: boolean;
}
export interface MakeTransactionFromUserProps {
mnemonic: string;
amount: string;
memo?: string;
isSimulate?: boolean;
}
export interface GasTransactionSendProps {
session: ISession;
toAddress: string;
fromAddress: string;
amount: string;
denom: string;
memo?: string;
}
export interface GasTransactionFromUser {
session: ISession;
address: string;
amount: string;
memo?: string;
}
export declare type ClaimRewardRequest = {
session: ISession;
accountAddress: string;
denom?: string;
amount?: string;
memo?: string;
};
export interface BalanceResponse {
price: string;
date: string;
currency: string;
}
export declare type Price = (currency?: string) => Promise<ServerResponse<BalanceResponse | null, ErrorResponse | null>>;
export interface SetTokensOrderStatusDoneProps {
hash: string;
amount: number;
headerAKey: string;
}
export interface ConfirmStakeToCardioProps {
hash: string;
email: string;
address: string;
}
export interface GetAccountBallanceInCryptoCurrencyProps {
address: string;
currency: string;
}