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

UploadContractCode implementation to upload contract from a wasm file.

Summary

Types

@type account() :: Stellar.TxBuild.Account.t()
@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 send_response() :: {:ok, Soroban.RPC.SendTransactionResponse.t()}
@type sequence_number() :: Stellar.TxBuild.SequenceNumber.t()
@type server() :: Soroban.RPC.Server.t()
@type signature() :: Stellar.TxBuild.Signature.t()
@type wasm() :: binary()

Functions

Link to this function

retrieve_unsigned_xdr_to_upload(server, network_passphrase, wasm, source_public_key, addl_resources \\ [])

View Source
@spec retrieve_unsigned_xdr_to_upload(
  server :: server(),
  network_passphrase :: network_passphrase(),
  wasm :: wasm(),
  source_public_key :: binary(),
  addl_resources :: addl_resources()
) :: envelope_xdr()
Link to this function

upload(server, network_passphrase, wasm, secret_key, addl_resources \\ [])

View Source
@spec upload(
  server :: server(),
  network_passphrase :: network_passphrase(),
  wasm :: wasm(),
  secret_key :: binary(),
  addl_resources :: addl_resources()
) :: send_response()