@okxweb3/coin-stellar
Version:
@okxweb3/coin-stellar is a Stellar SDK for building Web3 wallets and applications. It supports Stellar and PI blockchains, enabling private key management, address generation, transaction signing, trustline creation, and asset transfers
23 lines (22 loc) • 767 B
TypeScript
export function buildInvocationTree(root: xdr.SorobanAuthorizedInvocation): InvocationTree;
export function walkInvocationTree(root: xdr.SorobanAuthorizedInvocation, callback: InvocationWalker): void;
export type CreateInvocation = {
type: 'wasm' | 'sac';
token?: string | undefined;
wasm?: {
hash: string;
address: string;
salt: string;
} | undefined;
};
export type ExecuteInvocation = {
source: string;
function: string;
args: any[];
};
export type InvocationTree = {
type: 'execute' | 'create';
args: CreateInvocation | ExecuteInvocation;
invocations: InvocationTree[];
};
export type InvocationWalker = (node: xdr.SorobanAuthorizedInvocation, depth: number, parent?: any) => boolean | null | void;