Documentation
¶
Index ¶
- Variables
- func DeployTestContract(t *testing.T, ctx context.Context, client *ethclient.Client) (common.Address, *types.Transaction, *contracts.Contracts, error)
- func MakeTrieDatabase(disk ethdb.Database, preimage bool, readOnly bool, isVerkle bool) *triedb.Database
- func NewTestClient(t *testing.T) *ethclient.Client
- func NewTestEthBackend(privateKey *ecdsa.PrivateKey, alloc types.GenesisAlloc, dataDir string) (*node.Node, error)
- func RegisterEthService(stack *node.Node, cfg *ethconfig.Config) *eth.Ethereum
- func SetUpClient(t *testing.T) *ethclient.Client
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PrivateKey, _ = crypto.HexToECDSA("ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80")
Addr = crypto.PubkeyToAddress(PrivateKey.PublicKey)
)
Functions ¶
func DeployTestContract ¶
func MakeTrieDatabase ¶
func MakeTrieDatabase(disk ethdb.Database, preimage bool, readOnly bool, isVerkle bool) *triedb.Database
MakeTrieDatabase constructs a trie database based on the configured scheme.
func NewTestEthBackend ¶
func NewTestEthBackend(privateKey *ecdsa.PrivateKey, alloc types.GenesisAlloc, dataDir string) (*node.Node, error)
func RegisterEthService ¶
RegisterEthService adds an Ethereum client to the stack. The second return value is the full node instance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.