diff --git a/packages/ensjs/package.json b/packages/ensjs/package.json index a018a4ab..b632cd4b 100644 --- a/packages/ensjs/package.json +++ b/packages/ensjs/package.json @@ -143,10 +143,10 @@ "typedoc": "^0.24.8", "typedoc-plugin-markdown": "^4.0.0-next.16", "typescript": "^5.1.6", - "viem": "^1.2.9", + "viem": "^1.6.0", "wait-on": "^6.0.1" }, "peerDependencies": { - "viem": "^1.2.9" + "viem": "^1.6.0" } } diff --git a/packages/ensjs/src/clients/public.ts b/packages/ensjs/src/clients/public.ts index f54ebf94..b12fd9d1 100644 --- a/packages/ensjs/src/clients/public.ts +++ b/packages/ensjs/src/clients/public.ts @@ -21,7 +21,7 @@ export type EnsPublicClientConfig< ClientConfig, 'batch' | 'key' | 'name' | 'pollingInterval' | 'transport' > & { - chain: Exclude['chain'], undefined> + chain: TChain } export type EnsPublicClient< diff --git a/packages/ensjs/src/clients/subgraph.ts b/packages/ensjs/src/clients/subgraph.ts index c5418490..b7442266 100644 --- a/packages/ensjs/src/clients/subgraph.ts +++ b/packages/ensjs/src/clients/subgraph.ts @@ -20,7 +20,7 @@ export type EnsSubgraphClientConfig< ClientConfig, 'batch' | 'key' | 'name' | 'pollingInterval' | 'transport' > & { - chain: Exclude['chain'], undefined> + chain: TChain } export type EnsSubgraphClient< diff --git a/packages/ensjs/src/clients/wallet.ts b/packages/ensjs/src/clients/wallet.ts index 3af5179f..7a4c4d25 100644 --- a/packages/ensjs/src/clients/wallet.ts +++ b/packages/ensjs/src/clients/wallet.ts @@ -26,7 +26,7 @@ export type EnsWalletClientConfig< ClientConfig, 'account' | 'chain' | 'key' | 'name' | 'pollingInterval' | 'transport' > & { - chain: Exclude['chain'], undefined> + chain: TChain } export type EnsWalletClient< diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 25317f90..a41b0ed8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -141,7 +141,7 @@ importers: typedoc: ^0.24.8 typedoc-plugin-markdown: ^4.0.0-next.16 typescript: ^5.1.6 - viem: ^1.2.9 + viem: ^1.6.0 wait-on: ^6.0.1 dependencies: '@adraffy/ens-normalize': 1.9.0 @@ -189,7 +189,7 @@ importers: typedoc: 0.24.8_typescript@5.1.6 typedoc-plugin-markdown: 4.0.0-next.16_typedoc@0.24.8 typescript: 5.1.6 - viem: 1.2.9_typescript@5.1.6 + viem: 1.6.0_typescript@5.1.6 wait-on: 6.0.1 packages: @@ -1503,6 +1503,12 @@ packages: dependencies: '@noble/hashes': 1.3.0 + /@noble/curves/1.1.0: + resolution: {integrity: sha512-091oBExgENk/kGj3AZmtBDMpxQPDtxQABR2B9lb1JbVTs6ytdzZNwvhxQ4MWasRNEzlbEH8jCWFCwhF/Obj5AA==} + dependencies: + '@noble/hashes': 1.3.1 + dev: true + /@noble/hashes/1.1.2: resolution: {integrity: sha512-KYRCASVTv6aeUi1tsF8/vpyR7zpfs3FUzy2Jqm+MU+LmUKhQ0y2FpfwqkCcxSg2ua4GALJd8k2R76WxwZGbQpA==} dev: true @@ -1510,6 +1516,10 @@ packages: /@noble/hashes/1.3.0: resolution: {integrity: sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==} + /@noble/hashes/1.3.1: + resolution: {integrity: sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==} + engines: {node: '>= 16'} + /@noble/secp256k1/1.6.3: resolution: {integrity: sha512-T04e4iTurVy7I8Sw4+c5OSN9/RkPlo1uKxAomtxQNLq8j1uPAqnsqG1bqvY3Jv7c13gyr6dui0zmh/I3+f/JaQ==} dev: true @@ -1896,7 +1906,7 @@ packages: resolution: {integrity: sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==} dependencies: '@noble/curves': 1.0.0 - '@noble/hashes': 1.3.0 + '@noble/hashes': 1.3.1 '@scure/base': 1.1.1 /@scure/bip39/1.1.0: @@ -1909,7 +1919,7 @@ packages: /@scure/bip39/1.2.0: resolution: {integrity: sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==} dependencies: - '@noble/hashes': 1.3.0 + '@noble/hashes': 1.3.1 '@scure/base': 1.1.1 /@sentry/core/5.30.0: @@ -2459,6 +2469,12 @@ packages: resolution: {integrity: sha512-RBz2uRZVCXuMg93WD//aTS5B120QlT4lR/gL+935QtGsKHLS6sCtZBaKfWjIfk7ZXv/r8mtGbwjVIee6/3XTow==} dev: true + /@types/ws/8.5.5: + resolution: {integrity: sha512-lwhs8hktwxSjf9UaZ9tG5M03PGogvFaH8gUgLNbN9HKIg0dvv6q+gkSuJ8HN4/VbyxkuLzCjlN7GquQ0gUJfIg==} + dependencies: + '@types/node': 20.3.3 + dev: true + /@types/yargs-parser/21.0.0: resolution: {integrity: sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==} dev: true @@ -2642,8 +2658,8 @@ packages: typescript: 5.0.4 dev: false - /@wagmi/chains/1.2.0_typescript@5.1.6: - resolution: {integrity: sha512-dmDRipsE54JfyudOBkuhEexqQWcrZqxn/qiujG8SBzMh/az/AH5xlJSA+j1CPWTx9+QofSMF3B7A4gb6XRmSaQ==} + /@wagmi/chains/1.6.0_typescript@5.1.6: + resolution: {integrity: sha512-5FRlVxse5P4ZaHG3GTvxwVANSmYJas1eQrTBHhjxVtqXoorm0aLmCHbhmN8Xo1yu09PaWKlleEvfE98yH4AgIw==} peerDependencies: typescript: '>=5.0.4' peerDependenciesMeta: @@ -2687,12 +2703,14 @@ packages: typescript: 5.0.4 dev: false - /abitype/0.8.11_typescript@5.1.6: - resolution: {integrity: sha512-bM4v2dKvX08sZ9IU38IN5BKmN+ZkOSd2oI4a9f0ejHYZQYV6cDr7j+d95ga0z2XHG36Y4jzoG5Z7qDqxp7fi/A==} + /abitype/0.9.3_typescript@5.1.6: + resolution: {integrity: sha512-dz4qCQLurx97FQhnb/EIYTk/ldQ+oafEDUqC0VVIeQS1Q48/YWt/9YNfMmp9SLFqN41ktxny3c8aYxHjmFIB/w==} peerDependencies: typescript: '>=5.0.4' zod: ^3 >=3.19.1 peerDependenciesMeta: + typescript: + optional: true zod: optional: true dependencies: @@ -9587,8 +9605,8 @@ packages: - zod dev: false - /viem/1.2.9_typescript@5.1.6: - resolution: {integrity: sha512-EnEbTuAAHv43unUgMISdQXbD9mrhZLvOdmf6eRGbDFl+XwP/PEzZAT79RaWAuDPnLXGMP1gBCJF++NFjSMukUw==} + /viem/1.6.0_typescript@5.1.6: + resolution: {integrity: sha512-ae9Twkd0q2Qlj4yYpWjb4DzYAhKY0ibEpRH8FJaTywZXNpTjFidSdBaT0CVn1BaH7O7cnX4/O47zvDUMGJD1AA==} peerDependencies: typescript: '>=5.0.4' peerDependenciesMeta: @@ -9596,12 +9614,13 @@ packages: optional: true dependencies: '@adraffy/ens-normalize': 1.9.0 - '@noble/curves': 1.0.0 + '@noble/curves': 1.1.0 '@noble/hashes': 1.3.0 '@scure/bip32': 1.3.0 '@scure/bip39': 1.2.0 - '@wagmi/chains': 1.2.0_typescript@5.1.6 - abitype: 0.8.11_typescript@5.1.6 + '@types/ws': 8.5.5 + '@wagmi/chains': 1.6.0_typescript@5.1.6 + abitype: 0.9.3_typescript@5.1.6 isomorphic-ws: 5.0.0_ws@8.12.0 typescript: 5.1.6 ws: 8.12.0