signer-test-sdk-react 0.0.22 → 0.0.24

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 (110) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +4 -0
  3. package/dist/src/AbstraxnProvider.d.ts +5 -13
  4. package/dist/src/AbstraxnProvider.js +14 -3126
  5. package/dist/src/AbstraxnProvider.js.map +1 -1
  6. package/dist/src/ConnectButton.css +1 -1
  7. package/dist/src/ExternalWalletButtons.css +1 -1
  8. package/dist/src/ExternalWalletButtons.js +2 -2
  9. package/dist/src/ExternalWalletButtons.js.map +1 -1
  10. package/dist/src/OnboardingUI.d.ts +1 -1
  11. package/dist/src/WalletModal.css +193 -373
  12. package/dist/src/WalletModal.d.ts +1 -1
  13. package/dist/src/WalletModal.js +108 -45
  14. package/dist/src/WalletModal.js.map +1 -1
  15. package/dist/src/chains.d.ts +4 -3
  16. package/dist/src/chains.js +154 -84
  17. package/dist/src/chains.js.map +1 -1
  18. package/dist/src/components/AbstraxnProvider/AbstraxnProvider.d.ts +12 -0
  19. package/dist/src/components/AbstraxnProvider/AbstraxnProvider.js +146 -0
  20. package/dist/src/components/AbstraxnProvider/AbstraxnProvider.js.map +1 -0
  21. package/dist/src/components/AbstraxnProvider/AbstraxnProviderInner.d.ts +25 -0
  22. package/dist/src/components/AbstraxnProvider/AbstraxnProviderInner.js +3086 -0
  23. package/dist/src/components/AbstraxnProvider/AbstraxnProviderInner.js.map +1 -0
  24. package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithWagmi.d.ts +8 -0
  25. package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithWagmi.js +46 -0
  26. package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithWagmi.js.map +1 -0
  27. package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithoutWagmi.d.ts +8 -0
  28. package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithoutWagmi.js +12 -0
  29. package/dist/src/components/AbstraxnProvider/AbstraxnProviderWithoutWagmi.js.map +1 -0
  30. package/dist/src/components/AbstraxnProvider/context.d.ts +2 -0
  31. package/dist/src/components/AbstraxnProvider/context.js +6 -0
  32. package/dist/src/components/AbstraxnProvider/context.js.map +1 -0
  33. package/dist/src/components/AbstraxnProvider/index.d.ts +6 -0
  34. package/dist/src/components/AbstraxnProvider/index.js +7 -0
  35. package/dist/src/components/AbstraxnProvider/index.js.map +1 -0
  36. package/dist/src/components/AbstraxnProvider/useAbstraxnProviderBase.d.ts +30 -0
  37. package/dist/src/components/AbstraxnProvider/useAbstraxnProviderBase.js +49 -0
  38. package/dist/src/components/AbstraxnProvider/useAbstraxnProviderBase.js.map +1 -0
  39. package/dist/src/components/AbstraxnProvider/useAbstraxnWallet.d.ts +2 -0
  40. package/dist/src/components/AbstraxnProvider/useAbstraxnWallet.js +13 -0
  41. package/dist/src/components/AbstraxnProvider/useAbstraxnWallet.js.map +1 -0
  42. package/dist/src/components/AbstraxnProvider/useOAuthCallbacks.d.ts +22 -0
  43. package/dist/src/components/AbstraxnProvider/useOAuthCallbacks.js +242 -0
  44. package/dist/src/components/AbstraxnProvider/useOAuthCallbacks.js.map +1 -0
  45. package/dist/src/components/AbstraxnProvider/useWalletInitialization.d.ts +25 -0
  46. package/dist/src/components/AbstraxnProvider/useWalletInitialization.js +539 -0
  47. package/dist/src/components/AbstraxnProvider/useWalletInitialization.js.map +1 -0
  48. package/dist/src/components/AbstraxnProvider/utils.d.ts +41 -0
  49. package/dist/src/components/AbstraxnProvider/utils.js +139 -0
  50. package/dist/src/components/AbstraxnProvider/utils.js.map +1 -0
  51. package/dist/src/components/OnboardingUI/OnboardingUI.css +8 -5
  52. package/dist/src/components/OnboardingUI/OnboardingUIReact.d.ts +1 -1
  53. package/dist/src/components/OnboardingUI/OnboardingUIWeb.d.ts +1 -1
  54. package/dist/src/components/OnboardingUI/OnboardingUIWeb.js +7 -1
  55. package/dist/src/components/OnboardingUI/OnboardingUIWeb.js.map +1 -1
  56. package/dist/src/components/OnboardingUI/components/EmailForm.d.ts +1 -1
  57. package/dist/src/components/OnboardingUI/components/EmailForm.js +1 -1
  58. package/dist/src/components/OnboardingUI/components/EmailForm.js.map +1 -1
  59. package/dist/src/components/OnboardingUI/components/OtpForm.d.ts +1 -1
  60. package/dist/src/components/OnboardingUI/components/PasskeyButton.d.ts +1 -1
  61. package/dist/src/components/OnboardingUI/components/SocialButtons.d.ts +1 -1
  62. package/dist/src/components/OnboardingUI/hooks/useAuthMethods.d.ts +1 -1
  63. package/dist/src/components/OnboardingUI/hooks/useOnboarding.d.ts +1 -1
  64. package/dist/src/components/OnboardingUI/index.d.ts +1 -1
  65. package/dist/src/components/WalletModal/components/ChainSelector.css +249 -102
  66. package/dist/src/components/WalletModal/components/ChainSelector.d.ts +7 -6
  67. package/dist/src/components/WalletModal/components/ChainSelector.js +68 -27
  68. package/dist/src/components/WalletModal/components/ChainSelector.js.map +1 -1
  69. package/dist/src/components/WalletModal/components/ExportKeyModal.css +89 -88
  70. package/dist/src/components/WalletModal/components/ExportKeyModal.d.ts +6 -1
  71. package/dist/src/components/WalletModal/components/ExportKeyModal.js +6 -11
  72. package/dist/src/components/WalletModal/components/ExportKeyModal.js.map +1 -1
  73. package/dist/src/components/WalletModal/components/ExportWarningModal.css +107 -2
  74. package/dist/src/components/WalletModal/components/ExportWarningModal.d.ts +7 -1
  75. package/dist/src/components/WalletModal/components/ExportWarningModal.js +5 -3
  76. package/dist/src/components/WalletModal/components/ExportWarningModal.js.map +1 -1
  77. package/dist/src/components/WalletModal/components/ManageWalletModal.css +90 -4
  78. package/dist/src/components/WalletModal/components/ManageWalletModal.d.ts +3 -3
  79. package/dist/src/components/WalletModal/components/ManageWalletModal.js +28 -13
  80. package/dist/src/components/WalletModal/components/ManageWalletModal.js.map +1 -1
  81. package/dist/src/components/WalletModal/components/PreviewTransactionModal.css +3 -4
  82. package/dist/src/components/WalletModal/components/ReceiveModal.css +93 -58
  83. package/dist/src/components/WalletModal/components/ReceiveModal.js +1 -1
  84. package/dist/src/components/WalletModal/components/ReceiveModal.js.map +1 -1
  85. package/dist/src/components/WalletModal/components/SendModal.css +170 -127
  86. package/dist/src/components/WalletModal/components/SendModal.d.ts +4 -6
  87. package/dist/src/components/WalletModal/components/SendModal.js +131 -39
  88. package/dist/src/components/WalletModal/components/SendModal.js.map +1 -1
  89. package/dist/src/components/WalletModal/components/SuccessModal.css +7 -8
  90. package/dist/src/components/WalletModal/components/TokenSelectorModal.css +240 -0
  91. package/dist/src/components/WalletModal/components/TokenSelectorModal.d.ts +21 -0
  92. package/dist/src/components/WalletModal/components/TokenSelectorModal.js +44 -0
  93. package/dist/src/components/WalletModal/components/TokenSelectorModal.js.map +1 -0
  94. package/dist/src/components/WalletModal/components/UserAvatar.d.ts +1 -1
  95. package/dist/src/components/WalletModal/components/index.d.ts +2 -0
  96. package/dist/src/components/WalletModal/components/index.js +1 -0
  97. package/dist/src/components/WalletModal/components/index.js.map +1 -1
  98. package/dist/src/components/WalletModal/hooks/useSendTransaction.d.ts +1 -1
  99. package/dist/src/hooks.d.ts +402 -362
  100. package/dist/src/hooks.js +486 -244
  101. package/dist/src/hooks.js.map +1 -1
  102. package/dist/src/index.d.ts +1 -1
  103. package/dist/src/index.js +1 -1
  104. package/dist/src/index.js.map +1 -1
  105. package/dist/src/types.d.ts +6 -6
  106. package/dist/src/wagmiConfig.d.ts +2 -2
  107. package/dist/src/wagmiConfig.js +34 -21
  108. package/dist/src/wagmiConfig.js.map +1 -1
  109. package/dist/tsconfig.tsbuildinfo +1 -1
  110. package/package.json +5 -4
@@ -1,4 +1,4 @@
1
- import type { WhoamiResponse, TransactionRequest, TransactionResponse, AbstraxnWallet } from 'signer-test-sdk-core';
1
+ import type { WhoamiResponse, TransactionRequest } from '@abstraxn/signer-core';
2
2
  import type { Chain, PublicClient, Address, Abi, GetContractReturnType, TransactionReceipt } from 'viem';
3
3
  import { type ConnectorType, type ConnectorMeta } from './connectors';
4
4
  /**
@@ -13,22 +13,14 @@ export declare function useAddress(): string | null;
13
13
  * Hook to get current user and whoami information
14
14
  * Returns an object with both user and whoami data
15
15
  */
16
- export declare function useUser(): {
17
- user: import("signer-test-sdk-core").User | null;
16
+ export declare function useAuthContext(): {
17
+ user: import("@abstraxn/signer-core").User | null;
18
18
  whoami: WhoamiResponse | null;
19
19
  };
20
20
  /**
21
21
  * Hook to get current chain ID
22
22
  */
23
23
  export declare function useChainId(): number | null;
24
- /**
25
- * Hook to check if wallet is initialized
26
- */
27
- export declare function useIsInitialized(): boolean;
28
- /**
29
- * Hook to get loading state
30
- */
31
- export declare function useLoading(): boolean;
32
24
  /**
33
25
  * Hook to get error state
34
26
  */
@@ -37,41 +29,7 @@ export { useAbstraxnWallet } from './AbstraxnProvider';
37
29
  /**
38
30
  * Hook to get wallet instance (for advanced usage)
39
31
  */
40
- export declare function useWallet(): AbstraxnWallet | null;
41
- /**
42
- * Hook to prepare and sign transaction
43
- * Prepares the unsigned transaction, calls the sign API, and returns the signed transaction
44
- * User can execute this signed transaction themselves
45
- */
46
- export declare function usePrepareTransaction(): {
47
- prepareTransaction: (to: string, value: string, rpcUrl: string, chainId: number) => Promise<{
48
- unsignedTransaction: import("viem").TransactionSerializedLegacy;
49
- signedTransaction: string;
50
- }>;
51
- isConnected: boolean;
52
- address: string | null;
53
- };
54
- /**
55
- * Hook to sign transaction via API
56
- * Returns the signed transaction that user can execute themselves
57
- */
58
- export declare function useSignTransaction(): {
59
- signTransaction: (unsignedTransaction: string, fromAddress?: string) => Promise<{
60
- signedTransaction: string;
61
- }>;
62
- isConnected: boolean;
63
- address: string | null;
64
- };
65
- /**
66
- * Hook to sign and send transaction
67
- * Signs transaction via API and then executes it internally
68
- * Returns transaction hash
69
- */
70
- export declare function useSignAndSendTransaction(): {
71
- signAndSendTransaction: (unsignedTransaction: string, fromAddress?: string, rpcUrl?: string) => Promise<TransactionResponse>;
72
- isConnected: boolean;
73
- address: string | null;
74
- };
32
+ export declare function useWallet(): import("@abstraxn/signer-core").AbstraxnWallet | null;
75
33
  /**
76
34
  * Hook to export wallet private key
77
35
  * Returns the export bundle containing the private key
@@ -183,7 +141,7 @@ export declare function useExternalWalletInfo(): {
183
141
  * @param tx - Transaction request object
184
142
  * @returns Promise resolving to transaction response with hash
185
143
  */
186
- sendTransaction: (tx: TransactionRequest) => Promise<TransactionResponse>;
144
+ sendTransaction: (tx: TransactionRequest) => Promise<import("@abstraxn/signer-core").TransactionResponse>;
187
145
  /**
188
146
  * Sign a message using external wallet
189
147
  * @param message - Message string to sign
@@ -214,7 +172,7 @@ export declare function useExternalWalletInfo(): {
214
172
  *
215
173
  * @example
216
174
  * ```tsx
217
- * import { usePublicClient } from 'signer-test-sdk-react';
175
+ * import { usePublicClient } from '@abstraxn/signer-react';
218
176
  * import { polygonAmoy } from 'viem/chains';
219
177
  *
220
178
  * function MyComponent() {
@@ -269,10 +227,8 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
269
227
  getBlobBaseFee: () => Promise<import("viem").GetBlobBaseFeeReturnType>;
270
228
  getBlock: <includeTransactions extends boolean = false, blockTag extends import("viem").BlockTag = "latest">(args?: import("viem").GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
271
229
  number: blockTag extends "pending" ? null : bigint;
272
- size: bigint;
273
230
  hash: blockTag extends "pending" ? null : `0x${string}`;
274
231
  nonce: blockTag extends "pending" ? null : `0x${string}`;
275
- gasUsed: bigint;
276
232
  logsBloom: blockTag extends "pending" ? null : `0x${string}`;
277
233
  baseFeePerGas: bigint | null;
278
234
  blobGasUsed: bigint;
@@ -280,6 +236,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
280
236
  excessBlobGas: bigint;
281
237
  extraData: import("viem").Hex;
282
238
  gasLimit: bigint;
239
+ gasUsed: bigint;
283
240
  miner: Address;
284
241
  mixHash: import("viem").Hash;
285
242
  parentBeaconBlockRoot?: `0x${string}` | undefined;
@@ -287,6 +244,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
287
244
  receiptsRoot: import("viem").Hex;
288
245
  sealFields: import("viem").Hex[];
289
246
  sha3Uncles: import("viem").Hash;
247
+ size: bigint;
290
248
  stateRoot: import("viem").Hash;
291
249
  timestamp: bigint;
292
250
  totalDifficulty: bigint | null;
@@ -295,129 +253,129 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
295
253
  withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
296
254
  withdrawalsRoot?: `0x${string}` | undefined;
297
255
  transactions: includeTransactions extends true ? ({
298
- value: bigint;
299
256
  type: "legacy";
300
- r: import("viem").Hex;
301
- s: import("viem").Hex;
257
+ value: bigint;
302
258
  yParity?: undefined | undefined;
303
- v: bigint;
304
- hash: import("viem").Hash;
305
- chainId?: number | undefined;
306
- input: import("viem").Hex;
307
259
  from: Address;
308
260
  gas: bigint;
261
+ hash: import("viem").Hash;
262
+ input: import("viem").Hex;
309
263
  nonce: number;
264
+ r: import("viem").Hex;
265
+ s: import("viem").Hex;
310
266
  to: Address | null;
311
- gasPrice: bigint;
312
- maxPriorityFeePerGas?: undefined | undefined;
313
- maxFeePerGas?: undefined | undefined;
267
+ typeHex: import("viem").Hex | null;
268
+ v: bigint;
314
269
  accessList?: undefined | undefined;
315
270
  authorizationList?: undefined | undefined;
316
271
  blobVersionedHashes?: undefined | undefined;
272
+ chainId?: number | undefined;
273
+ gasPrice: bigint;
317
274
  maxFeePerBlobGas?: undefined | undefined;
318
- typeHex: import("viem").Hex | null;
319
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
320
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
275
+ maxFeePerGas?: undefined | undefined;
276
+ maxPriorityFeePerGas?: undefined | undefined;
277
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never;
278
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
321
279
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
322
280
  } | {
323
- value: bigint;
324
281
  type: "eip2930";
325
- r: import("viem").Hex;
326
- s: import("viem").Hex;
282
+ value: bigint;
327
283
  yParity: number;
328
- v: bigint;
329
- hash: import("viem").Hash;
330
- chainId: number;
331
- input: import("viem").Hex;
332
284
  from: Address;
333
285
  gas: bigint;
286
+ hash: import("viem").Hash;
287
+ input: import("viem").Hex;
334
288
  nonce: number;
289
+ r: import("viem").Hex;
290
+ s: import("viem").Hex;
335
291
  to: Address | null;
336
- gasPrice: bigint;
337
- maxPriorityFeePerGas?: undefined | undefined;
338
- maxFeePerGas?: undefined | undefined;
292
+ typeHex: import("viem").Hex | null;
293
+ v: bigint;
339
294
  accessList: import("viem").AccessList;
340
295
  authorizationList?: undefined | undefined;
341
296
  blobVersionedHashes?: undefined | undefined;
297
+ chainId: number;
298
+ gasPrice: bigint;
342
299
  maxFeePerBlobGas?: undefined | undefined;
343
- typeHex: import("viem").Hex | null;
344
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : bigint : never : never;
345
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : `0x${string}` : never : never;
300
+ maxFeePerGas?: undefined | undefined;
301
+ maxPriorityFeePerGas?: undefined | undefined;
302
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : `0x${string}` : never : never;
303
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
346
304
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
347
305
  } | {
348
- value: bigint;
349
306
  type: "eip1559";
350
- r: import("viem").Hex;
351
- s: import("viem").Hex;
307
+ value: bigint;
352
308
  yParity: number;
353
- v: bigint;
354
- hash: import("viem").Hash;
355
- chainId: number;
356
- input: import("viem").Hex;
357
309
  from: Address;
358
310
  gas: bigint;
311
+ hash: import("viem").Hash;
312
+ input: import("viem").Hex;
359
313
  nonce: number;
314
+ r: import("viem").Hex;
315
+ s: import("viem").Hex;
360
316
  to: Address | null;
361
- gasPrice?: undefined | undefined;
362
- maxPriorityFeePerGas: bigint;
363
- maxFeePerGas: bigint;
317
+ typeHex: import("viem").Hex | null;
318
+ v: bigint;
364
319
  accessList: import("viem").AccessList;
365
320
  authorizationList?: undefined | undefined;
366
321
  blobVersionedHashes?: undefined | undefined;
322
+ chainId: number;
323
+ gasPrice?: undefined | undefined;
367
324
  maxFeePerBlobGas?: undefined | undefined;
368
- typeHex: import("viem").Hex | null;
369
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : bigint : never : never;
370
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : `0x${string}` : never : never;
325
+ maxFeePerGas: bigint;
326
+ maxPriorityFeePerGas: bigint;
327
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : `0x${string}` : never : never;
328
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
371
329
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
372
330
  } | {
373
- value: bigint;
374
331
  type: "eip4844";
375
- r: import("viem").Hex;
376
- s: import("viem").Hex;
332
+ value: bigint;
377
333
  yParity: number;
378
- v: bigint;
379
- hash: import("viem").Hash;
380
- chainId: number;
381
- input: import("viem").Hex;
382
334
  from: Address;
383
335
  gas: bigint;
336
+ hash: import("viem").Hash;
337
+ input: import("viem").Hex;
384
338
  nonce: number;
339
+ r: import("viem").Hex;
340
+ s: import("viem").Hex;
385
341
  to: Address | null;
386
- gasPrice?: undefined | undefined;
387
- maxPriorityFeePerGas: bigint;
388
- maxFeePerGas: bigint;
342
+ typeHex: import("viem").Hex | null;
343
+ v: bigint;
389
344
  accessList: import("viem").AccessList;
390
345
  authorizationList?: undefined | undefined;
391
346
  blobVersionedHashes: readonly import("viem").Hex[];
347
+ chainId: number;
348
+ gasPrice?: undefined | undefined;
392
349
  maxFeePerBlobGas: bigint;
393
- typeHex: import("viem").Hex | null;
394
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : bigint : never : never;
395
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : `0x${string}` : never : never;
350
+ maxFeePerGas: bigint;
351
+ maxPriorityFeePerGas: bigint;
352
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : `0x${string}` : never : never;
353
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
396
354
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
397
355
  } | {
398
- value: bigint;
399
356
  type: "eip7702";
400
- r: import("viem").Hex;
401
- s: import("viem").Hex;
357
+ value: bigint;
402
358
  yParity: number;
403
- v: bigint;
404
- hash: import("viem").Hash;
405
- chainId: number;
406
- input: import("viem").Hex;
407
359
  from: Address;
408
360
  gas: bigint;
361
+ hash: import("viem").Hash;
362
+ input: import("viem").Hex;
409
363
  nonce: number;
364
+ r: import("viem").Hex;
365
+ s: import("viem").Hex;
410
366
  to: Address | null;
411
- gasPrice?: undefined | undefined;
412
- maxPriorityFeePerGas: bigint;
413
- maxFeePerGas: bigint;
367
+ typeHex: import("viem").Hex | null;
368
+ v: bigint;
414
369
  accessList: import("viem").AccessList;
415
370
  authorizationList: import("viem").SignedAuthorizationList;
416
371
  blobVersionedHashes?: undefined | undefined;
372
+ chainId: number;
373
+ gasPrice?: undefined | undefined;
417
374
  maxFeePerBlobGas?: undefined | undefined;
418
- typeHex: import("viem").Hex | null;
419
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : bigint : never : never;
420
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : `0x${string}` : never : never;
375
+ maxFeePerGas: bigint;
376
+ maxPriorityFeePerGas: bigint;
377
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : `0x${string}` : never : never;
378
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : bigint : never : never;
421
379
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never;
422
380
  })[] : `0x${string}`[];
423
381
  }>;
@@ -445,129 +403,129 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
445
403
  } | undefined) => Promise<import("viem").EstimateMaxPriorityFeePerGasReturnType>;
446
404
  getStorageAt: (args: import("viem").GetStorageAtParameters) => Promise<import("viem").GetStorageAtReturnType>;
447
405
  getTransaction: <blockTag extends import("viem").BlockTag = "latest">(args: import("viem").GetTransactionParameters<blockTag>) => Promise<{
448
- value: bigint;
449
406
  type: "legacy";
450
- r: import("viem").Hex;
451
- s: import("viem").Hex;
407
+ value: bigint;
452
408
  yParity?: undefined | undefined;
453
- v: bigint;
454
- hash: import("viem").Hash;
455
- chainId?: number | undefined;
456
- input: import("viem").Hex;
457
409
  from: Address;
458
410
  gas: bigint;
411
+ hash: import("viem").Hash;
412
+ input: import("viem").Hex;
459
413
  nonce: number;
414
+ r: import("viem").Hex;
415
+ s: import("viem").Hex;
460
416
  to: Address | null;
461
- gasPrice: bigint;
462
- maxPriorityFeePerGas?: undefined | undefined;
463
- maxFeePerGas?: undefined | undefined;
417
+ typeHex: import("viem").Hex | null;
418
+ v: bigint;
464
419
  accessList?: undefined | undefined;
465
420
  authorizationList?: undefined | undefined;
466
421
  blobVersionedHashes?: undefined | undefined;
422
+ chainId?: number | undefined;
423
+ gasPrice: bigint;
467
424
  maxFeePerBlobGas?: undefined | undefined;
468
- typeHex: import("viem").Hex | null;
469
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : bigint : never : never;
470
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
425
+ maxFeePerGas?: undefined | undefined;
426
+ maxPriorityFeePerGas?: undefined | undefined;
427
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never;
428
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
471
429
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
472
430
  } | {
473
- value: bigint;
474
431
  type: "eip2930";
475
- r: import("viem").Hex;
476
- s: import("viem").Hex;
432
+ value: bigint;
477
433
  yParity: number;
478
- v: bigint;
479
- hash: import("viem").Hash;
480
- chainId: number;
481
- input: import("viem").Hex;
482
434
  from: Address;
483
435
  gas: bigint;
436
+ hash: import("viem").Hash;
437
+ input: import("viem").Hex;
484
438
  nonce: number;
439
+ r: import("viem").Hex;
440
+ s: import("viem").Hex;
485
441
  to: Address | null;
486
- gasPrice: bigint;
487
- maxPriorityFeePerGas?: undefined | undefined;
488
- maxFeePerGas?: undefined | undefined;
442
+ typeHex: import("viem").Hex | null;
443
+ v: bigint;
489
444
  accessList: import("viem").AccessList;
490
445
  authorizationList?: undefined | undefined;
491
446
  blobVersionedHashes?: undefined | undefined;
447
+ chainId: number;
448
+ gasPrice: bigint;
492
449
  maxFeePerBlobGas?: undefined | undefined;
493
- typeHex: import("viem").Hex | null;
494
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : bigint : never : never;
495
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : `0x${string}` : never : never;
450
+ maxFeePerGas?: undefined | undefined;
451
+ maxPriorityFeePerGas?: undefined | undefined;
452
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : `0x${string}` : never : never;
453
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
496
454
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
497
455
  } | {
498
- value: bigint;
499
456
  type: "eip1559";
500
- r: import("viem").Hex;
501
- s: import("viem").Hex;
457
+ value: bigint;
502
458
  yParity: number;
503
- v: bigint;
504
- hash: import("viem").Hash;
505
- chainId: number;
506
- input: import("viem").Hex;
507
459
  from: Address;
508
460
  gas: bigint;
461
+ hash: import("viem").Hash;
462
+ input: import("viem").Hex;
509
463
  nonce: number;
464
+ r: import("viem").Hex;
465
+ s: import("viem").Hex;
510
466
  to: Address | null;
511
- gasPrice?: undefined | undefined;
512
- maxPriorityFeePerGas: bigint;
513
- maxFeePerGas: bigint;
467
+ typeHex: import("viem").Hex | null;
468
+ v: bigint;
514
469
  accessList: import("viem").AccessList;
515
470
  authorizationList?: undefined | undefined;
516
471
  blobVersionedHashes?: undefined | undefined;
472
+ chainId: number;
473
+ gasPrice?: undefined | undefined;
517
474
  maxFeePerBlobGas?: undefined | undefined;
518
- typeHex: import("viem").Hex | null;
519
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : bigint : never : never;
520
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : `0x${string}` : never : never;
475
+ maxFeePerGas: bigint;
476
+ maxPriorityFeePerGas: bigint;
477
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : `0x${string}` : never : never;
478
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
521
479
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
522
480
  } | {
523
- value: bigint;
524
481
  type: "eip4844";
525
- r: import("viem").Hex;
526
- s: import("viem").Hex;
482
+ value: bigint;
527
483
  yParity: number;
528
- v: bigint;
529
- hash: import("viem").Hash;
530
- chainId: number;
531
- input: import("viem").Hex;
532
484
  from: Address;
533
485
  gas: bigint;
486
+ hash: import("viem").Hash;
487
+ input: import("viem").Hex;
534
488
  nonce: number;
489
+ r: import("viem").Hex;
490
+ s: import("viem").Hex;
535
491
  to: Address | null;
536
- gasPrice?: undefined | undefined;
537
- maxPriorityFeePerGas: bigint;
538
- maxFeePerGas: bigint;
492
+ typeHex: import("viem").Hex | null;
493
+ v: bigint;
539
494
  accessList: import("viem").AccessList;
540
495
  authorizationList?: undefined | undefined;
541
496
  blobVersionedHashes: readonly import("viem").Hex[];
497
+ chainId: number;
498
+ gasPrice?: undefined | undefined;
542
499
  maxFeePerBlobGas: bigint;
543
- typeHex: import("viem").Hex | null;
544
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : bigint : never : never;
545
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : `0x${string}` : never : never;
500
+ maxFeePerGas: bigint;
501
+ maxPriorityFeePerGas: bigint;
502
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : `0x${string}` : never : never;
503
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
546
504
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
547
505
  } | {
548
- value: bigint;
549
506
  type: "eip7702";
550
- r: import("viem").Hex;
551
- s: import("viem").Hex;
507
+ value: bigint;
552
508
  yParity: number;
553
- v: bigint;
554
- hash: import("viem").Hash;
555
- chainId: number;
556
- input: import("viem").Hex;
557
509
  from: Address;
558
510
  gas: bigint;
511
+ hash: import("viem").Hash;
512
+ input: import("viem").Hex;
559
513
  nonce: number;
514
+ r: import("viem").Hex;
515
+ s: import("viem").Hex;
560
516
  to: Address | null;
561
- gasPrice?: undefined | undefined;
562
- maxPriorityFeePerGas: bigint;
563
- maxFeePerGas: bigint;
517
+ typeHex: import("viem").Hex | null;
518
+ v: bigint;
564
519
  accessList: import("viem").AccessList;
565
520
  authorizationList: import("viem").SignedAuthorizationList;
566
521
  blobVersionedHashes?: undefined | undefined;
522
+ chainId: number;
523
+ gasPrice?: undefined | undefined;
567
524
  maxFeePerBlobGas?: undefined | undefined;
568
- typeHex: import("viem").Hex | null;
569
- blockNumber: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : bigint : never : never;
570
- blockHash: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : `0x${string}` : never : never;
525
+ maxFeePerGas: bigint;
526
+ maxPriorityFeePerGas: bigint;
527
+ blockHash: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : `0x${string}` : never : never;
528
+ blockNumber: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : bigint : never : never;
571
529
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never;
572
530
  }>;
573
531
  getTransactionConfirmations: (args: import("viem").GetTransactionConfirmationsParameters<Chain | undefined>) => Promise<import("viem").GetTransactionConfirmationsReturnType>;
@@ -3826,7 +3784,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
3826
3784
  authorizationList: import("viem").TransactionSerializableEIP7702["authorizationList"];
3827
3785
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? import("viem").TransactionRequestEIP7702 : never : never : never)>> & {
3828
3786
  chainId?: number | undefined;
3829
- }, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "chainId" | "gas" | "nonce" | "blobVersionedHashes" | "fees") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "chainId" | "gas" | "nonce" | "blobVersionedHashes" | "fees") ? T_13 extends "fees" ? "gasPrice" | "maxPriorityFeePerGas" | "maxFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K]; } : never>;
3787
+ }, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K]; } : never>;
3830
3788
  readContract: <const abi extends Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi, "pure" | "view">, const args extends import("viem").ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: import("viem").ReadContractParameters<abi, functionName, args>) => Promise<import("viem").ReadContractReturnType<abi, functionName, args>>;
3831
3789
  sendRawTransaction: (args: import("viem").SendRawTransactionParameters) => Promise<import("viem").SendRawTransactionReturnType>;
3832
3790
  sendRawTransactionSync: (args: import("viem").SendRawTransactionSyncParameters) => Promise<TransactionReceipt>;
@@ -3874,7 +3832,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
3874
3832
  *
3875
3833
  * @example
3876
3834
  * ```tsx
3877
- * import { useWalletClient } from 'signer-test-sdk-react';
3835
+ * import { useWalletClient } from '@abstraxn/signer-react';
3878
3836
  * import { polygonAmoy } from 'viem/chains';
3879
3837
  *
3880
3838
  * function MyComponent() {
@@ -7170,7 +7128,7 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
7170
7128
  authorizationList: import("viem").TransactionSerializableEIP7702["authorizationList"];
7171
7129
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? import("viem").TransactionRequestEIP7702 : never : never : never)>> & {
7172
7130
  chainId?: number | undefined;
7173
- }, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "chainId" | "gas" | "nonce" | "blobVersionedHashes" | "fees") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "chainId" | "gas" | "nonce" | "blobVersionedHashes" | "fees") ? T_13 extends "fees" ? "gasPrice" | "maxPriorityFeePerGas" | "maxFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K]; } : never>;
7131
+ }, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K]; } : never>;
7174
7132
  requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
7175
7133
  requestPermissions: (args: import("viem").RequestPermissionsParameters) => Promise<import("viem").RequestPermissionsReturnType>;
7176
7134
  sendCalls: <const calls extends readonly unknown[], chainOverride extends Chain | undefined = undefined>(parameters: import("viem").SendCallsParameters<Chain | undefined, import("viem").Account | undefined, chainOverride, calls>) => Promise<{
@@ -8099,64 +8057,63 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
8099
8057
  [x: `address[${string}]`]: undefined;
8100
8058
  [x: `bool[${string}]`]: undefined;
8101
8059
  [x: `bytes[${string}]`]: undefined;
8102
- [x: `bytes2[${string}]`]: undefined;
8103
8060
  [x: `bytes1[${string}]`]: undefined;
8104
- [x: `bytes10[${string}]`]: undefined;
8105
- [x: `bytes32[${string}]`]: undefined;
8106
- [x: `bytes16[${string}]`]: undefined;
8107
- [x: `bytes8[${string}]`]: undefined;
8108
- [x: `bytes4[${string}]`]: undefined;
8061
+ [x: `bytes2[${string}]`]: undefined;
8109
8062
  [x: `bytes3[${string}]`]: undefined;
8110
- [x: `bytes15[${string}]`]: undefined;
8111
- [x: `bytes26[${string}]`]: undefined;
8112
- [x: `bytes18[${string}]`]: undefined;
8113
- [x: `bytes27[${string}]`]: undefined;
8114
- [x: `bytes28[${string}]`]: undefined;
8115
- [x: `bytes12[${string}]`]: undefined;
8116
- [x: `bytes6[${string}]`]: undefined;
8063
+ [x: `bytes4[${string}]`]: undefined;
8117
8064
  [x: `bytes5[${string}]`]: undefined;
8118
- [x: `bytes31[${string}]`]: undefined;
8065
+ [x: `bytes6[${string}]`]: undefined;
8119
8066
  [x: `bytes7[${string}]`]: undefined;
8120
- [x: `bytes22[${string}]`]: undefined;
8067
+ [x: `bytes8[${string}]`]: undefined;
8121
8068
  [x: `bytes9[${string}]`]: undefined;
8069
+ [x: `bytes10[${string}]`]: undefined;
8122
8070
  [x: `bytes11[${string}]`]: undefined;
8071
+ [x: `bytes12[${string}]`]: undefined;
8123
8072
  [x: `bytes13[${string}]`]: undefined;
8124
8073
  [x: `bytes14[${string}]`]: undefined;
8074
+ [x: `bytes15[${string}]`]: undefined;
8075
+ [x: `bytes16[${string}]`]: undefined;
8125
8076
  [x: `bytes17[${string}]`]: undefined;
8077
+ [x: `bytes18[${string}]`]: undefined;
8126
8078
  [x: `bytes19[${string}]`]: undefined;
8127
8079
  [x: `bytes20[${string}]`]: undefined;
8128
8080
  [x: `bytes21[${string}]`]: undefined;
8081
+ [x: `bytes22[${string}]`]: undefined;
8129
8082
  [x: `bytes23[${string}]`]: undefined;
8130
8083
  [x: `bytes24[${string}]`]: undefined;
8131
8084
  [x: `bytes25[${string}]`]: undefined;
8085
+ [x: `bytes26[${string}]`]: undefined;
8086
+ [x: `bytes27[${string}]`]: undefined;
8087
+ [x: `bytes28[${string}]`]: undefined;
8132
8088
  [x: `bytes29[${string}]`]: undefined;
8133
8089
  [x: `bytes30[${string}]`]: undefined;
8090
+ [x: `bytes31[${string}]`]: undefined;
8091
+ [x: `bytes32[${string}]`]: undefined;
8134
8092
  [x: `int[${string}]`]: undefined;
8135
- [x: `int48[${string}]`]: undefined;
8136
- [x: `int32[${string}]`]: undefined;
8137
- [x: `int256[${string}]`]: undefined;
8138
- [x: `int16[${string}]`]: undefined;
8139
8093
  [x: `int8[${string}]`]: undefined;
8140
- [x: `int64[${string}]`]: undefined;
8141
- [x: `int40[${string}]`]: undefined;
8142
- [x: `int88[${string}]`]: undefined;
8143
- [x: `int160[${string}]`]: undefined;
8144
- [x: `int96[${string}]`]: undefined;
8145
- [x: `int128[${string}]`]: undefined;
8146
- [x: `int192[${string}]`]: undefined;
8094
+ [x: `int16[${string}]`]: undefined;
8147
8095
  [x: `int24[${string}]`]: undefined;
8096
+ [x: `int32[${string}]`]: undefined;
8097
+ [x: `int40[${string}]`]: undefined;
8098
+ [x: `int48[${string}]`]: undefined;
8148
8099
  [x: `int56[${string}]`]: undefined;
8100
+ [x: `int64[${string}]`]: undefined;
8149
8101
  [x: `int72[${string}]`]: undefined;
8150
8102
  [x: `int80[${string}]`]: undefined;
8103
+ [x: `int88[${string}]`]: undefined;
8104
+ [x: `int96[${string}]`]: undefined;
8151
8105
  [x: `int104[${string}]`]: undefined;
8152
8106
  [x: `int112[${string}]`]: undefined;
8153
8107
  [x: `int120[${string}]`]: undefined;
8108
+ [x: `int128[${string}]`]: undefined;
8154
8109
  [x: `int136[${string}]`]: undefined;
8155
8110
  [x: `int144[${string}]`]: undefined;
8156
8111
  [x: `int152[${string}]`]: undefined;
8112
+ [x: `int160[${string}]`]: undefined;
8157
8113
  [x: `int168[${string}]`]: undefined;
8158
8114
  [x: `int176[${string}]`]: undefined;
8159
8115
  [x: `int184[${string}]`]: undefined;
8116
+ [x: `int192[${string}]`]: undefined;
8160
8117
  [x: `int200[${string}]`]: undefined;
8161
8118
  [x: `int208[${string}]`]: undefined;
8162
8119
  [x: `int216[${string}]`]: undefined;
@@ -8164,32 +8121,32 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
8164
8121
  [x: `int232[${string}]`]: undefined;
8165
8122
  [x: `int240[${string}]`]: undefined;
8166
8123
  [x: `int248[${string}]`]: undefined;
8124
+ [x: `int256[${string}]`]: undefined;
8167
8125
  [x: `uint[${string}]`]: undefined;
8168
- [x: `uint48[${string}]`]: undefined;
8169
- [x: `uint32[${string}]`]: undefined;
8170
- [x: `uint256[${string}]`]: undefined;
8171
- [x: `uint16[${string}]`]: undefined;
8172
8126
  [x: `uint8[${string}]`]: undefined;
8173
- [x: `uint64[${string}]`]: undefined;
8174
- [x: `uint40[${string}]`]: undefined;
8175
- [x: `uint88[${string}]`]: undefined;
8176
- [x: `uint160[${string}]`]: undefined;
8177
- [x: `uint96[${string}]`]: undefined;
8178
- [x: `uint128[${string}]`]: undefined;
8179
- [x: `uint192[${string}]`]: undefined;
8127
+ [x: `uint16[${string}]`]: undefined;
8180
8128
  [x: `uint24[${string}]`]: undefined;
8129
+ [x: `uint32[${string}]`]: undefined;
8130
+ [x: `uint40[${string}]`]: undefined;
8131
+ [x: `uint48[${string}]`]: undefined;
8181
8132
  [x: `uint56[${string}]`]: undefined;
8133
+ [x: `uint64[${string}]`]: undefined;
8182
8134
  [x: `uint72[${string}]`]: undefined;
8183
8135
  [x: `uint80[${string}]`]: undefined;
8136
+ [x: `uint88[${string}]`]: undefined;
8137
+ [x: `uint96[${string}]`]: undefined;
8184
8138
  [x: `uint104[${string}]`]: undefined;
8185
8139
  [x: `uint112[${string}]`]: undefined;
8186
8140
  [x: `uint120[${string}]`]: undefined;
8141
+ [x: `uint128[${string}]`]: undefined;
8187
8142
  [x: `uint136[${string}]`]: undefined;
8188
8143
  [x: `uint144[${string}]`]: undefined;
8189
8144
  [x: `uint152[${string}]`]: undefined;
8145
+ [x: `uint160[${string}]`]: undefined;
8190
8146
  [x: `uint168[${string}]`]: undefined;
8191
8147
  [x: `uint176[${string}]`]: undefined;
8192
8148
  [x: `uint184[${string}]`]: undefined;
8149
+ [x: `uint192[${string}]`]: undefined;
8193
8150
  [x: `uint200[${string}]`]: undefined;
8194
8151
  [x: `uint208[${string}]`]: undefined;
8195
8152
  [x: `uint216[${string}]`]: undefined;
@@ -8197,67 +8154,67 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
8197
8154
  [x: `uint232[${string}]`]: undefined;
8198
8155
  [x: `uint240[${string}]`]: undefined;
8199
8156
  [x: `uint248[${string}]`]: undefined;
8157
+ [x: `uint256[${string}]`]: undefined;
8200
8158
  string?: undefined;
8201
8159
  address?: undefined;
8202
8160
  bool?: undefined;
8203
8161
  bytes?: undefined;
8204
- bytes2?: undefined;
8205
8162
  bytes1?: undefined;
8206
- bytes10?: undefined;
8207
- bytes32?: undefined;
8208
- bytes16?: undefined;
8209
- bytes8?: undefined;
8210
- bytes4?: undefined;
8163
+ bytes2?: undefined;
8211
8164
  bytes3?: undefined;
8212
- bytes15?: undefined;
8213
- bytes26?: undefined;
8214
- bytes18?: undefined;
8215
- bytes27?: undefined;
8216
- bytes28?: undefined;
8217
- bytes12?: undefined;
8218
- bytes6?: undefined;
8165
+ bytes4?: undefined;
8219
8166
  bytes5?: undefined;
8220
- bytes31?: undefined;
8167
+ bytes6?: undefined;
8221
8168
  bytes7?: undefined;
8222
- bytes22?: undefined;
8169
+ bytes8?: undefined;
8223
8170
  bytes9?: undefined;
8171
+ bytes10?: undefined;
8224
8172
  bytes11?: undefined;
8173
+ bytes12?: undefined;
8225
8174
  bytes13?: undefined;
8226
8175
  bytes14?: undefined;
8176
+ bytes15?: undefined;
8177
+ bytes16?: undefined;
8227
8178
  bytes17?: undefined;
8179
+ bytes18?: undefined;
8228
8180
  bytes19?: undefined;
8229
8181
  bytes20?: undefined;
8230
8182
  bytes21?: undefined;
8183
+ bytes22?: undefined;
8231
8184
  bytes23?: undefined;
8232
8185
  bytes24?: undefined;
8233
8186
  bytes25?: undefined;
8187
+ bytes26?: undefined;
8188
+ bytes27?: undefined;
8189
+ bytes28?: undefined;
8234
8190
  bytes29?: undefined;
8235
8191
  bytes30?: undefined;
8236
- int48?: undefined;
8237
- int32?: undefined;
8238
- int256?: undefined;
8239
- int16?: undefined;
8192
+ bytes31?: undefined;
8193
+ bytes32?: undefined;
8240
8194
  int8?: undefined;
8241
- int64?: undefined;
8242
- int40?: undefined;
8243
- int88?: undefined;
8244
- int160?: undefined;
8245
- int96?: undefined;
8246
- int128?: undefined;
8247
- int192?: undefined;
8195
+ int16?: undefined;
8248
8196
  int24?: undefined;
8197
+ int32?: undefined;
8198
+ int40?: undefined;
8199
+ int48?: undefined;
8249
8200
  int56?: undefined;
8201
+ int64?: undefined;
8250
8202
  int72?: undefined;
8251
8203
  int80?: undefined;
8204
+ int88?: undefined;
8205
+ int96?: undefined;
8252
8206
  int104?: undefined;
8253
8207
  int112?: undefined;
8254
8208
  int120?: undefined;
8209
+ int128?: undefined;
8255
8210
  int136?: undefined;
8256
8211
  int144?: undefined;
8257
8212
  int152?: undefined;
8213
+ int160?: undefined;
8258
8214
  int168?: undefined;
8259
8215
  int176?: undefined;
8260
8216
  int184?: undefined;
8217
+ int192?: undefined;
8261
8218
  int200?: undefined;
8262
8219
  int208?: undefined;
8263
8220
  int216?: undefined;
@@ -8265,31 +8222,31 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
8265
8222
  int232?: undefined;
8266
8223
  int240?: undefined;
8267
8224
  int248?: undefined;
8268
- uint48?: undefined;
8269
- uint32?: undefined;
8270
- uint256?: undefined;
8271
- uint16?: undefined;
8225
+ int256?: undefined;
8272
8226
  uint8?: undefined;
8273
- uint64?: undefined;
8274
- uint40?: undefined;
8275
- uint88?: undefined;
8276
- uint160?: undefined;
8277
- uint96?: undefined;
8278
- uint128?: undefined;
8279
- uint192?: undefined;
8227
+ uint16?: undefined;
8280
8228
  uint24?: undefined;
8229
+ uint32?: undefined;
8230
+ uint40?: undefined;
8231
+ uint48?: undefined;
8281
8232
  uint56?: undefined;
8233
+ uint64?: undefined;
8282
8234
  uint72?: undefined;
8283
8235
  uint80?: undefined;
8236
+ uint88?: undefined;
8237
+ uint96?: undefined;
8284
8238
  uint104?: undefined;
8285
8239
  uint112?: undefined;
8286
8240
  uint120?: undefined;
8241
+ uint128?: undefined;
8287
8242
  uint136?: undefined;
8288
8243
  uint144?: undefined;
8289
8244
  uint152?: undefined;
8245
+ uint160?: undefined;
8290
8246
  uint168?: undefined;
8291
8247
  uint176?: undefined;
8292
8248
  uint184?: undefined;
8249
+ uint192?: undefined;
8293
8250
  uint200?: undefined;
8294
8251
  uint208?: undefined;
8295
8252
  uint216?: undefined;
@@ -8297,6 +8254,7 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
8297
8254
  uint232?: undefined;
8298
8255
  uint240?: undefined;
8299
8256
  uint248?: undefined;
8257
+ uint256?: undefined;
8300
8258
  } | {
8301
8259
  [key: string]: unknown;
8302
8260
  }, primaryType extends string>(args: import("viem").SignTypedDataParameters<typedData, primaryType, import("viem").Account | undefined>) => Promise<import("viem").SignTypedDataReturnType>;
@@ -8334,7 +8292,7 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
8334
8292
  *
8335
8293
  * @example
8336
8294
  * ```tsx
8337
- * import { useContract, usePublicClient } from 'signer-test-sdk-react';
8295
+ * import { useContract, usePublicClient } from '@abstraxn/signer-react';
8338
8296
  * import { polygonAmoy } from 'viem/chains';
8339
8297
  * import erc20Abi from './erc20Abi.json';
8340
8298
  *
@@ -8408,14 +8366,14 @@ export declare function usePrepareRawTxn(provider: PublicClient): {
8408
8366
  prepareRawTxn: ({ from, to, value, data, abi, functionName, args, }: {
8409
8367
  from: Address;
8410
8368
  to: Address;
8411
- value?: string | number;
8369
+ value?: string | number | bigint;
8412
8370
  data?: `0x${string}`;
8413
8371
  abi?: Abi;
8414
8372
  functionName?: string;
8415
8373
  args?: any[];
8416
8374
  }) => Promise<{
8417
8375
  to: Address;
8418
- value: `0x${string}`;
8376
+ value: string | bigint;
8419
8377
  data: `0x${string}`;
8420
8378
  }>;
8421
8379
  };
@@ -8432,28 +8390,34 @@ export declare function usePrepareRawTxn(provider: PublicClient): {
8432
8390
  * const { signTxn } = useSignTxn(publicClient);
8433
8391
  *
8434
8392
  * // Prepare transaction
8435
- * const rawTx = await prepareRawTxn({
8436
- * from: address!,
8437
- * to: '0x...',
8438
- * value: '0.001',
8439
- * });
8440
- *
8441
- * // Sign transaction
8393
+ * const rawTx = await prepareRawTxn({ from: address!, to: '0x...', value: '0.001' });
8394
+ * const { estimateGas } = useEstimateGas(publicClient);
8395
+ * const { getGasPrice } = useGetGasPrice(publicClient);
8396
+ * const { gasLimit } = await estimateGas({ account: address!, to: rawTx.to, data: rawTx.data, value: rawTx.value });
8397
+ * const fees = await getGasPrice();
8442
8398
  * const signedTx = await signTxn({
8443
8399
  * from: address!,
8444
- * ...rawTx, // Spread to, value, data from prepareRawTxn
8400
+ * ...rawTx,
8401
+ * gas: { gasLimit, maxFeePerGas: fees.maxFeePerGas!, maxPriorityFeePerGas: fees.maxPriorityFeePerGas! },
8445
8402
  * });
8446
8403
  * ```
8447
8404
  */
8448
8405
  export declare function useSignTxn(provider: PublicClient): {
8449
- signTxn: ({ from, to, value, data, chainId, }: {
8406
+ signTxn: ({ from, to, value, data, chainId, gas, }: {
8450
8407
  from: Address;
8451
8408
  to: Address;
8452
- value: `0x${string}`;
8409
+ value: string | bigint;
8453
8410
  data: `0x${string}`;
8454
8411
  chainId?: number;
8412
+ /** Gas: optionally pass gasLimit + (maxFeePerGas & maxPriorityFeePerGas for EIP-1559) or (gasPrice for legacy). */
8413
+ gas?: {
8414
+ gasLimit?: bigint;
8415
+ gasPrice?: bigint;
8416
+ maxFeePerGas?: bigint;
8417
+ maxPriorityFeePerGas?: bigint;
8418
+ };
8455
8419
  }) => Promise<{
8456
- unsignedTransaction: `0x02${string}`;
8420
+ unsignedTransaction: `0x02${string}` | `0x01${string}` | `0x03${string}` | `0x04${string}` | import("viem").TransactionSerializedLegacy;
8457
8421
  signedTransaction: string;
8458
8422
  }>;
8459
8423
  isConnected: boolean;
@@ -8472,31 +8436,36 @@ export declare function useSignTxn(provider: PublicClient): {
8472
8436
  * const { signAndSendTxn } = useSignAndSendTxn(publicClient);
8473
8437
  *
8474
8438
  * // Prepare transaction
8475
- * const rawTx = await prepareRawTxn({
8476
- * from: address!,
8477
- * to: '0x...',
8478
- * value: '0.001',
8479
- * });
8480
- *
8481
- * // Sign and send transaction
8439
+ * const rawTx = await prepareRawTxn({ from: address!, to: '0x...', value: '0.001' });
8440
+ * const { estimateGas } = useEstimateGas(publicClient);
8441
+ * const { getGasPrice } = useGetGasPrice(publicClient);
8442
+ * const { gasLimit } = await estimateGas({ account: address!, to: rawTx.to, data: rawTx.data, value: rawTx.value });
8443
+ * const fees = await getGasPrice();
8482
8444
  * const result = await signAndSendTxn({
8483
8445
  * from: address!,
8484
- * ...rawTx, // Spread to, value, data from prepareRawTxn
8446
+ * ...rawTx,
8447
+ * gas: { gasLimit, maxFeePerGas: fees.maxFeePerGas!, maxPriorityFeePerGas: fees.maxPriorityFeePerGas! },
8485
8448
  * });
8486
- *
8487
8449
  * console.log('Transaction hash:', result.hash);
8488
8450
  * ```
8489
8451
  */
8490
8452
  export declare function useSignAndSendTxn(provider: PublicClient): {
8491
- signAndSendTxn: ({ from, to, value, data, chainId, }: {
8453
+ signAndSendTxn: ({ from, to, value, data, chainId, gas, }: {
8492
8454
  from: Address;
8493
8455
  to: Address;
8494
- value: `0x${string}`;
8456
+ value: string | bigint;
8495
8457
  data: `0x${string}`;
8496
8458
  chainId?: number;
8459
+ /** Gas: optionally pass gasLimit + (maxFeePerGas & maxPriorityFeePerGas for EIP-1559) or (gasPrice for legacy). */
8460
+ gas?: {
8461
+ gasLimit?: bigint;
8462
+ gasPrice?: bigint;
8463
+ maxFeePerGas?: bigint;
8464
+ maxPriorityFeePerGas?: bigint;
8465
+ };
8497
8466
  }) => Promise<{
8498
8467
  hash: `0x${string}`;
8499
- unsignedTransaction: `0x02${string}`;
8468
+ unsignedTransaction: `0x02${string}` | `0x01${string}` | `0x03${string}` | `0x04${string}` | import("viem").TransactionSerializedLegacy;
8500
8469
  signedTransaction: string;
8501
8470
  }>;
8502
8471
  isConnected: boolean;
@@ -8536,6 +8505,58 @@ export declare function useWaitForTxnReceipt(provider: PublicClient): {
8536
8505
  timeout?: number;
8537
8506
  }) => Promise<TransactionReceipt>;
8538
8507
  };
8508
+ /**
8509
+ * Hook to estimate gas for a transaction
8510
+ * Returns gasLimit to pass as gas.gasLimit to useSignTxn / useSignAndSendTxn (use useGetGasPrice for fees; no estimation inside those hooks).
8511
+ *
8512
+ * @param provider - PublicClient instance (can be created using usePublicClient hook)
8513
+ * @returns Object with estimateGas function
8514
+ *
8515
+ * @example
8516
+ * ```tsx
8517
+ * const { estimateGas } = useEstimateGas(publicClient);
8518
+ * const result = await estimateGas({
8519
+ * account: address!,
8520
+ * to: rawTx.to,
8521
+ * data: rawTx.data,
8522
+ * value: rawTx.value,
8523
+ * });
8524
+ * // gas: { gasLimit: result.gasLimit }
8525
+ * ```
8526
+ */
8527
+ export declare function useEstimateGas(provider: PublicClient): {
8528
+ estimateGas: ({ account, to, data, value, }: {
8529
+ account: Address;
8530
+ to: Address;
8531
+ data?: `0x${string}`;
8532
+ value?: string | bigint;
8533
+ }) => Promise<{
8534
+ gasLimit: bigint;
8535
+ }>;
8536
+ };
8537
+ /**
8538
+ * Hook to get current gas price / EIP-1559 fees from the chain.
8539
+ * Use with useEstimateGas when you need gas limit and gas price for the gas param in useSignTxn / useSignAndSendTxn.
8540
+ *
8541
+ * @param provider - PublicClient instance (can be created using usePublicClient hook)
8542
+ * @returns Object with getGasPrice function returning maxFeePerGas, maxPriorityFeePerGas, and/or gasPrice
8543
+ *
8544
+ * @example
8545
+ * ```tsx
8546
+ * const { publicClient } = usePublicClient(...);
8547
+ * const { getGasPrice } = useGetGasPrice(publicClient);
8548
+ * const fees = await getGasPrice();
8549
+ * // EIP-1559: gas: { gasLimit, maxFeePerGas: fees.maxFeePerGas!, maxPriorityFeePerGas: fees.maxPriorityFeePerGas! }
8550
+ * // Legacy: gas: { gasLimit, gasPrice: fees.gasPrice! }
8551
+ * ```
8552
+ */
8553
+ export declare function useGetGasPrice(provider: PublicClient): {
8554
+ getGasPrice: () => Promise<{
8555
+ gasPrice?: bigint;
8556
+ maxFeePerGas?: bigint;
8557
+ maxPriorityFeePerGas?: bigint;
8558
+ }>;
8559
+ };
8539
8560
  /**
8540
8561
  * Hook to read from contract
8541
8562
  * Reads contract data using publicClient.readContract
@@ -8582,7 +8603,7 @@ export declare function useReadContract(provider: PublicClient): {
8582
8603
  *
8583
8604
  * @example
8584
8605
  * ```tsx
8585
- * import { useExternalWalletClient } from 'signer-test-sdk-react';
8606
+ * import { useExternalWalletClient } from '@abstraxn/signer-react';
8586
8607
  *
8587
8608
  * function MyComponent() {
8588
8609
  * const { walletClient, isConnected } = useExternalWalletClient();
@@ -11875,7 +11896,7 @@ export declare function useExternalWalletClient(): {
11875
11896
  authorizationList: import("viem").TransactionSerializableEIP7702["authorizationList"];
11876
11897
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? import("viem").TransactionRequestEIP7702 : never : never : never)>> & {
11877
11898
  chainId?: number | undefined;
11878
- }, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "chainId" | "gas" | "nonce" | "blobVersionedHashes" | "fees") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "chainId" | "gas" | "nonce" | "blobVersionedHashes" | "fees") ? T_13 extends "fees" ? "gasPrice" | "maxPriorityFeePerGas" | "maxFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K]; } : never>;
11899
+ }, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "fees" | "gas" | "nonce" | "blobVersionedHashes" | "chainId") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K]; } : never>;
11879
11900
  requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
11880
11901
  requestPermissions: (args: import("viem").RequestPermissionsParameters) => Promise<import("viem").RequestPermissionsReturnType>;
11881
11902
  sendCalls: <const calls extends readonly unknown[], chainOverride extends Chain | undefined = undefined>(parameters: import("viem").SendCallsParameters<Chain, import("viem").Account, chainOverride, calls>) => Promise<{
@@ -12804,64 +12825,63 @@ export declare function useExternalWalletClient(): {
12804
12825
  [x: `address[${string}]`]: undefined;
12805
12826
  [x: `bool[${string}]`]: undefined;
12806
12827
  [x: `bytes[${string}]`]: undefined;
12807
- [x: `bytes2[${string}]`]: undefined;
12808
12828
  [x: `bytes1[${string}]`]: undefined;
12809
- [x: `bytes10[${string}]`]: undefined;
12810
- [x: `bytes32[${string}]`]: undefined;
12811
- [x: `bytes16[${string}]`]: undefined;
12812
- [x: `bytes8[${string}]`]: undefined;
12813
- [x: `bytes4[${string}]`]: undefined;
12829
+ [x: `bytes2[${string}]`]: undefined;
12814
12830
  [x: `bytes3[${string}]`]: undefined;
12815
- [x: `bytes15[${string}]`]: undefined;
12816
- [x: `bytes26[${string}]`]: undefined;
12817
- [x: `bytes18[${string}]`]: undefined;
12818
- [x: `bytes27[${string}]`]: undefined;
12819
- [x: `bytes28[${string}]`]: undefined;
12820
- [x: `bytes12[${string}]`]: undefined;
12821
- [x: `bytes6[${string}]`]: undefined;
12831
+ [x: `bytes4[${string}]`]: undefined;
12822
12832
  [x: `bytes5[${string}]`]: undefined;
12823
- [x: `bytes31[${string}]`]: undefined;
12833
+ [x: `bytes6[${string}]`]: undefined;
12824
12834
  [x: `bytes7[${string}]`]: undefined;
12825
- [x: `bytes22[${string}]`]: undefined;
12835
+ [x: `bytes8[${string}]`]: undefined;
12826
12836
  [x: `bytes9[${string}]`]: undefined;
12837
+ [x: `bytes10[${string}]`]: undefined;
12827
12838
  [x: `bytes11[${string}]`]: undefined;
12839
+ [x: `bytes12[${string}]`]: undefined;
12828
12840
  [x: `bytes13[${string}]`]: undefined;
12829
12841
  [x: `bytes14[${string}]`]: undefined;
12842
+ [x: `bytes15[${string}]`]: undefined;
12843
+ [x: `bytes16[${string}]`]: undefined;
12830
12844
  [x: `bytes17[${string}]`]: undefined;
12845
+ [x: `bytes18[${string}]`]: undefined;
12831
12846
  [x: `bytes19[${string}]`]: undefined;
12832
12847
  [x: `bytes20[${string}]`]: undefined;
12833
12848
  [x: `bytes21[${string}]`]: undefined;
12849
+ [x: `bytes22[${string}]`]: undefined;
12834
12850
  [x: `bytes23[${string}]`]: undefined;
12835
12851
  [x: `bytes24[${string}]`]: undefined;
12836
12852
  [x: `bytes25[${string}]`]: undefined;
12853
+ [x: `bytes26[${string}]`]: undefined;
12854
+ [x: `bytes27[${string}]`]: undefined;
12855
+ [x: `bytes28[${string}]`]: undefined;
12837
12856
  [x: `bytes29[${string}]`]: undefined;
12838
12857
  [x: `bytes30[${string}]`]: undefined;
12858
+ [x: `bytes31[${string}]`]: undefined;
12859
+ [x: `bytes32[${string}]`]: undefined;
12839
12860
  [x: `int[${string}]`]: undefined;
12840
- [x: `int48[${string}]`]: undefined;
12841
- [x: `int32[${string}]`]: undefined;
12842
- [x: `int256[${string}]`]: undefined;
12843
- [x: `int16[${string}]`]: undefined;
12844
12861
  [x: `int8[${string}]`]: undefined;
12845
- [x: `int64[${string}]`]: undefined;
12846
- [x: `int40[${string}]`]: undefined;
12847
- [x: `int88[${string}]`]: undefined;
12848
- [x: `int160[${string}]`]: undefined;
12849
- [x: `int96[${string}]`]: undefined;
12850
- [x: `int128[${string}]`]: undefined;
12851
- [x: `int192[${string}]`]: undefined;
12862
+ [x: `int16[${string}]`]: undefined;
12852
12863
  [x: `int24[${string}]`]: undefined;
12864
+ [x: `int32[${string}]`]: undefined;
12865
+ [x: `int40[${string}]`]: undefined;
12866
+ [x: `int48[${string}]`]: undefined;
12853
12867
  [x: `int56[${string}]`]: undefined;
12868
+ [x: `int64[${string}]`]: undefined;
12854
12869
  [x: `int72[${string}]`]: undefined;
12855
12870
  [x: `int80[${string}]`]: undefined;
12871
+ [x: `int88[${string}]`]: undefined;
12872
+ [x: `int96[${string}]`]: undefined;
12856
12873
  [x: `int104[${string}]`]: undefined;
12857
12874
  [x: `int112[${string}]`]: undefined;
12858
12875
  [x: `int120[${string}]`]: undefined;
12876
+ [x: `int128[${string}]`]: undefined;
12859
12877
  [x: `int136[${string}]`]: undefined;
12860
12878
  [x: `int144[${string}]`]: undefined;
12861
12879
  [x: `int152[${string}]`]: undefined;
12880
+ [x: `int160[${string}]`]: undefined;
12862
12881
  [x: `int168[${string}]`]: undefined;
12863
12882
  [x: `int176[${string}]`]: undefined;
12864
12883
  [x: `int184[${string}]`]: undefined;
12884
+ [x: `int192[${string}]`]: undefined;
12865
12885
  [x: `int200[${string}]`]: undefined;
12866
12886
  [x: `int208[${string}]`]: undefined;
12867
12887
  [x: `int216[${string}]`]: undefined;
@@ -12869,32 +12889,32 @@ export declare function useExternalWalletClient(): {
12869
12889
  [x: `int232[${string}]`]: undefined;
12870
12890
  [x: `int240[${string}]`]: undefined;
12871
12891
  [x: `int248[${string}]`]: undefined;
12892
+ [x: `int256[${string}]`]: undefined;
12872
12893
  [x: `uint[${string}]`]: undefined;
12873
- [x: `uint48[${string}]`]: undefined;
12874
- [x: `uint32[${string}]`]: undefined;
12875
- [x: `uint256[${string}]`]: undefined;
12876
- [x: `uint16[${string}]`]: undefined;
12877
12894
  [x: `uint8[${string}]`]: undefined;
12878
- [x: `uint64[${string}]`]: undefined;
12879
- [x: `uint40[${string}]`]: undefined;
12880
- [x: `uint88[${string}]`]: undefined;
12881
- [x: `uint160[${string}]`]: undefined;
12882
- [x: `uint96[${string}]`]: undefined;
12883
- [x: `uint128[${string}]`]: undefined;
12884
- [x: `uint192[${string}]`]: undefined;
12895
+ [x: `uint16[${string}]`]: undefined;
12885
12896
  [x: `uint24[${string}]`]: undefined;
12897
+ [x: `uint32[${string}]`]: undefined;
12898
+ [x: `uint40[${string}]`]: undefined;
12899
+ [x: `uint48[${string}]`]: undefined;
12886
12900
  [x: `uint56[${string}]`]: undefined;
12901
+ [x: `uint64[${string}]`]: undefined;
12887
12902
  [x: `uint72[${string}]`]: undefined;
12888
12903
  [x: `uint80[${string}]`]: undefined;
12904
+ [x: `uint88[${string}]`]: undefined;
12905
+ [x: `uint96[${string}]`]: undefined;
12889
12906
  [x: `uint104[${string}]`]: undefined;
12890
12907
  [x: `uint112[${string}]`]: undefined;
12891
12908
  [x: `uint120[${string}]`]: undefined;
12909
+ [x: `uint128[${string}]`]: undefined;
12892
12910
  [x: `uint136[${string}]`]: undefined;
12893
12911
  [x: `uint144[${string}]`]: undefined;
12894
12912
  [x: `uint152[${string}]`]: undefined;
12913
+ [x: `uint160[${string}]`]: undefined;
12895
12914
  [x: `uint168[${string}]`]: undefined;
12896
12915
  [x: `uint176[${string}]`]: undefined;
12897
12916
  [x: `uint184[${string}]`]: undefined;
12917
+ [x: `uint192[${string}]`]: undefined;
12898
12918
  [x: `uint200[${string}]`]: undefined;
12899
12919
  [x: `uint208[${string}]`]: undefined;
12900
12920
  [x: `uint216[${string}]`]: undefined;
@@ -12902,67 +12922,67 @@ export declare function useExternalWalletClient(): {
12902
12922
  [x: `uint232[${string}]`]: undefined;
12903
12923
  [x: `uint240[${string}]`]: undefined;
12904
12924
  [x: `uint248[${string}]`]: undefined;
12925
+ [x: `uint256[${string}]`]: undefined;
12905
12926
  string?: undefined;
12906
12927
  address?: undefined;
12907
12928
  bool?: undefined;
12908
12929
  bytes?: undefined;
12909
- bytes2?: undefined;
12910
12930
  bytes1?: undefined;
12911
- bytes10?: undefined;
12912
- bytes32?: undefined;
12913
- bytes16?: undefined;
12914
- bytes8?: undefined;
12915
- bytes4?: undefined;
12931
+ bytes2?: undefined;
12916
12932
  bytes3?: undefined;
12917
- bytes15?: undefined;
12918
- bytes26?: undefined;
12919
- bytes18?: undefined;
12920
- bytes27?: undefined;
12921
- bytes28?: undefined;
12922
- bytes12?: undefined;
12923
- bytes6?: undefined;
12933
+ bytes4?: undefined;
12924
12934
  bytes5?: undefined;
12925
- bytes31?: undefined;
12935
+ bytes6?: undefined;
12926
12936
  bytes7?: undefined;
12927
- bytes22?: undefined;
12937
+ bytes8?: undefined;
12928
12938
  bytes9?: undefined;
12939
+ bytes10?: undefined;
12929
12940
  bytes11?: undefined;
12941
+ bytes12?: undefined;
12930
12942
  bytes13?: undefined;
12931
12943
  bytes14?: undefined;
12944
+ bytes15?: undefined;
12945
+ bytes16?: undefined;
12932
12946
  bytes17?: undefined;
12947
+ bytes18?: undefined;
12933
12948
  bytes19?: undefined;
12934
12949
  bytes20?: undefined;
12935
12950
  bytes21?: undefined;
12951
+ bytes22?: undefined;
12936
12952
  bytes23?: undefined;
12937
12953
  bytes24?: undefined;
12938
12954
  bytes25?: undefined;
12955
+ bytes26?: undefined;
12956
+ bytes27?: undefined;
12957
+ bytes28?: undefined;
12939
12958
  bytes29?: undefined;
12940
12959
  bytes30?: undefined;
12941
- int48?: undefined;
12942
- int32?: undefined;
12943
- int256?: undefined;
12944
- int16?: undefined;
12960
+ bytes31?: undefined;
12961
+ bytes32?: undefined;
12945
12962
  int8?: undefined;
12946
- int64?: undefined;
12947
- int40?: undefined;
12948
- int88?: undefined;
12949
- int160?: undefined;
12950
- int96?: undefined;
12951
- int128?: undefined;
12952
- int192?: undefined;
12963
+ int16?: undefined;
12953
12964
  int24?: undefined;
12965
+ int32?: undefined;
12966
+ int40?: undefined;
12967
+ int48?: undefined;
12954
12968
  int56?: undefined;
12969
+ int64?: undefined;
12955
12970
  int72?: undefined;
12956
12971
  int80?: undefined;
12972
+ int88?: undefined;
12973
+ int96?: undefined;
12957
12974
  int104?: undefined;
12958
12975
  int112?: undefined;
12959
12976
  int120?: undefined;
12977
+ int128?: undefined;
12960
12978
  int136?: undefined;
12961
12979
  int144?: undefined;
12962
12980
  int152?: undefined;
12981
+ int160?: undefined;
12963
12982
  int168?: undefined;
12964
12983
  int176?: undefined;
12965
12984
  int184?: undefined;
12985
+ int192?: undefined;
12966
12986
  int200?: undefined;
12967
12987
  int208?: undefined;
12968
12988
  int216?: undefined;
@@ -12970,31 +12990,31 @@ export declare function useExternalWalletClient(): {
12970
12990
  int232?: undefined;
12971
12991
  int240?: undefined;
12972
12992
  int248?: undefined;
12973
- uint48?: undefined;
12974
- uint32?: undefined;
12975
- uint256?: undefined;
12976
- uint16?: undefined;
12993
+ int256?: undefined;
12977
12994
  uint8?: undefined;
12978
- uint64?: undefined;
12979
- uint40?: undefined;
12980
- uint88?: undefined;
12981
- uint160?: undefined;
12982
- uint96?: undefined;
12983
- uint128?: undefined;
12984
- uint192?: undefined;
12995
+ uint16?: undefined;
12985
12996
  uint24?: undefined;
12997
+ uint32?: undefined;
12998
+ uint40?: undefined;
12999
+ uint48?: undefined;
12986
13000
  uint56?: undefined;
13001
+ uint64?: undefined;
12987
13002
  uint72?: undefined;
12988
13003
  uint80?: undefined;
13004
+ uint88?: undefined;
13005
+ uint96?: undefined;
12989
13006
  uint104?: undefined;
12990
13007
  uint112?: undefined;
12991
13008
  uint120?: undefined;
13009
+ uint128?: undefined;
12992
13010
  uint136?: undefined;
12993
13011
  uint144?: undefined;
12994
13012
  uint152?: undefined;
13013
+ uint160?: undefined;
12995
13014
  uint168?: undefined;
12996
13015
  uint176?: undefined;
12997
13016
  uint184?: undefined;
13017
+ uint192?: undefined;
12998
13018
  uint200?: undefined;
12999
13019
  uint208?: undefined;
13000
13020
  uint216?: undefined;
@@ -13002,6 +13022,7 @@ export declare function useExternalWalletClient(): {
13002
13022
  uint232?: undefined;
13003
13023
  uint240?: undefined;
13004
13024
  uint248?: undefined;
13025
+ uint256?: undefined;
13005
13026
  } | {
13006
13027
  [key: string]: unknown;
13007
13028
  }, primaryType extends string>(args: import("viem").SignTypedDataParameters<typedData, primaryType, import("viem").Account>) => Promise<import("viem").SignTypedDataReturnType>;
@@ -13041,7 +13062,7 @@ export declare function useExternalWalletClient(): {
13041
13062
  *
13042
13063
  * @example
13043
13064
  * ```tsx
13044
- * import { useWriteContract } from 'signer-test-sdk-react';
13065
+ * import { useWriteContract } from '@abstraxn/signer-react';
13045
13066
  * import erc20Abi from './erc20Abi.json';
13046
13067
  *
13047
13068
  * function MyComponent() {
@@ -13078,7 +13099,7 @@ export declare function useExternalWalletClient(): {
13078
13099
  * ```
13079
13100
  */
13080
13101
  export declare function useWriteContract(): {
13081
- writeContract: <TAbi extends Abi>({ address, abi, functionName, args, value, account, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, }: {
13102
+ writeContract: <TAbi extends Abi>({ address, abi, functionName, args, value, account, gas, gasLimit, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, }: {
13082
13103
  address: Address;
13083
13104
  abi: TAbi;
13084
13105
  functionName: string;
@@ -13086,6 +13107,11 @@ export declare function useWriteContract(): {
13086
13107
  value?: bigint;
13087
13108
  account?: Address;
13088
13109
  gas?: bigint;
13110
+ /**
13111
+ * Optional gas limit override. This is equivalent to viem's `gas` option.
13112
+ * If both `gas` and `gasLimit` are provided, `gas` takes precedence.
13113
+ */
13114
+ gasLimit?: bigint;
13089
13115
  gasPrice?: bigint;
13090
13116
  maxFeePerGas?: bigint;
13091
13117
  maxPriorityFeePerGas?: bigint;
@@ -13101,7 +13127,7 @@ export declare function useWriteContract(): {
13101
13127
  *
13102
13128
  * @example
13103
13129
  * ```tsx
13104
- * import { useConnectionType } from 'signer-test-sdk-react';
13130
+ * import { useConnectionType } from '@abstraxn/signer-react';
13105
13131
  *
13106
13132
  * function MyComponent() {
13107
13133
  * const { connectionType, connectorMeta } = useConnectionType();
@@ -13124,3 +13150,17 @@ export declare function useConnectionType(): {
13124
13150
  connectionType: ConnectorType | null;
13125
13151
  connectorMeta: ConnectorMeta | null;
13126
13152
  };
13153
+ /**
13154
+ * Hook to switch chain
13155
+ * Handles both internal (social) and external wallets
13156
+ */
13157
+ export declare function useSwitchChain(): {
13158
+ switchChain: (chainId: number) => Promise<void>;
13159
+ };
13160
+ /**
13161
+ * Hook to sign a message
13162
+ * Handles both internal (social) and external wallets
13163
+ */
13164
+ export declare function useSignMessage(): {
13165
+ signMessage: (message: string) => Promise<`0x${string}`>;
13166
+ };