Documentation ¶
Index ¶
Constants ¶
View Source
const GanacheEndpoint = "http://localhost:8545"
GanacheEndpoint specifies the Ganache test Ethereum node JSON RPC endpoint used in tests
View Source
const TestNetworkID = 50
TestNetworkID is the test (Ganache) networkId used for testing
Variables ¶
View Source
var ( // GanacheAccount0 is the first account exposed on the Ganache test Ethereum node GanacheAccount0 = common.HexToAddress("0x5409ed021d9299bf6814279a6a1411a7e866a631") // GanacheAccount1 is the first account exposed on the Ganache test Ethereum node GanacheAccount1 = common.HexToAddress("0x6ecbe1db9ef729cbe972c83fb886247691fb6beb") // GanacheAccount2 is the first account exposed on the Ganache test Ethereum node GanacheAccount2 = common.HexToAddress("0xe36ea790bc9d7ab70c55260c66d52b1eca985f84") // GanacheAccount3 is the first account exposed on the Ganache test Ethereum node GanacheAccount3 = common.HexToAddress("0xe834ec434daba538cd1b9fe1582052b880bd7e63") // GanacheAccount4 is the first account exposed on the Ganache test Ethereum node GanacheAccount4 = common.HexToAddress("0x78dc5d2d739606d31509c31d654056a45185ecb6") )
View Source
var ErrInternal = errors.New("internal error")
ErrInternal is used whenever we don't wish to expose internal errors to a client
View Source
var GanacheAccountToPrivateKey = map[common.Address][]byte{ GanacheAccount0: ganacheAccount0PrivateKey, GanacheAccount1: ganacheAccount1PrivateKey, GanacheAccount2: ganacheAccount2PrivateKey, GanacheAccount3: ganacheAccount3PrivateKey, GanacheAccount4: ganacheAccount4PrivateKey, }
GanacheAccountToPrivateKey maps Ganache test Ethereum node accounts to their private key
View Source
var NullAddress = common.HexToAddress("0x0000000000000000000000000000000000000000")
NullAddress is an Ethereum address with all zeroes.
View Source
var TestMaxContentLength = 1024 * 512
TestMaxContentLength is the max Ethereum RPC Content-Length used in tests
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.