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

DeployContract implementation to deploy contract from a wasm file.

Summary

Types

@type envelope_xdr() :: String.t()
Link to this type

invoke_host_function()

View Source
@type invoke_host_function() :: Stellar.TxBuild.InvokeHostFunction.t()
@type public_key() :: String.t()
@type send_response() :: {:ok, Soroban.RPC.SendTransactionResponse.t()}
@type wasm_id() :: binary()

Functions

Link to this function

deploy(wasm_id, secret_key)

View Source
@spec deploy(wasm_id :: wasm_id(), secret_key :: binary()) :: send_response()
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()