@edgeandnode/graph-auth-kit 7.7.0 → 7.8.0-safe-api-tx-svc-url-1766452950574-83c0e604053aa2586f4a7a08018c885c20aeddc9
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-C5MOzchk.js → GraphAuthKitInner.context-HNi3qW1p.js} +16 -17
- package/dist/ens/index.js +1 -1
- package/dist/{hooks-C4y8dwNT.js → hooks-pE4kHRpw.js} +1 -1
- package/dist/index.js +22 -22
- package/dist/safe/constants.d.ts +3 -3
- package/dist/safe/index.js +3 -3
- package/dist/safe/useWaitForSafeTransaction.d.ts +2 -2
- package/dist/safe/useWaitForSafeTransaction.d.ts.map +1 -1
- package/dist/safe/utils.d.ts.map +1 -1
- package/dist/test-harness/index.js +1 -1
- package/dist/{useGraphAuthKitEnsNames-IEJib_9F.js → useGraphAuthKitEnsNames-c-TN8vYB.js} +2 -2
- package/dist/{useWaitForSafeTransaction-CQ2jQA-M.js → useWaitForSafeTransaction-C--5eXmJ.js} +11 -9
- package/dist/{utils-BuAt-Vrk.js → utils-CvWKjLih.js} +1 -1
- package/package.json +1 -1
package/dist/{GraphAuthKitInner.context-C5MOzchk.js → GraphAuthKitInner.context-HNi3qW1p.js}
RENAMED
|
@@ -116,9 +116,9 @@ const SafeSupportedNetworkNames = {
|
|
|
116
116
|
[L1ChainTestnet.id]: { shortName: "sep", name: L1ChainTestnet.name, id: L1ChainTestnet.id }
|
|
117
117
|
};
|
|
118
118
|
const ApiKitUrlMap = {
|
|
119
|
-
[L1Chain.id]: "https://
|
|
120
|
-
[L1ChainTestnet.id]: "https://
|
|
121
|
-
[L2Chain.id]: "https://
|
|
119
|
+
[L1Chain.id]: "https://api.safe.global/tx-service/eth/api",
|
|
120
|
+
[L1ChainTestnet.id]: "https://api.safe.global/tx-service/sep/api",
|
|
121
|
+
[L2Chain.id]: "https://api.safe.global/tx-service/arb1/api"
|
|
122
122
|
};
|
|
123
123
|
const SafeMinimalAbi = [
|
|
124
124
|
{
|
|
@@ -225,7 +225,6 @@ async function createApiKit(chainId, apiKey) {
|
|
|
225
225
|
const SafeApiKitClass = typeof SafeApiKit === "function" ? SafeApiKit : SafeApiKit.default;
|
|
226
226
|
const apiKit = new SafeApiKitClass({
|
|
227
227
|
chainId: BigInt(chainId),
|
|
228
|
-
txServiceUrl: ApiKitUrlMap[chainId],
|
|
229
228
|
apiKey
|
|
230
229
|
});
|
|
231
230
|
return apiKit;
|
|
@@ -583,15 +582,15 @@ function GraphAuthKitInnerContextProvider({
|
|
|
583
582
|
export {
|
|
584
583
|
ApiKitUrlMap as A,
|
|
585
584
|
BuildPublicClientArgs as B,
|
|
586
|
-
|
|
585
|
+
mapChainIdToChain as C,
|
|
587
586
|
DefChain as D,
|
|
588
|
-
|
|
589
|
-
|
|
587
|
+
isChainL2 as E,
|
|
588
|
+
isChainL1 as F,
|
|
590
589
|
GraphAuthKitProps as G,
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
590
|
+
isChainMainnet as H,
|
|
591
|
+
isChainTestnet as I,
|
|
592
|
+
clientToProvider as J,
|
|
593
|
+
connectedWalletIsEoA as K,
|
|
595
594
|
L1Chain as L,
|
|
596
595
|
MULTISIG_AUTH_STORAGE_KEY as M,
|
|
597
596
|
MultisigSchema as N,
|
|
@@ -621,10 +620,10 @@ export {
|
|
|
621
620
|
SupportedClientChains as r,
|
|
622
621
|
SupportedL1ClientChainId as s,
|
|
623
622
|
SupportedL2ClientChainId as t,
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
623
|
+
useGraphAuthKitInnerContext as u,
|
|
624
|
+
RequiredWalletConnectProjectId as v,
|
|
625
|
+
OptionalSafeApiKey as w,
|
|
626
|
+
GraphAuthKitConnector as x,
|
|
627
|
+
chainIsSupportedChain as y,
|
|
628
|
+
isSupportedChainId as z
|
|
630
629
|
};
|
package/dist/ens/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { useMemo, useState, useEffect } from "react";
|
|
|
8
8
|
import { encodeFunctionData, getAddress, isAddress } from "viem";
|
|
9
9
|
import { useChainId, useConnectorClient, useAccount, useConfig, useAccountEffect, useWalletClient } from "wagmi";
|
|
10
10
|
import { writeContractMutationOptions } from "wagmi/query";
|
|
11
|
-
import { b as createSafe, c as createApiKit,
|
|
11
|
+
import { b as createSafe, c as createApiKit, u as useGraphAuthKitInnerContext, J as clientToProvider, x as GraphAuthKitConnector, M as MULTISIG_AUTH_STORAGE_KEY, N as MultisigSchema } from "./GraphAuthKitInner.context-HNi3qW1p.js";
|
|
12
12
|
import { VoidSigner } from "@ethersproject/abstract-signer";
|
|
13
13
|
import "@safe-global/protocol-kit";
|
|
14
14
|
import { OperationType } from "@safe-global/types-kit";
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { m, A, k, B, D,
|
|
3
|
-
import { G as G2, a as a2, M as M2, b as b2, d as d2, u
|
|
4
|
-
import { a as useGraphAuthKitAccount, b as useGraphAuthKitConnector } from "./hooks-
|
|
5
|
-
import { S as S2, m as m2, d as d3, c as c2, e as e2, f as f2, g as g2, u as
|
|
6
|
-
import { g as g3, u as
|
|
2
|
+
import { m, A, k, B, D, x, G, L, n, o, p, M, O, w, R, v, a, S, q, r, s, t, l, g, j, y, J, K, c, b, f, h, F, E, H, I, e, i, z, d, C } from "./GraphAuthKitInner.context-HNi3qW1p.js";
|
|
3
|
+
import { G as G2, a as a2, M as M2, b as b2, d as d2, u } from "./utils-CvWKjLih.js";
|
|
4
|
+
import { a as useGraphAuthKitAccount, b as useGraphAuthKitConnector } from "./hooks-pE4kHRpw.js";
|
|
5
|
+
import { S as S2, m as m2, d as d3, c as c2, e as e2, f as f2, g as g2, u as u2 } from "./hooks-pE4kHRpw.js";
|
|
6
|
+
import { g as g3, u as u3, w as w2 } from "./useWaitForSafeTransaction-C--5eXmJ.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { Alert, ExperimentalButton } from "@edgeandnode/gds";
|
|
9
9
|
import { useConfig, useSwitchChain } from "wagmi";
|
|
10
|
-
import { u as
|
|
10
|
+
import { u as u4, a as a3, b as b3, c as c3 } from "./useGraphAuthKitEnsNames-c-TN8vYB.js";
|
|
11
11
|
function Connected({ children }) {
|
|
12
12
|
const account = useGraphAuthKitAccount();
|
|
13
13
|
const connector = useGraphAuthKitConnector();
|
|
@@ -78,7 +78,7 @@ export {
|
|
|
78
78
|
Connected,
|
|
79
79
|
D as DefChain,
|
|
80
80
|
Disconnected,
|
|
81
|
-
|
|
81
|
+
x as GraphAuthKitConnector,
|
|
82
82
|
G2 as GraphAuthKitContext,
|
|
83
83
|
G as GraphAuthKitProps,
|
|
84
84
|
a2 as GraphAuthKitProvider,
|
|
@@ -89,9 +89,9 @@ export {
|
|
|
89
89
|
M as MULTISIG_AUTH_STORAGE_KEY,
|
|
90
90
|
M2 as MockGraphAuthKitProvider,
|
|
91
91
|
O as OptionalGatewayApiKey,
|
|
92
|
-
|
|
92
|
+
w as OptionalSafeApiKey,
|
|
93
93
|
R as RequiredInfuraKey,
|
|
94
|
-
|
|
94
|
+
v as RequiredWalletConnectProjectId,
|
|
95
95
|
S2 as SafeEthersSigner,
|
|
96
96
|
a as SafeSupportedNetworkNames,
|
|
97
97
|
S as SafeSupportedNetworks,
|
|
@@ -104,38 +104,38 @@ export {
|
|
|
104
104
|
g as buildInfuraHttpTransport,
|
|
105
105
|
b2 as buildMockProviderState,
|
|
106
106
|
j as buildPublicClient,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
y as chainIsSupportedChain,
|
|
108
|
+
J as clientToProvider,
|
|
109
|
+
K as connectedWalletIsEoA,
|
|
110
110
|
c as createApiKit,
|
|
111
111
|
b as createSafe,
|
|
112
112
|
d2 as disconnectedMockState,
|
|
113
113
|
f as fetchOwnedSafes,
|
|
114
114
|
g3 as getSafeTransaction,
|
|
115
115
|
h as isBuildPublicClientArgs,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
F as isChainL1,
|
|
117
|
+
E as isChainL2,
|
|
118
|
+
H as isChainMainnet,
|
|
119
|
+
I as isChainTestnet,
|
|
120
120
|
e as isSafeOwner,
|
|
121
121
|
i as isSafeSupportedNetwork,
|
|
122
|
-
|
|
122
|
+
z as isSupportedChainId,
|
|
123
123
|
d as isValidSafe,
|
|
124
|
-
|
|
124
|
+
C as mapChainIdToChain,
|
|
125
125
|
m2 as mapReceipt,
|
|
126
126
|
d3 as useAuthAccount,
|
|
127
127
|
c2 as useClientToEthersSigner,
|
|
128
|
-
|
|
128
|
+
u as useGraphAuthKit,
|
|
129
129
|
useGraphAuthKitAccount,
|
|
130
130
|
e2 as useGraphAuthKitAccountEffect,
|
|
131
|
-
|
|
131
|
+
u4 as useGraphAuthKitAvatar,
|
|
132
132
|
a3 as useGraphAuthKitAvatars,
|
|
133
133
|
useGraphAuthKitConnector,
|
|
134
134
|
b3 as useGraphAuthKitEnsName,
|
|
135
135
|
c3 as useGraphAuthKitEnsNames,
|
|
136
136
|
f2 as useGraphAuthKitWalletClient,
|
|
137
137
|
g2 as useGraphAuthKitWriteContract,
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
u2 as useMultisigInfo,
|
|
139
|
+
u3 as useWaitForSafeTransaction,
|
|
140
140
|
w2 as waitForSafeTransation
|
|
141
141
|
};
|
package/dist/safe/constants.d.ts
CHANGED
|
@@ -20,8 +20,8 @@ export declare const SafeSupportedNetworkNames: {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
export declare const ApiKitUrlMap: {
|
|
23
|
-
readonly 1: "https://
|
|
24
|
-
readonly 11155111: "https://
|
|
25
|
-
readonly 42161: "https://
|
|
23
|
+
readonly 1: "https://api.safe.global/tx-service/eth/api";
|
|
24
|
+
readonly 11155111: "https://api.safe.global/tx-service/sep/api";
|
|
25
|
+
readonly 42161: "https://api.safe.global/tx-service/arb1/api";
|
|
26
26
|
};
|
|
27
27
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/safe/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A, a, S, c, b, f, e, i, d } from "../GraphAuthKitInner.context-
|
|
2
|
-
import { S as S2, m } from "../hooks-
|
|
3
|
-
import { g, u, w } from "../useWaitForSafeTransaction-
|
|
1
|
+
import { A, a, S, c, b, f, e, i, d } from "../GraphAuthKitInner.context-HNi3qW1p.js";
|
|
2
|
+
import { S as S2, m } from "../hooks-pE4kHRpw.js";
|
|
3
|
+
import { g, u, w } from "../useWaitForSafeTransaction-C--5eXmJ.js";
|
|
4
4
|
export {
|
|
5
5
|
A as ApiKitUrlMap,
|
|
6
6
|
S2 as SafeEthersSigner,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SafeMultisigTransactionResponse } from '@safe-global/types-kit';
|
|
2
2
|
import { Config, ResolvedRegister } from 'wagmi';
|
|
3
3
|
import { SafeSupportedNetworks } from './constants';
|
|
4
|
-
export declare function getSafeTransaction(safeTxHash: string, network: SafeSupportedNetworks): Promise<SafeMultisigTransactionResponse>;
|
|
5
|
-
export declare function waitForSafeTransation(safeTxHash: string, network: SafeSupportedNetworks, pollingInterval
|
|
4
|
+
export declare function getSafeTransaction(safeTxHash: string, network: SafeSupportedNetworks, safeApiKey: string): Promise<SafeMultisigTransactionResponse>;
|
|
5
|
+
export declare function waitForSafeTransation(safeTxHash: string, network: SafeSupportedNetworks, pollingInterval: number | undefined, safeApiKey: string): Promise<SafeMultisigTransactionResponse>;
|
|
6
6
|
export declare function useWaitForSafeTransaction<const config extends Config = ResolvedRegister['config']>({ safeTxHash, }: {
|
|
7
7
|
safeTxHash: string | undefined;
|
|
8
8
|
}): import('@tanstack/react-query').UseQueryResult<SafeMultisigTransactionResponse | undefined, Error>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWaitForSafeTransaction.d.ts","sourceRoot":"","sources":["../../src/safe/useWaitForSafeTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAA;AAE7E,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,gBAAgB,EAAa,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"useWaitForSafeTransaction.d.ts","sourceRoot":"","sources":["../../src/safe/useWaitForSafeTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAA;AAE7E,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,gBAAgB,EAAa,MAAM,OAAO,CAAA;AAKrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAGnD,wBAAsB,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,4CAI9G;AAED,wBAAsB,qBAAqB,CACzC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,qBAAqB,EAC9B,eAAe,EAAE,MAAM,YAAQ,EAC/B,UAAU,EAAE,MAAM,4CAWnB;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAAE,EAClG,UAAU,GACX,EAAE;IACD,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;CAC/B,sGAmBA"}
|
package/dist/safe/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/safe/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAA;AAClD,OAAO,IAAI,EAAE,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,EAAE,KAAK,OAAO,EAAa,MAAM,MAAM,CAAA;AAG9C,OAAO,EAAqB,KAAK,qBAAqB,EAA2B,KAAK,YAAY,EAAE,MAAM,WAAW,CAAA;AAGrH,OAAO,EAAgB,KAAK,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAGtE,wBAAsB,YAAY,CAAC,OAAO,EAAE,qBAAqB,EAAE,MAAM,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/safe/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAA;AAClD,OAAO,IAAI,EAAE,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,EAAE,KAAK,OAAO,EAAa,MAAM,MAAM,CAAA;AAG9C,OAAO,EAAqB,KAAK,qBAAqB,EAA2B,KAAK,YAAY,EAAE,MAAM,WAAW,CAAA;AAGrH,OAAO,EAAgB,KAAK,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAGtE,wBAAsB,YAAY,CAAC,OAAO,EAAE,qBAAqB,EAAE,MAAM,CAAC,EAAE,MAAM,uBAUjF;AAED,wBAAsB,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAKlE;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;;OAMG;IACH,uBAAuB,EAAE,YAAY,GAAG,qBAAqB,CAAA;IAC7D,KAAK,EAAE,qBAAqB,CAAA;IAC5B,WAAW,EAAE,OAAO,CAAA;CACrB,CAAA;AACD,wBAAsB,WAAW,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,CAezE;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;;OAMG;IACH,uBAAuB,EAAE,YAAY,GAAG,qBAAqB,CAAA;IAC7D,KAAK,EAAE,qBAAqB,CAAA;IAC5B,WAAW,EAAE,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAA;CACb,CAAA;AACD,wBAAsB,WAAW,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,CAezE;AAED,MAAM,MAAM,mBAAmB,CAAC,MAAM,SAAS,SAAS,CAAC,qBAAqB,EAAE,GAAG,qBAAqB,EAAE,CAAC,IAAI;IAC7G,mDAAmD;IACnD,MAAM,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,wBAAsB,eAAe,CACnC,KAAK,CAAC,MAAM,SAAS,SAAS,CAAC,qBAAqB,EAAE,GAAG,qBAAqB,EAAE,CAAC,EACjF,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC;KAAG,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,SAAS,OAAO,EAAE;CAAE,CAAC,CAQ3F;AAMD,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,qBAAqB,CAAA;CAC7B,CAAA"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { createIdenticon } from "@edgeandnode/gds";
|
|
3
3
|
import { getEnsAvatarQueryKey, getEnsNameQueryKey } from "@wagmi/core/query";
|
|
4
4
|
import { useQuery } from "wagmi/query";
|
|
5
|
-
import {
|
|
6
|
-
import { a as useGraphAuthKitAccount } from "./hooks-
|
|
5
|
+
import { u as useGraphAuthKitInnerContext, z as isSupportedChainId, o as L2Chain, n as L1ChainTestnet, p as L2ChainTestnet, L as L1Chain } from "./GraphAuthKitInner.context-HNi3qW1p.js";
|
|
6
|
+
import { a as useGraphAuthKitAccount } from "./hooks-pE4kHRpw.js";
|
|
7
7
|
import { useChainId } from "wagmi";
|
|
8
8
|
function useGraphAuthKitAvatar(args = {}) {
|
|
9
9
|
const innerCtx = useGraphAuthKitInnerContext();
|
package/dist/{useWaitForSafeTransaction-CQ2jQA-M.js → useWaitForSafeTransaction-C--5eXmJ.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useQuery } from "@tanstack/react-query";
|
|
2
2
|
import { useConfig } from "wagmi";
|
|
3
|
-
import { u as useMultisigInfo } from "./hooks-
|
|
4
|
-
import { c as createApiKit } from "./GraphAuthKitInner.context-
|
|
5
|
-
async function getSafeTransaction(safeTxHash, network) {
|
|
6
|
-
const apiKit = await createApiKit(network);
|
|
3
|
+
import { u as useMultisigInfo } from "./hooks-pE4kHRpw.js";
|
|
4
|
+
import { c as createApiKit, u as useGraphAuthKitInnerContext } from "./GraphAuthKitInner.context-HNi3qW1p.js";
|
|
5
|
+
async function getSafeTransaction(safeTxHash, network, safeApiKey) {
|
|
6
|
+
const apiKit = await createApiKit(network, safeApiKey);
|
|
7
7
|
const txDetails = await apiKit.getTransaction(safeTxHash);
|
|
8
8
|
return txDetails;
|
|
9
9
|
}
|
|
10
|
-
async function waitForSafeTransation(safeTxHash, network, pollingInterval = 4e3) {
|
|
10
|
+
async function waitForSafeTransation(safeTxHash, network, pollingInterval = 4e3, safeApiKey) {
|
|
11
11
|
return new Promise((resolve) => {
|
|
12
12
|
const poll = async () => {
|
|
13
|
-
const txDetails = await getSafeTransaction(safeTxHash, network);
|
|
13
|
+
const txDetails = await getSafeTransaction(safeTxHash, network, safeApiKey);
|
|
14
14
|
if (txDetails.transactionHash) {
|
|
15
15
|
resolve(txDetails);
|
|
16
16
|
} else setTimeout(poll, pollingInterval);
|
|
@@ -22,19 +22,21 @@ function useWaitForSafeTransaction({
|
|
|
22
22
|
safeTxHash
|
|
23
23
|
}) {
|
|
24
24
|
const config = useConfig();
|
|
25
|
+
const { _safeApiKey } = useGraphAuthKitInnerContext();
|
|
25
26
|
const _enteredMultisigInfo = useMultisigInfo();
|
|
26
27
|
return useQuery({
|
|
27
28
|
queryKey: ["SafeMultisigTransactionResponse", safeTxHash],
|
|
28
29
|
queryFn: async () => {
|
|
29
|
-
if (!_enteredMultisigInfo || !safeTxHash) return;
|
|
30
|
+
if (!_enteredMultisigInfo || !safeTxHash || !_safeApiKey) return;
|
|
30
31
|
const txDetails = await waitForSafeTransation(
|
|
31
32
|
safeTxHash,
|
|
32
33
|
_enteredMultisigInfo.network,
|
|
33
|
-
config.getClient().pollingInterval
|
|
34
|
+
config.getClient().pollingInterval,
|
|
35
|
+
_safeApiKey
|
|
34
36
|
);
|
|
35
37
|
return txDetails;
|
|
36
38
|
},
|
|
37
|
-
enabled: _enteredMultisigInfo != null && safeTxHash != null
|
|
39
|
+
enabled: _enteredMultisigInfo != null && safeTxHash != null && _safeApiKey != null
|
|
38
40
|
});
|
|
39
41
|
}
|
|
40
42
|
export {
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
3
3
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
4
4
|
import { useConfig, WagmiProvider, useDisconnect, createConfig, createStorage, cookieStorage, cookieToInitialState } from "wagmi";
|
|
5
5
|
import { injected, walletConnect, coinbaseWallet, mock } from "wagmi/connectors";
|
|
6
|
-
import {
|
|
6
|
+
import { u as useGraphAuthKitInnerContext, x as GraphAuthKitConnector, o as L2Chain, a as SafeSupportedNetworkNames, j as buildPublicClient, L as L1Chain, n as L1ChainTestnet, d as isValidSafe, S as SafeSupportedNetworks, P as GraphAuthKitInnerContextProvider, p as L2ChainTestnet, m as AUTH_STORAGE_KEY, y as chainIsSupportedChain, D as DefChain, l as buildClient, Q as GraphAuthKitInnerContext, T as defInnerState, R as RequiredInfuraKey, O as OptionalGatewayApiKey, q as SupportedClientChainId } from "./GraphAuthKitInner.context-HNi3qW1p.js";
|
|
7
7
|
import { useState, useReducer, useId, useEffect, createContext, useContext } from "react";
|
|
8
8
|
import { Icon, ExperimentalModal, ExperimentalButton, Alert, Link, ExperimentalLoadingIndicator, ExperimentalSelect, ExperimentalInput, Divider, List } from "@edgeandnode/gds";
|
|
9
9
|
import { addrShortener } from "@edgeandnode/common";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edgeandnode/graph-auth-kit",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.8.0-safe-api-tx-svc-url-1766452950574-83c0e604053aa2586f4a7a08018c885c20aeddc9",
|
|
5
5
|
"description": "Wallet authentication connect kit in The Graph suite of applications",
|
|
6
6
|
"author": "Edge & Node",
|
|
7
7
|
"license": "UNLICENSED",
|