Class: Privy::Models::TronTransferContract
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::TronTransferContract
- Defined in:
- lib/privy/models/tron_transfer_contract.rb,
sig/privy/models/tron_transfer_contract.rbs
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
- #amount ⇒ Integer
-
#owner_address ⇒ String
Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x prefix.
-
#to_address ⇒ String
Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x prefix.
- #type ⇒ Symbol, Privy::Models::TronTransferContract::Type
Instance Method Summary collapse
-
#initialize(amount:, owner_address:, to_address:, type:) ⇒ Object
constructor
Some parameter documentations has been truncated, see TronTransferContract for more details.
- #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(amount:, owner_address:, to_address:, type:) ⇒ Object
Some parameter documentations has been truncated, see Privy::Models::TronTransferContract for more details.
Tron native TRX transfer contract.
|
|
# File 'lib/privy/models/tron_transfer_contract.rb', line 30
|
Instance Attribute Details
#amount ⇒ Integer
9 |
# File 'lib/privy/models/tron_transfer_contract.rb', line 9 required :amount, Integer |
#owner_address ⇒ String
Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x prefix.
16 |
# File 'lib/privy/models/tron_transfer_contract.rb', line 16 required :owner_address, String |
#to_address ⇒ String
Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x prefix.
23 |
# File 'lib/privy/models/tron_transfer_contract.rb', line 23 required :to_address, String |
#type ⇒ Symbol, Privy::Models::TronTransferContract::Type
28 |
# File 'lib/privy/models/tron_transfer_contract.rb', line 28 required :type, enum: -> { Privy::TronTransferContract::Type } |
Instance Method Details
#to_hash ⇒ {
27 |
# File 'sig/privy/models/tron_transfer_contract.rbs', line 27
def to_hash: -> {
|