@edgeandnode/graph-auth-kit 7.5.0-next-1762445269244-8194d14acfa1a6f1686d56f7c5407357bc8965e9 → 7.5.0-remove-geo-wonderland-1764687102562-fe0a000a54dab5ac804f63f028448130b8140456
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-4tahCZlU.js → GraphAuthKitInner.context-BO9AWGN6.js} +3 -2
- package/dist/client.d.ts +3813 -102
- package/dist/client.d.ts.map +1 -1
- package/dist/constants.d.ts +2 -2
- package/dist/ens/index.js +1 -1
- package/dist/{hooks-CW9U91xq.js → hooks-CyChKJkx.js} +2 -1
- package/dist/index.js +6 -6
- package/dist/inner/hooks.d.ts.map +1 -1
- 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/test-harness/utils.d.ts +2 -2
- package/dist/{useGraphAuthKitEnsNames-DSfxgVd2.js → useGraphAuthKitEnsNames-D9Yn-OnO.js} +2 -2
- package/dist/{useWaitForSafeTransaction-qzXyQLlA.js → useWaitForSafeTransaction-DnrHaXbJ.js} +2 -2
- package/dist/{utils-DhU0bGPc.js → utils-BhLWRLN_.js} +4 -4
- package/package.json +17 -17
package/dist/{GraphAuthKitInner.context-4tahCZlU.js → GraphAuthKitInner.context-BO9AWGN6.js}
RENAMED
|
@@ -8,6 +8,7 @@ import { z } from "zod";
|
|
|
8
8
|
import { l1Mainnet, l1Testnet, l2Mainnet, l2Testnet } from "@edgeandnode/common";
|
|
9
9
|
import { mainnet, sepolia, arbitrum, arbitrumSepolia } from "viem/chains";
|
|
10
10
|
import { injected, coinbaseWallet, walletConnect } from "wagmi/connectors";
|
|
11
|
+
import "@safe-global/protocol-kit";
|
|
11
12
|
import { providers } from "ethers";
|
|
12
13
|
const AUTH_STORAGE_KEY = "thegraph__authstate";
|
|
13
14
|
const MULTISIG_AUTH_STORAGE_KEY = "multisig";
|
|
@@ -226,8 +227,8 @@ async function createApiKit(chainId) {
|
|
|
226
227
|
return apiKit;
|
|
227
228
|
}
|
|
228
229
|
async function createSafe(config) {
|
|
229
|
-
const { default:
|
|
230
|
-
const SafeClass = typeof
|
|
230
|
+
const { default: Safe2 } = await import("@safe-global/protocol-kit");
|
|
231
|
+
const SafeClass = typeof Safe2 === "function" ? Safe2 : Safe2.default;
|
|
231
232
|
return await SafeClass.init(config);
|
|
232
233
|
}
|
|
233
234
|
async function isValidSafe(args) {
|