Class: Privy::Models::TronTriggerSmartContract

Inherits:
Internal::Type::BaseModel show all
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

Instance Method Summary collapse

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).

Parameters:

  • contract_address (String)

    Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x pre

  • owner_address (String)

    Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x pre

  • type (Symbol, Privy::Models::TronTriggerSmartContract::Type)
  • call_token_value (Integer) (defaults to: nil)
  • call_value (Integer) (defaults to: nil)
  • data (String) (defaults to: nil)
  • token_id (Integer) (defaults to: nil)


# File 'lib/privy/models/tron_trigger_smart_contract.rb', line 45

Instance Attribute Details

#call_token_valueInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


28
# File 'lib/privy/models/tron_trigger_smart_contract.rb', line 28

optional :call_token_value, Integer

#call_valueInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


33
# File 'lib/privy/models/tron_trigger_smart_contract.rb', line 33

optional :call_value, Integer

#contract_addressString

Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x prefix.

Parameters:

  • value (String)

Returns:

  • (String)


11
# File 'lib/privy/models/tron_trigger_smart_contract.rb', line 11

required :contract_address, String

#dataString?

Parameters:

  • (String)

Returns:

  • (String, nil)


38
# File 'lib/privy/models/tron_trigger_smart_contract.rb', line 38

optional :data, String

#owner_addressString

Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x prefix.

Parameters:

  • value (String)

Returns:

  • (String)


18
# File 'lib/privy/models/tron_trigger_smart_contract.rb', line 18

required :owner_address, String

#token_idInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


43
# File 'lib/privy/models/tron_trigger_smart_contract.rb', line 43

optional :token_id, Integer

#typeSymbol, Privy::Models::TronTriggerSmartContract::Type

Parameters:

  • value (Privy::Models::TronTriggerSmartContract::type_)

Returns:



23
# File 'lib/privy/models/tron_trigger_smart_contract.rb', line 23

required :type, enum: -> { Privy::TronTriggerSmartContract::Type }

Instance Method Details

#to_hash{

Returns:

  • ({)


47
# File 'sig/privy/models/tron_trigger_smart_contract.rbs', line 47

def to_hash: -> {