@factorial-finance/blueprint-node
Version:
blueprint-node-plugin
106 lines (105 loc) • 2.17 kB
TypeScript
export interface AddressInformationParams {
address: string;
}
export interface RunGetMethodParams {
address: string;
method: string;
stack: any[];
}
export interface GetTransactionsParams {
address: string;
limit: number;
lt?: string;
hash?: string;
}
export interface SendBocParams {
boc: string;
}
export interface GetShardsParams {
seqno: number;
}
export interface EstimateFeeParams {
address: string;
body: string;
initCode?: string;
initData?: string;
}
export interface GetBalanceParams {
address: string;
}
export interface GetTransactionParams {
address: string;
lt: string;
hash: string;
}
export interface TryLocateParams {
source: string;
destination: string;
created_lt: string;
}
export interface GetBlockTransactionsParams {
workchain: number;
seqno: number;
shard: string;
}
export interface GetExecuteResultParams {
queryId: string;
}
export interface SetBalanceParams {
address: string;
balance: string;
}
export interface IncreaseBalanceParams {
address: string;
amount: string;
}
export interface SetAccountCodeParams {
address: string;
code: string;
}
export interface SetAccountDataParams {
address: string;
data: string;
}
export interface TonApiResponse<T = any> {
ok: boolean;
result?: T;
error?: {
code: number;
message: string;
};
}
export interface RunGetMethodResponse {
gas_used: number;
exit_code: number;
stack: any[];
}
export interface AddressInformationResponse {
balance: string;
state: string;
data: string;
code: string;
last_transaction_id: TransactionId;
block_id: BlockId;
sync_utime: number;
frozen_hash?: string;
}
export interface AddLibraryParams {
library: string;
}
export interface SetLibrariesParams {
libraries: string;
}
export interface TransactionId {
'@type': 'internal.transactionId';
lt: string;
hash: string;
}
export interface BlockId {
'@type': 'ton.blockIdExt';
workchain: number;
shard: string;
seqno: number;
root_hash?: string;
file_hash?: string;
}