@ensdomains/ensjs 3.0.0-beta.2 → 3.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/cjs/contracts/consts.js +46 -1
  2. package/dist/cjs/contracts/consts.js.map +1 -1
  3. package/dist/cjs/errors/version.js +1 -1
  4. package/dist/cjs/errors/version.js.map +1 -1
  5. package/dist/esm/contracts/consts.js +46 -1
  6. package/dist/esm/contracts/consts.js.map +1 -1
  7. package/dist/esm/errors/version.js +1 -1
  8. package/dist/esm/errors/version.js.map +1 -1
  9. package/dist/types/clients/decorators/wallet.d.ts +12 -12
  10. package/dist/types/clients/wallet.d.ts +12 -12
  11. package/dist/types/contracts/consts.d.ts +45 -2
  12. package/dist/types/contracts/consts.d.ts.map +1 -1
  13. package/dist/types/errors/version.d.ts +1 -1
  14. package/dist/types/errors/version.d.ts.map +1 -1
  15. package/dist/types/functions/dns/importDnsName.d.ts +24 -24
  16. package/dist/types/functions/wallet/commitName.d.ts +24 -24
  17. package/dist/types/functions/wallet/createSubname.d.ts +24 -24
  18. package/dist/types/functions/wallet/deleteSubname.d.ts +24 -24
  19. package/dist/types/functions/wallet/registerName.d.ts +24 -24
  20. package/dist/types/functions/wallet/renewNames.d.ts +24 -24
  21. package/dist/types/functions/wallet/setAbiRecord.d.ts +24 -24
  22. package/dist/types/functions/wallet/setAddressRecord.d.ts +24 -24
  23. package/dist/types/functions/wallet/setChildFuses.d.ts +24 -24
  24. package/dist/types/functions/wallet/setContentHashRecord.d.ts +24 -24
  25. package/dist/types/functions/wallet/setFuses.d.ts +24 -24
  26. package/dist/types/functions/wallet/setPrimaryName.d.ts +24 -24
  27. package/dist/types/functions/wallet/setRecords.d.ts +24 -24
  28. package/dist/types/functions/wallet/setResolver.d.ts +24 -24
  29. package/dist/types/functions/wallet/setTextRecord.d.ts +24 -24
  30. package/dist/types/functions/wallet/transferName.d.ts +24 -24
  31. package/dist/types/functions/wallet/unwrapName.d.ts +24 -24
  32. package/dist/types/functions/wallet/wrapName.d.ts +24 -24
  33. package/package.json +1 -1
  34. package/src/contracts/consts.ts +51 -12
  35. package/src/errors/version.ts +1 -1
@@ -76,17 +76,17 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
76
76
  [x: `address[${string}]`]: undefined;
77
77
  [x: `bool[${string}]`]: undefined;
78
78
  [x: `bytes[${string}]`]: undefined;
79
- [x: `bytes2[${string}]`]: undefined;
80
- [x: `bytes8[${string}]`]: undefined;
79
+ [x: `bytes3[${string}]`]: undefined;
80
+ [x: `bytes10[${string}]`]: undefined;
81
81
  [x: `bytes16[${string}]`]: undefined;
82
82
  [x: `bytes1[${string}]`]: undefined;
83
- [x: `bytes3[${string}]`]: undefined;
83
+ [x: `bytes2[${string}]`]: undefined;
84
84
  [x: `bytes4[${string}]`]: undefined;
85
85
  [x: `bytes5[${string}]`]: undefined;
86
86
  [x: `bytes6[${string}]`]: undefined;
87
87
  [x: `bytes7[${string}]`]: undefined;
88
+ [x: `bytes8[${string}]`]: undefined;
88
89
  [x: `bytes9[${string}]`]: undefined;
89
- [x: `bytes10[${string}]`]: undefined;
90
90
  [x: `bytes11[${string}]`]: undefined;
91
91
  [x: `bytes12[${string}]`]: undefined;
92
92
  [x: `bytes13[${string}]`]: undefined;
@@ -109,8 +109,8 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
109
109
  [x: `bytes31[${string}]`]: undefined;
110
110
  [x: `bytes32[${string}]`]: undefined;
111
111
  [x: `int[${string}]`]: undefined;
112
- [x: `int8[${string}]`]: undefined;
113
112
  [x: `int16[${string}]`]: undefined;
113
+ [x: `int8[${string}]`]: undefined;
114
114
  [x: `int24[${string}]`]: undefined;
115
115
  [x: `int32[${string}]`]: undefined;
116
116
  [x: `int40[${string}]`]: undefined;
@@ -142,8 +142,8 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
142
142
  [x: `int248[${string}]`]: undefined;
143
143
  [x: `int256[${string}]`]: undefined;
144
144
  [x: `uint[${string}]`]: undefined;
145
- [x: `uint8[${string}]`]: undefined;
146
145
  [x: `uint16[${string}]`]: undefined;
146
+ [x: `uint8[${string}]`]: undefined;
147
147
  [x: `uint24[${string}]`]: undefined;
148
148
  [x: `uint32[${string}]`]: undefined;
149
149
  [x: `uint40[${string}]`]: undefined;
@@ -178,17 +178,17 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
178
178
  address?: undefined;
179
179
  bool?: undefined;
180
180
  bytes?: undefined;
181
- bytes2?: undefined;
182
- bytes8?: undefined;
181
+ bytes3?: undefined;
182
+ bytes10?: undefined;
183
183
  bytes16?: undefined;
184
184
  bytes1?: undefined;
185
- bytes3?: undefined;
185
+ bytes2?: undefined;
186
186
  bytes4?: undefined;
187
187
  bytes5?: undefined;
188
188
  bytes6?: undefined;
189
189
  bytes7?: undefined;
190
+ bytes8?: undefined;
190
191
  bytes9?: undefined;
191
- bytes10?: undefined;
192
192
  bytes11?: undefined;
193
193
  bytes12?: undefined;
194
194
  bytes13?: undefined;
@@ -210,8 +210,8 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
210
210
  bytes30?: undefined;
211
211
  bytes31?: undefined;
212
212
  bytes32?: undefined;
213
- int8?: undefined;
214
213
  int16?: undefined;
214
+ int8?: undefined;
215
215
  int24?: undefined;
216
216
  int32?: undefined;
217
217
  int40?: undefined;
@@ -242,8 +242,8 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
242
242
  int240?: undefined;
243
243
  int248?: undefined;
244
244
  int256?: undefined;
245
- uint8?: undefined;
246
245
  uint16?: undefined;
246
+ uint8?: undefined;
247
247
  uint24?: undefined;
248
248
  uint32?: undefined;
249
249
  uint40?: undefined;
@@ -363,17 +363,17 @@ declare namespace wrapName {
363
363
  [x: `address[${string}]`]: undefined;
364
364
  [x: `bool[${string}]`]: undefined;
365
365
  [x: `bytes[${string}]`]: undefined;
366
- [x: `bytes2[${string}]`]: undefined;
367
- [x: `bytes8[${string}]`]: undefined;
366
+ [x: `bytes3[${string}]`]: undefined;
367
+ [x: `bytes10[${string}]`]: undefined;
368
368
  [x: `bytes16[${string}]`]: undefined;
369
369
  [x: `bytes1[${string}]`]: undefined;
370
- [x: `bytes3[${string}]`]: undefined;
370
+ [x: `bytes2[${string}]`]: undefined;
371
371
  [x: `bytes4[${string}]`]: undefined;
372
372
  [x: `bytes5[${string}]`]: undefined;
373
373
  [x: `bytes6[${string}]`]: undefined;
374
374
  [x: `bytes7[${string}]`]: undefined;
375
+ [x: `bytes8[${string}]`]: undefined;
375
376
  [x: `bytes9[${string}]`]: undefined;
376
- [x: `bytes10[${string}]`]: undefined;
377
377
  [x: `bytes11[${string}]`]: undefined;
378
378
  [x: `bytes12[${string}]`]: undefined;
379
379
  [x: `bytes13[${string}]`]: undefined;
@@ -396,8 +396,8 @@ declare namespace wrapName {
396
396
  [x: `bytes31[${string}]`]: undefined;
397
397
  [x: `bytes32[${string}]`]: undefined;
398
398
  [x: `int[${string}]`]: undefined;
399
- [x: `int8[${string}]`]: undefined;
400
399
  [x: `int16[${string}]`]: undefined;
400
+ [x: `int8[${string}]`]: undefined;
401
401
  [x: `int24[${string}]`]: undefined;
402
402
  [x: `int32[${string}]`]: undefined;
403
403
  [x: `int40[${string}]`]: undefined;
@@ -429,8 +429,8 @@ declare namespace wrapName {
429
429
  [x: `int248[${string}]`]: undefined;
430
430
  [x: `int256[${string}]`]: undefined;
431
431
  [x: `uint[${string}]`]: undefined;
432
- [x: `uint8[${string}]`]: undefined;
433
432
  [x: `uint16[${string}]`]: undefined;
433
+ [x: `uint8[${string}]`]: undefined;
434
434
  [x: `uint24[${string}]`]: undefined;
435
435
  [x: `uint32[${string}]`]: undefined;
436
436
  [x: `uint40[${string}]`]: undefined;
@@ -465,17 +465,17 @@ declare namespace wrapName {
465
465
  address?: undefined;
466
466
  bool?: undefined;
467
467
  bytes?: undefined;
468
- bytes2?: undefined;
469
- bytes8?: undefined;
468
+ bytes3?: undefined;
469
+ bytes10?: undefined;
470
470
  bytes16?: undefined;
471
471
  bytes1?: undefined;
472
- bytes3?: undefined;
472
+ bytes2?: undefined;
473
473
  bytes4?: undefined;
474
474
  bytes5?: undefined;
475
475
  bytes6?: undefined;
476
476
  bytes7?: undefined;
477
+ bytes8?: undefined;
477
478
  bytes9?: undefined;
478
- bytes10?: undefined;
479
479
  bytes11?: undefined;
480
480
  bytes12?: undefined;
481
481
  bytes13?: undefined;
@@ -497,8 +497,8 @@ declare namespace wrapName {
497
497
  bytes30?: undefined;
498
498
  bytes31?: undefined;
499
499
  bytes32?: undefined;
500
- int8?: undefined;
501
500
  int16?: undefined;
501
+ int8?: undefined;
502
502
  int24?: undefined;
503
503
  int32?: undefined;
504
504
  int40?: undefined;
@@ -529,8 +529,8 @@ declare namespace wrapName {
529
529
  int240?: undefined;
530
530
  int248?: undefined;
531
531
  int256?: undefined;
532
- uint8?: undefined;
533
532
  uint16?: undefined;
533
+ uint8?: undefined;
534
534
  uint24?: undefined;
535
535
  uint32?: undefined;
536
536
  uint40?: undefined;
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "peerDependencies": {
18
18
  "viem": "^1.2.9"
19
19
  },
20
- "version": "3.0.0-beta.2",
20
+ "version": "3.0.0-beta.3",
21
21
  "files": [
22
22
  "dist/",
23
23
  "src/",
@@ -12,7 +12,7 @@ type ChainContract = {
12
12
  blockCreated?: number
13
13
  }
14
14
 
15
- export const supportedChains = ['homestead', 'goerli'] as const
15
+ export const supportedChains = ['homestead', 'goerli', 'sepolia'] as const
16
16
  export const supportedContracts = [
17
17
  'ensBaseRegistrarImplementation',
18
18
  'ensDnsRegistrar',
@@ -22,6 +22,8 @@ export const supportedContracts = [
22
22
  'ensReverseRegistrar',
23
23
  'ensBulkRenewal',
24
24
  'ensDnssecImpl',
25
+ 'ensUniversalResolver',
26
+ 'ensRegistry',
25
27
  ] as const
26
28
 
27
29
  export type SupportedChain = (typeof supportedChains)[number]
@@ -29,6 +31,9 @@ export type SupportedContract = (typeof supportedContracts)[number]
29
31
 
30
32
  export const addresses = {
31
33
  homestead: {
34
+ ensRegistry: {
35
+ address: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',
36
+ },
32
37
  ensBaseRegistrarImplementation: {
33
38
  address: '0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85',
34
39
  },
@@ -58,6 +63,9 @@ export const addresses = {
58
63
  },
59
64
  },
60
65
  goerli: {
66
+ ensRegistry: {
67
+ address: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',
68
+ },
61
69
  ensBaseRegistrarImplementation: {
62
70
  address: '0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85',
63
71
  },
@@ -86,13 +94,42 @@ export const addresses = {
86
94
  address: '0x3952Be0b2186f8B113193a84b69bD71ad3fc1ae3',
87
95
  },
88
96
  },
89
- } as const
90
-
91
- // add when this is resolved: https://github.com/kulshekhar/ts-jest/issues/4100
92
- // } as const satisfies Record<
93
- // SupportedChain,
94
- // Record<SupportedContract, { address: Address }>
95
- // >
97
+ sepolia: {
98
+ ensRegistry: {
99
+ address: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',
100
+ },
101
+ ensBaseRegistrarImplementation: {
102
+ address: '0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85',
103
+ },
104
+ ensDnsRegistrar: {
105
+ address: '0x537625B0D7901FD20C57850d61580Bf1624Ef146',
106
+ },
107
+ ensEthRegistrarController: {
108
+ address: '0xFED6a969AaA60E4961FCD3EBF1A2e8913ac65B72',
109
+ },
110
+ ensNameWrapper: {
111
+ address: '0x0635513f179D50A207757E05759CbD106d7dFcE8',
112
+ },
113
+ ensPublicResolver: {
114
+ address: '0x8FADE66B79cC9f707aB26799354482EB93a5B7dD',
115
+ },
116
+ ensReverseRegistrar: {
117
+ address: '0xA0a1AbcDAe1a2a4A2EF8e9113Ff0e02DD81DC0C6',
118
+ },
119
+ ensBulkRenewal: {
120
+ address: '0x4EF77b90762Eddb33C8Eba5B5a19558DaE53D7a1',
121
+ },
122
+ ensDnssecImpl: {
123
+ address: '0x7b3ada1c8f012bae747cf99d6cbbf70d040b84cf',
124
+ },
125
+ ensUniversalResolver: {
126
+ address: '0x21B000Fd62a880b2125A61e36a284BB757b76025',
127
+ },
128
+ },
129
+ } as const satisfies Record<
130
+ SupportedChain,
131
+ Record<SupportedContract, { address: Address }>
132
+ >
96
133
 
97
134
  type Subgraphs = {
98
135
  ens: {
@@ -111,10 +148,12 @@ export const subgraphs = {
111
148
  url: 'https://api.thegraph.com/subgraphs/name/ensdomains/ensgoerli',
112
149
  },
113
150
  },
114
- } as const
115
-
116
- // add when this is resolved: https://github.com/kulshekhar/ts-jest/issues/4100
117
- // } as const satisfies Record<SupportedChain, Subgraphs>
151
+ sepolia: {
152
+ ens: {
153
+ url: 'https://api.studio.thegraph.com/query/49574/enssepolia/version/latest',
154
+ },
155
+ },
156
+ } as const satisfies Record<SupportedChain, Subgraphs>
118
157
 
119
158
  type EnsChainContracts = {
120
159
  ensBaseRegistrarImplementation: ChainContract
@@ -1 +1 @@
1
- export const version = '3.0.0-beta.2'
1
+ export const version = 'v3.0.0-beta.3'