Skip to content

paritytech/evm-test-suite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EVM Test Suite

This repository contains a test suite for Ethereum rpc methods.

Prerequisites

  • Deno runtime installed (v1.40 or higher recommended)

Running Tests

# 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

Building contracts

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

Linting

To check code formatting and run linter:

deno task lint

Test Configuration

Tests are configured via environment variables:

  • RPC_PORT - Specify custom JSON-RPC port (default: 8545)

  • START_GETH=1 - Start Geth

  • USE_GETH=1 - Run tests against Geth.

  • GETH_PATH - Path to the Geth binary (default: to geth)

  • START_ETH_RPC=1 - Automatically start revive eth-rpc server

  • ETH_RPC_PATH - Path to the eth-rpc binary (default: to ~/polkadot-sdk/target/debug/eth-rpc)

  • USE_REVIVE=evm|pvm - Whether to run tests against revive with evm or pvm bytecode, default to evm if not specified

  • START_REVIVE_DEV_NODE=1 - Start Revive dev node

  • REVIVE_DEV_NODE_PATH - Path to the Revive dev node binary (default: to ~/polkadot-sdk/target/debug/revive-dev-node)

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 11