View Source Stellar.TxBuild.HostFunction (Elixir Stellar SDK v0.14.0)

HostFunction struct definition.

Link to this section Summary

Link to this section Types

@type args() :: invoke_args()
@type asset() :: Stellar.TxBuild.Asset.t()
@type contract_id() :: String.t()
@type error() :: {:error, atom()}
@type function_name() :: String.t()
@type invoke_args() :: [Stellar.TxBuild.SCVal.t()]
@type t() :: %Stellar.TxBuild.HostFunction{
  args: args(),
  asset: asset(),
  code: binary(),
  contract_id: contract_id(),
  function_name: function_name(),
  salt: binary(),
  type: type(),
  wasm_id: wasm_id()
}
@type type() :: :invoke | :install | :create
@type validation() :: {:ok, any()} | error()
@type wasm_id() :: binary()