diff --git a/README.md b/README.md index 2f2ad90..dcb6db3 100644 --- a/README.md +++ b/README.md @@ -1,32 +1,38 @@ ## Edgeware Frontier Tester -Unit tests for Edgeware Frontier. +Unit tests for Edgeware Frontier. -You'll need to run a frontier-compatible Edgeware node with dev signing enabled. -You can use [jake.frontier-up-2](https://github.com/hicommonwealth/edgeware-node/tree/jake.frontier-up-2). -Start the Edgeware node with the following command. +You'll need to run a frontier-compatible [Edgeware node](https://github.com/hicommonwealth/edgeware-node). + +Start the Edgeware node with the following command: ``` -./target/release/edgeware --dev --enable-dev-signer +./target/release/edgeware --dev ``` To run all included frontier tests, use the following: ``` -yarn test web3tests +yarn all-tests +``` + +To run only the Uniswap add liquidity test, use the following: + +``` +yarn add-liquidity ``` To run a specific test: ``` -yarn test web3tests/[testName] +ts-mocha --timeout 100000 --exit web3tests/[testName] ``` The following functionality is tested: - Adding Liquidity to a fresh Uniswap deployment - Generating an ERC20 Token Allowance -- Create Factory Contract -- Create2 Factory Contract +- Create Factory Contract +- Create2 Factory Contract - Calling a precompile (ECRecover) - Event emission and subscription - Fallback function diff --git a/package.json b/package.json index 3be157d..fbf6b0a 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,7 @@ "scripts": { "compile": "truffle compile", "add-liquidity": "mocha --timeout 1000000 --exit web3tests/addLiquidity.js", - "init-eth-balance": "ts-node initDefaultAccountBalance.ts", - "test": "ts-mocha --timeout 100000 --exit" + "all-tests": "ts-mocha --timeout 100000 --exit web3tests" }, "author": "", "license": "ISC",