Class: Privy::Models::Wallets::EarnAsset
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::Wallets::EarnAsset
- Defined in:
- lib/privy/models/wallets/earn_asset.rb,
sig/privy/models/wallets/earn_asset.rbs
Instance Attribute Summary collapse
-
#address ⇒ String
Token contract address.
-
#decimals ⇒ Integer
Number of decimals for the asset (e.g. 6 for USDC).
-
#symbol ⇒ String
Lowercase token symbol (e.g. "usdc").
Instance Method Summary collapse
-
#initialize(address:, decimals:, symbol:) ⇒ Object
constructor
Asset metadata for an earn vault position.
- #to_hash ⇒ { address: String, decimals: Integer, symbol: String }
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(address:, decimals:, symbol:) ⇒ Object
Asset metadata for an earn vault position.
|
|
# File 'lib/privy/models/wallets/earn_asset.rb', line 25
|
Instance Attribute Details
#address ⇒ String
Token contract address.
11 |
# File 'lib/privy/models/wallets/earn_asset.rb', line 11 required :address, String |
#decimals ⇒ Integer
Number of decimals for the asset (e.g. 6 for USDC).
17 |
# File 'lib/privy/models/wallets/earn_asset.rb', line 17 required :decimals, Integer |
#symbol ⇒ String
Lowercase token symbol (e.g. "usdc").
23 |
# File 'lib/privy/models/wallets/earn_asset.rb', line 23 required :symbol, String |
Instance Method Details
#to_hash ⇒ { address: String, decimals: Integer, symbol: String }
19 |
# File 'sig/privy/models/wallets/earn_asset.rbs', line 19
def to_hash: -> { address: String, decimals: Integer, symbol: String }
|