Class: Laksa::Contract::DeployParams

Inherits:
Object
  • Object
show all
Defined in:
lib/laksa/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.



138
139
140
141
142
143
144
145
# File 'lib/laksa/contract/contract.rb', line 138

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.



137
138
139
# File 'lib/laksa/contract/contract.rb', line 137

def gas_limit
  @gas_limit
end

#gas_priceObject (readonly)

Returns the value of attribute gas_price.



137
138
139
# File 'lib/laksa/contract/contract.rb', line 137

def gas_price
  @gas_price
end

#idObject (readonly)

Returns the value of attribute id.



137
138
139
# File 'lib/laksa/contract/contract.rb', line 137

def id
  @id
end

#nonceObject (readonly)

Returns the value of attribute nonce.



137
138
139
# File 'lib/laksa/contract/contract.rb', line 137

def nonce
  @nonce
end

#sender_pub_keyObject (readonly)

Returns the value of attribute sender_pub_key.



137
138
139
# File 'lib/laksa/contract/contract.rb', line 137

def sender_pub_key
  @sender_pub_key
end

#versionObject (readonly)

Returns the value of attribute version.



137
138
139
# File 'lib/laksa/contract/contract.rb', line 137

def version
  @version
end