@ensdomains/ensjs 3.0.0-beta.1 → 3.0.0-beta.3
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/clients/decorators/subgraph.js.map +1 -1
- package/dist/cjs/contracts/consts.js +52 -1
- package/dist/cjs/contracts/consts.js.map +1 -1
- package/dist/cjs/dns.js +3 -3
- package/dist/cjs/dns.js.map +1 -1
- package/dist/cjs/errors/subgraph.js.map +1 -1
- package/dist/cjs/errors/utils.js +15 -18
- package/dist/cjs/errors/utils.js.map +1 -1
- package/dist/cjs/errors/version.js +1 -1
- package/dist/cjs/functions/dns/{prepareDnsImport.js → getDnsImportData.js} +3 -3
- package/dist/cjs/functions/dns/{prepareDnsImport.js.map → getDnsImportData.js.map} +1 -1
- package/dist/cjs/functions/dns/importDnsName.js +7 -7
- package/dist/cjs/functions/dns/importDnsName.js.map +1 -1
- package/dist/cjs/functions/public/_getContentHash.js +1 -1
- package/dist/cjs/functions/public/getSupportedInterfaces.js +1 -1
- package/dist/cjs/functions/public/getSupportedInterfaces.js.map +1 -1
- package/dist/cjs/functions/public/getWrapperData.js.map +1 -1
- package/dist/cjs/functions/subgraph/filters.js +3 -0
- package/dist/cjs/functions/subgraph/filters.js.map +1 -0
- package/dist/cjs/functions/subgraph/getNameHistory.js +1 -1
- package/dist/cjs/functions/subgraph/getNamesForAddress.js +140 -182
- package/dist/cjs/functions/subgraph/getNamesForAddress.js.map +1 -1
- package/dist/cjs/functions/subgraph/getSubnames.js +95 -108
- package/dist/cjs/functions/subgraph/getSubnames.js.map +1 -1
- package/dist/cjs/functions/subgraph/types.js +3 -0
- package/dist/cjs/functions/subgraph/types.js.map +1 -0
- package/dist/cjs/functions/subgraph/utils.js.map +1 -1
- package/dist/cjs/functions/wallet/createSubname.js +1 -1
- package/dist/cjs/functions/wallet/createSubname.js.map +1 -1
- package/dist/cjs/functions/wallet/setChildFuses.js +1 -1
- package/dist/cjs/functions/wallet/setChildFuses.js.map +1 -1
- package/dist/cjs/functions/wallet/setFuses.js +1 -1
- package/dist/cjs/functions/wallet/setFuses.js.map +1 -1
- package/dist/cjs/functions/wallet/wrapName.js +3 -1
- package/dist/cjs/functions/wallet/wrapName.js.map +1 -1
- package/dist/cjs/index.js +1 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/utils/contentHash.js +54 -131
- package/dist/cjs/utils/contentHash.js.map +1 -1
- package/dist/cjs/utils/encoders/encodeSetContentHash.js +1 -4
- package/dist/cjs/utils/encoders/encodeSetContentHash.js.map +1 -1
- package/dist/cjs/utils/format.js +1 -5
- package/dist/cjs/utils/format.js.map +1 -1
- package/dist/cjs/utils/fuses.js +181 -200
- package/dist/cjs/utils/fuses.js.map +1 -1
- package/dist/cjs/utils/index.js +4 -7
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/registerHelpers.js +3 -1
- package/dist/cjs/utils/registerHelpers.js.map +1 -1
- package/dist/esm/clients/decorators/subgraph.js.map +1 -1
- package/dist/esm/contracts/consts.js +52 -1
- package/dist/esm/contracts/consts.js.map +1 -1
- package/dist/esm/dns.js +1 -1
- package/dist/esm/dns.js.map +1 -1
- package/dist/esm/errors/subgraph.js.map +1 -1
- package/dist/esm/errors/utils.js +13 -16
- package/dist/esm/errors/utils.js.map +1 -1
- package/dist/esm/errors/version.js +1 -1
- package/dist/esm/functions/dns/{prepareDnsImport.js → getDnsImportData.js} +9 -10
- package/dist/esm/functions/dns/getDnsImportData.js.map +1 -0
- package/dist/esm/functions/dns/importDnsName.js +12 -12
- package/dist/esm/functions/dns/importDnsName.js.map +1 -1
- package/dist/esm/functions/public/_getContentHash.js +2 -2
- package/dist/esm/functions/public/getSupportedInterfaces.js +2 -2
- package/dist/esm/functions/public/getSupportedInterfaces.js.map +1 -1
- package/dist/esm/functions/public/getWrapperData.js.map +1 -1
- package/dist/esm/functions/subgraph/filters.js +2 -0
- package/dist/esm/functions/subgraph/filters.js.map +1 -0
- package/dist/esm/functions/subgraph/getNameHistory.js +2 -2
- package/dist/esm/functions/subgraph/getNamesForAddress.js +144 -183
- package/dist/esm/functions/subgraph/getNamesForAddress.js.map +1 -1
- package/dist/esm/functions/subgraph/getSubnames.js +101 -111
- package/dist/esm/functions/subgraph/getSubnames.js.map +1 -1
- package/dist/esm/functions/subgraph/types.js +2 -0
- package/dist/esm/functions/subgraph/types.js.map +1 -0
- package/dist/esm/functions/subgraph/utils.js.map +1 -1
- package/dist/esm/functions/wallet/createSubname.js +1 -1
- package/dist/esm/functions/wallet/createSubname.js.map +1 -1
- package/dist/esm/functions/wallet/setChildFuses.js +1 -1
- package/dist/esm/functions/wallet/setChildFuses.js.map +1 -1
- package/dist/esm/functions/wallet/setFuses.js +2 -2
- package/dist/esm/functions/wallet/setFuses.js.map +1 -1
- package/dist/esm/functions/wallet/wrapName.js +4 -2
- package/dist/esm/functions/wallet/wrapName.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/contentHash.js +51 -128
- package/dist/esm/utils/contentHash.js.map +1 -1
- package/dist/esm/utils/encoders/encodeSetContentHash.js +2 -5
- package/dist/esm/utils/encoders/encodeSetContentHash.js.map +1 -1
- package/dist/esm/utils/format.js +0 -2
- package/dist/esm/utils/format.js.map +1 -1
- package/dist/esm/utils/fuses.js +180 -201
- package/dist/esm/utils/fuses.js.map +1 -1
- package/dist/esm/utils/index.js +2 -2
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/utils/registerHelpers.js +4 -2
- package/dist/esm/utils/registerHelpers.js.map +1 -1
- package/dist/types/clients/decorators/subgraph.d.ts +1 -1
- package/dist/types/clients/decorators/subgraph.d.ts.map +1 -1
- package/dist/types/clients/decorators/wallet.d.ts +12 -12
- package/dist/types/clients/public.d.ts +1 -1
- package/dist/types/clients/subgraph.d.ts +1 -1
- package/dist/types/clients/wallet.d.ts +43 -79
- package/dist/types/clients/wallet.d.ts.map +1 -1
- package/dist/types/contracts/consts.d.ts +51 -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/subgraph.d.ts +4 -4
- package/dist/types/errors/subgraph.d.ts.map +1 -1
- package/dist/types/errors/utils.d.ts +10 -13
- package/dist/types/errors/utils.d.ts.map +1 -1
- package/dist/types/errors/version.d.ts +1 -1
- package/dist/types/functions/dns/{prepareDnsImport.d.ts → getDnsImportData.d.ts} +11 -12
- package/dist/types/functions/dns/{prepareDnsImport.d.ts.map → getDnsImportData.d.ts.map} +1 -1
- package/dist/types/functions/dns/importDnsName.d.ts +36 -36
- package/dist/types/functions/dns/importDnsName.d.ts.map +1 -1
- package/dist/types/functions/public/getSupportedInterfaces.d.ts +19 -4
- package/dist/types/functions/public/getSupportedInterfaces.d.ts.map +1 -1
- package/dist/types/functions/public/getWrapperData.d.ts +2 -2
- package/dist/types/functions/public/getWrapperData.d.ts.map +1 -1
- package/dist/types/functions/subgraph/filters.d.ts +693 -0
- package/dist/types/functions/subgraph/filters.d.ts.map +1 -0
- package/dist/types/functions/subgraph/getNamesForAddress.d.ts +2 -0
- package/dist/types/functions/subgraph/getNamesForAddress.d.ts.map +1 -1
- package/dist/types/functions/subgraph/getSubnames.d.ts +3 -1
- package/dist/types/functions/subgraph/getSubnames.d.ts.map +1 -1
- package/dist/types/functions/subgraph/types.d.ts +13 -0
- package/dist/types/functions/subgraph/types.d.ts.map +1 -0
- package/dist/types/functions/subgraph/utils.d.ts +2 -2
- package/dist/types/functions/subgraph/utils.d.ts.map +1 -1
- package/dist/types/functions/wallet/commitName.d.ts +25 -25
- package/dist/types/functions/wallet/createSubname.d.ts +28 -28
- package/dist/types/functions/wallet/createSubname.d.ts.map +1 -1
- package/dist/types/functions/wallet/deleteSubname.d.ts +25 -25
- package/dist/types/functions/wallet/registerName.d.ts +24 -24
- package/dist/types/functions/wallet/renewNames.d.ts +24 -24
- package/dist/types/functions/wallet/setAbiRecord.d.ts +25 -25
- package/dist/types/functions/wallet/setAddressRecord.d.ts +25 -25
- package/dist/types/functions/wallet/setChildFuses.d.ts +27 -27
- package/dist/types/functions/wallet/setChildFuses.d.ts.map +1 -1
- package/dist/types/functions/wallet/setContentHashRecord.d.ts +25 -25
- package/dist/types/functions/wallet/setFuses.d.ts +27 -27
- package/dist/types/functions/wallet/setFuses.d.ts.map +1 -1
- package/dist/types/functions/wallet/setPrimaryName.d.ts +25 -25
- package/dist/types/functions/wallet/setRecords.d.ts +25 -25
- package/dist/types/functions/wallet/setResolver.d.ts +25 -25
- package/dist/types/functions/wallet/setTextRecord.d.ts +25 -25
- package/dist/types/functions/wallet/transferName.d.ts +25 -25
- package/dist/types/functions/wallet/unwrapName.d.ts +25 -25
- package/dist/types/functions/wallet/wrapName.d.ts +27 -27
- package/dist/types/functions/wallet/wrapName.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/utils/contentHash.d.ts +7 -11
- package/dist/types/utils/contentHash.d.ts.map +1 -1
- package/dist/types/utils/encoders/encodeSetContentHash.d.ts.map +1 -1
- package/dist/types/utils/format.d.ts +0 -2
- package/dist/types/utils/format.d.ts.map +1 -1
- package/dist/types/utils/fuses.d.ts +164 -125
- package/dist/types/utils/fuses.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/registerHelpers.d.ts +2 -2
- package/dist/types/utils/registerHelpers.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/clients/decorators/subgraph.ts +1 -0
- package/src/contracts/consts.ts +57 -12
- package/src/dns.ts +5 -5
- package/src/errors/subgraph.ts +4 -4
- package/src/errors/utils.ts +21 -18
- package/src/errors/version.ts +1 -1
- package/src/functions/dns/{prepareDnsImport.ts → getDnsImportData.ts} +12 -13
- package/src/functions/dns/importDnsName.ts +20 -15
- package/src/functions/public/_getContentHash.ts +2 -2
- package/src/functions/public/getSupportedInterfaces.ts +48 -10
- package/src/functions/public/getWrapperData.ts +2 -2
- package/src/functions/subgraph/filters.ts +702 -0
- package/src/functions/subgraph/getNameHistory.ts +2 -2
- package/src/functions/subgraph/getNamesForAddress.ts +170 -186
- package/src/functions/subgraph/getSubnames.ts +121 -113
- package/src/functions/subgraph/types.ts +13 -0
- package/src/functions/subgraph/utils.ts +2 -2
- package/src/functions/wallet/createSubname.ts +4 -4
- package/src/functions/wallet/setChildFuses.ts +3 -3
- package/src/functions/wallet/setFuses.ts +6 -3
- package/src/functions/wallet/wrapName.ts +8 -3
- package/src/index.ts +0 -1
- package/src/utils/contentHash.ts +59 -113
- package/src/utils/encoders/encodeSetContentHash.ts +2 -4
- package/src/utils/format.ts +0 -6
- package/src/utils/fuses.ts +308 -308
- package/src/utils/index.ts +4 -5
- package/src/utils/registerHelpers.ts +5 -3
- package/dist/esm/functions/dns/prepareDnsImport.js.map +0 -1
- package/src/@types/@ensdomains/content-hash.d.ts +0 -1
- package/src/functions/dns/getDnsOwner.test.ts +0 -195
- package/src/functions/dns/importDnsName.test.ts +0 -117
- package/src/functions/dns/prepareDnsImport.test.ts +0 -115
- package/src/functions/public/batch.test.ts +0 -67
- package/src/functions/public/ccip.test.ts +0 -78
- package/src/functions/public/getAbiRecord.test.ts +0 -174
- package/src/functions/public/getAddressRecord.test.ts +0 -83
- package/src/functions/public/getAvailable.test.ts +0 -17
- package/src/functions/public/getContentHashRecord.test.ts +0 -28
- package/src/functions/public/getExpiry.test.ts +0 -48
- package/src/functions/public/getName.test.ts +0 -66
- package/src/functions/public/getOwner.test.ts +0 -87
- package/src/functions/public/getPrice.test.ts +0 -45
- package/src/functions/public/getRecords.test.ts +0 -49
- package/src/functions/public/getResolver.test.ts +0 -12
- package/src/functions/public/getTextRecord.test.ts +0 -20
- package/src/functions/public/getWrapperData.test.ts +0 -79
- package/src/functions/public/getWrapperName.test.ts +0 -19
- package/src/functions/subgraph/client.test.ts +0 -170
- package/src/functions/subgraph/getDecodedName.test.ts +0 -31
- package/src/functions/subgraph/getNameHistory.test.ts +0 -39
- package/src/functions/subgraph/getNamesForAddress.test.ts +0 -244
- package/src/functions/subgraph/getSubgraphRecords.test.ts +0 -74
- package/src/functions/subgraph/getSubgraphRegistrant.test.ts +0 -34
- package/src/functions/subgraph/getSubnames.test.ts +0 -202
- package/src/functions/wallet/commitName.test.ts +0 -58
- package/src/functions/wallet/createSubname.test.ts +0 -73
- package/src/functions/wallet/deleteSubname.test.ts +0 -150
- package/src/functions/wallet/registerName.test.ts +0 -81
- package/src/functions/wallet/renewNames.test.ts +0 -92
- package/src/functions/wallet/setAbiRecord.test.ts +0 -156
- package/src/functions/wallet/setAddressRecord.test.ts +0 -121
- package/src/functions/wallet/setChildFuses.test.ts +0 -97
- package/src/functions/wallet/setContentHashRecord.test.ts +0 -69
- package/src/functions/wallet/setFuses.test.ts +0 -287
- package/src/functions/wallet/setPrimaryName.test.ts +0 -71
- package/src/functions/wallet/setRecords.test.ts +0 -127
- package/src/functions/wallet/setResolver.test.ts +0 -114
- package/src/functions/wallet/setTextRecord.test.ts +0 -67
- package/src/functions/wallet/transferName.test.ts +0 -201
- package/src/functions/wallet/unwrapName.test.ts +0 -93
- package/src/functions/wallet/wrapName.test.ts +0 -195
- package/src/utils/generateRecordCallArray.test.ts +0 -84
- package/src/utils/labels.test.ts +0 -163
- package/src/utils/makeLabelNodeAndParent.test.ts +0 -11
- package/src/utils/makeSafeSecondsDate.test.ts +0 -14
- package/src/utils/normalise.test.ts +0 -35
- package/src/utils/ownerFromContract.test.ts +0 -52
- package/src/utils/registerHelpers.test.ts +0 -159
- package/src/utils/validation.test.ts +0 -170
- package/src/utils/wrapper.test.ts +0 -46
|
@@ -82,17 +82,17 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
82
82
|
[x: `address[${string}]`]: undefined;
|
|
83
83
|
[x: `bool[${string}]`]: undefined;
|
|
84
84
|
[x: `bytes[${string}]`]: undefined;
|
|
85
|
-
[x: `
|
|
86
|
-
[x: `
|
|
85
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
86
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
87
87
|
[x: `bytes16[${string}]`]: undefined;
|
|
88
88
|
[x: `bytes1[${string}]`]: undefined;
|
|
89
|
-
[x: `
|
|
89
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
90
90
|
[x: `bytes4[${string}]`]: undefined;
|
|
91
91
|
[x: `bytes5[${string}]`]: undefined;
|
|
92
92
|
[x: `bytes6[${string}]`]: undefined;
|
|
93
93
|
[x: `bytes7[${string}]`]: undefined;
|
|
94
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
94
95
|
[x: `bytes9[${string}]`]: undefined;
|
|
95
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
96
96
|
[x: `bytes11[${string}]`]: undefined;
|
|
97
97
|
[x: `bytes12[${string}]`]: undefined;
|
|
98
98
|
[x: `bytes13[${string}]`]: undefined;
|
|
@@ -115,8 +115,8 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
115
115
|
[x: `bytes31[${string}]`]: undefined;
|
|
116
116
|
[x: `bytes32[${string}]`]: undefined;
|
|
117
117
|
[x: `int[${string}]`]: undefined;
|
|
118
|
-
[x: `int8[${string}]`]: undefined;
|
|
119
118
|
[x: `int16[${string}]`]: undefined;
|
|
119
|
+
[x: `int8[${string}]`]: undefined;
|
|
120
120
|
[x: `int24[${string}]`]: undefined;
|
|
121
121
|
[x: `int32[${string}]`]: undefined;
|
|
122
122
|
[x: `int40[${string}]`]: undefined;
|
|
@@ -148,8 +148,8 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
148
148
|
[x: `int248[${string}]`]: undefined;
|
|
149
149
|
[x: `int256[${string}]`]: undefined;
|
|
150
150
|
[x: `uint[${string}]`]: undefined;
|
|
151
|
-
[x: `uint8[${string}]`]: undefined;
|
|
152
151
|
[x: `uint16[${string}]`]: undefined;
|
|
152
|
+
[x: `uint8[${string}]`]: undefined;
|
|
153
153
|
[x: `uint24[${string}]`]: undefined;
|
|
154
154
|
[x: `uint32[${string}]`]: undefined;
|
|
155
155
|
[x: `uint40[${string}]`]: undefined;
|
|
@@ -184,17 +184,17 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
184
184
|
address?: undefined;
|
|
185
185
|
bool?: undefined;
|
|
186
186
|
bytes?: undefined;
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
bytes3?: undefined;
|
|
188
|
+
bytes10?: undefined;
|
|
189
189
|
bytes16?: undefined;
|
|
190
190
|
bytes1?: undefined;
|
|
191
|
-
|
|
191
|
+
bytes2?: undefined;
|
|
192
192
|
bytes4?: undefined;
|
|
193
193
|
bytes5?: undefined;
|
|
194
194
|
bytes6?: undefined;
|
|
195
195
|
bytes7?: undefined;
|
|
196
|
+
bytes8?: undefined;
|
|
196
197
|
bytes9?: undefined;
|
|
197
|
-
bytes10?: undefined;
|
|
198
198
|
bytes11?: undefined;
|
|
199
199
|
bytes12?: undefined;
|
|
200
200
|
bytes13?: undefined;
|
|
@@ -216,8 +216,8 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
216
216
|
bytes30?: undefined;
|
|
217
217
|
bytes31?: undefined;
|
|
218
218
|
bytes32?: undefined;
|
|
219
|
-
int8?: undefined;
|
|
220
219
|
int16?: undefined;
|
|
220
|
+
int8?: undefined;
|
|
221
221
|
int24?: undefined;
|
|
222
222
|
int32?: undefined;
|
|
223
223
|
int40?: undefined;
|
|
@@ -248,8 +248,8 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
248
248
|
int240?: undefined;
|
|
249
249
|
int248?: undefined;
|
|
250
250
|
int256?: undefined;
|
|
251
|
-
uint8?: undefined;
|
|
252
251
|
uint16?: undefined;
|
|
252
|
+
uint8?: undefined;
|
|
253
253
|
uint24?: undefined;
|
|
254
254
|
uint32?: undefined;
|
|
255
255
|
uint40?: undefined;
|
|
@@ -370,17 +370,17 @@ declare namespace unwrapName {
|
|
|
370
370
|
[x: `address[${string}]`]: undefined;
|
|
371
371
|
[x: `bool[${string}]`]: undefined;
|
|
372
372
|
[x: `bytes[${string}]`]: undefined;
|
|
373
|
-
[x: `
|
|
374
|
-
[x: `
|
|
373
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
374
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
375
375
|
[x: `bytes16[${string}]`]: undefined;
|
|
376
376
|
[x: `bytes1[${string}]`]: undefined;
|
|
377
|
-
[x: `
|
|
377
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
378
378
|
[x: `bytes4[${string}]`]: undefined;
|
|
379
379
|
[x: `bytes5[${string}]`]: undefined;
|
|
380
380
|
[x: `bytes6[${string}]`]: undefined;
|
|
381
381
|
[x: `bytes7[${string}]`]: undefined;
|
|
382
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
382
383
|
[x: `bytes9[${string}]`]: undefined;
|
|
383
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
384
384
|
[x: `bytes11[${string}]`]: undefined;
|
|
385
385
|
[x: `bytes12[${string}]`]: undefined;
|
|
386
386
|
[x: `bytes13[${string}]`]: undefined;
|
|
@@ -403,8 +403,8 @@ declare namespace unwrapName {
|
|
|
403
403
|
[x: `bytes31[${string}]`]: undefined;
|
|
404
404
|
[x: `bytes32[${string}]`]: undefined;
|
|
405
405
|
[x: `int[${string}]`]: undefined;
|
|
406
|
-
[x: `int8[${string}]`]: undefined;
|
|
407
406
|
[x: `int16[${string}]`]: undefined;
|
|
407
|
+
[x: `int8[${string}]`]: undefined;
|
|
408
408
|
[x: `int24[${string}]`]: undefined;
|
|
409
409
|
[x: `int32[${string}]`]: undefined;
|
|
410
410
|
[x: `int40[${string}]`]: undefined;
|
|
@@ -436,8 +436,8 @@ declare namespace unwrapName {
|
|
|
436
436
|
[x: `int248[${string}]`]: undefined;
|
|
437
437
|
[x: `int256[${string}]`]: undefined;
|
|
438
438
|
[x: `uint[${string}]`]: undefined;
|
|
439
|
-
[x: `uint8[${string}]`]: undefined;
|
|
440
439
|
[x: `uint16[${string}]`]: undefined;
|
|
440
|
+
[x: `uint8[${string}]`]: undefined;
|
|
441
441
|
[x: `uint24[${string}]`]: undefined;
|
|
442
442
|
[x: `uint32[${string}]`]: undefined;
|
|
443
443
|
[x: `uint40[${string}]`]: undefined;
|
|
@@ -472,17 +472,17 @@ declare namespace unwrapName {
|
|
|
472
472
|
address?: undefined;
|
|
473
473
|
bool?: undefined;
|
|
474
474
|
bytes?: undefined;
|
|
475
|
-
|
|
476
|
-
|
|
475
|
+
bytes3?: undefined;
|
|
476
|
+
bytes10?: undefined;
|
|
477
477
|
bytes16?: undefined;
|
|
478
478
|
bytes1?: undefined;
|
|
479
|
-
|
|
479
|
+
bytes2?: undefined;
|
|
480
480
|
bytes4?: undefined;
|
|
481
481
|
bytes5?: undefined;
|
|
482
482
|
bytes6?: undefined;
|
|
483
483
|
bytes7?: undefined;
|
|
484
|
+
bytes8?: undefined;
|
|
484
485
|
bytes9?: undefined;
|
|
485
|
-
bytes10?: undefined;
|
|
486
486
|
bytes11?: undefined;
|
|
487
487
|
bytes12?: undefined;
|
|
488
488
|
bytes13?: undefined;
|
|
@@ -504,8 +504,8 @@ declare namespace unwrapName {
|
|
|
504
504
|
bytes30?: undefined;
|
|
505
505
|
bytes31?: undefined;
|
|
506
506
|
bytes32?: undefined;
|
|
507
|
-
int8?: undefined;
|
|
508
507
|
int16?: undefined;
|
|
508
|
+
int8?: undefined;
|
|
509
509
|
int24?: undefined;
|
|
510
510
|
int32?: undefined;
|
|
511
511
|
int40?: undefined;
|
|
@@ -536,8 +536,8 @@ declare namespace unwrapName {
|
|
|
536
536
|
int240?: undefined;
|
|
537
537
|
int248?: undefined;
|
|
538
538
|
int256?: undefined;
|
|
539
|
-
uint8?: undefined;
|
|
540
539
|
uint16?: undefined;
|
|
540
|
+
uint8?: undefined;
|
|
541
541
|
uint24?: undefined;
|
|
542
542
|
uint32?: undefined;
|
|
543
543
|
uint40?: undefined;
|
|
@@ -573,8 +573,8 @@ declare namespace unwrapName {
|
|
|
573
573
|
watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
|
|
574
574
|
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}`>;
|
|
575
575
|
}, { name, newOwnerAddress, newRegistrantAddress, }: UnwrapNameDataParameters<TName, GetNameType<TName>>) => {
|
|
576
|
-
to: `0x${string}`;
|
|
577
576
|
data: `0x${string}`;
|
|
577
|
+
to: `0x${string}`;
|
|
578
578
|
};
|
|
579
579
|
}
|
|
580
580
|
export default unwrapName;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { type Account, type Address, type Hash, type SendTransactionParameters, type Transport } from 'viem';
|
|
2
2
|
import type { ChainWithEns, WalletWithEns } from '../../contracts/consts.js';
|
|
3
3
|
import type { Eth2ldNameSpecifier, GetNameType, Prettify, SimpleTransactionRequest, WriteTransactionParameters } from '../../types.js';
|
|
4
|
-
import { type
|
|
4
|
+
import { type EncodeChildFusesInputObject } from '../../utils/fuses.js';
|
|
5
5
|
export type WrapNameDataParameters<TName extends string, TNameOption extends GetNameType<TName> = GetNameType<TName>> = {
|
|
6
6
|
/** The name to wrap */
|
|
7
7
|
name: TName;
|
|
8
8
|
/** The recipient of the wrapped name */
|
|
9
9
|
newOwnerAddress: Address;
|
|
10
10
|
/** Fuses to set on wrap (eth-2ld only) */
|
|
11
|
-
fuses?: TNameOption extends Eth2ldNameSpecifier ?
|
|
11
|
+
fuses?: TNameOption extends Eth2ldNameSpecifier ? EncodeChildFusesInputObject : never;
|
|
12
12
|
/** The resolver address to set on wrap */
|
|
13
13
|
resolverAddress?: Address;
|
|
14
14
|
};
|
|
@@ -76,17 +76,17 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
76
76
|
[x: `address[${string}]`]: undefined;
|
|
77
77
|
[x: `bool[${string}]`]: undefined;
|
|
78
78
|
[x: `bytes[${string}]`]: undefined;
|
|
79
|
-
[x: `
|
|
80
|
-
[x: `
|
|
79
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
80
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
81
81
|
[x: `bytes16[${string}]`]: undefined;
|
|
82
82
|
[x: `bytes1[${string}]`]: undefined;
|
|
83
|
-
[x: `
|
|
83
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
84
84
|
[x: `bytes4[${string}]`]: undefined;
|
|
85
85
|
[x: `bytes5[${string}]`]: undefined;
|
|
86
86
|
[x: `bytes6[${string}]`]: undefined;
|
|
87
87
|
[x: `bytes7[${string}]`]: undefined;
|
|
88
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
88
89
|
[x: `bytes9[${string}]`]: undefined;
|
|
89
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
90
90
|
[x: `bytes11[${string}]`]: undefined;
|
|
91
91
|
[x: `bytes12[${string}]`]: undefined;
|
|
92
92
|
[x: `bytes13[${string}]`]: undefined;
|
|
@@ -109,8 +109,8 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
109
109
|
[x: `bytes31[${string}]`]: undefined;
|
|
110
110
|
[x: `bytes32[${string}]`]: undefined;
|
|
111
111
|
[x: `int[${string}]`]: undefined;
|
|
112
|
-
[x: `int8[${string}]`]: undefined;
|
|
113
112
|
[x: `int16[${string}]`]: undefined;
|
|
113
|
+
[x: `int8[${string}]`]: undefined;
|
|
114
114
|
[x: `int24[${string}]`]: undefined;
|
|
115
115
|
[x: `int32[${string}]`]: undefined;
|
|
116
116
|
[x: `int40[${string}]`]: undefined;
|
|
@@ -142,8 +142,8 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
142
142
|
[x: `int248[${string}]`]: undefined;
|
|
143
143
|
[x: `int256[${string}]`]: undefined;
|
|
144
144
|
[x: `uint[${string}]`]: undefined;
|
|
145
|
-
[x: `uint8[${string}]`]: undefined;
|
|
146
145
|
[x: `uint16[${string}]`]: undefined;
|
|
146
|
+
[x: `uint8[${string}]`]: undefined;
|
|
147
147
|
[x: `uint24[${string}]`]: undefined;
|
|
148
148
|
[x: `uint32[${string}]`]: undefined;
|
|
149
149
|
[x: `uint40[${string}]`]: undefined;
|
|
@@ -178,17 +178,17 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
178
178
|
address?: undefined;
|
|
179
179
|
bool?: undefined;
|
|
180
180
|
bytes?: undefined;
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
bytes3?: undefined;
|
|
182
|
+
bytes10?: undefined;
|
|
183
183
|
bytes16?: undefined;
|
|
184
184
|
bytes1?: undefined;
|
|
185
|
-
|
|
185
|
+
bytes2?: undefined;
|
|
186
186
|
bytes4?: undefined;
|
|
187
187
|
bytes5?: undefined;
|
|
188
188
|
bytes6?: undefined;
|
|
189
189
|
bytes7?: undefined;
|
|
190
|
+
bytes8?: undefined;
|
|
190
191
|
bytes9?: undefined;
|
|
191
|
-
bytes10?: undefined;
|
|
192
192
|
bytes11?: undefined;
|
|
193
193
|
bytes12?: undefined;
|
|
194
194
|
bytes13?: undefined;
|
|
@@ -210,8 +210,8 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
210
210
|
bytes30?: undefined;
|
|
211
211
|
bytes31?: undefined;
|
|
212
212
|
bytes32?: undefined;
|
|
213
|
-
int8?: undefined;
|
|
214
213
|
int16?: undefined;
|
|
214
|
+
int8?: undefined;
|
|
215
215
|
int24?: undefined;
|
|
216
216
|
int32?: undefined;
|
|
217
217
|
int40?: undefined;
|
|
@@ -242,8 +242,8 @@ export declare const makeFunctionData: <TName extends string, TChain extends Cha
|
|
|
242
242
|
int240?: undefined;
|
|
243
243
|
int248?: undefined;
|
|
244
244
|
int256?: undefined;
|
|
245
|
-
uint8?: undefined;
|
|
246
245
|
uint16?: undefined;
|
|
246
|
+
uint8?: undefined;
|
|
247
247
|
uint24?: undefined;
|
|
248
248
|
uint32?: undefined;
|
|
249
249
|
uint40?: undefined;
|
|
@@ -363,17 +363,17 @@ declare namespace wrapName {
|
|
|
363
363
|
[x: `address[${string}]`]: undefined;
|
|
364
364
|
[x: `bool[${string}]`]: undefined;
|
|
365
365
|
[x: `bytes[${string}]`]: undefined;
|
|
366
|
-
[x: `
|
|
367
|
-
[x: `
|
|
366
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
367
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
368
368
|
[x: `bytes16[${string}]`]: undefined;
|
|
369
369
|
[x: `bytes1[${string}]`]: undefined;
|
|
370
|
-
[x: `
|
|
370
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
371
371
|
[x: `bytes4[${string}]`]: undefined;
|
|
372
372
|
[x: `bytes5[${string}]`]: undefined;
|
|
373
373
|
[x: `bytes6[${string}]`]: undefined;
|
|
374
374
|
[x: `bytes7[${string}]`]: undefined;
|
|
375
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
375
376
|
[x: `bytes9[${string}]`]: undefined;
|
|
376
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
377
377
|
[x: `bytes11[${string}]`]: undefined;
|
|
378
378
|
[x: `bytes12[${string}]`]: undefined;
|
|
379
379
|
[x: `bytes13[${string}]`]: undefined;
|
|
@@ -396,8 +396,8 @@ declare namespace wrapName {
|
|
|
396
396
|
[x: `bytes31[${string}]`]: undefined;
|
|
397
397
|
[x: `bytes32[${string}]`]: undefined;
|
|
398
398
|
[x: `int[${string}]`]: undefined;
|
|
399
|
-
[x: `int8[${string}]`]: undefined;
|
|
400
399
|
[x: `int16[${string}]`]: undefined;
|
|
400
|
+
[x: `int8[${string}]`]: undefined;
|
|
401
401
|
[x: `int24[${string}]`]: undefined;
|
|
402
402
|
[x: `int32[${string}]`]: undefined;
|
|
403
403
|
[x: `int40[${string}]`]: undefined;
|
|
@@ -429,8 +429,8 @@ declare namespace wrapName {
|
|
|
429
429
|
[x: `int248[${string}]`]: undefined;
|
|
430
430
|
[x: `int256[${string}]`]: undefined;
|
|
431
431
|
[x: `uint[${string}]`]: undefined;
|
|
432
|
-
[x: `uint8[${string}]`]: undefined;
|
|
433
432
|
[x: `uint16[${string}]`]: undefined;
|
|
433
|
+
[x: `uint8[${string}]`]: undefined;
|
|
434
434
|
[x: `uint24[${string}]`]: undefined;
|
|
435
435
|
[x: `uint32[${string}]`]: undefined;
|
|
436
436
|
[x: `uint40[${string}]`]: undefined;
|
|
@@ -465,17 +465,17 @@ declare namespace wrapName {
|
|
|
465
465
|
address?: undefined;
|
|
466
466
|
bool?: undefined;
|
|
467
467
|
bytes?: undefined;
|
|
468
|
-
|
|
469
|
-
|
|
468
|
+
bytes3?: undefined;
|
|
469
|
+
bytes10?: undefined;
|
|
470
470
|
bytes16?: undefined;
|
|
471
471
|
bytes1?: undefined;
|
|
472
|
-
|
|
472
|
+
bytes2?: undefined;
|
|
473
473
|
bytes4?: undefined;
|
|
474
474
|
bytes5?: undefined;
|
|
475
475
|
bytes6?: undefined;
|
|
476
476
|
bytes7?: undefined;
|
|
477
|
+
bytes8?: undefined;
|
|
477
478
|
bytes9?: undefined;
|
|
478
|
-
bytes10?: undefined;
|
|
479
479
|
bytes11?: undefined;
|
|
480
480
|
bytes12?: undefined;
|
|
481
481
|
bytes13?: undefined;
|
|
@@ -497,8 +497,8 @@ declare namespace wrapName {
|
|
|
497
497
|
bytes30?: undefined;
|
|
498
498
|
bytes31?: undefined;
|
|
499
499
|
bytes32?: undefined;
|
|
500
|
-
int8?: undefined;
|
|
501
500
|
int16?: undefined;
|
|
501
|
+
int8?: undefined;
|
|
502
502
|
int24?: undefined;
|
|
503
503
|
int32?: undefined;
|
|
504
504
|
int40?: undefined;
|
|
@@ -529,8 +529,8 @@ declare namespace wrapName {
|
|
|
529
529
|
int240?: undefined;
|
|
530
530
|
int248?: undefined;
|
|
531
531
|
int256?: undefined;
|
|
532
|
-
uint8?: undefined;
|
|
533
532
|
uint16?: undefined;
|
|
533
|
+
uint8?: undefined;
|
|
534
534
|
uint24?: undefined;
|
|
535
535
|
uint32?: undefined;
|
|
536
536
|
uint40?: undefined;
|
|
@@ -566,8 +566,8 @@ declare namespace wrapName {
|
|
|
566
566
|
watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
|
|
567
567
|
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}`>;
|
|
568
568
|
}, { name, newOwnerAddress, fuses, resolverAddress, }: WrapNameDataParameters<TName, GetNameType<TName>>) => {
|
|
569
|
-
to: `0x${string}`;
|
|
570
569
|
data: `0x${string}`;
|
|
570
|
+
to: `0x${string}`;
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
573
|
export default wrapName;
|
|
@@ -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,
|
|
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,mBAAmB,GAC3C,2BAA2B,GAC3B,KAAK,CAAA;IACT,0CAA0C;IAC1C,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,wBAAwB,CAAA;AAE7D,MAAM,MAAM,kBAAkB,CAC5B,KAAK,SAAS,MAAM,EACpB,MAAM,SAAS,YAAY,EAC3B,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,cAAc,SAAS,YAAY,GAAG,SAAS,IAC7C,QAAQ,CACV,sBAAsB,CAAC,KAAK,CAAC,GAC3B,0BAA0B,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,CAC/D,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAA;AAErC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6GAe1B,sBAuDF,CAAA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,iBAAe,QAAQ,CACrB,KAAK,SAAS,MAAM,EACpB,MAAM,SAAS,YAAY,EAC3B,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,cAAc,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,EAE9D,MAAM,EAAE,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAClD,EACE,IAAI,EACJ,eAAe,EACf,KAAK,EACL,eAAe,EACf,GAAG,MAAM,EACV,EAAE,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,GAC7D,OAAO,CAAC,kBAAkB,CAAC,CAa7B;kBA3Bc,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BvB,eAAe,QAAQ,CAAA"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ export { DnsDnssecVerificationFailedError, DnsInvalidAddressChecksumError, DnsIn
|
|
|
11
11
|
export { AdditionalParameterSpecifiedError, InvalidContractTypeError, RequiredParameterNotSpecifiedError, UnsupportedNameTypeError, } from './errors/general.js';
|
|
12
12
|
export { CoinFormatterNotFoundError, FunctionNotBatchableError, NoRecordsSpecifiedError, } from './errors/public.js';
|
|
13
13
|
export { FilterKeyRequiredError, InvalidFilterKeyError, InvalidOrderByError, } from './errors/subgraph.js';
|
|
14
|
-
export { CampaignReferenceTooLargeError, FusesFuseNotAllowedError, FusesInvalidFuseObjectError, FusesInvalidNamedFuseError, FusesInvalidUnnamedFuseError,
|
|
14
|
+
export { CampaignReferenceTooLargeError, FusesFuseNotAllowedError, FusesInvalidFuseObjectError, FusesInvalidNamedFuseError, FusesInvalidUnnamedFuseError, FusesOutOfRangeError, FusesRestrictionNotAllowedError, FusesValueRequiredError, InvalidEncodedLabelError, InvalidLabelhashError, NameWithEmptyLabelsError, RootNameIncludesOtherLabelsError, WrappedLabelTooLargeError, } from './errors/utils.js';
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,KAAK,gBAAgB,GACtB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACL,kBAAkB,EAClB,KAAK,kBAAkB,GACxB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,gBAAgB,EAChB,KAAK,gBAAgB,GACtB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACL,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,qBAAqB,GAC3B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,qBAAqB,GAC3B,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAC7E,OAAO,EACL,gCAAgC,EAChC,8BAA8B,EAC9B,wBAAwB,EACxB,gCAAgC,EAChC,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,iCAAiC,EACjC,wBAAwB,EACxB,kCAAkC,EAClC,wBAAwB,GACzB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,EACxB,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,oBAAoB,EACpB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,KAAK,gBAAgB,GACtB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACL,kBAAkB,EAClB,KAAK,kBAAkB,GACxB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,gBAAgB,EAChB,KAAK,gBAAgB,GACtB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACL,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,qBAAqB,GAC3B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,qBAAqB,GAC3B,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAC7E,OAAO,EACL,gCAAgC,EAChC,8BAA8B,EAC9B,wBAAwB,EACxB,gCAAgC,EAChC,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,iCAAiC,EACjC,wBAAwB,EACxB,kCAAkC,EAClC,wBAAwB,GACzB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,EACxB,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,oBAAoB,EACpB,+BAA+B,EAC/B,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,EACxB,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,mBAAmB,CAAA"}
|
|
@@ -4,15 +4,11 @@ export type DecodedContentHash = {
|
|
|
4
4
|
protocolType: ProtocolType;
|
|
5
5
|
decoded: string;
|
|
6
6
|
};
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare function encodeContenthash(text: string): {
|
|
15
|
-
encoded: string | boolean;
|
|
16
|
-
error: string | undefined;
|
|
17
|
-
};
|
|
7
|
+
export declare function decodeContentHash(encoded: Hex): DecodedContentHash | null;
|
|
8
|
+
export declare function isValidContentHash(encoded: unknown): boolean;
|
|
9
|
+
export declare function getProtocolType(encoded: string): {
|
|
10
|
+
protocolType: NonNullable<ProtocolType>;
|
|
11
|
+
decoded: string;
|
|
12
|
+
} | null;
|
|
13
|
+
export declare function encodeContentHash(text: string): Hex;
|
|
18
14
|
//# sourceMappingURL=contentHash.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentHash.d.ts","sourceRoot":"","sources":["../../../src/utils/contentHash.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contentHash.d.ts","sourceRoot":"","sources":["../../../src/utils/contentHash.ts"],"names":[],"mappings":"AAMA,OAAO,EAAS,KAAK,GAAG,EAAE,MAAM,MAAM,CAAA;AAGtC,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,MAAM,GACN,KAAK,GACL,OAAO,GACP,QAAQ,GACR,KAAK,GACL,IAAI,GACJ,IAAI,CAAA;AAER,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,YAAY,CAAA;IAC1B,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AA4CD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,GAAG,GAAG,kBAAkB,GAAG,IAAI,CAOzE;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,WAIlD;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM;;;SAK9C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAOnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encodeSetContentHash.d.ts","sourceRoot":"","sources":["../../../../src/utils/encoders/encodeSetContentHash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,GAAG,EAAE,MAAM,MAAM,CAAA;AAInD,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,EAAE,GAAG,CAAA;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAA;AAEhD,eAAO,MAAM,oBAAoB,+BAG9B,8BAA8B,KAAG,
|
|
1
|
+
{"version":3,"file":"encodeSetContentHash.d.ts","sourceRoot":"","sources":["../../../../src/utils/encoders/encodeSetContentHash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,GAAG,EAAE,MAAM,MAAM,CAAA;AAInD,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,EAAE,GAAG,CAAA;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAA;AAEhD,eAAO,MAAM,oBAAoB,+BAG9B,8BAA8B,KAAG,8BAUnC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/utils/format.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/utils/format.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,SAAU,MAAM,KAAG,MACO,CAAA"}
|