Skip to content

Commit 674f127

Browse files
committed
updated to use mocha & chai
1 parent b7ce636 commit 674f127

File tree

14 files changed

+6721
-19951
lines changed

14 files changed

+6721
-19951
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
run: npm ci
2727
env:
2828
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
- name: Prepare CI
30+
run: npm run ci-prepare
2931
- name: Build
3032
run: npm run build:ci
3133
- name: Test

.mocharc.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require:
2+
- 'hardhat'
3+
- './test/setup/ChaiSetup.ts'
4+
file:
5+
- './test/setup/AccountsLoader.ts'
6+
spec:
7+
- 'test/**/*.spec.ts'

example.secrets.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"networks": {
3+
"rinkeby": {
4+
"url": "https://rinkeby.infura.io/v3/YOUR_PROJECT_ID"
5+
}
6+
},
7+
"etherscanApiKey": "YOUR_API_KEY"
8+
}

hardhat.config.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,32 @@
11
import '@nomiclabs/hardhat-ethers';
2+
import '@nomiclabs/hardhat-etherscan';
23
import '@nomiclabs/hardhat-waffle';
34
import '@typechain/hardhat';
45
import { HardhatUserConfig } from 'hardhat/config';
6+
import { etherscanApiKey, networks } from './.secrets.json';
57

68
const hardhatConfig: HardhatUserConfig = {
79
solidity: {
810
version: '0.8.9',
911
settings: {
1012
optimizer: {
1113
enabled: true,
12-
runs: 200,
14+
runs: 1000,
1315
},
1416
},
1517
},
1618

1719
typechain: {
20+
externalArtifacts: [],
1821
outDir: 'types/contracts',
1922
target: 'ethers-v5',
2023
},
24+
25+
networks,
26+
27+
etherscan: {
28+
apiKey: etherscanApiKey,
29+
},
2130
};
2231

2332
export default hardhatConfig;

jest.config.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)