Skip to content

Integration tests for the Ethereum JSON-RPC API in Lotus

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

polyphene/lotus-eth-api-integration-tests

Repository files navigation

Lotus Eth JSON-RPC integration tests

This project holds a suite of integration tests for the Ethereum JSON-RPC API built in Lotus with the Filecoin EVM runtime.

It takes advantage of the hardhat framework.

Running

By default, the test suite will run locally, expecting a local Lotus network and the Ethereum JSON RPC to be accessible on http://localhost:1234/rpc/v0 .

A private key should be set in an .env file, and an actor should have been deployed at the related address. Sending some FIL there is enough.

Once properly initialized, you may take full advantage of the power of hardhat with the few following commands.

Compile smart contracts:

npx hardhat compile

And run the test suites:

# run all tests
npx hardhat test
# or run only the SimpleCoin test suite with ethers.js
npx hardhat test test/ethers.js/SimpleCoin.js

Contributing

This project follows the default structure of a hardhat project, basically made of:

hardhat.config.js the hardhat configuration file.
contracts/ where the sources of smart contracts should be.
test/ where test scripts should go.

License

Dual-licensed: MIT, Apache Software License v2, by way of the Permissive License Stack.

About

Integration tests for the Ethereum JSON-RPC API in Lotus

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published