@ethereum-entity-registry/sdk 0.3.0 → 0.3.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/dist/index.js +8 -7
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -6440,18 +6440,18 @@ var deployments_default = {
|
|
|
6440
6440
|
var deployments = deployments_default;
|
|
6441
6441
|
var config = {
|
|
6442
6442
|
[mainnet.id]: {
|
|
6443
|
-
indexer: "
|
|
6443
|
+
indexer: "https://ethereum-entity-registry-production.up.railway.app/graphql"
|
|
6444
6444
|
},
|
|
6445
6445
|
[sepolia.id]: {
|
|
6446
6446
|
registry: (deployments["11155111"]?.EntityRegistry ?? deployments["11155111"]?.CanonicalRegistry)?.address,
|
|
6447
|
-
indexer: "https://
|
|
6447
|
+
indexer: "https://ethereum-entity-registry-production.up.railway.app/graphql"
|
|
6448
6448
|
},
|
|
6449
6449
|
[base.id]: {
|
|
6450
|
-
indexer: "
|
|
6450
|
+
indexer: "https://ethereum-entity-registry-production.up.railway.app/graphql"
|
|
6451
6451
|
},
|
|
6452
6452
|
[baseSepolia.id]: {
|
|
6453
6453
|
registry: deployments["84532"]?.EntityRegistry?.address,
|
|
6454
|
-
indexer: "
|
|
6454
|
+
indexer: "https://ethereum-entity-registry-production.up.railway.app/graphql"
|
|
6455
6455
|
},
|
|
6456
6456
|
[hardhat.id]: {
|
|
6457
6457
|
registry: deployments[31337]?.EntityRegistry?.address,
|
|
@@ -7041,9 +7041,7 @@ function EntityRegistryProvider({
|
|
|
7041
7041
|
client,
|
|
7042
7042
|
defaultChain
|
|
7043
7043
|
}) {
|
|
7044
|
-
const [sdk, setSdk] = useState(
|
|
7045
|
-
return new EntityRegistrySDK(client, defaultChain);
|
|
7046
|
-
});
|
|
7044
|
+
const [sdk, setSdk] = useState(null);
|
|
7047
7045
|
useEffect(() => {
|
|
7048
7046
|
setSdk(new EntityRegistrySDK(client, defaultChain));
|
|
7049
7047
|
}, [client, defaultChain]);
|
|
@@ -7381,6 +7379,9 @@ function getTokenAddresses(chainId) {
|
|
|
7381
7379
|
function getDeployments(chainId) {
|
|
7382
7380
|
const d = deployments_default[chainId.toString()];
|
|
7383
7381
|
if (!d) throw new Error(`Chain ${chainId} not supported`);
|
|
7382
|
+
if (!d.EntityRegistry && d.CanonicalRegistry) {
|
|
7383
|
+
d.EntityRegistry = d.CanonicalRegistry;
|
|
7384
|
+
}
|
|
7384
7385
|
return d;
|
|
7385
7386
|
}
|
|
7386
7387
|
function getChain(chainId) {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethereum-entity-registry/sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TypeScript SDK and React hooks for the Ethereum Entity Registry",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/carlbarrdahl/ethereum-
|
|
8
|
+
"url": "https://github.com/carlbarrdahl/ethereum-entity-registry",
|
|
9
9
|
"directory": "packages/sdk"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://github.com/carlbarrdahl/ethereum-
|
|
11
|
+
"homepage": "https://github.com/carlbarrdahl/ethereum-entity-registry#readme",
|
|
12
12
|
"keywords": ["ethereum", "registry", "identity", "github", "dns", "viem", "wagmi"],
|
|
13
13
|
"files": [
|
|
14
14
|
"dist"
|