Closed Shaptic closed 10 months ago
This adds four new aliases for Operation to make common versions of Operation.invokeHostFunction easier to create.
Operation
Operation.invokeHostFunction
/** Returns an operation that invokes a contract function. */ function invokeContractFunction({ contract: string, function: string, args: xdr.ScVal[], auth?: xdr.SorobanAuthorizationEntry[], source?: string }): xdr.Operation; /** Returns an operation that creates a custom WASM contract. */ function createCustomContract({ address: Address, wasmHash: Uint8Array | Buffer salt?: Uint8Array | Buffer, auth?: xdr.SorobanAuthorizationEntry[], source?: string }): xdr.Operation; /** Returns an operation that wraps a Stellar asset into a token contract. */ function createStellarAssetContract({ asset: Asset | string, auth?: xdr.SorobanAuthorizationEntry[], source?: string }): xdr.Operation; /** Returns an operation that uploads WASM for a contract. */ function uploadContractWasm({ wasm: Uint8Array | Buffer, auth?: xdr.SorobanAuthorizationEntry, source?: string }): xdr.Operation;
Closes #700 and #697.
Size Change: +30 kB (+1%)
Total Size: 3.19 MB
dist/stellar-base.js
dist/stellar-base.min.js
compressed-size-action
What
This adds four new aliases for
Operation
to make common versions ofOperation.invokeHostFunction
easier to create.Why
Closes #700 and #697.