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

DeployContract implementation to deploy contract from a wasm file.

Summary

Types

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

invoke_host_function()

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

Functions

Link to this function

deploy(server, network_passphrase, wasm_id, secret_key, addl_resources \\ [])

View Source
@spec deploy(
  server :: server(),
  network_passphrase :: network_passphrase(),
  wasm_id :: wasm_id(),
  secret_key :: binary(),
  addl_resources :: addl_resources()
) :: send_response()
Link to this function

retrieve_unsigned_xdr_to_deploy(server, network_passphrase, wasm_id, source_public_key, addl_resources \\ [])

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