Class: Zilliqa::Contract::DeployParams
- Inherits:
-
Object
- Object
- Zilliqa::Contract::DeployParams
- Defined in:
- lib/zilliqa/contract/contract.rb
Instance Attribute Summary collapse
-
#gas_limit ⇒ Object
readonly
Returns the value of attribute gas_limit.
-
#gas_price ⇒ Object
readonly
Returns the value of attribute gas_price.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#nonce ⇒ Object
readonly
Returns the value of attribute nonce.
-
#sender_pub_key ⇒ Object
readonly
Returns the value of attribute sender_pub_key.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(id, version, nonce, gas_price, gas_limit, sender_pub_key) ⇒ DeployParams
constructor
A new instance of DeployParams.
Constructor Details
#initialize(id, version, nonce, gas_price, gas_limit, sender_pub_key) ⇒ DeployParams
Returns a new instance of DeployParams.
140 141 142 143 144 145 146 147 |
# File 'lib/zilliqa/contract/contract.rb', line 140 def initialize(id, version, nonce, gas_price, gas_limit, sender_pub_key) @id = id @version = version @nonce = nonce @gas_price = gas_price @gas_limit = gas_limit @sender_pub_key = sender_pub_key end |
Instance Attribute Details
#gas_limit ⇒ Object (readonly)
Returns the value of attribute gas_limit.
139 140 141 |
# File 'lib/zilliqa/contract/contract.rb', line 139 def gas_limit @gas_limit end |
#gas_price ⇒ Object (readonly)
Returns the value of attribute gas_price.
139 140 141 |
# File 'lib/zilliqa/contract/contract.rb', line 139 def gas_price @gas_price end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
139 140 141 |
# File 'lib/zilliqa/contract/contract.rb', line 139 def id @id end |
#nonce ⇒ Object (readonly)
Returns the value of attribute nonce.
139 140 141 |
# File 'lib/zilliqa/contract/contract.rb', line 139 def nonce @nonce end |
#sender_pub_key ⇒ Object (readonly)
Returns the value of attribute sender_pub_key.
139 140 141 |
# File 'lib/zilliqa/contract/contract.rb', line 139 def sender_pub_key @sender_pub_key end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
139 140 141 |
# File 'lib/zilliqa/contract/contract.rb', line 139 def version @version end |