@enscribe/hardhat-enscribe 0.1.1
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/README.md +211 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +33 -0
- package/dist/src/internal/abi/ENSRegistry.d.ts +36 -0
- package/dist/src/internal/abi/ENSRegistry.js +377 -0
- package/dist/src/internal/abi/NameWrapper.d.ts +51 -0
- package/dist/src/internal/abi/NameWrapper.js +1456 -0
- package/dist/src/internal/abi/Ownable.d.ts +36 -0
- package/dist/src/internal/abi/Ownable.js +55 -0
- package/dist/src/internal/abi/PublicResolver.d.ts +40 -0
- package/dist/src/internal/abi/PublicResolver.js +1014 -0
- package/dist/src/internal/abi/ReverseRegistrar.d.ts +40 -0
- package/dist/src/internal/abi/ReverseRegistrar.js +337 -0
- package/dist/src/internal/config/contracts.d.ts +175 -0
- package/dist/src/internal/config/contracts.js +168 -0
- package/dist/src/internal/constants.d.ts +1 -0
- package/dist/src/internal/constants.js +1 -0
- package/dist/src/internal/tasks/name.d.ts +9 -0
- package/dist/src/internal/tasks/name.integration.test.d.ts +1 -0
- package/dist/src/internal/tasks/name.integration.test.js +180 -0
- package/dist/src/internal/tasks/name.js +265 -0
- package/dist/src/internal/tasks/name.test.d.ts +1 -0
- package/dist/src/internal/tasks/name.test.js +55 -0
- package/dist/src/internal/type-extensions.d.ts +1 -0
- package/dist/src/internal/type-extensions.js +16 -0
- package/dist/src/internal/utils.d.ts +8 -0
- package/dist/src/internal/utils.js +48 -0
- package/dist/test/enscribe.hardhat.test.d.ts +1 -0
- package/dist/test/enscribe.hardhat.test.js +290 -0
- package/dist/test/enscribe.integration.test.d.ts +1 -0
- package/dist/test/enscribe.integration.test.js +229 -0
- package/package.json +59 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const reverseRegistrarABI: ({
|
|
2
|
+
inputs: {
|
|
3
|
+
internalType: string;
|
|
4
|
+
name: string;
|
|
5
|
+
type: string;
|
|
6
|
+
}[];
|
|
7
|
+
stateMutability: string;
|
|
8
|
+
type: string;
|
|
9
|
+
anonymous?: undefined;
|
|
10
|
+
name?: undefined;
|
|
11
|
+
outputs?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
anonymous: boolean;
|
|
14
|
+
inputs: {
|
|
15
|
+
indexed: boolean;
|
|
16
|
+
internalType: string;
|
|
17
|
+
name: string;
|
|
18
|
+
type: string;
|
|
19
|
+
}[];
|
|
20
|
+
name: string;
|
|
21
|
+
type: string;
|
|
22
|
+
stateMutability?: undefined;
|
|
23
|
+
outputs?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
inputs: {
|
|
26
|
+
internalType: string;
|
|
27
|
+
name: string;
|
|
28
|
+
type: string;
|
|
29
|
+
}[];
|
|
30
|
+
name: string;
|
|
31
|
+
outputs: {
|
|
32
|
+
internalType: string;
|
|
33
|
+
name: string;
|
|
34
|
+
type: string;
|
|
35
|
+
}[];
|
|
36
|
+
stateMutability: string;
|
|
37
|
+
type: string;
|
|
38
|
+
anonymous?: undefined;
|
|
39
|
+
})[];
|
|
40
|
+
export default reverseRegistrarABI;
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
const reverseRegistrarABI = [
|
|
2
|
+
{
|
|
3
|
+
inputs: [
|
|
4
|
+
{
|
|
5
|
+
internalType: "contract ENS",
|
|
6
|
+
name: "ensAddr",
|
|
7
|
+
type: "address",
|
|
8
|
+
},
|
|
9
|
+
],
|
|
10
|
+
stateMutability: "nonpayable",
|
|
11
|
+
type: "constructor",
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
anonymous: false,
|
|
15
|
+
inputs: [
|
|
16
|
+
{
|
|
17
|
+
indexed: true,
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "controller",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
indexed: false,
|
|
24
|
+
internalType: "bool",
|
|
25
|
+
name: "enabled",
|
|
26
|
+
type: "bool",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
name: "ControllerChanged",
|
|
30
|
+
type: "event",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
anonymous: false,
|
|
34
|
+
inputs: [
|
|
35
|
+
{
|
|
36
|
+
indexed: true,
|
|
37
|
+
internalType: "contract NameResolver",
|
|
38
|
+
name: "resolver",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
name: "DefaultResolverChanged",
|
|
43
|
+
type: "event",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
anonymous: false,
|
|
47
|
+
inputs: [
|
|
48
|
+
{
|
|
49
|
+
indexed: true,
|
|
50
|
+
internalType: "address",
|
|
51
|
+
name: "previousOwner",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
indexed: true,
|
|
56
|
+
internalType: "address",
|
|
57
|
+
name: "newOwner",
|
|
58
|
+
type: "address",
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
name: "OwnershipTransferred",
|
|
62
|
+
type: "event",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
anonymous: false,
|
|
66
|
+
inputs: [
|
|
67
|
+
{
|
|
68
|
+
indexed: true,
|
|
69
|
+
internalType: "address",
|
|
70
|
+
name: "addr",
|
|
71
|
+
type: "address",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
indexed: true,
|
|
75
|
+
internalType: "bytes32",
|
|
76
|
+
name: "node",
|
|
77
|
+
type: "bytes32",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
name: "ReverseClaimed",
|
|
81
|
+
type: "event",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
inputs: [
|
|
85
|
+
{
|
|
86
|
+
internalType: "address",
|
|
87
|
+
name: "owner",
|
|
88
|
+
type: "address",
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
name: "claim",
|
|
92
|
+
outputs: [
|
|
93
|
+
{
|
|
94
|
+
internalType: "bytes32",
|
|
95
|
+
name: "",
|
|
96
|
+
type: "bytes32",
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
stateMutability: "nonpayable",
|
|
100
|
+
type: "function",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
inputs: [
|
|
104
|
+
{
|
|
105
|
+
internalType: "address",
|
|
106
|
+
name: "addr",
|
|
107
|
+
type: "address",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
internalType: "address",
|
|
111
|
+
name: "owner",
|
|
112
|
+
type: "address",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
internalType: "address",
|
|
116
|
+
name: "resolver",
|
|
117
|
+
type: "address",
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
name: "claimForAddr",
|
|
121
|
+
outputs: [
|
|
122
|
+
{
|
|
123
|
+
internalType: "bytes32",
|
|
124
|
+
name: "",
|
|
125
|
+
type: "bytes32",
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
stateMutability: "nonpayable",
|
|
129
|
+
type: "function",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
inputs: [
|
|
133
|
+
{
|
|
134
|
+
internalType: "address",
|
|
135
|
+
name: "owner",
|
|
136
|
+
type: "address",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
internalType: "address",
|
|
140
|
+
name: "resolver",
|
|
141
|
+
type: "address",
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
name: "claimWithResolver",
|
|
145
|
+
outputs: [
|
|
146
|
+
{
|
|
147
|
+
internalType: "bytes32",
|
|
148
|
+
name: "",
|
|
149
|
+
type: "bytes32",
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
stateMutability: "nonpayable",
|
|
153
|
+
type: "function",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
inputs: [
|
|
157
|
+
{
|
|
158
|
+
internalType: "address",
|
|
159
|
+
name: "",
|
|
160
|
+
type: "address",
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
name: "controllers",
|
|
164
|
+
outputs: [
|
|
165
|
+
{
|
|
166
|
+
internalType: "bool",
|
|
167
|
+
name: "",
|
|
168
|
+
type: "bool",
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
stateMutability: "view",
|
|
172
|
+
type: "function",
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
inputs: [],
|
|
176
|
+
name: "defaultResolver",
|
|
177
|
+
outputs: [
|
|
178
|
+
{
|
|
179
|
+
internalType: "contract NameResolver",
|
|
180
|
+
name: "",
|
|
181
|
+
type: "address",
|
|
182
|
+
},
|
|
183
|
+
],
|
|
184
|
+
stateMutability: "view",
|
|
185
|
+
type: "function",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
inputs: [],
|
|
189
|
+
name: "ens",
|
|
190
|
+
outputs: [
|
|
191
|
+
{
|
|
192
|
+
internalType: "contract ENS",
|
|
193
|
+
name: "",
|
|
194
|
+
type: "address",
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
stateMutability: "view",
|
|
198
|
+
type: "function",
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
inputs: [
|
|
202
|
+
{
|
|
203
|
+
internalType: "address",
|
|
204
|
+
name: "addr",
|
|
205
|
+
type: "address",
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
name: "node",
|
|
209
|
+
outputs: [
|
|
210
|
+
{
|
|
211
|
+
internalType: "bytes32",
|
|
212
|
+
name: "",
|
|
213
|
+
type: "bytes32",
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
stateMutability: "pure",
|
|
217
|
+
type: "function",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
inputs: [],
|
|
221
|
+
name: "owner",
|
|
222
|
+
outputs: [
|
|
223
|
+
{
|
|
224
|
+
internalType: "address",
|
|
225
|
+
name: "",
|
|
226
|
+
type: "address",
|
|
227
|
+
},
|
|
228
|
+
],
|
|
229
|
+
stateMutability: "view",
|
|
230
|
+
type: "function",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
inputs: [],
|
|
234
|
+
name: "renounceOwnership",
|
|
235
|
+
outputs: [],
|
|
236
|
+
stateMutability: "nonpayable",
|
|
237
|
+
type: "function",
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
inputs: [
|
|
241
|
+
{
|
|
242
|
+
internalType: "address",
|
|
243
|
+
name: "controller",
|
|
244
|
+
type: "address",
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
internalType: "bool",
|
|
248
|
+
name: "enabled",
|
|
249
|
+
type: "bool",
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
name: "setController",
|
|
253
|
+
outputs: [],
|
|
254
|
+
stateMutability: "nonpayable",
|
|
255
|
+
type: "function",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
inputs: [
|
|
259
|
+
{
|
|
260
|
+
internalType: "address",
|
|
261
|
+
name: "resolver",
|
|
262
|
+
type: "address",
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
name: "setDefaultResolver",
|
|
266
|
+
outputs: [],
|
|
267
|
+
stateMutability: "nonpayable",
|
|
268
|
+
type: "function",
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
inputs: [
|
|
272
|
+
{
|
|
273
|
+
internalType: "string",
|
|
274
|
+
name: "name",
|
|
275
|
+
type: "string",
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
name: "setName",
|
|
279
|
+
outputs: [
|
|
280
|
+
{
|
|
281
|
+
internalType: "bytes32",
|
|
282
|
+
name: "",
|
|
283
|
+
type: "bytes32",
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
stateMutability: "nonpayable",
|
|
287
|
+
type: "function",
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
inputs: [
|
|
291
|
+
{
|
|
292
|
+
internalType: "address",
|
|
293
|
+
name: "addr",
|
|
294
|
+
type: "address",
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
internalType: "address",
|
|
298
|
+
name: "owner",
|
|
299
|
+
type: "address",
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
internalType: "address",
|
|
303
|
+
name: "resolver",
|
|
304
|
+
type: "address",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
internalType: "string",
|
|
308
|
+
name: "name",
|
|
309
|
+
type: "string",
|
|
310
|
+
},
|
|
311
|
+
],
|
|
312
|
+
name: "setNameForAddr",
|
|
313
|
+
outputs: [
|
|
314
|
+
{
|
|
315
|
+
internalType: "bytes32",
|
|
316
|
+
name: "",
|
|
317
|
+
type: "bytes32",
|
|
318
|
+
},
|
|
319
|
+
],
|
|
320
|
+
stateMutability: "nonpayable",
|
|
321
|
+
type: "function",
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
inputs: [
|
|
325
|
+
{
|
|
326
|
+
internalType: "address",
|
|
327
|
+
name: "newOwner",
|
|
328
|
+
type: "address",
|
|
329
|
+
},
|
|
330
|
+
],
|
|
331
|
+
name: "transferOwnership",
|
|
332
|
+
outputs: [],
|
|
333
|
+
stateMutability: "nonpayable",
|
|
334
|
+
type: "function",
|
|
335
|
+
},
|
|
336
|
+
];
|
|
337
|
+
export default reverseRegistrarABI;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
export declare const ENS_CONTRACTS: {
|
|
2
|
+
readonly mainnet: {
|
|
3
|
+
readonly ENS_REGISTRY: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
4
|
+
readonly PUBLIC_RESOLVER: "0xF29100983E058B709F3D539b0c765937B804AC15";
|
|
5
|
+
readonly NAME_WRAPPER: "0xD4416b13d2b3a9aBae7AcD5D6C2BbDBE25686401";
|
|
6
|
+
readonly REVERSE_REGISTRAR: "0xa58E81fe9b61B5c3fE2AFD33CF304c454AbFc7Cb";
|
|
7
|
+
readonly L2_REVERSE_REGISTRAR: "";
|
|
8
|
+
};
|
|
9
|
+
readonly sepolia: {
|
|
10
|
+
readonly ENS_REGISTRY: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
11
|
+
readonly PUBLIC_RESOLVER: "0xE99638b40E4Fff0129D56f03b55b6bbC4BBE49b5";
|
|
12
|
+
readonly NAME_WRAPPER: "0x0635513f179D50A207757E05759CbD106d7dFcE8";
|
|
13
|
+
readonly REVERSE_REGISTRAR: "0xA0a1AbcDAe1a2a4A2EF8e9113Ff0e02DD81DC0C6";
|
|
14
|
+
readonly L2_REVERSE_REGISTRAR: "";
|
|
15
|
+
};
|
|
16
|
+
readonly linea: {
|
|
17
|
+
readonly ENS_REGISTRY: "0x50130b669B28C339991d8676FA73CF122a121267";
|
|
18
|
+
readonly PUBLIC_RESOLVER: "0x86c5AED9F27837074612288610fB98ccC1733126";
|
|
19
|
+
readonly NAME_WRAPPER: "0xA53cca02F98D590819141Aa85C891e2Af713C223";
|
|
20
|
+
readonly REVERSE_REGISTRAR: "0x08D3fF6E65f680844fd2465393ff6f0d742b67D5";
|
|
21
|
+
readonly L2_REVERSE_REGISTRAR: "0x0000000000D8e504002cC26E3Ec46D81971C1664";
|
|
22
|
+
};
|
|
23
|
+
readonly "linea-sepolia": {
|
|
24
|
+
readonly ENS_REGISTRY: "0x5B2636F0f2137B4aE722C01dd5122D7d3e9541f7";
|
|
25
|
+
readonly PUBLIC_RESOLVER: "0xA2008916Ed2d7ED0Ecd747a8a5309267e42cf1f1";
|
|
26
|
+
readonly NAME_WRAPPER: "0xF127De9E039a789806fEd4C6b1C0f3aFfeA9425e";
|
|
27
|
+
readonly REVERSE_REGISTRAR: "0x4aAA964D8EB65508ca3DA3b0A3C060c16059E613";
|
|
28
|
+
readonly L2_REVERSE_REGISTRAR: "0x00000BeEF055f7934784D6d81b6BC86665630dbA";
|
|
29
|
+
};
|
|
30
|
+
readonly base: {
|
|
31
|
+
readonly ENS_REGISTRY: "0xB94704422c2a1E396835A571837Aa5AE53285a95";
|
|
32
|
+
readonly PUBLIC_RESOLVER: "0xC6d566A56A1aFf6508b41f6c90ff131615583BCD";
|
|
33
|
+
readonly NAME_WRAPPER: "";
|
|
34
|
+
readonly REVERSE_REGISTRAR: "0x79EA96012eEa67A83431F1701B3dFf7e37F9E282";
|
|
35
|
+
readonly L2_REVERSE_REGISTRAR: "0x0000000000D8e504002cC26E3Ec46D81971C1664";
|
|
36
|
+
};
|
|
37
|
+
readonly "base-sepolia": {
|
|
38
|
+
readonly ENS_REGISTRY: "0x1493b2567056c2181630115660963E13A8E32735";
|
|
39
|
+
readonly PUBLIC_RESOLVER: "0x6533C94869D28fAA8dF77cc63f9e2b2D6Cf77eBA";
|
|
40
|
+
readonly NAME_WRAPPER: "";
|
|
41
|
+
readonly REVERSE_REGISTRAR: "0xa0A8401ECF248a9375a0a71C4dedc263dA18dCd7";
|
|
42
|
+
readonly L2_REVERSE_REGISTRAR: "0x00000BeEF055f7934784D6d81b6BC86665630dbA";
|
|
43
|
+
};
|
|
44
|
+
readonly optimism: {
|
|
45
|
+
readonly ENS_REGISTRY: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
46
|
+
readonly PUBLIC_RESOLVER: "";
|
|
47
|
+
readonly NAME_WRAPPER: "";
|
|
48
|
+
readonly REVERSE_REGISTRAR: "";
|
|
49
|
+
readonly L2_REVERSE_REGISTRAR: "0x0000000000D8e504002cC26E3Ec46D81971C1664";
|
|
50
|
+
};
|
|
51
|
+
readonly "optimism-sepolia": {
|
|
52
|
+
readonly ENS_REGISTRY: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
53
|
+
readonly PUBLIC_RESOLVER: "";
|
|
54
|
+
readonly NAME_WRAPPER: "";
|
|
55
|
+
readonly REVERSE_REGISTRAR: "";
|
|
56
|
+
readonly L2_REVERSE_REGISTRAR: "0x00000BeEF055f7934784D6d81b6BC86665630dbA";
|
|
57
|
+
};
|
|
58
|
+
readonly arbitrum: {
|
|
59
|
+
readonly ENS_REGISTRY: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
60
|
+
readonly PUBLIC_RESOLVER: "";
|
|
61
|
+
readonly NAME_WRAPPER: "";
|
|
62
|
+
readonly REVERSE_REGISTRAR: "";
|
|
63
|
+
readonly L2_REVERSE_REGISTRAR: "0x0000000000D8e504002cC26E3Ec46D81971C1664";
|
|
64
|
+
};
|
|
65
|
+
readonly "arbitrum-sepolia": {
|
|
66
|
+
readonly ENS_REGISTRY: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
67
|
+
readonly PUBLIC_RESOLVER: "";
|
|
68
|
+
readonly NAME_WRAPPER: "";
|
|
69
|
+
readonly REVERSE_REGISTRAR: "";
|
|
70
|
+
readonly L2_REVERSE_REGISTRAR: "0x00000BeEF055f7934784D6d81b6BC86665630dbA";
|
|
71
|
+
};
|
|
72
|
+
readonly scroll: {
|
|
73
|
+
readonly ENS_REGISTRY: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
74
|
+
readonly PUBLIC_RESOLVER: "";
|
|
75
|
+
readonly NAME_WRAPPER: "";
|
|
76
|
+
readonly REVERSE_REGISTRAR: "";
|
|
77
|
+
readonly L2_REVERSE_REGISTRAR: "0x0000000000D8e504002cC26E3Ec46D81971C1664";
|
|
78
|
+
};
|
|
79
|
+
readonly "scroll-sepolia": {
|
|
80
|
+
readonly ENS_REGISTRY: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
81
|
+
readonly PUBLIC_RESOLVER: "";
|
|
82
|
+
readonly NAME_WRAPPER: "";
|
|
83
|
+
readonly REVERSE_REGISTRAR: "";
|
|
84
|
+
readonly L2_REVERSE_REGISTRAR: "0x00000BeEF055f7934784D6d81b6BC86665630dbA";
|
|
85
|
+
};
|
|
86
|
+
readonly localhost: {
|
|
87
|
+
readonly ENS_REGISTRY: "0x0000000000000000000000000000000000000000";
|
|
88
|
+
readonly PUBLIC_RESOLVER: "";
|
|
89
|
+
readonly NAME_WRAPPER: "";
|
|
90
|
+
readonly REVERSE_REGISTRAR: "";
|
|
91
|
+
readonly L2_REVERSE_REGISTRAR: "";
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export type NetworkName = keyof typeof ENS_CONTRACTS;
|
|
95
|
+
export declare function getContractAddresses(networkName: NetworkName): {
|
|
96
|
+
readonly ENS_REGISTRY: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
97
|
+
readonly PUBLIC_RESOLVER: "0xF29100983E058B709F3D539b0c765937B804AC15";
|
|
98
|
+
readonly NAME_WRAPPER: "0xD4416b13d2b3a9aBae7AcD5D6C2BbDBE25686401";
|
|
99
|
+
readonly REVERSE_REGISTRAR: "0xa58E81fe9b61B5c3fE2AFD33CF304c454AbFc7Cb";
|
|
100
|
+
readonly L2_REVERSE_REGISTRAR: "";
|
|
101
|
+
} | {
|
|
102
|
+
readonly ENS_REGISTRY: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
103
|
+
readonly PUBLIC_RESOLVER: "0xE99638b40E4Fff0129D56f03b55b6bbC4BBE49b5";
|
|
104
|
+
readonly NAME_WRAPPER: "0x0635513f179D50A207757E05759CbD106d7dFcE8";
|
|
105
|
+
readonly REVERSE_REGISTRAR: "0xA0a1AbcDAe1a2a4A2EF8e9113Ff0e02DD81DC0C6";
|
|
106
|
+
readonly L2_REVERSE_REGISTRAR: "";
|
|
107
|
+
} | {
|
|
108
|
+
readonly ENS_REGISTRY: "0x50130b669B28C339991d8676FA73CF122a121267";
|
|
109
|
+
readonly PUBLIC_RESOLVER: "0x86c5AED9F27837074612288610fB98ccC1733126";
|
|
110
|
+
readonly NAME_WRAPPER: "0xA53cca02F98D590819141Aa85C891e2Af713C223";
|
|
111
|
+
readonly REVERSE_REGISTRAR: "0x08D3fF6E65f680844fd2465393ff6f0d742b67D5";
|
|
112
|
+
readonly L2_REVERSE_REGISTRAR: "0x0000000000D8e504002cC26E3Ec46D81971C1664";
|
|
113
|
+
} | {
|
|
114
|
+
readonly ENS_REGISTRY: "0x5B2636F0f2137B4aE722C01dd5122D7d3e9541f7";
|
|
115
|
+
readonly PUBLIC_RESOLVER: "0xA2008916Ed2d7ED0Ecd747a8a5309267e42cf1f1";
|
|
116
|
+
readonly NAME_WRAPPER: "0xF127De9E039a789806fEd4C6b1C0f3aFfeA9425e";
|
|
117
|
+
readonly REVERSE_REGISTRAR: "0x4aAA964D8EB65508ca3DA3b0A3C060c16059E613";
|
|
118
|
+
readonly L2_REVERSE_REGISTRAR: "0x00000BeEF055f7934784D6d81b6BC86665630dbA";
|
|
119
|
+
} | {
|
|
120
|
+
readonly ENS_REGISTRY: "0xB94704422c2a1E396835A571837Aa5AE53285a95";
|
|
121
|
+
readonly PUBLIC_RESOLVER: "0xC6d566A56A1aFf6508b41f6c90ff131615583BCD";
|
|
122
|
+
readonly NAME_WRAPPER: "";
|
|
123
|
+
readonly REVERSE_REGISTRAR: "0x79EA96012eEa67A83431F1701B3dFf7e37F9E282";
|
|
124
|
+
readonly L2_REVERSE_REGISTRAR: "0x0000000000D8e504002cC26E3Ec46D81971C1664";
|
|
125
|
+
} | {
|
|
126
|
+
readonly ENS_REGISTRY: "0x1493b2567056c2181630115660963E13A8E32735";
|
|
127
|
+
readonly PUBLIC_RESOLVER: "0x6533C94869D28fAA8dF77cc63f9e2b2D6Cf77eBA";
|
|
128
|
+
readonly NAME_WRAPPER: "";
|
|
129
|
+
readonly REVERSE_REGISTRAR: "0xa0A8401ECF248a9375a0a71C4dedc263dA18dCd7";
|
|
130
|
+
readonly L2_REVERSE_REGISTRAR: "0x00000BeEF055f7934784D6d81b6BC86665630dbA";
|
|
131
|
+
} | {
|
|
132
|
+
readonly ENS_REGISTRY: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
133
|
+
readonly PUBLIC_RESOLVER: "";
|
|
134
|
+
readonly NAME_WRAPPER: "";
|
|
135
|
+
readonly REVERSE_REGISTRAR: "";
|
|
136
|
+
readonly L2_REVERSE_REGISTRAR: "0x0000000000D8e504002cC26E3Ec46D81971C1664";
|
|
137
|
+
} | {
|
|
138
|
+
readonly ENS_REGISTRY: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
139
|
+
readonly PUBLIC_RESOLVER: "";
|
|
140
|
+
readonly NAME_WRAPPER: "";
|
|
141
|
+
readonly REVERSE_REGISTRAR: "";
|
|
142
|
+
readonly L2_REVERSE_REGISTRAR: "0x00000BeEF055f7934784D6d81b6BC86665630dbA";
|
|
143
|
+
} | {
|
|
144
|
+
readonly ENS_REGISTRY: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
145
|
+
readonly PUBLIC_RESOLVER: "";
|
|
146
|
+
readonly NAME_WRAPPER: "";
|
|
147
|
+
readonly REVERSE_REGISTRAR: "";
|
|
148
|
+
readonly L2_REVERSE_REGISTRAR: "0x0000000000D8e504002cC26E3Ec46D81971C1664";
|
|
149
|
+
} | {
|
|
150
|
+
readonly ENS_REGISTRY: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
151
|
+
readonly PUBLIC_RESOLVER: "";
|
|
152
|
+
readonly NAME_WRAPPER: "";
|
|
153
|
+
readonly REVERSE_REGISTRAR: "";
|
|
154
|
+
readonly L2_REVERSE_REGISTRAR: "0x00000BeEF055f7934784D6d81b6BC86665630dbA";
|
|
155
|
+
} | {
|
|
156
|
+
readonly ENS_REGISTRY: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
157
|
+
readonly PUBLIC_RESOLVER: "";
|
|
158
|
+
readonly NAME_WRAPPER: "";
|
|
159
|
+
readonly REVERSE_REGISTRAR: "";
|
|
160
|
+
readonly L2_REVERSE_REGISTRAR: "0x0000000000D8e504002cC26E3Ec46D81971C1664";
|
|
161
|
+
} | {
|
|
162
|
+
readonly ENS_REGISTRY: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
163
|
+
readonly PUBLIC_RESOLVER: "";
|
|
164
|
+
readonly NAME_WRAPPER: "";
|
|
165
|
+
readonly REVERSE_REGISTRAR: "";
|
|
166
|
+
readonly L2_REVERSE_REGISTRAR: "0x00000BeEF055f7934784D6d81b6BC86665630dbA";
|
|
167
|
+
} | {
|
|
168
|
+
readonly ENS_REGISTRY: "0x0000000000000000000000000000000000000000";
|
|
169
|
+
readonly PUBLIC_RESOLVER: "";
|
|
170
|
+
readonly NAME_WRAPPER: "";
|
|
171
|
+
readonly REVERSE_REGISTRAR: "";
|
|
172
|
+
readonly L2_REVERSE_REGISTRAR: "";
|
|
173
|
+
};
|
|
174
|
+
export declare function getNetworkNameFromChainId(chainId: number): NetworkName;
|
|
175
|
+
export declare function validateContractAddresses(addresses: Record<string, string>): void;
|