wallets-wrapper
Version:
How to install
68 lines (67 loc) • 1.69 kB
TypeScript
import { EosCoins, EosContractCoins } from './enums';
export interface EosNetwork {
chainId: string;
name: string;
rpcUrls: string[];
}
export interface GetEosAccountInfoProps {
coin: EosCoins | EosContractCoins;
address?: string;
}
export interface GetEosContractData {
network: EosCoins;
json?: boolean;
code?: string;
scope?: string;
table?: string;
lower_bound?: string;
index_position?: number;
limit?: number;
reverse?: boolean;
show_payer?: boolean;
}
export interface EosTransferProps {
coin: EosCoins | EosContractCoins;
from?: string;
addressTo: string;
value: number;
memo?: string;
}
export interface SendTransactionResponseExceptionStack {
context: {
level: string;
file: string;
line: number;
method: string;
hostname: string;
thread_name: string;
timestamp: string;
};
format: string;
data: any;
}
export interface SendTransactionResponseException {
code: number;
name: string;
message: string;
stack: SendTransactionResponseExceptionStack[];
}
export interface SendTransactionResponse {
transaction_id: string;
processed: {
id: string;
block_num: number;
block_time: string;
receipt: {
status: string;
cpu_usage_us: number;
net_usage_words: number;
};
elapsed: number;
except?: SendTransactionResponseException;
net_usage: number;
scheduled: boolean;
action_traces: any[];
account_ram_delta: any;
};
}