@ensnode/ensnode-sdk 0.0.0-next-20260610144612 → 0.0.0-next-20260612123740
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/internal.cjs +149 -17
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +149 -17
- package/dist/internal.js.map +1 -1
- package/package.json +5 -5
package/dist/internal.d.cts
CHANGED
|
@@ -3897,11 +3897,11 @@ declare const makeDefaultableChainIdStringSchema: (valueLabel?: string) => z.Zod
|
|
|
3897
3897
|
/**
|
|
3898
3898
|
* Parses {@link CoinType}.
|
|
3899
3899
|
*/
|
|
3900
|
-
declare const makeCoinTypeSchema: (valueLabel?: string) => z.ZodPipe<z.ZodNumber, z.ZodTransform<0 | 2 | 3 | 4 | 22 | 7 | 5 | 6 | 20 | 14 | 2147492101 | 60 |
|
|
3900
|
+
declare const makeCoinTypeSchema: (valueLabel?: string) => z.ZodPipe<z.ZodNumber, z.ZodTransform<0 | 2 | 3 | 4 | 22 | 7 | 42 | 5 | 6 | 20 | 14 | 2147492101 | 60 | 43 | 55 | 57 | 61 | 74 | 77 | 105 | 111 | 118 | 121 | 128 | 133 | 134 | 135 | 136 | 137 | 141 | 144 | 145 | 148 | 153 | 156 | 165 | 175 | 178 | 192 | 194 | 195 | 204 | 235 | 236 | 242 | 246 | 283 | 291 | 301 | 304 | 308 | 309 | 313 | 326 | 330 | 354 | 360 | 367 | 397 | 415 | 425 | 434 | 457 | 459 | 461 | 472 | 489 | 500 | 501 | 508 | 535 | 539 | 566 | 568 | 569 | 570 | 571 | 573 | 574 | 576 | 589 | 592 | 700 | 714 | 784 | 818 | 820 | 825 | 888 | 889 | 904 | 931 | 999 | 1001 | 1007 | 1023 | 1024 | 1237 | 1729 | 1815 | 1991 | 2301 | 2303 | 2305 | 2718 | 3030 | 4218 | 5353 | 5757 | 6060 | 8444 | 8964 | 9000 | 9004 | 9797 | 16754 | 19167 | 52752 | 99999 | 5655640 | 5718350 | 5741564 | 2147483648 | 2147483658 | 2147483673 | 2147483704 | 2147483708 | 2147483709 | 2147483736 | 2147483747 | 2147483748 | 2147483756 | 2147483785 | 2147483817 | 2147483894 | 2147483898 | 2147483936 | 2147483972 | 2147484009 | 2147484468 | 2147484736 | 2147488648 | 2147523445 | 2147525809 | 2147525868 | 2147526762 | 2147542792 | 2148018000 | 2155261425, number>>;
|
|
3901
3901
|
/**
|
|
3902
3902
|
* Parses a serialized representation of {@link CoinType}.
|
|
3903
3903
|
*/
|
|
3904
|
-
declare const makeCoinTypeStringSchema: (valueLabel?: string) => z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodCoercedNumber<string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<0 | 2 | 3 | 4 | 22 | 7 | 5 | 6 | 20 | 14 | 2147492101 | 60 |
|
|
3904
|
+
declare const makeCoinTypeStringSchema: (valueLabel?: string) => z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodCoercedNumber<string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<0 | 2 | 3 | 4 | 22 | 7 | 42 | 5 | 6 | 20 | 14 | 2147492101 | 60 | 43 | 55 | 57 | 61 | 74 | 77 | 105 | 111 | 118 | 121 | 128 | 133 | 134 | 135 | 136 | 137 | 141 | 144 | 145 | 148 | 153 | 156 | 165 | 175 | 178 | 192 | 194 | 195 | 204 | 235 | 236 | 242 | 246 | 283 | 291 | 301 | 304 | 308 | 309 | 313 | 326 | 330 | 354 | 360 | 367 | 397 | 415 | 425 | 434 | 457 | 459 | 461 | 472 | 489 | 500 | 501 | 508 | 535 | 539 | 566 | 568 | 569 | 570 | 571 | 573 | 574 | 576 | 589 | 592 | 700 | 714 | 784 | 818 | 820 | 825 | 888 | 889 | 904 | 931 | 999 | 1001 | 1007 | 1023 | 1024 | 1237 | 1729 | 1815 | 1991 | 2301 | 2303 | 2305 | 2718 | 3030 | 4218 | 5353 | 5757 | 6060 | 8444 | 8964 | 9000 | 9004 | 9797 | 16754 | 19167 | 52752 | 99999 | 5655640 | 5718350 | 5741564 | 2147483648 | 2147483658 | 2147483673 | 2147483704 | 2147483708 | 2147483709 | 2147483736 | 2147483747 | 2147483748 | 2147483756 | 2147483785 | 2147483817 | 2147483894 | 2147483898 | 2147483936 | 2147483972 | 2147484009 | 2147484468 | 2147484736 | 2147488648 | 2147523445 | 2147525809 | 2147525868 | 2147526762 | 2147542792 | 2148018000 | 2155261425, number>>>;
|
|
3905
3905
|
/**
|
|
3906
3906
|
* Parses a string into a validated {@link Email} (trimmed).
|
|
3907
3907
|
*/
|
package/dist/internal.d.ts
CHANGED
|
@@ -3897,11 +3897,11 @@ declare const makeDefaultableChainIdStringSchema: (valueLabel?: string) => z.Zod
|
|
|
3897
3897
|
/**
|
|
3898
3898
|
* Parses {@link CoinType}.
|
|
3899
3899
|
*/
|
|
3900
|
-
declare const makeCoinTypeSchema: (valueLabel?: string) => z.ZodPipe<z.ZodNumber, z.ZodTransform<0 | 2 | 3 | 4 | 22 | 7 | 5 | 6 | 20 | 14 | 2147492101 | 60 |
|
|
3900
|
+
declare const makeCoinTypeSchema: (valueLabel?: string) => z.ZodPipe<z.ZodNumber, z.ZodTransform<0 | 2 | 3 | 4 | 22 | 7 | 42 | 5 | 6 | 20 | 14 | 2147492101 | 60 | 43 | 55 | 57 | 61 | 74 | 77 | 105 | 111 | 118 | 121 | 128 | 133 | 134 | 135 | 136 | 137 | 141 | 144 | 145 | 148 | 153 | 156 | 165 | 175 | 178 | 192 | 194 | 195 | 204 | 235 | 236 | 242 | 246 | 283 | 291 | 301 | 304 | 308 | 309 | 313 | 326 | 330 | 354 | 360 | 367 | 397 | 415 | 425 | 434 | 457 | 459 | 461 | 472 | 489 | 500 | 501 | 508 | 535 | 539 | 566 | 568 | 569 | 570 | 571 | 573 | 574 | 576 | 589 | 592 | 700 | 714 | 784 | 818 | 820 | 825 | 888 | 889 | 904 | 931 | 999 | 1001 | 1007 | 1023 | 1024 | 1237 | 1729 | 1815 | 1991 | 2301 | 2303 | 2305 | 2718 | 3030 | 4218 | 5353 | 5757 | 6060 | 8444 | 8964 | 9000 | 9004 | 9797 | 16754 | 19167 | 52752 | 99999 | 5655640 | 5718350 | 5741564 | 2147483648 | 2147483658 | 2147483673 | 2147483704 | 2147483708 | 2147483709 | 2147483736 | 2147483747 | 2147483748 | 2147483756 | 2147483785 | 2147483817 | 2147483894 | 2147483898 | 2147483936 | 2147483972 | 2147484009 | 2147484468 | 2147484736 | 2147488648 | 2147523445 | 2147525809 | 2147525868 | 2147526762 | 2147542792 | 2148018000 | 2155261425, number>>;
|
|
3901
3901
|
/**
|
|
3902
3902
|
* Parses a serialized representation of {@link CoinType}.
|
|
3903
3903
|
*/
|
|
3904
|
-
declare const makeCoinTypeStringSchema: (valueLabel?: string) => z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodCoercedNumber<string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<0 | 2 | 3 | 4 | 22 | 7 | 5 | 6 | 20 | 14 | 2147492101 | 60 |
|
|
3904
|
+
declare const makeCoinTypeStringSchema: (valueLabel?: string) => z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodCoercedNumber<string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<0 | 2 | 3 | 4 | 22 | 7 | 42 | 5 | 6 | 20 | 14 | 2147492101 | 60 | 43 | 55 | 57 | 61 | 74 | 77 | 105 | 111 | 118 | 121 | 128 | 133 | 134 | 135 | 136 | 137 | 141 | 144 | 145 | 148 | 153 | 156 | 165 | 175 | 178 | 192 | 194 | 195 | 204 | 235 | 236 | 242 | 246 | 283 | 291 | 301 | 304 | 308 | 309 | 313 | 326 | 330 | 354 | 360 | 367 | 397 | 415 | 425 | 434 | 457 | 459 | 461 | 472 | 489 | 500 | 501 | 508 | 535 | 539 | 566 | 568 | 569 | 570 | 571 | 573 | 574 | 576 | 589 | 592 | 700 | 714 | 784 | 818 | 820 | 825 | 888 | 889 | 904 | 931 | 999 | 1001 | 1007 | 1023 | 1024 | 1237 | 1729 | 1815 | 1991 | 2301 | 2303 | 2305 | 2718 | 3030 | 4218 | 5353 | 5757 | 6060 | 8444 | 8964 | 9000 | 9004 | 9797 | 16754 | 19167 | 52752 | 99999 | 5655640 | 5718350 | 5741564 | 2147483648 | 2147483658 | 2147483673 | 2147483704 | 2147483708 | 2147483709 | 2147483736 | 2147483747 | 2147483748 | 2147483756 | 2147483785 | 2147483817 | 2147483894 | 2147483898 | 2147483936 | 2147483972 | 2147484009 | 2147484468 | 2147484736 | 2147488648 | 2147523445 | 2147525809 | 2147525868 | 2147526762 | 2147542792 | 2148018000 | 2155261425, number>>>;
|
|
3905
3905
|
/**
|
|
3906
3906
|
* Parses a string into a validated {@link Email} (trimmed).
|
|
3907
3907
|
*/
|
package/dist/internal.js
CHANGED
|
@@ -2028,6 +2028,78 @@ var fixtures = {
|
|
|
2028
2028
|
rawAddresses,
|
|
2029
2029
|
textRecords: testEthTextRecords
|
|
2030
2030
|
};
|
|
2031
|
+
var contenthashFixtures = {
|
|
2032
|
+
ipfs: "0xe3010170122029f2d17be6139079dc48696d1f582a8530eb9805b561eda517e22a892c7e3f1f",
|
|
2033
|
+
swarm: "0xe40101fa011b20d1de9994b4d039f6548d191eb26786769f580809256b4685ef316805265ea162",
|
|
2034
|
+
ipns: "0xe50101720024080112205cbd1cc86ac20d6640795809c2a185bb2504538a2de8076da5a6971b8acb4715",
|
|
2035
|
+
onion: "0xbc037a716b746c776934666563766f367269",
|
|
2036
|
+
onion3: "0xbd037035336c663537716f7679757677736336786e72707079706c79337674716d376c3670636f626b6d797173696f6679657a6e667535757164",
|
|
2037
|
+
skynet: "0x90b2c60508004007fd43b74149b31aacbbf2784e874d09b086bed15fd54cacff7120cce95372",
|
|
2038
|
+
arweave: "0x90b2ca05cacdf63edf2e0bb4eb5711dd38b0723aca5f3c4ab62ceeb7c1110740833d4894"
|
|
2039
|
+
};
|
|
2040
|
+
var additionallyRegisteredNames = [
|
|
2041
|
+
{
|
|
2042
|
+
type: "ENSv2",
|
|
2043
|
+
name: "contenthash.eth",
|
|
2044
|
+
label: "contenthash",
|
|
2045
|
+
records: {},
|
|
2046
|
+
subnames: [
|
|
2047
|
+
{
|
|
2048
|
+
label: "ipfs",
|
|
2049
|
+
name: "ipfs.contenthash.eth",
|
|
2050
|
+
records: { contenthash: contenthashFixtures.ipfs }
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
label: "swarm",
|
|
2054
|
+
name: "swarm.contenthash.eth",
|
|
2055
|
+
records: { contenthash: contenthashFixtures.swarm }
|
|
2056
|
+
},
|
|
2057
|
+
{
|
|
2058
|
+
label: "ipns",
|
|
2059
|
+
name: "ipns.contenthash.eth",
|
|
2060
|
+
records: { contenthash: contenthashFixtures.ipns }
|
|
2061
|
+
},
|
|
2062
|
+
{
|
|
2063
|
+
label: "onion",
|
|
2064
|
+
name: "onion.contenthash.eth",
|
|
2065
|
+
records: { contenthash: contenthashFixtures.onion }
|
|
2066
|
+
},
|
|
2067
|
+
{
|
|
2068
|
+
label: "onion3",
|
|
2069
|
+
name: "onion3.contenthash.eth",
|
|
2070
|
+
records: { contenthash: contenthashFixtures.onion3 }
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
label: "skynet",
|
|
2074
|
+
name: "skynet.contenthash.eth",
|
|
2075
|
+
records: { contenthash: contenthashFixtures.skynet }
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
label: "arweave",
|
|
2079
|
+
name: "arweave.contenthash.eth",
|
|
2080
|
+
records: { contenthash: contenthashFixtures.arweave }
|
|
2081
|
+
}
|
|
2082
|
+
]
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
type: "ENSv1",
|
|
2086
|
+
name: "legacy-v1-wrapped.eth",
|
|
2087
|
+
label: "legacy-v1-wrapped",
|
|
2088
|
+
wrapped: true
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
type: "ENSv1",
|
|
2092
|
+
name: "legacy-v1-unwrapped.eth",
|
|
2093
|
+
label: "legacy-v1-unwrapped",
|
|
2094
|
+
wrapped: false
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
type: "ENSv2",
|
|
2098
|
+
name: "emptyrecords.eth",
|
|
2099
|
+
label: "emptyrecords",
|
|
2100
|
+
records: { contenthash: "0x" }
|
|
2101
|
+
}
|
|
2102
|
+
];
|
|
2031
2103
|
|
|
2032
2104
|
// src/omnigraph-api/example-queries.ts
|
|
2033
2105
|
var SEPOLIA_V2_V2_ETH_REGISTRY = getDatasourceContract(
|
|
@@ -2054,6 +2126,7 @@ var DEVNET_NAME_WITH_OWNED_RESOLVER = asInterpretedName("example.eth");
|
|
|
2054
2126
|
var SEPOLIA_V2_NAME = asInterpretedName("roppp.eth");
|
|
2055
2127
|
var VITALIK_NAME = asInterpretedName("vitalik.eth");
|
|
2056
2128
|
var GREG_NAME = asInterpretedName("gregskril.eth");
|
|
2129
|
+
var GREG_ADDRESS = toNormalizedAddress4("0x179a862703a4adfb29896552df9e307980d19285");
|
|
2057
2130
|
var OFFCHAIN_NAME = asInterpretedName("patricio.onpoap.eth");
|
|
2058
2131
|
var MAINNET_PUBLIC_RESOLVER = getDatasourceContract(
|
|
2059
2132
|
ENSNamespaceIds3.Mainnet,
|
|
@@ -2090,7 +2163,7 @@ var GRAPHQL_API_EXAMPLE_QUERIES = [
|
|
|
2090
2163
|
name { interpreted beautified }
|
|
2091
2164
|
resolve {
|
|
2092
2165
|
# If the account has a primary name on Ethereum (mainnet),
|
|
2093
|
-
# forward resolve the interpreted ENS profile of that name in the same query
|
|
2166
|
+
# forward resolve the interpreted ENS profile of that name in the same query!
|
|
2094
2167
|
profile {
|
|
2095
2168
|
description
|
|
2096
2169
|
avatar { httpUrl }
|
|
@@ -2323,6 +2396,49 @@ query DomainProfile($name: InterpretedName!) {
|
|
|
2323
2396
|
}
|
|
2324
2397
|
}
|
|
2325
2398
|
}
|
|
2399
|
+
}`,
|
|
2400
|
+
variables: { default: { name: GREG_NAME } }
|
|
2401
|
+
},
|
|
2402
|
+
{
|
|
2403
|
+
id: "domain-profile-and-records",
|
|
2404
|
+
query: `
|
|
2405
|
+
query DomainProfileAndRecords($name: InterpretedName!) {
|
|
2406
|
+
domain(by: { name: $name }) {
|
|
2407
|
+
resolve {
|
|
2408
|
+
profile {
|
|
2409
|
+
avatar {
|
|
2410
|
+
httpUrl
|
|
2411
|
+
}
|
|
2412
|
+
addresses {
|
|
2413
|
+
ethereum
|
|
2414
|
+
solana
|
|
2415
|
+
}
|
|
2416
|
+
socials {
|
|
2417
|
+
github {
|
|
2418
|
+
handle
|
|
2419
|
+
httpUrl
|
|
2420
|
+
}
|
|
2421
|
+
twitter {
|
|
2422
|
+
handle
|
|
2423
|
+
httpUrl
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
website {
|
|
2427
|
+
httpUrl
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
records {
|
|
2431
|
+
addresses(coinTypes: [60, 501]) {
|
|
2432
|
+
coinType
|
|
2433
|
+
address
|
|
2434
|
+
}
|
|
2435
|
+
texts(keys: ["avatar", "com.twitter", "com.github", "url"]) {
|
|
2436
|
+
key
|
|
2437
|
+
value
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2326
2442
|
}`,
|
|
2327
2443
|
variables: { default: { name: GREG_NAME } }
|
|
2328
2444
|
},
|
|
@@ -2485,9 +2601,34 @@ query AccountDomains(
|
|
|
2485
2601
|
// Account Primary Names
|
|
2486
2602
|
/////////////////////////
|
|
2487
2603
|
{
|
|
2488
|
-
id: "account-primary-
|
|
2604
|
+
id: "account-primary-names",
|
|
2489
2605
|
query: `
|
|
2490
|
-
query
|
|
2606
|
+
query AccountPrimaryNames($address: Address!) {
|
|
2607
|
+
account(by: { address: $address }) {
|
|
2608
|
+
address
|
|
2609
|
+
resolve {
|
|
2610
|
+
onePrimaryName: primaryName(by: { chainName: OPTIMISM }) {
|
|
2611
|
+
chainName
|
|
2612
|
+
name { interpreted beautified }
|
|
2613
|
+
}
|
|
2614
|
+
|
|
2615
|
+
twoPrimaryNames: primaryNames(where: { chainNames: [ETHEREUM, BASE] }) {
|
|
2616
|
+
chainName
|
|
2617
|
+
name { interpreted beautified }
|
|
2618
|
+
}
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
}`,
|
|
2622
|
+
variables: {
|
|
2623
|
+
default: { address: GREG_ADDRESS },
|
|
2624
|
+
[ENSNamespaceIds3.EnsTestEnv]: { address: accounts.owner.address },
|
|
2625
|
+
[ENSNamespaceIds3.SepoliaV2]: { address: SEPOLIA_V2_ACCOUNT }
|
|
2626
|
+
}
|
|
2627
|
+
},
|
|
2628
|
+
{
|
|
2629
|
+
id: "account-primary-name-records",
|
|
2630
|
+
query: `
|
|
2631
|
+
query AccountPrimaryNameRecords($address: Address!) {
|
|
2491
2632
|
account(by: { address: $address }) {
|
|
2492
2633
|
address
|
|
2493
2634
|
resolve {
|
|
@@ -2763,23 +2904,14 @@ query GetEthDomains {
|
|
|
2763
2904
|
query AccelerateResolve($address: Address!) {
|
|
2764
2905
|
account(by: { address: $address }) {
|
|
2765
2906
|
address
|
|
2766
|
-
resolve(accelerate:
|
|
2767
|
-
|
|
2768
|
-
acceleration {
|
|
2769
|
-
requested
|
|
2770
|
-
attempted
|
|
2771
|
-
}
|
|
2907
|
+
# resolve is automatically accelerated. To disable, resolve(accelerate: false)
|
|
2908
|
+
resolve {
|
|
2909
|
+
acceleration { requested attempted }
|
|
2772
2910
|
primaryName(by: { chainName: ETHEREUM }) {
|
|
2773
2911
|
name { interpreted beautified }
|
|
2774
2912
|
resolve {
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
requested
|
|
2778
|
-
attempted
|
|
2779
|
-
}
|
|
2780
|
-
profile {
|
|
2781
|
-
description
|
|
2782
|
-
}
|
|
2913
|
+
acceleration { requested attempted }
|
|
2914
|
+
profile { description }
|
|
2783
2915
|
}
|
|
2784
2916
|
}
|
|
2785
2917
|
}
|