Class: Minter::CreateCoinTx
- Inherits:
-
Transaction
- Object
- Transaction
- Minter::CreateCoinTx
- Defined in:
- lib/minter/transactions/create_coin_tx.rb
Instance Attribute Summary collapse
-
#chain_id ⇒ Object
Returns the value of attribute chain_id.
-
#gas_coin ⇒ Object
Returns the value of attribute gas_coin.
-
#gas_price ⇒ Object
Returns the value of attribute gas_price.
-
#initial_amount ⇒ Object
Returns the value of attribute initial_amount.
-
#initial_reserve ⇒ Object
Returns the value of attribute initial_reserve.
-
#max_supply ⇒ Object
Returns the value of attribute max_supply.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nonce ⇒ Object
Returns the value of attribute nonce.
-
#reserve_ratio ⇒ Object
Returns the value of attribute reserve_ratio.
-
#symbol ⇒ Object
Returns the value of attribute symbol.
Instance Method Summary collapse
-
#initialize(name:, symbol:, initial_amount:, max_supply:, initial_reserve:, reserve_ratio:, nonce:, chain_id:, gas_coin:, gas_price:) ⇒ CreateCoinTx
constructor
rubocop:disable Metrics/ParameterLists.
- #to_params ⇒ Object
Methods inherited from Transaction
Constructor Details
#initialize(name:, symbol:, initial_amount:, max_supply:, initial_reserve:, reserve_ratio:, nonce:, chain_id:, gas_coin:, gas_price:) ⇒ CreateCoinTx
rubocop:disable Metrics/ParameterLists
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/minter/transactions/create_coin_tx.rb', line 7 def initialize(name:, symbol:, initial_amount:, max_supply:, initial_reserve:, reserve_ratio:, nonce:, chain_id:, gas_coin:, gas_price:) # rubocop:disable Metrics/ParameterLists @name = name @symbol = symbol @max_supply = max_supply @initial_amount = initial_amount @initial_reserve = initial_reserve @reserve_ratio = reserve_ratio @nonce = nonce @chain_id = chain_id @gas_coin = gas_coin @gas_price = gas_price end |
Instance Attribute Details
#chain_id ⇒ Object
Returns the value of attribute chain_id.
5 6 7 |
# File 'lib/minter/transactions/create_coin_tx.rb', line 5 def chain_id @chain_id end |
#gas_coin ⇒ Object
Returns the value of attribute gas_coin.
5 6 7 |
# File 'lib/minter/transactions/create_coin_tx.rb', line 5 def gas_coin @gas_coin end |
#gas_price ⇒ Object
Returns the value of attribute gas_price.
5 6 7 |
# File 'lib/minter/transactions/create_coin_tx.rb', line 5 def gas_price @gas_price end |
#initial_amount ⇒ Object
Returns the value of attribute initial_amount.
5 6 7 |
# File 'lib/minter/transactions/create_coin_tx.rb', line 5 def initial_amount @initial_amount end |
#initial_reserve ⇒ Object
Returns the value of attribute initial_reserve.
5 6 7 |
# File 'lib/minter/transactions/create_coin_tx.rb', line 5 def initial_reserve @initial_reserve end |
#max_supply ⇒ Object
Returns the value of attribute max_supply.
5 6 7 |
# File 'lib/minter/transactions/create_coin_tx.rb', line 5 def max_supply @max_supply end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/minter/transactions/create_coin_tx.rb', line 5 def name @name end |
#nonce ⇒ Object
Returns the value of attribute nonce.
5 6 7 |
# File 'lib/minter/transactions/create_coin_tx.rb', line 5 def nonce @nonce end |
#reserve_ratio ⇒ Object
Returns the value of attribute reserve_ratio.
5 6 7 |
# File 'lib/minter/transactions/create_coin_tx.rb', line 5 def reserve_ratio @reserve_ratio end |
#symbol ⇒ Object
Returns the value of attribute symbol.
5 6 7 |
# File 'lib/minter/transactions/create_coin_tx.rb', line 5 def symbol @symbol end |
Instance Method Details
#to_params ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/minter/transactions/create_coin_tx.rb', line 20 def to_params { Name: name, Symbol: symbol, InitialAmount: initial_amount, MaxSupply: max_supply, InitialReserve: initial_reserve, ReserveRation: reserve_ratio, # TODO: rename ReserveRation to ReserveRatio Nonce: nonce, ChainId: chain_id, GasCoin: gas_coin, GasPrice: gas_price } end |