Class: Privy::Models::TronTriggerSmartContract
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::TronTriggerSmartContract
- Defined in:
- lib/privy/models/tron_trigger_smart_contract.rb,
sig/privy/models/tron_trigger_smart_contract.rbs
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
- #call_token_value ⇒ Integer?
- #call_value ⇒ Integer?
-
#contract_address ⇒ String
Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x prefix.
- #data ⇒ String?
-
#owner_address ⇒ String
Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x prefix.
- #token_id ⇒ Integer?
- #type ⇒ Symbol, Privy::Models::TronTriggerSmartContract::Type
Instance Method Summary collapse
-
#initialize(contract_address:, owner_address:, type:, call_token_value: nil, call_value: nil, data: nil, token_id: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see TronTriggerSmartContract 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(contract_address:, owner_address:, type:, call_token_value: nil, call_value: nil, data: nil, token_id: nil) ⇒ Object
Some parameter documentations has been truncated, see Privy::Models::TronTriggerSmartContract for more details.
Tron smart contract call (TRC-20 transfers and general contract interactions).
|
|
# File 'lib/privy/models/tron_trigger_smart_contract.rb', line 45
|
Instance Attribute Details
#call_token_value ⇒ Integer?
28 |
# File 'lib/privy/models/tron_trigger_smart_contract.rb', line 28 optional :call_token_value, Integer |
#call_value ⇒ Integer?
33 |
# File 'lib/privy/models/tron_trigger_smart_contract.rb', line 33 optional :call_value, Integer |
#contract_address ⇒ String
Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x prefix.
11 |
# File 'lib/privy/models/tron_trigger_smart_contract.rb', line 11 required :contract_address, String |
#data ⇒ String?
38 |
# File 'lib/privy/models/tron_trigger_smart_contract.rb', line 38 optional :data, String |
#owner_address ⇒ String
Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x prefix.
18 |
# File 'lib/privy/models/tron_trigger_smart_contract.rb', line 18 required :owner_address, String |
#token_id ⇒ Integer?
43 |
# File 'lib/privy/models/tron_trigger_smart_contract.rb', line 43 optional :token_id, Integer |
#type ⇒ Symbol, Privy::Models::TronTriggerSmartContract::Type
23 |
# File 'lib/privy/models/tron_trigger_smart_contract.rb', line 23 required :type, enum: -> { Privy::TronTriggerSmartContract::Type } |
Instance Method Details
#to_hash ⇒ {
47 |
# File 'sig/privy/models/tron_trigger_smart_contract.rbs', line 47
def to_hash: -> {
|