Class: Privy::Models::TronTransferContract

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

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

Parameters:

  • amount (Integer)
  • owner_address (String)

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

  • to_address (String)

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

  • type (Symbol, Privy::Models::TronTransferContract::Type)


# File 'lib/privy/models/tron_transfer_contract.rb', line 30

Instance Attribute Details

#amountInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


9
# File 'lib/privy/models/tron_transfer_contract.rb', line 9

required :amount, Integer

#owner_addressString

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

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/privy/models/tron_transfer_contract.rb', line 16

required :owner_address, String

#to_addressString

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

Parameters:

  • value (String)

Returns:

  • (String)


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

required :to_address, String

#typeSymbol, Privy::Models::TronTransferContract::Type

Parameters:

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

Returns:



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

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

Instance Method Details

#to_hash{

Returns:

  • ({)


27
# File 'sig/privy/models/tron_transfer_contract.rbs', line 27

def to_hash: -> {