Class: Casper::Entity::Contract
- Inherits:
-
Object
- Object
- Casper::Entity::Contract
- Defined in:
- lib/entity/contract.rb
Overview
Contract entity class
Instance Method Summary collapse
-
#get_contract_package_hash ⇒ String
Contract_package_hash.
-
#get_contract_wasm_hash ⇒ String
Contract_wasm_hash.
-
#get_entry_points ⇒ Array
Entry_points.
-
#get_named_keys ⇒ Array
Named_keys.
-
#get_protocol_version ⇒ String
Protocol_version.
-
#initialize(contract_package_hash, contract_wasm_hash, named_keys, entry_points, protocol_version) ⇒ Contract
constructor
A new instance of Contract.
Constructor Details
#initialize(contract_package_hash, contract_wasm_hash, named_keys, entry_points, protocol_version) ⇒ Contract
Returns a new instance of Contract.
12 13 14 15 16 17 18 |
# File 'lib/entity/contract.rb', line 12 def initialize(contract_package_hash, contract_wasm_hash, named_keys, entry_points, protocol_version) @contract_package_hash = contract_package_hash @contract_wasm_hash = contract_wasm_hash @entry_points = entry_points @named_keys = named_keys @protocol_version = protocol_version end |
Instance Method Details
#get_contract_package_hash ⇒ String
Returns contract_package_hash.
21 22 23 |
# File 'lib/entity/contract.rb', line 21 def get_contract_package_hash @contract_package_hash end |
#get_contract_wasm_hash ⇒ String
Returns contract_wasm_hash.
26 27 28 |
# File 'lib/entity/contract.rb', line 26 def get_contract_wasm_hash @contract_wasm_hash end |
#get_entry_points ⇒ Array
Returns entry_points.
31 32 33 |
# File 'lib/entity/contract.rb', line 31 def get_entry_points @entry_points end |
#get_named_keys ⇒ Array
Returns named_keys.
36 37 38 |
# File 'lib/entity/contract.rb', line 36 def get_named_keys @named_keys end |
#get_protocol_version ⇒ String
Returns protocol_version.
41 42 43 |
# File 'lib/entity/contract.rb', line 41 def get_protocol_version @protocol_version end |