This repository contains a test suite for Ethereum rpc methods.
- Deno runtime installed (v1.40 or higher recommended)
# start revive and eth rpc, then run tests with pvm bytecode
deno task test:pvm
# start revive and eth rpc, then run tests with evm bytecode
deno task test:evm
# start geth, then run tests with evm bytecode
deno task test:geth
Contracts bytecode and abi is checked in into this repository, if you need to add new contracts, you can simply run the build command:
deno task build
To check code formatting and run linter:
deno task lint
Tests are configured via environment variables:
START_GETH=1
- Automatically start GethSTART_REVIVE_DEV_NODE=1
- Automatically start Revive dev nodeSTART_ETH_RPC=1
- Automatically start ETH RPC serverUSE_GETH=1
- Run tests against Geth (uses EVM bytecode)USE_ETH_RPC=1
- Run tests against ETH RPC with both PVM and EVM bytecode