Class: Privy::Models::Wallets::EarnIncentiveClaimActionResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::Wallets::EarnIncentiveClaimActionResponse
- Defined in:
- lib/privy/models/wallets/earn_incentive_claim_action_response.rb,
sig/privy/models/wallets/earn_incentive_claim_action_response.rbs
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#chain ⇒ String
EVM chain name (e.g. "base", "ethereum").
-
#created_at ⇒ Time
ISO 8601 timestamp of when the wallet action was created.
-
#failure_reason ⇒ Privy::Models::Wallets::FailureReason?
A description of why a wallet action (or a step within a wallet action) failed.
-
#id ⇒ String
The ID of the wallet action.
-
#rewards ⇒ Array<Privy::Models::Wallets::EarnIncetiveClaimRewardEntry>?
Claimed reward tokens.
-
#status ⇒ Symbol, Privy::Models::Wallets::WalletActionStatus
Status of a wallet action.
-
#steps ⇒ Array<Privy::Models::Wallets::EvmTransactionWalletActionStep, Privy::Models::Wallets::EvmUserOperationWalletActionStep, Privy::Models::Wallets::SvmTransactionWalletActionStep, Privy::Models::Wallets::TvmTransactionWalletActionStep, Privy::Models::Wallets::ExternalTransactionWalletActionStep, Privy::Models::Wallets::CustodianTransactionWalletActionStep>?
The steps of the wallet action.
- #type ⇒ Symbol, Privy::Models::Wallets::EarnIncentiveClaimActionResponse::Type
-
#wallet_id ⇒ String
The ID of the wallet involved in the action.
Instance Method Summary collapse
-
#initialize(id:, chain:, created_at:, rewards:, status:, type:, wallet_id:, failure_reason: nil, steps: nil) ⇒ Object
constructor
Response for an earn incentive claim action.
- #to_hash ⇒ {
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(id:, chain:, created_at:, rewards:, status:, type:, wallet_id:, failure_reason: nil, steps: nil) ⇒ Object
Response for an earn incentive claim action.
|
|
# File 'lib/privy/models/wallets/earn_incentive_claim_action_response.rb', line 62
|
Instance Attribute Details
#chain ⇒ String
EVM chain name (e.g. "base", "ethereum").
17 |
# File 'lib/privy/models/wallets/earn_incentive_claim_action_response.rb', line 17 required :chain, String |
#created_at ⇒ Time
ISO 8601 timestamp of when the wallet action was created.
23 |
# File 'lib/privy/models/wallets/earn_incentive_claim_action_response.rb', line 23 required :created_at, Time |
#failure_reason ⇒ Privy::Models::Wallets::FailureReason?
A description of why a wallet action (or a step within a wallet action) failed.
54 |
# File 'lib/privy/models/wallets/earn_incentive_claim_action_response.rb', line 54 optional :failure_reason, -> { Privy::Wallets::FailureReason } |
#id ⇒ String
The ID of the wallet action.
11 |
# File 'lib/privy/models/wallets/earn_incentive_claim_action_response.rb', line 11 required :id, String |
#rewards ⇒ Array<Privy::Models::Wallets::EarnIncetiveClaimRewardEntry>?
Claimed reward tokens. Populated after the preparation step fetches from Merkl.
29 30 31 |
# File 'lib/privy/models/wallets/earn_incentive_claim_action_response.rb', line 29 required :rewards, -> { Privy::Internal::Type::ArrayOf[Privy::Wallets::EarnIncetiveClaimRewardEntry] }, nil?: true |
#status ⇒ Symbol, Privy::Models::Wallets::WalletActionStatus
Status of a wallet action.
37 |
# File 'lib/privy/models/wallets/earn_incentive_claim_action_response.rb', line 37 required :status, enum: -> { Privy::Wallets::WalletActionStatus } |
#steps ⇒ Array<Privy::Models::Wallets::EvmTransactionWalletActionStep, Privy::Models::Wallets::EvmUserOperationWalletActionStep, Privy::Models::Wallets::SvmTransactionWalletActionStep, Privy::Models::Wallets::TvmTransactionWalletActionStep, Privy::Models::Wallets::ExternalTransactionWalletActionStep, Privy::Models::Wallets::CustodianTransactionWalletActionStep>?
The steps of the wallet action. Only returned if ?include=steps is provided.
60 |
# File 'lib/privy/models/wallets/earn_incentive_claim_action_response.rb', line 60 optional :steps, -> { Privy::Internal::Type::ArrayOf[union: Privy::Wallets::WalletActionStep] } |
#type ⇒ Symbol, Privy::Models::Wallets::EarnIncentiveClaimActionResponse::Type
42 |
# File 'lib/privy/models/wallets/earn_incentive_claim_action_response.rb', line 42 required :type, enum: -> { Privy::Wallets::EarnIncentiveClaimActionResponse::Type } |
#wallet_id ⇒ String
The ID of the wallet involved in the action.
48 |
# File 'lib/privy/models/wallets/earn_incentive_claim_action_response.rb', line 48 required :wallet_id, String |
Instance Method Details
#to_hash ⇒ {
56 |
# File 'sig/privy/models/wallets/earn_incentive_claim_action_response.rbs', line 56
def to_hash: -> {
|