@ensdomains/ensjs 3.0.0-alpha.41 → 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/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 +5 -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 +4 -3
- 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/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 +5 -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 +2 -1
- 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 +0 -1
- package/dist/types/functions/createSubname.d.ts +2 -2
- 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/getWrapperData.d.ts +44 -5
- package/dist/types/functions/renewNames.d.ts +4 -5
- package/dist/types/functions/setFuses.d.ts +7 -0
- package/dist/types/functions/types.d.ts +6 -4
- package/dist/types/functions/wrapName.d.ts +3 -3
- 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 +51 -9
- package/dist/types/utils/consts.d.ts +1 -0
- package/dist/types/utils/fuses.d.ts +115 -45
- package/dist/types/utils/registerHelpers.d.ts +7 -25
- package/dist/types/utils/subgraph-types.d.ts +284 -0
- package/package.json +5 -5
- 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/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/types.ts +6 -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 +11 -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 +2 -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
|
@@ -112,17 +112,6 @@ const _abi = [
|
|
|
112
112
|
name: 'ResolverRequiredWhenDataSupplied',
|
|
113
113
|
type: 'error',
|
|
114
114
|
},
|
|
115
|
-
{
|
|
116
|
-
inputs: [
|
|
117
|
-
{
|
|
118
|
-
internalType: 'bytes32',
|
|
119
|
-
name: 'node',
|
|
120
|
-
type: 'bytes32',
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
name: 'Unauthorised',
|
|
124
|
-
type: 'error',
|
|
125
|
-
},
|
|
126
115
|
{
|
|
127
116
|
inputs: [
|
|
128
117
|
{
|
|
@@ -329,14 +318,9 @@ const _abi = [
|
|
|
329
318
|
type: 'bool',
|
|
330
319
|
},
|
|
331
320
|
{
|
|
332
|
-
internalType: '
|
|
333
|
-
name: '
|
|
334
|
-
type: '
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
internalType: 'uint64',
|
|
338
|
-
name: 'wrapperExpiry',
|
|
339
|
-
type: 'uint64',
|
|
321
|
+
internalType: 'uint16',
|
|
322
|
+
name: 'ownerControlledFuses',
|
|
323
|
+
type: 'uint16',
|
|
340
324
|
},
|
|
341
325
|
],
|
|
342
326
|
name: 'makeCommitment',
|
|
@@ -476,14 +460,9 @@ const _abi = [
|
|
|
476
460
|
type: 'bool',
|
|
477
461
|
},
|
|
478
462
|
{
|
|
479
|
-
internalType: '
|
|
480
|
-
name: '
|
|
481
|
-
type: '
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
internalType: 'uint64',
|
|
485
|
-
name: 'wrapperExpiry',
|
|
486
|
-
type: 'uint64',
|
|
463
|
+
internalType: 'uint16',
|
|
464
|
+
name: 'ownerControlledFuses',
|
|
465
|
+
type: 'uint16',
|
|
487
466
|
},
|
|
488
467
|
],
|
|
489
468
|
name: 'register',
|
|
@@ -509,34 +488,6 @@ const _abi = [
|
|
|
509
488
|
stateMutability: 'payable',
|
|
510
489
|
type: 'function',
|
|
511
490
|
},
|
|
512
|
-
{
|
|
513
|
-
inputs: [
|
|
514
|
-
{
|
|
515
|
-
internalType: 'string',
|
|
516
|
-
name: 'name',
|
|
517
|
-
type: 'string',
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
internalType: 'uint256',
|
|
521
|
-
name: 'duration',
|
|
522
|
-
type: 'uint256',
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
internalType: 'uint32',
|
|
526
|
-
name: 'fuses',
|
|
527
|
-
type: 'uint32',
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
internalType: 'uint64',
|
|
531
|
-
name: 'wrapperExpiry',
|
|
532
|
-
type: 'uint64',
|
|
533
|
-
},
|
|
534
|
-
],
|
|
535
|
-
name: 'renewWithFuses',
|
|
536
|
-
outputs: [],
|
|
537
|
-
stateMutability: 'payable',
|
|
538
|
-
type: 'function',
|
|
539
|
-
},
|
|
540
491
|
{
|
|
541
492
|
inputs: [],
|
|
542
493
|
name: 'renounceOwnership',
|
|
@@ -88,6 +88,11 @@ const _abi = [
|
|
|
88
88
|
name: 'LabelTooShort',
|
|
89
89
|
type: 'error',
|
|
90
90
|
},
|
|
91
|
+
{
|
|
92
|
+
inputs: [],
|
|
93
|
+
name: 'NameIsNotWrapped',
|
|
94
|
+
type: 'error',
|
|
95
|
+
},
|
|
91
96
|
{
|
|
92
97
|
inputs: [
|
|
93
98
|
{
|
|
@@ -168,12 +173,6 @@ const _abi = [
|
|
|
168
173
|
name: 'node',
|
|
169
174
|
type: 'bytes32',
|
|
170
175
|
},
|
|
171
|
-
{
|
|
172
|
-
indexed: false,
|
|
173
|
-
internalType: 'uint32',
|
|
174
|
-
name: 'fuses',
|
|
175
|
-
type: 'uint32',
|
|
176
|
-
},
|
|
177
176
|
{
|
|
178
177
|
indexed: false,
|
|
179
178
|
internalType: 'uint64',
|
|
@@ -181,6 +180,25 @@ const _abi = [
|
|
|
181
180
|
type: 'uint64',
|
|
182
181
|
},
|
|
183
182
|
],
|
|
183
|
+
name: 'ExpiryExtended',
|
|
184
|
+
type: 'event',
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
anonymous: false,
|
|
188
|
+
inputs: [
|
|
189
|
+
{
|
|
190
|
+
indexed: true,
|
|
191
|
+
internalType: 'bytes32',
|
|
192
|
+
name: 'node',
|
|
193
|
+
type: 'bytes32',
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
indexed: false,
|
|
197
|
+
internalType: 'uint32',
|
|
198
|
+
name: 'fuses',
|
|
199
|
+
type: 'uint32',
|
|
200
|
+
},
|
|
201
|
+
],
|
|
184
202
|
name: 'FusesSet',
|
|
185
203
|
type: 'event',
|
|
186
204
|
},
|
|
@@ -443,6 +461,30 @@ const _abi = [
|
|
|
443
461
|
stateMutability: 'view',
|
|
444
462
|
type: 'function',
|
|
445
463
|
},
|
|
464
|
+
{
|
|
465
|
+
inputs: [
|
|
466
|
+
{
|
|
467
|
+
internalType: 'bytes32',
|
|
468
|
+
name: 'node',
|
|
469
|
+
type: 'bytes32',
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
internalType: 'address',
|
|
473
|
+
name: 'addr',
|
|
474
|
+
type: 'address',
|
|
475
|
+
},
|
|
476
|
+
],
|
|
477
|
+
name: 'canModifyName',
|
|
478
|
+
outputs: [
|
|
479
|
+
{
|
|
480
|
+
internalType: 'bool',
|
|
481
|
+
name: '',
|
|
482
|
+
type: 'bool',
|
|
483
|
+
},
|
|
484
|
+
],
|
|
485
|
+
stateMutability: 'view',
|
|
486
|
+
type: 'function',
|
|
487
|
+
},
|
|
446
488
|
{
|
|
447
489
|
inputs: [
|
|
448
490
|
{
|
|
@@ -475,6 +517,35 @@ const _abi = [
|
|
|
475
517
|
stateMutability: 'view',
|
|
476
518
|
type: 'function',
|
|
477
519
|
},
|
|
520
|
+
{
|
|
521
|
+
inputs: [
|
|
522
|
+
{
|
|
523
|
+
internalType: 'bytes32',
|
|
524
|
+
name: 'parentNode',
|
|
525
|
+
type: 'bytes32',
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
internalType: 'bytes32',
|
|
529
|
+
name: 'labelhash',
|
|
530
|
+
type: 'bytes32',
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
internalType: 'uint64',
|
|
534
|
+
name: 'expiry',
|
|
535
|
+
type: 'uint64',
|
|
536
|
+
},
|
|
537
|
+
],
|
|
538
|
+
name: 'extendExpiry',
|
|
539
|
+
outputs: [
|
|
540
|
+
{
|
|
541
|
+
internalType: 'uint64',
|
|
542
|
+
name: '',
|
|
543
|
+
type: 'uint64',
|
|
544
|
+
},
|
|
545
|
+
],
|
|
546
|
+
stateMutability: 'nonpayable',
|
|
547
|
+
type: 'function',
|
|
548
|
+
},
|
|
478
549
|
{
|
|
479
550
|
inputs: [
|
|
480
551
|
{
|
|
@@ -487,17 +558,17 @@ const _abi = [
|
|
|
487
558
|
outputs: [
|
|
488
559
|
{
|
|
489
560
|
internalType: 'address',
|
|
490
|
-
name: '',
|
|
561
|
+
name: 'owner',
|
|
491
562
|
type: 'address',
|
|
492
563
|
},
|
|
493
564
|
{
|
|
494
565
|
internalType: 'uint32',
|
|
495
|
-
name: '',
|
|
566
|
+
name: 'fuses',
|
|
496
567
|
type: 'uint32',
|
|
497
568
|
},
|
|
498
569
|
{
|
|
499
570
|
internalType: 'uint64',
|
|
500
|
-
name: '',
|
|
571
|
+
name: 'expiry',
|
|
501
572
|
type: 'uint64',
|
|
502
573
|
},
|
|
503
574
|
],
|
|
@@ -528,30 +599,6 @@ const _abi = [
|
|
|
528
599
|
stateMutability: 'view',
|
|
529
600
|
type: 'function',
|
|
530
601
|
},
|
|
531
|
-
{
|
|
532
|
-
inputs: [
|
|
533
|
-
{
|
|
534
|
-
internalType: 'bytes32',
|
|
535
|
-
name: 'node',
|
|
536
|
-
type: 'bytes32',
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
internalType: 'address',
|
|
540
|
-
name: 'addr',
|
|
541
|
-
type: 'address',
|
|
542
|
-
},
|
|
543
|
-
],
|
|
544
|
-
name: 'isTokenOwnerOrApproved',
|
|
545
|
-
outputs: [
|
|
546
|
-
{
|
|
547
|
-
internalType: 'bool',
|
|
548
|
-
name: '',
|
|
549
|
-
type: 'bool',
|
|
550
|
-
},
|
|
551
|
-
],
|
|
552
|
-
stateMutability: 'view',
|
|
553
|
-
type: 'function',
|
|
554
|
-
},
|
|
555
602
|
{
|
|
556
603
|
inputs: [
|
|
557
604
|
{
|
|
@@ -728,14 +775,9 @@ const _abi = [
|
|
|
728
775
|
type: 'address',
|
|
729
776
|
},
|
|
730
777
|
{
|
|
731
|
-
internalType: '
|
|
732
|
-
name: '
|
|
733
|
-
type: '
|
|
734
|
-
},
|
|
735
|
-
{
|
|
736
|
-
internalType: 'uint64',
|
|
737
|
-
name: 'expiry',
|
|
738
|
-
type: 'uint64',
|
|
778
|
+
internalType: 'uint16',
|
|
779
|
+
name: 'ownerControlledFuses',
|
|
780
|
+
type: 'uint16',
|
|
739
781
|
},
|
|
740
782
|
],
|
|
741
783
|
name: 'registerAndWrapETH2LD',
|
|
@@ -774,16 +816,6 @@ const _abi = [
|
|
|
774
816
|
name: 'duration',
|
|
775
817
|
type: 'uint256',
|
|
776
818
|
},
|
|
777
|
-
{
|
|
778
|
-
internalType: 'uint32',
|
|
779
|
-
name: 'fuses',
|
|
780
|
-
type: 'uint32',
|
|
781
|
-
},
|
|
782
|
-
{
|
|
783
|
-
internalType: 'uint64',
|
|
784
|
-
name: 'expiry',
|
|
785
|
-
type: 'uint64',
|
|
786
|
-
},
|
|
787
819
|
],
|
|
788
820
|
name: 'renew',
|
|
789
821
|
outputs: [
|
|
@@ -941,9 +973,9 @@ const _abi = [
|
|
|
941
973
|
type: 'bytes32',
|
|
942
974
|
},
|
|
943
975
|
{
|
|
944
|
-
internalType: '
|
|
945
|
-
name: '
|
|
946
|
-
type: '
|
|
976
|
+
internalType: 'uint16',
|
|
977
|
+
name: 'ownerControlledFuses',
|
|
978
|
+
type: 'uint16',
|
|
947
979
|
},
|
|
948
980
|
],
|
|
949
981
|
name: 'setFuses',
|
|
@@ -1332,14 +1364,9 @@ const _abi = [
|
|
|
1332
1364
|
type: 'address',
|
|
1333
1365
|
},
|
|
1334
1366
|
{
|
|
1335
|
-
internalType: '
|
|
1336
|
-
name: '
|
|
1337
|
-
type: '
|
|
1338
|
-
},
|
|
1339
|
-
{
|
|
1340
|
-
internalType: 'uint64',
|
|
1341
|
-
name: 'expiry',
|
|
1342
|
-
type: 'uint64',
|
|
1367
|
+
internalType: 'uint16',
|
|
1368
|
+
name: 'ownerControlledFuses',
|
|
1369
|
+
type: 'uint16',
|
|
1343
1370
|
},
|
|
1344
1371
|
{
|
|
1345
1372
|
internalType: 'address',
|
|
@@ -1348,13 +1375,7 @@ const _abi = [
|
|
|
1348
1375
|
},
|
|
1349
1376
|
],
|
|
1350
1377
|
name: 'wrapETH2LD',
|
|
1351
|
-
outputs: [
|
|
1352
|
-
{
|
|
1353
|
-
internalType: 'uint64',
|
|
1354
|
-
name: '',
|
|
1355
|
-
type: 'uint64',
|
|
1356
|
-
},
|
|
1357
|
-
],
|
|
1378
|
+
outputs: [],
|
|
1358
1379
|
stateMutability: 'nonpayable',
|
|
1359
1380
|
type: 'function',
|
|
1360
1381
|
},
|
|
@@ -123,6 +123,37 @@ const _abi = [
|
|
|
123
123
|
name: 'ApprovalForAll',
|
|
124
124
|
type: 'event',
|
|
125
125
|
},
|
|
126
|
+
{
|
|
127
|
+
anonymous: false,
|
|
128
|
+
inputs: [
|
|
129
|
+
{
|
|
130
|
+
indexed: false,
|
|
131
|
+
internalType: 'address',
|
|
132
|
+
name: 'owner',
|
|
133
|
+
type: 'address',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
indexed: true,
|
|
137
|
+
internalType: 'bytes32',
|
|
138
|
+
name: 'node',
|
|
139
|
+
type: 'bytes32',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
indexed: true,
|
|
143
|
+
internalType: 'address',
|
|
144
|
+
name: 'delegate',
|
|
145
|
+
type: 'address',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
indexed: true,
|
|
149
|
+
internalType: 'bool',
|
|
150
|
+
name: 'approved',
|
|
151
|
+
type: 'bool',
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
name: 'Approved',
|
|
155
|
+
type: 'event',
|
|
156
|
+
},
|
|
126
157
|
{
|
|
127
158
|
anonymous: false,
|
|
128
159
|
inputs: [
|
|
@@ -414,6 +445,29 @@ const _abi = [
|
|
|
414
445
|
stateMutability: 'view',
|
|
415
446
|
type: 'function',
|
|
416
447
|
},
|
|
448
|
+
{
|
|
449
|
+
inputs: [
|
|
450
|
+
{
|
|
451
|
+
internalType: 'bytes32',
|
|
452
|
+
name: 'node',
|
|
453
|
+
type: 'bytes32',
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
internalType: 'address',
|
|
457
|
+
name: 'delegate',
|
|
458
|
+
type: 'address',
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
internalType: 'bool',
|
|
462
|
+
name: 'approved',
|
|
463
|
+
type: 'bool',
|
|
464
|
+
},
|
|
465
|
+
],
|
|
466
|
+
name: 'approve',
|
|
467
|
+
outputs: [],
|
|
468
|
+
stateMutability: 'nonpayable',
|
|
469
|
+
type: 'function',
|
|
470
|
+
},
|
|
417
471
|
{
|
|
418
472
|
inputs: [
|
|
419
473
|
{
|
|
@@ -523,6 +577,35 @@ const _abi = [
|
|
|
523
577
|
stateMutability: 'view',
|
|
524
578
|
type: 'function',
|
|
525
579
|
},
|
|
580
|
+
{
|
|
581
|
+
inputs: [
|
|
582
|
+
{
|
|
583
|
+
internalType: 'address',
|
|
584
|
+
name: 'owner',
|
|
585
|
+
type: 'address',
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
internalType: 'bytes32',
|
|
589
|
+
name: 'node',
|
|
590
|
+
type: 'bytes32',
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
internalType: 'address',
|
|
594
|
+
name: 'delegate',
|
|
595
|
+
type: 'address',
|
|
596
|
+
},
|
|
597
|
+
],
|
|
598
|
+
name: 'isApprovedFor',
|
|
599
|
+
outputs: [
|
|
600
|
+
{
|
|
601
|
+
internalType: 'bool',
|
|
602
|
+
name: '',
|
|
603
|
+
type: 'bool',
|
|
604
|
+
},
|
|
605
|
+
],
|
|
606
|
+
stateMutability: 'view',
|
|
607
|
+
type: 'function',
|
|
608
|
+
},
|
|
526
609
|
{
|
|
527
610
|
inputs: [
|
|
528
611
|
{
|
|
@@ -59,6 +59,25 @@ const _abi = [
|
|
|
59
59
|
name: 'OffchainLookup',
|
|
60
60
|
type: 'error',
|
|
61
61
|
},
|
|
62
|
+
{
|
|
63
|
+
anonymous: false,
|
|
64
|
+
inputs: [
|
|
65
|
+
{
|
|
66
|
+
indexed: true,
|
|
67
|
+
internalType: 'address',
|
|
68
|
+
name: 'previousOwner',
|
|
69
|
+
type: 'address',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
indexed: true,
|
|
73
|
+
internalType: 'address',
|
|
74
|
+
name: 'newOwner',
|
|
75
|
+
type: 'address',
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
name: 'OwnershipTransferred',
|
|
79
|
+
type: 'event',
|
|
80
|
+
},
|
|
62
81
|
{
|
|
63
82
|
inputs: [
|
|
64
83
|
{
|
|
@@ -146,6 +165,19 @@ const _abi = [
|
|
|
146
165
|
stateMutability: 'view',
|
|
147
166
|
type: 'function',
|
|
148
167
|
},
|
|
168
|
+
{
|
|
169
|
+
inputs: [],
|
|
170
|
+
name: 'owner',
|
|
171
|
+
outputs: [
|
|
172
|
+
{
|
|
173
|
+
internalType: 'address',
|
|
174
|
+
name: '',
|
|
175
|
+
type: 'address',
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
stateMutability: 'view',
|
|
179
|
+
type: 'function',
|
|
180
|
+
},
|
|
149
181
|
{
|
|
150
182
|
inputs: [],
|
|
151
183
|
name: 'registry',
|
|
@@ -159,6 +191,13 @@ const _abi = [
|
|
|
159
191
|
stateMutability: 'view',
|
|
160
192
|
type: 'function',
|
|
161
193
|
},
|
|
194
|
+
{
|
|
195
|
+
inputs: [],
|
|
196
|
+
name: 'renounceOwnership',
|
|
197
|
+
outputs: [],
|
|
198
|
+
stateMutability: 'nonpayable',
|
|
199
|
+
type: 'function',
|
|
200
|
+
},
|
|
162
201
|
{
|
|
163
202
|
inputs: [
|
|
164
203
|
{
|
|
@@ -311,7 +350,7 @@ const _abi = [
|
|
|
311
350
|
type: 'address',
|
|
312
351
|
},
|
|
313
352
|
],
|
|
314
|
-
stateMutability: '
|
|
353
|
+
stateMutability: 'view',
|
|
315
354
|
type: 'function',
|
|
316
355
|
},
|
|
317
356
|
{
|
|
@@ -340,7 +379,7 @@ const _abi = [
|
|
|
340
379
|
type: 'address',
|
|
341
380
|
},
|
|
342
381
|
],
|
|
343
|
-
stateMutability: '
|
|
382
|
+
stateMutability: 'view',
|
|
344
383
|
type: 'function',
|
|
345
384
|
},
|
|
346
385
|
{
|
|
@@ -452,6 +491,19 @@ const _abi = [
|
|
|
452
491
|
type: 'address',
|
|
453
492
|
},
|
|
454
493
|
],
|
|
494
|
+
stateMutability: 'view',
|
|
495
|
+
type: 'function',
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
inputs: [
|
|
499
|
+
{
|
|
500
|
+
internalType: 'string[]',
|
|
501
|
+
name: '_urls',
|
|
502
|
+
type: 'string[]',
|
|
503
|
+
},
|
|
504
|
+
],
|
|
505
|
+
name: 'setGatewayURLs',
|
|
506
|
+
outputs: [],
|
|
455
507
|
stateMutability: 'nonpayable',
|
|
456
508
|
type: 'function',
|
|
457
509
|
},
|
|
@@ -474,6 +526,19 @@ const _abi = [
|
|
|
474
526
|
stateMutability: 'view',
|
|
475
527
|
type: 'function',
|
|
476
528
|
},
|
|
529
|
+
{
|
|
530
|
+
inputs: [
|
|
531
|
+
{
|
|
532
|
+
internalType: 'address',
|
|
533
|
+
name: 'newOwner',
|
|
534
|
+
type: 'address',
|
|
535
|
+
},
|
|
536
|
+
],
|
|
537
|
+
name: 'transferOwnership',
|
|
538
|
+
outputs: [],
|
|
539
|
+
stateMutability: 'nonpayable',
|
|
540
|
+
type: 'function',
|
|
541
|
+
},
|
|
477
542
|
]
|
|
478
543
|
|
|
479
544
|
export class UniversalResolver__factory {
|
package/src/index.ts
CHANGED
|
@@ -15,14 +15,7 @@ import GqlManager from './GqlManager'
|
|
|
15
15
|
import singleCall from './utils/singleCall'
|
|
16
16
|
import writeTx from './utils/writeTx'
|
|
17
17
|
|
|
18
|
-
export type {
|
|
19
|
-
Fuse,
|
|
20
|
-
FuseArrayPossibilities,
|
|
21
|
-
FuseObj,
|
|
22
|
-
NamedFusesToBurn,
|
|
23
|
-
UnnamedFuseType,
|
|
24
|
-
UnnamedFuseValues,
|
|
25
|
-
} from './utils/fuses'
|
|
18
|
+
export type { ChildFuses, ParentFuses } from './utils/fuses'
|
|
26
19
|
|
|
27
20
|
type ENSOptions = {
|
|
28
21
|
graphURI?: string | null
|
|
@@ -597,7 +590,7 @@ export class ENS {
|
|
|
597
590
|
|
|
598
591
|
public wrapName = this.generateWriteFunction<FunctionTypes['wrapName']>(
|
|
599
592
|
'wrapName',
|
|
600
|
-
['contracts'
|
|
593
|
+
['contracts'],
|
|
601
594
|
)
|
|
602
595
|
|
|
603
596
|
public unwrapName = this.generateWriteFunction<FunctionTypes['unwrapName']>(
|
|
@@ -605,11 +598,15 @@ export class ENS {
|
|
|
605
598
|
['contracts'],
|
|
606
599
|
)
|
|
607
600
|
|
|
608
|
-
public
|
|
609
|
-
'
|
|
601
|
+
public setFuses = this.generateWriteFunction<FunctionTypes['setFuses']>(
|
|
602
|
+
'setFuses',
|
|
610
603
|
['contracts'],
|
|
611
604
|
)
|
|
612
605
|
|
|
606
|
+
public setChildFuses = this.generateWriteFunction<
|
|
607
|
+
FunctionTypes['setChildFuses']
|
|
608
|
+
>('setFuses', ['contracts'], 'setChildFuses')
|
|
609
|
+
|
|
613
610
|
public importDNSSECName = this.generateWriteFunction<
|
|
614
611
|
FunctionTypes['importDNSSECName']
|
|
615
612
|
>('importDNSSECName', ['contracts', 'provider', 'signer'])
|
|
@@ -640,7 +637,7 @@ export class ENS {
|
|
|
640
637
|
['contracts'],
|
|
641
638
|
)
|
|
642
639
|
|
|
643
|
-
public
|
|
644
|
-
FunctionTypes['
|
|
645
|
-
>('renewNames', ['contracts'], '
|
|
640
|
+
public extendWrappedName = this.generateWriteFunction<
|
|
641
|
+
FunctionTypes['extendWrappedName']
|
|
642
|
+
>('renewNames', ['contracts'], 'extendWrappedName')
|
|
646
643
|
}
|
package/src/utils/consts.ts
CHANGED