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

DeployContract implementation to deploy contract from a wasm file.

Link to this section Summary

Link to this section Types

@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 wasm_id() :: binary()

Link to this section Functions

Link to this function

deploy(wasm_id, secret_key)

View Source
@spec deploy(wasm_id :: wasm_id(), secret_key :: binary()) :: send_response()
@spec get_contract_id(get_response()) :: binary()
Link to this function

retrieve_unsigned_xdr_to_deploy(wasm_id, source_public_key)

View Source
@spec retrieve_unsigned_xdr_to_deploy(
  wasm_id :: wasm_id(),
  source_public_key :: binary()
) :: envelope_xdr()