View Source Soroban.Contract.DeployContract (Soroban v0.9.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()}
@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
@spec deploy(wasm_id :: wasm_id(), secret_key :: binary()) :: send_response()
@spec get_contract_id(get_response()) :: binary()
@spec retrieve_unsigned_xdr_to_deploy( wasm_id :: wasm_id(), source_public_key :: binary() ) :: envelope_xdr()