@ensnode/ensnode-sdk 1.15.2 → 1.17.0
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/index.cjs +19 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +19 -6
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +1223 -63
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +4 -4
- package/dist/internal.d.ts +4 -4
- package/dist/internal.js +1223 -63
- package/dist/internal.js.map +1 -1
- package/dist/{namespace-specific-value-BBZET9O0.d.cts → namespace-specific-value-C9XIUp1F.d.cts} +15 -2
- package/dist/{namespace-specific-value-BBZET9O0.d.ts → namespace-specific-value-C9XIUp1F.d.ts} +15 -2
- package/package.json +5 -5
package/dist/{namespace-specific-value-BBZET9O0.d.cts → namespace-specific-value-C9XIUp1F.d.cts}
RENAMED
|
@@ -196,7 +196,8 @@ declare enum PluginName {
|
|
|
196
196
|
TokenScope = "tokenscope",
|
|
197
197
|
/** @deprecated use {@link PluginName.Unigraph} instead */
|
|
198
198
|
ENSv2 = "ensv2",
|
|
199
|
-
Unigraph = "unigraph"
|
|
199
|
+
Unigraph = "unigraph",
|
|
200
|
+
EFP = "efp"
|
|
200
201
|
}
|
|
201
202
|
/**
|
|
202
203
|
* Version info about ENSIndexer and its dependencies.
|
|
@@ -1201,6 +1202,18 @@ declare function interpretAddressRecordValue(value: Hex): Hex | null;
|
|
|
1201
1202
|
* @returns The interpreted text string or null if ignored.
|
|
1202
1203
|
*/
|
|
1203
1204
|
declare function interpretTextRecordKey(key: string): string | null;
|
|
1205
|
+
/**
|
|
1206
|
+
* Interprets an EFP account-metadata key and returns null if the key should be rejected.
|
|
1207
|
+
*
|
|
1208
|
+
* The key is a free-form on-chain string used as a primary-key component. A NULL byte cannot be
|
|
1209
|
+
* stored in a Postgres `text` column, so a key containing one is rejected (the metadata entry is
|
|
1210
|
+
* skipped on write and never matches on read) rather than silently stripped — stripping would
|
|
1211
|
+
* collapse distinct on-chain keys onto one stored key.
|
|
1212
|
+
*
|
|
1213
|
+
* @param key - The EFP account-metadata key to interpret.
|
|
1214
|
+
* @returns The key as-is, or null if it must be rejected.
|
|
1215
|
+
*/
|
|
1216
|
+
declare function interpretMetadataKey(key: string): string | null;
|
|
1204
1217
|
/**
|
|
1205
1218
|
* Interprets a text record value string and returns null if the value is interpreted as a deletion.
|
|
1206
1219
|
*
|
|
@@ -1254,4 +1267,4 @@ type NamespaceSpecificValue<T> = {
|
|
|
1254
1267
|
*/
|
|
1255
1268
|
declare function getNamespaceSpecificValue<T>(namespace: ENSNamespaceId, value: NamespaceSpecificValue<T>): T;
|
|
1256
1269
|
|
|
1257
|
-
export { type SerializedCurrencyAmount as $, type EncodedReferrer as A, type BlockNumber as B, type CurrencyAmount as C, type Datetime as D, type EnsRainbowPublicConfig as E, type EnsRainbowVersionInfo as F, type RegistrarActionEventId as G, type RegistrarActionPricing as H, type RegistrarActionPricingAvailable as I, type RegistrarActionPricingUnknown as J, type RegistrarActionReferral as K, type LabelSetId as L, type RegistrarActionReferralAvailable as M, type NamespaceSpecificValue as N, type RegistrarActionReferralNotApplicable as O, PluginName as P, type RegistrarActionType as Q, type RegistrarAction as R, type SerializedRegistrarAction as S, type TheGraphFallback as T, type Unvalidated as U, RegistrarActionTypes as V, type RegistrationLifecycle as W, type RegistrationLifecycleStage as X, type RequiredAndNotNull as Y, type RequiredAndNull as Z, type RpcUrl as _, type EnsIndexerPublicConfig as a, type SerializedRegistrarActionPricing as a0, type SerializedRegistrarActionPricingAvailable as a1, type SerializedRegistrarActionPricingUnknown as a2, type Subregistry as a3, type TheGraphCannotFallbackReason as a4, TheGraphCannotFallbackReasonSchema as a5, TheGraphFallbackSchema as a6, ZERO_ENCODED_REFERRER as a7, addPrices as a8, buildEncodedReferrer as a9,
|
|
1270
|
+
export { type SerializedCurrencyAmount as $, type EncodedReferrer as A, type BlockNumber as B, type CurrencyAmount as C, type Datetime as D, type EnsRainbowPublicConfig as E, type EnsRainbowVersionInfo as F, type RegistrarActionEventId as G, type RegistrarActionPricing as H, type RegistrarActionPricingAvailable as I, type RegistrarActionPricingUnknown as J, type RegistrarActionReferral as K, type LabelSetId as L, type RegistrarActionReferralAvailable as M, type NamespaceSpecificValue as N, type RegistrarActionReferralNotApplicable as O, PluginName as P, type RegistrarActionType as Q, type RegistrarAction as R, type SerializedRegistrarAction as S, type TheGraphFallback as T, type Unvalidated as U, RegistrarActionTypes as V, type RegistrationLifecycle as W, type RegistrationLifecycleStage as X, type RequiredAndNotNull as Y, type RequiredAndNull as Z, type RpcUrl as _, type EnsIndexerPublicConfig as a, type SerializedRegistrarActionPricing as a0, type SerializedRegistrarActionPricingAvailable as a1, type SerializedRegistrarActionPricingUnknown as a2, type Subregistry as a3, type TheGraphCannotFallbackReason as a4, TheGraphCannotFallbackReasonSchema as a5, TheGraphFallbackSchema as a6, ZERO_ENCODED_REFERRER as a7, addPrices as a8, buildEncodedReferrer as a9, priceEnsTokens as aA, priceEth as aB, priceUsdc as aC, scalePrice as aD, serializeRegistrarAction as aE, serializeRegistrarActionPricing as aF, subtractPrice as aG, decodeEncodedReferrer as aa, getCurrencyInfo as ab, getNamespaceSpecificValue as ac, interpretAddress as ad, interpretAddressRecordValue as ae, interpretContenthashValue as af, interpretDnszonehashValue as ag, interpretMetadataKey as ah, interpretNameRecordValue as ai, interpretPubkeyValue as aj, interpretTextRecordKey as ak, interpretTextRecordValue as al, isPriceCurrencyEqual as am, isPriceEqual as an, isRegistrarActionPricingAvailable as ao, isRegistrarActionReferralAvailable as ap, makeENSApiPublicConfigSchema as aq, makeEnsApiPublicConfigSchema as ar, makeSerializedEnsApiPublicConfigSchema as as, maxPrice as at, minPrice as au, parseDai as av, parseEnsTokens as aw, parseEth as ax, parseUsdc as ay, priceDai as az, type EnsIndexerVersionInfo as b, type BlockRef as c, type LabelSetVersion as d, type EnsRainbowClientLabelSet as e, type EnsRainbowServerLabelSet as f, type PriceDai as g, type PriceEnsTokens as h, type PriceEth as i, type PriceUsdc as j, type Price as k, type SerializedPrice as l, makeErrorResponseSchema as m, type SerializedPriceDai as n, type SerializedPriceEnsTokens as o, type SerializedPriceEth as p, type SerializedPriceUsdc as q, type CurrencyId as r, CurrencyIds as s, type CurrencyInfo as t, type DeepPartial as u, ENCODED_REFERRER_BYTE_LENGTH as v, ENCODED_REFERRER_BYTE_OFFSET as w, type ENSIndexerPublicConfig as x, type ENSIndexerVersionInfo as y, EXPECTED_ENCODED_REFERRER_PADDING as z };
|
package/dist/{namespace-specific-value-BBZET9O0.d.ts → namespace-specific-value-C9XIUp1F.d.ts}
RENAMED
|
@@ -196,7 +196,8 @@ declare enum PluginName {
|
|
|
196
196
|
TokenScope = "tokenscope",
|
|
197
197
|
/** @deprecated use {@link PluginName.Unigraph} instead */
|
|
198
198
|
ENSv2 = "ensv2",
|
|
199
|
-
Unigraph = "unigraph"
|
|
199
|
+
Unigraph = "unigraph",
|
|
200
|
+
EFP = "efp"
|
|
200
201
|
}
|
|
201
202
|
/**
|
|
202
203
|
* Version info about ENSIndexer and its dependencies.
|
|
@@ -1201,6 +1202,18 @@ declare function interpretAddressRecordValue(value: Hex): Hex | null;
|
|
|
1201
1202
|
* @returns The interpreted text string or null if ignored.
|
|
1202
1203
|
*/
|
|
1203
1204
|
declare function interpretTextRecordKey(key: string): string | null;
|
|
1205
|
+
/**
|
|
1206
|
+
* Interprets an EFP account-metadata key and returns null if the key should be rejected.
|
|
1207
|
+
*
|
|
1208
|
+
* The key is a free-form on-chain string used as a primary-key component. A NULL byte cannot be
|
|
1209
|
+
* stored in a Postgres `text` column, so a key containing one is rejected (the metadata entry is
|
|
1210
|
+
* skipped on write and never matches on read) rather than silently stripped — stripping would
|
|
1211
|
+
* collapse distinct on-chain keys onto one stored key.
|
|
1212
|
+
*
|
|
1213
|
+
* @param key - The EFP account-metadata key to interpret.
|
|
1214
|
+
* @returns The key as-is, or null if it must be rejected.
|
|
1215
|
+
*/
|
|
1216
|
+
declare function interpretMetadataKey(key: string): string | null;
|
|
1204
1217
|
/**
|
|
1205
1218
|
* Interprets a text record value string and returns null if the value is interpreted as a deletion.
|
|
1206
1219
|
*
|
|
@@ -1254,4 +1267,4 @@ type NamespaceSpecificValue<T> = {
|
|
|
1254
1267
|
*/
|
|
1255
1268
|
declare function getNamespaceSpecificValue<T>(namespace: ENSNamespaceId, value: NamespaceSpecificValue<T>): T;
|
|
1256
1269
|
|
|
1257
|
-
export { type SerializedCurrencyAmount as $, type EncodedReferrer as A, type BlockNumber as B, type CurrencyAmount as C, type Datetime as D, type EnsRainbowPublicConfig as E, type EnsRainbowVersionInfo as F, type RegistrarActionEventId as G, type RegistrarActionPricing as H, type RegistrarActionPricingAvailable as I, type RegistrarActionPricingUnknown as J, type RegistrarActionReferral as K, type LabelSetId as L, type RegistrarActionReferralAvailable as M, type NamespaceSpecificValue as N, type RegistrarActionReferralNotApplicable as O, PluginName as P, type RegistrarActionType as Q, type RegistrarAction as R, type SerializedRegistrarAction as S, type TheGraphFallback as T, type Unvalidated as U, RegistrarActionTypes as V, type RegistrationLifecycle as W, type RegistrationLifecycleStage as X, type RequiredAndNotNull as Y, type RequiredAndNull as Z, type RpcUrl as _, type EnsIndexerPublicConfig as a, type SerializedRegistrarActionPricing as a0, type SerializedRegistrarActionPricingAvailable as a1, type SerializedRegistrarActionPricingUnknown as a2, type Subregistry as a3, type TheGraphCannotFallbackReason as a4, TheGraphCannotFallbackReasonSchema as a5, TheGraphFallbackSchema as a6, ZERO_ENCODED_REFERRER as a7, addPrices as a8, buildEncodedReferrer as a9,
|
|
1270
|
+
export { type SerializedCurrencyAmount as $, type EncodedReferrer as A, type BlockNumber as B, type CurrencyAmount as C, type Datetime as D, type EnsRainbowPublicConfig as E, type EnsRainbowVersionInfo as F, type RegistrarActionEventId as G, type RegistrarActionPricing as H, type RegistrarActionPricingAvailable as I, type RegistrarActionPricingUnknown as J, type RegistrarActionReferral as K, type LabelSetId as L, type RegistrarActionReferralAvailable as M, type NamespaceSpecificValue as N, type RegistrarActionReferralNotApplicable as O, PluginName as P, type RegistrarActionType as Q, type RegistrarAction as R, type SerializedRegistrarAction as S, type TheGraphFallback as T, type Unvalidated as U, RegistrarActionTypes as V, type RegistrationLifecycle as W, type RegistrationLifecycleStage as X, type RequiredAndNotNull as Y, type RequiredAndNull as Z, type RpcUrl as _, type EnsIndexerPublicConfig as a, type SerializedRegistrarActionPricing as a0, type SerializedRegistrarActionPricingAvailable as a1, type SerializedRegistrarActionPricingUnknown as a2, type Subregistry as a3, type TheGraphCannotFallbackReason as a4, TheGraphCannotFallbackReasonSchema as a5, TheGraphFallbackSchema as a6, ZERO_ENCODED_REFERRER as a7, addPrices as a8, buildEncodedReferrer as a9, priceEnsTokens as aA, priceEth as aB, priceUsdc as aC, scalePrice as aD, serializeRegistrarAction as aE, serializeRegistrarActionPricing as aF, subtractPrice as aG, decodeEncodedReferrer as aa, getCurrencyInfo as ab, getNamespaceSpecificValue as ac, interpretAddress as ad, interpretAddressRecordValue as ae, interpretContenthashValue as af, interpretDnszonehashValue as ag, interpretMetadataKey as ah, interpretNameRecordValue as ai, interpretPubkeyValue as aj, interpretTextRecordKey as ak, interpretTextRecordValue as al, isPriceCurrencyEqual as am, isPriceEqual as an, isRegistrarActionPricingAvailable as ao, isRegistrarActionReferralAvailable as ap, makeENSApiPublicConfigSchema as aq, makeEnsApiPublicConfigSchema as ar, makeSerializedEnsApiPublicConfigSchema as as, maxPrice as at, minPrice as au, parseDai as av, parseEnsTokens as aw, parseEth as ax, parseUsdc as ay, priceDai as az, type EnsIndexerVersionInfo as b, type BlockRef as c, type LabelSetVersion as d, type EnsRainbowClientLabelSet as e, type EnsRainbowServerLabelSet as f, type PriceDai as g, type PriceEnsTokens as h, type PriceEth as i, type PriceUsdc as j, type Price as k, type SerializedPrice as l, makeErrorResponseSchema as m, type SerializedPriceDai as n, type SerializedPriceEnsTokens as o, type SerializedPriceEth as p, type SerializedPriceUsdc as q, type CurrencyId as r, CurrencyIds as s, type CurrencyInfo as t, type DeepPartial as u, ENCODED_REFERRER_BYTE_LENGTH as v, ENCODED_REFERRER_BYTE_OFFSET as w, type ENSIndexerPublicConfig as x, type ENSIndexerVersionInfo as y, EXPECTED_ENCODED_REFERRER_PADDING as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ensnode/ensnode-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A utility library for interacting with ENSNode and ENS data",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
"typescript": "^5.7.3",
|
|
53
53
|
"viem": "^2.50.3",
|
|
54
54
|
"vitest": "^4.1.0",
|
|
55
|
-
"@ensnode/
|
|
56
|
-
"@ensnode/
|
|
55
|
+
"@ensnode/shared-configs": "1.17.0",
|
|
56
|
+
"@ensnode/integration-test-env": "1.17.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@ensdomains/address-encoder": "^1.1.2",
|
|
60
60
|
"caip": "1.1.1",
|
|
61
61
|
"date-fns": "4.1.0",
|
|
62
62
|
"zod": "^4.3.6",
|
|
63
|
-
"
|
|
64
|
-
"
|
|
63
|
+
"enssdk": "1.17.0",
|
|
64
|
+
"@ensnode/datasources": "1.17.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"prepublish": "tsup",
|