@abstraxn/signer-react 3.3.9 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/dist/src/ConnectButton.css.d.ts +2 -0
- package/dist/src/ConnectButton.css.js +1 -0
- package/dist/src/ConnectButton.d.ts +0 -1
- package/dist/src/ConnectButton.js +7 -6
- package/dist/src/ExternalWalletButtons.css.d.ts +2 -0
- package/dist/src/ExternalWalletButtons.css.js +1 -0
- package/dist/src/ExternalWalletButtons.d.ts +4 -1
- package/dist/src/ExternalWalletButtons.js +6 -1
- package/dist/src/WalletModal.css +2 -0
- package/dist/src/WalletModal.css.d.ts +2 -0
- package/dist/src/WalletModal.css.js +1 -0
- package/dist/src/WalletModal.d.ts +2 -2
- package/dist/src/WalletModal.js +113 -59
- package/dist/src/components/AbstraxnLogo.d.ts +17 -0
- package/dist/src/components/AbstraxnLogo.js +29 -0
- package/dist/src/components/AbstraxnProvider/AbstraxnProviderInner.js +406 -338
- package/dist/src/components/AbstraxnProvider/useAbstraxnProviderBase.d.ts +7 -0
- package/dist/src/components/AbstraxnProvider/useAbstraxnProviderBase.js +9 -0
- package/dist/src/components/AbstraxnProvider/useWalletInitialization.js +41 -6
- package/dist/src/components/OnboardingUI/OnboardingUI.css +99 -4
- package/dist/src/components/OnboardingUI/OnboardingUI.css.d.ts +2 -0
- package/dist/src/components/OnboardingUI/OnboardingUI.css.js +1 -0
- package/dist/src/components/OnboardingUI/OnboardingUIReact.d.ts +0 -1
- package/dist/src/components/OnboardingUI/OnboardingUIReact.js +46 -19
- package/dist/src/components/OnboardingUI/OnboardingUIWeb.d.ts +24 -1
- package/dist/src/components/OnboardingUI/OnboardingUIWeb.js +348 -160
- package/dist/src/components/OnboardingUI/components/Divider.d.ts +7 -0
- package/dist/src/components/OnboardingUI/components/Divider.js +9 -0
- package/dist/src/components/OnboardingUI/components/EmailForm.d.ts +0 -1
- package/dist/src/components/OnboardingUI/components/EmailForm.js +1 -2
- package/dist/src/components/OnboardingUI/components/MfaForm.d.ts +0 -1
- package/dist/src/components/OnboardingUI/components/MfaForm.js +2 -3
- package/dist/src/components/OnboardingUI/components/Modal.d.ts +0 -1
- package/dist/src/components/OnboardingUI/components/Modal.js +12 -4
- package/dist/src/components/OnboardingUI/components/OtpForm.d.ts +0 -1
- package/dist/src/components/OnboardingUI/components/OtpForm.js +2 -3
- package/dist/src/components/OnboardingUI/components/PasskeyButton.d.ts +0 -1
- package/dist/src/components/OnboardingUI/components/PasskeyButton.js +2 -2
- package/dist/src/components/OnboardingUI/components/SocialButtons.d.ts +0 -1
- package/dist/src/components/OnboardingUI/components/SocialButtons.js +3 -3
- package/dist/src/components/OnboardingUI/onboardingShadowContainer.d.ts +9 -0
- package/dist/src/components/OnboardingUI/onboardingShadowContainer.js +36 -0
- package/dist/src/components/ShadowHost/ShadowHost.d.ts +18 -0
- package/dist/src/components/ShadowHost/ShadowHost.js +123 -0
- package/dist/src/components/ShadowHost/ShadowHostContext.d.ts +10 -0
- package/dist/src/components/ShadowHost/ShadowHostContext.js +14 -0
- package/dist/src/components/ShadowHost/index.d.ts +2 -0
- package/dist/src/components/ShadowHost/index.js +3 -0
- package/dist/src/components/WalletModal/components/ChainSelector.css +9 -0
- package/dist/src/components/WalletModal/components/ChainSelector.css.d.ts +2 -0
- package/dist/src/components/WalletModal/components/ChainSelector.css.js +1 -0
- package/dist/src/components/WalletModal/components/ChainSelector.d.ts +0 -1
- package/dist/src/components/WalletModal/components/ChainSelector.js +78 -23
- package/dist/src/components/WalletModal/components/CodeInput.d.ts +12 -0
- package/dist/src/components/WalletModal/components/CodeInput.js +39 -0
- package/dist/src/components/WalletModal/components/ExportKeyModal.css.d.ts +2 -0
- package/dist/src/components/WalletModal/components/ExportKeyModal.css.js +1 -0
- package/dist/src/components/WalletModal/components/ExportKeyModal.d.ts +0 -2
- package/dist/src/components/WalletModal/components/ExportKeyModal.js +2 -4
- package/dist/src/components/WalletModal/components/ExportWarningModal.css.d.ts +2 -0
- package/dist/src/components/WalletModal/components/ExportWarningModal.css.js +1 -0
- package/dist/src/components/WalletModal/components/ExportWarningModal.d.ts +0 -2
- package/dist/src/components/WalletModal/components/ExportWarningModal.js +2 -4
- package/dist/src/components/WalletModal/components/ManageWalletModal.css +27 -1
- package/dist/src/components/WalletModal/components/ManageWalletModal.css.d.ts +2 -0
- package/dist/src/components/WalletModal/components/ManageWalletModal.css.js +1 -0
- package/dist/src/components/WalletModal/components/ManageWalletModal.d.ts +0 -1
- package/dist/src/components/WalletModal/components/ManageWalletModal.js +66 -148
- package/dist/src/components/WalletModal/components/MfaVerifyModal.d.ts +15 -0
- package/dist/src/components/WalletModal/components/MfaVerifyModal.js +98 -0
- package/dist/src/components/WalletModal/components/PreviewTransactionModal.css +2 -12
- package/dist/src/components/WalletModal/components/PreviewTransactionModal.css.d.ts +2 -0
- package/dist/src/components/WalletModal/components/PreviewTransactionModal.css.js +1 -0
- package/dist/src/components/WalletModal/components/PreviewTransactionModal.d.ts +0 -1
- package/dist/src/components/WalletModal/components/PreviewTransactionModal.js +0 -1
- package/dist/src/components/WalletModal/components/ReceiveModal.css.d.ts +2 -0
- package/dist/src/components/WalletModal/components/ReceiveModal.css.js +1 -0
- package/dist/src/components/WalletModal/components/ReceiveModal.d.ts +0 -1
- package/dist/src/components/WalletModal/components/ReceiveModal.js +2 -2
- package/dist/src/components/WalletModal/components/SendModal.css.d.ts +2 -0
- package/dist/src/components/WalletModal/components/SendModal.css.js +1 -0
- package/dist/src/components/WalletModal/components/SendModal.d.ts +5 -2
- package/dist/src/components/WalletModal/components/SendModal.js +25 -82
- package/dist/src/components/WalletModal/components/SignMfaModalHost.d.ts +1 -0
- package/dist/src/components/WalletModal/components/SignMfaModalHost.js +50 -0
- package/dist/src/components/WalletModal/components/SuccessModal.css.d.ts +2 -0
- package/dist/src/components/WalletModal/components/SuccessModal.css.js +1 -0
- package/dist/src/components/WalletModal/components/SuccessModal.d.ts +0 -1
- package/dist/src/components/WalletModal/components/SuccessModal.js +0 -1
- package/dist/src/components/WalletModal/components/TokenSelectorModal.css.d.ts +2 -0
- package/dist/src/components/WalletModal/components/TokenSelectorModal.css.js +1 -0
- package/dist/src/components/WalletModal/components/TokenSelectorModal.d.ts +0 -1
- package/dist/src/components/WalletModal/components/TokenSelectorModal.js +0 -1
- package/dist/src/components/WalletModal/components/UserAvatar.js +2 -1
- package/dist/src/components/WalletModal/components/index.d.ts +3 -0
- package/dist/src/components/WalletModal/components/index.js +2 -0
- package/dist/src/components/WalletModal/hooks/useSendTransaction.js +18 -6
- package/dist/src/components/icons.d.ts +2 -0
- package/dist/src/components/icons.js +4 -0
- package/dist/src/hooks.d.ts +81 -20
- package/dist/src/hooks.js +194 -36
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.js +2 -2
- package/dist/src/signMfaBridge.d.ts +7 -0
- package/dist/src/signMfaBridge.js +20 -0
- package/dist/src/types.d.ts +4 -0
- package/dist/src/utils/shadowFocus.d.ts +8 -0
- package/dist/src/utils/shadowFocus.js +15 -0
- package/dist/src/utils/shadowRegistry.d.ts +23 -0
- package/dist/src/utils/shadowRegistry.js +36 -0
- package/dist/src/walletConnectMobile.d.ts +9 -5
- package/dist/src/walletConnectMobile.js +152 -51
- package/package.json +9 -4
package/dist/src/hooks.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { WhoamiResponse, TransactionRequest, EnableMfaResponse, VerifySetupMfaResponse, DisableMfaResponse, SupportedAuthMethod, LinkedAuthMethod } from '@abstraxn/signer-core';
|
|
2
|
+
import type { TokenData } from './components/WalletModal/components/TokenSelectorModal';
|
|
2
3
|
import type { Chain, PublicClient, Address, Abi, GetContractReturnType, TransactionReceipt } from 'viem';
|
|
3
4
|
import { Connection as SolanaConnection, Transaction as SolanaTransaction, TransactionInstruction, type Commitment, type SendOptions } from '@solana/web3.js';
|
|
4
5
|
import { SolanaRelayer } from '@abstraxn/solana-relayer';
|
|
@@ -308,6 +309,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
|
|
|
308
309
|
request?: (parameters: import("viem").CcipRequestParameters) => Promise<import("viem/_types/utils/ccip").CcipRequestReturnType>;
|
|
309
310
|
} | undefined;
|
|
310
311
|
chain: Chain | undefined;
|
|
312
|
+
dataSuffix?: import("viem").DataSuffix | undefined;
|
|
311
313
|
experimental_blockTag?: import("viem").BlockTag | undefined;
|
|
312
314
|
key: string;
|
|
313
315
|
name: string;
|
|
@@ -366,6 +368,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
|
|
|
366
368
|
hash: import("viem").Hash;
|
|
367
369
|
type: "legacy";
|
|
368
370
|
yParity?: undefined | undefined;
|
|
371
|
+
blockTimestamp?: bigint | undefined;
|
|
369
372
|
gas: bigint;
|
|
370
373
|
nonce: number;
|
|
371
374
|
r: import("viem").Hex;
|
|
@@ -391,6 +394,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
|
|
|
391
394
|
hash: import("viem").Hash;
|
|
392
395
|
type: "eip2930";
|
|
393
396
|
yParity: number;
|
|
397
|
+
blockTimestamp?: bigint | undefined;
|
|
394
398
|
gas: bigint;
|
|
395
399
|
nonce: number;
|
|
396
400
|
r: import("viem").Hex;
|
|
@@ -416,6 +420,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
|
|
|
416
420
|
hash: import("viem").Hash;
|
|
417
421
|
type: "eip1559";
|
|
418
422
|
yParity: number;
|
|
423
|
+
blockTimestamp?: bigint | undefined;
|
|
419
424
|
gas: bigint;
|
|
420
425
|
nonce: number;
|
|
421
426
|
r: import("viem").Hex;
|
|
@@ -441,6 +446,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
|
|
|
441
446
|
hash: import("viem").Hash;
|
|
442
447
|
type: "eip4844";
|
|
443
448
|
yParity: number;
|
|
449
|
+
blockTimestamp?: bigint | undefined;
|
|
444
450
|
gas: bigint;
|
|
445
451
|
nonce: number;
|
|
446
452
|
r: import("viem").Hex;
|
|
@@ -466,6 +472,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
|
|
|
466
472
|
hash: import("viem").Hash;
|
|
467
473
|
type: "eip7702";
|
|
468
474
|
yParity: number;
|
|
475
|
+
blockTimestamp?: bigint | undefined;
|
|
469
476
|
gas: bigint;
|
|
470
477
|
nonce: number;
|
|
471
478
|
r: import("viem").Hex;
|
|
@@ -490,6 +497,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
|
|
|
490
497
|
getChainId: () => Promise<import("viem").GetChainIdReturnType>;
|
|
491
498
|
getCode: (args: import("viem").GetBytecodeParameters) => Promise<import("viem").GetBytecodeReturnType>;
|
|
492
499
|
getContractEvents: <const abi extends Abi | readonly unknown[], eventName extends import("viem").ContractEventName<abi> | undefined = undefined, strict extends boolean | undefined = undefined, fromBlock extends import("viem").BlockNumber | import("viem").BlockTag | undefined = undefined, toBlock extends import("viem").BlockNumber | import("viem").BlockTag | undefined = undefined>(args: import("viem").GetContractEventsParameters<abi, eventName, strict, fromBlock, toBlock>) => Promise<import("viem").GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>>;
|
|
500
|
+
getDelegation: (args: import("viem").GetDelegationParameters) => Promise<import("viem").GetDelegationReturnType>;
|
|
493
501
|
getEip712Domain: (args: import("viem").GetEip712DomainParameters) => Promise<import("viem").GetEip712DomainReturnType>;
|
|
494
502
|
getEnsAddress: (args: import("viem").GetEnsAddressParameters) => Promise<import("viem").GetEnsAddressReturnType>;
|
|
495
503
|
getEnsAvatar: (args: import("viem").GetEnsAvatarParameters) => Promise<import("viem").GetEnsAvatarReturnType>;
|
|
@@ -516,6 +524,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
|
|
|
516
524
|
hash: import("viem").Hash;
|
|
517
525
|
type: "legacy";
|
|
518
526
|
yParity?: undefined | undefined;
|
|
527
|
+
blockTimestamp?: bigint | undefined;
|
|
519
528
|
gas: bigint;
|
|
520
529
|
nonce: number;
|
|
521
530
|
r: import("viem").Hex;
|
|
@@ -541,6 +550,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
|
|
|
541
550
|
hash: import("viem").Hash;
|
|
542
551
|
type: "eip2930";
|
|
543
552
|
yParity: number;
|
|
553
|
+
blockTimestamp?: bigint | undefined;
|
|
544
554
|
gas: bigint;
|
|
545
555
|
nonce: number;
|
|
546
556
|
r: import("viem").Hex;
|
|
@@ -566,6 +576,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
|
|
|
566
576
|
hash: import("viem").Hash;
|
|
567
577
|
type: "eip1559";
|
|
568
578
|
yParity: number;
|
|
579
|
+
blockTimestamp?: bigint | undefined;
|
|
569
580
|
gas: bigint;
|
|
570
581
|
nonce: number;
|
|
571
582
|
r: import("viem").Hex;
|
|
@@ -591,6 +602,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
|
|
|
591
602
|
hash: import("viem").Hash;
|
|
592
603
|
type: "eip4844";
|
|
593
604
|
yParity: number;
|
|
605
|
+
blockTimestamp?: bigint | undefined;
|
|
594
606
|
gas: bigint;
|
|
595
607
|
nonce: number;
|
|
596
608
|
r: import("viem").Hex;
|
|
@@ -616,6 +628,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
|
|
|
616
628
|
hash: import("viem").Hash;
|
|
617
629
|
type: "eip7702";
|
|
618
630
|
yParity: number;
|
|
631
|
+
blockTimestamp?: bigint | undefined;
|
|
619
632
|
gas: bigint;
|
|
620
633
|
nonce: number;
|
|
621
634
|
r: import("viem").Hex;
|
|
@@ -3889,7 +3902,11 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
|
|
|
3889
3902
|
authorizationList: import("viem").TransactionSerializableEIP7702["authorizationList"];
|
|
3890
3903
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? import("viem").TransactionRequestEIP7702 : never : never : never)>> & {
|
|
3891
3904
|
chainId?: number | undefined;
|
|
3892
|
-
}, (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">)
|
|
3905
|
+
}, (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">) & {
|
|
3906
|
+
_capabilities?: {
|
|
3907
|
+
[x: string]: any;
|
|
3908
|
+
} | undefined;
|
|
3909
|
+
} extends infer T ? { [K in keyof T]: T[K]; } : never>;
|
|
3893
3910
|
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>>;
|
|
3894
3911
|
sendRawTransaction: (args: import("viem").SendRawTransactionParameters) => Promise<import("viem").SendRawTransactionReturnType>;
|
|
3895
3912
|
sendRawTransactionSync: (args: import("viem").SendRawTransactionSyncParameters) => Promise<TransactionReceipt>;
|
|
@@ -3915,6 +3932,7 @@ export declare function usePublicClient(chain: Chain, rpcUrl: string): {
|
|
|
3915
3932
|
cacheTime?: undefined;
|
|
3916
3933
|
ccipRead?: undefined;
|
|
3917
3934
|
chain?: undefined;
|
|
3935
|
+
dataSuffix?: undefined;
|
|
3918
3936
|
experimental_blockTag?: undefined;
|
|
3919
3937
|
key?: undefined;
|
|
3920
3938
|
name?: undefined;
|
|
@@ -3964,6 +3982,7 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
|
|
|
3964
3982
|
request?: (parameters: import("viem").CcipRequestParameters) => Promise<import("viem/_types/utils/ccip").CcipRequestReturnType>;
|
|
3965
3983
|
} | undefined;
|
|
3966
3984
|
chain: Chain | undefined;
|
|
3985
|
+
dataSuffix?: import("viem").DataSuffix | undefined;
|
|
3967
3986
|
experimental_blockTag?: import("viem").BlockTag | undefined;
|
|
3968
3987
|
key: string;
|
|
3969
3988
|
name: string;
|
|
@@ -7233,7 +7252,11 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
|
|
|
7233
7252
|
authorizationList: import("viem").TransactionSerializableEIP7702["authorizationList"];
|
|
7234
7253
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? import("viem").TransactionRequestEIP7702 : never : never : never)>> & {
|
|
7235
7254
|
chainId?: number | undefined;
|
|
7236
|
-
}, (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">)
|
|
7255
|
+
}, (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">) & {
|
|
7256
|
+
_capabilities?: {
|
|
7257
|
+
[x: string]: any;
|
|
7258
|
+
} | undefined;
|
|
7259
|
+
} extends infer T ? { [K in keyof T]: T[K]; } : never>;
|
|
7237
7260
|
requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
|
|
7238
7261
|
requestPermissions: (args: import("viem").RequestPermissionsParameters) => Promise<import("viem").RequestPermissionsReturnType>;
|
|
7239
7262
|
sendCalls: <const calls extends readonly unknown[], chainOverride extends Chain | undefined = undefined>(parameters: import("viem").SendCallsParameters<Chain | undefined, import("viem").Account | undefined, chainOverride, calls>) => Promise<{
|
|
@@ -8165,11 +8188,12 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
|
|
|
8165
8188
|
[x: `bytes3[${string}]`]: undefined;
|
|
8166
8189
|
[x: `bytes1[${string}]`]: undefined;
|
|
8167
8190
|
[x: `bytes2[${string}]`]: undefined;
|
|
8191
|
+
[x: `bytes16[${string}]`]: undefined;
|
|
8192
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
8168
8193
|
[x: `bytes4[${string}]`]: undefined;
|
|
8169
8194
|
[x: `bytes5[${string}]`]: undefined;
|
|
8170
8195
|
[x: `bytes6[${string}]`]: undefined;
|
|
8171
8196
|
[x: `bytes7[${string}]`]: undefined;
|
|
8172
|
-
[x: `bytes8[${string}]`]: undefined;
|
|
8173
8197
|
[x: `bytes9[${string}]`]: undefined;
|
|
8174
8198
|
[x: `bytes10[${string}]`]: undefined;
|
|
8175
8199
|
[x: `bytes11[${string}]`]: undefined;
|
|
@@ -8177,7 +8201,6 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
|
|
|
8177
8201
|
[x: `bytes13[${string}]`]: undefined;
|
|
8178
8202
|
[x: `bytes14[${string}]`]: undefined;
|
|
8179
8203
|
[x: `bytes15[${string}]`]: undefined;
|
|
8180
|
-
[x: `bytes16[${string}]`]: undefined;
|
|
8181
8204
|
[x: `bytes17[${string}]`]: undefined;
|
|
8182
8205
|
[x: `bytes18[${string}]`]: undefined;
|
|
8183
8206
|
[x: `bytes19[${string}]`]: undefined;
|
|
@@ -8195,8 +8218,8 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
|
|
|
8195
8218
|
[x: `bytes31[${string}]`]: undefined;
|
|
8196
8219
|
[x: `bytes32[${string}]`]: undefined;
|
|
8197
8220
|
[x: `int[${string}]`]: undefined;
|
|
8198
|
-
[x: `int8[${string}]`]: undefined;
|
|
8199
8221
|
[x: `int16[${string}]`]: undefined;
|
|
8222
|
+
[x: `int8[${string}]`]: undefined;
|
|
8200
8223
|
[x: `int24[${string}]`]: undefined;
|
|
8201
8224
|
[x: `int32[${string}]`]: undefined;
|
|
8202
8225
|
[x: `int40[${string}]`]: undefined;
|
|
@@ -8228,8 +8251,8 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
|
|
|
8228
8251
|
[x: `int248[${string}]`]: undefined;
|
|
8229
8252
|
[x: `int256[${string}]`]: undefined;
|
|
8230
8253
|
[x: `uint[${string}]`]: undefined;
|
|
8231
|
-
[x: `uint8[${string}]`]: undefined;
|
|
8232
8254
|
[x: `uint16[${string}]`]: undefined;
|
|
8255
|
+
[x: `uint8[${string}]`]: undefined;
|
|
8233
8256
|
[x: `uint24[${string}]`]: undefined;
|
|
8234
8257
|
[x: `uint32[${string}]`]: undefined;
|
|
8235
8258
|
[x: `uint40[${string}]`]: undefined;
|
|
@@ -8267,11 +8290,12 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
|
|
|
8267
8290
|
bytes3?: undefined;
|
|
8268
8291
|
bytes1?: undefined;
|
|
8269
8292
|
bytes2?: undefined;
|
|
8293
|
+
bytes16?: undefined;
|
|
8294
|
+
bytes8?: undefined;
|
|
8270
8295
|
bytes4?: undefined;
|
|
8271
8296
|
bytes5?: undefined;
|
|
8272
8297
|
bytes6?: undefined;
|
|
8273
8298
|
bytes7?: undefined;
|
|
8274
|
-
bytes8?: undefined;
|
|
8275
8299
|
bytes9?: undefined;
|
|
8276
8300
|
bytes10?: undefined;
|
|
8277
8301
|
bytes11?: undefined;
|
|
@@ -8279,7 +8303,6 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
|
|
|
8279
8303
|
bytes13?: undefined;
|
|
8280
8304
|
bytes14?: undefined;
|
|
8281
8305
|
bytes15?: undefined;
|
|
8282
|
-
bytes16?: undefined;
|
|
8283
8306
|
bytes17?: undefined;
|
|
8284
8307
|
bytes18?: undefined;
|
|
8285
8308
|
bytes19?: undefined;
|
|
@@ -8296,8 +8319,8 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
|
|
|
8296
8319
|
bytes30?: undefined;
|
|
8297
8320
|
bytes31?: undefined;
|
|
8298
8321
|
bytes32?: undefined;
|
|
8299
|
-
int8?: undefined;
|
|
8300
8322
|
int16?: undefined;
|
|
8323
|
+
int8?: undefined;
|
|
8301
8324
|
int24?: undefined;
|
|
8302
8325
|
int32?: undefined;
|
|
8303
8326
|
int40?: undefined;
|
|
@@ -8328,8 +8351,8 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
|
|
|
8328
8351
|
int240?: undefined;
|
|
8329
8352
|
int248?: undefined;
|
|
8330
8353
|
int256?: undefined;
|
|
8331
|
-
uint8?: undefined;
|
|
8332
8354
|
uint16?: undefined;
|
|
8355
|
+
uint8?: undefined;
|
|
8333
8356
|
uint24?: undefined;
|
|
8334
8357
|
uint32?: undefined;
|
|
8335
8358
|
uint40?: undefined;
|
|
@@ -8375,6 +8398,7 @@ export declare function useWalletClient(chain: any, rpcUrl?: string): {
|
|
|
8375
8398
|
cacheTime?: undefined;
|
|
8376
8399
|
ccipRead?: undefined;
|
|
8377
8400
|
chain?: undefined;
|
|
8401
|
+
dataSuffix?: undefined;
|
|
8378
8402
|
experimental_blockTag?: undefined;
|
|
8379
8403
|
key?: undefined;
|
|
8380
8404
|
name?: undefined;
|
|
@@ -8413,6 +8437,31 @@ export declare function useSolanaBalance(): {
|
|
|
8413
8437
|
loading: boolean;
|
|
8414
8438
|
error: Error | null;
|
|
8415
8439
|
};
|
|
8440
|
+
/**
|
|
8441
|
+
* Hook to get the full non-zero token list (native + SPL) for the active embedded
|
|
8442
|
+
* Solana address, sourced from Turnkey with an RPC-derived native-only fallback.
|
|
8443
|
+
* Mirrors useSolanaBalance()'s shape. Safe to call unconditionally regardless of the
|
|
8444
|
+
* current chain type - no-ops (returns an empty, non-loading result) when the current
|
|
8445
|
+
* chain isn't Solana or there's no embedded Solana address.
|
|
8446
|
+
*/
|
|
8447
|
+
export declare function useSolanaTokenBalances(): {
|
|
8448
|
+
tokens: TokenData[];
|
|
8449
|
+
loading: boolean;
|
|
8450
|
+
error: Error | null;
|
|
8451
|
+
};
|
|
8452
|
+
/**
|
|
8453
|
+
* Hook to get the full non-zero token list (native + ERC-20) for the current EVM
|
|
8454
|
+
* chain, sourced from AbstraxnProvider's centralized state (Turnkey-first with an
|
|
8455
|
+
* RPC-derived native-only fallback - see AbstraxnProviderInner's refetchWalletBalance).
|
|
8456
|
+
* Safe to call unconditionally regardless of the current chain type - no-ops (returns
|
|
8457
|
+
* an empty, non-loading result) when the current chain isn't EVM.
|
|
8458
|
+
*/
|
|
8459
|
+
export declare function useTokenBalances(): {
|
|
8460
|
+
tokens: TokenData[];
|
|
8461
|
+
loading: boolean;
|
|
8462
|
+
error: Error | null;
|
|
8463
|
+
refetch: () => Promise<void>;
|
|
8464
|
+
};
|
|
8416
8465
|
interface PrepareSolanaTransferParams {
|
|
8417
8466
|
fromPubkey: string;
|
|
8418
8467
|
toPubkey: string;
|
|
@@ -8811,10 +8860,16 @@ export declare function useSignAndSendTxn(provider: PublicClient): {
|
|
|
8811
8860
|
* ```
|
|
8812
8861
|
*/
|
|
8813
8862
|
export declare function useWaitForTxnReceipt(provider: PublicClient): {
|
|
8814
|
-
waitForTxnReceipt: ({ hash, confirmations, timeout, }: {
|
|
8863
|
+
waitForTxnReceipt: ({ hash, confirmations, timeout, throwOnRevert, }: {
|
|
8815
8864
|
hash: `0x${string}`;
|
|
8816
8865
|
confirmations?: number;
|
|
8817
8866
|
timeout?: number;
|
|
8867
|
+
/**
|
|
8868
|
+
* When true (default), a mined receipt with status reverted throws
|
|
8869
|
+
* `Transaction reverted` — on-chain failure is not a WalletConnect concern;
|
|
8870
|
+
* the dapp must check the receipt after receiving the hash.
|
|
8871
|
+
*/
|
|
8872
|
+
throwOnRevert?: boolean;
|
|
8818
8873
|
}) => Promise<TransactionReceipt>;
|
|
8819
8874
|
};
|
|
8820
8875
|
/**
|
|
@@ -8939,6 +8994,7 @@ export declare function useExternalWalletClient(): {
|
|
|
8939
8994
|
request?: (parameters: import("viem").CcipRequestParameters) => Promise<import("viem/_types/utils/ccip").CcipRequestReturnType>;
|
|
8940
8995
|
} | undefined;
|
|
8941
8996
|
chain: Chain;
|
|
8997
|
+
dataSuffix?: import("viem").DataSuffix | undefined;
|
|
8942
8998
|
experimental_blockTag?: import("viem").BlockTag | undefined;
|
|
8943
8999
|
key: string;
|
|
8944
9000
|
name: string;
|
|
@@ -12208,7 +12264,11 @@ export declare function useExternalWalletClient(): {
|
|
|
12208
12264
|
authorizationList: import("viem").TransactionSerializableEIP7702["authorizationList"];
|
|
12209
12265
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? import("viem").TransactionRequestEIP7702 : never : never : never)>> & {
|
|
12210
12266
|
chainId?: number | undefined;
|
|
12211
|
-
}, (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">)
|
|
12267
|
+
}, (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">) & {
|
|
12268
|
+
_capabilities?: {
|
|
12269
|
+
[x: string]: any;
|
|
12270
|
+
} | undefined;
|
|
12271
|
+
} extends infer T ? { [K in keyof T]: T[K]; } : never>;
|
|
12212
12272
|
requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
|
|
12213
12273
|
requestPermissions: (args: import("viem").RequestPermissionsParameters) => Promise<import("viem").RequestPermissionsReturnType>;
|
|
12214
12274
|
sendCalls: <const calls extends readonly unknown[], chainOverride extends Chain | undefined = undefined>(parameters: import("viem").SendCallsParameters<Chain, import("viem").Account, chainOverride, calls>) => Promise<{
|
|
@@ -13140,11 +13200,12 @@ export declare function useExternalWalletClient(): {
|
|
|
13140
13200
|
[x: `bytes3[${string}]`]: undefined;
|
|
13141
13201
|
[x: `bytes1[${string}]`]: undefined;
|
|
13142
13202
|
[x: `bytes2[${string}]`]: undefined;
|
|
13203
|
+
[x: `bytes16[${string}]`]: undefined;
|
|
13204
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
13143
13205
|
[x: `bytes4[${string}]`]: undefined;
|
|
13144
13206
|
[x: `bytes5[${string}]`]: undefined;
|
|
13145
13207
|
[x: `bytes6[${string}]`]: undefined;
|
|
13146
13208
|
[x: `bytes7[${string}]`]: undefined;
|
|
13147
|
-
[x: `bytes8[${string}]`]: undefined;
|
|
13148
13209
|
[x: `bytes9[${string}]`]: undefined;
|
|
13149
13210
|
[x: `bytes10[${string}]`]: undefined;
|
|
13150
13211
|
[x: `bytes11[${string}]`]: undefined;
|
|
@@ -13152,7 +13213,6 @@ export declare function useExternalWalletClient(): {
|
|
|
13152
13213
|
[x: `bytes13[${string}]`]: undefined;
|
|
13153
13214
|
[x: `bytes14[${string}]`]: undefined;
|
|
13154
13215
|
[x: `bytes15[${string}]`]: undefined;
|
|
13155
|
-
[x: `bytes16[${string}]`]: undefined;
|
|
13156
13216
|
[x: `bytes17[${string}]`]: undefined;
|
|
13157
13217
|
[x: `bytes18[${string}]`]: undefined;
|
|
13158
13218
|
[x: `bytes19[${string}]`]: undefined;
|
|
@@ -13170,8 +13230,8 @@ export declare function useExternalWalletClient(): {
|
|
|
13170
13230
|
[x: `bytes31[${string}]`]: undefined;
|
|
13171
13231
|
[x: `bytes32[${string}]`]: undefined;
|
|
13172
13232
|
[x: `int[${string}]`]: undefined;
|
|
13173
|
-
[x: `int8[${string}]`]: undefined;
|
|
13174
13233
|
[x: `int16[${string}]`]: undefined;
|
|
13234
|
+
[x: `int8[${string}]`]: undefined;
|
|
13175
13235
|
[x: `int24[${string}]`]: undefined;
|
|
13176
13236
|
[x: `int32[${string}]`]: undefined;
|
|
13177
13237
|
[x: `int40[${string}]`]: undefined;
|
|
@@ -13203,8 +13263,8 @@ export declare function useExternalWalletClient(): {
|
|
|
13203
13263
|
[x: `int248[${string}]`]: undefined;
|
|
13204
13264
|
[x: `int256[${string}]`]: undefined;
|
|
13205
13265
|
[x: `uint[${string}]`]: undefined;
|
|
13206
|
-
[x: `uint8[${string}]`]: undefined;
|
|
13207
13266
|
[x: `uint16[${string}]`]: undefined;
|
|
13267
|
+
[x: `uint8[${string}]`]: undefined;
|
|
13208
13268
|
[x: `uint24[${string}]`]: undefined;
|
|
13209
13269
|
[x: `uint32[${string}]`]: undefined;
|
|
13210
13270
|
[x: `uint40[${string}]`]: undefined;
|
|
@@ -13242,11 +13302,12 @@ export declare function useExternalWalletClient(): {
|
|
|
13242
13302
|
bytes3?: undefined;
|
|
13243
13303
|
bytes1?: undefined;
|
|
13244
13304
|
bytes2?: undefined;
|
|
13305
|
+
bytes16?: undefined;
|
|
13306
|
+
bytes8?: undefined;
|
|
13245
13307
|
bytes4?: undefined;
|
|
13246
13308
|
bytes5?: undefined;
|
|
13247
13309
|
bytes6?: undefined;
|
|
13248
13310
|
bytes7?: undefined;
|
|
13249
|
-
bytes8?: undefined;
|
|
13250
13311
|
bytes9?: undefined;
|
|
13251
13312
|
bytes10?: undefined;
|
|
13252
13313
|
bytes11?: undefined;
|
|
@@ -13254,7 +13315,6 @@ export declare function useExternalWalletClient(): {
|
|
|
13254
13315
|
bytes13?: undefined;
|
|
13255
13316
|
bytes14?: undefined;
|
|
13256
13317
|
bytes15?: undefined;
|
|
13257
|
-
bytes16?: undefined;
|
|
13258
13318
|
bytes17?: undefined;
|
|
13259
13319
|
bytes18?: undefined;
|
|
13260
13320
|
bytes19?: undefined;
|
|
@@ -13271,8 +13331,8 @@ export declare function useExternalWalletClient(): {
|
|
|
13271
13331
|
bytes30?: undefined;
|
|
13272
13332
|
bytes31?: undefined;
|
|
13273
13333
|
bytes32?: undefined;
|
|
13274
|
-
int8?: undefined;
|
|
13275
13334
|
int16?: undefined;
|
|
13335
|
+
int8?: undefined;
|
|
13276
13336
|
int24?: undefined;
|
|
13277
13337
|
int32?: undefined;
|
|
13278
13338
|
int40?: undefined;
|
|
@@ -13303,8 +13363,8 @@ export declare function useExternalWalletClient(): {
|
|
|
13303
13363
|
int240?: undefined;
|
|
13304
13364
|
int248?: undefined;
|
|
13305
13365
|
int256?: undefined;
|
|
13306
|
-
uint8?: undefined;
|
|
13307
13366
|
uint16?: undefined;
|
|
13367
|
+
uint8?: undefined;
|
|
13308
13368
|
uint24?: undefined;
|
|
13309
13369
|
uint32?: undefined;
|
|
13310
13370
|
uint40?: undefined;
|
|
@@ -13350,6 +13410,7 @@ export declare function useExternalWalletClient(): {
|
|
|
13350
13410
|
cacheTime?: undefined;
|
|
13351
13411
|
ccipRead?: undefined;
|
|
13352
13412
|
chain?: undefined;
|
|
13413
|
+
dataSuffix?: undefined;
|
|
13353
13414
|
experimental_blockTag?: undefined;
|
|
13354
13415
|
key?: undefined;
|
|
13355
13416
|
name?: undefined;
|