@ensdomains/ensjs 3.0.0-alpha.40 → 3.0.0-alpha.42
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/cjs/contracts/getContractAddress.js +4 -4
- package/dist/cjs/functions/commitName.js +2 -3
- package/dist/cjs/functions/createSubname.js +2 -8
- package/dist/cjs/functions/getHistory.js +14 -7
- package/dist/cjs/functions/getNames.js +10 -6
- package/dist/cjs/functions/getOwner.js +25 -12
- package/dist/cjs/functions/getSpecificRecord.js +83 -0
- package/dist/cjs/functions/getWrapperData.js +3 -4
- package/dist/cjs/functions/renewNames.js +13 -20
- package/dist/cjs/functions/{burnFuses.js → setFuses.js} +24 -6
- package/dist/cjs/functions/wrapName.js +7 -23
- package/dist/cjs/generated/factories/ETHRegistrarController__factory.js +6 -55
- package/dist/cjs/generated/factories/NameWrapper__factory.js +90 -69
- package/dist/cjs/generated/factories/PublicResolver__factory.js +83 -0
- package/dist/cjs/generated/factories/UniversalResolver__factory.js +67 -2
- package/dist/cjs/index.js +15 -4
- package/dist/cjs/utils/consts.js +3 -1
- package/dist/cjs/utils/fuses.js +218 -53
- package/dist/cjs/utils/normalise.js +2 -2
- package/dist/cjs/utils/recordHelpers.js +55 -0
- package/dist/cjs/utils/registerHelpers.js +9 -23
- package/dist/cjs/utils/subgraph-types.js +16 -0
- package/dist/cjs/utils/wrapper.js +2 -2
- package/dist/esm/contracts/getContractAddress.mjs +4 -4
- package/dist/esm/functions/commitName.mjs +2 -3
- package/dist/esm/functions/createSubname.mjs +2 -2
- package/dist/esm/functions/getHistory.mjs +14 -7
- package/dist/esm/functions/getNames.mjs +10 -6
- package/dist/esm/functions/getOwner.mjs +25 -12
- package/dist/esm/functions/getSpecificRecord.mjs +78 -1
- package/dist/esm/functions/getWrapperData.mjs +3 -4
- package/dist/esm/functions/renewNames.mjs +13 -20
- package/dist/esm/functions/setFuses.mjs +30 -0
- package/dist/esm/functions/wrapName.mjs +8 -18
- package/dist/esm/generated/factories/ETHRegistrarController__factory.mjs +6 -55
- package/dist/esm/generated/factories/NameWrapper__factory.mjs +90 -69
- package/dist/esm/generated/factories/PublicResolver__factory.mjs +83 -0
- package/dist/esm/generated/factories/UniversalResolver__factory.mjs +67 -2
- package/dist/esm/index.mjs +15 -4
- package/dist/esm/utils/consts.mjs +3 -1
- package/dist/esm/utils/fuses.mjs +218 -53
- package/dist/esm/utils/normalise.mjs +1 -1
- package/dist/esm/utils/recordHelpers.mjs +49 -0
- package/dist/esm/utils/registerHelpers.mjs +9 -17
- package/dist/esm/utils/subgraph-types.mjs +0 -0
- package/dist/esm/utils/wrapper.mjs +1 -1
- package/dist/types/functions/commitName.d.ts +5 -6
- package/dist/types/functions/createSubname.d.ts +3 -3
- package/dist/types/functions/deleteSubname.d.ts +1 -1
- package/dist/types/functions/getHistory.d.ts +1 -1
- package/dist/types/functions/getNames.d.ts +3 -3
- package/dist/types/functions/getOwner.d.ts +1 -0
- package/dist/types/functions/getSpecificRecord.d.ts +22 -0
- package/dist/types/functions/getWrapperData.d.ts +44 -5
- package/dist/types/functions/importDNSSECName.d.ts +1 -1
- package/dist/types/functions/registerName.d.ts +1 -1
- package/dist/types/functions/renewNames.d.ts +5 -6
- package/dist/types/functions/setFuses.d.ts +7 -0
- package/dist/types/functions/setName.d.ts +1 -1
- package/dist/types/functions/setRecord.d.ts +5 -1
- package/dist/types/functions/setRecords.d.ts +1 -1
- package/dist/types/functions/setResolver.d.ts +1 -1
- package/dist/types/functions/transferController.d.ts +1 -1
- package/dist/types/functions/transferName.d.ts +1 -1
- package/dist/types/functions/transferSubname.d.ts +1 -1
- package/dist/types/functions/types.d.ts +9 -5
- package/dist/types/functions/unwrapName.d.ts +1 -1
- package/dist/types/functions/wrapName.d.ts +4 -4
- package/dist/types/generated/ETHRegistrarController.d.ts +13 -36
- package/dist/types/generated/NameWrapper.d.ts +97 -52
- package/dist/types/generated/PublicResolver.d.ts +50 -1
- package/dist/types/generated/UniversalResolver.d.ts +79 -32
- package/dist/types/generated/factories/UniversalResolver__factory.d.ts +15 -0
- package/dist/types/index.d.ts +75 -11
- package/dist/types/utils/consts.d.ts +1 -0
- package/dist/types/utils/fuses.d.ts +115 -45
- package/dist/types/utils/recordHelpers.d.ts +14 -2
- package/dist/types/utils/registerHelpers.d.ts +7 -25
- package/dist/types/utils/subgraph-types.d.ts +284 -0
- package/dist/types/utils/writeTx.d.ts +5 -5
- package/package.json +8 -5
- package/src/@types/pako.d.ts +188 -0
- package/src/contracts/bulkRenewal.ts +1 -1
- package/src/contracts/getContractAddress.ts +4 -4
- package/src/functions/commitName.test.ts +0 -3
- package/src/functions/commitName.ts +1 -2
- package/src/functions/createSubname.ts +4 -5
- package/src/functions/getHistory.ts +59 -25
- package/src/functions/getNames.test.ts +1 -1
- package/src/functions/getNames.ts +26 -13
- package/src/functions/getOwner.test.ts +62 -3
- package/src/functions/getOwner.ts +31 -11
- package/src/functions/getSpecificRecord.test.ts +162 -0
- package/src/functions/getSpecificRecord.ts +95 -1
- package/src/functions/getWrapperData.test.ts +11 -45
- package/src/functions/getWrapperData.ts +7 -5
- package/src/functions/registerName.test.ts +3 -3
- package/src/functions/renewNames.ts +17 -23
- package/src/functions/setFuses.test.ts +240 -0
- package/src/functions/setFuses.ts +44 -0
- package/src/functions/setRecord.test.ts +147 -1
- package/src/functions/setRecord.ts +6 -1
- package/src/functions/types.ts +10 -4
- package/src/functions/wrapName.test.ts +8 -7
- package/src/functions/wrapName.ts +10 -24
- package/src/generated/ETHRegistrarController.ts +12 -79
- package/src/generated/NameWrapper.ts +155 -99
- package/src/generated/PublicResolver.ts +123 -0
- package/src/generated/UniversalResolver.ts +157 -16
- package/src/generated/factories/ETHRegistrarController__factory.ts +6 -55
- package/src/generated/factories/NameWrapper__factory.ts +90 -69
- package/src/generated/factories/PublicResolver__factory.ts +83 -0
- package/src/generated/factories/UniversalResolver__factory.ts +67 -2
- package/src/index.ts +23 -14
- package/src/utils/consts.ts +1 -0
- package/src/utils/fuses.ts +299 -102
- package/src/utils/normalise.ts +1 -1
- package/src/utils/recordHelpers.ts +64 -1
- package/src/utils/registerHelpers.ts +13 -41
- package/src/utils/subgraph-types.ts +312 -0
- package/src/utils/wrapper.ts +1 -1
- package/dist/cjs/utils/generateFuseInput.js +0 -40
- package/dist/esm/functions/burnFuses.mjs +0 -12
- package/dist/esm/utils/generateFuseInput.mjs +0 -15
- package/dist/types/functions/burnFuses.d.ts +0 -3
- package/dist/types/utils/generateFuseInput.d.ts +0 -3
- package/src/functions/burnFuses.test.ts +0 -148
- package/src/functions/burnFuses.ts +0 -16
- package/src/utils/generateFuseInput.ts +0 -13
|
@@ -103,6 +103,11 @@ const _abi = [
|
|
|
103
103
|
name: "LabelTooShort",
|
|
104
104
|
type: "error"
|
|
105
105
|
},
|
|
106
|
+
{
|
|
107
|
+
inputs: [],
|
|
108
|
+
name: "NameIsNotWrapped",
|
|
109
|
+
type: "error"
|
|
110
|
+
},
|
|
106
111
|
{
|
|
107
112
|
inputs: [
|
|
108
113
|
{
|
|
@@ -183,12 +188,6 @@ const _abi = [
|
|
|
183
188
|
name: "node",
|
|
184
189
|
type: "bytes32"
|
|
185
190
|
},
|
|
186
|
-
{
|
|
187
|
-
indexed: false,
|
|
188
|
-
internalType: "uint32",
|
|
189
|
-
name: "fuses",
|
|
190
|
-
type: "uint32"
|
|
191
|
-
},
|
|
192
191
|
{
|
|
193
192
|
indexed: false,
|
|
194
193
|
internalType: "uint64",
|
|
@@ -196,6 +195,25 @@ const _abi = [
|
|
|
196
195
|
type: "uint64"
|
|
197
196
|
}
|
|
198
197
|
],
|
|
198
|
+
name: "ExpiryExtended",
|
|
199
|
+
type: "event"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
anonymous: false,
|
|
203
|
+
inputs: [
|
|
204
|
+
{
|
|
205
|
+
indexed: true,
|
|
206
|
+
internalType: "bytes32",
|
|
207
|
+
name: "node",
|
|
208
|
+
type: "bytes32"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
indexed: false,
|
|
212
|
+
internalType: "uint32",
|
|
213
|
+
name: "fuses",
|
|
214
|
+
type: "uint32"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
199
217
|
name: "FusesSet",
|
|
200
218
|
type: "event"
|
|
201
219
|
},
|
|
@@ -458,6 +476,30 @@ const _abi = [
|
|
|
458
476
|
stateMutability: "view",
|
|
459
477
|
type: "function"
|
|
460
478
|
},
|
|
479
|
+
{
|
|
480
|
+
inputs: [
|
|
481
|
+
{
|
|
482
|
+
internalType: "bytes32",
|
|
483
|
+
name: "node",
|
|
484
|
+
type: "bytes32"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
internalType: "address",
|
|
488
|
+
name: "addr",
|
|
489
|
+
type: "address"
|
|
490
|
+
}
|
|
491
|
+
],
|
|
492
|
+
name: "canModifyName",
|
|
493
|
+
outputs: [
|
|
494
|
+
{
|
|
495
|
+
internalType: "bool",
|
|
496
|
+
name: "",
|
|
497
|
+
type: "bool"
|
|
498
|
+
}
|
|
499
|
+
],
|
|
500
|
+
stateMutability: "view",
|
|
501
|
+
type: "function"
|
|
502
|
+
},
|
|
461
503
|
{
|
|
462
504
|
inputs: [
|
|
463
505
|
{
|
|
@@ -490,6 +532,35 @@ const _abi = [
|
|
|
490
532
|
stateMutability: "view",
|
|
491
533
|
type: "function"
|
|
492
534
|
},
|
|
535
|
+
{
|
|
536
|
+
inputs: [
|
|
537
|
+
{
|
|
538
|
+
internalType: "bytes32",
|
|
539
|
+
name: "parentNode",
|
|
540
|
+
type: "bytes32"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
internalType: "bytes32",
|
|
544
|
+
name: "labelhash",
|
|
545
|
+
type: "bytes32"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
internalType: "uint64",
|
|
549
|
+
name: "expiry",
|
|
550
|
+
type: "uint64"
|
|
551
|
+
}
|
|
552
|
+
],
|
|
553
|
+
name: "extendExpiry",
|
|
554
|
+
outputs: [
|
|
555
|
+
{
|
|
556
|
+
internalType: "uint64",
|
|
557
|
+
name: "",
|
|
558
|
+
type: "uint64"
|
|
559
|
+
}
|
|
560
|
+
],
|
|
561
|
+
stateMutability: "nonpayable",
|
|
562
|
+
type: "function"
|
|
563
|
+
},
|
|
493
564
|
{
|
|
494
565
|
inputs: [
|
|
495
566
|
{
|
|
@@ -502,17 +573,17 @@ const _abi = [
|
|
|
502
573
|
outputs: [
|
|
503
574
|
{
|
|
504
575
|
internalType: "address",
|
|
505
|
-
name: "",
|
|
576
|
+
name: "owner",
|
|
506
577
|
type: "address"
|
|
507
578
|
},
|
|
508
579
|
{
|
|
509
580
|
internalType: "uint32",
|
|
510
|
-
name: "",
|
|
581
|
+
name: "fuses",
|
|
511
582
|
type: "uint32"
|
|
512
583
|
},
|
|
513
584
|
{
|
|
514
585
|
internalType: "uint64",
|
|
515
|
-
name: "",
|
|
586
|
+
name: "expiry",
|
|
516
587
|
type: "uint64"
|
|
517
588
|
}
|
|
518
589
|
],
|
|
@@ -543,30 +614,6 @@ const _abi = [
|
|
|
543
614
|
stateMutability: "view",
|
|
544
615
|
type: "function"
|
|
545
616
|
},
|
|
546
|
-
{
|
|
547
|
-
inputs: [
|
|
548
|
-
{
|
|
549
|
-
internalType: "bytes32",
|
|
550
|
-
name: "node",
|
|
551
|
-
type: "bytes32"
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
internalType: "address",
|
|
555
|
-
name: "addr",
|
|
556
|
-
type: "address"
|
|
557
|
-
}
|
|
558
|
-
],
|
|
559
|
-
name: "isTokenOwnerOrApproved",
|
|
560
|
-
outputs: [
|
|
561
|
-
{
|
|
562
|
-
internalType: "bool",
|
|
563
|
-
name: "",
|
|
564
|
-
type: "bool"
|
|
565
|
-
}
|
|
566
|
-
],
|
|
567
|
-
stateMutability: "view",
|
|
568
|
-
type: "function"
|
|
569
|
-
},
|
|
570
617
|
{
|
|
571
618
|
inputs: [
|
|
572
619
|
{
|
|
@@ -743,14 +790,9 @@ const _abi = [
|
|
|
743
790
|
type: "address"
|
|
744
791
|
},
|
|
745
792
|
{
|
|
746
|
-
internalType: "
|
|
747
|
-
name: "
|
|
748
|
-
type: "
|
|
749
|
-
},
|
|
750
|
-
{
|
|
751
|
-
internalType: "uint64",
|
|
752
|
-
name: "expiry",
|
|
753
|
-
type: "uint64"
|
|
793
|
+
internalType: "uint16",
|
|
794
|
+
name: "ownerControlledFuses",
|
|
795
|
+
type: "uint16"
|
|
754
796
|
}
|
|
755
797
|
],
|
|
756
798
|
name: "registerAndWrapETH2LD",
|
|
@@ -788,16 +830,6 @@ const _abi = [
|
|
|
788
830
|
internalType: "uint256",
|
|
789
831
|
name: "duration",
|
|
790
832
|
type: "uint256"
|
|
791
|
-
},
|
|
792
|
-
{
|
|
793
|
-
internalType: "uint32",
|
|
794
|
-
name: "fuses",
|
|
795
|
-
type: "uint32"
|
|
796
|
-
},
|
|
797
|
-
{
|
|
798
|
-
internalType: "uint64",
|
|
799
|
-
name: "expiry",
|
|
800
|
-
type: "uint64"
|
|
801
833
|
}
|
|
802
834
|
],
|
|
803
835
|
name: "renew",
|
|
@@ -956,9 +988,9 @@ const _abi = [
|
|
|
956
988
|
type: "bytes32"
|
|
957
989
|
},
|
|
958
990
|
{
|
|
959
|
-
internalType: "
|
|
960
|
-
name: "
|
|
961
|
-
type: "
|
|
991
|
+
internalType: "uint16",
|
|
992
|
+
name: "ownerControlledFuses",
|
|
993
|
+
type: "uint16"
|
|
962
994
|
}
|
|
963
995
|
],
|
|
964
996
|
name: "setFuses",
|
|
@@ -1347,14 +1379,9 @@ const _abi = [
|
|
|
1347
1379
|
type: "address"
|
|
1348
1380
|
},
|
|
1349
1381
|
{
|
|
1350
|
-
internalType: "
|
|
1351
|
-
name: "
|
|
1352
|
-
type: "
|
|
1353
|
-
},
|
|
1354
|
-
{
|
|
1355
|
-
internalType: "uint64",
|
|
1356
|
-
name: "expiry",
|
|
1357
|
-
type: "uint64"
|
|
1382
|
+
internalType: "uint16",
|
|
1383
|
+
name: "ownerControlledFuses",
|
|
1384
|
+
type: "uint16"
|
|
1358
1385
|
},
|
|
1359
1386
|
{
|
|
1360
1387
|
internalType: "address",
|
|
@@ -1363,13 +1390,7 @@ const _abi = [
|
|
|
1363
1390
|
}
|
|
1364
1391
|
],
|
|
1365
1392
|
name: "wrapETH2LD",
|
|
1366
|
-
outputs: [
|
|
1367
|
-
{
|
|
1368
|
-
internalType: "uint64",
|
|
1369
|
-
name: "",
|
|
1370
|
-
type: "uint64"
|
|
1371
|
-
}
|
|
1372
|
-
],
|
|
1393
|
+
outputs: [],
|
|
1373
1394
|
stateMutability: "nonpayable",
|
|
1374
1395
|
type: "function"
|
|
1375
1396
|
}
|
|
@@ -138,6 +138,37 @@ const _abi = [
|
|
|
138
138
|
name: "ApprovalForAll",
|
|
139
139
|
type: "event"
|
|
140
140
|
},
|
|
141
|
+
{
|
|
142
|
+
anonymous: false,
|
|
143
|
+
inputs: [
|
|
144
|
+
{
|
|
145
|
+
indexed: false,
|
|
146
|
+
internalType: "address",
|
|
147
|
+
name: "owner",
|
|
148
|
+
type: "address"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
indexed: true,
|
|
152
|
+
internalType: "bytes32",
|
|
153
|
+
name: "node",
|
|
154
|
+
type: "bytes32"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
indexed: true,
|
|
158
|
+
internalType: "address",
|
|
159
|
+
name: "delegate",
|
|
160
|
+
type: "address"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
indexed: true,
|
|
164
|
+
internalType: "bool",
|
|
165
|
+
name: "approved",
|
|
166
|
+
type: "bool"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
name: "Approved",
|
|
170
|
+
type: "event"
|
|
171
|
+
},
|
|
141
172
|
{
|
|
142
173
|
anonymous: false,
|
|
143
174
|
inputs: [
|
|
@@ -429,6 +460,29 @@ const _abi = [
|
|
|
429
460
|
stateMutability: "view",
|
|
430
461
|
type: "function"
|
|
431
462
|
},
|
|
463
|
+
{
|
|
464
|
+
inputs: [
|
|
465
|
+
{
|
|
466
|
+
internalType: "bytes32",
|
|
467
|
+
name: "node",
|
|
468
|
+
type: "bytes32"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
internalType: "address",
|
|
472
|
+
name: "delegate",
|
|
473
|
+
type: "address"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
internalType: "bool",
|
|
477
|
+
name: "approved",
|
|
478
|
+
type: "bool"
|
|
479
|
+
}
|
|
480
|
+
],
|
|
481
|
+
name: "approve",
|
|
482
|
+
outputs: [],
|
|
483
|
+
stateMutability: "nonpayable",
|
|
484
|
+
type: "function"
|
|
485
|
+
},
|
|
432
486
|
{
|
|
433
487
|
inputs: [
|
|
434
488
|
{
|
|
@@ -538,6 +592,35 @@ const _abi = [
|
|
|
538
592
|
stateMutability: "view",
|
|
539
593
|
type: "function"
|
|
540
594
|
},
|
|
595
|
+
{
|
|
596
|
+
inputs: [
|
|
597
|
+
{
|
|
598
|
+
internalType: "address",
|
|
599
|
+
name: "owner",
|
|
600
|
+
type: "address"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
internalType: "bytes32",
|
|
604
|
+
name: "node",
|
|
605
|
+
type: "bytes32"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
internalType: "address",
|
|
609
|
+
name: "delegate",
|
|
610
|
+
type: "address"
|
|
611
|
+
}
|
|
612
|
+
],
|
|
613
|
+
name: "isApprovedFor",
|
|
614
|
+
outputs: [
|
|
615
|
+
{
|
|
616
|
+
internalType: "bool",
|
|
617
|
+
name: "",
|
|
618
|
+
type: "bool"
|
|
619
|
+
}
|
|
620
|
+
],
|
|
621
|
+
stateMutability: "view",
|
|
622
|
+
type: "function"
|
|
623
|
+
},
|
|
541
624
|
{
|
|
542
625
|
inputs: [
|
|
543
626
|
{
|
|
@@ -71,6 +71,25 @@ const _abi = [
|
|
|
71
71
|
name: "OffchainLookup",
|
|
72
72
|
type: "error"
|
|
73
73
|
},
|
|
74
|
+
{
|
|
75
|
+
anonymous: false,
|
|
76
|
+
inputs: [
|
|
77
|
+
{
|
|
78
|
+
indexed: true,
|
|
79
|
+
internalType: "address",
|
|
80
|
+
name: "previousOwner",
|
|
81
|
+
type: "address"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
indexed: true,
|
|
85
|
+
internalType: "address",
|
|
86
|
+
name: "newOwner",
|
|
87
|
+
type: "address"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
name: "OwnershipTransferred",
|
|
91
|
+
type: "event"
|
|
92
|
+
},
|
|
74
93
|
{
|
|
75
94
|
inputs: [
|
|
76
95
|
{
|
|
@@ -158,6 +177,19 @@ const _abi = [
|
|
|
158
177
|
stateMutability: "view",
|
|
159
178
|
type: "function"
|
|
160
179
|
},
|
|
180
|
+
{
|
|
181
|
+
inputs: [],
|
|
182
|
+
name: "owner",
|
|
183
|
+
outputs: [
|
|
184
|
+
{
|
|
185
|
+
internalType: "address",
|
|
186
|
+
name: "",
|
|
187
|
+
type: "address"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
stateMutability: "view",
|
|
191
|
+
type: "function"
|
|
192
|
+
},
|
|
161
193
|
{
|
|
162
194
|
inputs: [],
|
|
163
195
|
name: "registry",
|
|
@@ -171,6 +203,13 @@ const _abi = [
|
|
|
171
203
|
stateMutability: "view",
|
|
172
204
|
type: "function"
|
|
173
205
|
},
|
|
206
|
+
{
|
|
207
|
+
inputs: [],
|
|
208
|
+
name: "renounceOwnership",
|
|
209
|
+
outputs: [],
|
|
210
|
+
stateMutability: "nonpayable",
|
|
211
|
+
type: "function"
|
|
212
|
+
},
|
|
174
213
|
{
|
|
175
214
|
inputs: [
|
|
176
215
|
{
|
|
@@ -323,7 +362,7 @@ const _abi = [
|
|
|
323
362
|
type: "address"
|
|
324
363
|
}
|
|
325
364
|
],
|
|
326
|
-
stateMutability: "
|
|
365
|
+
stateMutability: "view",
|
|
327
366
|
type: "function"
|
|
328
367
|
},
|
|
329
368
|
{
|
|
@@ -352,7 +391,7 @@ const _abi = [
|
|
|
352
391
|
type: "address"
|
|
353
392
|
}
|
|
354
393
|
],
|
|
355
|
-
stateMutability: "
|
|
394
|
+
stateMutability: "view",
|
|
356
395
|
type: "function"
|
|
357
396
|
},
|
|
358
397
|
{
|
|
@@ -464,6 +503,19 @@ const _abi = [
|
|
|
464
503
|
type: "address"
|
|
465
504
|
}
|
|
466
505
|
],
|
|
506
|
+
stateMutability: "view",
|
|
507
|
+
type: "function"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
inputs: [
|
|
511
|
+
{
|
|
512
|
+
internalType: "string[]",
|
|
513
|
+
name: "_urls",
|
|
514
|
+
type: "string[]"
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
name: "setGatewayURLs",
|
|
518
|
+
outputs: [],
|
|
467
519
|
stateMutability: "nonpayable",
|
|
468
520
|
type: "function"
|
|
469
521
|
},
|
|
@@ -485,6 +537,19 @@ const _abi = [
|
|
|
485
537
|
],
|
|
486
538
|
stateMutability: "view",
|
|
487
539
|
type: "function"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
inputs: [
|
|
543
|
+
{
|
|
544
|
+
internalType: "address",
|
|
545
|
+
name: "newOwner",
|
|
546
|
+
type: "address"
|
|
547
|
+
}
|
|
548
|
+
],
|
|
549
|
+
name: "transferOwnership",
|
|
550
|
+
outputs: [],
|
|
551
|
+
stateMutability: "nonpayable",
|
|
552
|
+
type: "function"
|
|
488
553
|
}
|
|
489
554
|
];
|
|
490
555
|
class UniversalResolver__factory {
|
package/dist/cjs/index.js
CHANGED
|
@@ -230,6 +230,16 @@ class ENS {
|
|
|
230
230
|
["contracts"],
|
|
231
231
|
"_getText"
|
|
232
232
|
);
|
|
233
|
+
this.getABI = this.generateRawFunction(
|
|
234
|
+
"initialGetters",
|
|
235
|
+
["contracts", "universalWrapper"],
|
|
236
|
+
"getABI"
|
|
237
|
+
);
|
|
238
|
+
this._getABI = this.generateRawFunction(
|
|
239
|
+
"initialGetters",
|
|
240
|
+
["contracts"],
|
|
241
|
+
"_getABI"
|
|
242
|
+
);
|
|
233
243
|
this.getOwner = this.generateRawFunction(
|
|
234
244
|
"initialGetters",
|
|
235
245
|
["contracts", "multicallWrapper", "gqlInstance"],
|
|
@@ -291,16 +301,17 @@ class ENS {
|
|
|
291
301
|
this.transferController = this.generateWriteFunction("transferController", ["contracts"]);
|
|
292
302
|
this.wrapName = this.generateWriteFunction(
|
|
293
303
|
"wrapName",
|
|
294
|
-
["contracts"
|
|
304
|
+
["contracts"]
|
|
295
305
|
);
|
|
296
306
|
this.unwrapName = this.generateWriteFunction(
|
|
297
307
|
"unwrapName",
|
|
298
308
|
["contracts"]
|
|
299
309
|
);
|
|
300
|
-
this.
|
|
301
|
-
"
|
|
310
|
+
this.setFuses = this.generateWriteFunction(
|
|
311
|
+
"setFuses",
|
|
302
312
|
["contracts"]
|
|
303
313
|
);
|
|
314
|
+
this.setChildFuses = this.generateWriteFunction("setFuses", ["contracts"], "setChildFuses");
|
|
304
315
|
this.importDNSSECName = this.generateWriteFunction("importDNSSECName", ["contracts", "provider", "signer"]);
|
|
305
316
|
this.createSubname = this.generateWriteFunction("createSubname", ["contracts", "getExpiry"]);
|
|
306
317
|
this.deleteSubname = this.generateWriteFunction("deleteSubname", ["contracts"]);
|
|
@@ -314,7 +325,7 @@ class ENS {
|
|
|
314
325
|
"renewNames",
|
|
315
326
|
["contracts"]
|
|
316
327
|
);
|
|
317
|
-
this.
|
|
328
|
+
this.extendWrappedName = this.generateWriteFunction("renewNames", ["contracts"], "extendWrappedName");
|
|
318
329
|
this.options = options;
|
|
319
330
|
this.getContractAddress = (options == null ? void 0 : options.getContractAddress) || import_getContractAddress.getContractAddress;
|
|
320
331
|
}
|
package/dist/cjs/utils/consts.js
CHANGED
|
@@ -18,7 +18,9 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var consts_exports = {};
|
|
20
20
|
__export(consts_exports, {
|
|
21
|
-
EMPTY_ADDRESS: () => EMPTY_ADDRESS
|
|
21
|
+
EMPTY_ADDRESS: () => EMPTY_ADDRESS,
|
|
22
|
+
MAX_INT_64: () => MAX_INT_64
|
|
22
23
|
});
|
|
23
24
|
module.exports = __toCommonJS(consts_exports);
|
|
24
25
|
const EMPTY_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
26
|
+
const MAX_INT_64 = 2n ** 64n - 1n;
|