View Source Soroban.Contract.DeployAssetContract (Soroban v0.8.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 invoke_host_function() :: Stellar.TxBuild.InvokeHostFunction.t()
@type secret_key() :: binary()
@type send_response() :: {:ok, Soroban.RPC.SendTransactionResponse.t()}
@type transaction_response() :: {:ok, Soroban.RPC.GetTransactionResponse.t()}
Link to this section Functions
@spec deploy(asset_code :: asset_code(), secret_key :: secret_key()) :: send_response()
@spec get_contract_id(transaction_response :: transaction_response()) :: binary()