@ensdomains/ensjs 3.0.0-alpha.22 → 3.0.0-alpha.24

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 (93) hide show
  1. package/dist/cjs/contracts/getContractAddress.js +22 -7
  2. package/dist/cjs/functions/burnFuses.js +1 -38
  3. package/dist/cjs/functions/commitName.js +2 -0
  4. package/dist/cjs/functions/createSubname.js +3 -2
  5. package/dist/cjs/functions/getHistory.js +19 -14
  6. package/dist/cjs/functions/getNames.js +1 -1
  7. package/dist/cjs/functions/{getFuses.js → getWrapperData.js} +10 -11
  8. package/dist/cjs/functions/registerName.js +2 -0
  9. package/dist/cjs/functions/renewNames.js +23 -3
  10. package/dist/cjs/functions/transferController.js +42 -0
  11. package/dist/cjs/functions/transferSubname.js +2 -2
  12. package/dist/cjs/functions/wrapName.js +3 -2
  13. package/dist/cjs/generated/factories/ETHRegistrarController__factory.js +137 -0
  14. package/dist/cjs/generated/factories/NameWrapper__factory.js +63 -39
  15. package/dist/cjs/generated/factories/PublicResolver__factory.js +69 -14
  16. package/dist/cjs/generated/factories/ReverseRegistrar__factory.js +13 -0
  17. package/dist/cjs/index.js +6 -3
  18. package/dist/cjs/utils/fuses.js +43 -1
  19. package/dist/cjs/utils/recordHelpers.js +5 -0
  20. package/dist/cjs/utils/registerHelpers.js +1 -0
  21. package/dist/cjs/utils/{wrapperExpiry.js → wrapper.js} +11 -4
  22. package/dist/esm/contracts/getContractAddress.mjs +22 -7
  23. package/dist/esm/functions/burnFuses.mjs +2 -42
  24. package/dist/esm/functions/commitName.mjs +2 -0
  25. package/dist/esm/functions/createSubname.mjs +2 -1
  26. package/dist/esm/functions/getHistory.mjs +19 -14
  27. package/dist/esm/functions/getNames.mjs +1 -1
  28. package/dist/esm/functions/{getFuses.mjs → getWrapperData.mjs} +8 -9
  29. package/dist/esm/functions/registerName.mjs +2 -0
  30. package/dist/esm/functions/renewNames.mjs +23 -3
  31. package/dist/esm/functions/transferController.mjs +23 -0
  32. package/dist/esm/functions/transferSubname.mjs +1 -1
  33. package/dist/esm/functions/wrapName.mjs +2 -1
  34. package/dist/esm/generated/factories/ETHRegistrarController__factory.mjs +137 -0
  35. package/dist/esm/generated/factories/NameWrapper__factory.mjs +63 -39
  36. package/dist/esm/generated/factories/PublicResolver__factory.mjs +69 -14
  37. package/dist/esm/generated/factories/ReverseRegistrar__factory.mjs +13 -0
  38. package/dist/esm/index.mjs +6 -3
  39. package/dist/esm/utils/fuses.mjs +43 -1
  40. package/dist/esm/utils/recordHelpers.mjs +5 -0
  41. package/dist/esm/utils/registerHelpers.mjs +1 -0
  42. package/dist/esm/utils/{wrapperExpiry.mjs → wrapper.mjs} +9 -2
  43. package/dist/types/functions/burnFuses.d.ts +1 -11
  44. package/dist/types/functions/createSubname.d.ts +1 -1
  45. package/dist/types/functions/{getFuses.d.ts → getWrapperData.d.ts} +1 -1
  46. package/dist/types/functions/renewNames.d.ts +9 -2
  47. package/dist/types/functions/transferController.d.ts +6 -0
  48. package/dist/types/functions/transferSubname.d.ts +1 -1
  49. package/dist/types/functions/wrapName.d.ts +1 -1
  50. package/dist/types/generated/ETHRegistrarController.d.ts +42 -1
  51. package/dist/types/generated/NameWrapper.d.ts +66 -78
  52. package/dist/types/generated/PublicResolver.d.ts +51 -23
  53. package/dist/types/generated/ReverseRegistrar.d.ts +11 -0
  54. package/dist/types/generated/factories/ETHRegistrarController__factory.d.ts +12 -1
  55. package/dist/types/index.d.ts +5 -2
  56. package/dist/types/utils/fuses.d.ts +11 -0
  57. package/dist/types/utils/recordHelpers.d.ts +1 -0
  58. package/dist/types/utils/registerHelpers.d.ts +1 -0
  59. package/dist/types/utils/{wrapperExpiry.d.ts → wrapper.d.ts} +2 -1
  60. package/package.json +5 -4
  61. package/src/contracts/getContractAddress.ts +19 -4
  62. package/src/functions/burnFuses.test.ts +4 -4
  63. package/src/functions/burnFuses.ts +2 -65
  64. package/src/functions/commitName.ts +3 -0
  65. package/src/functions/createSubname.ts +2 -1
  66. package/src/functions/getHistory.ts +19 -13
  67. package/src/functions/getNames.test.ts +0 -1
  68. package/src/functions/getNames.ts +1 -1
  69. package/src/functions/getPrice.test.ts +9 -6
  70. package/src/functions/getProfile.test.ts +5 -6
  71. package/src/functions/getResolver.test.ts +2 -2
  72. package/src/functions/{getFuses.test.ts → getWrapperData.test.ts} +8 -6
  73. package/src/functions/{getFuses.ts → getWrapperData.ts} +6 -7
  74. package/src/functions/registerName.ts +3 -0
  75. package/src/functions/renewNames.test.ts +3 -3
  76. package/src/functions/renewNames.ts +36 -6
  77. package/src/functions/transferController.ts +28 -0
  78. package/src/functions/transferSubname.ts +1 -1
  79. package/src/functions/wrapName.test.ts +12 -3
  80. package/src/functions/wrapName.ts +3 -1
  81. package/src/generated/ETHRegistrarController.ts +104 -0
  82. package/src/generated/NameWrapper.ts +127 -90
  83. package/src/generated/PublicResolver.ts +114 -33
  84. package/src/generated/ReverseRegistrar.ts +20 -0
  85. package/src/generated/factories/ETHRegistrarController__factory.ts +137 -0
  86. package/src/generated/factories/NameWrapper__factory.ts +63 -39
  87. package/src/generated/factories/PublicResolver__factory.ts +69 -14
  88. package/src/generated/factories/ReverseRegistrar__factory.ts +13 -0
  89. package/src/index.ts +19 -5
  90. package/src/utils/fuses.ts +64 -0
  91. package/src/utils/recordHelpers.ts +7 -0
  92. package/src/utils/registerHelpers.ts +1 -1
  93. package/src/utils/{wrapperExpiry.ts → wrapper.ts} +8 -1
@@ -28,7 +28,7 @@ var getNames = async ({ gqlInstance }, {
28
28
  page,
29
29
  pageSize = 10,
30
30
  orderDirection,
31
- orderBy
31
+ orderBy = "labelName"
32
32
  }) => {
33
33
  const address = _address.toLowerCase();
34
34
  const client = gqlInstance.client;
@@ -1,4 +1,4 @@
1
- // src/functions/getFuses.ts
1
+ // src/functions/getWrapperData.ts
2
2
  import { BigNumber } from "ethers";
3
3
  import { fuseEnum } from "../utils/fuses.mjs";
4
4
  import { namehash } from "../utils/normalise.mjs";
@@ -12,11 +12,10 @@ var raw = async ({ contracts }, name) => {
12
12
  var decode = async ({ contracts }, data) => {
13
13
  const nameWrapper = await contracts?.getNameWrapper();
14
14
  try {
15
- const {
16
- owner,
17
- fuses: _fuses,
18
- expiry
19
- } = nameWrapper.interface.decodeFunctionResult("getData", data);
15
+ const [owner, _fuses, expiry] = nameWrapper.interface.decodeFunctionResult(
16
+ "getData",
17
+ data
18
+ );
20
19
  const fuses = BigNumber.from(_fuses);
21
20
  const fuseObj = Object.fromEntries(
22
21
  Object.keys(fuseEnum).map((fuse) => [
@@ -37,14 +36,14 @@ var decode = async ({ contracts }, data) => {
37
36
  owner
38
37
  };
39
38
  } catch (e) {
40
- console.error("Error decoding fuses data: ", e);
39
+ console.error("Error decoding wrapper data: ", e);
41
40
  return;
42
41
  }
43
42
  };
44
- var getFuses_default = {
43
+ var getWrapperData_default = {
45
44
  raw,
46
45
  decode
47
46
  };
48
47
  export {
49
- getFuses_default as default
48
+ getWrapperData_default as default
50
49
  };
@@ -2,10 +2,12 @@
2
2
  import {
3
3
  makeRegistrationData
4
4
  } from "../utils/registerHelpers.mjs";
5
+ import { wrappedLabelLengthCheck } from "../utils/wrapper.mjs";
5
6
  async function registerName_default({ contracts }, name, { resolverAddress, value, ...params }) {
6
7
  const labels = name.split(".");
7
8
  if (labels.length !== 2 || labels[1] !== "eth")
8
9
  throw new Error("Currently only .eth TLD registrations are supported");
10
+ wrappedLabelLengthCheck(labels[0]);
9
11
  const controller = await contracts.getEthRegistrarController();
10
12
  const _resolver = await contracts.getPublicResolver(
11
13
  void 0,
@@ -1,8 +1,27 @@
1
1
  // src/functions/renewNames.ts
2
- async function renewNames_default({ contracts }, nameOrNames, {
2
+ import { validateFuses } from "../utils/fuses.mjs";
3
+ import { MAX_INT_64 } from "../utils/registerHelpers.mjs";
4
+ async function renewNameWithData({ contracts }, name, {
3
5
  duration,
4
- value
6
+ value,
7
+ fuses,
8
+ wrapperExpiry = MAX_INT_64
5
9
  }) {
10
+ const labels = name.split(".");
11
+ if (labels.length !== 2 || labels[1] !== "eth") {
12
+ throw new Error("Currently only .eth TLD renewals are supported");
13
+ }
14
+ const encodedFuses = fuses ? validateFuses(fuses) : 0;
15
+ const controller = await contracts.getEthRegistrarController();
16
+ return controller.populateTransaction.renewWithFuses(
17
+ labels[0],
18
+ duration,
19
+ encodedFuses,
20
+ wrapperExpiry,
21
+ { value }
22
+ );
23
+ }
24
+ async function renewNames_default({ contracts }, nameOrNames, { duration, value }) {
6
25
  const names = Array.isArray(nameOrNames) ? nameOrNames : [nameOrNames];
7
26
  const labels = names.map((name) => {
8
27
  const label = name.split(".");
@@ -19,5 +38,6 @@ async function renewNames_default({ contracts }, nameOrNames, {
19
38
  return bulkRenewal.populateTransaction.renewAll(labels, duration, { value });
20
39
  }
21
40
  export {
22
- renewNames_default as default
41
+ renewNames_default as default,
42
+ renewNameWithData
23
43
  };
@@ -0,0 +1,23 @@
1
+ // src/functions/transferController.ts
2
+ import { ethers } from "ethers";
3
+ async function transferController_default({ contracts, signer }, name, {
4
+ newOwner,
5
+ isOwner
6
+ }) {
7
+ const baseRegistrar = (await contracts?.getBaseRegistrar()).connect(signer);
8
+ const registry = (await contracts?.getRegistry()).connect(signer);
9
+ const labels = name.split(".");
10
+ if (isOwner) {
11
+ return registry.populateTransaction.setOwner(
12
+ ethers.utils.solidityKeccak256(["string"], [labels[0]]),
13
+ newOwner
14
+ );
15
+ }
16
+ return baseRegistrar.populateTransaction.reclaim(
17
+ ethers.utils.solidityKeccak256(["string"], [labels[0]]),
18
+ newOwner
19
+ );
20
+ }
21
+ export {
22
+ transferController_default as default
23
+ };
@@ -1,7 +1,7 @@
1
1
  // src/functions/transferSubname.ts
2
2
  import { ethers } from "ethers";
3
3
  import { namehash } from "../utils/normalise.mjs";
4
- import { makeExpiry } from "../utils/wrapperExpiry.mjs";
4
+ import { makeExpiry } from "../utils/wrapper.mjs";
5
5
  async function transferSubname_default({
6
6
  contracts,
7
7
  signer,
@@ -2,7 +2,7 @@
2
2
  import { ethers } from "ethers";
3
3
  import generateFuseInput from "../utils/generateFuseInput.mjs";
4
4
  import { hexEncodeName } from "../utils/hexEncodedName.mjs";
5
- import { makeExpiry } from "../utils/wrapperExpiry.mjs";
5
+ import { makeExpiry, wrappedLabelLengthCheck } from "../utils/wrapper.mjs";
6
6
  async function wrapETH({ contracts }, labels, wrappedOwner, expiry, decodedFuses, resolverAddress, signer, address) {
7
7
  const nameWrapper = await contracts?.getNameWrapper();
8
8
  const baseRegistrar = (await contracts.getBaseRegistrar()).connect(signer);
@@ -47,6 +47,7 @@ async function wrapName_default({
47
47
  if (!resolverAddress)
48
48
  resolverAddress = publicResolver.address;
49
49
  const labels = name.split(".");
50
+ wrappedLabelLengthCheck(labels[0]);
50
51
  if (labels.length === 2 && labels[1] === "eth") {
51
52
  switch (typeof fuseOptions) {
52
53
  case "object": {
@@ -44,6 +44,92 @@ var _abi = [
44
44
  stateMutability: "nonpayable",
45
45
  type: "constructor"
46
46
  },
47
+ {
48
+ inputs: [
49
+ {
50
+ internalType: "bytes32",
51
+ name: "commitment",
52
+ type: "bytes32"
53
+ }
54
+ ],
55
+ name: "CommitmentTooNew",
56
+ type: "error"
57
+ },
58
+ {
59
+ inputs: [
60
+ {
61
+ internalType: "bytes32",
62
+ name: "commitment",
63
+ type: "bytes32"
64
+ }
65
+ ],
66
+ name: "CommitmentTooOld",
67
+ type: "error"
68
+ },
69
+ {
70
+ inputs: [
71
+ {
72
+ internalType: "uint256",
73
+ name: "duration",
74
+ type: "uint256"
75
+ }
76
+ ],
77
+ name: "DurationTooShort",
78
+ type: "error"
79
+ },
80
+ {
81
+ inputs: [],
82
+ name: "InsufficientValue",
83
+ type: "error"
84
+ },
85
+ {
86
+ inputs: [],
87
+ name: "MaxCommitmentAgeTooHigh",
88
+ type: "error"
89
+ },
90
+ {
91
+ inputs: [],
92
+ name: "MaxCommitmentAgeTooLow",
93
+ type: "error"
94
+ },
95
+ {
96
+ inputs: [
97
+ {
98
+ internalType: "string",
99
+ name: "name",
100
+ type: "string"
101
+ }
102
+ ],
103
+ name: "NameNotAvailable",
104
+ type: "error"
105
+ },
106
+ {
107
+ inputs: [],
108
+ name: "ResolverRequiredWhenDataSupplied",
109
+ type: "error"
110
+ },
111
+ {
112
+ inputs: [
113
+ {
114
+ internalType: "bytes32",
115
+ name: "node",
116
+ type: "bytes32"
117
+ }
118
+ ],
119
+ name: "Unauthorised",
120
+ type: "error"
121
+ },
122
+ {
123
+ inputs: [
124
+ {
125
+ internalType: "bytes32",
126
+ name: "commitment",
127
+ type: "bytes32"
128
+ }
129
+ ],
130
+ name: "UnexpiredCommitmentExists",
131
+ type: "error"
132
+ },
47
133
  {
48
134
  anonymous: false,
49
135
  inputs: [
@@ -325,6 +411,29 @@ var _abi = [
325
411
  stateMutability: "view",
326
412
  type: "function"
327
413
  },
414
+ {
415
+ inputs: [
416
+ {
417
+ internalType: "address",
418
+ name: "_token",
419
+ type: "address"
420
+ },
421
+ {
422
+ internalType: "address",
423
+ name: "_to",
424
+ type: "address"
425
+ },
426
+ {
427
+ internalType: "uint256",
428
+ name: "_amount",
429
+ type: "uint256"
430
+ }
431
+ ],
432
+ name: "recoverFunds",
433
+ outputs: [],
434
+ stateMutability: "nonpayable",
435
+ type: "function"
436
+ },
328
437
  {
329
438
  inputs: [
330
439
  {
@@ -396,6 +505,34 @@ var _abi = [
396
505
  stateMutability: "payable",
397
506
  type: "function"
398
507
  },
508
+ {
509
+ inputs: [
510
+ {
511
+ internalType: "string",
512
+ name: "name",
513
+ type: "string"
514
+ },
515
+ {
516
+ internalType: "uint256",
517
+ name: "duration",
518
+ type: "uint256"
519
+ },
520
+ {
521
+ internalType: "uint32",
522
+ name: "fuses",
523
+ type: "uint32"
524
+ },
525
+ {
526
+ internalType: "uint64",
527
+ name: "wrapperExpiry",
528
+ type: "uint64"
529
+ }
530
+ ],
531
+ name: "renewWithFuses",
532
+ outputs: [],
533
+ stateMutability: "payable",
534
+ type: "function"
535
+ },
399
536
  {
400
537
  inputs: [],
401
538
  name: "renounceOwnership",
@@ -87,11 +87,6 @@ var _abi = [
87
87
  name: "LabelTooShort",
88
88
  type: "error"
89
89
  },
90
- {
91
- inputs: [],
92
- name: "NameNotFound",
93
- type: "error"
94
- },
95
90
  {
96
91
  inputs: [
97
92
  {
@@ -483,7 +478,7 @@ var _abi = [
483
478
  inputs: [
484
479
  {
485
480
  internalType: "uint256",
486
- name: "tokenId",
481
+ name: "id",
487
482
  type: "uint256"
488
483
  }
489
484
  ],
@@ -491,17 +486,17 @@ var _abi = [
491
486
  outputs: [
492
487
  {
493
488
  internalType: "address",
494
- name: "owner",
489
+ name: "",
495
490
  type: "address"
496
491
  },
497
492
  {
498
493
  internalType: "uint32",
499
- name: "fuses",
494
+ name: "",
500
495
  type: "uint32"
501
496
  },
502
497
  {
503
498
  internalType: "uint64",
504
- name: "expiry",
499
+ name: "",
505
500
  type: "uint64"
506
501
  }
507
502
  ],
@@ -511,22 +506,22 @@ var _abi = [
511
506
  {
512
507
  inputs: [
513
508
  {
514
- internalType: "bytes32",
515
- name: "node",
516
- type: "bytes32"
509
+ internalType: "address",
510
+ name: "account",
511
+ type: "address"
512
+ },
513
+ {
514
+ internalType: "address",
515
+ name: "operator",
516
+ type: "address"
517
517
  }
518
518
  ],
519
- name: "getFuses",
519
+ name: "isApprovedForAll",
520
520
  outputs: [
521
521
  {
522
- internalType: "uint32",
523
- name: "fuses",
524
- type: "uint32"
525
- },
526
- {
527
- internalType: "uint64",
528
- name: "expiry",
529
- type: "uint64"
522
+ internalType: "bool",
523
+ name: "",
524
+ type: "bool"
530
525
  }
531
526
  ],
532
527
  stateMutability: "view",
@@ -535,17 +530,17 @@ var _abi = [
535
530
  {
536
531
  inputs: [
537
532
  {
538
- internalType: "address",
539
- name: "account",
540
- type: "address"
533
+ internalType: "bytes32",
534
+ name: "node",
535
+ type: "bytes32"
541
536
  },
542
537
  {
543
538
  internalType: "address",
544
- name: "operator",
539
+ name: "addr",
545
540
  type: "address"
546
541
  }
547
542
  ],
548
- name: "isApprovedForAll",
543
+ name: "isTokenOwnerOrApproved",
549
544
  outputs: [
550
545
  {
551
546
  internalType: "bool",
@@ -562,14 +557,9 @@ var _abi = [
562
557
  internalType: "bytes32",
563
558
  name: "node",
564
559
  type: "bytes32"
565
- },
566
- {
567
- internalType: "address",
568
- name: "addr",
569
- type: "address"
570
560
  }
571
561
  ],
572
- name: "isTokenOwnerOrApproved",
562
+ name: "isWrapped",
573
563
  outputs: [
574
564
  {
575
565
  internalType: "bool",
@@ -678,6 +668,29 @@ var _abi = [
678
668
  stateMutability: "view",
679
669
  type: "function"
680
670
  },
671
+ {
672
+ inputs: [
673
+ {
674
+ internalType: "address",
675
+ name: "_token",
676
+ type: "address"
677
+ },
678
+ {
679
+ internalType: "address",
680
+ name: "_to",
681
+ type: "address"
682
+ },
683
+ {
684
+ internalType: "uint256",
685
+ name: "_amount",
686
+ type: "uint256"
687
+ }
688
+ ],
689
+ name: "recoverFunds",
690
+ outputs: [],
691
+ stateMutability: "nonpayable",
692
+ type: "function"
693
+ },
681
694
  {
682
695
  inputs: [
683
696
  {
@@ -747,6 +760,11 @@ var _abi = [
747
760
  name: "duration",
748
761
  type: "uint256"
749
762
  },
763
+ {
764
+ internalType: "uint32",
765
+ name: "fuses",
766
+ type: "uint32"
767
+ },
750
768
  {
751
769
  internalType: "uint64",
752
770
  name: "expiry",
@@ -929,7 +947,7 @@ var _abi = [
929
947
  inputs: [
930
948
  {
931
949
  internalType: "contract IMetadataService",
932
- name: "_newMetadataService",
950
+ name: "_metadataService",
933
951
  type: "address"
934
952
  }
935
953
  ],
@@ -998,7 +1016,7 @@ var _abi = [
998
1016
  },
999
1017
  {
1000
1018
  internalType: "address",
1001
- name: "newOwner",
1019
+ name: "owner",
1002
1020
  type: "address"
1003
1021
  },
1004
1022
  {
@@ -1037,7 +1055,7 @@ var _abi = [
1037
1055
  },
1038
1056
  {
1039
1057
  internalType: "address",
1040
- name: "newOwner",
1058
+ name: "owner",
1041
1059
  type: "address"
1042
1060
  },
1043
1061
  {
@@ -1062,7 +1080,13 @@ var _abi = [
1062
1080
  }
1063
1081
  ],
1064
1082
  name: "setSubnodeRecord",
1065
- outputs: [],
1083
+ outputs: [
1084
+ {
1085
+ internalType: "bytes32",
1086
+ name: "node",
1087
+ type: "bytes32"
1088
+ }
1089
+ ],
1066
1090
  stateMutability: "nonpayable",
1067
1091
  type: "function"
1068
1092
  },
@@ -1143,7 +1167,7 @@ var _abi = [
1143
1167
  },
1144
1168
  {
1145
1169
  internalType: "address",
1146
- name: "newController",
1170
+ name: "controller",
1147
1171
  type: "address"
1148
1172
  }
1149
1173
  ],
@@ -1161,12 +1185,12 @@ var _abi = [
1161
1185
  },
1162
1186
  {
1163
1187
  internalType: "address",
1164
- name: "newRegistrant",
1188
+ name: "registrant",
1165
1189
  type: "address"
1166
1190
  },
1167
1191
  {
1168
1192
  internalType: "address",
1169
- name: "newController",
1193
+ name: "controller",
1170
1194
  type: "address"
1171
1195
  }
1172
1196
  ],
@@ -197,19 +197,6 @@ var _abi = [
197
197
  name: "DNSRecordDeleted",
198
198
  type: "event"
199
199
  },
200
- {
201
- anonymous: false,
202
- inputs: [
203
- {
204
- indexed: true,
205
- internalType: "bytes32",
206
- name: "node",
207
- type: "bytes32"
208
- }
209
- ],
210
- name: "DNSZoneCleared",
211
- type: "event"
212
- },
213
200
  {
214
201
  anonymous: false,
215
202
  inputs: [
@@ -324,11 +311,36 @@ var _abi = [
324
311
  internalType: "string",
325
312
  name: "key",
326
313
  type: "string"
314
+ },
315
+ {
316
+ indexed: false,
317
+ internalType: "string",
318
+ name: "value",
319
+ type: "string"
327
320
  }
328
321
  ],
329
322
  name: "TextChanged",
330
323
  type: "event"
331
324
  },
325
+ {
326
+ anonymous: false,
327
+ inputs: [
328
+ {
329
+ indexed: true,
330
+ internalType: "bytes32",
331
+ name: "node",
332
+ type: "bytes32"
333
+ },
334
+ {
335
+ indexed: false,
336
+ internalType: "uint64",
337
+ name: "newVersion",
338
+ type: "uint64"
339
+ }
340
+ ],
341
+ name: "VersionChanged",
342
+ type: "event"
343
+ },
332
344
  {
333
345
  inputs: [
334
346
  {
@@ -409,7 +421,7 @@ var _abi = [
409
421
  type: "bytes32"
410
422
  }
411
423
  ],
412
- name: "clearDNSZone",
424
+ name: "clearRecords",
413
425
  outputs: [],
414
426
  stateMutability: "nonpayable",
415
427
  type: "function"
@@ -553,6 +565,30 @@ var _abi = [
553
565
  stateMutability: "nonpayable",
554
566
  type: "function"
555
567
  },
568
+ {
569
+ inputs: [
570
+ {
571
+ internalType: "bytes32",
572
+ name: "nodehash",
573
+ type: "bytes32"
574
+ },
575
+ {
576
+ internalType: "bytes[]",
577
+ name: "data",
578
+ type: "bytes[]"
579
+ }
580
+ ],
581
+ name: "multicallWithNodeCheck",
582
+ outputs: [
583
+ {
584
+ internalType: "bytes[]",
585
+ name: "results",
586
+ type: "bytes[]"
587
+ }
588
+ ],
589
+ stateMutability: "nonpayable",
590
+ type: "function"
591
+ },
556
592
  {
557
593
  inputs: [
558
594
  {
@@ -596,6 +632,25 @@ var _abi = [
596
632
  stateMutability: "view",
597
633
  type: "function"
598
634
  },
635
+ {
636
+ inputs: [
637
+ {
638
+ internalType: "bytes32",
639
+ name: "",
640
+ type: "bytes32"
641
+ }
642
+ ],
643
+ name: "recordVersions",
644
+ outputs: [
645
+ {
646
+ internalType: "uint64",
647
+ name: "",
648
+ type: "uint64"
649
+ }
650
+ ],
651
+ stateMutability: "view",
652
+ type: "function"
653
+ },
599
654
  {
600
655
  inputs: [
601
656
  {
@@ -38,6 +38,19 @@ var _abi = [
38
38
  name: "ControllerChanged",
39
39
  type: "event"
40
40
  },
41
+ {
42
+ anonymous: false,
43
+ inputs: [
44
+ {
45
+ indexed: true,
46
+ internalType: "contract NameResolver",
47
+ name: "resolver",
48
+ type: "address"
49
+ }
50
+ ],
51
+ name: "DefaultResolverChanged",
52
+ type: "event"
53
+ },
41
54
  {
42
55
  anonymous: false,
43
56
  inputs: [
@@ -165,9 +165,10 @@ var ENS = class {
165
165
  "getResolver",
166
166
  ["contracts"]
167
167
  );
168
- getFuses = this.generateRawFunction("getFuses", [
169
- "contracts"
170
- ]);
168
+ getWrapperData = this.generateRawFunction(
169
+ "getWrapperData",
170
+ ["contracts"]
171
+ );
171
172
  getHistory = this.generateFunction(
172
173
  "getHistory",
173
174
  ["gqlInstance"],
@@ -263,6 +264,7 @@ var ENS = class {
263
264
  "transferName",
264
265
  ["contracts"]
265
266
  );
267
+ transferController = this.generateWriteFunction("transferController", ["contracts"]);
266
268
  wrapName = this.generateWriteFunction("wrapName", [
267
269
  "contracts",
268
270
  "getExpiry"
@@ -298,6 +300,7 @@ var ENS = class {
298
300
  "renewNames",
299
301
  ["contracts"]
300
302
  );
303
+ renewNameWithData = this.generateWriteFunction("renewNames", ["contracts"], "renewNameWithData");
301
304
  };
302
305
  export {
303
306
  ENS