Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c146566

Browse files
committedDec 27, 2023
chore: migration to arbi sepolia, bumped typescription beause viem requires v5
1 parent a6b0dee commit c146566

File tree

6 files changed

+33
-33
lines changed

6 files changed

+33
-33
lines changed
 

‎contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"solidity-coverage": "0.8.2",
8282
"ts-node": "^10.9.2",
8383
"typechain": "^8.3.2",
84-
"typescript": "^4.9.5"
84+
"typescript": "^5.3.3"
8585
},
8686
"dependencies": {
8787
"@kleros/vea-contracts": "^0.3.2"

‎contracts/scripts/viem-test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import { createPublicClient, http, getContract } from "viem";
2-
import { arbitrumGoerli } from "viem/chains";
3-
import { homeGatewayToGnosisConfig } from "../viem/generated";
2+
import { arbitrumSepolia } from "viem/chains";
3+
import { disputeKitClassicConfig } from "../viem/generated";
44

55
const main = async () => {
66
const client = createPublicClient({
7-
chain: arbitrumGoerli,
7+
chain: arbitrumSepolia,
88
transport: http(),
99
});
1010

11-
const homeGateway = getContract({
12-
address: homeGatewayToGnosisConfig.address[arbitrumGoerli.id],
13-
abi: homeGatewayToGnosisConfig.abi,
11+
const disputeKit = getContract({
12+
address: disputeKitClassicConfig.address[arbitrumSepolia.id],
13+
abi: disputeKitClassicConfig.abi,
1414
publicClient: client,
1515
});
1616

17-
await homeGateway.read.governor().then(console.log);
17+
await disputeKit.read.governor().then(console.log);
1818
};
1919

2020
main()

‎contracts/wagmi.config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@ function merge(arr1: ContractConfig[], arr2: ContractConfig[]) {
6363
}
6464

6565
const getConfig = async (): Promise<Config> => {
66-
const arbitrumGoerliContracts = await readArtifacts("arbitrumGoerli");
67-
arbitrumGoerliContracts.forEach((c) => console.log("✔ Found arbitrumGoerli artifact: %s", c.name));
68-
let contracts = arbitrumGoerliContracts;
66+
const arbitrumSepoliaContracts = await readArtifacts("arbitrumSepolia", "arbitrumSepoliaDevnet");
67+
arbitrumSepoliaContracts.forEach((c) => console.log("✔ Found arbitrumSepolia artifact: %s", c.name));
68+
let contracts = arbitrumSepoliaContracts;
6969

7070
const chiadoContracts = await readArtifacts("gnosisChiado", "chiado"); // renaming the Hardhat network improves this but breaks many other scripts
7171
chiadoContracts.forEach((c) => console.log("✔ Found chiado artifact: %s", c.name));
7272
contracts = merge(contracts, chiadoContracts);
7373

74-
const goerliContracts = await readArtifacts("goerli");
75-
goerliContracts.forEach((c) => console.log("✔ Found goerli artifact: %s", c.name));
76-
contracts = merge(contracts, goerliContracts);
74+
const sepoliaContracts = await readArtifacts("sepolia");
75+
sepoliaContracts.forEach((c) => console.log("✔ Found sepolia artifact: %s", c.name));
76+
contracts = merge(contracts, sepoliaContracts);
7777

7878
const arbitrumContracts = await readArtifacts("arbitrum");
7979
arbitrumContracts.forEach((c) => console.log("✔ Found arbitrum artifact: %s", c.name));

‎eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"eslint-utils": "^3.0.0"
1919
},
2020
"devDependencies": {
21-
"typescript": "^4.9.5"
21+
"typescript": "^5.3.3"
2222
},
2323
"peerDependencies": {
2424
"eslint": "8.x"

‎web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"lru-cache": "^7.18.3",
6868
"parcel": "2.8.3",
6969
"supabase": "^1.102.2",
70-
"typescript": "^4.9.5"
70+
"typescript": "^5.3.3"
7171
},
7272
"dependencies": {
7373
"@filebase/client": "^0.0.5",
@@ -104,7 +104,7 @@
104104
"react-toastify": "^9.1.3",
105105
"react-use": "^17.4.0",
106106
"styled-components": "^5.3.9",
107-
"viem": "^1.20.3",
107+
"viem": "^1.21.1",
108108
"wagmi": "^1.4.12"
109109
},
110110
"volta": {

‎yarn.lock

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5387,7 +5387,7 @@ __metadata:
53875387
solidity-coverage: 0.8.2
53885388
ts-node: ^10.9.2
53895389
typechain: ^8.3.2
5390-
typescript: ^4.9.5
5390+
typescript: ^5.3.3
53915391
languageName: unknown
53925392
linkType: soft
53935393

@@ -5406,7 +5406,7 @@ __metadata:
54065406
eslint-plugin-promise: ^5.2.0
54075407
eslint-plugin-security: ^1.7.1
54085408
eslint-utils: ^3.0.0
5409-
typescript: ^4.9.5
5409+
typescript: ^5.3.3
54105410
peerDependencies:
54115411
eslint: 8.x
54125412
languageName: unknown
@@ -5506,8 +5506,8 @@ __metadata:
55065506
react-use: ^17.4.0
55075507
styled-components: ^5.3.9
55085508
supabase: ^1.102.2
5509-
typescript: ^4.9.5
5510-
viem: ^1.20.3
5509+
typescript: ^5.3.3
5510+
viem: ^1.21.1
55115511
wagmi: ^1.4.12
55125512
languageName: unknown
55135513
linkType: soft
@@ -31730,13 +31730,13 @@ __metadata:
3173031730
languageName: node
3173131731
linkType: hard
3173231732

31733-
"typescript@npm:^4.9.5":
31734-
version: 4.9.5
31735-
resolution: "typescript@npm:4.9.5"
31733+
"typescript@npm:^5.3.3":
31734+
version: 5.3.3
31735+
resolution: "typescript@npm:5.3.3"
3173631736
bin:
3173731737
tsc: bin/tsc
3173831738
tsserver: bin/tsserver
31739-
checksum: ee000bc26848147ad423b581bd250075662a354d84f0e06eb76d3b892328d8d4440b7487b5a83e851b12b255f55d71835b008a66cbf8f255a11e4400159237db
31739+
checksum: 2007ccb6e51bbbf6fde0a78099efe04dc1c3dfbdff04ca3b6a8bc717991862b39fd6126c0c3ebf2d2d98ac5e960bcaa873826bb2bb241f14277034148f41f6a2
3174031740
languageName: node
3174131741
linkType: hard
3174231742

@@ -31750,13 +31750,13 @@ __metadata:
3175031750
languageName: node
3175131751
linkType: hard
3175231752

31753-
"typescript@patch:typescript@^4.9.5#~builtin<compat/typescript>":
31754-
version: 4.9.5
31755-
resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=ad5954"
31753+
"typescript@patch:typescript@^5.3.3#~builtin<compat/typescript>":
31754+
version: 5.3.3
31755+
resolution: "typescript@patch:typescript@npm%3A5.3.3#~builtin<compat/typescript>::version=5.3.3&hash=ad5954"
3175631756
bin:
3175731757
tsc: bin/tsc
3175831758
tsserver: bin/tsserver
31759-
checksum: 8f6260acc86b56bfdda6004bc53f32ea548f543e8baef7071c8e34d29d292f3e375c8416556c8de10b24deef6933cd1c16a8233dc84a3dd43a13a13265d0faab
31759+
checksum: f61375590b3162599f0f0d5b8737877ac0a7bc52761dbb585d67e7b8753a3a4c42d9a554c4cc929f591ffcf3a2b0602f65ae3ce74714fd5652623a816862b610
3176031760
languageName: node
3176131761
linkType: hard
3176231762

@@ -32469,9 +32469,9 @@ __metadata:
3246932469
languageName: node
3247032470
linkType: hard
3247132471

32472-
"viem@npm:^1.20.3":
32473-
version: 1.20.3
32474-
resolution: "viem@npm:1.20.3"
32472+
"viem@npm:^1.21.1":
32473+
version: 1.21.1
32474+
resolution: "viem@npm:1.21.1"
3247532475
dependencies:
3247632476
"@adraffy/ens-normalize": 1.10.0
3247732477
"@noble/curves": 1.2.0
@@ -32486,7 +32486,7 @@ __metadata:
3248632486
peerDependenciesMeta:
3248732487
typescript:
3248832488
optional: true
32489-
checksum: 92fffbc1715482969b6af7ac6df51cbd4cfe4e6d55226562eb0658a16b9a9b3df743c1ec1aebb63221b5117d4956fb2f71788bc06f6316d054ac402406614b31
32489+
checksum: ba6d296ce271e8068d0dd3cecfbe254cc046cda4acf9393f36045d1a60aa6c669b259dc82a09a3a100c8cb0930142906280782181f341b43496789239332cd9b
3249032490
languageName: node
3249132491
linkType: hard
3249232492

0 commit comments

Comments
 (0)
Please sign in to comment.