Companion

object Companion

Functions

Link copied to clipboard
fun createContract(wasmId: String, address: Address, constructorArgs: List<SCValXdr>? = null, salt: ByteArray? = null): InvokeHostFunctionOperation

Creates an InvokeHostFunctionOperation for creating/deploying a contract.

Link copied to clipboard
fun createContractFromExternalRef(executableOwner: Address, tag: ByteArray, address: Address, constructorArgs: List<SCValXdr>? = null, salt: ByteArray? = null): InvokeHostFunctionOperation

Creates an operation to instantiate a contract from a CAP-85 external reference (Protocol 28).

fun createContractFromExternalRef(executableOwner: Address, tag: String, address: Address, constructorArgs: List<SCValXdr>? = null, salt: ByteArray? = null): InvokeHostFunctionOperation

Creates an operation to instantiate a contract from a CAP-85 external reference (Protocol 28), with the tag given as text.

Link copied to clipboard
fun invokeContractFunction(contractAddress: String, functionName: String, parameters: List<SCValXdr>): InvokeHostFunctionOperation

Creates an InvokeHostFunctionOperation for invoking a specific function on a contract.

Link copied to clipboard

Creates an InvokeHostFunctionOperation for uploading contract WASM code.