Class: Moac::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/moac.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



63
64
65
66
67
68
69
70
# File 'lib/moac.rb', line 63

def initialize
  self.tx_data_hex = true

  # Moac chain
  # Network ID for Testnet is 101
  # Network ID for Mainnet is 99
  self.chain_id    = 101
end

Instance Attribute Details

#chain_idObject

Returns the value of attribute chain_id.



61
62
63
# File 'lib/moac.rb', line 61

def chain_id
  @chain_id
end

#tx_data_hexObject

Returns the value of attribute tx_data_hex.



61
62
63
# File 'lib/moac.rb', line 61

def tx_data_hex
  @tx_data_hex
end