Class: Privy::Models::WalletActionSwapCreatedWebhookPayload
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::WalletActionSwapCreatedWebhookPayload
- Defined in:
- lib/privy/models/wallet_action_swap_created_webhook_payload.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#action_type ⇒ Symbol, Privy::Models::WalletActionType
Type of wallet action.
-
#caip2 ⇒ String
Chain identifier.
-
#input_amount ⇒ String?
Amount of input token in base units.
-
#input_token ⇒ String
Token address being sold.
-
#output_token ⇒ String
Token address being bought.
-
#status ⇒ Symbol, Privy::Models::WalletActionSwapCreatedWebhookPayload::Status
The status of the wallet action.
-
#type ⇒ Symbol, Privy::Models::WalletActionSwapCreatedWebhookPayload::Type
The type of webhook event.
-
#wallet_action_id ⇒ String
The ID of the wallet action.
-
#wallet_id ⇒ String
The ID of the wallet involved in the action.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action_type:, caip2:, input_amount:, input_token:, output_token:, status:, type:, wallet_action_id:, wallet_id:) ⇒ Object
constructor
Payload for the wallet_action.swap.created webhook event.
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(action_type:, caip2:, input_amount:, input_token:, output_token:, status:, type:, wallet_action_id:, wallet_id:) ⇒ Object
Payload for the wallet_action.swap.created webhook event.
|
|
# File 'lib/privy/models/wallet_action_swap_created_webhook_payload.rb', line 60
|
Instance Attribute Details
#action_type ⇒ Symbol, Privy::Models::WalletActionType
Type of wallet action
10 |
# File 'lib/privy/models/wallet_action_swap_created_webhook_payload.rb', line 10 required :action_type, enum: -> { Privy::WalletActionType } |
#caip2 ⇒ String
Chain identifier.
16 |
# File 'lib/privy/models/wallet_action_swap_created_webhook_payload.rb', line 16 required :caip2, String |
#input_amount ⇒ String?
Amount of input token in base units. Populated after on-chain confirmation.
22 |
# File 'lib/privy/models/wallet_action_swap_created_webhook_payload.rb', line 22 required :input_amount, String, nil?: true |
#input_token ⇒ String
Token address being sold.
28 |
# File 'lib/privy/models/wallet_action_swap_created_webhook_payload.rb', line 28 required :input_token, String |
#output_token ⇒ String
Token address being bought.
34 |
# File 'lib/privy/models/wallet_action_swap_created_webhook_payload.rb', line 34 required :output_token, String |
#status ⇒ Symbol, Privy::Models::WalletActionSwapCreatedWebhookPayload::Status
The status of the wallet action.
40 |
# File 'lib/privy/models/wallet_action_swap_created_webhook_payload.rb', line 40 required :status, enum: -> { Privy::WalletActionSwapCreatedWebhookPayload::Status } |
#type ⇒ Symbol, Privy::Models::WalletActionSwapCreatedWebhookPayload::Type
The type of webhook event.
46 |
# File 'lib/privy/models/wallet_action_swap_created_webhook_payload.rb', line 46 required :type, enum: -> { Privy::WalletActionSwapCreatedWebhookPayload::Type } |
#wallet_action_id ⇒ String
The ID of the wallet action.
52 |
# File 'lib/privy/models/wallet_action_swap_created_webhook_payload.rb', line 52 required :wallet_action_id, String |
#wallet_id ⇒ String
The ID of the wallet involved in the action.
58 |
# File 'lib/privy/models/wallet_action_swap_created_webhook_payload.rb', line 58 required :wallet_id, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/privy/models/wallet_action_swap_created_webhook_payload.rb', line 89
|