@embarkai/ui-kit 0.4.19 → 0.4.21
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/README.md +66 -0
- package/dist/iframe/index.html +1 -1
- package/dist/iframe/main.js +9 -5
- package/dist/index.cjs +5797 -3216
- package/dist/index.d.cts +227 -234
- package/dist/index.d.ts +227 -234
- package/dist/index.js +4565 -1992
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,10 +9,11 @@ import * as zustand_middleware from 'zustand/middleware';
|
|
|
9
9
|
import * as zustand from 'zustand';
|
|
10
10
|
import { ChainConfig, createPublicClientForChain, createBundlerClientForChain, getChainConfig, getViemChain, lumiaTestnetChain, lumiaMainnetChain } from '@embarkai/core/read';
|
|
11
11
|
import { BundlerClient } from 'viem/account-abstraction';
|
|
12
|
-
import { UserOperationV07 } from '@embarkai/core/bundler';
|
|
13
12
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
14
13
|
import { VariantProps } from 'class-variance-authority';
|
|
15
14
|
import * as wagmi from 'wagmi';
|
|
15
|
+
import { BatchOperation as BatchOperation$1 } from '@embarkai/core';
|
|
16
|
+
import { UserOperationV07 } from '@embarkai/core/bundler';
|
|
16
17
|
export { JwtTokens, LoginResponse, VerifyResponse, getValidTokens, jwtTokenManager, logout } from '@embarkai/core/auth';
|
|
17
18
|
|
|
18
19
|
interface TokenBalance {
|
|
@@ -396,7 +397,7 @@ declare function ConnectWalletButton(props: ConnectWalletButtonProps): react_jsx
|
|
|
396
397
|
* Account session containing wallet and smart account information.
|
|
397
398
|
* Shared across multiple modules (session, user-operations, signing, deployment).
|
|
398
399
|
*/
|
|
399
|
-
interface AccountSession
|
|
400
|
+
interface AccountSession {
|
|
400
401
|
ownerAddress: `0x${string}`;
|
|
401
402
|
smartAccountAddress: `0x${string}`;
|
|
402
403
|
factoryAddress: `0x${string}`;
|
|
@@ -407,117 +408,68 @@ interface AccountSession$1 {
|
|
|
407
408
|
address: `0x${string}`;
|
|
408
409
|
}
|
|
409
410
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
* account deployment via factory without requiring user consent.
|
|
415
|
-
*
|
|
416
|
-
* By default, checks if account is already deployed to avoid unnecessary gas costs.
|
|
417
|
-
* If already deployed, returns null without sending a transaction.
|
|
418
|
-
*
|
|
419
|
-
* @param session - Account session with signing credentials
|
|
420
|
-
* @param feeType - Fee type: 'economy', 'standard', or 'fast' (default: 'economy')
|
|
421
|
-
* @param options - Deployment options
|
|
422
|
-
* @param options.force - If true, sends transaction even if already deployed (default: false)
|
|
423
|
-
* @param options.chainId - Chain ID
|
|
424
|
-
* @returns UserOperation hash if deployed, null if already deployed (when force=false)
|
|
425
|
-
*
|
|
426
|
-
* @example
|
|
427
|
-
* ```typescript
|
|
428
|
-
* // Deploy account immediately after DKG (skips if already deployed)
|
|
429
|
-
* const userOpHash = await deployAccount(session, 'economy');
|
|
430
|
-
* if (userOpHash) {
|
|
431
|
-
* console.log('Account deployed:', userOpHash);
|
|
432
|
-
* } else {
|
|
433
|
-
* console.log('Account already deployed');
|
|
434
|
-
* }
|
|
435
|
-
*
|
|
436
|
-
* // Force deployment even if already deployed (not recommended)
|
|
437
|
-
* const hash = await deployAccount(session, 'economy', { force: true });
|
|
438
|
-
* ```
|
|
439
|
-
*/
|
|
440
|
-
declare function deployAccount(session: AccountSession$1, feeType?: 'economy' | 'standard' | 'fast', options?: {
|
|
441
|
-
force?: boolean;
|
|
411
|
+
type FeeType = 'economy' | 'standard' | 'fast';
|
|
412
|
+
type BatchOperation = BatchOperation$1;
|
|
413
|
+
interface BaseOperationParams {
|
|
414
|
+
feeType?: FeeType;
|
|
442
415
|
chainId?: number;
|
|
443
|
-
}): Promise<`0x${string}` | null>;
|
|
444
|
-
|
|
445
|
-
interface SmartAccountEntry {
|
|
446
|
-
chainId: number;
|
|
447
|
-
address: string;
|
|
448
|
-
factoryAddress?: string;
|
|
449
|
-
registeredAt: string;
|
|
450
|
-
}
|
|
451
|
-
interface RegisterSmartAccountResult {
|
|
452
|
-
success: boolean;
|
|
453
|
-
chainId: number;
|
|
454
|
-
smartAccountAddress: string;
|
|
455
|
-
alreadySet: boolean;
|
|
456
|
-
}
|
|
457
|
-
/**
|
|
458
|
-
* Get all registered Smart Accounts across all chains.
|
|
459
|
-
*
|
|
460
|
-
* @returns List of Smart Account entries with chain IDs
|
|
461
|
-
*/
|
|
462
|
-
declare function getAllSmartAccounts(): Promise<SmartAccountEntry[]>;
|
|
463
|
-
/**
|
|
464
|
-
* Get Smart Account for a specific chain.
|
|
465
|
-
*
|
|
466
|
-
* @param chainId - The chain ID to get Smart Account for
|
|
467
|
-
* @returns Smart Account entry or null if not registered
|
|
468
|
-
*/
|
|
469
|
-
declare function getSmartAccountForChain(chainId: number): Promise<SmartAccountEntry | null>;
|
|
470
|
-
|
|
471
|
-
interface AccountSession {
|
|
472
|
-
ownerAddress: `0x${string}`;
|
|
473
|
-
smartAccountAddress: `0x${string}`;
|
|
474
|
-
factoryAddress: `0x${string}`;
|
|
475
|
-
ownerPrivateKey?: `0x${string}`;
|
|
476
|
-
mpcUserId?: string;
|
|
477
|
-
usePaymaster?: boolean;
|
|
478
|
-
kind: 'lumia';
|
|
479
|
-
address: `0x${string}`;
|
|
480
416
|
}
|
|
481
417
|
/**
|
|
482
418
|
* Parameters for preparing a UserOperation
|
|
483
419
|
*/
|
|
484
|
-
interface PrepareUserOperationParams {
|
|
420
|
+
interface PrepareUserOperationParams extends BaseOperationParams {
|
|
485
421
|
/** Target address for the transaction */
|
|
486
422
|
to: `0x${string}`;
|
|
487
423
|
/** Amount in wei to send (as string) */
|
|
488
424
|
value: string;
|
|
489
425
|
/** Call data for the transaction (optional, defaults to '0x') */
|
|
490
426
|
data?: `0x${string}`;
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Parameters for sending a UserOperation (UI-Kit layer)
|
|
430
|
+
* Higher-level API compared to core/bundler UserOperationParams
|
|
431
|
+
*/
|
|
432
|
+
interface SendUserOperationParams extends PrepareUserOperationParams {
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Parameters for preparing a batch UserOperation.
|
|
436
|
+
*/
|
|
437
|
+
interface PrepareBatchUserOperationParams extends BaseOperationParams {
|
|
438
|
+
/** Operations to execute atomically via executeBatch */
|
|
439
|
+
operations: BatchOperation[];
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Parameters for sending a batch UserOperation.
|
|
443
|
+
*/
|
|
444
|
+
interface SendBatchUserOperationParams extends PrepareBatchUserOperationParams {
|
|
495
445
|
}
|
|
496
446
|
/**
|
|
497
447
|
* Prepare and sign a UserOperation without sending it to the bundler.
|
|
498
448
|
* Returns the signed UserOp and its hash for backend verification and submission.
|
|
499
|
-
* Uses object-based parameters with multi-chain support.
|
|
500
|
-
*
|
|
501
|
-
* @param session - Account session with signing credentials
|
|
502
|
-
* @param params - Transaction parameters (to, value, data, feeType, chainId)
|
|
503
|
-
* @returns Object with signed UserOperation and its hash
|
|
504
|
-
*
|
|
505
|
-
* @example
|
|
506
|
-
* ```typescript
|
|
507
|
-
* const { userOp, userOpHash } = await prepareUserOperation(session, {
|
|
508
|
-
* to: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
|
|
509
|
-
* value: '1000000000000000000',
|
|
510
|
-
* data: '0x',
|
|
511
|
-
* feeType: 'standard'
|
|
512
|
-
* });
|
|
513
|
-
* ```
|
|
514
449
|
*/
|
|
515
450
|
declare function prepareUserOperation(session: AccountSession, params: PrepareUserOperationParams): Promise<{
|
|
516
451
|
userOp: UserOperationV07;
|
|
517
452
|
userOpHash: `0x${string}`;
|
|
518
453
|
}>;
|
|
519
454
|
/**
|
|
520
|
-
*
|
|
455
|
+
* Prepare and sign a batch UserOperation without sending it to the bundler.
|
|
456
|
+
* Returns the signed UserOp and its hash for backend verification and submission.
|
|
457
|
+
*/
|
|
458
|
+
declare function prepareBatchUserOperation(session: AccountSession, params: PrepareBatchUserOperationParams): Promise<{
|
|
459
|
+
userOp: UserOperationV07;
|
|
460
|
+
userOpHash: `0x${string}`;
|
|
461
|
+
}>;
|
|
462
|
+
/**
|
|
463
|
+
* Send a UserOperation with multi-chain support.
|
|
464
|
+
*/
|
|
465
|
+
declare function sendUserOperation(session: AccountSession, params: SendUserOperationParams): Promise<`0x${string}`>;
|
|
466
|
+
/**
|
|
467
|
+
* Send a batch UserOperation with multi-chain support.
|
|
468
|
+
*/
|
|
469
|
+
declare function sendBatchUserOperation(session: AccountSession, params: SendBatchUserOperationParams): Promise<`0x${string}`>;
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* EIP712 Domain definition
|
|
521
473
|
*/
|
|
522
474
|
interface TypedDataDomain {
|
|
523
475
|
name?: string;
|
|
@@ -536,44 +488,6 @@ interface TypedDataField {
|
|
|
536
488
|
/**
|
|
537
489
|
* Parameters for signing typed data (EIP712)
|
|
538
490
|
*/
|
|
539
|
-
/**
|
|
540
|
-
* Parameters for sending or preparing a UserOperation (UI-Kit layer)
|
|
541
|
-
* Higher-level API compared to core/bundler UserOperationParams
|
|
542
|
-
*/
|
|
543
|
-
interface SendUserOperationParams {
|
|
544
|
-
/** Target address for the transaction */
|
|
545
|
-
to: `0x${string}`;
|
|
546
|
-
/** Amount in wei to send (as string) */
|
|
547
|
-
value: string;
|
|
548
|
-
/** Call data for the transaction (optional, defaults to '0x') */
|
|
549
|
-
data?: `0x${string}`;
|
|
550
|
-
/** Fee tier: 'economy', 'standard' (default), or 'fast' */
|
|
551
|
-
feeType?: 'economy' | 'standard' | 'fast';
|
|
552
|
-
/** Chain ID (optional - uses activeChainId from store if not provided) */
|
|
553
|
-
chainId?: number;
|
|
554
|
-
}
|
|
555
|
-
/**
|
|
556
|
-
* Send a user operation with multi-chain support.
|
|
557
|
-
* Uses object-based parameters for better developer experience.
|
|
558
|
-
*
|
|
559
|
-
* @param session - Account session with signing credentials
|
|
560
|
-
* @param params - Transaction parameters (to, value, data, feeType, chainId)
|
|
561
|
-
* @returns Promise resolving to the user operation hash
|
|
562
|
-
*
|
|
563
|
-
* @example
|
|
564
|
-
* ```typescript
|
|
565
|
-
* const hash = await sendUserOperation(session, {
|
|
566
|
-
* to: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
|
|
567
|
-
* value: '1000000000000000000', // 1 ETH in wei
|
|
568
|
-
* data: '0x',
|
|
569
|
-
* feeType: 'standard'
|
|
570
|
-
* });
|
|
571
|
-
* ```
|
|
572
|
-
*/
|
|
573
|
-
declare function sendUserOperation(session: AccountSession, params: SendUserOperationParams): Promise<`0x${string}`>;
|
|
574
|
-
/**
|
|
575
|
-
* Parameters for EIP-712 typed data signing
|
|
576
|
-
*/
|
|
577
491
|
interface SignTypedDataParams {
|
|
578
492
|
domain: TypedDataDomain;
|
|
579
493
|
types: Record<string, TypedDataField[]>;
|
|
@@ -617,6 +531,67 @@ interface SignTypedDataParams {
|
|
|
617
531
|
*/
|
|
618
532
|
declare function signTypedData(session: AccountSession, params: SignTypedDataParams): Promise<`0x${string}`>;
|
|
619
533
|
|
|
534
|
+
/**
|
|
535
|
+
* Deploy smart account contract if not already deployed.
|
|
536
|
+
*
|
|
537
|
+
* This sends a minimal UserOperation (to 0x0, value 0, data 0x) which triggers
|
|
538
|
+
* account deployment via factory without requiring user consent.
|
|
539
|
+
*
|
|
540
|
+
* By default, checks if account is already deployed to avoid unnecessary gas costs.
|
|
541
|
+
* If already deployed, returns null without sending a transaction.
|
|
542
|
+
*
|
|
543
|
+
* @param session - Account session with signing credentials
|
|
544
|
+
* @param feeType - Fee type: 'economy', 'standard', or 'fast' (default: 'economy')
|
|
545
|
+
* @param options - Deployment options
|
|
546
|
+
* @param options.force - If true, sends transaction even if already deployed (default: false)
|
|
547
|
+
* @param options.chainId - Chain ID
|
|
548
|
+
* @returns UserOperation hash if deployed, null if already deployed (when force=false)
|
|
549
|
+
*
|
|
550
|
+
* @example
|
|
551
|
+
* ```typescript
|
|
552
|
+
* // Deploy account immediately after DKG (skips if already deployed)
|
|
553
|
+
* const userOpHash = await deployAccount(session, 'economy');
|
|
554
|
+
* if (userOpHash) {
|
|
555
|
+
* console.log('Account deployed:', userOpHash);
|
|
556
|
+
* } else {
|
|
557
|
+
* console.log('Account already deployed');
|
|
558
|
+
* }
|
|
559
|
+
*
|
|
560
|
+
* // Force deployment even if already deployed (not recommended)
|
|
561
|
+
* const hash = await deployAccount(session, 'economy', { force: true });
|
|
562
|
+
* ```
|
|
563
|
+
*/
|
|
564
|
+
declare function deployAccount(session: AccountSession, feeType?: 'economy' | 'standard' | 'fast', options?: {
|
|
565
|
+
force?: boolean;
|
|
566
|
+
chainId?: number;
|
|
567
|
+
}): Promise<`0x${string}` | null>;
|
|
568
|
+
|
|
569
|
+
interface SmartAccountEntry {
|
|
570
|
+
chainId: number;
|
|
571
|
+
address: string;
|
|
572
|
+
factoryAddress?: string;
|
|
573
|
+
registeredAt: string;
|
|
574
|
+
}
|
|
575
|
+
interface RegisterSmartAccountResult {
|
|
576
|
+
success: boolean;
|
|
577
|
+
chainId: number;
|
|
578
|
+
smartAccountAddress: string;
|
|
579
|
+
alreadySet: boolean;
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* Get all registered Smart Accounts across all chains.
|
|
583
|
+
*
|
|
584
|
+
* @returns List of Smart Account entries with chain IDs
|
|
585
|
+
*/
|
|
586
|
+
declare function getAllSmartAccounts(): Promise<SmartAccountEntry[]>;
|
|
587
|
+
/**
|
|
588
|
+
* Get Smart Account for a specific chain.
|
|
589
|
+
*
|
|
590
|
+
* @param chainId - The chain ID to get Smart Account for
|
|
591
|
+
* @returns Smart Account entry or null if not registered
|
|
592
|
+
*/
|
|
593
|
+
declare function getSmartAccountForChain(chainId: number): Promise<SmartAccountEntry | null>;
|
|
594
|
+
|
|
620
595
|
/**
|
|
621
596
|
* Iframe Manager for Parent SDK
|
|
622
597
|
*
|
|
@@ -1111,7 +1086,7 @@ declare function useColorMode(): {
|
|
|
1111
1086
|
};
|
|
1112
1087
|
|
|
1113
1088
|
declare const buttonVariants: (props?: {
|
|
1114
|
-
variant?: "
|
|
1089
|
+
variant?: "outline" | "default" | "ghost";
|
|
1115
1090
|
size?: "small" | "large" | "medium" | "icon";
|
|
1116
1091
|
} & class_variance_authority_types.ClassProp) => string;
|
|
1117
1092
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -1829,8 +1804,9 @@ interface ConnectedApp {
|
|
|
1829
1804
|
name: string;
|
|
1830
1805
|
appUrl: string | null;
|
|
1831
1806
|
logo: string;
|
|
1832
|
-
domains:
|
|
1833
|
-
providers:
|
|
1807
|
+
domains: string[];
|
|
1808
|
+
providers: AuthProvider['provider'][];
|
|
1809
|
+
trustedAuthorizedApp?: boolean;
|
|
1834
1810
|
smartWalletAddress: string;
|
|
1835
1811
|
firstConnectedAt: string;
|
|
1836
1812
|
lastActiveAt: string;
|
|
@@ -1983,126 +1959,126 @@ declare function useTransactions(): {
|
|
|
1983
1959
|
input: viem.Hex;
|
|
1984
1960
|
s: viem.Hex;
|
|
1985
1961
|
value: bigint;
|
|
1986
|
-
hash: Hash$1;
|
|
1987
|
-
v: bigint;
|
|
1988
|
-
r: viem.Hex;
|
|
1989
1962
|
type: "legacy";
|
|
1990
|
-
|
|
1963
|
+
yParity?: undefined;
|
|
1991
1964
|
from: viem.Address;
|
|
1992
1965
|
gas: bigint;
|
|
1966
|
+
hash: Hash$1;
|
|
1993
1967
|
nonce: number;
|
|
1968
|
+
r: viem.Hex;
|
|
1969
|
+
to: viem.Address | null;
|
|
1970
|
+
typeHex: viem.Hex | null;
|
|
1971
|
+
v: bigint;
|
|
1972
|
+
accessList?: undefined;
|
|
1973
|
+
authorizationList?: undefined;
|
|
1994
1974
|
blobVersionedHashes?: undefined;
|
|
1975
|
+
chainId?: number;
|
|
1995
1976
|
gasPrice: bigint;
|
|
1996
1977
|
maxFeePerBlobGas?: undefined;
|
|
1997
1978
|
maxFeePerGas?: undefined;
|
|
1998
1979
|
maxPriorityFeePerGas?: undefined;
|
|
1999
|
-
accessList?: undefined;
|
|
2000
|
-
authorizationList?: undefined;
|
|
2001
|
-
yParity?: undefined;
|
|
2002
|
-
typeHex: viem.Hex | null;
|
|
2003
|
-
chainId?: number;
|
|
2004
|
-
blockNumber: bigint;
|
|
2005
1980
|
blockHash: `0x${string}`;
|
|
1981
|
+
blockNumber: bigint;
|
|
2006
1982
|
transactionIndex: number;
|
|
2007
1983
|
} | {
|
|
2008
1984
|
input: viem.Hex;
|
|
2009
1985
|
s: viem.Hex;
|
|
2010
1986
|
value: bigint;
|
|
2011
|
-
hash: Hash$1;
|
|
2012
|
-
v: bigint;
|
|
2013
|
-
r: viem.Hex;
|
|
2014
1987
|
type: "eip2930";
|
|
2015
|
-
|
|
1988
|
+
yParity: number;
|
|
2016
1989
|
from: viem.Address;
|
|
2017
1990
|
gas: bigint;
|
|
1991
|
+
hash: Hash$1;
|
|
2018
1992
|
nonce: number;
|
|
1993
|
+
r: viem.Hex;
|
|
1994
|
+
to: viem.Address | null;
|
|
1995
|
+
typeHex: viem.Hex | null;
|
|
1996
|
+
v: bigint;
|
|
1997
|
+
accessList: viem.AccessList;
|
|
1998
|
+
authorizationList?: undefined;
|
|
2019
1999
|
blobVersionedHashes?: undefined;
|
|
2000
|
+
chainId: number;
|
|
2020
2001
|
gasPrice: bigint;
|
|
2021
2002
|
maxFeePerBlobGas?: undefined;
|
|
2022
2003
|
maxFeePerGas?: undefined;
|
|
2023
2004
|
maxPriorityFeePerGas?: undefined;
|
|
2024
|
-
accessList: viem.AccessList;
|
|
2025
|
-
authorizationList?: undefined;
|
|
2026
|
-
yParity: number;
|
|
2027
|
-
typeHex: viem.Hex | null;
|
|
2028
|
-
chainId: number;
|
|
2029
|
-
blockNumber: bigint;
|
|
2030
2005
|
blockHash: `0x${string}`;
|
|
2006
|
+
blockNumber: bigint;
|
|
2031
2007
|
transactionIndex: number;
|
|
2032
2008
|
} | {
|
|
2033
2009
|
input: viem.Hex;
|
|
2034
2010
|
s: viem.Hex;
|
|
2035
2011
|
value: bigint;
|
|
2036
|
-
hash: Hash$1;
|
|
2037
|
-
v: bigint;
|
|
2038
|
-
r: viem.Hex;
|
|
2039
2012
|
type: "eip1559";
|
|
2040
|
-
|
|
2013
|
+
yParity: number;
|
|
2041
2014
|
from: viem.Address;
|
|
2042
2015
|
gas: bigint;
|
|
2016
|
+
hash: Hash$1;
|
|
2043
2017
|
nonce: number;
|
|
2018
|
+
r: viem.Hex;
|
|
2019
|
+
to: viem.Address | null;
|
|
2020
|
+
typeHex: viem.Hex | null;
|
|
2021
|
+
v: bigint;
|
|
2022
|
+
accessList: viem.AccessList;
|
|
2023
|
+
authorizationList?: undefined;
|
|
2044
2024
|
blobVersionedHashes?: undefined;
|
|
2025
|
+
chainId: number;
|
|
2045
2026
|
gasPrice?: undefined;
|
|
2046
2027
|
maxFeePerBlobGas?: undefined;
|
|
2047
2028
|
maxFeePerGas: bigint;
|
|
2048
2029
|
maxPriorityFeePerGas: bigint;
|
|
2049
|
-
accessList: viem.AccessList;
|
|
2050
|
-
authorizationList?: undefined;
|
|
2051
|
-
yParity: number;
|
|
2052
|
-
typeHex: viem.Hex | null;
|
|
2053
|
-
chainId: number;
|
|
2054
|
-
blockNumber: bigint;
|
|
2055
2030
|
blockHash: `0x${string}`;
|
|
2031
|
+
blockNumber: bigint;
|
|
2056
2032
|
transactionIndex: number;
|
|
2057
2033
|
} | {
|
|
2058
2034
|
input: viem.Hex;
|
|
2059
2035
|
s: viem.Hex;
|
|
2060
2036
|
value: bigint;
|
|
2061
|
-
hash: Hash$1;
|
|
2062
|
-
v: bigint;
|
|
2063
|
-
r: viem.Hex;
|
|
2064
2037
|
type: "eip4844";
|
|
2065
|
-
|
|
2038
|
+
yParity: number;
|
|
2066
2039
|
from: viem.Address;
|
|
2067
2040
|
gas: bigint;
|
|
2041
|
+
hash: Hash$1;
|
|
2068
2042
|
nonce: number;
|
|
2043
|
+
r: viem.Hex;
|
|
2044
|
+
to: viem.Address | null;
|
|
2045
|
+
typeHex: viem.Hex | null;
|
|
2046
|
+
v: bigint;
|
|
2047
|
+
accessList: viem.AccessList;
|
|
2048
|
+
authorizationList?: undefined;
|
|
2069
2049
|
blobVersionedHashes: readonly viem.Hex[];
|
|
2050
|
+
chainId: number;
|
|
2070
2051
|
gasPrice?: undefined;
|
|
2071
2052
|
maxFeePerBlobGas: bigint;
|
|
2072
2053
|
maxFeePerGas: bigint;
|
|
2073
2054
|
maxPriorityFeePerGas: bigint;
|
|
2074
|
-
accessList: viem.AccessList;
|
|
2075
|
-
authorizationList?: undefined;
|
|
2076
|
-
yParity: number;
|
|
2077
|
-
typeHex: viem.Hex | null;
|
|
2078
|
-
chainId: number;
|
|
2079
|
-
blockNumber: bigint;
|
|
2080
2055
|
blockHash: `0x${string}`;
|
|
2056
|
+
blockNumber: bigint;
|
|
2081
2057
|
transactionIndex: number;
|
|
2082
2058
|
} | {
|
|
2083
2059
|
input: viem.Hex;
|
|
2084
2060
|
s: viem.Hex;
|
|
2085
2061
|
value: bigint;
|
|
2086
|
-
hash: Hash$1;
|
|
2087
|
-
v: bigint;
|
|
2088
|
-
r: viem.Hex;
|
|
2089
2062
|
type: "eip7702";
|
|
2090
|
-
|
|
2063
|
+
yParity: number;
|
|
2091
2064
|
from: viem.Address;
|
|
2092
2065
|
gas: bigint;
|
|
2066
|
+
hash: Hash$1;
|
|
2093
2067
|
nonce: number;
|
|
2068
|
+
r: viem.Hex;
|
|
2069
|
+
to: viem.Address | null;
|
|
2070
|
+
typeHex: viem.Hex | null;
|
|
2071
|
+
v: bigint;
|
|
2072
|
+
accessList: viem.AccessList;
|
|
2073
|
+
authorizationList: viem.SignedAuthorizationList;
|
|
2094
2074
|
blobVersionedHashes?: undefined;
|
|
2075
|
+
chainId: number;
|
|
2095
2076
|
gasPrice?: undefined;
|
|
2096
2077
|
maxFeePerBlobGas?: undefined;
|
|
2097
2078
|
maxFeePerGas: bigint;
|
|
2098
2079
|
maxPriorityFeePerGas: bigint;
|
|
2099
|
-
accessList: viem.AccessList;
|
|
2100
|
-
authorizationList: viem.SignedAuthorizationList;
|
|
2101
|
-
yParity: number;
|
|
2102
|
-
typeHex: viem.Hex | null;
|
|
2103
|
-
chainId: number;
|
|
2104
|
-
blockNumber: bigint;
|
|
2105
2080
|
blockHash: `0x${string}`;
|
|
2081
|
+
blockNumber: bigint;
|
|
2106
2082
|
transactionIndex: number;
|
|
2107
2083
|
}>;
|
|
2108
2084
|
getTransactionReceipt: (hash: Hash$1) => Promise<TransactionReceipt>;
|
|
@@ -2129,126 +2105,126 @@ declare function useSmartAccountTransactions(): {
|
|
|
2129
2105
|
input: viem.Hex;
|
|
2130
2106
|
s: viem.Hex;
|
|
2131
2107
|
value: bigint;
|
|
2132
|
-
hash: Hash$1;
|
|
2133
|
-
v: bigint;
|
|
2134
|
-
r: viem.Hex;
|
|
2135
2108
|
type: "legacy";
|
|
2136
|
-
|
|
2109
|
+
yParity?: undefined;
|
|
2137
2110
|
from: viem.Address;
|
|
2138
2111
|
gas: bigint;
|
|
2112
|
+
hash: Hash$1;
|
|
2139
2113
|
nonce: number;
|
|
2114
|
+
r: viem.Hex;
|
|
2115
|
+
to: viem.Address | null;
|
|
2116
|
+
typeHex: viem.Hex | null;
|
|
2117
|
+
v: bigint;
|
|
2118
|
+
accessList?: undefined;
|
|
2119
|
+
authorizationList?: undefined;
|
|
2140
2120
|
blobVersionedHashes?: undefined;
|
|
2121
|
+
chainId?: number;
|
|
2141
2122
|
gasPrice: bigint;
|
|
2142
2123
|
maxFeePerBlobGas?: undefined;
|
|
2143
2124
|
maxFeePerGas?: undefined;
|
|
2144
2125
|
maxPriorityFeePerGas?: undefined;
|
|
2145
|
-
accessList?: undefined;
|
|
2146
|
-
authorizationList?: undefined;
|
|
2147
|
-
yParity?: undefined;
|
|
2148
|
-
typeHex: viem.Hex | null;
|
|
2149
|
-
chainId?: number;
|
|
2150
|
-
blockNumber: bigint;
|
|
2151
2126
|
blockHash: `0x${string}`;
|
|
2127
|
+
blockNumber: bigint;
|
|
2152
2128
|
transactionIndex: number;
|
|
2153
2129
|
} | {
|
|
2154
2130
|
input: viem.Hex;
|
|
2155
2131
|
s: viem.Hex;
|
|
2156
2132
|
value: bigint;
|
|
2157
|
-
hash: Hash$1;
|
|
2158
|
-
v: bigint;
|
|
2159
|
-
r: viem.Hex;
|
|
2160
2133
|
type: "eip2930";
|
|
2161
|
-
|
|
2134
|
+
yParity: number;
|
|
2162
2135
|
from: viem.Address;
|
|
2163
2136
|
gas: bigint;
|
|
2137
|
+
hash: Hash$1;
|
|
2164
2138
|
nonce: number;
|
|
2139
|
+
r: viem.Hex;
|
|
2140
|
+
to: viem.Address | null;
|
|
2141
|
+
typeHex: viem.Hex | null;
|
|
2142
|
+
v: bigint;
|
|
2143
|
+
accessList: viem.AccessList;
|
|
2144
|
+
authorizationList?: undefined;
|
|
2165
2145
|
blobVersionedHashes?: undefined;
|
|
2146
|
+
chainId: number;
|
|
2166
2147
|
gasPrice: bigint;
|
|
2167
2148
|
maxFeePerBlobGas?: undefined;
|
|
2168
2149
|
maxFeePerGas?: undefined;
|
|
2169
2150
|
maxPriorityFeePerGas?: undefined;
|
|
2170
|
-
accessList: viem.AccessList;
|
|
2171
|
-
authorizationList?: undefined;
|
|
2172
|
-
yParity: number;
|
|
2173
|
-
typeHex: viem.Hex | null;
|
|
2174
|
-
chainId: number;
|
|
2175
|
-
blockNumber: bigint;
|
|
2176
2151
|
blockHash: `0x${string}`;
|
|
2152
|
+
blockNumber: bigint;
|
|
2177
2153
|
transactionIndex: number;
|
|
2178
2154
|
} | {
|
|
2179
2155
|
input: viem.Hex;
|
|
2180
2156
|
s: viem.Hex;
|
|
2181
2157
|
value: bigint;
|
|
2182
|
-
hash: Hash$1;
|
|
2183
|
-
v: bigint;
|
|
2184
|
-
r: viem.Hex;
|
|
2185
2158
|
type: "eip1559";
|
|
2186
|
-
|
|
2159
|
+
yParity: number;
|
|
2187
2160
|
from: viem.Address;
|
|
2188
2161
|
gas: bigint;
|
|
2162
|
+
hash: Hash$1;
|
|
2189
2163
|
nonce: number;
|
|
2164
|
+
r: viem.Hex;
|
|
2165
|
+
to: viem.Address | null;
|
|
2166
|
+
typeHex: viem.Hex | null;
|
|
2167
|
+
v: bigint;
|
|
2168
|
+
accessList: viem.AccessList;
|
|
2169
|
+
authorizationList?: undefined;
|
|
2190
2170
|
blobVersionedHashes?: undefined;
|
|
2171
|
+
chainId: number;
|
|
2191
2172
|
gasPrice?: undefined;
|
|
2192
2173
|
maxFeePerBlobGas?: undefined;
|
|
2193
2174
|
maxFeePerGas: bigint;
|
|
2194
2175
|
maxPriorityFeePerGas: bigint;
|
|
2195
|
-
accessList: viem.AccessList;
|
|
2196
|
-
authorizationList?: undefined;
|
|
2197
|
-
yParity: number;
|
|
2198
|
-
typeHex: viem.Hex | null;
|
|
2199
|
-
chainId: number;
|
|
2200
|
-
blockNumber: bigint;
|
|
2201
2176
|
blockHash: `0x${string}`;
|
|
2177
|
+
blockNumber: bigint;
|
|
2202
2178
|
transactionIndex: number;
|
|
2203
2179
|
} | {
|
|
2204
2180
|
input: viem.Hex;
|
|
2205
2181
|
s: viem.Hex;
|
|
2206
2182
|
value: bigint;
|
|
2207
|
-
hash: Hash$1;
|
|
2208
|
-
v: bigint;
|
|
2209
|
-
r: viem.Hex;
|
|
2210
2183
|
type: "eip4844";
|
|
2211
|
-
|
|
2184
|
+
yParity: number;
|
|
2212
2185
|
from: viem.Address;
|
|
2213
2186
|
gas: bigint;
|
|
2187
|
+
hash: Hash$1;
|
|
2214
2188
|
nonce: number;
|
|
2189
|
+
r: viem.Hex;
|
|
2190
|
+
to: viem.Address | null;
|
|
2191
|
+
typeHex: viem.Hex | null;
|
|
2192
|
+
v: bigint;
|
|
2193
|
+
accessList: viem.AccessList;
|
|
2194
|
+
authorizationList?: undefined;
|
|
2215
2195
|
blobVersionedHashes: readonly viem.Hex[];
|
|
2196
|
+
chainId: number;
|
|
2216
2197
|
gasPrice?: undefined;
|
|
2217
2198
|
maxFeePerBlobGas: bigint;
|
|
2218
2199
|
maxFeePerGas: bigint;
|
|
2219
2200
|
maxPriorityFeePerGas: bigint;
|
|
2220
|
-
accessList: viem.AccessList;
|
|
2221
|
-
authorizationList?: undefined;
|
|
2222
|
-
yParity: number;
|
|
2223
|
-
typeHex: viem.Hex | null;
|
|
2224
|
-
chainId: number;
|
|
2225
|
-
blockNumber: bigint;
|
|
2226
2201
|
blockHash: `0x${string}`;
|
|
2202
|
+
blockNumber: bigint;
|
|
2227
2203
|
transactionIndex: number;
|
|
2228
2204
|
} | {
|
|
2229
2205
|
input: viem.Hex;
|
|
2230
2206
|
s: viem.Hex;
|
|
2231
2207
|
value: bigint;
|
|
2232
|
-
hash: Hash$1;
|
|
2233
|
-
v: bigint;
|
|
2234
|
-
r: viem.Hex;
|
|
2235
2208
|
type: "eip7702";
|
|
2236
|
-
|
|
2209
|
+
yParity: number;
|
|
2237
2210
|
from: viem.Address;
|
|
2238
2211
|
gas: bigint;
|
|
2212
|
+
hash: Hash$1;
|
|
2239
2213
|
nonce: number;
|
|
2214
|
+
r: viem.Hex;
|
|
2215
|
+
to: viem.Address | null;
|
|
2216
|
+
typeHex: viem.Hex | null;
|
|
2217
|
+
v: bigint;
|
|
2218
|
+
accessList: viem.AccessList;
|
|
2219
|
+
authorizationList: viem.SignedAuthorizationList;
|
|
2240
2220
|
blobVersionedHashes?: undefined;
|
|
2221
|
+
chainId: number;
|
|
2241
2222
|
gasPrice?: undefined;
|
|
2242
2223
|
maxFeePerBlobGas?: undefined;
|
|
2243
2224
|
maxFeePerGas: bigint;
|
|
2244
2225
|
maxPriorityFeePerGas: bigint;
|
|
2245
|
-
accessList: viem.AccessList;
|
|
2246
|
-
authorizationList: viem.SignedAuthorizationList;
|
|
2247
|
-
yParity: number;
|
|
2248
|
-
typeHex: viem.Hex | null;
|
|
2249
|
-
chainId: number;
|
|
2250
|
-
blockNumber: bigint;
|
|
2251
2226
|
blockHash: `0x${string}`;
|
|
2227
|
+
blockNumber: bigint;
|
|
2252
2228
|
transactionIndex: number;
|
|
2253
2229
|
};
|
|
2254
2230
|
receipt: viem.TransactionReceipt;
|
|
@@ -2353,6 +2329,23 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2353
2329
|
pendingStep: string;
|
|
2354
2330
|
pendingStepMsg: string;
|
|
2355
2331
|
};
|
|
2332
|
+
bridgeMenu: {
|
|
2333
|
+
title: string;
|
|
2334
|
+
labels: {
|
|
2335
|
+
bridgeAsset: string;
|
|
2336
|
+
selectToken: string;
|
|
2337
|
+
toChain: string;
|
|
2338
|
+
confirm: string;
|
|
2339
|
+
pending: string;
|
|
2340
|
+
};
|
|
2341
|
+
actions: {
|
|
2342
|
+
switchChain: string;
|
|
2343
|
+
selectChain: string;
|
|
2344
|
+
selectAsset: string;
|
|
2345
|
+
bridgeAsset: string;
|
|
2346
|
+
};
|
|
2347
|
+
noAssets: string;
|
|
2348
|
+
};
|
|
2356
2349
|
receiveMenu: {
|
|
2357
2350
|
title: string;
|
|
2358
2351
|
copyAddress: string;
|
|
@@ -3031,4 +3024,4 @@ declare function getLanguageIcon(languageKey: string): string | null;
|
|
|
3031
3024
|
|
|
3032
3025
|
declare const USER_PROFILE_QUERY_KEY: string;
|
|
3033
3026
|
|
|
3034
|
-
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, type DirectTransactionParams, ErrorCodes, type FingerprintVerificationResult, Hash, type HashProps, KeyshareBackupMenu as KeyshareBackup, LOCAL_STORAGE_I18N_KEY, LangToggle, type NicknameAvailability, type NicknameAvatar, type NicknameChangeResult, type NicknameInfo, type NicknameResolution, type NicknameResolveRequest, type NicknameResolvedTarget, type NicknameValidationResult, PASSPORT_TRANSLATIONS, PageKey, type PageOpenParams, Provider, type ProviderConfig, type ProviderDetail, type ProviderProps, type RegisterSmartAccountResult, type SendTransactionParams, type SendTransactionResult, type SignTypedDataParams, type SmartAccountEntry, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type TransferToLinkedParams, type TypedDataDomain, type TypedDataField, USER_PROFILE_QUERY_KEY, type UpdateProfileRequest, type UseDirectWalletReturn, type UseErc3643ComplianceOptions, type UseErc3643ComplianceResult, type UseLogoutReturn, type UseNicknameResolveOptions, type UseNicknameResolveResult, type UseSendDirectTransactionReturn, type UseSendTransactionReturn, type UseTransferToLinkedReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UseWalletModeReturn, type UserOpMempool, type SendTransactionParams$1 as UserOpSendTransactionParams, type UserOpState, UserOpStatus, type UserOpStatusProps, type UserOperation, type UserOperationByHash, type UserOperationReceipt, UserOperationTimeoutError, type UserProfile, UserRejectedError, type WaitForReceiptOptions, type WalletMode, type WalletReadyStatus, type WatchToken, combineI18NResources, createAccountAbstractionError, deployAccount, destroyIframeManager, generateFingerprint, getAllSmartAccounts, getAvailableLanguages, getExplorerUrl, getIframeManager, getLanguageIcon, getShareRecoveryStats, getSmartAccountForChain, getUserOperationByHash, getUserOperationReceipt, getUserProfile, looksLikeNickname, prepareUserOperation, requireActiveChainId, sendUserOperation, signTypedData, updateUserProfile, useAccountSession, useActiveChainId, useAddress, useAssets, useBalance, useBlockscoutAssets, useColorMode, useConnectedApps, useDirectWallet, useErc3643Compliance, useError, useHasServerVault, useHydrated, useIFrameReady, useIsMobileView, useKeyshareRecoveryStats, useLinkedProfiles, useLoadingStatus, useLogout, useNativeWalletSignature, useNicknameResolve, useOpenPage, useProviderConfig, useRecoveryUserId, useSendDirectTransaction, useSendTransaction, useSession, useSmartAccountTransactions, useTokenBalance, useTokenInfo, useTransactions, useTransferToLinkedWallet, useUserOpStatus, useWalletMode, verifyFingerprint, verifyFingerprintDetailed, wagmiConfig, waitForStoreHydration, waitForUserOperationReceipt };
|
|
3027
|
+
export { AccountAbstractionError, type AccountSession, Address, type AddressProps, type Asset, type BatchOperation, type CallbacksConfig, ConnectWalletButton, type ConnectWalletButtonProps, type DirectTransactionParams, ErrorCodes, type FingerprintVerificationResult, Hash, type HashProps, KeyshareBackupMenu as KeyshareBackup, LOCAL_STORAGE_I18N_KEY, LangToggle, type NicknameAvailability, type NicknameAvatar, type NicknameChangeResult, type NicknameInfo, type NicknameResolution, type NicknameResolveRequest, type NicknameResolvedTarget, type NicknameValidationResult, PASSPORT_TRANSLATIONS, PageKey, type PageOpenParams, type PrepareBatchUserOperationParams, Provider, type ProviderConfig, type ProviderDetail, type ProviderProps, type RegisterSmartAccountResult, type SendBatchUserOperationParams, type SendTransactionParams, type SendTransactionResult, type SignTypedDataParams, type SmartAccountEntry, ThemeToggle, type TokenBalance, type Transaction, TransactionsList, type TransferToLinkedParams, type TypedDataDomain, type TypedDataField, USER_PROFILE_QUERY_KEY, type UpdateProfileRequest, type UseDirectWalletReturn, type UseErc3643ComplianceOptions, type UseErc3643ComplianceResult, type UseLogoutReturn, type UseNicknameResolveOptions, type UseNicknameResolveResult, type UseSendDirectTransactionReturn, type UseSendTransactionReturn, type UseTransferToLinkedReturn, type UseUserOpStatusOptions, type UseUserOpStatusReturn, type UseWalletModeReturn, type UserOpMempool, type SendTransactionParams$1 as UserOpSendTransactionParams, type UserOpState, UserOpStatus, type UserOpStatusProps, type UserOperation, type UserOperationByHash, type UserOperationReceipt, UserOperationTimeoutError, type UserProfile, UserRejectedError, type WaitForReceiptOptions, type WalletMode, type WalletReadyStatus, type WatchToken, combineI18NResources, createAccountAbstractionError, deployAccount, destroyIframeManager, generateFingerprint, getAllSmartAccounts, getAvailableLanguages, getExplorerUrl, getIframeManager, getLanguageIcon, getShareRecoveryStats, getSmartAccountForChain, getUserOperationByHash, getUserOperationReceipt, getUserProfile, looksLikeNickname, prepareBatchUserOperation, prepareUserOperation, requireActiveChainId, sendBatchUserOperation, sendUserOperation, signTypedData, updateUserProfile, useAccountSession, useActiveChainId, useAddress, useAssets, useBalance, useBlockscoutAssets, useColorMode, useConnectedApps, useDirectWallet, useErc3643Compliance, useError, useHasServerVault, useHydrated, useIFrameReady, useIsMobileView, useKeyshareRecoveryStats, useLinkedProfiles, useLoadingStatus, useLogout, useNativeWalletSignature, useNicknameResolve, useOpenPage, useProviderConfig, useRecoveryUserId, useSendDirectTransaction, useSendTransaction, useSession, useSmartAccountTransactions, useTokenBalance, useTokenInfo, useTransactions, useTransferToLinkedWallet, useUserOpStatus, useWalletMode, verifyFingerprint, verifyFingerprintDetailed, wagmiConfig, waitForStoreHydration, waitForUserOperationReceipt };
|