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

InvokeContractFunction implementation to invoke authorized and not authorized contract functions.

Link to this section Summary

Link to this section Types

@type account() :: Stellar.TxBuild.Account.t()
@type auth_secret_key() :: binary() | nil
@type contract_id() :: binary()
@type envelope_xdr() :: String.t()
@type function_args() :: [struct()]
@type function_name() :: String.t()
Link to this type

invoke_host_function()

View Source
@type invoke_host_function() :: Stellar.TxBuild.InvokeHostFunction.t()
@type sc_val_list() :: [Stellar.TxBuild.SCVal.t()]
@type send_response() :: {:ok, Soroban.RPC.SendTransactionResponse.t()}
@type sequence_number() :: Stellar.TxBuild.SequenceNumber.t()
@type signature() :: Stellar.TxBuild.Signature.t()
@type source_public_key() :: binary()
@type source_secret_key() :: binary()

Link to this section Functions

Link to this function

invoke(contract_id, source_secret_key, function_name, function_args, auth_secret_key \\ nil)

View Source
@spec invoke(
  contract_id :: contract_id(),
  source_secret_key :: source_secret_key(),
  function_name :: function_name(),
  function_args :: function_args(),
  auth_secret_key :: auth_secret_key()
) :: send_response()
Link to this function

retrieve_unsigned_xdr_to_invoke(contract_id, source_public_key, function_name, function_args)

View Source
@spec retrieve_unsigned_xdr_to_invoke(
  contract_id :: contract_id(),
  source_public_key :: source_public_key(),
  function_name :: function_name(),
  function_args :: function_args()
) :: envelope_xdr()