@ensdomains/ensjs 3.0.0-beta.2 → 3.0.0-beta.4
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/consts.js +46 -1
- package/dist/cjs/contracts/consts.js.map +1 -1
- package/dist/cjs/dns.js.map +1 -1
- package/dist/cjs/errors/version.js +1 -1
- package/dist/cjs/errors/version.js.map +1 -1
- package/dist/cjs/utils/index.js +19 -1
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/wallet.js.map +1 -1
- package/dist/esm/contracts/consts.js +46 -1
- package/dist/esm/contracts/consts.js.map +1 -1
- package/dist/esm/dns.js.map +1 -1
- package/dist/esm/errors/version.js +1 -1
- package/dist/esm/errors/version.js.map +1 -1
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/wallet.js.map +1 -1
- package/dist/types/clients/decorators/public.d.ts +1 -519
- package/dist/types/clients/decorators/public.d.ts.map +1 -1
- package/dist/types/clients/decorators/subgraph.d.ts +1 -519
- package/dist/types/clients/decorators/subgraph.d.ts.map +1 -1
- package/dist/types/clients/decorators/wallet.d.ts +31 -40
- package/dist/types/clients/decorators/wallet.d.ts.map +1 -1
- package/dist/types/clients/public.d.ts +21 -30
- package/dist/types/clients/public.d.ts.map +1 -1
- package/dist/types/clients/subgraph.d.ts +17 -26
- package/dist/types/clients/subgraph.d.ts.map +1 -1
- package/dist/types/clients/wallet.d.ts +58 -67
- package/dist/types/clients/wallet.d.ts.map +1 -1
- package/dist/types/contracts/consts.d.ts +45 -2
- package/dist/types/contracts/consts.d.ts.map +1 -1
- package/dist/types/dns.d.ts +1 -1
- package/dist/types/dns.d.ts.map +1 -1
- package/dist/types/errors/version.d.ts +1 -1
- package/dist/types/errors/version.d.ts.map +1 -1
- package/dist/types/functions/dns/importDnsName.d.ts +62 -80
- package/dist/types/functions/dns/importDnsName.d.ts.map +1 -1
- package/dist/types/functions/wallet/commitName.d.ts +62 -80
- package/dist/types/functions/wallet/commitName.d.ts.map +1 -1
- package/dist/types/functions/wallet/createSubname.d.ts +62 -80
- package/dist/types/functions/wallet/createSubname.d.ts.map +1 -1
- package/dist/types/functions/wallet/deleteSubname.d.ts +62 -80
- package/dist/types/functions/wallet/deleteSubname.d.ts.map +1 -1
- package/dist/types/functions/wallet/registerName.d.ts +62 -80
- package/dist/types/functions/wallet/registerName.d.ts.map +1 -1
- package/dist/types/functions/wallet/renewNames.d.ts +62 -80
- package/dist/types/functions/wallet/renewNames.d.ts.map +1 -1
- package/dist/types/functions/wallet/setAbiRecord.d.ts +62 -80
- package/dist/types/functions/wallet/setAbiRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/setAddressRecord.d.ts +62 -80
- package/dist/types/functions/wallet/setAddressRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/setChildFuses.d.ts +62 -80
- package/dist/types/functions/wallet/setChildFuses.d.ts.map +1 -1
- package/dist/types/functions/wallet/setContentHashRecord.d.ts +62 -80
- package/dist/types/functions/wallet/setContentHashRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/setFuses.d.ts +62 -80
- package/dist/types/functions/wallet/setFuses.d.ts.map +1 -1
- package/dist/types/functions/wallet/setPrimaryName.d.ts +62 -80
- package/dist/types/functions/wallet/setPrimaryName.d.ts.map +1 -1
- package/dist/types/functions/wallet/setRecords.d.ts +62 -80
- package/dist/types/functions/wallet/setRecords.d.ts.map +1 -1
- package/dist/types/functions/wallet/setResolver.d.ts +62 -80
- package/dist/types/functions/wallet/setResolver.d.ts.map +1 -1
- package/dist/types/functions/wallet/setTextRecord.d.ts +62 -80
- package/dist/types/functions/wallet/setTextRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/transferName.d.ts +63 -81
- package/dist/types/functions/wallet/transferName.d.ts.map +1 -1
- package/dist/types/functions/wallet/unwrapName.d.ts +62 -80
- package/dist/types/functions/wallet/unwrapName.d.ts.map +1 -1
- package/dist/types/functions/wallet/wrapName.d.ts +62 -80
- package/dist/types/functions/wallet/wrapName.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/wallet.d.ts +17 -17
- package/dist/types/wallet.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/clients/public.ts +1 -1
- package/src/clients/subgraph.ts +1 -1
- package/src/clients/wallet.ts +1 -1
- package/src/contracts/consts.ts +51 -12
- package/src/dns.ts +2 -0
- package/src/errors/version.ts +1 -1
- package/src/functions/wallet/transferName.ts +1 -1
- package/src/utils/index.ts +22 -0
- package/src/wallet.ts +34 -0
|
@@ -18,8 +18,12 @@ export type WrapNameReturnType = Hash;
|
|
|
18
18
|
export declare const makeFunctionData: <TName extends string, TChain extends ChainWithEns, TAccount extends Account>(wallet: {
|
|
19
19
|
account: TAccount;
|
|
20
20
|
batch?: {
|
|
21
|
-
multicall?: boolean |
|
|
21
|
+
multicall?: boolean | {
|
|
22
|
+
batchSize?: number | undefined;
|
|
23
|
+
wait?: number | undefined;
|
|
24
|
+
} | undefined;
|
|
22
25
|
} | undefined;
|
|
26
|
+
cacheTime: number;
|
|
23
27
|
chain: TChain;
|
|
24
28
|
key: string;
|
|
25
29
|
name: string;
|
|
@@ -28,33 +32,6 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
28
32
|
transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
|
|
29
33
|
type: string;
|
|
30
34
|
uid: string;
|
|
31
|
-
extend: <TNextExtended extends {
|
|
32
|
-
account?: undefined;
|
|
33
|
-
batch?: undefined;
|
|
34
|
-
chain?: undefined;
|
|
35
|
-
key?: undefined;
|
|
36
|
-
name?: undefined;
|
|
37
|
-
pollingInterval?: undefined;
|
|
38
|
-
request?: undefined;
|
|
39
|
-
transport?: undefined;
|
|
40
|
-
type?: undefined;
|
|
41
|
-
uid?: undefined;
|
|
42
|
-
} & {
|
|
43
|
-
[key: string]: unknown;
|
|
44
|
-
} = {
|
|
45
|
-
account?: undefined;
|
|
46
|
-
batch?: undefined;
|
|
47
|
-
chain?: undefined;
|
|
48
|
-
key?: undefined;
|
|
49
|
-
name?: undefined;
|
|
50
|
-
pollingInterval?: undefined;
|
|
51
|
-
request?: undefined;
|
|
52
|
-
transport?: undefined;
|
|
53
|
-
type?: undefined;
|
|
54
|
-
uid?: undefined;
|
|
55
|
-
} & {
|
|
56
|
-
[key: string]: unknown;
|
|
57
|
-
}>(fn: (client: import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, import("viem").WalletActions<TChain, TAccount>>) => import("viem").Narrow<TNextExtended>) => never;
|
|
58
35
|
addChain: (args: import("viem").AddChainParameters) => Promise<void>;
|
|
59
36
|
deployContract: <TAbi extends import("viem").Abi | readonly unknown[], TChainOverride extends import("viem").Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, TChain, TAccount, TChainOverride>) => Promise<`0x${string}`>;
|
|
60
37
|
getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
|
|
@@ -76,17 +53,17 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
76
53
|
[x: `address[${string}]`]: undefined;
|
|
77
54
|
[x: `bool[${string}]`]: undefined;
|
|
78
55
|
[x: `bytes[${string}]`]: undefined;
|
|
79
|
-
[x: `
|
|
80
|
-
[x: `
|
|
56
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
57
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
81
58
|
[x: `bytes16[${string}]`]: undefined;
|
|
82
59
|
[x: `bytes1[${string}]`]: undefined;
|
|
83
|
-
[x: `
|
|
60
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
84
61
|
[x: `bytes4[${string}]`]: undefined;
|
|
85
62
|
[x: `bytes5[${string}]`]: undefined;
|
|
86
63
|
[x: `bytes6[${string}]`]: undefined;
|
|
87
64
|
[x: `bytes7[${string}]`]: undefined;
|
|
65
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
88
66
|
[x: `bytes9[${string}]`]: undefined;
|
|
89
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
90
67
|
[x: `bytes11[${string}]`]: undefined;
|
|
91
68
|
[x: `bytes12[${string}]`]: undefined;
|
|
92
69
|
[x: `bytes13[${string}]`]: undefined;
|
|
@@ -109,8 +86,8 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
109
86
|
[x: `bytes31[${string}]`]: undefined;
|
|
110
87
|
[x: `bytes32[${string}]`]: undefined;
|
|
111
88
|
[x: `int[${string}]`]: undefined;
|
|
112
|
-
[x: `int8[${string}]`]: undefined;
|
|
113
89
|
[x: `int16[${string}]`]: undefined;
|
|
90
|
+
[x: `int8[${string}]`]: undefined;
|
|
114
91
|
[x: `int24[${string}]`]: undefined;
|
|
115
92
|
[x: `int32[${string}]`]: undefined;
|
|
116
93
|
[x: `int40[${string}]`]: undefined;
|
|
@@ -142,8 +119,8 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
142
119
|
[x: `int248[${string}]`]: undefined;
|
|
143
120
|
[x: `int256[${string}]`]: undefined;
|
|
144
121
|
[x: `uint[${string}]`]: undefined;
|
|
145
|
-
[x: `uint8[${string}]`]: undefined;
|
|
146
122
|
[x: `uint16[${string}]`]: undefined;
|
|
123
|
+
[x: `uint8[${string}]`]: undefined;
|
|
147
124
|
[x: `uint24[${string}]`]: undefined;
|
|
148
125
|
[x: `uint32[${string}]`]: undefined;
|
|
149
126
|
[x: `uint40[${string}]`]: undefined;
|
|
@@ -178,17 +155,17 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
178
155
|
address?: undefined;
|
|
179
156
|
bool?: undefined;
|
|
180
157
|
bytes?: undefined;
|
|
181
|
-
|
|
182
|
-
|
|
158
|
+
bytes3?: undefined;
|
|
159
|
+
bytes10?: undefined;
|
|
183
160
|
bytes16?: undefined;
|
|
184
161
|
bytes1?: undefined;
|
|
185
|
-
|
|
162
|
+
bytes2?: undefined;
|
|
186
163
|
bytes4?: undefined;
|
|
187
164
|
bytes5?: undefined;
|
|
188
165
|
bytes6?: undefined;
|
|
189
166
|
bytes7?: undefined;
|
|
167
|
+
bytes8?: undefined;
|
|
190
168
|
bytes9?: undefined;
|
|
191
|
-
bytes10?: undefined;
|
|
192
169
|
bytes11?: undefined;
|
|
193
170
|
bytes12?: undefined;
|
|
194
171
|
bytes13?: undefined;
|
|
@@ -210,8 +187,8 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
210
187
|
bytes30?: undefined;
|
|
211
188
|
bytes31?: undefined;
|
|
212
189
|
bytes32?: undefined;
|
|
213
|
-
int8?: undefined;
|
|
214
190
|
int16?: undefined;
|
|
191
|
+
int8?: undefined;
|
|
215
192
|
int24?: undefined;
|
|
216
193
|
int32?: undefined;
|
|
217
194
|
int40?: undefined;
|
|
@@ -242,8 +219,8 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
242
219
|
int240?: undefined;
|
|
243
220
|
int248?: undefined;
|
|
244
221
|
int256?: undefined;
|
|
245
|
-
uint8?: undefined;
|
|
246
222
|
uint16?: undefined;
|
|
223
|
+
uint8?: undefined;
|
|
247
224
|
uint24?: undefined;
|
|
248
225
|
uint32?: undefined;
|
|
249
226
|
uint40?: undefined;
|
|
@@ -278,6 +255,20 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
278
255
|
switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
|
|
279
256
|
watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
|
|
280
257
|
writeContract: <TAbi_1 extends import("viem").Abi | readonly unknown[], TFunctionName extends string, TChainOverride_2 extends import("viem").Chain | undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, TChain, TAccount, TChainOverride_2>) => Promise<`0x${string}`>;
|
|
258
|
+
extend: <const client extends {
|
|
259
|
+
[x: string]: unknown;
|
|
260
|
+
account?: undefined;
|
|
261
|
+
batch?: undefined;
|
|
262
|
+
cacheTime?: undefined;
|
|
263
|
+
chain?: undefined;
|
|
264
|
+
key?: undefined;
|
|
265
|
+
name?: undefined;
|
|
266
|
+
pollingInterval?: undefined;
|
|
267
|
+
request?: undefined;
|
|
268
|
+
transport?: undefined;
|
|
269
|
+
type?: undefined;
|
|
270
|
+
uid?: undefined;
|
|
271
|
+
}>(fn: (client: import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, import("viem").WalletActions<TChain, TAccount>>) => client) => import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, { [K in keyof client]: client[K]; } & import("viem").WalletActions<TChain, TAccount>>;
|
|
281
272
|
}, { name, newOwnerAddress, fuses, resolverAddress, }: WrapNameDataParameters<TName, GetNameType<TName>>) => WrapNameDataReturnType;
|
|
282
273
|
/**
|
|
283
274
|
* Wraps a name.
|
|
@@ -305,8 +296,12 @@ declare namespace wrapName {
|
|
|
305
296
|
var makeFunctionData: <TName extends string, TChain extends ChainWithEns, TAccount extends Account>(wallet: {
|
|
306
297
|
account: TAccount;
|
|
307
298
|
batch?: {
|
|
308
|
-
multicall?: boolean |
|
|
299
|
+
multicall?: boolean | {
|
|
300
|
+
batchSize?: number | undefined;
|
|
301
|
+
wait?: number | undefined;
|
|
302
|
+
} | undefined;
|
|
309
303
|
} | undefined;
|
|
304
|
+
cacheTime: number;
|
|
310
305
|
chain: TChain;
|
|
311
306
|
key: string;
|
|
312
307
|
name: string;
|
|
@@ -315,33 +310,6 @@ declare namespace wrapName {
|
|
|
315
310
|
transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
|
|
316
311
|
type: string;
|
|
317
312
|
uid: string;
|
|
318
|
-
extend: <TNextExtended extends {
|
|
319
|
-
account?: undefined;
|
|
320
|
-
batch?: undefined;
|
|
321
|
-
chain?: undefined;
|
|
322
|
-
key?: undefined;
|
|
323
|
-
name?: undefined;
|
|
324
|
-
pollingInterval?: undefined;
|
|
325
|
-
request?: undefined;
|
|
326
|
-
transport?: undefined;
|
|
327
|
-
type?: undefined;
|
|
328
|
-
uid?: undefined;
|
|
329
|
-
} & {
|
|
330
|
-
[key: string]: unknown;
|
|
331
|
-
} = {
|
|
332
|
-
account?: undefined;
|
|
333
|
-
batch?: undefined;
|
|
334
|
-
chain?: undefined;
|
|
335
|
-
key?: undefined;
|
|
336
|
-
name?: undefined;
|
|
337
|
-
pollingInterval?: undefined;
|
|
338
|
-
request?: undefined;
|
|
339
|
-
transport?: undefined;
|
|
340
|
-
type?: undefined;
|
|
341
|
-
uid?: undefined;
|
|
342
|
-
} & {
|
|
343
|
-
[key: string]: unknown;
|
|
344
|
-
}>(fn: (client: import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, import("viem").WalletActions<TChain, TAccount>>) => import("viem").Narrow<TNextExtended>) => never;
|
|
345
313
|
addChain: (args: import("viem").AddChainParameters) => Promise<void>;
|
|
346
314
|
deployContract: <TAbi extends import("viem").Abi | readonly unknown[], TChainOverride extends import("viem").Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, TChain, TAccount, TChainOverride>) => Promise<`0x${string}`>;
|
|
347
315
|
getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
|
|
@@ -363,17 +331,17 @@ declare namespace wrapName {
|
|
|
363
331
|
[x: `address[${string}]`]: undefined;
|
|
364
332
|
[x: `bool[${string}]`]: undefined;
|
|
365
333
|
[x: `bytes[${string}]`]: undefined;
|
|
366
|
-
[x: `
|
|
367
|
-
[x: `
|
|
334
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
335
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
368
336
|
[x: `bytes16[${string}]`]: undefined;
|
|
369
337
|
[x: `bytes1[${string}]`]: undefined;
|
|
370
|
-
[x: `
|
|
338
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
371
339
|
[x: `bytes4[${string}]`]: undefined;
|
|
372
340
|
[x: `bytes5[${string}]`]: undefined;
|
|
373
341
|
[x: `bytes6[${string}]`]: undefined;
|
|
374
342
|
[x: `bytes7[${string}]`]: undefined;
|
|
343
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
375
344
|
[x: `bytes9[${string}]`]: undefined;
|
|
376
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
377
345
|
[x: `bytes11[${string}]`]: undefined;
|
|
378
346
|
[x: `bytes12[${string}]`]: undefined;
|
|
379
347
|
[x: `bytes13[${string}]`]: undefined;
|
|
@@ -396,8 +364,8 @@ declare namespace wrapName {
|
|
|
396
364
|
[x: `bytes31[${string}]`]: undefined;
|
|
397
365
|
[x: `bytes32[${string}]`]: undefined;
|
|
398
366
|
[x: `int[${string}]`]: undefined;
|
|
399
|
-
[x: `int8[${string}]`]: undefined;
|
|
400
367
|
[x: `int16[${string}]`]: undefined;
|
|
368
|
+
[x: `int8[${string}]`]: undefined;
|
|
401
369
|
[x: `int24[${string}]`]: undefined;
|
|
402
370
|
[x: `int32[${string}]`]: undefined;
|
|
403
371
|
[x: `int40[${string}]`]: undefined;
|
|
@@ -429,8 +397,8 @@ declare namespace wrapName {
|
|
|
429
397
|
[x: `int248[${string}]`]: undefined;
|
|
430
398
|
[x: `int256[${string}]`]: undefined;
|
|
431
399
|
[x: `uint[${string}]`]: undefined;
|
|
432
|
-
[x: `uint8[${string}]`]: undefined;
|
|
433
400
|
[x: `uint16[${string}]`]: undefined;
|
|
401
|
+
[x: `uint8[${string}]`]: undefined;
|
|
434
402
|
[x: `uint24[${string}]`]: undefined;
|
|
435
403
|
[x: `uint32[${string}]`]: undefined;
|
|
436
404
|
[x: `uint40[${string}]`]: undefined;
|
|
@@ -465,17 +433,17 @@ declare namespace wrapName {
|
|
|
465
433
|
address?: undefined;
|
|
466
434
|
bool?: undefined;
|
|
467
435
|
bytes?: undefined;
|
|
468
|
-
|
|
469
|
-
|
|
436
|
+
bytes3?: undefined;
|
|
437
|
+
bytes10?: undefined;
|
|
470
438
|
bytes16?: undefined;
|
|
471
439
|
bytes1?: undefined;
|
|
472
|
-
|
|
440
|
+
bytes2?: undefined;
|
|
473
441
|
bytes4?: undefined;
|
|
474
442
|
bytes5?: undefined;
|
|
475
443
|
bytes6?: undefined;
|
|
476
444
|
bytes7?: undefined;
|
|
445
|
+
bytes8?: undefined;
|
|
477
446
|
bytes9?: undefined;
|
|
478
|
-
bytes10?: undefined;
|
|
479
447
|
bytes11?: undefined;
|
|
480
448
|
bytes12?: undefined;
|
|
481
449
|
bytes13?: undefined;
|
|
@@ -497,8 +465,8 @@ declare namespace wrapName {
|
|
|
497
465
|
bytes30?: undefined;
|
|
498
466
|
bytes31?: undefined;
|
|
499
467
|
bytes32?: undefined;
|
|
500
|
-
int8?: undefined;
|
|
501
468
|
int16?: undefined;
|
|
469
|
+
int8?: undefined;
|
|
502
470
|
int24?: undefined;
|
|
503
471
|
int32?: undefined;
|
|
504
472
|
int40?: undefined;
|
|
@@ -529,8 +497,8 @@ declare namespace wrapName {
|
|
|
529
497
|
int240?: undefined;
|
|
530
498
|
int248?: undefined;
|
|
531
499
|
int256?: undefined;
|
|
532
|
-
uint8?: undefined;
|
|
533
500
|
uint16?: undefined;
|
|
501
|
+
uint8?: undefined;
|
|
534
502
|
uint24?: undefined;
|
|
535
503
|
uint32?: undefined;
|
|
536
504
|
uint40?: undefined;
|
|
@@ -565,6 +533,20 @@ declare namespace wrapName {
|
|
|
565
533
|
switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
|
|
566
534
|
watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
|
|
567
535
|
writeContract: <TAbi_1 extends import("viem").Abi | readonly unknown[], TFunctionName extends string, TChainOverride_2 extends import("viem").Chain | undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, TChain, TAccount, TChainOverride_2>) => Promise<`0x${string}`>;
|
|
536
|
+
extend: <const client extends {
|
|
537
|
+
[x: string]: unknown;
|
|
538
|
+
account?: undefined;
|
|
539
|
+
batch?: undefined;
|
|
540
|
+
cacheTime?: undefined;
|
|
541
|
+
chain?: undefined;
|
|
542
|
+
key?: undefined;
|
|
543
|
+
name?: undefined;
|
|
544
|
+
pollingInterval?: undefined;
|
|
545
|
+
request?: undefined;
|
|
546
|
+
transport?: undefined;
|
|
547
|
+
type?: undefined;
|
|
548
|
+
uid?: undefined;
|
|
549
|
+
}>(fn: (client: import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, import("viem").WalletActions<TChain, TAccount>>) => client) => import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, { [K in keyof client]: client[K]; } & import("viem").WalletActions<TChain, TAccount>>;
|
|
568
550
|
}, { name, newOwnerAddress, fuses, resolverAddress, }: WrapNameDataParameters<TName, GetNameType<TName>>) => {
|
|
569
551
|
data: `0x${string}`;
|
|
570
552
|
to: `0x${string}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapName.d.ts","sourceRoot":"","sources":["../../../../src/functions/wallet/wrapName.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,KAAK,yBAAyB,EAC9B,KAAK,SAAS,EACf,MAAM,MAAM,CAAA;AAGb,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAI5E,OAAO,KAAK,EACV,mBAAmB,EACnB,WAAW,EACX,QAAQ,EACR,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,sBAAsB,CAAA;AAK7B,MAAM,MAAM,sBAAsB,CAChC,KAAK,SAAS,MAAM,EACpB,WAAW,SAAS,WAAW,CAAC,KAAK,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,IACzD;IACF,uBAAuB;IACvB,IAAI,EAAE,KAAK,CAAA;IACX,wCAAwC;IACxC,eAAe,EAAE,OAAO,CAAA;IACxB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,WAAW,SAAS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B,CAAC,CAa7B;kBA3Bc,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BvB,eAAe,QAAQ,CAAA"}
|
|
@@ -4,6 +4,7 @@ export { encodeSetAddr, type EncodeSetAddrParameters, type EncodeSetAddrReturnTy
|
|
|
4
4
|
export { encodeSetContentHash, type EncodeSetContentHashParameters, type EncodeSetContentHashReturnType, } from './encoders/encodeSetContentHash.js';
|
|
5
5
|
export { encodeSetText, type EncodeSetTextParameters, type EncodeSetTextReturnType, } from './encoders/encodeSetText.js';
|
|
6
6
|
export { EMPTY_ADDRESS, GRACE_PERIOD_SECONDS, MAX_DATE_INT, MAX_INT_64, MINIMUM_DOT_ETH_CHARS, } from './consts.js';
|
|
7
|
+
export { ChildFuseKeys, ChildFuses, FullParentFuseKeys, FullParentFuses, FuseRanges, ParentFuseKeys, ParentFuses, UnnamedChildFuseKeys, UnnamedChildFuses, UnnamedParentFuseKeys, UnnamedParentFuses, UserSettableFuseKeys, UserSettableFuses, checkPccBurned, decodeFuses, encodeFuses, type DecodedFuses, type EncodeChildFusesInputObject, type EncodeFusesInputObject, type EncodeParentFusesInputObject, } from './fuses.js';
|
|
7
8
|
export { decodeContentHash, encodeContentHash, getProtocolType, isValidContentHash, type DecodedContentHash, type ProtocolType, } from './contentHash.js';
|
|
8
9
|
export { truncateFormat } from './format.js';
|
|
9
10
|
export { generateRecordCallArray, type RecordOptions, } from './generateRecordCallArray.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,UAAU,GAChB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,YAAY,EACZ,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,aAAa,EACb,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,oBAAoB,EACpB,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,GACpC,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EACL,aAAa,EACb,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,YAAY,EACZ,UAAU,EACV,qBAAqB,GACtB,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,UAAU,GAChB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,YAAY,EACZ,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,aAAa,EACb,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,oBAAoB,EACpB,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,GACpC,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EACL,aAAa,EACb,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,YAAY,EACZ,UAAU,EAC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B,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,GACvB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,aAAa,EACb,UAAU,EACV,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,UAAU,EACV,cAAc,EACd,uBAAuB,GACxB,MAAM,cAAc,CAAA"}
|
package/dist/types/wallet.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { default as commitName, type CommitNameParameters, type CommitNameReturnType, } from './functions/wallet/commitName.js';
|
|
2
|
-
export { default as createSubname, type CreateSubnameParameters, type CreateSubnameReturnType, } from './functions/wallet/createSubname.js';
|
|
3
|
-
export { default as deleteSubname, type DeleteSubnameParameters, type DeleteSubnameReturnType, } from './functions/wallet/deleteSubname.js';
|
|
4
|
-
export { default as registerName, type RegisterNameParameters, type RegisterNameReturnType, } from './functions/wallet/registerName.js';
|
|
5
|
-
export { default as renewNames, type RenewNamesParameters, type RenewNamesReturnType, } from './functions/wallet/renewNames.js';
|
|
6
|
-
export { default as setAbiRecord, type SetAbiRecordParameters, type SetAbiRecordReturnType, } from './functions/wallet/setAbiRecord.js';
|
|
7
|
-
export { default as setAddressRecord, type SetAddressRecordParameters, type SetAddressRecordReturnType, } from './functions/wallet/setAddressRecord.js';
|
|
8
|
-
export { default as setChildFuses, type SetChildFusesParameters, type SetChildFusesReturnType, } from './functions/wallet/setChildFuses.js';
|
|
9
|
-
export { default as setContentHashRecord, type SetContentHashRecordParameters, type SetContentHashRecordReturnType, } from './functions/wallet/setContentHashRecord.js';
|
|
10
|
-
export { default as setFuses, type SetFusesParameters, type SetFusesReturnType, } from './functions/wallet/setFuses.js';
|
|
11
|
-
export { default as setPrimaryName, type SetPrimaryNameParameters, type SetPrimaryNameReturnType, } from './functions/wallet/setPrimaryName.js';
|
|
12
|
-
export { default as setRecords, type SetRecordsParameters, type SetRecordsReturnType, } from './functions/wallet/setRecords.js';
|
|
13
|
-
export { default as setResolver, type SetResolverParameters, type SetResolverReturnType, } from './functions/wallet/setResolver.js';
|
|
14
|
-
export { default as setTextRecord, type SetTextRecordParameters, type SetTextRecordReturnType, } from './functions/wallet/setTextRecord.js';
|
|
15
|
-
export { default as transferName, type TransferNameParameters, type TransferNameReturnType, } from './functions/wallet/transferName.js';
|
|
16
|
-
export { default as unwrapName, type UnwrapNameParameters, type UnwrapNameReturnType, } from './functions/wallet/unwrapName.js';
|
|
17
|
-
export { default as wrapName, type WrapNameParameters, type WrapNameReturnType, } from './functions/wallet/wrapName.js';
|
|
1
|
+
export { default as commitName, type CommitNameDataParameters, type CommitNameDataReturnType, type CommitNameParameters, type CommitNameReturnType, } from './functions/wallet/commitName.js';
|
|
2
|
+
export { default as createSubname, type CreateSubnameDataParameters, type CreateSubnameDataReturnType, type CreateSubnameParameters, type CreateSubnameReturnType, } from './functions/wallet/createSubname.js';
|
|
3
|
+
export { default as deleteSubname, type DeleteSubnameDataParameters, type DeleteSubnameDataReturnType, type DeleteSubnameParameters, type DeleteSubnameReturnType, } from './functions/wallet/deleteSubname.js';
|
|
4
|
+
export { default as registerName, type RegisterNameDataParameters, type RegisterNameDataReturnType, type RegisterNameParameters, type RegisterNameReturnType, } from './functions/wallet/registerName.js';
|
|
5
|
+
export { default as renewNames, type RenewNamesDataParameters, type RenewNamesDataReturnType, type RenewNamesParameters, type RenewNamesReturnType, } from './functions/wallet/renewNames.js';
|
|
6
|
+
export { default as setAbiRecord, type SetAbiRecordDataParameters, type SetAbiRecordDataReturnType, type SetAbiRecordParameters, type SetAbiRecordReturnType, } from './functions/wallet/setAbiRecord.js';
|
|
7
|
+
export { default as setAddressRecord, type SetAddressRecordDataParameters, type SetAddressRecordDataReturnType, type SetAddressRecordParameters, type SetAddressRecordReturnType, } from './functions/wallet/setAddressRecord.js';
|
|
8
|
+
export { default as setChildFuses, type SetChildFusesDataParameters, type SetChildFusesDataReturnType, type SetChildFusesParameters, type SetChildFusesReturnType, } from './functions/wallet/setChildFuses.js';
|
|
9
|
+
export { default as setContentHashRecord, type SetContentHashRecordDataParameters, type SetContentHashRecordDataReturnType, type SetContentHashRecordParameters, type SetContentHashRecordReturnType, } from './functions/wallet/setContentHashRecord.js';
|
|
10
|
+
export { default as setFuses, type SetFusesDataParameters, type SetFusesDataReturnType, type SetFusesParameters, type SetFusesReturnType, } from './functions/wallet/setFuses.js';
|
|
11
|
+
export { default as setPrimaryName, type SetPrimaryNameDataParameters, type SetPrimaryNameDataReturnType, type SetPrimaryNameParameters, type SetPrimaryNameReturnType, } from './functions/wallet/setPrimaryName.js';
|
|
12
|
+
export { default as setRecords, type SetRecordsDataParameters, type SetRecordsDataReturnType, type SetRecordsParameters, type SetRecordsReturnType, } from './functions/wallet/setRecords.js';
|
|
13
|
+
export { default as setResolver, type SetResolverDataParameters, type SetResolverDataReturnType, type SetResolverParameters, type SetResolverReturnType, } from './functions/wallet/setResolver.js';
|
|
14
|
+
export { default as setTextRecord, type SetTextRecordDataParameters, type SetTextRecordDataReturnType, type SetTextRecordParameters, type SetTextRecordReturnType, } from './functions/wallet/setTextRecord.js';
|
|
15
|
+
export { default as transferName, type TransferNameDataParameters, type TransferNameDataReturnType, type TransferNameParameters, type TransferNameReturnType, } from './functions/wallet/transferName.js';
|
|
16
|
+
export { default as unwrapName, type UnwrapNameDataParameters, type UnwrapNameDataReturnType, type UnwrapNameParameters, type UnwrapNameReturnType, } from './functions/wallet/unwrapName.js';
|
|
17
|
+
export { default as wrapName, type WrapNameDataParameters, type WrapNameDataReturnType, type WrapNameParameters, type WrapNameReturnType, } from './functions/wallet/wrapName.js';
|
|
18
18
|
//# sourceMappingURL=wallet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,UAAU,EACrB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,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CAAmC,CAAA;AAC1C,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,OAAO,IAAI,YAAY,EACvB,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EACL,OAAO,IAAI,UAAU,EACrB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,OAAO,IAAI,QAAQ,EACnB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,MAAM,gCAAgC,CAAA"}
|
package/package.json
CHANGED
package/src/clients/public.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type EnsPublicClientConfig<
|
|
|
21
21
|
ClientConfig<TTransport, TChain>,
|
|
22
22
|
'batch' | 'key' | 'name' | 'pollingInterval' | 'transport'
|
|
23
23
|
> & {
|
|
24
|
-
chain:
|
|
24
|
+
chain: TChain
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export type EnsPublicClient<
|
package/src/clients/subgraph.ts
CHANGED
|
@@ -20,7 +20,7 @@ export type EnsSubgraphClientConfig<
|
|
|
20
20
|
ClientConfig<TTransport, TChain>,
|
|
21
21
|
'batch' | 'key' | 'name' | 'pollingInterval' | 'transport'
|
|
22
22
|
> & {
|
|
23
|
-
chain:
|
|
23
|
+
chain: TChain
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export type EnsSubgraphClient<
|
package/src/clients/wallet.ts
CHANGED
|
@@ -26,7 +26,7 @@ export type EnsWalletClientConfig<
|
|
|
26
26
|
ClientConfig<TTransport, TChain, TAccountOrAddress>,
|
|
27
27
|
'account' | 'chain' | 'key' | 'name' | 'pollingInterval' | 'transport'
|
|
28
28
|
> & {
|
|
29
|
-
chain:
|
|
29
|
+
chain: TChain
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export type EnsWalletClient<
|
package/src/contracts/consts.ts
CHANGED
|
@@ -12,7 +12,7 @@ type ChainContract = {
|
|
|
12
12
|
blockCreated?: number
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export const supportedChains = ['homestead', 'goerli'] as const
|
|
15
|
+
export const supportedChains = ['homestead', 'goerli', 'sepolia'] as const
|
|
16
16
|
export const supportedContracts = [
|
|
17
17
|
'ensBaseRegistrarImplementation',
|
|
18
18
|
'ensDnsRegistrar',
|
|
@@ -22,6 +22,8 @@ export const supportedContracts = [
|
|
|
22
22
|
'ensReverseRegistrar',
|
|
23
23
|
'ensBulkRenewal',
|
|
24
24
|
'ensDnssecImpl',
|
|
25
|
+
'ensUniversalResolver',
|
|
26
|
+
'ensRegistry',
|
|
25
27
|
] as const
|
|
26
28
|
|
|
27
29
|
export type SupportedChain = (typeof supportedChains)[number]
|
|
@@ -29,6 +31,9 @@ export type SupportedContract = (typeof supportedContracts)[number]
|
|
|
29
31
|
|
|
30
32
|
export const addresses = {
|
|
31
33
|
homestead: {
|
|
34
|
+
ensRegistry: {
|
|
35
|
+
address: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',
|
|
36
|
+
},
|
|
32
37
|
ensBaseRegistrarImplementation: {
|
|
33
38
|
address: '0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85',
|
|
34
39
|
},
|
|
@@ -58,6 +63,9 @@ export const addresses = {
|
|
|
58
63
|
},
|
|
59
64
|
},
|
|
60
65
|
goerli: {
|
|
66
|
+
ensRegistry: {
|
|
67
|
+
address: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',
|
|
68
|
+
},
|
|
61
69
|
ensBaseRegistrarImplementation: {
|
|
62
70
|
address: '0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85',
|
|
63
71
|
},
|
|
@@ -86,13 +94,42 @@ export const addresses = {
|
|
|
86
94
|
address: '0x3952Be0b2186f8B113193a84b69bD71ad3fc1ae3',
|
|
87
95
|
},
|
|
88
96
|
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
97
|
+
sepolia: {
|
|
98
|
+
ensRegistry: {
|
|
99
|
+
address: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',
|
|
100
|
+
},
|
|
101
|
+
ensBaseRegistrarImplementation: {
|
|
102
|
+
address: '0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85',
|
|
103
|
+
},
|
|
104
|
+
ensDnsRegistrar: {
|
|
105
|
+
address: '0x537625B0D7901FD20C57850d61580Bf1624Ef146',
|
|
106
|
+
},
|
|
107
|
+
ensEthRegistrarController: {
|
|
108
|
+
address: '0xFED6a969AaA60E4961FCD3EBF1A2e8913ac65B72',
|
|
109
|
+
},
|
|
110
|
+
ensNameWrapper: {
|
|
111
|
+
address: '0x0635513f179D50A207757E05759CbD106d7dFcE8',
|
|
112
|
+
},
|
|
113
|
+
ensPublicResolver: {
|
|
114
|
+
address: '0x8FADE66B79cC9f707aB26799354482EB93a5B7dD',
|
|
115
|
+
},
|
|
116
|
+
ensReverseRegistrar: {
|
|
117
|
+
address: '0xA0a1AbcDAe1a2a4A2EF8e9113Ff0e02DD81DC0C6',
|
|
118
|
+
},
|
|
119
|
+
ensBulkRenewal: {
|
|
120
|
+
address: '0x4EF77b90762Eddb33C8Eba5B5a19558DaE53D7a1',
|
|
121
|
+
},
|
|
122
|
+
ensDnssecImpl: {
|
|
123
|
+
address: '0x7b3ada1c8f012bae747cf99d6cbbf70d040b84cf',
|
|
124
|
+
},
|
|
125
|
+
ensUniversalResolver: {
|
|
126
|
+
address: '0x21B000Fd62a880b2125A61e36a284BB757b76025',
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
} as const satisfies Record<
|
|
130
|
+
SupportedChain,
|
|
131
|
+
Record<SupportedContract, { address: Address }>
|
|
132
|
+
>
|
|
96
133
|
|
|
97
134
|
type Subgraphs = {
|
|
98
135
|
ens: {
|
|
@@ -111,10 +148,12 @@ export const subgraphs = {
|
|
|
111
148
|
url: 'https://api.thegraph.com/subgraphs/name/ensdomains/ensgoerli',
|
|
112
149
|
},
|
|
113
150
|
},
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
151
|
+
sepolia: {
|
|
152
|
+
ens: {
|
|
153
|
+
url: 'https://api.studio.thegraph.com/query/49574/enssepolia/version/latest',
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
} as const satisfies Record<SupportedChain, Subgraphs>
|
|
118
157
|
|
|
119
158
|
type EnsChainContracts = {
|
|
120
159
|
ensBaseRegistrarImplementation: ChainContract
|
package/src/dns.ts
CHANGED
|
@@ -10,6 +10,8 @@ export {
|
|
|
10
10
|
} from './functions/dns/getDnsOwner.js'
|
|
11
11
|
export {
|
|
12
12
|
default as importDnsName,
|
|
13
|
+
type ImportDnsNameDataParameters,
|
|
14
|
+
type ImportDnsNameDataReturnType,
|
|
13
15
|
type ImportDnsNameParameters,
|
|
14
16
|
type ImportDnsNameReturnType,
|
|
15
17
|
} from './functions/dns/importDnsName.js'
|
package/src/errors/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '
|
|
1
|
+
export const version = 'v3.0.0-beta.4'
|
|
@@ -60,7 +60,7 @@ type BaseRegistrarTransferNameDataParameters = {
|
|
|
60
60
|
asParent?: never
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
type TransferNameDataParameters = BaseTransferNameDataParameters &
|
|
63
|
+
export type TransferNameDataParameters = BaseTransferNameDataParameters &
|
|
64
64
|
(
|
|
65
65
|
| RegistryOrNameWrapperTransferNameDataParameters
|
|
66
66
|
| BaseRegistrarTransferNameDataParameters
|
package/src/utils/index.ts
CHANGED
|
@@ -32,6 +32,28 @@ export {
|
|
|
32
32
|
MAX_INT_64,
|
|
33
33
|
MINIMUM_DOT_ETH_CHARS,
|
|
34
34
|
} from './consts.js'
|
|
35
|
+
export {
|
|
36
|
+
ChildFuseKeys,
|
|
37
|
+
ChildFuses,
|
|
38
|
+
FullParentFuseKeys,
|
|
39
|
+
FullParentFuses,
|
|
40
|
+
FuseRanges,
|
|
41
|
+
ParentFuseKeys,
|
|
42
|
+
ParentFuses,
|
|
43
|
+
UnnamedChildFuseKeys,
|
|
44
|
+
UnnamedChildFuses,
|
|
45
|
+
UnnamedParentFuseKeys,
|
|
46
|
+
UnnamedParentFuses,
|
|
47
|
+
UserSettableFuseKeys,
|
|
48
|
+
UserSettableFuses,
|
|
49
|
+
checkPccBurned,
|
|
50
|
+
decodeFuses,
|
|
51
|
+
encodeFuses,
|
|
52
|
+
type DecodedFuses,
|
|
53
|
+
type EncodeChildFusesInputObject,
|
|
54
|
+
type EncodeFusesInputObject,
|
|
55
|
+
type EncodeParentFusesInputObject,
|
|
56
|
+
} from './fuses.js'
|
|
35
57
|
|
|
36
58
|
export {
|
|
37
59
|
decodeContentHash,
|