View Source Soroban.Contract.DeployAssetContract (Soroban v0.10.0)

DeployAssetContract implementation to deploy contract from an Asset.

Link to this section Summary

Link to this section Types

@type asset() :: Stellar.TxBuild.Asset.t()
@type asset_code() :: binary()
@type envelope_xdr() :: String.t()
Link to this type

invoke_host_function()

View Source
@type invoke_host_function() :: Stellar.TxBuild.InvokeHostFunction.t()
@type secret_key() :: binary()
@type send_response() :: {:ok, Soroban.RPC.SendTransactionResponse.t()}
Link to this type

transaction_response()

View Source
@type transaction_response() :: {:ok, Soroban.RPC.GetTransactionResponse.t()}

Link to this section Functions

Link to this function

deploy(asset_code, secret_key)

View Source
@spec deploy(asset_code :: asset_code(), secret_key :: secret_key()) ::
  send_response()
@spec get_contract_id(transaction_response :: transaction_response()) :: binary()
Link to this function

retrieve_unsigned_xdr_to_deploy_asset(asset_code, source_public_key)

View Source
@spec retrieve_unsigned_xdr_to_deploy_asset(
  asset_code :: asset_code(),
  source_public_key :: binary()
) :: envelope_xdr()