Skip to content

Commit

Permalink
fix: update viem
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Oct 5, 2023
1 parent bcfb116 commit d3dd63d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 21 deletions.
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"dependencies": {
"@ethersproject/bytes": "^5.7.0",
"tiny-invariant": "^1.3.1",
"viem": "^1.10.9"
"viem": "^1.15.3"
},
"devDependencies": {
"@types/fs-extra": "^11.0.1",
Expand Down
19 changes: 1 addition & 18 deletions packages/sdk/src/common/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type Address, type Chain } from 'viem';
import { goerli, mainnet } from 'viem/chains';
import { goerli, mainnet, holesky } from 'viem/chains';

export enum CHAINS {
Goerli = 5,
Expand Down Expand Up @@ -81,23 +81,6 @@ export const PERMIT_MESSAGE_TYPES = {
Permit: EIP2612_TYPE,
} as const;

export const holesky: Chain = {
id: 17000,
network: 'holesky',
name: 'Holesky',
nativeCurrency: { name: 'Holesky Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.holesky.ethpandaops.io'],
},
public: {
http: ['https://rpc.holesky.ethpandaops.io'],
},
},
contracts: {},
testnet: true,
} as const;

export const VIEM_CHAINS: { [key in CHAINS]: Chain } = {
[CHAINS.Mainnet]: mainnet,
[CHAINS.Goerli]: goerli,
Expand Down
26 changes: 24 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2627,7 +2627,7 @@ __metadata:
rimraf: ^5.0.1
tiny-invariant: ^1.3.1
typescript: 5.1.6
viem: ^1.10.9
viem: ^1.15.3
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -13823,7 +13823,7 @@ __metadata:
languageName: node
linkType: hard

"viem@npm:^1.10.3, viem@npm:^1.10.9":
"viem@npm:^1.10.3":
version: 1.10.9
resolution: "viem@npm:1.10.9"
dependencies:
Expand All @@ -13845,6 +13845,28 @@ __metadata:
languageName: node
linkType: hard

"viem@npm:^1.15.3":
version: 1.15.3
resolution: "viem@npm:1.15.3"
dependencies:
"@adraffy/ens-normalize": 1.9.4
"@noble/curves": 1.2.0
"@noble/hashes": 1.3.2
"@scure/bip32": 1.3.2
"@scure/bip39": 1.2.1
"@types/ws": ^8.5.5
abitype: 0.9.8
isomorphic-ws: 5.0.0
ws: 8.13.0
peerDependencies:
typescript: ">=5.0.4"
peerDependenciesMeta:
typescript:
optional: true
checksum: 61d573158de32896f9f7957ae2ff943953838385f9b04414a55e6041f0e070827e4c5cfc6196485e0b0101c3dcbfdfd262fb54040817b257b38216a7f50e3384
languageName: node
linkType: hard

"wagmi@npm:^0.12.19":
version: 0.12.19
resolution: "wagmi@npm:0.12.19"
Expand Down

0 comments on commit d3dd63d

Please sign in to comment.