@edgeandnode/graph-auth-kit 7.5.0-icon-to-addon-1754070158006-1899f0ed4a6813cc53a55f7e5e7fddc21b28f9a0 → 7.5.0-menu-1754067535466-cb32add7591e2dd51114494fe6e430611a5e6027
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/{GraphAuthKitInner.context-B2jD5URF.js → GraphAuthKitInner.context-B8vsvUDy.js} +3 -2
- package/dist/client.d.ts +0 -301
- package/dist/client.d.ts.map +1 -1
- package/dist/constants.d.ts +0 -18
- package/dist/constants.d.ts.map +1 -1
- package/dist/ens/index.js +1 -1
- package/dist/{hooks-BoW9sCzH.js → hooks-Ajg7XZho.js} +2 -1
- package/dist/index.js +6 -6
- package/dist/safe/SafeEthersSigner.d.ts.map +1 -1
- package/dist/safe/index.js +3 -3
- package/dist/safe/utils.d.ts.map +1 -1
- package/dist/test-harness/index.js +1 -1
- package/dist/{useGraphAuthKitEnsNames-BdmeO9s9.js → useGraphAuthKitEnsNames-0NID83yf.js} +2 -2
- package/dist/{useWaitForSafeTransaction-Dp9F1uEs.js → useWaitForSafeTransaction-B54aZDPo.js} +2 -2
- package/dist/{utils-mZHxBBOb.js → utils-B0FLy5o8.js} +3 -3
- package/package.json +17 -17
package/dist/{GraphAuthKitInner.context-B2jD5URF.js → GraphAuthKitInner.context-B8vsvUDy.js}
RENAMED
|
@@ -7,6 +7,7 @@ import { z } from "zod";
|
|
|
7
7
|
import { l1Mainnet, l1Testnet, l2Mainnet, l2Testnet } from "@edgeandnode/common";
|
|
8
8
|
import { mainnet, sepolia, arbitrum, arbitrumSepolia } from "viem/chains";
|
|
9
9
|
import { injected, coinbaseWallet, walletConnect } from "wagmi/connectors";
|
|
10
|
+
import "@safe-global/protocol-kit";
|
|
10
11
|
import { providers } from "ethers";
|
|
11
12
|
const AUTH_STORAGE_KEY = "thegraph__authstate";
|
|
12
13
|
const MULTISIG_AUTH_STORAGE_KEY = "multisig";
|
|
@@ -225,8 +226,8 @@ async function createApiKit(chainId) {
|
|
|
225
226
|
return apiKit;
|
|
226
227
|
}
|
|
227
228
|
async function createSafe(config) {
|
|
228
|
-
const { default:
|
|
229
|
-
const SafeClass = typeof
|
|
229
|
+
const { default: Safe2 } = await import("@safe-global/protocol-kit");
|
|
230
|
+
const SafeClass = typeof Safe2 === "function" ? Safe2 : Safe2.default;
|
|
230
231
|
const protocolKit = await SafeClass.init(config);
|
|
231
232
|
return protocolKit;
|
|
232
233
|
}
|