Class: Zilliqa::Contract::DeployParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_limitObject (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_priceObject (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

#idObject (readonly)

Returns the value of attribute id.



139
140
141
# File 'lib/zilliqa/contract/contract.rb', line 139

def id
  @id
end

#nonceObject (readonly)

Returns the value of attribute nonce.



139
140
141
# File 'lib/zilliqa/contract/contract.rb', line 139

def nonce
  @nonce
end

#sender_pub_keyObject (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

#versionObject (readonly)

Returns the value of attribute version.



139
140
141
# File 'lib/zilliqa/contract/contract.rb', line 139

def version
  @version
end