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



14
15
16
# File 'lib/etherlite/abi.rb', line 14

def load_contract(_json)
  LoadContract.for json: _json
end

#load_contract_at(_path) ⇒ Object



9
10
11
12
# File 'lib/etherlite/abi.rb', line 9

def load_contract_at(_path)
  json = JSON.parse File.read(_path)
  LoadContract.for json: json
end

#load_function(_signature) ⇒ Object



18
19
20
# File 'lib/etherlite/abi.rb', line 18

def load_function(_signature)
  LoadFunction.for signature: _signature
end