@embarkai/ui-kit 0.4.18 → 0.4.20
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 +497 -730
- package/dist/index.d.cts +207 -232
- package/dist/index.d.ts +207 -232
- package/dist/index.js +437 -677
- package/package.json +2 -2
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> {
|
|
@@ -1983,126 +1958,126 @@ declare function useTransactions(): {
|
|
|
1983
1958
|
input: viem.Hex;
|
|
1984
1959
|
s: viem.Hex;
|
|
1985
1960
|
value: bigint;
|
|
1986
|
-
hash: Hash$1;
|
|
1987
|
-
v: bigint;
|
|
1988
|
-
r: viem.Hex;
|
|
1989
1961
|
type: "legacy";
|
|
1990
|
-
|
|
1962
|
+
yParity?: undefined;
|
|
1991
1963
|
from: viem.Address;
|
|
1992
1964
|
gas: bigint;
|
|
1965
|
+
hash: Hash$1;
|
|
1993
1966
|
nonce: number;
|
|
1967
|
+
r: viem.Hex;
|
|
1968
|
+
to: viem.Address | null;
|
|
1969
|
+
typeHex: viem.Hex | null;
|
|
1970
|
+
v: bigint;
|
|
1971
|
+
accessList?: undefined;
|
|
1972
|
+
authorizationList?: undefined;
|
|
1994
1973
|
blobVersionedHashes?: undefined;
|
|
1974
|
+
chainId?: number;
|
|
1995
1975
|
gasPrice: bigint;
|
|
1996
1976
|
maxFeePerBlobGas?: undefined;
|
|
1997
1977
|
maxFeePerGas?: undefined;
|
|
1998
1978
|
maxPriorityFeePerGas?: undefined;
|
|
1999
|
-
accessList?: undefined;
|
|
2000
|
-
authorizationList?: undefined;
|
|
2001
|
-
yParity?: undefined;
|
|
2002
|
-
typeHex: viem.Hex | null;
|
|
2003
|
-
chainId?: number;
|
|
2004
|
-
blockNumber: bigint;
|
|
2005
1979
|
blockHash: `0x${string}`;
|
|
1980
|
+
blockNumber: bigint;
|
|
2006
1981
|
transactionIndex: number;
|
|
2007
1982
|
} | {
|
|
2008
1983
|
input: viem.Hex;
|
|
2009
1984
|
s: viem.Hex;
|
|
2010
1985
|
value: bigint;
|
|
2011
|
-
hash: Hash$1;
|
|
2012
|
-
v: bigint;
|
|
2013
|
-
r: viem.Hex;
|
|
2014
1986
|
type: "eip2930";
|
|
2015
|
-
|
|
1987
|
+
yParity: number;
|
|
2016
1988
|
from: viem.Address;
|
|
2017
1989
|
gas: bigint;
|
|
1990
|
+
hash: Hash$1;
|
|
2018
1991
|
nonce: number;
|
|
1992
|
+
r: viem.Hex;
|
|
1993
|
+
to: viem.Address | null;
|
|
1994
|
+
typeHex: viem.Hex | null;
|
|
1995
|
+
v: bigint;
|
|
1996
|
+
accessList: viem.AccessList;
|
|
1997
|
+
authorizationList?: undefined;
|
|
2019
1998
|
blobVersionedHashes?: undefined;
|
|
1999
|
+
chainId: number;
|
|
2020
2000
|
gasPrice: bigint;
|
|
2021
2001
|
maxFeePerBlobGas?: undefined;
|
|
2022
2002
|
maxFeePerGas?: undefined;
|
|
2023
2003
|
maxPriorityFeePerGas?: undefined;
|
|
2024
|
-
accessList: viem.AccessList;
|
|
2025
|
-
authorizationList?: undefined;
|
|
2026
|
-
yParity: number;
|
|
2027
|
-
typeHex: viem.Hex | null;
|
|
2028
|
-
chainId: number;
|
|
2029
|
-
blockNumber: bigint;
|
|
2030
2004
|
blockHash: `0x${string}`;
|
|
2005
|
+
blockNumber: bigint;
|
|
2031
2006
|
transactionIndex: number;
|
|
2032
2007
|
} | {
|
|
2033
2008
|
input: viem.Hex;
|
|
2034
2009
|
s: viem.Hex;
|
|
2035
2010
|
value: bigint;
|
|
2036
|
-
hash: Hash$1;
|
|
2037
|
-
v: bigint;
|
|
2038
|
-
r: viem.Hex;
|
|
2039
2011
|
type: "eip1559";
|
|
2040
|
-
|
|
2012
|
+
yParity: number;
|
|
2041
2013
|
from: viem.Address;
|
|
2042
2014
|
gas: bigint;
|
|
2015
|
+
hash: Hash$1;
|
|
2043
2016
|
nonce: number;
|
|
2017
|
+
r: viem.Hex;
|
|
2018
|
+
to: viem.Address | null;
|
|
2019
|
+
typeHex: viem.Hex | null;
|
|
2020
|
+
v: bigint;
|
|
2021
|
+
accessList: viem.AccessList;
|
|
2022
|
+
authorizationList?: undefined;
|
|
2044
2023
|
blobVersionedHashes?: undefined;
|
|
2024
|
+
chainId: number;
|
|
2045
2025
|
gasPrice?: undefined;
|
|
2046
2026
|
maxFeePerBlobGas?: undefined;
|
|
2047
2027
|
maxFeePerGas: bigint;
|
|
2048
2028
|
maxPriorityFeePerGas: bigint;
|
|
2049
|
-
accessList: viem.AccessList;
|
|
2050
|
-
authorizationList?: undefined;
|
|
2051
|
-
yParity: number;
|
|
2052
|
-
typeHex: viem.Hex | null;
|
|
2053
|
-
chainId: number;
|
|
2054
|
-
blockNumber: bigint;
|
|
2055
2029
|
blockHash: `0x${string}`;
|
|
2030
|
+
blockNumber: bigint;
|
|
2056
2031
|
transactionIndex: number;
|
|
2057
2032
|
} | {
|
|
2058
2033
|
input: viem.Hex;
|
|
2059
2034
|
s: viem.Hex;
|
|
2060
2035
|
value: bigint;
|
|
2061
|
-
hash: Hash$1;
|
|
2062
|
-
v: bigint;
|
|
2063
|
-
r: viem.Hex;
|
|
2064
2036
|
type: "eip4844";
|
|
2065
|
-
|
|
2037
|
+
yParity: number;
|
|
2066
2038
|
from: viem.Address;
|
|
2067
2039
|
gas: bigint;
|
|
2040
|
+
hash: Hash$1;
|
|
2068
2041
|
nonce: number;
|
|
2042
|
+
r: viem.Hex;
|
|
2043
|
+
to: viem.Address | null;
|
|
2044
|
+
typeHex: viem.Hex | null;
|
|
2045
|
+
v: bigint;
|
|
2046
|
+
accessList: viem.AccessList;
|
|
2047
|
+
authorizationList?: undefined;
|
|
2069
2048
|
blobVersionedHashes: readonly viem.Hex[];
|
|
2049
|
+
chainId: number;
|
|
2070
2050
|
gasPrice?: undefined;
|
|
2071
2051
|
maxFeePerBlobGas: bigint;
|
|
2072
2052
|
maxFeePerGas: bigint;
|
|
2073
2053
|
maxPriorityFeePerGas: bigint;
|
|
2074
|
-
accessList: viem.AccessList;
|
|
2075
|
-
authorizationList?: undefined;
|
|
2076
|
-
yParity: number;
|
|
2077
|
-
typeHex: viem.Hex | null;
|
|
2078
|
-
chainId: number;
|
|
2079
|
-
blockNumber: bigint;
|
|
2080
2054
|
blockHash: `0x${string}`;
|
|
2055
|
+
blockNumber: bigint;
|
|
2081
2056
|
transactionIndex: number;
|
|
2082
2057
|
} | {
|
|
2083
2058
|
input: viem.Hex;
|
|
2084
2059
|
s: viem.Hex;
|
|
2085
2060
|
value: bigint;
|
|
2086
|
-
hash: Hash$1;
|
|
2087
|
-
v: bigint;
|
|
2088
|
-
r: viem.Hex;
|
|
2089
2061
|
type: "eip7702";
|
|
2090
|
-
|
|
2062
|
+
yParity: number;
|
|
2091
2063
|
from: viem.Address;
|
|
2092
2064
|
gas: bigint;
|
|
2065
|
+
hash: Hash$1;
|
|
2093
2066
|
nonce: number;
|
|
2067
|
+
r: viem.Hex;
|
|
2068
|
+
to: viem.Address | null;
|
|
2069
|
+
typeHex: viem.Hex | null;
|
|
2070
|
+
v: bigint;
|
|
2071
|
+
accessList: viem.AccessList;
|
|
2072
|
+
authorizationList: viem.SignedAuthorizationList;
|
|
2094
2073
|
blobVersionedHashes?: undefined;
|
|
2074
|
+
chainId: number;
|
|
2095
2075
|
gasPrice?: undefined;
|
|
2096
2076
|
maxFeePerBlobGas?: undefined;
|
|
2097
2077
|
maxFeePerGas: bigint;
|
|
2098
2078
|
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
2079
|
blockHash: `0x${string}`;
|
|
2080
|
+
blockNumber: bigint;
|
|
2106
2081
|
transactionIndex: number;
|
|
2107
2082
|
}>;
|
|
2108
2083
|
getTransactionReceipt: (hash: Hash$1) => Promise<TransactionReceipt>;
|
|
@@ -2129,126 +2104,126 @@ declare function useSmartAccountTransactions(): {
|
|
|
2129
2104
|
input: viem.Hex;
|
|
2130
2105
|
s: viem.Hex;
|
|
2131
2106
|
value: bigint;
|
|
2132
|
-
hash: Hash$1;
|
|
2133
|
-
v: bigint;
|
|
2134
|
-
r: viem.Hex;
|
|
2135
2107
|
type: "legacy";
|
|
2136
|
-
|
|
2108
|
+
yParity?: undefined;
|
|
2137
2109
|
from: viem.Address;
|
|
2138
2110
|
gas: bigint;
|
|
2111
|
+
hash: Hash$1;
|
|
2139
2112
|
nonce: number;
|
|
2113
|
+
r: viem.Hex;
|
|
2114
|
+
to: viem.Address | null;
|
|
2115
|
+
typeHex: viem.Hex | null;
|
|
2116
|
+
v: bigint;
|
|
2117
|
+
accessList?: undefined;
|
|
2118
|
+
authorizationList?: undefined;
|
|
2140
2119
|
blobVersionedHashes?: undefined;
|
|
2120
|
+
chainId?: number;
|
|
2141
2121
|
gasPrice: bigint;
|
|
2142
2122
|
maxFeePerBlobGas?: undefined;
|
|
2143
2123
|
maxFeePerGas?: undefined;
|
|
2144
2124
|
maxPriorityFeePerGas?: undefined;
|
|
2145
|
-
accessList?: undefined;
|
|
2146
|
-
authorizationList?: undefined;
|
|
2147
|
-
yParity?: undefined;
|
|
2148
|
-
typeHex: viem.Hex | null;
|
|
2149
|
-
chainId?: number;
|
|
2150
|
-
blockNumber: bigint;
|
|
2151
2125
|
blockHash: `0x${string}`;
|
|
2126
|
+
blockNumber: bigint;
|
|
2152
2127
|
transactionIndex: number;
|
|
2153
2128
|
} | {
|
|
2154
2129
|
input: viem.Hex;
|
|
2155
2130
|
s: viem.Hex;
|
|
2156
2131
|
value: bigint;
|
|
2157
|
-
hash: Hash$1;
|
|
2158
|
-
v: bigint;
|
|
2159
|
-
r: viem.Hex;
|
|
2160
2132
|
type: "eip2930";
|
|
2161
|
-
|
|
2133
|
+
yParity: number;
|
|
2162
2134
|
from: viem.Address;
|
|
2163
2135
|
gas: bigint;
|
|
2136
|
+
hash: Hash$1;
|
|
2164
2137
|
nonce: number;
|
|
2138
|
+
r: viem.Hex;
|
|
2139
|
+
to: viem.Address | null;
|
|
2140
|
+
typeHex: viem.Hex | null;
|
|
2141
|
+
v: bigint;
|
|
2142
|
+
accessList: viem.AccessList;
|
|
2143
|
+
authorizationList?: undefined;
|
|
2165
2144
|
blobVersionedHashes?: undefined;
|
|
2145
|
+
chainId: number;
|
|
2166
2146
|
gasPrice: bigint;
|
|
2167
2147
|
maxFeePerBlobGas?: undefined;
|
|
2168
2148
|
maxFeePerGas?: undefined;
|
|
2169
2149
|
maxPriorityFeePerGas?: undefined;
|
|
2170
|
-
accessList: viem.AccessList;
|
|
2171
|
-
authorizationList?: undefined;
|
|
2172
|
-
yParity: number;
|
|
2173
|
-
typeHex: viem.Hex | null;
|
|
2174
|
-
chainId: number;
|
|
2175
|
-
blockNumber: bigint;
|
|
2176
2150
|
blockHash: `0x${string}`;
|
|
2151
|
+
blockNumber: bigint;
|
|
2177
2152
|
transactionIndex: number;
|
|
2178
2153
|
} | {
|
|
2179
2154
|
input: viem.Hex;
|
|
2180
2155
|
s: viem.Hex;
|
|
2181
2156
|
value: bigint;
|
|
2182
|
-
hash: Hash$1;
|
|
2183
|
-
v: bigint;
|
|
2184
|
-
r: viem.Hex;
|
|
2185
2157
|
type: "eip1559";
|
|
2186
|
-
|
|
2158
|
+
yParity: number;
|
|
2187
2159
|
from: viem.Address;
|
|
2188
2160
|
gas: bigint;
|
|
2161
|
+
hash: Hash$1;
|
|
2189
2162
|
nonce: number;
|
|
2163
|
+
r: viem.Hex;
|
|
2164
|
+
to: viem.Address | null;
|
|
2165
|
+
typeHex: viem.Hex | null;
|
|
2166
|
+
v: bigint;
|
|
2167
|
+
accessList: viem.AccessList;
|
|
2168
|
+
authorizationList?: undefined;
|
|
2190
2169
|
blobVersionedHashes?: undefined;
|
|
2170
|
+
chainId: number;
|
|
2191
2171
|
gasPrice?: undefined;
|
|
2192
2172
|
maxFeePerBlobGas?: undefined;
|
|
2193
2173
|
maxFeePerGas: bigint;
|
|
2194
2174
|
maxPriorityFeePerGas: bigint;
|
|
2195
|
-
accessList: viem.AccessList;
|
|
2196
|
-
authorizationList?: undefined;
|
|
2197
|
-
yParity: number;
|
|
2198
|
-
typeHex: viem.Hex | null;
|
|
2199
|
-
chainId: number;
|
|
2200
|
-
blockNumber: bigint;
|
|
2201
2175
|
blockHash: `0x${string}`;
|
|
2176
|
+
blockNumber: bigint;
|
|
2202
2177
|
transactionIndex: number;
|
|
2203
2178
|
} | {
|
|
2204
2179
|
input: viem.Hex;
|
|
2205
2180
|
s: viem.Hex;
|
|
2206
2181
|
value: bigint;
|
|
2207
|
-
hash: Hash$1;
|
|
2208
|
-
v: bigint;
|
|
2209
|
-
r: viem.Hex;
|
|
2210
2182
|
type: "eip4844";
|
|
2211
|
-
|
|
2183
|
+
yParity: number;
|
|
2212
2184
|
from: viem.Address;
|
|
2213
2185
|
gas: bigint;
|
|
2186
|
+
hash: Hash$1;
|
|
2214
2187
|
nonce: number;
|
|
2188
|
+
r: viem.Hex;
|
|
2189
|
+
to: viem.Address | null;
|
|
2190
|
+
typeHex: viem.Hex | null;
|
|
2191
|
+
v: bigint;
|
|
2192
|
+
accessList: viem.AccessList;
|
|
2193
|
+
authorizationList?: undefined;
|
|
2215
2194
|
blobVersionedHashes: readonly viem.Hex[];
|
|
2195
|
+
chainId: number;
|
|
2216
2196
|
gasPrice?: undefined;
|
|
2217
2197
|
maxFeePerBlobGas: bigint;
|
|
2218
2198
|
maxFeePerGas: bigint;
|
|
2219
2199
|
maxPriorityFeePerGas: bigint;
|
|
2220
|
-
accessList: viem.AccessList;
|
|
2221
|
-
authorizationList?: undefined;
|
|
2222
|
-
yParity: number;
|
|
2223
|
-
typeHex: viem.Hex | null;
|
|
2224
|
-
chainId: number;
|
|
2225
|
-
blockNumber: bigint;
|
|
2226
2200
|
blockHash: `0x${string}`;
|
|
2201
|
+
blockNumber: bigint;
|
|
2227
2202
|
transactionIndex: number;
|
|
2228
2203
|
} | {
|
|
2229
2204
|
input: viem.Hex;
|
|
2230
2205
|
s: viem.Hex;
|
|
2231
2206
|
value: bigint;
|
|
2232
|
-
hash: Hash$1;
|
|
2233
|
-
v: bigint;
|
|
2234
|
-
r: viem.Hex;
|
|
2235
2207
|
type: "eip7702";
|
|
2236
|
-
|
|
2208
|
+
yParity: number;
|
|
2237
2209
|
from: viem.Address;
|
|
2238
2210
|
gas: bigint;
|
|
2211
|
+
hash: Hash$1;
|
|
2239
2212
|
nonce: number;
|
|
2213
|
+
r: viem.Hex;
|
|
2214
|
+
to: viem.Address | null;
|
|
2215
|
+
typeHex: viem.Hex | null;
|
|
2216
|
+
v: bigint;
|
|
2217
|
+
accessList: viem.AccessList;
|
|
2218
|
+
authorizationList: viem.SignedAuthorizationList;
|
|
2240
2219
|
blobVersionedHashes?: undefined;
|
|
2220
|
+
chainId: number;
|
|
2241
2221
|
gasPrice?: undefined;
|
|
2242
2222
|
maxFeePerBlobGas?: undefined;
|
|
2243
2223
|
maxFeePerGas: bigint;
|
|
2244
2224
|
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
2225
|
blockHash: `0x${string}`;
|
|
2226
|
+
blockNumber: bigint;
|
|
2252
2227
|
transactionIndex: number;
|
|
2253
2228
|
};
|
|
2254
2229
|
receipt: viem.TransactionReceipt;
|
|
@@ -3031,4 +3006,4 @@ declare function getLanguageIcon(languageKey: string): string | null;
|
|
|
3031
3006
|
|
|
3032
3007
|
declare const USER_PROFILE_QUERY_KEY: string;
|
|
3033
3008
|
|
|
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 };
|
|
3009
|
+
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 };
|