module Ethereum::Tester::Fixture

Constants

NUM_ACCOUNTS

Attributes

gas_limit[W]
gas_price[W]

Public Class Methods

accounts() click to toggle source
# File lib/ethereum/tester/fixture.rb, line 13
def accounts
  @accounts ||= NUM_ACCOUNTS.times.map {|i| PrivateKey.new(keys[i]).to_address }
end
gas_limit() click to toggle source
# File lib/ethereum/tester/fixture.rb, line 17
def gas_limit
  @gas_limit ||= 3141592
end
gas_price() click to toggle source
# File lib/ethereum/tester/fixture.rb, line 22
def gas_price
  @gas_price ||= 1
end
keys() click to toggle source
# File lib/ethereum/tester/fixture.rb, line 9
def keys
  @keys ||= NUM_ACCOUNTS.times.map {|i| Utils.keccak256(i.to_s) }
end