Skip to content

Commit ee721b7

Browse files
authored
Merge pull request #167 from gmx-io/updates
Updates
2 parents 66b5d7d + af0533c commit ee721b7

File tree

1,211 files changed

+475999
-30180
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,211 files changed

+475999
-30180
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,16 @@ jobs:
1212
- name: Install packages
1313
uses: actions/setup-node@v3
1414
with:
15-
node-version: '18.x'
15+
node-version: '20.x'
1616
- run: yarn --ignore-scripts
1717
shell: bash
18+
- name: Check cyclic dependencies
19+
run: yarn hardhat run scripts/cyclicDependencyCheck.ts
20+
shell: bash
21+
- name: Check contract sizing
22+
continue-on-error: true # to show errors as warnings
23+
run: yarn hardhat measure-contract-sizes
24+
shell: bash
1825
- name: Run Tests
1926
run: yarn hardhat test
2027
shell: bash

.gitignore

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,18 @@ keys
1717
out
1818

1919
#Hardhat files
20-
/cache/
21-
artifacts
22-
deployments/localhost
23-
deployments.txt
20+
/cache
21+
/data
22+
/scripts/distributions/out
23+
/artifacts
24+
/deployments/localhost
25+
/deployments.txt
2426
*.log
2527
.cursorignore*
2628

29+
/validation/
30+
2731
.idea
32+
/abi
33+
34+
/validation

.husky/post-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
# Update deployment documentation if deployment files changed
5+
./scripts/generateDeploymentDocs.sh

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
20

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"semi": true,
33
"singleQuote": false,
4+
"bracketSpacing": true,
45
"printWidth": 120
56
}

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,3 +859,21 @@ To print test coverage:
859859
```sh
860860
npx hardhat coverage
861861
```
862+
863+
To check contract sizes:
864+
865+
```sh
866+
npx hardhat measure-contract-sizes
867+
```
868+
869+
To check contract dependencies:
870+
871+
```sh
872+
npx hardhat dependencies <contract file path>
873+
```
874+
875+
To update contracts info table in the `/docs` folder:
876+
877+
```sh
878+
npx hardhat collect-deployments
879+
```

0 commit comments

Comments
 (0)