Class: Privy::Models::Wallets::ExternalTransactionWalletActionStep

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/wallets/external_transaction_wallet_action_step.rb,
sig/privy/models/wallets/external_transaction_wallet_action_step.rbs

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(status:, type:, failure_reason: nil) ⇒ Object

A wallet action step representing a cross-chain/cross-asset fill by an external provider.

Parameters:



# File 'lib/privy/models/wallets/external_transaction_wallet_action_step.rb', line 24

Instance Attribute Details

#failure_reasonPrivy::Models::Wallets::FailureReason?

A description of why a wallet action (or a step within a wallet action) failed.



22
# File 'lib/privy/models/wallets/external_transaction_wallet_action_step.rb', line 22

optional :failure_reason, -> { Privy::Wallets::FailureReason }

#statusSymbol, Privy::Models::Wallets::ExternalTransactionWalletActionStepStatus

Status of an external transaction step in a wallet action.

Parameters:

  • value (Privy::Models::Wallets::external_transaction_wallet_action_step_status)

Returns:



11
# File 'lib/privy/models/wallets/external_transaction_wallet_action_step.rb', line 11

required :status, enum: -> { Privy::Wallets::ExternalTransactionWalletActionStepStatus }

#typeSymbol, Privy::Models::Wallets::ExternalTransactionWalletActionStep::Type

Parameters:

  • value (Privy::Models::Wallets::ExternalTransactionWalletActionStep::type_)

Returns:



16
# File 'lib/privy/models/wallets/external_transaction_wallet_action_step.rb', line 16

required :type, enum: -> { Privy::Wallets::ExternalTransactionWalletActionStep::Type }

Instance Method Details

#to_hash{

Returns:

  • ({)


28
# File 'sig/privy/models/wallets/external_transaction_wallet_action_step.rbs', line 28

def to_hash: -> {