@ensnode/ensnode-sdk 0.0.0-next-20260610144612 → 0.0.0-next-20260610163200

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 CHANGED
@@ -2240,6 +2240,7 @@ var DEVNET_NAME_WITH_OWNED_RESOLVER = (0, import_enssdk9.asInterpretedName)("exa
2240
2240
  var SEPOLIA_V2_NAME = (0, import_enssdk9.asInterpretedName)("roppp.eth");
2241
2241
  var VITALIK_NAME = (0, import_enssdk9.asInterpretedName)("vitalik.eth");
2242
2242
  var GREG_NAME = (0, import_enssdk9.asInterpretedName)("gregskril.eth");
2243
+ var GREG_ADDRESS = (0, import_enssdk9.toNormalizedAddress)("0x179a862703a4adfb29896552df9e307980d19285");
2243
2244
  var OFFCHAIN_NAME = (0, import_enssdk9.asInterpretedName)("patricio.onpoap.eth");
2244
2245
  var MAINNET_PUBLIC_RESOLVER = getDatasourceContract(
2245
2246
  import_datasources5.ENSNamespaceIds.Mainnet,
@@ -2276,7 +2277,7 @@ var GRAPHQL_API_EXAMPLE_QUERIES = [
2276
2277
  name { interpreted beautified }
2277
2278
  resolve {
2278
2279
  # If the account has a primary name on Ethereum (mainnet),
2279
- # forward resolve the interpreted ENS profile of that name in the same query!.
2280
+ # forward resolve the interpreted ENS profile of that name in the same query!
2280
2281
  profile {
2281
2282
  description
2282
2283
  avatar { httpUrl }
@@ -2509,6 +2510,49 @@ query DomainProfile($name: InterpretedName!) {
2509
2510
  }
2510
2511
  }
2511
2512
  }
2513
+ }`,
2514
+ variables: { default: { name: GREG_NAME } }
2515
+ },
2516
+ {
2517
+ id: "domain-profile-and-records",
2518
+ query: `
2519
+ query DomainProfileAndRecords($name: InterpretedName!) {
2520
+ domain(by: { name: $name }) {
2521
+ resolve {
2522
+ profile {
2523
+ avatar {
2524
+ httpUrl
2525
+ }
2526
+ addresses {
2527
+ ethereum
2528
+ solana
2529
+ }
2530
+ socials {
2531
+ github {
2532
+ handle
2533
+ httpUrl
2534
+ }
2535
+ twitter {
2536
+ handle
2537
+ httpUrl
2538
+ }
2539
+ }
2540
+ website {
2541
+ httpUrl
2542
+ }
2543
+ }
2544
+ records {
2545
+ addresses(coinTypes: [60, 501]) {
2546
+ coinType
2547
+ address
2548
+ }
2549
+ texts(keys: ["avatar", "com.twitter", "com.github", "url"]) {
2550
+ key
2551
+ value
2552
+ }
2553
+ }
2554
+ }
2555
+ }
2512
2556
  }`,
2513
2557
  variables: { default: { name: GREG_NAME } }
2514
2558
  },
@@ -2671,9 +2715,34 @@ query AccountDomains(
2671
2715
  // Account Primary Names
2672
2716
  /////////////////////////
2673
2717
  {
2674
- id: "account-primary-name",
2718
+ id: "account-primary-names",
2675
2719
  query: `
2676
- query AccountPrimaryName($address: Address!) {
2720
+ query AccountPrimaryNames($address: Address!) {
2721
+ account(by: { address: $address }) {
2722
+ address
2723
+ resolve {
2724
+ onePrimaryName: primaryName(by: { chainName: OPTIMISM }) {
2725
+ chainName
2726
+ name { interpreted beautified }
2727
+ }
2728
+
2729
+ twoPrimaryNames: primaryNames(where: { chainNames: [ETHEREUM, BASE] }) {
2730
+ chainName
2731
+ name { interpreted beautified }
2732
+ }
2733
+ }
2734
+ }
2735
+ }`,
2736
+ variables: {
2737
+ default: { address: GREG_ADDRESS },
2738
+ [import_datasources5.ENSNamespaceIds.EnsTestEnv]: { address: accounts.owner.address },
2739
+ [import_datasources5.ENSNamespaceIds.SepoliaV2]: { address: SEPOLIA_V2_ACCOUNT }
2740
+ }
2741
+ },
2742
+ {
2743
+ id: "account-primary-name-records",
2744
+ query: `
2745
+ query AccountPrimaryNameRecords($address: Address!) {
2677
2746
  account(by: { address: $address }) {
2678
2747
  address
2679
2748
  resolve {
@@ -2949,23 +3018,14 @@ query GetEthDomains {
2949
3018
  query AccelerateResolve($address: Address!) {
2950
3019
  account(by: { address: $address }) {
2951
3020
  address
2952
- resolve(accelerate: true) {
2953
- trace
2954
- acceleration {
2955
- requested
2956
- attempted
2957
- }
3021
+ # resolve is automatically accelerated. To disable, resolve(accelerate: false)
3022
+ resolve {
3023
+ acceleration { requested attempted }
2958
3024
  primaryName(by: { chainName: ETHEREUM }) {
2959
3025
  name { interpreted beautified }
2960
3026
  resolve {
2961
- trace
2962
- acceleration {
2963
- requested
2964
- attempted
2965
- }
2966
- profile {
2967
- description
2968
- }
3027
+ acceleration { requested attempted }
3028
+ profile { description }
2969
3029
  }
2970
3030
  }
2971
3031
  }