@ensnode/ensnode-sdk 1.15.0 → 1.15.1

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
@@ -2157,11 +2157,6 @@ var SEPOLIA_V2_V2_ETH_REGISTRY = getDatasourceContract(
2157
2157
  import_datasources5.DatasourceNames.ENSv2Root,
2158
2158
  "ETHRegistry"
2159
2159
  );
2160
- var SEPOLIA_V2_V2_ETH_REGISTRAR = getDatasourceContract(
2161
- import_datasources5.ENSNamespaceIds.SepoliaV2,
2162
- import_datasources5.DatasourceNames.ENSv2Root,
2163
- "ETHRegistrar"
2164
- );
2165
2160
  var ENS_TEST_ENV_V2_ETH_REGISTRY = getDatasourceContract(
2166
2161
  import_datasources5.ENSNamespaceIds.EnsTestEnv,
2167
2162
  import_datasources5.DatasourceNames.ENSv2Root,
@@ -2173,12 +2168,13 @@ var ENS_TEST_ENV_V2_ETH_REGISTRAR = getDatasourceContract(
2173
2168
  "ETHRegistrar"
2174
2169
  );
2175
2170
  var VITALIK_ADDRESS = (0, import_enssdk8.toNormalizedAddress)("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045");
2176
- var _SEPOLIA_V2_USER_ADDRESS = (0, import_enssdk8.toNormalizedAddress)("0x2f8e8b1126e75fde0b7f731e7cb5847eba2d2574");
2177
2171
  var SEPOLIA_V2_ADDRESS_WITH_LOT_OF_NAMES = (0, import_enssdk8.toNormalizedAddress)(
2178
- "0x205d2686da3bf33f64c17f21462c51b5ead462cf"
2172
+ "0x69696969c3b3ca102eeb5c53a065a7c3ae4fb6dd"
2173
+ );
2174
+ var SEPOLIA_V2_ADDRESS_WITH_PERMISSIONS = (0, import_enssdk8.toNormalizedAddress)(
2175
+ "0x4c65a1c8d330ce1c3f60e00cd55709ba5fe2e090"
2179
2176
  );
2180
2177
  var DEVNET_NAME_WITH_OWNED_RESOLVER = (0, import_enssdk8.asInterpretedName)("example.eth");
2181
- var SEPOLIA_V2_NAME_WITH_OWNED_RESOLVER = (0, import_enssdk8.asInterpretedName)("sfmonicdebmig.eth");
2182
2178
  var SEPOLIA_V2_TEST_NAME = (0, import_enssdk8.asInterpretedName)("test-name.eth");
2183
2179
  var MAINNET_PUBLIC_RESOLVER = getDatasourceContract(
2184
2180
  import_datasources5.ENSNamespaceIds.Mainnet,
@@ -2322,7 +2318,7 @@ query DomainRegistration($name: InterpretedName!) {
2322
2318
  }`,
2323
2319
  variables: {
2324
2320
  default: { name: "vitalik.eth" },
2325
- [import_datasources5.ENSNamespaceIds.SepoliaV2]: { name: SEPOLIA_V2_NAME_WITH_OWNED_RESOLVER }
2321
+ [import_datasources5.ENSNamespaceIds.SepoliaV2]: { name: SEPOLIA_V2_TEST_NAME }
2326
2322
  }
2327
2323
  },
2328
2324
  //////////////////////
@@ -2395,7 +2391,7 @@ query DomainEvents($name: InterpretedName!) {
2395
2391
  }`,
2396
2392
  variables: {
2397
2393
  default: { name: "newowner.eth" },
2398
- [import_datasources5.ENSNamespaceIds.SepoliaV2]: { name: "sfmonicdebmig.eth" }
2394
+ [import_datasources5.ENSNamespaceIds.SepoliaV2]: { name: SEPOLIA_V2_TEST_NAME }
2399
2395
  }
2400
2396
  },
2401
2397
  ////////////////////
@@ -2501,8 +2497,8 @@ query PermissionsByContract(
2501
2497
  variables: {
2502
2498
  // TODO: same as above
2503
2499
  default: { contract: ENS_TEST_ENV_V2_ETH_REGISTRAR },
2504
- // TODO: example response is empty for this address on Sepolia V2
2505
- [import_datasources5.ENSNamespaceIds.SepoliaV2]: { contract: SEPOLIA_V2_V2_ETH_REGISTRAR }
2500
+ // the ETHRegistrar holds no EAC permissions on sepolia-v2; the ETHRegistry does
2501
+ [import_datasources5.ENSNamespaceIds.SepoliaV2]: { contract: SEPOLIA_V2_V2_ETH_REGISTRY }
2506
2502
  }
2507
2503
  },
2508
2504
  ////////////////////////
@@ -2525,8 +2521,7 @@ query PermissionsByUser($address: Address!) {
2525
2521
  }`,
2526
2522
  variables: {
2527
2523
  default: { address: import_devnet.accounts.deployer.address },
2528
- // TODO: example response is empty for this address on Sepolia V2
2529
- [import_datasources5.ENSNamespaceIds.SepoliaV2]: { address: SEPOLIA_V2_ADDRESS_WITH_LOT_OF_NAMES }
2524
+ [import_datasources5.ENSNamespaceIds.SepoliaV2]: { address: SEPOLIA_V2_ADDRESS_WITH_PERMISSIONS }
2530
2525
  }
2531
2526
  },
2532
2527
  //////////////////////////////////
@@ -2575,7 +2570,7 @@ query DomainResolver($name: InterpretedName!) {
2575
2570
  variables: {
2576
2571
  default: { name: "vitalik.eth" },
2577
2572
  [import_datasources5.ENSNamespaceIds.EnsTestEnv]: { name: DEVNET_NAME_WITH_OWNED_RESOLVER },
2578
- [import_datasources5.ENSNamespaceIds.SepoliaV2]: { name: SEPOLIA_V2_NAME_WITH_OWNED_RESOLVER }
2573
+ [import_datasources5.ENSNamespaceIds.SepoliaV2]: { name: SEPOLIA_V2_TEST_NAME }
2579
2574
  }
2580
2575
  },
2581
2576
  ////////////////////////
@@ -2643,6 +2638,38 @@ query Namegraph {
2643
2638
  }
2644
2639
  }
2645
2640
  }
2641
+ }`,
2642
+ variables: { default: {} }
2643
+ },
2644
+ /////////////////////////////
2645
+ // ENSv1 → ENSv2 Migration
2646
+ /////////////////////////////
2647
+ {
2648
+ id: "account-migrated-names",
2649
+ query: `
2650
+ query AccountMigratedNames($address: Address!) {
2651
+ account(by: { address: $address }) {
2652
+ v1DomainsCount: domains(where: { version: ENSv1 }) { totalCount }
2653
+ v2DomainsCount: domains(where: { version: ENSv2 }) { totalCount }
2654
+ }
2655
+ }`,
2656
+ variables: {
2657
+ default: { address: VITALIK_ADDRESS },
2658
+ [import_datasources5.ENSNamespaceIds.SepoliaV2]: { address: SEPOLIA_V2_ADDRESS_WITH_LOT_OF_NAMES }
2659
+ }
2660
+ },
2661
+ {
2662
+ id: "eth-by-version",
2663
+ query: `
2664
+ query GetEthDomains {
2665
+ domains(where: { name: { eq: "eth" } }) {
2666
+ edges {
2667
+ node {
2668
+ __typename
2669
+ id
2670
+ }
2671
+ }
2672
+ }
2646
2673
  }`,
2647
2674
  variables: { default: {} }
2648
2675
  }