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

DeployContract implementation to deploy contract from a wasm file.

Link to this section Summary

Link to this section Types

@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()