UNPKG

@mysten/sui

Version:

Sui TypeScript API(Work in Progress)

28 lines (27 loc) 1.02 kB
import { bcs } from '../../bcs/index.js'; import type { SuiClient } from '../../client/index.js'; import type { Signer } from '../../cryptography/keypair.js'; import type { ObjectCacheOptions } from '../ObjectCache.js'; import { Transaction } from '../Transaction.js'; export declare class SerialTransactionExecutor { #private; constructor({ signer, ...options }: Omit<ObjectCacheOptions, 'address'> & { client: SuiClient; signer: Signer; }); applyEffects(effects: typeof bcs.TransactionEffects.$inferType): Promise<[void, void]>; buildTransaction(transaction: Transaction): Promise<Uint8Array>; resetCache(): Promise<[void, void]>; executeTransaction(transaction: Transaction | Uint8Array): Promise<{ digest: string; effects: string; }>; } export declare function getGasCoinFromEffects(effects: typeof bcs.TransactionEffects.$inferType): { ref: { objectId: string; digest: string; version: string; }; owner: string; };