@edgeandnode/graph-auth-kit 0.2.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.
Files changed (57) hide show
  1. package/README.md +238 -0
  2. package/dist/Components/ConnectModal.d.ts +2 -0
  3. package/dist/Components/ConnectModal.d.ts.map +1 -0
  4. package/dist/Components/ConnectorOption.d.ts +13 -0
  5. package/dist/Components/ConnectorOption.d.ts.map +1 -0
  6. package/dist/Components/MultisigSignerOptions.d.ts +2 -0
  7. package/dist/Components/MultisigSignerOptions.d.ts.map +1 -0
  8. package/dist/Components/PrimaryConnectOptions.d.ts +2 -0
  9. package/dist/Components/PrimaryConnectOptions.d.ts.map +1 -0
  10. package/dist/Components/SafeInputForm.d.ts +2 -0
  11. package/dist/Components/SafeInputForm.d.ts.map +1 -0
  12. package/dist/Components/SafeSelection.d.ts +2 -0
  13. package/dist/Components/SafeSelection.d.ts.map +1 -0
  14. package/dist/GraphAuthKit.context-DBwb2jco.js +936 -0
  15. package/dist/GraphAuthKit.context.d.ts +80 -0
  16. package/dist/GraphAuthKit.context.d.ts.map +1 -0
  17. package/dist/GraphAuthKitInner.context.d.ts +109 -0
  18. package/dist/GraphAuthKitInner.context.d.ts.map +1 -0
  19. package/dist/client.d.ts +8612 -0
  20. package/dist/client.d.ts.map +1 -0
  21. package/dist/constants.d.ts +329 -0
  22. package/dist/constants.d.ts.map +1 -0
  23. package/dist/errors.d.ts +21 -0
  24. package/dist/errors.d.ts.map +1 -0
  25. package/dist/hooks.d.ts +74 -0
  26. package/dist/hooks.d.ts.map +1 -0
  27. package/dist/index.d.ts +8 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +442 -0
  30. package/dist/safe/SafeEthersSigner.d.ts +37 -0
  31. package/dist/safe/SafeEthersSigner.d.ts.map +1 -0
  32. package/dist/safe/SafeMinimal.abi.d.ts +80 -0
  33. package/dist/safe/SafeMinimal.abi.d.ts.map +1 -0
  34. package/dist/safe/constants.d.ts +26 -0
  35. package/dist/safe/constants.d.ts.map +1 -0
  36. package/dist/safe/index.d.ts +3 -0
  37. package/dist/safe/index.d.ts.map +1 -0
  38. package/dist/safe/index.js +11 -0
  39. package/dist/safe/safeViemActions.d.ts +4 -0
  40. package/dist/safe/safeViemActions.d.ts.map +1 -0
  41. package/dist/safe/utils.d.ts +38 -0
  42. package/dist/safe/utils.d.ts.map +1 -0
  43. package/dist/safe/utils.test.d.ts +2 -0
  44. package/dist/safe/utils.test.d.ts.map +1 -0
  45. package/dist/test-harness/MockGraphAuthKit.context.d.ts +102 -0
  46. package/dist/test-harness/MockGraphAuthKit.context.d.ts.map +1 -0
  47. package/dist/test-harness/index.d.ts +2 -0
  48. package/dist/test-harness/index.d.ts.map +1 -0
  49. package/dist/test-harness/index.js +63 -0
  50. package/dist/types.d.ts +54 -0
  51. package/dist/types.d.ts.map +1 -0
  52. package/dist/utils-KuRu9vB-.js +218 -0
  53. package/dist/utils.d.ts +18 -0
  54. package/dist/utils.d.ts.map +1 -0
  55. package/dist/utils.test.d.ts +2 -0
  56. package/dist/utils.test.d.ts.map +1 -0
  57. package/package.json +93 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,aAAa,EAAE,MAAM,MAAM,CAAA;AACjF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAYvB,QAAA,MAAM,4BAA4B;;;;;;;;;;EAEhC,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AACvF,wBAAgB,wBAAwB,CAAC,EACvC,KAAmB,EACnB,SAAS,GACV,EAAE,4BAA4B,GAAG,aAAa,CAe9C;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBACnB,MAAgB;;6BAEa,MAAgB,qCACrC,MA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCJ;AAED,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA"}
@@ -0,0 +1,329 @@
1
+ import { z } from 'zod';
2
+ export declare const AUTH_STORAGE_KEY: "thegraph__authstate";
3
+ export declare const MULTISIG_AUTH_STORAGE_KEY: "multisig";
4
+ export declare const L1Chain: {
5
+ blockExplorers: {
6
+ readonly default: {
7
+ readonly name: "Etherscan";
8
+ readonly url: "https://etherscan.io";
9
+ readonly apiUrl: "https://api.etherscan.io/api";
10
+ };
11
+ };
12
+ contracts: {
13
+ readonly ensRegistry: {
14
+ readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
15
+ };
16
+ readonly ensUniversalResolver: {
17
+ readonly address: "0xce01f8eee7E479C928F8919abD53E553a36CeF67";
18
+ readonly blockCreated: 19258213;
19
+ };
20
+ readonly multicall3: {
21
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
22
+ readonly blockCreated: 14353601;
23
+ };
24
+ };
25
+ id: 1;
26
+ name: "Ethereum";
27
+ nativeCurrency: {
28
+ readonly name: "Ether";
29
+ readonly symbol: "ETH";
30
+ readonly decimals: 18;
31
+ };
32
+ rpcUrls: {
33
+ readonly default: {
34
+ readonly http: readonly ["https://cloudflare-eth.com"];
35
+ };
36
+ };
37
+ sourceId?: number | undefined;
38
+ testnet?: boolean | undefined;
39
+ custom?: Record<string, unknown> | undefined;
40
+ fees?: import("viem").ChainFees<undefined> | undefined;
41
+ formatters?: undefined;
42
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
43
+ };
44
+ export declare const L1ChainTestnet: {
45
+ blockExplorers: {
46
+ readonly default: {
47
+ readonly name: "Etherscan";
48
+ readonly url: "https://sepolia.etherscan.io";
49
+ readonly apiUrl: "https://api-sepolia.etherscan.io/api";
50
+ };
51
+ };
52
+ contracts: {
53
+ readonly multicall3: {
54
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
55
+ readonly blockCreated: 751532;
56
+ };
57
+ readonly ensRegistry: {
58
+ readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
59
+ };
60
+ readonly ensUniversalResolver: {
61
+ readonly address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC";
62
+ readonly blockCreated: 5317080;
63
+ };
64
+ };
65
+ id: 11155111;
66
+ name: "Sepolia";
67
+ nativeCurrency: {
68
+ readonly name: "Sepolia Ether";
69
+ readonly symbol: "ETH";
70
+ readonly decimals: 18;
71
+ };
72
+ rpcUrls: {
73
+ readonly default: {
74
+ readonly http: readonly ["https://rpc.sepolia.org"];
75
+ };
76
+ };
77
+ sourceId?: number | undefined;
78
+ testnet: true;
79
+ custom?: Record<string, unknown> | undefined;
80
+ fees?: import("viem").ChainFees<undefined> | undefined;
81
+ formatters?: undefined;
82
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
83
+ };
84
+ export declare const L2Chain: {
85
+ blockExplorers: {
86
+ readonly default: {
87
+ readonly name: "Arbiscan";
88
+ readonly url: "https://arbiscan.io";
89
+ readonly apiUrl: "https://api.arbiscan.io/api";
90
+ };
91
+ };
92
+ contracts: {
93
+ readonly multicall3: {
94
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
95
+ readonly blockCreated: 7654707;
96
+ };
97
+ };
98
+ id: 42161;
99
+ name: "Arbitrum One";
100
+ nativeCurrency: {
101
+ readonly name: "Ether";
102
+ readonly symbol: "ETH";
103
+ readonly decimals: 18;
104
+ };
105
+ rpcUrls: {
106
+ readonly default: {
107
+ readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
108
+ };
109
+ };
110
+ sourceId?: number | undefined;
111
+ testnet?: boolean | undefined;
112
+ custom?: Record<string, unknown> | undefined;
113
+ fees?: import("viem").ChainFees<undefined> | undefined;
114
+ formatters?: undefined;
115
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
116
+ };
117
+ export declare const L2ChainTestnet: {
118
+ blockExplorers: {
119
+ readonly default: {
120
+ readonly name: "Arbiscan";
121
+ readonly url: "https://sepolia.arbiscan.io";
122
+ readonly apiUrl: "https://api-sepolia.arbiscan.io/api";
123
+ };
124
+ };
125
+ contracts: {
126
+ readonly multicall3: {
127
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
128
+ readonly blockCreated: 81930;
129
+ };
130
+ };
131
+ id: 421614;
132
+ name: "Arbitrum Sepolia";
133
+ nativeCurrency: {
134
+ readonly name: "Arbitrum Sepolia Ether";
135
+ readonly symbol: "ETH";
136
+ readonly decimals: 18;
137
+ };
138
+ rpcUrls: {
139
+ readonly default: {
140
+ readonly http: readonly ["https://sepolia-rollup.arbitrum.io/rpc"];
141
+ };
142
+ };
143
+ sourceId?: number | undefined;
144
+ testnet: true;
145
+ custom?: Record<string, unknown> | undefined;
146
+ fees?: import("viem").ChainFees<undefined> | undefined;
147
+ formatters?: undefined;
148
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
149
+ };
150
+ export declare const DefChain: {
151
+ blockExplorers: {
152
+ readonly default: {
153
+ readonly name: "Arbiscan";
154
+ readonly url: "https://arbiscan.io";
155
+ readonly apiUrl: "https://api.arbiscan.io/api";
156
+ };
157
+ };
158
+ contracts: {
159
+ readonly multicall3: {
160
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
161
+ readonly blockCreated: 7654707;
162
+ };
163
+ };
164
+ id: 42161;
165
+ name: "Arbitrum One";
166
+ nativeCurrency: {
167
+ readonly name: "Ether";
168
+ readonly symbol: "ETH";
169
+ readonly decimals: 18;
170
+ };
171
+ rpcUrls: {
172
+ readonly default: {
173
+ readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
174
+ };
175
+ };
176
+ sourceId?: number | undefined;
177
+ testnet?: boolean | undefined;
178
+ custom?: Record<string, unknown> | undefined;
179
+ fees?: import("viem").ChainFees<undefined> | undefined;
180
+ formatters?: undefined;
181
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
182
+ };
183
+ export declare const SupportedClientChainId: z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<11155111>, z.ZodLiteral<42161>, z.ZodLiteral<421614>]>>;
184
+ export type SupportedClientChainId = z.infer<typeof SupportedClientChainId>;
185
+ export declare const SupportedClientChains: readonly [{
186
+ blockExplorers: {
187
+ readonly default: {
188
+ readonly name: "Arbiscan";
189
+ readonly url: "https://arbiscan.io";
190
+ readonly apiUrl: "https://api.arbiscan.io/api";
191
+ };
192
+ };
193
+ contracts: {
194
+ readonly multicall3: {
195
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
196
+ readonly blockCreated: 7654707;
197
+ };
198
+ };
199
+ id: 42161;
200
+ name: "Arbitrum One";
201
+ nativeCurrency: {
202
+ readonly name: "Ether";
203
+ readonly symbol: "ETH";
204
+ readonly decimals: 18;
205
+ };
206
+ rpcUrls: {
207
+ readonly default: {
208
+ readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
209
+ };
210
+ };
211
+ sourceId?: number | undefined;
212
+ testnet?: boolean | undefined;
213
+ custom?: Record<string, unknown> | undefined;
214
+ fees?: import("viem").ChainFees<undefined> | undefined;
215
+ formatters?: undefined;
216
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
217
+ }, {
218
+ blockExplorers: {
219
+ readonly default: {
220
+ readonly name: "Arbiscan";
221
+ readonly url: "https://sepolia.arbiscan.io";
222
+ readonly apiUrl: "https://api-sepolia.arbiscan.io/api";
223
+ };
224
+ };
225
+ contracts: {
226
+ readonly multicall3: {
227
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
228
+ readonly blockCreated: 81930;
229
+ };
230
+ };
231
+ id: 421614;
232
+ name: "Arbitrum Sepolia";
233
+ nativeCurrency: {
234
+ readonly name: "Arbitrum Sepolia Ether";
235
+ readonly symbol: "ETH";
236
+ readonly decimals: 18;
237
+ };
238
+ rpcUrls: {
239
+ readonly default: {
240
+ readonly http: readonly ["https://sepolia-rollup.arbitrum.io/rpc"];
241
+ };
242
+ };
243
+ sourceId?: number | undefined;
244
+ testnet: true;
245
+ custom?: Record<string, unknown> | undefined;
246
+ fees?: import("viem").ChainFees<undefined> | undefined;
247
+ formatters?: undefined;
248
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
249
+ }, {
250
+ blockExplorers: {
251
+ readonly default: {
252
+ readonly name: "Etherscan";
253
+ readonly url: "https://etherscan.io";
254
+ readonly apiUrl: "https://api.etherscan.io/api";
255
+ };
256
+ };
257
+ contracts: {
258
+ readonly ensRegistry: {
259
+ readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
260
+ };
261
+ readonly ensUniversalResolver: {
262
+ readonly address: "0xce01f8eee7E479C928F8919abD53E553a36CeF67";
263
+ readonly blockCreated: 19258213;
264
+ };
265
+ readonly multicall3: {
266
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
267
+ readonly blockCreated: 14353601;
268
+ };
269
+ };
270
+ id: 1;
271
+ name: "Ethereum";
272
+ nativeCurrency: {
273
+ readonly name: "Ether";
274
+ readonly symbol: "ETH";
275
+ readonly decimals: 18;
276
+ };
277
+ rpcUrls: {
278
+ readonly default: {
279
+ readonly http: readonly ["https://cloudflare-eth.com"];
280
+ };
281
+ };
282
+ sourceId?: number | undefined;
283
+ testnet?: boolean | undefined;
284
+ custom?: Record<string, unknown> | undefined;
285
+ fees?: import("viem").ChainFees<undefined> | undefined;
286
+ formatters?: undefined;
287
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
288
+ }, {
289
+ blockExplorers: {
290
+ readonly default: {
291
+ readonly name: "Etherscan";
292
+ readonly url: "https://sepolia.etherscan.io";
293
+ readonly apiUrl: "https://api-sepolia.etherscan.io/api";
294
+ };
295
+ };
296
+ contracts: {
297
+ readonly multicall3: {
298
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
299
+ readonly blockCreated: 751532;
300
+ };
301
+ readonly ensRegistry: {
302
+ readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
303
+ };
304
+ readonly ensUniversalResolver: {
305
+ readonly address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC";
306
+ readonly blockCreated: 5317080;
307
+ };
308
+ };
309
+ id: 11155111;
310
+ name: "Sepolia";
311
+ nativeCurrency: {
312
+ readonly name: "Sepolia Ether";
313
+ readonly symbol: "ETH";
314
+ readonly decimals: 18;
315
+ };
316
+ rpcUrls: {
317
+ readonly default: {
318
+ readonly http: readonly ["https://rpc.sepolia.org"];
319
+ };
320
+ };
321
+ sourceId?: number | undefined;
322
+ testnet: true;
323
+ custom?: Record<string, unknown> | undefined;
324
+ fees?: import("viem").ChainFees<undefined> | undefined;
325
+ formatters?: undefined;
326
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
327
+ }];
328
+ export type SupportedClientChains = (typeof SupportedClientChains)[number];
329
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,gBAAgB,uBAAiC,CAAA;AAC9D,eAAO,MAAM,yBAAyB,YAAsB,CAAA;AAE5D,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkBqO,MAAgB;;yBAAyF,MAAgB,qCAAqC,MAAgB;CAlBzY,CAAA;AAC9B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiBsO,MAAgB;;yBAAyF,MAAgB,qCAAqC,MAAgB;CAjB1Y,CAAA;AACrC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAemB,MAAgB;;yBACc,MAAgB,qCAAqC,MAAgB;CAhB3G,CAAA;AAC/B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAe1B,MAAgB;;yBAAyF,MAAgB,qCAAqC,MAAgB;CAflI,CAAA;AAE7C,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAU,CAAA;AAE/B,eAAO,MAAM,sBAAsB,0HAOtB,CAAA;AACb,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAC3E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8D,CAAA;AAChG,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAA"}
@@ -0,0 +1,21 @@
1
+ export declare class ValidationError extends Error {
2
+ constructor(message: string);
3
+ }
4
+ export declare class NetworkError extends Error {
5
+ constructor(message: string);
6
+ }
7
+ export type SignerError = {
8
+ title: string;
9
+ description: string;
10
+ };
11
+ export declare const MultisigErrorMap: {
12
+ readonly INVALID_SIGNER: {
13
+ readonly title: "Signer Wallet is Invalid";
14
+ readonly description: "This wallet is not a valid signing wallet for the Multisig. You can try again with a different wallet using the options below.";
15
+ };
16
+ readonly INVALID_NETWORK: {
17
+ readonly title: "Invalid network";
18
+ readonly description: "The signing wallet must be connected to the same network as the Multisig.";
19
+ };
20
+ };
21
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,eAAgB,SAAQ,KAAK;gBAC5B,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,YAAa,SAAQ,KAAK;gBACzB,OAAO,EAAE,MAAM;CAI5B;AAID,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;CAUiD,CAAA"}
@@ -0,0 +1,74 @@
1
+ import { type providers } from 'ethers';
2
+ import { type Address } from 'viem';
3
+ import { type Config, type ResolvedRegister, type UseAccountReturnType, type UseWalletClientReturnType, type UseWriteContractParameters, type UseWriteContractReturnType } from 'wagmi';
4
+ import { SafeEthersSigner } from './safe/SafeEthersSigner';
5
+ import { type GraphAuthKitConnector } from './types';
6
+ /**
7
+ * Hook to to convert a Viem Client to an ethers.js Signer:
8
+ * - if a multisig wallet is connected return an instance of SafeEthersSigner
9
+ * - if an EoA wallet is connected return the Signer from `clientToProvider`
10
+ */
11
+ export declare function useClientToEthersSigner(): SafeEthersSigner | providers.JsonRpcSigner | undefined;
12
+ export declare function useGraphAuthKitConnector(): GraphAuthKitConnector | null;
13
+ export type UseGraphAuthKitAccountReturnType = UseAccountReturnType & Readonly<{
14
+ /** If the user is connected to a multisig, this is the EoA signer address the user is connected with */
15
+ eoa?: Address | null;
16
+ }>;
17
+ /**
18
+ * Override hook of wagmi `useAccount`.
19
+ * The GraphAuthKit lets users connect to a Safe by entering the Safe information in,
20
+ * and then connecting their EoA account through the other EoA wallet options.
21
+ *
22
+ * However, in this use-case, the connected account according to wagmi is still the EoA.
23
+ * This hook checks the inner context and if the user is connected via a multisig,
24
+ * returns the multisig address as the `address` return from the hook.
25
+ *
26
+ * Otherwise, returns the connected wallet state.
27
+ *
28
+ * @see https://wagmi.sh/react/api/hooks/useAccount
29
+ */
30
+ export declare function useGraphAuthKitAccount(): UseGraphAuthKitAccountReturnType;
31
+ /**
32
+ * Override hook of wagmi `useWalletClient`.
33
+ * The GraphAuthKit lets users connect to a Safe by entering the Safe information in,
34
+ * and then connecting their EoA account through the other EoA wallet options.
35
+ *
36
+ * However, in this use-case, the connected account according to wagmi is still the EoA.
37
+ * This hook checks the inner context and if the user is connected via a multisig,
38
+ * it returns the an extended version of the walletClient overriding the `writeContract` method.
39
+ *
40
+ * Otherwise, it returns the walletClient as is.
41
+ *
42
+ * @see https://wagmi.sh/react/api/hooks/useWalletClient
43
+ */
44
+ export declare function useGraphAuthKitWalletClient(): UseWalletClientReturnType;
45
+ /**
46
+ * Override hook of wagmi `useWriteContract`.
47
+ * The GraphAuthKit lets users connect to a Safe by entering the Safe information in,
48
+ * and then connecting their EoA account through the other EoA wallet options.
49
+ *
50
+ * However, in this use-case, the connected account according to wagmi is still the EoA.
51
+ * This hook gets the WalletClient that could be the original EOA or the Safe's WalletClient,
52
+ * and then it calls the `writeContract` method on the client itself with the passed arguments.
53
+ * The returned values are the results of `useMutation` hook just like in wagmi's `useWriteContract`.
54
+ *
55
+ * @example
56
+ *
57
+ * function ComponentWithContractCall() {
58
+ * const { data: walletClient } = useGraphAuthKitWalletClient()
59
+ * const { writeContractAsync } = useGraphAuthKitWriteContract();
60
+ *
61
+ * return (
62
+ * <button
63
+ * disabled={!walletClient}
64
+ * onClick={() => writeContractAsync({ address: '0x...', abi: [], functionName: 'mint', args: [1] })}
65
+ * >
66
+ * {!walletClient ? "Loading..." : "Mint"}
67
+ * </button>
68
+ * )
69
+ * }
70
+ *
71
+ * @see https://wagmi.sh/react/api/hooks/useWriteContract
72
+ */
73
+ export declare function useGraphAuthKitWriteContract<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: UseWriteContractParameters<config, context>): UseWriteContractReturnType<config, context>;
74
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAA;AAEvC,OAAO,EAAE,KAAK,OAAO,EAAc,MAAM,MAAM,CAAA;AAC/C,OAAO,EACL,KAAK,MAAM,EACX,KAAK,gBAAgB,EAErB,KAAK,oBAAoB,EAKzB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAChC,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAI1D,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAGpD;;;;GAIG;AACH,wBAAgB,uBAAuB,2DAwBtC;AAED,wBAAgB,wBAAwB,IAAI,qBAAqB,GAAG,IAAI,CAIvE;AAED,MAAM,MAAM,gCAAgC,GAAG,oBAAoB,GACjE,QAAQ,CAAC;IACP,wGAAwG;IACxG,GAAG,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;CACrB,CAAC,CAAA;AACJ;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,IAAI,gCAAgC,CAiCzE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,2BAA2B,IAAI,yBAAyB,CAgBvE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,EAChH,UAAU,GAAE,0BAA0B,CAAC,MAAM,EAAE,OAAO,CAAM,GAC3D,0BAA0B,CAAC,MAAM,EAAE,OAAO,CAAC,CA8B7C"}
@@ -0,0 +1,8 @@
1
+ export * from './client';
2
+ export * from './constants';
3
+ export * from './GraphAuthKit.context';
4
+ export * from './hooks';
5
+ export * from './safe';
6
+ export * from './types';
7
+ export * from './utils';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}