Module: Etherlite::Abi
- Extended by:
- Abi
- Included in:
- Abi
- Defined in:
- lib/etherlite/abi.rb,
lib/etherlite/commands/abi/load_type.rb,
lib/etherlite/commands/abi/load_contract.rb,
lib/etherlite/commands/abi/load_function.rb
Defined Under Namespace
Classes: LoadContract, LoadFunction, LoadType
Instance Method Summary
collapse
Instance Method Details
#load_contract(_json) ⇒ Object
13
14
15
|
# File 'lib/etherlite/abi.rb', line 13
def load_contract(_json)
LoadContract.for artifact: _json
end
|
#load_contract_at(_path) ⇒ Object
9
10
11
|
# File 'lib/etherlite/abi.rb', line 9
def load_contract_at(_path)
load_contract JSON.parse File.read(_path)
end
|
#load_function(_signature) ⇒ Object
17
18
19
|
# File 'lib/etherlite/abi.rb', line 17
def load_function(_signature)
LoadFunction.for signature: _signature
end
|