View Source Soroban.Contract.UploadContractCode (Soroban v0.12.0)
UploadContractCode
implementation to upload contract from a wasm file.
Summary
Types
@type account() :: Stellar.TxBuild.Account.t()
@type envelope_xdr() :: String.t()
@type invoke_host_function() :: Stellar.TxBuild.InvokeHostFunction.t()
@type send_response() :: {:ok, Soroban.RPC.SendTransactionResponse.t()}
@type sequence_number() :: Stellar.TxBuild.SequenceNumber.t()
@type signature() :: Stellar.TxBuild.Signature.t()
@type wasm() :: binary()
Functions
@spec retrieve_unsigned_xdr_to_upload( wasm :: wasm(), source_public_key :: binary() ) :: envelope_xdr()
@spec upload(wasm :: wasm(), secret_key :: binary()) :: send_response()