enssdk 1.15.0 → 1.15.2
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/LICENSE +1 -1
- package/README.md +9 -4
- package/dist/index.d.ts +49 -80
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -1
- package/dist/omnigraph/index.d.ts +1226 -49
- package/dist/omnigraph/index.js +1418 -65
- package/dist/omnigraph/index.js.map +1 -1
- package/dist/{evm-Dd4Y60SN.d.ts → shared-CZeZrvuq.d.ts} +150 -3
- package/package.json +3 -3
- package/src/omnigraph/generated/schema.graphql +576 -21
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
import { Hex as Hex$1, Address as Address$1 } from 'viem';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Base58Check-encoded Bitcoin address (SLIP-44 coin type 0).
|
|
5
|
+
*/
|
|
6
|
+
type BitcoinAddress = string;
|
|
7
|
+
/**
|
|
8
|
+
* Base58Check-encoded Litecoin address (SLIP-44 coin type 2).
|
|
9
|
+
*/
|
|
10
|
+
type LitecoinAddress = string;
|
|
11
|
+
/**
|
|
12
|
+
* Base58Check-encoded Dogecoin address (SLIP-44 coin type 3).
|
|
13
|
+
*/
|
|
14
|
+
type DogecoinAddress = string;
|
|
15
|
+
/**
|
|
16
|
+
* Base58Check-encoded Monacoin address (SLIP-44 coin type 22).
|
|
17
|
+
*/
|
|
18
|
+
type MonacoinAddress = string;
|
|
19
|
+
/**
|
|
20
|
+
* EIP-55 checksummed Rootstock (RBTC) address (SLIP-44 coin type 137).
|
|
21
|
+
*/
|
|
22
|
+
type RootstockAddress = string;
|
|
23
|
+
/**
|
|
24
|
+
* Base58Check-encoded Ripple (XRP) address (SLIP-44 coin type 144).
|
|
25
|
+
*/
|
|
26
|
+
type RippleAddress = string;
|
|
27
|
+
/**
|
|
28
|
+
* CashAddr-encoded Bitcoin Cash address (SLIP-44 coin type 145).
|
|
29
|
+
*/
|
|
30
|
+
type BitcoinCashAddress = string;
|
|
31
|
+
/**
|
|
32
|
+
* Bech32-encoded Binance Chain (BNB) address (SLIP-44 coin type 714).
|
|
33
|
+
*/
|
|
34
|
+
type BinanceAddress = string;
|
|
35
|
+
/**
|
|
36
|
+
* Base58-encoded Solana address (SLIP-44 coin type 501).
|
|
37
|
+
*/
|
|
38
|
+
type SolanaAddress = string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* A contact email address normalized by trimming and validated as a well-formed email.
|
|
42
|
+
*
|
|
43
|
+
* Values are validated with the same guarantees as Zod's `z.email()` (after trim).
|
|
44
|
+
*
|
|
45
|
+
* @see https://zod.dev/api?id=emails#emails
|
|
46
|
+
*/
|
|
47
|
+
type Email = string;
|
|
48
|
+
|
|
3
49
|
/**
|
|
4
50
|
* A hash value that uniquely identifies a single ENS name.
|
|
5
51
|
* Result of `namehash` function as specified in ENSIP-1.
|
|
@@ -338,9 +384,27 @@ type ENSv2DomainId = string & {
|
|
|
338
384
|
__brand: "ENSv2DomainId";
|
|
339
385
|
};
|
|
340
386
|
/**
|
|
341
|
-
*
|
|
387
|
+
* An ID that uniquely identifies a resolvable-but-unindexed Domain — one that the indexer has no
|
|
388
|
+
* row for, but which is nonetheless resolvable because an ancestor in its namegraph path has an
|
|
389
|
+
* ENSIP-10 wildcard (`IExtendedResolver`) Resolver (e.g. off-chain / CCIP-Read names, unindexed
|
|
390
|
+
* 3DNS names, wildcard subnames).
|
|
391
|
+
*
|
|
392
|
+
* Keyed by (registryId, node) — the Registry that manages the ancestor Domain bearing the wildcard
|
|
393
|
+
* Resolver, and the namehash of the (unindexed) name. This is globally unique by construction: were
|
|
394
|
+
* an indexed Domain to exist for this (registry, node), the namegraph walk would have matched it
|
|
395
|
+
* exactly and never minted an UnindexedDomainId.
|
|
396
|
+
*
|
|
397
|
+
* @dev formatted with an `unindexed-` prefix (see `makeUnindexedDomainId`) to unambiguously
|
|
398
|
+
* disambiguate from an {@link ENSv1DomainId}, which shares the same `${registryId}-${node}` tail.
|
|
399
|
+
* @dev see packages/enssdk/src/lib/ids.ts for context
|
|
400
|
+
*/
|
|
401
|
+
type UnindexedDomainId = string & {
|
|
402
|
+
__brand: "UnindexedDomainId";
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* A DomainId is one of ENSv1DomainId, ENSv2DomainId, or UnindexedDomainId.
|
|
342
406
|
*/
|
|
343
|
-
type DomainId = ENSv1DomainId | ENSv2DomainId;
|
|
407
|
+
type DomainId = ENSv1DomainId | ENSv2DomainId | UnindexedDomainId;
|
|
344
408
|
/**
|
|
345
409
|
* An ID that uniquely identifies a Permissions entity.
|
|
346
410
|
*
|
|
@@ -497,4 +561,87 @@ interface AssetId {
|
|
|
497
561
|
tokenId: TokenId;
|
|
498
562
|
}
|
|
499
563
|
|
|
500
|
-
|
|
564
|
+
/**
|
|
565
|
+
* ABI content type per ENSIP-4.
|
|
566
|
+
*
|
|
567
|
+
* Single-bit values (1=JSON, 2=zlib-JSON, 4=CBOR, 8=URI) identify a stored ABI encoding.
|
|
568
|
+
* `setABI` requires a power-of-2 value.
|
|
569
|
+
*
|
|
570
|
+
* Bitmask unions of those bits are used when reading via `ABI(node, contentTypes)`; the
|
|
571
|
+
* resolver returns the first stored ABI whose bit is present in the mask (lowest bit first).
|
|
572
|
+
*
|
|
573
|
+
* @see https://github.com/ensdomains/ens-contracts/blob/91c966febd7b55494269df830fc6775f040b927b/contracts/resolvers/profiles/ABIResolver.sol
|
|
574
|
+
*/
|
|
575
|
+
type ContentType = bigint;
|
|
576
|
+
/**
|
|
577
|
+
* ERC-165 4-byte interface selector.
|
|
578
|
+
*
|
|
579
|
+
* @see https://github.com/ensdomains/ens-contracts/blob/91c966febd7b55494269df830fc6775f040b927b/contracts/resolvers/profiles/InterfaceResolver.sol
|
|
580
|
+
*/
|
|
581
|
+
type InterfaceId = Hex;
|
|
582
|
+
/**
|
|
583
|
+
* IVersionableResolver record version. Bumped by `VersionChanged`, which invalidates all prior
|
|
584
|
+
* records for the node.
|
|
585
|
+
*
|
|
586
|
+
* @see https://github.com/ensdomains/ens-contracts/blob/91c966febd7b55494269df830fc6775f040b927b/contracts/resolvers/profiles/IVersionableResolver.sol
|
|
587
|
+
*/
|
|
588
|
+
type RecordVersion = bigint;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Unix timestamp value
|
|
592
|
+
*
|
|
593
|
+
* Represents the number of seconds that have elapsed
|
|
594
|
+
* since January 1, 1970 (midnight UTC/GMT).
|
|
595
|
+
*
|
|
596
|
+
* Guaranteed to be an integer. May be zero or negative to represent a time at or
|
|
597
|
+
* before Jan 1, 1970.
|
|
598
|
+
*/
|
|
599
|
+
type UnixTimestamp = number;
|
|
600
|
+
/**
|
|
601
|
+
* Duration
|
|
602
|
+
*
|
|
603
|
+
* Representing a duration in seconds.
|
|
604
|
+
*
|
|
605
|
+
* Guaranteed to be a non-negative integer.
|
|
606
|
+
*/
|
|
607
|
+
type Duration = number;
|
|
608
|
+
/**
|
|
609
|
+
* Serialized representation of {@link ChainId}.
|
|
610
|
+
**/
|
|
611
|
+
type ChainIdString = string;
|
|
612
|
+
/**
|
|
613
|
+
* Datetime value following the ISO 8601 standard.
|
|
614
|
+
*
|
|
615
|
+
* @see https://www.iso.org/iso-8601-date-and-time-format.html
|
|
616
|
+
*/
|
|
617
|
+
type DatetimeISO8601 = string;
|
|
618
|
+
/**
|
|
619
|
+
* Serialized representation of a {@link URL}.
|
|
620
|
+
*/
|
|
621
|
+
type UrlString = string;
|
|
622
|
+
/**
|
|
623
|
+
* Any JSON-serializable value.
|
|
624
|
+
*/
|
|
625
|
+
type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
626
|
+
[key: string]: JsonValue;
|
|
627
|
+
};
|
|
628
|
+
/**
|
|
629
|
+
* String representation of {@link AccountId}.
|
|
630
|
+
*
|
|
631
|
+
* Formatted as a fully lowercase CAIP-10 AccountId.
|
|
632
|
+
*
|
|
633
|
+
* @see https://chainagnostic.org/CAIPs/caip-10
|
|
634
|
+
*/
|
|
635
|
+
type AccountIdString = string;
|
|
636
|
+
/**
|
|
637
|
+
* String representation of {@link AssetId}.
|
|
638
|
+
*
|
|
639
|
+
* Formatted as a fully lowercase CAIP-19 AssetId.
|
|
640
|
+
*
|
|
641
|
+
* @see https://chainagnostic.org/CAIPs/caip-19
|
|
642
|
+
* @example "eip155:1/erc721:0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85/0xaf2caa1c2ca1d027f1ac823b529d0a67cd144264b2789fa2ea4d63a67c7103cc"
|
|
643
|
+
* for vitalik.eth in the eth base registrar on mainnet.
|
|
644
|
+
*/
|
|
645
|
+
type AssetIdString = string;
|
|
646
|
+
|
|
647
|
+
export { type Email as $, type Address as A, type BeautifiedLabel as B, type ChainId as C, type DNSEncodedLiteralName as D, type ENSv1RegistryId as E, type AssetNamespace as F, AssetNamespaces as G, type BinanceAddress as H, type InterpretedLabel as I, type BitcoinAddress as J, type BitcoinCashAddress as K, type LiteralLabel as L, type CanonicalPath as M, type NormalizedAddress as N, type ChainIdString as O, type PermissionsId as P, type ContentType as Q, type RegistrationId as R, type StorageId as S, type TokenId as T, type UnindexedDomainId as U, type DNSEncodedPartiallyInterpretedName as V, type DatetimeISO8601 as W, type DefaultableChainId as X, type DogecoinAddress as Y, type Duration as Z, type DurationBigInt as _, type InterpretedName as a, type Hex as a0, type JsonValue as a1, type LitecoinAddress as a2, type MonacoinAddress as a3, type RecordVersion as a4, type RippleAddress as a5, type RootstockAddress as a6, type SolanaAddress as a7, type SubgraphInterpretedLabel as a8, type SubgraphInterpretedName as a9, type UnixTimestamp as aa, type UnixTimestampBigInt as ab, type UrlString as ac, type Wei as ad, type BeautifiedName as b, type AccountId as c, type AccountIdString as d, type AssetId as e, type AssetIdString as f, type Node as g, type DNSEncodedName as h, type Name as i, type ENSv2RegistryId as j, type ENSv1DomainId as k, type ENSv1VirtualRegistryId as l, type ENSv2DomainId as m, type PermissionsResourceId as n, type PermissionsUserId as o, type DomainId as p, type RenewalId as q, type ResolverId as r, type ResolverRecordsId as s, type LabelHash as t, type RegistryId as u, type InterfaceId as v, type Label as w, type LiteralName as x, type LabelHashPath as y, type EncodedLabelHash as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "enssdk",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The foundational ENS development library",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"tsup": "^8.3.6",
|
|
56
56
|
"typescript": "^5.7.3",
|
|
57
57
|
"viem": "^2.50.3",
|
|
58
|
-
"vitest": "^4.0
|
|
59
|
-
"@ensnode/shared-configs": "1.15.
|
|
58
|
+
"vitest": "^4.1.0",
|
|
59
|
+
"@ensnode/shared-configs": "1.15.2"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"prepublish": "tsup",
|