@ensdomains/ensjs 4.2.2 → 4.2.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.
- package/dist/contracts/consts.d.ts +2 -2
- package/dist/contracts/consts.js +2 -2
- package/dist/contracts/universalResolver.d.ts +234 -8
- package/dist/contracts/universalResolver.js +53 -4
- package/dist/contracts/universalResolver.js.map +1 -1
- package/package.json +3 -3
- package/src/contracts/consts.ts +2 -2
- package/src/contracts/universalResolver.ts +53 -4
|
@@ -41,7 +41,7 @@ export declare const addresses: {
|
|
|
41
41
|
readonly address: "0x283F227c4Bd38ecE252C4Ae7ECE650B0e913f1f9";
|
|
42
42
|
};
|
|
43
43
|
readonly ensUniversalResolver: {
|
|
44
|
-
readonly address: "
|
|
44
|
+
readonly address: "0xeEeEEEeE14D718C2B47D9923Deab1335E144EeEe";
|
|
45
45
|
};
|
|
46
46
|
readonly wrappedEthRegistrarController: {
|
|
47
47
|
readonly address: "0x253553366Da8546fC250F225fe3d25d0C782303b";
|
|
@@ -91,7 +91,7 @@ export declare const addresses: {
|
|
|
91
91
|
readonly address: "0xA0a1AbcDAe1a2a4A2EF8e9113Ff0e02DD81DC0C6";
|
|
92
92
|
};
|
|
93
93
|
readonly ensUniversalResolver: {
|
|
94
|
-
readonly address: "
|
|
94
|
+
readonly address: "0xeEeEEEeE14D718C2B47D9923Deab1335E144EeEe";
|
|
95
95
|
};
|
|
96
96
|
readonly wrappedEthRegistrarController: {
|
|
97
97
|
readonly address: "0x4477cAc137F3353Ca35060E01E5aEb777a1Ca01B";
|
package/dist/contracts/consts.js
CHANGED
|
@@ -51,7 +51,7 @@ export const addresses = {
|
|
|
51
51
|
address: '0x283F227c4Bd38ecE252C4Ae7ECE650B0e913f1f9',
|
|
52
52
|
},
|
|
53
53
|
ensUniversalResolver: {
|
|
54
|
-
address: '
|
|
54
|
+
address: '0xeEeEEEeE14D718C2B47D9923Deab1335E144EeEe',
|
|
55
55
|
},
|
|
56
56
|
wrappedEthRegistrarController: {
|
|
57
57
|
address: '0x253553366Da8546fC250F225fe3d25d0C782303b',
|
|
@@ -101,7 +101,7 @@ export const addresses = {
|
|
|
101
101
|
address: '0xA0a1AbcDAe1a2a4A2EF8e9113Ff0e02DD81DC0C6',
|
|
102
102
|
},
|
|
103
103
|
ensUniversalResolver: {
|
|
104
|
-
address: '
|
|
104
|
+
address: '0xeEeEEEeE14D718C2B47D9923Deab1335E144EeEe',
|
|
105
105
|
},
|
|
106
106
|
wrappedEthRegistrarController: {
|
|
107
107
|
address: '0x4477cAc137F3353Ca35060E01E5aEb777a1Ca01B',
|
|
@@ -34,6 +34,42 @@ export declare const universalResolverErrors: readonly [{
|
|
|
34
34
|
readonly inputs: readonly [];
|
|
35
35
|
readonly name: "InvalidBatchGatewayResponse";
|
|
36
36
|
readonly type: "error";
|
|
37
|
+
}, {
|
|
38
|
+
readonly inputs: readonly [{
|
|
39
|
+
readonly internalType: "address";
|
|
40
|
+
readonly name: "sender";
|
|
41
|
+
readonly type: "address";
|
|
42
|
+
}, {
|
|
43
|
+
readonly internalType: "string[]";
|
|
44
|
+
readonly name: "urls";
|
|
45
|
+
readonly type: "string[]";
|
|
46
|
+
}, {
|
|
47
|
+
readonly internalType: "bytes";
|
|
48
|
+
readonly name: "callData";
|
|
49
|
+
readonly type: "bytes";
|
|
50
|
+
}, {
|
|
51
|
+
readonly internalType: "bytes4";
|
|
52
|
+
readonly name: "callbackFunction";
|
|
53
|
+
readonly type: "bytes4";
|
|
54
|
+
}, {
|
|
55
|
+
readonly internalType: "bytes";
|
|
56
|
+
readonly name: "extraData";
|
|
57
|
+
readonly type: "bytes";
|
|
58
|
+
}];
|
|
59
|
+
readonly name: "OffchainLookup";
|
|
60
|
+
readonly type: "error";
|
|
61
|
+
}, {
|
|
62
|
+
readonly inputs: readonly [{
|
|
63
|
+
readonly internalType: "uint256";
|
|
64
|
+
readonly name: "offset";
|
|
65
|
+
readonly type: "uint256";
|
|
66
|
+
}, {
|
|
67
|
+
readonly internalType: "uint256";
|
|
68
|
+
readonly name: "length";
|
|
69
|
+
readonly type: "uint256";
|
|
70
|
+
}];
|
|
71
|
+
readonly name: "OffsetOutOfBoundsError";
|
|
72
|
+
readonly type: "error";
|
|
37
73
|
}, {
|
|
38
74
|
readonly inputs: readonly [{
|
|
39
75
|
readonly internalType: "bytes";
|
|
@@ -119,6 +155,42 @@ export declare const universalResolverReverseSnippet: readonly [{
|
|
|
119
155
|
readonly inputs: readonly [];
|
|
120
156
|
readonly name: "InvalidBatchGatewayResponse";
|
|
121
157
|
readonly type: "error";
|
|
158
|
+
}, {
|
|
159
|
+
readonly inputs: readonly [{
|
|
160
|
+
readonly internalType: "address";
|
|
161
|
+
readonly name: "sender";
|
|
162
|
+
readonly type: "address";
|
|
163
|
+
}, {
|
|
164
|
+
readonly internalType: "string[]";
|
|
165
|
+
readonly name: "urls";
|
|
166
|
+
readonly type: "string[]";
|
|
167
|
+
}, {
|
|
168
|
+
readonly internalType: "bytes";
|
|
169
|
+
readonly name: "callData";
|
|
170
|
+
readonly type: "bytes";
|
|
171
|
+
}, {
|
|
172
|
+
readonly internalType: "bytes4";
|
|
173
|
+
readonly name: "callbackFunction";
|
|
174
|
+
readonly type: "bytes4";
|
|
175
|
+
}, {
|
|
176
|
+
readonly internalType: "bytes";
|
|
177
|
+
readonly name: "extraData";
|
|
178
|
+
readonly type: "bytes";
|
|
179
|
+
}];
|
|
180
|
+
readonly name: "OffchainLookup";
|
|
181
|
+
readonly type: "error";
|
|
182
|
+
}, {
|
|
183
|
+
readonly inputs: readonly [{
|
|
184
|
+
readonly internalType: "uint256";
|
|
185
|
+
readonly name: "offset";
|
|
186
|
+
readonly type: "uint256";
|
|
187
|
+
}, {
|
|
188
|
+
readonly internalType: "uint256";
|
|
189
|
+
readonly name: "length";
|
|
190
|
+
readonly type: "uint256";
|
|
191
|
+
}];
|
|
192
|
+
readonly name: "OffsetOutOfBoundsError";
|
|
193
|
+
readonly type: "error";
|
|
122
194
|
}, {
|
|
123
195
|
readonly inputs: readonly [{
|
|
124
196
|
readonly internalType: "bytes";
|
|
@@ -169,22 +241,27 @@ export declare const universalResolverReverseSnippet: readonly [{
|
|
|
169
241
|
readonly type: "error";
|
|
170
242
|
}, {
|
|
171
243
|
readonly inputs: readonly [{
|
|
172
|
-
readonly
|
|
244
|
+
readonly internalType: "bytes";
|
|
245
|
+
readonly name: "lookupAddress";
|
|
173
246
|
readonly type: "bytes";
|
|
174
247
|
}, {
|
|
248
|
+
readonly internalType: "uint256";
|
|
175
249
|
readonly name: "coinType";
|
|
176
250
|
readonly type: "uint256";
|
|
177
251
|
}];
|
|
178
252
|
readonly name: "reverse";
|
|
179
253
|
readonly outputs: readonly [{
|
|
180
|
-
readonly
|
|
254
|
+
readonly internalType: "string";
|
|
181
255
|
readonly name: "name";
|
|
256
|
+
readonly type: "string";
|
|
182
257
|
}, {
|
|
183
|
-
readonly
|
|
258
|
+
readonly internalType: "address";
|
|
184
259
|
readonly name: "resolver";
|
|
185
|
-
}, {
|
|
186
260
|
readonly type: "address";
|
|
261
|
+
}, {
|
|
262
|
+
readonly internalType: "address";
|
|
187
263
|
readonly name: "reverseResolver";
|
|
264
|
+
readonly type: "address";
|
|
188
265
|
}];
|
|
189
266
|
readonly stateMutability: "view";
|
|
190
267
|
readonly type: "function";
|
|
@@ -225,6 +302,42 @@ export declare const universalResolverReverseWithGatewaysSnippet: readonly [{
|
|
|
225
302
|
readonly inputs: readonly [];
|
|
226
303
|
readonly name: "InvalidBatchGatewayResponse";
|
|
227
304
|
readonly type: "error";
|
|
305
|
+
}, {
|
|
306
|
+
readonly inputs: readonly [{
|
|
307
|
+
readonly internalType: "address";
|
|
308
|
+
readonly name: "sender";
|
|
309
|
+
readonly type: "address";
|
|
310
|
+
}, {
|
|
311
|
+
readonly internalType: "string[]";
|
|
312
|
+
readonly name: "urls";
|
|
313
|
+
readonly type: "string[]";
|
|
314
|
+
}, {
|
|
315
|
+
readonly internalType: "bytes";
|
|
316
|
+
readonly name: "callData";
|
|
317
|
+
readonly type: "bytes";
|
|
318
|
+
}, {
|
|
319
|
+
readonly internalType: "bytes4";
|
|
320
|
+
readonly name: "callbackFunction";
|
|
321
|
+
readonly type: "bytes4";
|
|
322
|
+
}, {
|
|
323
|
+
readonly internalType: "bytes";
|
|
324
|
+
readonly name: "extraData";
|
|
325
|
+
readonly type: "bytes";
|
|
326
|
+
}];
|
|
327
|
+
readonly name: "OffchainLookup";
|
|
328
|
+
readonly type: "error";
|
|
329
|
+
}, {
|
|
330
|
+
readonly inputs: readonly [{
|
|
331
|
+
readonly internalType: "uint256";
|
|
332
|
+
readonly name: "offset";
|
|
333
|
+
readonly type: "uint256";
|
|
334
|
+
}, {
|
|
335
|
+
readonly internalType: "uint256";
|
|
336
|
+
readonly name: "length";
|
|
337
|
+
readonly type: "uint256";
|
|
338
|
+
}];
|
|
339
|
+
readonly name: "OffsetOutOfBoundsError";
|
|
340
|
+
readonly type: "error";
|
|
228
341
|
}, {
|
|
229
342
|
readonly inputs: readonly [{
|
|
230
343
|
readonly internalType: "bytes";
|
|
@@ -276,9 +389,11 @@ export declare const universalResolverReverseWithGatewaysSnippet: readonly [{
|
|
|
276
389
|
}, {
|
|
277
390
|
readonly name: "reverseWithGateways";
|
|
278
391
|
readonly inputs: readonly [{
|
|
279
|
-
readonly
|
|
392
|
+
readonly internalType: "bytes";
|
|
393
|
+
readonly name: "lookupAddress";
|
|
280
394
|
readonly type: "bytes";
|
|
281
395
|
}, {
|
|
396
|
+
readonly internalType: "uint256";
|
|
282
397
|
readonly name: "coinType";
|
|
283
398
|
readonly type: "uint256";
|
|
284
399
|
}, {
|
|
@@ -286,14 +401,17 @@ export declare const universalResolverReverseWithGatewaysSnippet: readonly [{
|
|
|
286
401
|
readonly type: "string[]";
|
|
287
402
|
}];
|
|
288
403
|
readonly outputs: readonly [{
|
|
289
|
-
readonly
|
|
404
|
+
readonly internalType: "string";
|
|
290
405
|
readonly name: "name";
|
|
406
|
+
readonly type: "string";
|
|
291
407
|
}, {
|
|
292
|
-
readonly
|
|
408
|
+
readonly internalType: "address";
|
|
293
409
|
readonly name: "resolver";
|
|
294
|
-
}, {
|
|
295
410
|
readonly type: "address";
|
|
411
|
+
}, {
|
|
412
|
+
readonly internalType: "address";
|
|
296
413
|
readonly name: "reverseResolver";
|
|
414
|
+
readonly type: "address";
|
|
297
415
|
}];
|
|
298
416
|
readonly stateMutability: "view";
|
|
299
417
|
readonly type: "function";
|
|
@@ -334,6 +452,42 @@ export declare const universalResolverResolveSnippet: readonly [{
|
|
|
334
452
|
readonly inputs: readonly [];
|
|
335
453
|
readonly name: "InvalidBatchGatewayResponse";
|
|
336
454
|
readonly type: "error";
|
|
455
|
+
}, {
|
|
456
|
+
readonly inputs: readonly [{
|
|
457
|
+
readonly internalType: "address";
|
|
458
|
+
readonly name: "sender";
|
|
459
|
+
readonly type: "address";
|
|
460
|
+
}, {
|
|
461
|
+
readonly internalType: "string[]";
|
|
462
|
+
readonly name: "urls";
|
|
463
|
+
readonly type: "string[]";
|
|
464
|
+
}, {
|
|
465
|
+
readonly internalType: "bytes";
|
|
466
|
+
readonly name: "callData";
|
|
467
|
+
readonly type: "bytes";
|
|
468
|
+
}, {
|
|
469
|
+
readonly internalType: "bytes4";
|
|
470
|
+
readonly name: "callbackFunction";
|
|
471
|
+
readonly type: "bytes4";
|
|
472
|
+
}, {
|
|
473
|
+
readonly internalType: "bytes";
|
|
474
|
+
readonly name: "extraData";
|
|
475
|
+
readonly type: "bytes";
|
|
476
|
+
}];
|
|
477
|
+
readonly name: "OffchainLookup";
|
|
478
|
+
readonly type: "error";
|
|
479
|
+
}, {
|
|
480
|
+
readonly inputs: readonly [{
|
|
481
|
+
readonly internalType: "uint256";
|
|
482
|
+
readonly name: "offset";
|
|
483
|
+
readonly type: "uint256";
|
|
484
|
+
}, {
|
|
485
|
+
readonly internalType: "uint256";
|
|
486
|
+
readonly name: "length";
|
|
487
|
+
readonly type: "uint256";
|
|
488
|
+
}];
|
|
489
|
+
readonly name: "OffsetOutOfBoundsError";
|
|
490
|
+
readonly type: "error";
|
|
337
491
|
}, {
|
|
338
492
|
readonly inputs: readonly [{
|
|
339
493
|
readonly internalType: "bytes";
|
|
@@ -437,6 +591,42 @@ export declare const universalResolverResolveWithGatewaysSnippet: readonly [{
|
|
|
437
591
|
readonly inputs: readonly [];
|
|
438
592
|
readonly name: "InvalidBatchGatewayResponse";
|
|
439
593
|
readonly type: "error";
|
|
594
|
+
}, {
|
|
595
|
+
readonly inputs: readonly [{
|
|
596
|
+
readonly internalType: "address";
|
|
597
|
+
readonly name: "sender";
|
|
598
|
+
readonly type: "address";
|
|
599
|
+
}, {
|
|
600
|
+
readonly internalType: "string[]";
|
|
601
|
+
readonly name: "urls";
|
|
602
|
+
readonly type: "string[]";
|
|
603
|
+
}, {
|
|
604
|
+
readonly internalType: "bytes";
|
|
605
|
+
readonly name: "callData";
|
|
606
|
+
readonly type: "bytes";
|
|
607
|
+
}, {
|
|
608
|
+
readonly internalType: "bytes4";
|
|
609
|
+
readonly name: "callbackFunction";
|
|
610
|
+
readonly type: "bytes4";
|
|
611
|
+
}, {
|
|
612
|
+
readonly internalType: "bytes";
|
|
613
|
+
readonly name: "extraData";
|
|
614
|
+
readonly type: "bytes";
|
|
615
|
+
}];
|
|
616
|
+
readonly name: "OffchainLookup";
|
|
617
|
+
readonly type: "error";
|
|
618
|
+
}, {
|
|
619
|
+
readonly inputs: readonly [{
|
|
620
|
+
readonly internalType: "uint256";
|
|
621
|
+
readonly name: "offset";
|
|
622
|
+
readonly type: "uint256";
|
|
623
|
+
}, {
|
|
624
|
+
readonly internalType: "uint256";
|
|
625
|
+
readonly name: "length";
|
|
626
|
+
readonly type: "uint256";
|
|
627
|
+
}];
|
|
628
|
+
readonly name: "OffsetOutOfBoundsError";
|
|
629
|
+
readonly type: "error";
|
|
440
630
|
}, {
|
|
441
631
|
readonly inputs: readonly [{
|
|
442
632
|
readonly internalType: "bytes";
|
|
@@ -543,6 +733,42 @@ export declare const universalResolverFindResolverSnippet: readonly [{
|
|
|
543
733
|
readonly inputs: readonly [];
|
|
544
734
|
readonly name: "InvalidBatchGatewayResponse";
|
|
545
735
|
readonly type: "error";
|
|
736
|
+
}, {
|
|
737
|
+
readonly inputs: readonly [{
|
|
738
|
+
readonly internalType: "address";
|
|
739
|
+
readonly name: "sender";
|
|
740
|
+
readonly type: "address";
|
|
741
|
+
}, {
|
|
742
|
+
readonly internalType: "string[]";
|
|
743
|
+
readonly name: "urls";
|
|
744
|
+
readonly type: "string[]";
|
|
745
|
+
}, {
|
|
746
|
+
readonly internalType: "bytes";
|
|
747
|
+
readonly name: "callData";
|
|
748
|
+
readonly type: "bytes";
|
|
749
|
+
}, {
|
|
750
|
+
readonly internalType: "bytes4";
|
|
751
|
+
readonly name: "callbackFunction";
|
|
752
|
+
readonly type: "bytes4";
|
|
753
|
+
}, {
|
|
754
|
+
readonly internalType: "bytes";
|
|
755
|
+
readonly name: "extraData";
|
|
756
|
+
readonly type: "bytes";
|
|
757
|
+
}];
|
|
758
|
+
readonly name: "OffchainLookup";
|
|
759
|
+
readonly type: "error";
|
|
760
|
+
}, {
|
|
761
|
+
readonly inputs: readonly [{
|
|
762
|
+
readonly internalType: "uint256";
|
|
763
|
+
readonly name: "offset";
|
|
764
|
+
readonly type: "uint256";
|
|
765
|
+
}, {
|
|
766
|
+
readonly internalType: "uint256";
|
|
767
|
+
readonly name: "length";
|
|
768
|
+
readonly type: "uint256";
|
|
769
|
+
}];
|
|
770
|
+
readonly name: "OffsetOutOfBoundsError";
|
|
771
|
+
readonly type: "error";
|
|
546
772
|
}, {
|
|
547
773
|
readonly inputs: readonly [{
|
|
548
774
|
readonly internalType: "bytes";
|
|
@@ -47,6 +47,53 @@ export const universalResolverErrors = [
|
|
|
47
47
|
name: 'InvalidBatchGatewayResponse',
|
|
48
48
|
type: 'error',
|
|
49
49
|
},
|
|
50
|
+
{
|
|
51
|
+
inputs: [
|
|
52
|
+
{
|
|
53
|
+
internalType: 'address',
|
|
54
|
+
name: 'sender',
|
|
55
|
+
type: 'address',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
internalType: 'string[]',
|
|
59
|
+
name: 'urls',
|
|
60
|
+
type: 'string[]',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
internalType: 'bytes',
|
|
64
|
+
name: 'callData',
|
|
65
|
+
type: 'bytes',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
internalType: 'bytes4',
|
|
69
|
+
name: 'callbackFunction',
|
|
70
|
+
type: 'bytes4',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
internalType: 'bytes',
|
|
74
|
+
name: 'extraData',
|
|
75
|
+
type: 'bytes',
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
name: 'OffchainLookup',
|
|
79
|
+
type: 'error',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
inputs: [
|
|
83
|
+
{
|
|
84
|
+
internalType: 'uint256',
|
|
85
|
+
name: 'offset',
|
|
86
|
+
type: 'uint256',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
internalType: 'uint256',
|
|
90
|
+
name: 'length',
|
|
91
|
+
type: 'uint256',
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
name: 'OffsetOutOfBoundsError',
|
|
95
|
+
type: 'error',
|
|
96
|
+
},
|
|
50
97
|
{
|
|
51
98
|
inputs: [
|
|
52
99
|
{
|
|
@@ -116,19 +163,21 @@ export const universalResolverErrors = [
|
|
|
116
163
|
const universalResolverReverse = {
|
|
117
164
|
inputs: [
|
|
118
165
|
{
|
|
119
|
-
|
|
166
|
+
internalType: 'bytes',
|
|
167
|
+
name: 'lookupAddress',
|
|
120
168
|
type: 'bytes',
|
|
121
169
|
},
|
|
122
170
|
{
|
|
171
|
+
internalType: 'uint256',
|
|
123
172
|
name: 'coinType',
|
|
124
173
|
type: 'uint256',
|
|
125
174
|
},
|
|
126
175
|
],
|
|
127
176
|
name: 'reverse',
|
|
128
177
|
outputs: [
|
|
129
|
-
{
|
|
130
|
-
{
|
|
131
|
-
{
|
|
178
|
+
{ internalType: 'string', name: 'name', type: 'string' },
|
|
179
|
+
{ internalType: 'address', name: 'resolver', type: 'address' },
|
|
180
|
+
{ internalType: 'address', name: 'reverseResolver', type: 'address' },
|
|
132
181
|
],
|
|
133
182
|
stateMutability: 'view',
|
|
134
183
|
type: 'function',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"universalResolver.js","sourceRoot":"","sources":["../../src/contracts/universalResolver.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,OAAO;aACd;SACF;QACD,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;aACf;SACF;QACD,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;aACf;SACF;QACD,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,6BAA6B;QACnC,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,OAAO;aACd;SACF;QACD,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;aACd;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;aACd;SACF;QACD,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,OAAO;aACd;SACF;QACD,IAAI,EAAE,wBAAwB;QAC9B,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;aACf;SACF;QACD,IAAI,EAAE,4BAA4B;QAClC,IAAI,EAAE,OAAO;KACd;CACO,CAAA;AAEV,MAAM,wBAAwB,GAAG;IAC/B,MAAM,EAAE;QACN;YACE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"universalResolver.js","sourceRoot":"","sources":["../../src/contracts/universalResolver.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,OAAO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CAAA;AAEV,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,GAAG,uBAAuB;IAC1B,wBAAwB;CAChB,CAAA;AAEV,MAAM,CAAC,MAAM,2CAA2C,GAAG;IACzD,GAAG,uBAAuB;IAC1B;QACE,GAAG,wBAAwB;QAC3B,IAAI,EAAE,qBAAqB;QAC3B,MAAM,EAAE;YACN,GAAG,wBAAwB,CAAC,MAAM;YAClC;gBACE,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,UAAU;aACjB;SACF;KACF;CACO,CAAA;AAEV,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,GAAG,uBAAuB;IAC1B;QACE,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;aACd;SACF;QACD,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACO,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ensdomains/ensjs",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3",
|
|
4
4
|
"description": "ENS javascript library for contract interaction",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -105,11 +105,11 @@
|
|
|
105
105
|
"ts-node": "^10.9.2",
|
|
106
106
|
"typedoc": "^0.24.8",
|
|
107
107
|
"typedoc-plugin-markdown": "^4.0.0-next.16",
|
|
108
|
-
"viem": "^2.
|
|
108
|
+
"viem": "^2.37.12",
|
|
109
109
|
"vitest": "^1.3.1"
|
|
110
110
|
},
|
|
111
111
|
"peerDependencies": {
|
|
112
|
-
"viem": "^2.
|
|
112
|
+
"viem": "^2.35.0"
|
|
113
113
|
},
|
|
114
114
|
"engines": {
|
|
115
115
|
"node": ">=22"
|
package/src/contracts/consts.ts
CHANGED
|
@@ -63,7 +63,7 @@ export const addresses = {
|
|
|
63
63
|
address: '0x283F227c4Bd38ecE252C4Ae7ECE650B0e913f1f9',
|
|
64
64
|
},
|
|
65
65
|
ensUniversalResolver: {
|
|
66
|
-
address: '
|
|
66
|
+
address: '0xeEeEEEeE14D718C2B47D9923Deab1335E144EeEe',
|
|
67
67
|
},
|
|
68
68
|
wrappedEthRegistrarController: {
|
|
69
69
|
address: '0x253553366Da8546fC250F225fe3d25d0C782303b',
|
|
@@ -113,7 +113,7 @@ export const addresses = {
|
|
|
113
113
|
address: '0xA0a1AbcDAe1a2a4A2EF8e9113Ff0e02DD81DC0C6',
|
|
114
114
|
},
|
|
115
115
|
ensUniversalResolver: {
|
|
116
|
-
address: '
|
|
116
|
+
address: '0xeEeEEEeE14D718C2B47D9923Deab1335E144EeEe',
|
|
117
117
|
},
|
|
118
118
|
wrappedEthRegistrarController: {
|
|
119
119
|
address: '0x4477cAc137F3353Ca35060E01E5aEb777a1Ca01B',
|
|
@@ -47,6 +47,53 @@ export const universalResolverErrors = [
|
|
|
47
47
|
name: 'InvalidBatchGatewayResponse',
|
|
48
48
|
type: 'error',
|
|
49
49
|
},
|
|
50
|
+
{
|
|
51
|
+
inputs: [
|
|
52
|
+
{
|
|
53
|
+
internalType: 'address',
|
|
54
|
+
name: 'sender',
|
|
55
|
+
type: 'address',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
internalType: 'string[]',
|
|
59
|
+
name: 'urls',
|
|
60
|
+
type: 'string[]',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
internalType: 'bytes',
|
|
64
|
+
name: 'callData',
|
|
65
|
+
type: 'bytes',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
internalType: 'bytes4',
|
|
69
|
+
name: 'callbackFunction',
|
|
70
|
+
type: 'bytes4',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
internalType: 'bytes',
|
|
74
|
+
name: 'extraData',
|
|
75
|
+
type: 'bytes',
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
name: 'OffchainLookup',
|
|
79
|
+
type: 'error',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
inputs: [
|
|
83
|
+
{
|
|
84
|
+
internalType: 'uint256',
|
|
85
|
+
name: 'offset',
|
|
86
|
+
type: 'uint256',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
internalType: 'uint256',
|
|
90
|
+
name: 'length',
|
|
91
|
+
type: 'uint256',
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
name: 'OffsetOutOfBoundsError',
|
|
95
|
+
type: 'error',
|
|
96
|
+
},
|
|
50
97
|
{
|
|
51
98
|
inputs: [
|
|
52
99
|
{
|
|
@@ -117,19 +164,21 @@ export const universalResolverErrors = [
|
|
|
117
164
|
const universalResolverReverse = {
|
|
118
165
|
inputs: [
|
|
119
166
|
{
|
|
120
|
-
|
|
167
|
+
internalType: 'bytes',
|
|
168
|
+
name: 'lookupAddress',
|
|
121
169
|
type: 'bytes',
|
|
122
170
|
},
|
|
123
171
|
{
|
|
172
|
+
internalType: 'uint256',
|
|
124
173
|
name: 'coinType',
|
|
125
174
|
type: 'uint256',
|
|
126
175
|
},
|
|
127
176
|
],
|
|
128
177
|
name: 'reverse',
|
|
129
178
|
outputs: [
|
|
130
|
-
{
|
|
131
|
-
{
|
|
132
|
-
{
|
|
179
|
+
{ internalType: 'string', name: 'name', type: 'string' },
|
|
180
|
+
{ internalType: 'address', name: 'resolver', type: 'address' },
|
|
181
|
+
{ internalType: 'address', name: 'reverseResolver', type: 'address' },
|
|
133
182
|
],
|
|
134
183
|
stateMutability: 'view',
|
|
135
184
|
type: 'function',
|