Skip to content

Commit

Permalink
add abitype as devDependency and Register Address as string
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 committed Apr 1, 2024
1 parent 991c908 commit 23179fa
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@types/react": "^18.0.9",
"@types/react-copy-to-clipboard": "^5.0.4",
"@typescript-eslint/eslint-plugin": "^5.39.0",
"abitype": "^1.0.2",
"autoprefixer": "^10.4.12",
"eslint": "^8.15.0",
"eslint-config-next": "^14.0.4",
Expand Down
8 changes: 7 additions & 1 deletion packages/nextjs/types/abitype/abi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ import "abitype";

type AddressType = string;

declare module "abitype" {
export interface Register {
AddressType: AddressType;
}
}

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

declare module "abitype" {
declare module "wagmi/node_moudles/abitype" {
export interface Register {
AddressType: AddressType;
}
Expand Down
16 changes: 16 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2258,6 +2258,7 @@ __metadata:
"@typescript-eslint/eslint-plugin": ^5.39.0
"@uniswap/sdk-core": ^4.0.1
"@uniswap/v2-sdk": ^3.0.1
abitype: ^1.0.2
autoprefixer: ^10.4.12
blo: ^1.0.1
daisyui: 4.5.0
Expand Down Expand Up @@ -3962,6 +3963,21 @@ __metadata:
languageName: node
linkType: hard

"abitype@npm:^1.0.2":
version: 1.0.2
resolution: "abitype@npm:1.0.2"
peerDependencies:
typescript: ">=5.0.4"
zod: ^3 >=3.22.0
peerDependenciesMeta:
typescript:
optional: true
zod:
optional: true
checksum: 0986ec822ad279e7ea1d15398f88bad335a58419799f8ba80e3d5712fdd5a2b5858b387a1213d9da31571c3a42d10ca878a463cce11dae1bb17dbe4deeb40db4
languageName: node
linkType: hard

"abstract-level@npm:^1.0.0, abstract-level@npm:^1.0.2, abstract-level@npm:^1.0.3":
version: 1.0.3
resolution: "abstract-level@npm:1.0.3"
Expand Down

0 comments on commit 23179fa

Please sign in to comment.