Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update and typescript version #499

Merged
merged 2 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/hardhat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"solidity-coverage": "^0.8.2",
"ts-node": "^10.9.1",
"typechain": "^8.1.0",
"typescript": "^4.9.5"
"typescript": "^5.1.6"
},
"dependencies": {
"@openzeppelin/contracts": "^4.8.1",
Expand Down
4 changes: 4 additions & 0 deletions packages/nextjs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ const nextConfig = {
eslint: {
ignoreDuringBuilds: process.env.NEXT_PUBLIC_IGNORE_BUILD_ERROR === "true",
},
webpack: config => {
config.resolve.fallback = { fs: false, net: false, tls: false };
return config;
},
};

module.exports = nextConfig;
4 changes: 2 additions & 2 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"react-hot-toast": "^2.4.0",
"use-debounce": "^8.0.4",
"usehooks-ts": "^2.7.2",
"viem": "1.2.1",
"viem": "^1.6.7",
"wagmi": "1.3.10",
"zustand": "^4.1.2"
},
Expand All @@ -50,7 +50,7 @@
"postcss": "^8.4.16",
"prettier": "^2.8.4",
"tailwindcss": "^3.3.3",
"typescript": "^4.9.5",
"typescript": "^5.1.6",
"vercel": "^28.15.1"
}
}
6 changes: 6 additions & 0 deletions packages/nextjs/types/abitype/abi.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import "abitype";

declare module "viem/node_modules/abitype" {
export interface Config {
AddressType: string;
}
}

declare module "abitype" {
export interface Config {
AddressType: string;
Expand Down
87 changes: 75 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,15 @@ __metadata:
languageName: node
linkType: hard

"@noble/curves@npm:1.1.0":
version: 1.1.0
resolution: "@noble/curves@npm:1.1.0"
dependencies:
"@noble/hashes": 1.3.1
checksum: 2658cdd3f84f71079b4e3516c47559d22cf4b55c23ac8ee9d2b1f8e5b72916d9689e59820e0f9d9cb4a46a8423af5b56dc6bb7782405c88be06a015180508db5
languageName: node
linkType: hard

"@noble/ed25519@npm:^1.7.0":
version: 1.7.1
resolution: "@noble/ed25519@npm:1.7.1"
Expand All @@ -1192,6 +1201,13 @@ __metadata:
languageName: node
linkType: hard

"@noble/hashes@npm:1.3.1":
version: 1.3.1
resolution: "@noble/hashes@npm:1.3.1"
checksum: 7fdefc0f7a0c1ec27acc6ff88841793e3f93ec4ce6b8a6a12bfc0dd70ae6b7c4c82fe305fdfeda1735d5ad4a9eebe761e6693b3d355689c559e91242f4bc95b1
languageName: node
linkType: hard

"@noble/hashes@npm:^1.1.2":
version: 1.1.5
resolution: "@noble/hashes@npm:1.1.5"
Expand Down Expand Up @@ -1795,7 +1811,7 @@ __metadata:
solidity-coverage: ^0.8.2
ts-node: ^10.9.1
typechain: ^8.1.0
typescript: ^4.9.5
typescript: ^5.1.6
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -1832,11 +1848,11 @@ __metadata:
react-fast-marquee: ^1.3.5
react-hot-toast: ^2.4.0
tailwindcss: ^3.3.3
typescript: ^4.9.5
typescript: ^5.1.6
use-debounce: ^8.0.4
usehooks-ts: ^2.7.2
vercel: ^28.15.1
viem: 1.2.1
viem: ^1.6.7
wagmi: 1.3.10
zustand: ^4.1.2
languageName: unknown
Expand Down Expand Up @@ -2602,6 +2618,15 @@ __metadata:
languageName: node
linkType: hard

"@types/ws@npm:^8.5.4":
version: 8.5.5
resolution: "@types/ws@npm:8.5.5"
dependencies:
"@types/node": "*"
checksum: d00bf8070e6938e3ccf933010921c6ce78ac3606696ce37a393b27a9a603f7bd93ea64f3c5fa295a2f743575ba9c9a9fdb904af0f5fe2229bf2adf0630386e4a
languageName: node
linkType: hard

"@typescript-eslint/eslint-plugin@npm:^5.39.0":
version: 5.40.0
resolution: "@typescript-eslint/eslint-plugin@npm:5.40.0"
Expand Down Expand Up @@ -3748,6 +3773,21 @@ __metadata:
languageName: node
linkType: hard

"abitype@npm:0.9.3":
version: 0.9.3
resolution: "abitype@npm:0.9.3"
peerDependencies:
typescript: ">=5.0.4"
zod: ^3 >=3.19.1
peerDependenciesMeta:
typescript:
optional: true
zod:
optional: true
checksum: f97c5a118180563b9ed8b97da492a82d3ce53dcd7d96c87764e90dbe84c04ae72dd5703d1ed5a54601033ab1772b8a235a1b5aadaf7aad6c4b5fdad7fd3a69a7
languageName: node
linkType: hard

"abort-controller@npm:^3.0.0":
version: 3.0.0
resolution: "abort-controller@npm:3.0.0"
Expand Down Expand Up @@ -13308,13 +13348,13 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^4.9.5":
version: 4.9.5
resolution: "typescript@npm:4.9.5"
"typescript@npm:^5.1.6":
version: 5.1.6
resolution: "typescript@npm:5.1.6"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: ee000bc26848147ad423b581bd250075662a354d84f0e06eb76d3b892328d8d4440b7487b5a83e851b12b255f55d71835b008a66cbf8f255a11e4400159237db
checksum: b2f2c35096035fe1f5facd1e38922ccb8558996331405eb00a5111cc948b2e733163cc22fab5db46992aba7dd520fff637f2c1df4996ff0e134e77d3249a7350
languageName: node
linkType: hard

Expand All @@ -13328,13 +13368,13 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@^4.9.5#~builtin<compat/typescript>":
version: 4.9.5
resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=a1c5e5"
"typescript@patch:typescript@^5.1.6#~builtin<compat/typescript>":
version: 5.1.6
resolution: "typescript@patch:typescript@npm%3A5.1.6#~builtin<compat/typescript>::version=5.1.6&hash=a1c5e5"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 2eee5c37cad4390385db5db5a8e81470e42e8f1401b0358d7390095d6f681b410f2c4a0c496c6ff9ebd775423c7785cdace7bcdad76c7bee283df3d9718c0f20
checksum: 21e88b0a0c0226f9cb9fd25b9626fb05b4c0f3fddac521844a13e1f30beb8f14e90bd409a9ac43c812c5946d714d6e0dee12d5d02dfc1c562c5aacfa1f49b606
languageName: node
linkType: hard

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

"viem@npm:1.2.1, viem@npm:^1.0.0":
"viem@npm:^1.0.0":
version: 1.2.1
resolution: "viem@npm:1.2.1"
dependencies:
Expand All @@ -13656,6 +13696,29 @@ __metadata:
languageName: node
linkType: hard

"viem@npm:^1.6.7":
version: 1.6.7
resolution: "viem@npm:1.6.7"
dependencies:
"@adraffy/ens-normalize": 1.9.0
"@noble/curves": 1.1.0
"@noble/hashes": 1.3.0
"@scure/bip32": 1.3.0
"@scure/bip39": 1.2.0
"@types/ws": ^8.5.4
"@wagmi/chains": 1.7.0
abitype: 0.9.3
isomorphic-ws: 5.0.0
ws: 8.12.0
peerDependencies:
typescript: ">=5.0.4"
peerDependenciesMeta:
typescript:
optional: true
checksum: d923f46c2e0e66ef542162d68a5faed5719c12fd30de22c4a4701cbd81093346166ff18b5d4fe6dabef08e20393c3f507f9fbc18af5798f4125888b21bbfc6e4
languageName: node
linkType: hard

"wagmi@npm:1.3.10":
version: 1.3.10
resolution: "wagmi@npm:1.3.10"
Expand Down