Class: Minter::SendCoinTx
- Inherits:
-
Transaction
- Object
- Transaction
- Minter::SendCoinTx
- Defined in:
- lib/minter/transactions/send_coin_tx.rb
Instance Attribute Summary collapse
-
#address_to ⇒ Object
Returns the value of attribute address_to.
-
#chain_id ⇒ Object
Returns the value of attribute chain_id.
-
#coin ⇒ Object
Returns the value of attribute coin.
-
#gas_coin ⇒ Object
Returns the value of attribute gas_coin.
-
#gas_price ⇒ Object
Returns the value of attribute gas_price.
-
#nonce ⇒ Object
Returns the value of attribute nonce.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(address_to:, value:, coin:, nonce:, chain_id:, gas_coin:, gas_price:) ⇒ SendCoinTx
constructor
rubocop:disable Metrics/ParameterLists.
- #to_params ⇒ Object
Methods inherited from Transaction
Constructor Details
#initialize(address_to:, value:, coin:, nonce:, chain_id:, gas_coin:, gas_price:) ⇒ SendCoinTx
rubocop:disable Metrics/ParameterLists
7 8 9 10 11 12 13 14 15 |
# File 'lib/minter/transactions/send_coin_tx.rb', line 7 def initialize(address_to:, value:, coin:, nonce:, chain_id:, gas_coin:, gas_price:) # rubocop:disable Metrics/ParameterLists @address_to = address_to @value = value @coin = coin @nonce = nonce @chain_id = chain_id @gas_coin = gas_coin @gas_price = gas_price end |
Instance Attribute Details
#address_to ⇒ Object
Returns the value of attribute address_to.
5 6 7 |
# File 'lib/minter/transactions/send_coin_tx.rb', line 5 def address_to @address_to end |
#chain_id ⇒ Object
Returns the value of attribute chain_id.
5 6 7 |
# File 'lib/minter/transactions/send_coin_tx.rb', line 5 def chain_id @chain_id end |
#coin ⇒ Object
Returns the value of attribute coin.
5 6 7 |
# File 'lib/minter/transactions/send_coin_tx.rb', line 5 def coin @coin end |
#gas_coin ⇒ Object
Returns the value of attribute gas_coin.
5 6 7 |
# File 'lib/minter/transactions/send_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/send_coin_tx.rb', line 5 def gas_price @gas_price end |
#nonce ⇒ Object
Returns the value of attribute nonce.
5 6 7 |
# File 'lib/minter/transactions/send_coin_tx.rb', line 5 def nonce @nonce end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/minter/transactions/send_coin_tx.rb', line 5 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/minter/transactions/send_coin_tx.rb', line 5 def value @value end |
Instance Method Details
#to_params ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/minter/transactions/send_coin_tx.rb', line 17 def to_params { AddressTo: address_to, Value: value, Coin: coin, Nonce: nonce, ChainId: chain_id, GasCoin: gas_coin, GasPrice: gas_price } end |