View Source Soroban.Contract.InvokeContractFunction (Soroban v0.16.0)
InvokeContractFunction
implementation to invoke authorized and not authorized contract functions.
Summary
Types
@type account() :: Stellar.TxBuild.Account.t()
@type auth_secret_keys() :: [String.t()]
@type contract_address() :: String.t()
@type envelope_xdr() :: String.t()
@type function_args() :: [struct()]
@type function_name() :: String.t()
@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 simulate_response() :: {:ok, Soroban.RPC.SimulateTransactionResponse.t()}
@type source_public_key() :: String.t()
@type source_secret_key() :: String.t()
Functions
Link to this function
invoke(contract_address, source_secret_key, function_name, function_args, extra_fee_rate \\ 0.0, auth_secret_keys \\ [])
View Source@spec invoke( contract_address :: contract_address(), source_secret_key :: source_secret_key(), function_name :: function_name(), function_args :: function_args(), extra_fee_rate :: float(), auth_secret_keys :: auth_secret_keys() ) :: send_response()
Link to this function
retrieve_unsigned_xdr_to_invoke(contract_address, source_public_key, function_name, function_args, extra_fee_rate \\ 0.0)
View Source@spec retrieve_unsigned_xdr_to_invoke( contract_address :: contract_address(), source_public_key :: source_public_key(), function_name :: function_name(), function_args :: function_args(), extra_fee_rate :: float() ) :: envelope_xdr()
Link to this function
simulate_invoke(contract_address, source_public_key, function_name, function_args)
View Source@spec simulate_invoke( contract_address :: contract_address(), source_public_key :: source_public_key(), function_name :: function_name(), function_args :: function_args() ) :: simulate_response()