Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Update package.json commands and README
Browse files Browse the repository at this point in the history
  • Loading branch information
raykyri committed Jun 3, 2021
1 parent 789e33f commit a62a5ce
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a62a5ce

Please sign in to comment.