Class: Ethereum::SpecialContract
- Defined in:
- lib/ethereum/special_contract.rb
Defined Under Namespace
Classes: ECRecover, Identity, RIPEMD160, SHA256
Constant Summary collapse
- DEPLOY =
{ '0000000000000000000000000000000000000001' => ECRecover.new, '0000000000000000000000000000000000000002' => SHA256.new, '0000000000000000000000000000000000000003' => RIPEMD160.new, '0000000000000000000000000000000000000004' => Identity.new }.map {|k,v| [Utils.decode_hex(k), v] }.to_h.freeze
Class Method Summary collapse
Class Method Details
.[](address) ⇒ Object
89 90 91 |
# File 'lib/ethereum/special_contract.rb', line 89 def [](address) DEPLOY[address] end |