Skip to content

Commit 2b449c7

Browse files
update viem
1 parent 1f63d3a commit 2b449c7

File tree

7 files changed

+3491
-2730
lines changed

7 files changed

+3491
-2730
lines changed

.github/workflows/bundle.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,20 @@ jobs:
2020
- name: Setup node
2121
uses: actions/setup-node@v3
2222
with:
23-
node-version: 18.16.1
23+
node-version: 20
24+
- name: Install pnpm
25+
uses: pnpm/action-setup@v4
26+
with:
27+
version: 10
28+
run_install: false
2429
- name: Set up foundry
2530
uses: foundry-rs/foundry-toolchain@v1
2631
- name: Install
27-
run: yarn install --frozen-lockfile
32+
run: pnpm install --frozen-lockfile
2833
- name: Bundle
2934
run: |
30-
yarn bundle
31-
yarn format-bundle
35+
pnpm bundle
36+
pnpm format-bundle
3237
git config user.name modules-registry-bot
3338
git config user.email [email protected]
3439
git add .

.github/workflows/test.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ jobs:
2929
- name: Set up foundry
3030
uses: foundry-rs/foundry-toolchain@v1
3131
- name: Install
32-
run: yarn install --frozen-lockfile
32+
run: pnpm install --frozen-lockfile
3333
- name: Check Format
34-
run: yarn prettier . --check
34+
run: pnpm prettier . --check
3535
- name: Test
3636
uses: nick-fields/retry@v2
3737
with:
3838
timeout_minutes: 10
3939
max_attempts: 3
40-
command: yarn test
40+
command: pnpm test
4141
test-branch:
4242
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
4343
env:
@@ -58,16 +58,21 @@ jobs:
5858
- name: Setup node
5959
uses: actions/setup-node@v3
6060
with:
61-
node-version: 18.16.1
61+
node-version: 20
62+
- name: Install pnpm
63+
uses: pnpm/action-setup@v4
64+
with:
65+
version: 10
66+
run_install: false
6267
- name: Set up foundry
6368
uses: foundry-rs/foundry-toolchain@v1
6469
- name: Install
65-
run: yarn install --frozen-lockfile
70+
run: pnpm install --frozen-lockfile
6671
- name: Check Format
67-
run: yarn prettier . --check
72+
run: pnpm prettier . --check
6873
- name: Test
6974
uses: nick-fields/retry@v2
7075
with:
7176
timeout_minutes: 10
7277
max_attempts: 3
73-
command: yarn test
78+
command: pnpm test

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm-lock.yaml

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"license": "MIT",
66
"type": "module",
77
"scripts": {
8-
"test": "NODE_OPTIONS=--experimental-vm-modules yarn exec jest -- -i",
8+
"test": "NODE_OPTIONS=--experimental-vm-modules pnpm jest test.ts -i",
99
"bundle": "tsx ./publish.ts",
1010
"format-all": "prettier --write .",
1111
"format-bundle": "prettier --write modules.json"
1212
},
1313
"devDependencies": {
14-
"@hatsprotocol/modules-sdk": "1.0.0",
14+
"@hatsprotocol/modules-sdk": "1.5.0",
1515
"@types/jest": "^29.5.4",
16-
"@viem/anvil": "0.0.5",
16+
"@viem/anvil": "0.0.10",
1717
"async-sema": "^3.1.1",
1818
"axios": "^1.6.1",
1919
"dotenv": "^16.3.1",
@@ -24,7 +24,7 @@
2424
"tslib": "^2.6.2",
2525
"tsx": "^4.7.0",
2626
"typescript": "^5.1.6",
27-
"viem": "1.16.5",
27+
"viem": "2.26.3",
2828
"zod": "^3.22.4"
2929
}
3030
}

0 commit comments

Comments
 (0)