@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 +42 -15
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.js +42 -15
- package/dist/internal.js.map +1 -1
- package/package.json +4 -4
package/dist/internal.js
CHANGED
|
@@ -1972,11 +1972,6 @@ var SEPOLIA_V2_V2_ETH_REGISTRY = getDatasourceContract(
|
|
|
1972
1972
|
DatasourceNames2.ENSv2Root,
|
|
1973
1973
|
"ETHRegistry"
|
|
1974
1974
|
);
|
|
1975
|
-
var SEPOLIA_V2_V2_ETH_REGISTRAR = getDatasourceContract(
|
|
1976
|
-
ENSNamespaceIds3.SepoliaV2,
|
|
1977
|
-
DatasourceNames2.ENSv2Root,
|
|
1978
|
-
"ETHRegistrar"
|
|
1979
|
-
);
|
|
1980
1975
|
var ENS_TEST_ENV_V2_ETH_REGISTRY = getDatasourceContract(
|
|
1981
1976
|
ENSNamespaceIds3.EnsTestEnv,
|
|
1982
1977
|
DatasourceNames2.ENSv2Root,
|
|
@@ -1988,12 +1983,13 @@ var ENS_TEST_ENV_V2_ETH_REGISTRAR = getDatasourceContract(
|
|
|
1988
1983
|
"ETHRegistrar"
|
|
1989
1984
|
);
|
|
1990
1985
|
var VITALIK_ADDRESS = toNormalizedAddress3("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045");
|
|
1991
|
-
var _SEPOLIA_V2_USER_ADDRESS = toNormalizedAddress3("0x2f8e8b1126e75fde0b7f731e7cb5847eba2d2574");
|
|
1992
1986
|
var SEPOLIA_V2_ADDRESS_WITH_LOT_OF_NAMES = toNormalizedAddress3(
|
|
1993
|
-
"
|
|
1987
|
+
"0x69696969c3b3ca102eeb5c53a065a7c3ae4fb6dd"
|
|
1988
|
+
);
|
|
1989
|
+
var SEPOLIA_V2_ADDRESS_WITH_PERMISSIONS = toNormalizedAddress3(
|
|
1990
|
+
"0x4c65a1c8d330ce1c3f60e00cd55709ba5fe2e090"
|
|
1994
1991
|
);
|
|
1995
1992
|
var DEVNET_NAME_WITH_OWNED_RESOLVER = asInterpretedName("example.eth");
|
|
1996
|
-
var SEPOLIA_V2_NAME_WITH_OWNED_RESOLVER = asInterpretedName("sfmonicdebmig.eth");
|
|
1997
1993
|
var SEPOLIA_V2_TEST_NAME = asInterpretedName("test-name.eth");
|
|
1998
1994
|
var MAINNET_PUBLIC_RESOLVER = getDatasourceContract(
|
|
1999
1995
|
ENSNamespaceIds3.Mainnet,
|
|
@@ -2137,7 +2133,7 @@ query DomainRegistration($name: InterpretedName!) {
|
|
|
2137
2133
|
}`,
|
|
2138
2134
|
variables: {
|
|
2139
2135
|
default: { name: "vitalik.eth" },
|
|
2140
|
-
[ENSNamespaceIds3.SepoliaV2]: { name:
|
|
2136
|
+
[ENSNamespaceIds3.SepoliaV2]: { name: SEPOLIA_V2_TEST_NAME }
|
|
2141
2137
|
}
|
|
2142
2138
|
},
|
|
2143
2139
|
//////////////////////
|
|
@@ -2210,7 +2206,7 @@ query DomainEvents($name: InterpretedName!) {
|
|
|
2210
2206
|
}`,
|
|
2211
2207
|
variables: {
|
|
2212
2208
|
default: { name: "newowner.eth" },
|
|
2213
|
-
[ENSNamespaceIds3.SepoliaV2]: { name:
|
|
2209
|
+
[ENSNamespaceIds3.SepoliaV2]: { name: SEPOLIA_V2_TEST_NAME }
|
|
2214
2210
|
}
|
|
2215
2211
|
},
|
|
2216
2212
|
////////////////////
|
|
@@ -2316,8 +2312,8 @@ query PermissionsByContract(
|
|
|
2316
2312
|
variables: {
|
|
2317
2313
|
// TODO: same as above
|
|
2318
2314
|
default: { contract: ENS_TEST_ENV_V2_ETH_REGISTRAR },
|
|
2319
|
-
//
|
|
2320
|
-
[ENSNamespaceIds3.SepoliaV2]: { contract:
|
|
2315
|
+
// the ETHRegistrar holds no EAC permissions on sepolia-v2; the ETHRegistry does
|
|
2316
|
+
[ENSNamespaceIds3.SepoliaV2]: { contract: SEPOLIA_V2_V2_ETH_REGISTRY }
|
|
2321
2317
|
}
|
|
2322
2318
|
},
|
|
2323
2319
|
////////////////////////
|
|
@@ -2340,8 +2336,7 @@ query PermissionsByUser($address: Address!) {
|
|
|
2340
2336
|
}`,
|
|
2341
2337
|
variables: {
|
|
2342
2338
|
default: { address: accounts.deployer.address },
|
|
2343
|
-
|
|
2344
|
-
[ENSNamespaceIds3.SepoliaV2]: { address: SEPOLIA_V2_ADDRESS_WITH_LOT_OF_NAMES }
|
|
2339
|
+
[ENSNamespaceIds3.SepoliaV2]: { address: SEPOLIA_V2_ADDRESS_WITH_PERMISSIONS }
|
|
2345
2340
|
}
|
|
2346
2341
|
},
|
|
2347
2342
|
//////////////////////////////////
|
|
@@ -2390,7 +2385,7 @@ query DomainResolver($name: InterpretedName!) {
|
|
|
2390
2385
|
variables: {
|
|
2391
2386
|
default: { name: "vitalik.eth" },
|
|
2392
2387
|
[ENSNamespaceIds3.EnsTestEnv]: { name: DEVNET_NAME_WITH_OWNED_RESOLVER },
|
|
2393
|
-
[ENSNamespaceIds3.SepoliaV2]: { name:
|
|
2388
|
+
[ENSNamespaceIds3.SepoliaV2]: { name: SEPOLIA_V2_TEST_NAME }
|
|
2394
2389
|
}
|
|
2395
2390
|
},
|
|
2396
2391
|
////////////////////////
|
|
@@ -2458,6 +2453,38 @@ query Namegraph {
|
|
|
2458
2453
|
}
|
|
2459
2454
|
}
|
|
2460
2455
|
}
|
|
2456
|
+
}`,
|
|
2457
|
+
variables: { default: {} }
|
|
2458
|
+
},
|
|
2459
|
+
/////////////////////////////
|
|
2460
|
+
// ENSv1 → ENSv2 Migration
|
|
2461
|
+
/////////////////////////////
|
|
2462
|
+
{
|
|
2463
|
+
id: "account-migrated-names",
|
|
2464
|
+
query: `
|
|
2465
|
+
query AccountMigratedNames($address: Address!) {
|
|
2466
|
+
account(by: { address: $address }) {
|
|
2467
|
+
v1DomainsCount: domains(where: { version: ENSv1 }) { totalCount }
|
|
2468
|
+
v2DomainsCount: domains(where: { version: ENSv2 }) { totalCount }
|
|
2469
|
+
}
|
|
2470
|
+
}`,
|
|
2471
|
+
variables: {
|
|
2472
|
+
default: { address: VITALIK_ADDRESS },
|
|
2473
|
+
[ENSNamespaceIds3.SepoliaV2]: { address: SEPOLIA_V2_ADDRESS_WITH_LOT_OF_NAMES }
|
|
2474
|
+
}
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
id: "eth-by-version",
|
|
2478
|
+
query: `
|
|
2479
|
+
query GetEthDomains {
|
|
2480
|
+
domains(where: { name: { eq: "eth" } }) {
|
|
2481
|
+
edges {
|
|
2482
|
+
node {
|
|
2483
|
+
__typename
|
|
2484
|
+
id
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2461
2488
|
}`,
|
|
2462
2489
|
variables: { default: {} }
|
|
2463
2490
|
}
|