View Source Soroban.Contract.InstallContractCode (Soroban v0.10.0)

InstallContractCode implementation to install contract from a wasm file.

Link to this section Summary

Link to this section Types

@type account() :: Stellar.TxBuild.Account.t()
@type envelope_xdr() :: String.t()
@type get_response() :: {:ok, Soroban.RPC.GetTransactionResponse.t()}
Link to this type

invoke_host_function()

View Source
@type invoke_host_function() :: Stellar.TxBuild.InvokeHostFunction.t()
@type send_response() :: {:ok, Soroban.RPC.SendTransactionResponse.t()}
@type sequence_number() :: Stellar.TxBuild.SequenceNumber.t()
@type signature() :: Stellar.TxBuild.Signature.t()
@type wasm() :: binary()

Link to this section Functions

@spec get_wasm_id(get_response()) :: binary()
Link to this function

install(wasm, secret_key)

View Source
@spec install(wasm :: wasm(), secret_key :: binary()) :: send_response()
Link to this function

retrieve_unsigned_xdr_to_install(wasm, source_public_key)

View Source
@spec retrieve_unsigned_xdr_to_install(
  wasm :: wasm(),
  source_public_key :: binary()
) :: envelope_xdr()