@edgeandnode/graph-auth-kit 7.1.0-update-form-elements-1746582512579-2b76b33cb0f9170a447dcb7fe3ba0360aeded185 → 7.1.0
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/client.d.ts +9 -9
- package/dist/ens/index.js +1 -1
- package/dist/{hooks-ClXeFY-j.js → hooks-twDEXOVd.js} +20 -2
- package/dist/index.js +5 -5
- package/dist/safe/SafeEthersSigner.d.ts +1 -0
- package/dist/safe/SafeEthersSigner.d.ts.map +1 -1
- package/dist/safe/index.js +1 -1
- package/dist/safe/safeViemActions.d.ts.map +1 -1
- package/dist/test-harness/index.js +1 -1
- package/dist/test-harness/utils.d.ts +8 -8
- package/dist/types.d.ts +3 -3
- package/dist/{useGraphAuthKitEnsNames-BEajLdia.js → useGraphAuthKitEnsNames-73LGWzqe.js} +1 -1
- package/dist/{useWaitForSafeTransaction-D4k3ZLSB.js → useWaitForSafeTransaction-BWAytvN4.js} +1 -1
- package/dist/{utils-B0FLy5o8.js → utils-DAZvb54b.js} +1 -1
- package/package.json +15 -15
package/dist/client.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HttpTransport } from 'viem';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
declare const BuildInfuraHttpTransportArgs: z.ZodObject<{
|
|
3
|
+
declare const BuildInfuraHttpTransportArgs: z.ZodObject<z.objectUtil.extendShape<{
|
|
4
4
|
infuraKey: z.ZodReadonly<z.ZodString>;
|
|
5
|
-
}
|
|
5
|
+
}, {
|
|
6
6
|
chain: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<11155111>, z.ZodLiteral<42161>, z.ZodLiteral<421614>]>>>>>;
|
|
7
|
-
}
|
|
7
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8
8
|
infuraKey: string;
|
|
9
9
|
chain: 1 | 11155111 | 42161 | 421614 | null;
|
|
10
10
|
}, {
|
|
@@ -13,9 +13,9 @@ declare const BuildInfuraHttpTransportArgs: z.ZodObject<{
|
|
|
13
13
|
}>;
|
|
14
14
|
export type BuildInfuraHttpTransportArgs = z.infer<typeof BuildInfuraHttpTransportArgs>;
|
|
15
15
|
export declare function buildInfuraHttpTransport({ chain, infuraKey, }: BuildInfuraHttpTransportArgs): HttpTransport;
|
|
16
|
-
export declare const BuildPublicClientArgs: z.ZodObject<{
|
|
16
|
+
export declare const BuildPublicClientArgs: z.ZodObject<z.objectUtil.extendShape<{
|
|
17
17
|
infuraKey: z.ZodReadonly<z.ZodString>;
|
|
18
|
-
}
|
|
18
|
+
}, {
|
|
19
19
|
chain: z.ZodDefault<z.ZodOptional<z.ZodType<{
|
|
20
20
|
graphCliName: string;
|
|
21
21
|
caip2Id: `eip155:${string}` | `eip155:${number}` | `osmosis:${string}` | `osmosis:${number}` | `arweave:${string}` | `arweave:${number}` | `antelope:${string}` | `antelope:${number}` | `bip122:${string}` | `bip122:${number}` | `cosmos:${string}` | `cosmos:${number}` | `gear:${string}` | `gear:${number}` | `near:${string}` | `near:${number}` | `beacon:${string}` | `beacon:${number}` | `solana:${string}` | `solana:${number}` | `starknet:${string}` | `starknet:${number}` | `stellar:${string}` | `stellar:${number}`;
|
|
@@ -325,7 +325,7 @@ export declare const BuildPublicClientArgs: z.ZodObject<{
|
|
|
325
325
|
formatters?: undefined;
|
|
326
326
|
serializers?: import('viem').ChainSerializers<undefined, import('viem').TransactionSerializable> | undefined;
|
|
327
327
|
}>>>;
|
|
328
|
-
}
|
|
328
|
+
}>, "strip", z.ZodTypeAny, {
|
|
329
329
|
infuraKey: string;
|
|
330
330
|
chain: {
|
|
331
331
|
graphCliName: string;
|
|
@@ -11226,9 +11226,9 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
|
|
|
11226
11226
|
}>>;
|
|
11227
11227
|
};
|
|
11228
11228
|
export type PublicClient = ReturnType<typeof buildPublicClient>;
|
|
11229
|
-
export declare const BuildClientArgs: z.ZodObject<{
|
|
11229
|
+
export declare const BuildClientArgs: z.ZodObject<z.objectUtil.extendShape<{
|
|
11230
11230
|
infuraKey: z.ZodReadonly<z.ZodString>;
|
|
11231
|
-
}
|
|
11231
|
+
}, {
|
|
11232
11232
|
chain: z.ZodDefault<z.ZodOptional<z.ZodType<{
|
|
11233
11233
|
graphCliName: string;
|
|
11234
11234
|
caip2Id: `eip155:${string}` | `eip155:${number}` | `osmosis:${string}` | `osmosis:${number}` | `arweave:${string}` | `arweave:${number}` | `antelope:${string}` | `antelope:${number}` | `bip122:${string}` | `bip122:${number}` | `cosmos:${string}` | `cosmos:${number}` | `gear:${string}` | `gear:${number}` | `near:${string}` | `near:${number}` | `beacon:${string}` | `beacon:${number}` | `solana:${string}` | `solana:${number}` | `starknet:${string}` | `starknet:${number}` | `stellar:${string}` | `stellar:${number}`;
|
|
@@ -11538,7 +11538,7 @@ export declare const BuildClientArgs: z.ZodObject<{
|
|
|
11538
11538
|
formatters?: undefined;
|
|
11539
11539
|
serializers?: import('viem').ChainSerializers<undefined, import('viem').TransactionSerializable> | undefined;
|
|
11540
11540
|
}>>>;
|
|
11541
|
-
}
|
|
11541
|
+
}>, "strip", z.ZodTypeAny, {
|
|
11542
11542
|
infuraKey: string;
|
|
11543
11543
|
chain: {
|
|
11544
11544
|
graphCliName: string;
|
package/dist/ens/index.js
CHANGED
|
@@ -144,6 +144,15 @@ class SafeEthersSigner extends VoidSigner {
|
|
|
144
144
|
}
|
|
145
145
|
return this.apiKit;
|
|
146
146
|
}
|
|
147
|
+
async getNextNonce() {
|
|
148
|
+
try {
|
|
149
|
+
const apiKit = await this.getApiKitInstance();
|
|
150
|
+
const nonce = await apiKit.getNextNonce(this.safeAddress);
|
|
151
|
+
return parseInt(nonce, 10);
|
|
152
|
+
} catch (error) {
|
|
153
|
+
throw new Error(`Failed to get next nonce: ${error instanceof Error ? error.message : String(error)}`);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
147
156
|
async buildTransactionResponse(safeTxHash, safeTx) {
|
|
148
157
|
const connectedSafe = await this.getSafeInstance();
|
|
149
158
|
const connectedService = await this.getApiKitInstance();
|
|
@@ -200,11 +209,13 @@ class SafeEthersSigner extends VoidSigner {
|
|
|
200
209
|
operation = OperationType.DelegateCall;
|
|
201
210
|
}
|
|
202
211
|
const apiKit = await this.getApiKitInstance();
|
|
212
|
+
const nonce = await this.getNextNonce();
|
|
203
213
|
const safeTransactionData = {
|
|
204
214
|
to,
|
|
205
215
|
data,
|
|
206
216
|
value: value.toString(),
|
|
207
|
-
operation
|
|
217
|
+
operation,
|
|
218
|
+
nonce
|
|
208
219
|
};
|
|
209
220
|
const estimateTx = await apiKit.estimateSafeTransaction(this.safeAddress, safeTransactionData);
|
|
210
221
|
safeTransactionData.safeTxGas = estimateTx.safeTxGas;
|
|
@@ -265,11 +276,18 @@ function safeViemActions(safeAddress, chainId) {
|
|
|
265
276
|
});
|
|
266
277
|
const dataWithSuffix = `${data}${dataSuffix ? dataSuffix.replace("0x", "") : ""}`;
|
|
267
278
|
const operation = OperationType.Call;
|
|
279
|
+
let nonce;
|
|
280
|
+
try {
|
|
281
|
+
nonce = parseInt(await apiKit.getNextNonce(safeAddress), 10);
|
|
282
|
+
} catch (error) {
|
|
283
|
+
throw new Error(`Failed to get next nonce: ${error instanceof Error ? error.message : String(error)}`);
|
|
284
|
+
}
|
|
268
285
|
const safeTransactionData = {
|
|
269
286
|
to: address,
|
|
270
287
|
data: dataWithSuffix,
|
|
271
288
|
value: value ? value.toString() : "0",
|
|
272
|
-
operation
|
|
289
|
+
operation,
|
|
290
|
+
nonce
|
|
273
291
|
};
|
|
274
292
|
const estimateTx = await apiKit.estimateSafeTransaction(safeAddress, safeTransactionData);
|
|
275
293
|
safeTransactionData.safeTxGas = estimateTx.safeTxGas;
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { m, A, k, B, D, v, G, L, n, o, p, M, O, R, u, a, S, q, r, s, t, l, g, j, w, H, I, c, b, f, h, C, z, E, F, e, i, x, d, y } from "./GraphAuthKitInner.context-B8vsvUDy.js";
|
|
3
|
-
import { G as G2, a as a2, M as M2, b as b2, d as d2, u as u2 } from "./utils-
|
|
4
|
-
import { a as useGraphAuthKitAccount, b as useGraphAuthKitConnector } from "./hooks-
|
|
5
|
-
import { d as d3, c as c2, e as e2, f as f2, g as g2, u as u3 } from "./hooks-
|
|
6
|
-
import { g as g3, u as u4, w as w2 } from "./useWaitForSafeTransaction-
|
|
3
|
+
import { G as G2, a as a2, M as M2, b as b2, d as d2, u as u2 } from "./utils-DAZvb54b.js";
|
|
4
|
+
import { a as useGraphAuthKitAccount, b as useGraphAuthKitConnector } from "./hooks-twDEXOVd.js";
|
|
5
|
+
import { d as d3, c as c2, e as e2, f as f2, g as g2, u as u3 } from "./hooks-twDEXOVd.js";
|
|
6
|
+
import { g as g3, u as u4, w as w2 } from "./useWaitForSafeTransaction-BWAytvN4.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 u5, a as a3, b as b3, c as c3 } from "./useGraphAuthKitEnsNames-
|
|
10
|
+
import { u as u5, a as a3, b as b3, c as c3 } from "./useGraphAuthKitEnsNames-73LGWzqe.js";
|
|
11
11
|
function Connected({ children }) {
|
|
12
12
|
const account = useGraphAuthKitAccount();
|
|
13
13
|
const connector = useGraphAuthKitConnector();
|
|
@@ -25,6 +25,7 @@ export declare class SafeEthersSigner extends VoidSigner {
|
|
|
25
25
|
getSafeInstance(): Promise<Safe>;
|
|
26
26
|
createApiKitInstance(): Promise<SafeApiKit>;
|
|
27
27
|
getApiKitInstance(): Promise<SafeApiKit>;
|
|
28
|
+
getNextNonce(): Promise<number>;
|
|
28
29
|
buildTransactionResponse(safeTxHash: string, safeTx: SafeTransactionData): Promise<SafeTransactionResponse>;
|
|
29
30
|
/**
|
|
30
31
|
* Populates all fields in a transaction, signs it and sends it to the Safe transaction service
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SafeEthersSigner.d.ts","sourceRoot":"","sources":["../../src/safe/SafeEthersSigner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AACnH,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAA;AAClD,OAAO,IAA8B,MAAM,2BAA2B,CAAA;AACtE,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAmC,MAAM,wBAAwB,CAAA;AACjH,OAAO,EAAa,KAAK,SAAS,EAAS,MAAM,QAAQ,CAAA;AAEzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAgGxD,eAAO,MAAM,UAAU,GAAI,SAAS,SAAS,CAAC,kBAAkB,EAAE,QAAQ,mBAAmB,uBAK5F,CAAA;AAID,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IAClE,SAAS,EAAE,aAAa,CAAA;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAGD,qBAAa,gBAAiB,SAAQ,UAAU;IAC9C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAA;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,uBAAuB,CAAA;IAC1C,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,UAAU,CAAA;gBAGjB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,SAAS,CAAC,YAAY,EAChC,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,qBAAqB,EAC9B,OAAO,CAAC,EAAE,uBAAuB;IASnC,kBAAkB;IAcZ,eAAe;IAOrB,oBAAoB;IAId,iBAAiB;IAOjB,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAqCjH;;;;;OAKG;IACY,eAAe,CAAC,WAAW,EAAE,UAAU,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAAC,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"SafeEthersSigner.d.ts","sourceRoot":"","sources":["../../src/safe/SafeEthersSigner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AACnH,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAA;AAClD,OAAO,IAA8B,MAAM,2BAA2B,CAAA;AACtE,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAmC,MAAM,wBAAwB,CAAA;AACjH,OAAO,EAAa,KAAK,SAAS,EAAS,MAAM,QAAQ,CAAA;AAEzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAgGxD,eAAO,MAAM,UAAU,GAAI,SAAS,SAAS,CAAC,kBAAkB,EAAE,QAAQ,mBAAmB,uBAK5F,CAAA;AAID,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IAClE,SAAS,EAAE,aAAa,CAAA;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAGD,qBAAa,gBAAiB,SAAQ,UAAU;IAC9C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAA;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,uBAAuB,CAAA;IAC1C,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,UAAU,CAAA;gBAGjB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,SAAS,CAAC,YAAY,EAChC,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,qBAAqB,EAC9B,OAAO,CAAC,EAAE,uBAAuB;IASnC,kBAAkB;IAcZ,eAAe;IAOrB,oBAAoB;IAId,iBAAiB;IAOjB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;IAU/B,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAqCjH;;;;;OAKG;IACY,eAAe,CAAC,WAAW,EAAE,UAAU,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAkD9G"}
|
package/dist/safe/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A, a, S, c, b, f, e, i, d } from "../GraphAuthKitInner.context-B8vsvUDy.js";
|
|
2
|
-
import { g, u, w } from "../useWaitForSafeTransaction-
|
|
2
|
+
import { g, u, w } from "../useWaitForSafeTransaction-BWAytvN4.js";
|
|
3
3
|
export {
|
|
4
4
|
A as ApiKitUrlMap,
|
|
5
5
|
a as SafeSupportedNetworkNames,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safeViemActions.d.ts","sourceRoot":"","sources":["../../src/safe/safeViemActions.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,KAAK,EAIV,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAGxD,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,IAE/E,SAAS,SAAS,SAAS,EAC3B,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACnD,OAAO,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EAEzD,QAAQ,YAAY,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,KAC9C,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"safeViemActions.d.ts","sourceRoot":"","sources":["../../src/safe/safeViemActions.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,KAAK,EAIV,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAGxD,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,IAE/E,SAAS,SAAS,SAAS,EAC3B,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACnD,OAAO,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EAEzD,QAAQ,YAAY,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,KAC9C,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,eAAe,CAAC,CA6FxD"}
|
|
@@ -4,13 +4,13 @@ import { z } from 'zod';
|
|
|
4
4
|
import { SupportedClientChainId } from '../constants';
|
|
5
5
|
import { GraphAuthKitConnector } from '../types';
|
|
6
6
|
import { MockGraphAuthKitProviderProps } from './MockGraphAuthKit.context';
|
|
7
|
-
declare const BuildMockProviderStateArgs: z.ZodUnion<readonly [z.ZodObject<{
|
|
7
|
+
declare const BuildMockProviderStateArgs: z.ZodUnion<readonly [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
8
8
|
infuraKey: z.ZodReadonly<z.ZodString>;
|
|
9
|
-
}
|
|
9
|
+
}, {
|
|
10
10
|
gatewayApiKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
|
-
}
|
|
11
|
+
}>, {
|
|
12
12
|
status: z.ZodLiteral<"disconnected">;
|
|
13
|
-
}
|
|
13
|
+
}>, "strip", z.ZodTypeAny, {
|
|
14
14
|
status: "disconnected";
|
|
15
15
|
infuraKey: string;
|
|
16
16
|
gatewayApiKey?: string | null | undefined;
|
|
@@ -18,11 +18,11 @@ declare const BuildMockProviderStateArgs: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
18
18
|
status: "disconnected";
|
|
19
19
|
infuraKey: string;
|
|
20
20
|
gatewayApiKey?: string | null | undefined;
|
|
21
|
-
}>, z.ZodObject<{
|
|
21
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
22
22
|
infuraKey: z.ZodReadonly<z.ZodString>;
|
|
23
|
-
}
|
|
23
|
+
}, {
|
|
24
24
|
gatewayApiKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
25
|
-
}
|
|
25
|
+
}>, {
|
|
26
26
|
status: z.ZodLiteral<"connected">;
|
|
27
27
|
account: z.ZodUnion<readonly [z.ZodObject<{
|
|
28
28
|
type: z.ZodLiteral<"generated">;
|
|
@@ -77,7 +77,7 @@ declare const BuildMockProviderStateArgs: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
77
77
|
};
|
|
78
78
|
chain?: 1 | 11155111 | 42161 | 421614 | undefined;
|
|
79
79
|
}>]>;
|
|
80
|
-
}
|
|
80
|
+
}>, "strip", z.ZodTypeAny, {
|
|
81
81
|
status: "connected";
|
|
82
82
|
infuraKey: string;
|
|
83
83
|
account: {
|
package/dist/types.d.ts
CHANGED
|
@@ -24,11 +24,11 @@ export declare const OptionalGatewayApiKey: z.ZodObject<{
|
|
|
24
24
|
gatewayApiKey?: string | null | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
export type OptionalGatewayApiKey = z.infer<typeof OptionalGatewayApiKey>;
|
|
27
|
-
export declare const GraphAuthKitProps: z.ZodObject<{
|
|
27
|
+
export declare const GraphAuthKitProps: z.ZodObject<z.objectUtil.extendShape<{
|
|
28
28
|
infuraKey: z.ZodReadonly<z.ZodString>;
|
|
29
|
-
}
|
|
29
|
+
}, {
|
|
30
30
|
gatewayApiKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
31
|
-
}
|
|
31
|
+
}>, "strip", z.ZodTypeAny, {
|
|
32
32
|
infuraKey: string;
|
|
33
33
|
gatewayApiKey?: string | null | undefined;
|
|
34
34
|
}, {
|
|
@@ -3,7 +3,7 @@ import { createIdenticon } from "@edgeandnode/gds";
|
|
|
3
3
|
import { getEnsAvatarQueryKey, getEnsNameQueryKey } from "@wagmi/core/query";
|
|
4
4
|
import { useQuery } from "wagmi/query";
|
|
5
5
|
import { J as useGraphAuthKitInnerContext, x as isSupportedChainId, o as L2Chain, n as L1ChainTestnet, p as L2ChainTestnet, L as L1Chain } from "./GraphAuthKitInner.context-B8vsvUDy.js";
|
|
6
|
-
import { a as useGraphAuthKitAccount } from "./hooks-
|
|
6
|
+
import { a as useGraphAuthKitAccount } from "./hooks-twDEXOVd.js";
|
|
7
7
|
import { useChainId } from "wagmi";
|
|
8
8
|
function useGraphAuthKitAvatar(args = {}) {
|
|
9
9
|
const innerCtx = useGraphAuthKitInnerContext();
|
package/dist/{useWaitForSafeTransaction-D4k3ZLSB.js → useWaitForSafeTransaction-BWAytvN4.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useQuery } from "@tanstack/react-query";
|
|
2
2
|
import { useConfig } from "wagmi";
|
|
3
|
-
import { u as useMultisigInfo } from "./hooks-
|
|
3
|
+
import { u as useMultisigInfo } from "./hooks-twDEXOVd.js";
|
|
4
4
|
import { c as createApiKit } from "./GraphAuthKitInner.context-B8vsvUDy.js";
|
|
5
5
|
async function getSafeTransaction(safeTxHash, network) {
|
|
6
6
|
const apiKit = await createApiKit(network);
|
|
@@ -529,7 +529,7 @@ function ConnectModal() {
|
|
|
529
529
|
ExperimentalModal,
|
|
530
530
|
{
|
|
531
531
|
open: ctx._connectModalOpen,
|
|
532
|
-
|
|
532
|
+
onClose: ctx._setConnectModalOpen,
|
|
533
533
|
steps: currentStep === "primary" ? [currentStep] : steps,
|
|
534
534
|
currentStep,
|
|
535
535
|
onCurrentStepChange: ctx._setModalState,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edgeandnode/graph-auth-kit",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "7.1.0
|
|
4
|
+
"version": "7.1.0",
|
|
5
5
|
"description": "Wallet authentication connect kit in The Graph suite of applications",
|
|
6
6
|
"author": "Edge & Node",
|
|
7
7
|
"license": "UNLICENSED",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"@ensdomains/ensjs": "^4.0.2",
|
|
40
40
|
"@ethersproject/abstract-signer": "^5.8.0",
|
|
41
41
|
"@safe-global/api-kit": "^3.0.1",
|
|
42
|
-
"@safe-global/protocol-kit": "^6.0.
|
|
42
|
+
"@safe-global/protocol-kit": "^6.0.2",
|
|
43
43
|
"@safe-global/types-kit": "^2.0.1",
|
|
44
|
-
"@wagmi/core": "^2.
|
|
44
|
+
"@wagmi/core": "^2.16.7",
|
|
45
45
|
"tailwindcss": "^3.4.17",
|
|
46
|
-
"zod": "^3.24.
|
|
46
|
+
"zod": "^3.24.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@emotion/react": "^11",
|
|
@@ -54,30 +54,30 @@
|
|
|
54
54
|
"theme-ui": ">=0.16",
|
|
55
55
|
"viem": "^2.21",
|
|
56
56
|
"wagmi": "^2.12",
|
|
57
|
-
"@edgeandnode/common": "^7.
|
|
57
|
+
"@edgeandnode/common": "^7.0.4",
|
|
58
58
|
"@edgeandnode/ens": "^2.1.5",
|
|
59
|
-
"@edgeandnode/gds": "^6.
|
|
60
|
-
"@edgeandnode/go": "^10.
|
|
59
|
+
"@edgeandnode/gds": "^6.5.15",
|
|
60
|
+
"@edgeandnode/go": "^10.0.4"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@emotion/react": "^11.14",
|
|
64
64
|
"@ethersproject/abstract-provider": "^5.8.0",
|
|
65
65
|
"@ethersproject/properties": "^5.8.0",
|
|
66
|
-
"@tanstack/react-query": "^5.
|
|
66
|
+
"@tanstack/react-query": "^5.72.0",
|
|
67
67
|
"@types/react": "^18.3.20",
|
|
68
|
-
"@types/react-dom": "^18.3.
|
|
69
|
-
"dotenv": "^16.
|
|
68
|
+
"@types/react-dom": "^18.3.6",
|
|
69
|
+
"dotenv": "^16.4.7",
|
|
70
70
|
"ethers": "^5.8.0",
|
|
71
71
|
"postcss": "^8.5.3",
|
|
72
72
|
"react": "^18.3.1",
|
|
73
73
|
"react-dom": "^18.3.1",
|
|
74
74
|
"ts-node": "^10.9.2",
|
|
75
|
-
"viem": "^2.
|
|
76
|
-
"wagmi": "^2.
|
|
77
|
-
"@edgeandnode/common": "^7.
|
|
75
|
+
"viem": "^2.26.1",
|
|
76
|
+
"wagmi": "^2.14.16",
|
|
77
|
+
"@edgeandnode/common": "^7.0.4",
|
|
78
|
+
"@edgeandnode/gds": "^6.5.15",
|
|
79
|
+
"@edgeandnode/go": "^10.0.4",
|
|
78
80
|
"@edgeandnode/ens": "^2.1.5",
|
|
79
|
-
"@edgeandnode/gds": "^6.6.0-update-form-elements-1746582512579-2b76b33cb0f9170a447dcb7fe3ba0360aeded185",
|
|
80
|
-
"@edgeandnode/go": "^10.1.0-update-form-elements-1746582512579-2b76b33cb0f9170a447dcb7fe3ba0360aeded185",
|
|
81
81
|
"@edgeandnode/jsx": "^1.1.0",
|
|
82
82
|
"@edgeandnode/test-utils": "^2.1.0"
|
|
83
83
|
},
|