@ensnode/ensnode-sdk 0.0.0-next-20260117070300 → 0.0.0-next-20260119200329
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 +21 -608
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -346
- package/dist/index.d.ts +60 -346
- package/dist/index.js +11 -598
- package/dist/index.js.map +1 -1
- package/package.json +3 -4
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ export { ENSNamespaceId, ENSNamespaceIds, getENSRootChainId } from '@ensnode/dat
|
|
|
4
4
|
import { Address, Hex, ByteArray, Hash } from 'viem';
|
|
5
5
|
import { CoinType, EvmCoinType } from '@ensdomains/address-encoder';
|
|
6
6
|
export { CoinType, EvmCoinType } from '@ensdomains/address-encoder';
|
|
7
|
-
import { UnixTimestamp as UnixTimestamp$1, EncodedReferrer, ReferrerLeaderboardPageParams, ReferrerLeaderboardPage, ReferrerDetail, AwardedReferrerMetrics, AggregatedReferrerMetrics, ReferrerDetailRanked, ReferrerDetailUnranked, UnrankedReferrerMetrics, ReferralProgramRules } from '@namehash/ens-referrals';
|
|
8
|
-
export { EncodedReferrer, ZERO_ENCODED_REFERRER, decodeEncodedReferrer } from '@namehash/ens-referrals';
|
|
9
7
|
|
|
10
8
|
/**
|
|
11
9
|
* The ETH coinType.
|
|
@@ -3071,11 +3069,11 @@ interface RegisteredNameTokens {
|
|
|
3071
3069
|
*
|
|
3072
3070
|
* The latest Registration Lifecycle for a node referenced in `domainId`.
|
|
3073
3071
|
*/
|
|
3074
|
-
expiresAt: UnixTimestamp
|
|
3072
|
+
expiresAt: UnixTimestamp;
|
|
3075
3073
|
/**
|
|
3076
3074
|
* The {@link UnixTimestamp} of when the data used to build the {@link NameTokensResponseOk.nameTokens} was accurate as of.
|
|
3077
3075
|
*/
|
|
3078
|
-
accurateAsOf: UnixTimestamp
|
|
3076
|
+
accurateAsOf: UnixTimestamp;
|
|
3079
3077
|
}
|
|
3080
3078
|
/**
|
|
3081
3079
|
* A response when Name Tokens API can respond with requested data.
|
|
@@ -3164,6 +3162,59 @@ declare function getBasenamesSubregistryId(namespace: ENSNamespaceId): AccountId
|
|
|
3164
3162
|
*/
|
|
3165
3163
|
declare function getBasenamesSubregistryManagedName(namespaceId: ENSNamespaceId): Name;
|
|
3166
3164
|
|
|
3165
|
+
/**
|
|
3166
|
+
* Encoded Referrer
|
|
3167
|
+
*
|
|
3168
|
+
* Represents a "raw" ENS referrer value.
|
|
3169
|
+
*
|
|
3170
|
+
* Registrar controllers emit referrer data as bytes32 values. This type represents
|
|
3171
|
+
* that raw 32-byte hex string.
|
|
3172
|
+
*
|
|
3173
|
+
* @invariant Guaranteed to be a hex string representation of a 32-byte value.
|
|
3174
|
+
*/
|
|
3175
|
+
type EncodedReferrer = Hex;
|
|
3176
|
+
/**
|
|
3177
|
+
* Encoded Referrer byte offset
|
|
3178
|
+
*
|
|
3179
|
+
* The count of left-padded bytes in an {@link EncodedReferrer} value.
|
|
3180
|
+
*/
|
|
3181
|
+
declare const ENCODED_REFERRER_BYTE_OFFSET = 12;
|
|
3182
|
+
/**
|
|
3183
|
+
* Encoded Referrer byte length
|
|
3184
|
+
*
|
|
3185
|
+
* The count of bytes the {@link EncodedReferrer} value consists of.
|
|
3186
|
+
*/
|
|
3187
|
+
declare const ENCODED_REFERRER_BYTE_LENGTH = 32;
|
|
3188
|
+
/**
|
|
3189
|
+
* Expected padding for a valid encoded referrer
|
|
3190
|
+
*
|
|
3191
|
+
* Properly encoded referrers must have exactly 12 zero bytes of left padding
|
|
3192
|
+
* before the 20-byte Ethereum address.
|
|
3193
|
+
*/
|
|
3194
|
+
declare const EXPECTED_ENCODED_REFERRER_PADDING: Hex;
|
|
3195
|
+
/**
|
|
3196
|
+
* Zero Encoded Referrer
|
|
3197
|
+
*
|
|
3198
|
+
* Guaranteed to be a hex string representation of a 32-byte zero value.
|
|
3199
|
+
*/
|
|
3200
|
+
declare const ZERO_ENCODED_REFERRER: EncodedReferrer;
|
|
3201
|
+
/**
|
|
3202
|
+
* Build an {@link EncodedReferrer} value for the given {@link Address}
|
|
3203
|
+
* according to the referrer encoding with left-zero-padding.
|
|
3204
|
+
*/
|
|
3205
|
+
declare function buildEncodedReferrer(address: Address): EncodedReferrer;
|
|
3206
|
+
/**
|
|
3207
|
+
* Decode an {@link EncodedReferrer} value into a checksummed {@link Address}
|
|
3208
|
+
* according to the referrer encoding with left-zero-padding.
|
|
3209
|
+
*
|
|
3210
|
+
* @param encodedReferrer - The "raw" {@link EncodedReferrer} value to decode.
|
|
3211
|
+
* @returns The decoded referrer checksummed address.
|
|
3212
|
+
* @throws when encodedReferrer value is not represented by
|
|
3213
|
+
* {@link ENCODED_REFERRER_BYTE_LENGTH} bytes.
|
|
3214
|
+
* @throws when decodedReferrer is not a valid EVM address.
|
|
3215
|
+
*/
|
|
3216
|
+
declare function decodeEncodedReferrer(encodedReferrer: EncodedReferrer): Address;
|
|
3217
|
+
|
|
3167
3218
|
/**
|
|
3168
3219
|
* Gets the SubregistryId (an AccountId) of the Ethnames Subregistry contract (this is the
|
|
3169
3220
|
* "BaseRegistrar" contract for direct subnames of .eth) for the provided namespace.
|
|
@@ -3371,8 +3422,8 @@ interface RegistrarActionReferralAvailable {
|
|
|
3371
3422
|
/**
|
|
3372
3423
|
* Decoded Referrer
|
|
3373
3424
|
*
|
|
3374
|
-
*
|
|
3375
|
-
*
|
|
3425
|
+
* The referrer address decoded from {@link encodedReferrer} using strict
|
|
3426
|
+
* left-zero-padding validation.
|
|
3376
3427
|
*
|
|
3377
3428
|
* Identifies the interpreted address of the referrer.
|
|
3378
3429
|
* The "chainId" of this address is the same as is referenced in
|
|
@@ -3398,9 +3449,8 @@ interface RegistrarActionReferralNotApplicable {
|
|
|
3398
3449
|
/**
|
|
3399
3450
|
* Decoded Referrer
|
|
3400
3451
|
*
|
|
3401
|
-
*
|
|
3402
|
-
*
|
|
3403
|
-
*
|
|
3452
|
+
* The referrer address decoded from {@link encodedReferrer} using strict
|
|
3453
|
+
* left-zero-padding validation. Null when the registrar controller does not implement referrals.
|
|
3404
3454
|
*/
|
|
3405
3455
|
decodedReferrer: null;
|
|
3406
3456
|
}
|
|
@@ -4293,211 +4343,6 @@ interface ResolvePrimaryNamesResponse extends AcceleratableResponse, TraceableRe
|
|
|
4293
4343
|
names: MultichainPrimaryNameResolutionResult;
|
|
4294
4344
|
}
|
|
4295
4345
|
|
|
4296
|
-
/**
|
|
4297
|
-
* Request parameters for a referrer leaderboard page query.
|
|
4298
|
-
*/
|
|
4299
|
-
interface ReferrerLeaderboardPageRequest extends ReferrerLeaderboardPageParams {
|
|
4300
|
-
}
|
|
4301
|
-
/**
|
|
4302
|
-
* A status code for a referrer leaderboard page API response.
|
|
4303
|
-
*/
|
|
4304
|
-
declare const ReferrerLeaderboardPageResponseCodes: {
|
|
4305
|
-
/**
|
|
4306
|
-
* Represents that the requested referrer leaderboard page is available.
|
|
4307
|
-
*/
|
|
4308
|
-
readonly Ok: "ok";
|
|
4309
|
-
/**
|
|
4310
|
-
* Represents that the referrer leaderboard data is not available.
|
|
4311
|
-
*/
|
|
4312
|
-
readonly Error: "error";
|
|
4313
|
-
};
|
|
4314
|
-
/**
|
|
4315
|
-
* The derived string union of possible {@link ReferrerLeaderboardPageResponseCodes}.
|
|
4316
|
-
*/
|
|
4317
|
-
type ReferrerLeaderboardPageResponseCode = (typeof ReferrerLeaderboardPageResponseCodes)[keyof typeof ReferrerLeaderboardPageResponseCodes];
|
|
4318
|
-
/**
|
|
4319
|
-
* A referrer leaderboard page response when the data is available.
|
|
4320
|
-
*/
|
|
4321
|
-
type ReferrerLeaderboardPageResponseOk = {
|
|
4322
|
-
responseCode: typeof ReferrerLeaderboardPageResponseCodes.Ok;
|
|
4323
|
-
data: ReferrerLeaderboardPage;
|
|
4324
|
-
};
|
|
4325
|
-
/**
|
|
4326
|
-
* A referrer leaderboard page response when the data is not available.
|
|
4327
|
-
*/
|
|
4328
|
-
type ReferrerLeaderboardPageResponseError = {
|
|
4329
|
-
responseCode: typeof ReferrerLeaderboardPageResponseCodes.Error;
|
|
4330
|
-
error: string;
|
|
4331
|
-
errorMessage: string;
|
|
4332
|
-
};
|
|
4333
|
-
/**
|
|
4334
|
-
* A referrer leaderboard page API response.
|
|
4335
|
-
*
|
|
4336
|
-
* Use the `responseCode` field to determine the specific type interpretation
|
|
4337
|
-
* at runtime.
|
|
4338
|
-
*/
|
|
4339
|
-
type ReferrerLeaderboardPageResponse = ReferrerLeaderboardPageResponseOk | ReferrerLeaderboardPageResponseError;
|
|
4340
|
-
/**
|
|
4341
|
-
* Request parameters for referrer detail query.
|
|
4342
|
-
*/
|
|
4343
|
-
interface ReferrerDetailRequest {
|
|
4344
|
-
/** The Ethereum address of the referrer to query */
|
|
4345
|
-
referrer: Address;
|
|
4346
|
-
}
|
|
4347
|
-
/**
|
|
4348
|
-
* A status code for referrer detail API responses.
|
|
4349
|
-
*/
|
|
4350
|
-
declare const ReferrerDetailResponseCodes: {
|
|
4351
|
-
/**
|
|
4352
|
-
* Represents that the referrer detail data is available.
|
|
4353
|
-
*/
|
|
4354
|
-
readonly Ok: "ok";
|
|
4355
|
-
/**
|
|
4356
|
-
* Represents that an error occurred while fetching the data.
|
|
4357
|
-
*/
|
|
4358
|
-
readonly Error: "error";
|
|
4359
|
-
};
|
|
4360
|
-
/**
|
|
4361
|
-
* The derived string union of possible {@link ReferrerDetailResponseCodes}.
|
|
4362
|
-
*/
|
|
4363
|
-
type ReferrerDetailResponseCode = (typeof ReferrerDetailResponseCodes)[keyof typeof ReferrerDetailResponseCodes];
|
|
4364
|
-
/**
|
|
4365
|
-
* A referrer detail response when the data is available for a referrer on the leaderboard.
|
|
4366
|
-
*/
|
|
4367
|
-
type ReferrerDetailResponseOk = {
|
|
4368
|
-
responseCode: typeof ReferrerDetailResponseCodes.Ok;
|
|
4369
|
-
data: ReferrerDetail;
|
|
4370
|
-
};
|
|
4371
|
-
/**
|
|
4372
|
-
* A referrer detail response when an error occurs.
|
|
4373
|
-
*/
|
|
4374
|
-
type ReferrerDetailResponseError = {
|
|
4375
|
-
responseCode: typeof ReferrerDetailResponseCodes.Error;
|
|
4376
|
-
error: string;
|
|
4377
|
-
errorMessage: string;
|
|
4378
|
-
};
|
|
4379
|
-
/**
|
|
4380
|
-
* A referrer detail API response.
|
|
4381
|
-
*
|
|
4382
|
-
* Use the `responseCode` field to determine the specific type interpretation
|
|
4383
|
-
* at runtime.
|
|
4384
|
-
*/
|
|
4385
|
-
type ReferrerDetailResponse = ReferrerDetailResponseOk | ReferrerDetailResponseError;
|
|
4386
|
-
|
|
4387
|
-
/**
|
|
4388
|
-
* Serialized representation of {@link RevenueContribution}.
|
|
4389
|
-
*
|
|
4390
|
-
* RevenueContribution is a bigint, which is serialized as a string for JSON compatibility.
|
|
4391
|
-
*/
|
|
4392
|
-
type SerializedRevenueContribution = string;
|
|
4393
|
-
/**
|
|
4394
|
-
* Serialized representation of {@link ReferralProgramRules}.
|
|
4395
|
-
*
|
|
4396
|
-
* Note: All fields are already serializable primitives, so this type is identical to the source type.
|
|
4397
|
-
*/
|
|
4398
|
-
type SerializedReferralProgramRules = ReferralProgramRules;
|
|
4399
|
-
/**
|
|
4400
|
-
* Serialized representation of {@link AwardedReferrerMetrics}.
|
|
4401
|
-
*/
|
|
4402
|
-
interface SerializedAwardedReferrerMetrics extends Omit<AwardedReferrerMetrics, "totalRevenueContribution"> {
|
|
4403
|
-
totalRevenueContribution: SerializedRevenueContribution;
|
|
4404
|
-
}
|
|
4405
|
-
/**
|
|
4406
|
-
* Serialized representation of {@link UnrankedReferrerMetrics}.
|
|
4407
|
-
*/
|
|
4408
|
-
interface SerializedUnrankedReferrerMetrics extends Omit<UnrankedReferrerMetrics, "totalRevenueContribution"> {
|
|
4409
|
-
totalRevenueContribution: SerializedRevenueContribution;
|
|
4410
|
-
}
|
|
4411
|
-
/**
|
|
4412
|
-
* Serialized representation of {@link AggregatedReferrerMetrics}.
|
|
4413
|
-
*/
|
|
4414
|
-
interface SerializedAggregatedReferrerMetrics extends Omit<AggregatedReferrerMetrics, "grandTotalRevenueContribution"> {
|
|
4415
|
-
grandTotalRevenueContribution: SerializedRevenueContribution;
|
|
4416
|
-
}
|
|
4417
|
-
/**
|
|
4418
|
-
* Serialized representation of {@link ReferrerLeaderboardPage}.
|
|
4419
|
-
*/
|
|
4420
|
-
interface SerializedReferrerLeaderboardPage extends Omit<ReferrerLeaderboardPage, "referrers" | "aggregatedMetrics"> {
|
|
4421
|
-
referrers: SerializedAwardedReferrerMetrics[];
|
|
4422
|
-
aggregatedMetrics: SerializedAggregatedReferrerMetrics;
|
|
4423
|
-
}
|
|
4424
|
-
/**
|
|
4425
|
-
* Serialized representation of {@link ReferrerDetailRanked}.
|
|
4426
|
-
*/
|
|
4427
|
-
interface SerializedReferrerDetailRanked extends Omit<ReferrerDetailRanked, "referrer" | "aggregatedMetrics"> {
|
|
4428
|
-
referrer: SerializedAwardedReferrerMetrics;
|
|
4429
|
-
aggregatedMetrics: SerializedAggregatedReferrerMetrics;
|
|
4430
|
-
}
|
|
4431
|
-
/**
|
|
4432
|
-
* Serialized representation of {@link ReferrerDetailUnranked}.
|
|
4433
|
-
*/
|
|
4434
|
-
interface SerializedReferrerDetailUnranked extends Omit<ReferrerDetailUnranked, "referrer" | "aggregatedMetrics"> {
|
|
4435
|
-
referrer: SerializedUnrankedReferrerMetrics;
|
|
4436
|
-
aggregatedMetrics: SerializedAggregatedReferrerMetrics;
|
|
4437
|
-
}
|
|
4438
|
-
/**
|
|
4439
|
-
* Serialized representation of {@link ReferrerDetail} (union of ranked and unranked).
|
|
4440
|
-
*/
|
|
4441
|
-
type SerializedReferrerDetail = SerializedReferrerDetailRanked | SerializedReferrerDetailUnranked;
|
|
4442
|
-
/**
|
|
4443
|
-
* Serialized representation of {@link ReferrerLeaderboardPageResponseError}.
|
|
4444
|
-
*
|
|
4445
|
-
* Note: All fields are already serializable, so this type is identical to the source type.
|
|
4446
|
-
*/
|
|
4447
|
-
type SerializedReferrerLeaderboardPageResponseError = ReferrerLeaderboardPageResponseError;
|
|
4448
|
-
/**
|
|
4449
|
-
* Serialized representation of {@link ReferrerLeaderboardPageResponseOk}.
|
|
4450
|
-
*/
|
|
4451
|
-
interface SerializedReferrerLeaderboardPageResponseOk extends Omit<ReferrerLeaderboardPageResponseOk, "data"> {
|
|
4452
|
-
data: SerializedReferrerLeaderboardPage;
|
|
4453
|
-
}
|
|
4454
|
-
/**
|
|
4455
|
-
* Serialized representation of {@link ReferrerLeaderboardPageResponse}.
|
|
4456
|
-
*/
|
|
4457
|
-
type SerializedReferrerLeaderboardPageResponse = SerializedReferrerLeaderboardPageResponseOk | SerializedReferrerLeaderboardPageResponseError;
|
|
4458
|
-
/**
|
|
4459
|
-
* Serialized representation of {@link ReferrerDetailResponseError}.
|
|
4460
|
-
*
|
|
4461
|
-
* Note: All fields are already serializable, so this type is identical to the source type.
|
|
4462
|
-
*/
|
|
4463
|
-
type SerializedReferrerDetailResponseError = ReferrerDetailResponseError;
|
|
4464
|
-
/**
|
|
4465
|
-
* Serialized representation of {@link ReferrerDetailResponseOk}.
|
|
4466
|
-
*/
|
|
4467
|
-
interface SerializedReferrerDetailResponseOk extends Omit<ReferrerDetailResponseOk, "data"> {
|
|
4468
|
-
data: SerializedReferrerDetail;
|
|
4469
|
-
}
|
|
4470
|
-
/**
|
|
4471
|
-
* Serialized representation of {@link ReferrerDetailResponse}.
|
|
4472
|
-
*/
|
|
4473
|
-
type SerializedReferrerDetailResponse = SerializedReferrerDetailResponseOk | SerializedReferrerDetailResponseError;
|
|
4474
|
-
|
|
4475
|
-
/**
|
|
4476
|
-
* Deserialize a {@link ReferrerLeaderboardPageResponse} object.
|
|
4477
|
-
*
|
|
4478
|
-
* Note: This function explicitly deserializes each subobject to convert string
|
|
4479
|
-
* RevenueContribution values back to bigint, then validates using Zod schemas
|
|
4480
|
-
* to enforce invariants on the data.
|
|
4481
|
-
*/
|
|
4482
|
-
declare function deserializeReferrerLeaderboardPageResponse(maybeResponse: SerializedReferrerLeaderboardPageResponse, valueLabel?: string): ReferrerLeaderboardPageResponse;
|
|
4483
|
-
/**
|
|
4484
|
-
* Deserialize a {@link ReferrerDetailResponse} object.
|
|
4485
|
-
*
|
|
4486
|
-
* Note: This function explicitly deserializes each subobject to convert string
|
|
4487
|
-
* RevenueContribution values back to bigint, then validates using Zod schemas
|
|
4488
|
-
* to enforce invariants on the data.
|
|
4489
|
-
*/
|
|
4490
|
-
declare function deserializeReferrerDetailResponse(maybeResponse: SerializedReferrerDetailResponse, valueLabel?: string): ReferrerDetailResponse;
|
|
4491
|
-
|
|
4492
|
-
/**
|
|
4493
|
-
* Serialize a {@link ReferrerLeaderboardPageResponse} object.
|
|
4494
|
-
*/
|
|
4495
|
-
declare function serializeReferrerLeaderboardPageResponse(response: ReferrerLeaderboardPageResponse): SerializedReferrerLeaderboardPageResponse;
|
|
4496
|
-
/**
|
|
4497
|
-
* Serialize a {@link ReferrerDetailResponse} object.
|
|
4498
|
-
*/
|
|
4499
|
-
declare function serializeReferrerDetailResponse(response: ReferrerDetailResponse): SerializedReferrerDetailResponse;
|
|
4500
|
-
|
|
4501
4346
|
/**
|
|
4502
4347
|
* Configuration options for ENSNode API client
|
|
4503
4348
|
*/
|
|
@@ -4510,7 +4355,6 @@ interface ClientOptions {
|
|
|
4510
4355
|
*
|
|
4511
4356
|
* Provides access to the following ENSNode APIs:
|
|
4512
4357
|
* - Resolution API
|
|
4513
|
-
* - ENSAnalytics API
|
|
4514
4358
|
* - 🚧 Configuration API
|
|
4515
4359
|
* - 🚧 Indexing Status API
|
|
4516
4360
|
*
|
|
@@ -4677,136 +4521,6 @@ declare class ENSNodeClient {
|
|
|
4677
4521
|
* @throws if the ENSNode response breaks required invariants
|
|
4678
4522
|
*/
|
|
4679
4523
|
indexingStatus(): Promise<IndexingStatusResponse>;
|
|
4680
|
-
/**
|
|
4681
|
-
* Fetch Referrer Leaderboard Page
|
|
4682
|
-
*
|
|
4683
|
-
* Retrieves a paginated list of referrer leaderboard metrics with contribution percentages.
|
|
4684
|
-
* Each referrer's contribution is calculated as a percentage of the grand totals across all referrers.
|
|
4685
|
-
*
|
|
4686
|
-
* @param request - Pagination parameters
|
|
4687
|
-
* @param request.page - The page number to retrieve (1-indexed, default: 1)
|
|
4688
|
-
* @param request.recordsPerPage - Number of records per page (default: 25, max: 100)
|
|
4689
|
-
* @returns {ReferrerLeaderboardPageResponse}
|
|
4690
|
-
*
|
|
4691
|
-
* @throws if the ENSNode request fails
|
|
4692
|
-
* @throws if the ENSNode API returns an error response
|
|
4693
|
-
* @throws if the ENSNode response breaks required invariants
|
|
4694
|
-
*
|
|
4695
|
-
* @example
|
|
4696
|
-
* ```typescript
|
|
4697
|
-
* // Get first page with default page size (25 records)
|
|
4698
|
-
* const response = await client.getReferrerLeaderboardPage();
|
|
4699
|
-
* if (response.responseCode === ReferrerLeaderboardPageResponseCodes.Ok) {
|
|
4700
|
-
* const {
|
|
4701
|
-
* aggregatedMetrics,
|
|
4702
|
-
* referrers,
|
|
4703
|
-
* rules,
|
|
4704
|
-
* pageContext,
|
|
4705
|
-
* updatedAt
|
|
4706
|
-
* } = response.data;
|
|
4707
|
-
* console.log(aggregatedMetrics);
|
|
4708
|
-
* console.log(referrers);
|
|
4709
|
-
* console.log(rules);
|
|
4710
|
-
* console.log(updatedAt);
|
|
4711
|
-
* console.log(`Page ${pageContext.page} of ${pageContext.totalPages}`);
|
|
4712
|
-
* }
|
|
4713
|
-
* ```
|
|
4714
|
-
*
|
|
4715
|
-
* @example
|
|
4716
|
-
* ```typescript
|
|
4717
|
-
* // Get second page with 50 records per page
|
|
4718
|
-
* const response = await client.getReferrerLeaderboardPage({ page: 2, recordsPerPage: 50 });
|
|
4719
|
-
* ```
|
|
4720
|
-
*
|
|
4721
|
-
* @example
|
|
4722
|
-
* ```typescript
|
|
4723
|
-
* // Handle error response, ie. when Referrer Leaderboard is not currently available.
|
|
4724
|
-
* const response = await client.getReferrerLeaderboardPage();
|
|
4725
|
-
*
|
|
4726
|
-
* if (response.responseCode === ReferrerLeaderboardPageResponseCodes.Error) {
|
|
4727
|
-
* console.error(response.error);
|
|
4728
|
-
* console.error(response.errorMessage);
|
|
4729
|
-
* }
|
|
4730
|
-
* ```
|
|
4731
|
-
*/
|
|
4732
|
-
getReferrerLeaderboardPage(request?: ReferrerLeaderboardPageRequest): Promise<ReferrerLeaderboardPageResponse>;
|
|
4733
|
-
/**
|
|
4734
|
-
* Fetch Referrer Detail
|
|
4735
|
-
*
|
|
4736
|
-
* Retrieves detailed information about a specific referrer, whether they are on the
|
|
4737
|
-
* leaderboard or not.
|
|
4738
|
-
*
|
|
4739
|
-
* The response data is a discriminated union type with a `type` field:
|
|
4740
|
-
*
|
|
4741
|
-
* **For referrers on the leaderboard** (`ReferrerDetailRanked`):
|
|
4742
|
-
* - `type`: {@link ReferrerDetailTypeIds.Ranked}
|
|
4743
|
-
* - `referrer`: The `AwardedReferrerMetrics` from @namehash/ens-referrals
|
|
4744
|
-
* - `rules`: The referral program rules
|
|
4745
|
-
* - `aggregatedMetrics`: Aggregated metrics for all referrers on the leaderboard
|
|
4746
|
-
* - `accurateAsOf`: Unix timestamp indicating when the data was last updated
|
|
4747
|
-
*
|
|
4748
|
-
* **For referrers NOT on the leaderboard** (`ReferrerDetailUnranked`):
|
|
4749
|
-
* - `type`: {@link ReferrerDetailTypeIds.Unranked}
|
|
4750
|
-
* - `referrer`: The `UnrankedReferrerMetrics` from @namehash/ens-referrals
|
|
4751
|
-
* - `rules`: The referral program rules
|
|
4752
|
-
* - `aggregatedMetrics`: Aggregated metrics for all referrers on the leaderboard
|
|
4753
|
-
* - `accurateAsOf`: Unix timestamp indicating when the data was last updated
|
|
4754
|
-
*
|
|
4755
|
-
* @see {@link https://www.npmjs.com/package/@namehash/ens-referrals|@namehash/ens-referrals} for calculation details
|
|
4756
|
-
*
|
|
4757
|
-
* @param request The referrer address to query
|
|
4758
|
-
* @returns {ReferrerDetailResponse} Returns the referrer detail response
|
|
4759
|
-
*
|
|
4760
|
-
* @throws if the ENSNode request fails
|
|
4761
|
-
* @throws if the response data is malformed
|
|
4762
|
-
*
|
|
4763
|
-
* @example
|
|
4764
|
-
* ```typescript
|
|
4765
|
-
* // Get referrer detail for a specific address
|
|
4766
|
-
* const response = await client.getReferrerDetail({
|
|
4767
|
-
* referrer: "0x1234567890123456789012345678901234567890"
|
|
4768
|
-
* });
|
|
4769
|
-
* if (response.responseCode === ReferrerDetailResponseCodes.Ok) {
|
|
4770
|
-
* const { type, referrer, rules, aggregatedMetrics, accurateAsOf } = response.data;
|
|
4771
|
-
* console.log(type); // ReferrerDetailTypeIds.Ranked or ReferrerDetailTypeIds.Unranked
|
|
4772
|
-
* console.log(referrer);
|
|
4773
|
-
* console.log(accurateAsOf);
|
|
4774
|
-
* }
|
|
4775
|
-
* ```
|
|
4776
|
-
*
|
|
4777
|
-
* @example
|
|
4778
|
-
* ```typescript
|
|
4779
|
-
* // Use discriminated union to check if referrer is ranked
|
|
4780
|
-
* const response = await client.getReferrerDetail({
|
|
4781
|
-
* referrer: "0x1234567890123456789012345678901234567890"
|
|
4782
|
-
* });
|
|
4783
|
-
* if (response.responseCode === ReferrerDetailResponseCodes.Ok) {
|
|
4784
|
-
* if (response.data.type === ReferrerDetailTypeIds.Ranked) {
|
|
4785
|
-
* // TypeScript knows this is ReferrerDetailRanked
|
|
4786
|
-
* console.log(`Rank: ${response.data.referrer.rank}`);
|
|
4787
|
-
* console.log(`Qualified: ${response.data.referrer.isQualified}`);
|
|
4788
|
-
* console.log(`Award Pool Share: ${response.data.referrer.awardPoolShare * 100}%`);
|
|
4789
|
-
* } else {
|
|
4790
|
-
* // TypeScript knows this is ReferrerDetailUnranked
|
|
4791
|
-
* console.log("Referrer is not on the leaderboard (no referrals yet)");
|
|
4792
|
-
* }
|
|
4793
|
-
* }
|
|
4794
|
-
* ```
|
|
4795
|
-
*
|
|
4796
|
-
* @example
|
|
4797
|
-
* ```typescript
|
|
4798
|
-
* // Handle error response, ie. when Referrer Detail is not currently available.
|
|
4799
|
-
* const response = await client.getReferrerDetail({
|
|
4800
|
-
* referrer: "0x1234567890123456789012345678901234567890"
|
|
4801
|
-
* });
|
|
4802
|
-
*
|
|
4803
|
-
* if (response.responseCode === ReferrerDetailResponseCodes.Error) {
|
|
4804
|
-
* console.error(response.error);
|
|
4805
|
-
* console.error(response.errorMessage);
|
|
4806
|
-
* }
|
|
4807
|
-
* ```
|
|
4808
|
-
*/
|
|
4809
|
-
getReferrerDetail(request: ReferrerDetailRequest): Promise<ReferrerDetailResponse>;
|
|
4810
4524
|
/**
|
|
4811
4525
|
* Fetch ENSNode Registrar Actions
|
|
4812
4526
|
*
|
|
@@ -4931,4 +4645,4 @@ declare class ClientError extends Error {
|
|
|
4931
4645
|
static fromErrorResponse({ message, details }: ErrorResponse): ClientError;
|
|
4932
4646
|
}
|
|
4933
4647
|
|
|
4934
|
-
export { ADDR_REVERSE_NODE, ATTR_PROTOCOL_NAME, ATTR_PROTOCOL_STEP, ATTR_PROTOCOL_STEP_RESULT, type AcceleratableRequest, type AcceleratableResponse, type AccountId, type AccountIdString, type AssetId, type AssetIdString, type AssetNamespace, AssetNamespaces, BASENAMES_NODE, type BlockNumber, type BlockRef, type Blockrange, type Cache, type CanonicalId, type CanonicalPath, type ChainId, type ChainIdString, type ChainIndexingConfig, type ChainIndexingConfigDefinite, type ChainIndexingConfigIndefinite, type ChainIndexingConfigTypeId, ChainIndexingConfigTypeIds, type ChainIndexingStatusId, ChainIndexingStatusIds, type ChainIndexingStatusSnapshot, type ChainIndexingStatusSnapshotBackfill, type ChainIndexingStatusSnapshotCompleted, type ChainIndexingStatusSnapshotFollowing, type ChainIndexingStatusSnapshotForOmnichainIndexingStatusSnapshotBackfill, type ChainIndexingStatusSnapshotQueued, ClientError, type ClientOptions, type ConfigResponse, type CrossChainIndexingStatusSnapshot, type CrossChainIndexingStatusSnapshotOmnichain, type CrossChainIndexingStrategyId, CrossChainIndexingStrategyIds, type CurrencyAmount, type CurrencyId, CurrencyIds, type CurrencyInfo, DEFAULT_EVM_CHAIN_ID, DEFAULT_EVM_COIN_TYPE, type DNSEncodedLiteralName, type DNSEncodedName, type DNSEncodedPartiallyInterpretedName, type Datetime, type DatetimeISO8601, type DeepPartial, type DefaultableChainId, type DomainAssetId, type DomainId, type Duration, type ENSApiPublicConfig, type ENSIndexerPublicConfig, type ENSIndexerVersionInfo, ENSNodeClient, ENS_ROOT, type ENSv1DomainId, type ENSv2DomainId, ETH_COIN_TYPE, ETH_NODE, type EncodedLabelHash, type EnsRainbowClientLabelSet, type EnsRainbowServerLabelSet, type ErrorResponse, type ForwardResolutionArgs, ForwardResolutionProtocolStep, type ForwardResolutionResult, type Identity, type IndexingStatusRequest, type IndexingStatusResponse, type IndexingStatusResponseCode, IndexingStatusResponseCodes, type IndexingStatusResponseError, type IndexingStatusResponseOk, type InterpretedLabel, type InterpretedName, LINEANAMES_NODE, type Label, type LabelHash, type LabelHashPath, type LabelSetId, type LabelSetVersion, type LiteralLabel, type LiteralName, LruCache, type MultichainPrimaryNameResolutionArgs, type MultichainPrimaryNameResolutionResult, type NFTMintStatus, NFTMintStatuses, type NFTTransferEventMetadata, type NFTTransferType, NFTTransferTypes, NODE_ANY, type Name, type NameToken, type NameTokenOwnership, type NameTokenOwnershipBurned, type NameTokenOwnershipFullyOnchain, type NameTokenOwnershipNameWrapper, type NameTokenOwnershipType, NameTokenOwnershipTypes, type NameTokenOwnershipUnknown, type NameTokensRequest, type NameTokensResponse, type NameTokensResponseCode, NameTokensResponseCodes, type NameTokensResponseError, type NameTokensResponseErrorCode, NameTokensResponseErrorCodes, type NameTokensResponseErrorEnsIndexerConfigUnsupported, type NameTokensResponseErrorIndexingStatusUnsupported, type NameTokensResponseErrorNameTokensNotIndexed, type NameTokensResponseOk, type NamedIdentity, type NamedRegistrarAction, type Node, type NormalizedName, type OmnichainIndexingStatusId, OmnichainIndexingStatusIds, type OmnichainIndexingStatusSnapshot, type OmnichainIndexingStatusSnapshotBackfill, type OmnichainIndexingStatusSnapshotCompleted, type OmnichainIndexingStatusSnapshotFollowing, type OmnichainIndexingStatusSnapshotUnstarted, PROTOCOL_ATTRIBUTE_PREFIX, type PermissionsId, type PermissionsResourceId, type PermissionsUserId, PluginName, type Price, type PriceDai, type PriceEth, type PriceUsdc, RECORDS_PER_PAGE_DEFAULT, RECORDS_PER_PAGE_MAX, ROOT_NODE, ROOT_RESOURCE, type RealtimeIndexingStatusProjection, type ReferrerDetailRequest, type ReferrerDetailResponse, type ReferrerDetailResponseCode, ReferrerDetailResponseCodes, type ReferrerDetailResponseError, type ReferrerDetailResponseOk, type ReferrerLeaderboardPageRequest, type ReferrerLeaderboardPageResponse, type ReferrerLeaderboardPageResponseCode, ReferrerLeaderboardPageResponseCodes, type ReferrerLeaderboardPageResponseError, type ReferrerLeaderboardPageResponseOk, type RegisteredNameTokens, type RegistrarAction, type RegistrarActionEventId, type RegistrarActionPricing, type RegistrarActionPricingAvailable, type RegistrarActionPricingUnknown, type RegistrarActionReferral, type RegistrarActionReferralAvailable, type RegistrarActionReferralNotApplicable, type RegistrarActionType, RegistrarActionTypes, type RegistrarActionsFilter, type RegistrarActionsFilterBeginTimestamp, type RegistrarActionsFilterByDecodedReferrer, type RegistrarActionsFilterBySubregistryNode, type RegistrarActionsFilterEndTimestamp, type RegistrarActionsFilterType, RegistrarActionsFilterTypes, type RegistrarActionsFilterWithEncodedReferral, type RegistrarActionsOrder, RegistrarActionsOrders, type RegistrarActionsRequest, type RegistrarActionsResponse, type RegistrarActionsResponseCode, RegistrarActionsResponseCodes, type RegistrarActionsResponseError, type RegistrarActionsResponseOk, type RegistrationExpiryInfo, type RegistrationId, type RegistrationLifecycle, type RegistrationLifecycleStage, type RegistryId, type RenewalId, type RequestPageParams, type RequiredAndNotNull, type ResolutionStatusId, ResolutionStatusIds, type ResolvePrimaryNameRequest, type ResolvePrimaryNameResponse, type ResolvePrimaryNamesRequest, type ResolvePrimaryNamesResponse, type ResolveRecordsRequest, type ResolveRecordsResponse, type ResolvedIdentity, type ResolverId, type ResolverRecordsId, type ResolverRecordsResponse, type ResolverRecordsResponseBase, type ResolverRecordsSelection, type ResponsePageContext, type ResponsePageContextWithNoRecords, type ResponsePageContextWithRecords, type ReverseResolutionArgs, ReverseResolutionProtocolStep, type ReverseResolutionResult, type RpcUrl, SWRCache, type SWRCacheOptions, type SerializedAggregatedReferrerMetrics, type SerializedAssetId, type SerializedAwardedReferrerMetrics, type SerializedChainIndexingStatusSnapshot, type SerializedChainIndexingStatusSnapshotBackfill, type SerializedChainIndexingStatusSnapshotCompleted, type SerializedChainIndexingStatusSnapshotFollowing, type SerializedChainIndexingStatusSnapshotQueued, type SerializedConfigResponse, type SerializedCrossChainIndexingStatusSnapshot, type SerializedCrossChainIndexingStatusSnapshotOmnichain, type SerializedCurrencyAmount, type SerializedCurrentIndexingProjectionOmnichain, type SerializedDomainAssetId, type SerializedENSApiPublicConfig, type SerializedENSIndexerPublicConfig, type SerializedENSIndexerVersionInfo, type SerializedIndexedChainIds, type SerializedIndexingStatusResponse, type SerializedIndexingStatusResponseError, type SerializedIndexingStatusResponseOk, type SerializedNameToken, type SerializedNameTokensResponse, type SerializedNameTokensResponseError, type SerializedNameTokensResponseOk, type SerializedNamedRegistrarAction, type SerializedOmnichainIndexingStatusSnapshot, type SerializedOmnichainIndexingStatusSnapshotBackfill, type SerializedOmnichainIndexingStatusSnapshotCompleted, type SerializedOmnichainIndexingStatusSnapshotFollowing, type SerializedOmnichainIndexingStatusSnapshotUnstarted, type SerializedPrice, type SerializedPriceDai, type SerializedPriceEth, type SerializedPriceUsdc, type SerializedRealtimeIndexingStatusProjection, type SerializedReferralProgramRules, type SerializedReferrerDetail, type SerializedReferrerDetailRanked, type SerializedReferrerDetailResponse, type SerializedReferrerDetailResponseError, type SerializedReferrerDetailResponseOk, type SerializedReferrerDetailUnranked, type SerializedReferrerLeaderboardPage, type SerializedReferrerLeaderboardPageResponse, type SerializedReferrerLeaderboardPageResponseError, type SerializedReferrerLeaderboardPageResponseOk, type SerializedRegisteredNameTokens, type SerializedRegistrarAction, type SerializedRegistrarActionPricing, type SerializedRegistrarActionPricingAvailable, type SerializedRegistrarActionPricingUnknown, type SerializedRegistrarActionsResponse, type SerializedRegistrarActionsResponseError, type SerializedRegistrarActionsResponseOk, type SerializedRevenueContribution, type SerializedTokenId, type SerializedUnrankedReferrerMetrics, type SubgraphInterpretedLabel, type SubgraphInterpretedName, type Subregistry, type TheGraphCannotFallbackReason, TheGraphCannotFallbackReasonSchema, type TheGraphFallback, TheGraphFallbackSchema, type TokenId, TraceableENSProtocol, type TraceableRequest, type TraceableResponse, type TracingNode, type TracingSpan, type TracingTrace, TtlCache, type UnixTimestamp, type UnknownIdentity, type UnnamedIdentity, type UnresolvedIdentity, type UrlString, accountIdEqual, addDuration, addPrices, addrReverseLabel, asLowerCaseAddress, beautifyName, bigIntToNumber, bigintToCoinType, buildAssetId, buildEnsRainbowClientLabelSet, buildLabelSetId, buildLabelSetVersion, buildPageContext, buildUnresolvedIdentity, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotBackfill, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotCompleted, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotFollowing, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotUnstarted, coinTypeReverseLabel, coinTypeToEvmChainId, createIndexingConfig, createRealtimeIndexingStatusProjection, decodeDNSEncodedLiteralName, decodeDNSEncodedName, deserializeAssetId, deserializeBlockNumber, deserializeBlockRef, deserializeBlockrange, deserializeChainId, deserializeChainIndexingStatusSnapshot, deserializeConfigResponse, deserializeCrossChainIndexingStatusSnapshot, deserializeDatetime, deserializeDuration, deserializeENSApiPublicConfig, deserializeENSIndexerPublicConfig, deserializeErrorResponse, deserializeIndexingStatusResponse, deserializeOmnichainIndexingStatusSnapshot, deserializeRealtimeIndexingStatusProjection, deserializeReferrerDetailResponse, deserializeReferrerLeaderboardPageResponse, deserializeRegistrarActionsResponse, deserializeUnixTimestamp, deserializeUrl, deserializedNameTokensResponse, durationBetween, encodeLabelHash, encodedLabelToLabelhash, evmChainIdToCoinType, formatAccountId, formatAssetId, formatNFTTransferEventMetadata, getBasenamesSubregistryId, getBasenamesSubregistryManagedName, getCanonicalId, getCurrencyInfo, getDatasourceContract, getENSv1Registry, getENSv2RootRegistry, getENSv2RootRegistryId, getEthnamesSubregistryId, getEthnamesSubregistryManagedName, getLatestIndexedBlockRef, getLineanamesSubregistryId, getLineanamesSubregistryManagedName, getNFTTransferType, getNameHierarchy, getNameTokenOwnership, getNameWrapperAccounts, getOmnichainIndexingCursor, getOmnichainIndexingStatus, getParentNameFQDN, getResolvePrimaryNameChainIdParam, getTimestampForHighestOmnichainKnownBlock, getTimestampForLowestOmnichainStartBlock, hasNullByte, interpretAddress, interpretAddressRecordValue, interpretNameRecordValue, interpretTextRecordKey, interpretTextRecordValue, interpretTokenIdAsLabelHash, interpretTokenIdAsNode, interpretedLabelsToInterpretedName, interpretedNameToInterpretedLabels, interpretedNameToLabelHashPath, isENSv1Registry, isENSv2RootRegistry, isEncodedLabelHash, isHttpProtocol, isInterpetedLabel, isInterpretedName, isLabelHash, isNormalizedLabel, isNormalizedName, isPccFuseSet, isPriceCurrencyEqual, isPriceEqual, isRegistrarActionPricingAvailable, isRegistrarActionReferralAvailable, isRegistrationExpired, isRegistrationFullyExpired, isRegistrationInGracePeriod, isResolvedIdentity, isSelectionEmpty, isSubgraphCompatible, isWebSocketProtocol, labelHashToBytes, labelhashLiteralLabel, literalLabelToInterpretedLabel, literalLabelsToInterpretedName, literalLabelsToLiteralName, makeContractMatcher, makeENSApiPublicConfigSchema, makeENSv1DomainId, makeENSv2DomainId, makeLatestRegistrationId, makeLatestRenewalId, makePermissionsId, makePermissionsResourceId, makePermissionsUserId, makeRegistrationId, makeRegistryId, makeRenewalId, makeResolverId, makeResolverRecordsId, makeSubdomainNode, maybeGetDatasourceContract, nameTokensPrerequisites, parseAccountId, parseAssetId, parseNonNegativeInteger, parseReverseName, priceDai, priceEth, priceUsdc, registrarActionsFilter, registrarActionsPrerequisites, reverseName, serializeAssetId, serializeChainId, serializeChainIndexingSnapshots, serializeConfigResponse, serializeCrossChainIndexingStatusSnapshotOmnichain, serializeDatetime, serializeDomainAssetId, serializeENSApiPublicConfig, serializeENSIndexerPublicConfig, serializeIndexedChainIds, serializeIndexingStatusResponse, serializeNameToken, serializeNameTokensResponse, serializeNamedRegistrarAction, serializeOmnichainIndexingStatusSnapshot, serializePrice, serializePriceEth, serializeRealtimeIndexingStatusProjection, serializeReferrerDetailResponse, serializeReferrerLeaderboardPageResponse, serializeRegisteredNameTokens, serializeRegistrarAction, serializeRegistrarActionPricing, serializeRegistrarActionsResponse, serializeUrl, sortChainStatusesByStartBlockAsc, stripNullBytes, translateDefaultableChainIdToChainId, uint256ToHex32, uniq, validateSupportedLabelSetAndVersion };
|
|
4648
|
+
export { ADDR_REVERSE_NODE, ATTR_PROTOCOL_NAME, ATTR_PROTOCOL_STEP, ATTR_PROTOCOL_STEP_RESULT, type AcceleratableRequest, type AcceleratableResponse, type AccountId, type AccountIdString, type AssetId, type AssetIdString, type AssetNamespace, AssetNamespaces, BASENAMES_NODE, type BlockNumber, type BlockRef, type Blockrange, type Cache, type CanonicalId, type CanonicalPath, type ChainId, type ChainIdString, type ChainIndexingConfig, type ChainIndexingConfigDefinite, type ChainIndexingConfigIndefinite, type ChainIndexingConfigTypeId, ChainIndexingConfigTypeIds, type ChainIndexingStatusId, ChainIndexingStatusIds, type ChainIndexingStatusSnapshot, type ChainIndexingStatusSnapshotBackfill, type ChainIndexingStatusSnapshotCompleted, type ChainIndexingStatusSnapshotFollowing, type ChainIndexingStatusSnapshotForOmnichainIndexingStatusSnapshotBackfill, type ChainIndexingStatusSnapshotQueued, ClientError, type ClientOptions, type ConfigResponse, type CrossChainIndexingStatusSnapshot, type CrossChainIndexingStatusSnapshotOmnichain, type CrossChainIndexingStrategyId, CrossChainIndexingStrategyIds, type CurrencyAmount, type CurrencyId, CurrencyIds, type CurrencyInfo, DEFAULT_EVM_CHAIN_ID, DEFAULT_EVM_COIN_TYPE, type DNSEncodedLiteralName, type DNSEncodedName, type DNSEncodedPartiallyInterpretedName, type Datetime, type DatetimeISO8601, type DeepPartial, type DefaultableChainId, type DomainAssetId, type DomainId, type Duration, ENCODED_REFERRER_BYTE_LENGTH, ENCODED_REFERRER_BYTE_OFFSET, type ENSApiPublicConfig, type ENSIndexerPublicConfig, type ENSIndexerVersionInfo, ENSNodeClient, ENS_ROOT, type ENSv1DomainId, type ENSv2DomainId, ETH_COIN_TYPE, ETH_NODE, EXPECTED_ENCODED_REFERRER_PADDING, type EncodedLabelHash, type EncodedReferrer, type EnsRainbowClientLabelSet, type EnsRainbowServerLabelSet, type ErrorResponse, type ForwardResolutionArgs, ForwardResolutionProtocolStep, type ForwardResolutionResult, type Identity, type IndexingStatusRequest, type IndexingStatusResponse, type IndexingStatusResponseCode, IndexingStatusResponseCodes, type IndexingStatusResponseError, type IndexingStatusResponseOk, type InterpretedLabel, type InterpretedName, LINEANAMES_NODE, type Label, type LabelHash, type LabelHashPath, type LabelSetId, type LabelSetVersion, type LiteralLabel, type LiteralName, LruCache, type MultichainPrimaryNameResolutionArgs, type MultichainPrimaryNameResolutionResult, type NFTMintStatus, NFTMintStatuses, type NFTTransferEventMetadata, type NFTTransferType, NFTTransferTypes, NODE_ANY, type Name, type NameToken, type NameTokenOwnership, type NameTokenOwnershipBurned, type NameTokenOwnershipFullyOnchain, type NameTokenOwnershipNameWrapper, type NameTokenOwnershipType, NameTokenOwnershipTypes, type NameTokenOwnershipUnknown, type NameTokensRequest, type NameTokensResponse, type NameTokensResponseCode, NameTokensResponseCodes, type NameTokensResponseError, type NameTokensResponseErrorCode, NameTokensResponseErrorCodes, type NameTokensResponseErrorEnsIndexerConfigUnsupported, type NameTokensResponseErrorIndexingStatusUnsupported, type NameTokensResponseErrorNameTokensNotIndexed, type NameTokensResponseOk, type NamedIdentity, type NamedRegistrarAction, type Node, type NormalizedName, type OmnichainIndexingStatusId, OmnichainIndexingStatusIds, type OmnichainIndexingStatusSnapshot, type OmnichainIndexingStatusSnapshotBackfill, type OmnichainIndexingStatusSnapshotCompleted, type OmnichainIndexingStatusSnapshotFollowing, type OmnichainIndexingStatusSnapshotUnstarted, PROTOCOL_ATTRIBUTE_PREFIX, type PermissionsId, type PermissionsResourceId, type PermissionsUserId, PluginName, type Price, type PriceDai, type PriceEth, type PriceUsdc, RECORDS_PER_PAGE_DEFAULT, RECORDS_PER_PAGE_MAX, ROOT_NODE, ROOT_RESOURCE, type RealtimeIndexingStatusProjection, type RegisteredNameTokens, type RegistrarAction, type RegistrarActionEventId, type RegistrarActionPricing, type RegistrarActionPricingAvailable, type RegistrarActionPricingUnknown, type RegistrarActionReferral, type RegistrarActionReferralAvailable, type RegistrarActionReferralNotApplicable, type RegistrarActionType, RegistrarActionTypes, type RegistrarActionsFilter, type RegistrarActionsFilterBeginTimestamp, type RegistrarActionsFilterByDecodedReferrer, type RegistrarActionsFilterBySubregistryNode, type RegistrarActionsFilterEndTimestamp, type RegistrarActionsFilterType, RegistrarActionsFilterTypes, type RegistrarActionsFilterWithEncodedReferral, type RegistrarActionsOrder, RegistrarActionsOrders, type RegistrarActionsRequest, type RegistrarActionsResponse, type RegistrarActionsResponseCode, RegistrarActionsResponseCodes, type RegistrarActionsResponseError, type RegistrarActionsResponseOk, type RegistrationExpiryInfo, type RegistrationId, type RegistrationLifecycle, type RegistrationLifecycleStage, type RegistryId, type RenewalId, type RequestPageParams, type RequiredAndNotNull, type ResolutionStatusId, ResolutionStatusIds, type ResolvePrimaryNameRequest, type ResolvePrimaryNameResponse, type ResolvePrimaryNamesRequest, type ResolvePrimaryNamesResponse, type ResolveRecordsRequest, type ResolveRecordsResponse, type ResolvedIdentity, type ResolverId, type ResolverRecordsId, type ResolverRecordsResponse, type ResolverRecordsResponseBase, type ResolverRecordsSelection, type ResponsePageContext, type ResponsePageContextWithNoRecords, type ResponsePageContextWithRecords, type ReverseResolutionArgs, ReverseResolutionProtocolStep, type ReverseResolutionResult, type RpcUrl, SWRCache, type SWRCacheOptions, type SerializedAssetId, type SerializedChainIndexingStatusSnapshot, type SerializedChainIndexingStatusSnapshotBackfill, type SerializedChainIndexingStatusSnapshotCompleted, type SerializedChainIndexingStatusSnapshotFollowing, type SerializedChainIndexingStatusSnapshotQueued, type SerializedConfigResponse, type SerializedCrossChainIndexingStatusSnapshot, type SerializedCrossChainIndexingStatusSnapshotOmnichain, type SerializedCurrencyAmount, type SerializedCurrentIndexingProjectionOmnichain, type SerializedDomainAssetId, type SerializedENSApiPublicConfig, type SerializedENSIndexerPublicConfig, type SerializedENSIndexerVersionInfo, type SerializedIndexedChainIds, type SerializedIndexingStatusResponse, type SerializedIndexingStatusResponseError, type SerializedIndexingStatusResponseOk, type SerializedNameToken, type SerializedNameTokensResponse, type SerializedNameTokensResponseError, type SerializedNameTokensResponseOk, type SerializedNamedRegistrarAction, type SerializedOmnichainIndexingStatusSnapshot, type SerializedOmnichainIndexingStatusSnapshotBackfill, type SerializedOmnichainIndexingStatusSnapshotCompleted, type SerializedOmnichainIndexingStatusSnapshotFollowing, type SerializedOmnichainIndexingStatusSnapshotUnstarted, type SerializedPrice, type SerializedPriceDai, type SerializedPriceEth, type SerializedPriceUsdc, type SerializedRealtimeIndexingStatusProjection, type SerializedRegisteredNameTokens, type SerializedRegistrarAction, type SerializedRegistrarActionPricing, type SerializedRegistrarActionPricingAvailable, type SerializedRegistrarActionPricingUnknown, type SerializedRegistrarActionsResponse, type SerializedRegistrarActionsResponseError, type SerializedRegistrarActionsResponseOk, type SerializedTokenId, type SubgraphInterpretedLabel, type SubgraphInterpretedName, type Subregistry, type TheGraphCannotFallbackReason, TheGraphCannotFallbackReasonSchema, type TheGraphFallback, TheGraphFallbackSchema, type TokenId, TraceableENSProtocol, type TraceableRequest, type TraceableResponse, type TracingNode, type TracingSpan, type TracingTrace, TtlCache, type UnixTimestamp, type UnknownIdentity, type UnnamedIdentity, type UnresolvedIdentity, type UrlString, ZERO_ENCODED_REFERRER, accountIdEqual, addDuration, addPrices, addrReverseLabel, asLowerCaseAddress, beautifyName, bigIntToNumber, bigintToCoinType, buildAssetId, buildEncodedReferrer, buildEnsRainbowClientLabelSet, buildLabelSetId, buildLabelSetVersion, buildPageContext, buildUnresolvedIdentity, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotBackfill, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotCompleted, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotFollowing, checkChainIndexingStatusSnapshotsForOmnichainStatusSnapshotUnstarted, coinTypeReverseLabel, coinTypeToEvmChainId, createIndexingConfig, createRealtimeIndexingStatusProjection, decodeDNSEncodedLiteralName, decodeDNSEncodedName, decodeEncodedReferrer, deserializeAssetId, deserializeBlockNumber, deserializeBlockRef, deserializeBlockrange, deserializeChainId, deserializeChainIndexingStatusSnapshot, deserializeConfigResponse, deserializeCrossChainIndexingStatusSnapshot, deserializeDatetime, deserializeDuration, deserializeENSApiPublicConfig, deserializeENSIndexerPublicConfig, deserializeErrorResponse, deserializeIndexingStatusResponse, deserializeOmnichainIndexingStatusSnapshot, deserializeRealtimeIndexingStatusProjection, deserializeRegistrarActionsResponse, deserializeUnixTimestamp, deserializeUrl, deserializedNameTokensResponse, durationBetween, encodeLabelHash, encodedLabelToLabelhash, evmChainIdToCoinType, formatAccountId, formatAssetId, formatNFTTransferEventMetadata, getBasenamesSubregistryId, getBasenamesSubregistryManagedName, getCanonicalId, getCurrencyInfo, getDatasourceContract, getENSv1Registry, getENSv2RootRegistry, getENSv2RootRegistryId, getEthnamesSubregistryId, getEthnamesSubregistryManagedName, getLatestIndexedBlockRef, getLineanamesSubregistryId, getLineanamesSubregistryManagedName, getNFTTransferType, getNameHierarchy, getNameTokenOwnership, getNameWrapperAccounts, getOmnichainIndexingCursor, getOmnichainIndexingStatus, getParentNameFQDN, getResolvePrimaryNameChainIdParam, getTimestampForHighestOmnichainKnownBlock, getTimestampForLowestOmnichainStartBlock, hasNullByte, interpretAddress, interpretAddressRecordValue, interpretNameRecordValue, interpretTextRecordKey, interpretTextRecordValue, interpretTokenIdAsLabelHash, interpretTokenIdAsNode, interpretedLabelsToInterpretedName, interpretedNameToInterpretedLabels, interpretedNameToLabelHashPath, isENSv1Registry, isENSv2RootRegistry, isEncodedLabelHash, isHttpProtocol, isInterpetedLabel, isInterpretedName, isLabelHash, isNormalizedLabel, isNormalizedName, isPccFuseSet, isPriceCurrencyEqual, isPriceEqual, isRegistrarActionPricingAvailable, isRegistrarActionReferralAvailable, isRegistrationExpired, isRegistrationFullyExpired, isRegistrationInGracePeriod, isResolvedIdentity, isSelectionEmpty, isSubgraphCompatible, isWebSocketProtocol, labelHashToBytes, labelhashLiteralLabel, literalLabelToInterpretedLabel, literalLabelsToInterpretedName, literalLabelsToLiteralName, makeContractMatcher, makeENSApiPublicConfigSchema, makeENSv1DomainId, makeENSv2DomainId, makeLatestRegistrationId, makeLatestRenewalId, makePermissionsId, makePermissionsResourceId, makePermissionsUserId, makeRegistrationId, makeRegistryId, makeRenewalId, makeResolverId, makeResolverRecordsId, makeSubdomainNode, maybeGetDatasourceContract, nameTokensPrerequisites, parseAccountId, parseAssetId, parseNonNegativeInteger, parseReverseName, priceDai, priceEth, priceUsdc, registrarActionsFilter, registrarActionsPrerequisites, reverseName, serializeAssetId, serializeChainId, serializeChainIndexingSnapshots, serializeConfigResponse, serializeCrossChainIndexingStatusSnapshotOmnichain, serializeDatetime, serializeDomainAssetId, serializeENSApiPublicConfig, serializeENSIndexerPublicConfig, serializeIndexedChainIds, serializeIndexingStatusResponse, serializeNameToken, serializeNameTokensResponse, serializeNamedRegistrarAction, serializeOmnichainIndexingStatusSnapshot, serializePrice, serializePriceEth, serializeRealtimeIndexingStatusProjection, serializeRegisteredNameTokens, serializeRegistrarAction, serializeRegistrarActionPricing, serializeRegistrarActionsResponse, serializeUrl, sortChainStatusesByStartBlockAsc, stripNullBytes, translateDefaultableChainIdToChainId, uint256ToHex32, uniq, validateSupportedLabelSetAndVersion };
|