@embarkai/ui-kit 0.4.26 → 0.4.28
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/dist/iframe/index.html +2 -2
- package/dist/iframe/main.js +211 -175
- package/dist/index.cjs +6217 -3152
- package/dist/index.d.cts +329 -197
- package/dist/index.d.ts +329 -197
- package/dist/index.js +5817 -2747
- package/dist/styles.css +1 -1
- package/package.json +34 -35
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import React__default, { ReactNode, MutableRefObject, FC, HTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import react__default, { ReactNode, MutableRefObject, FC, HTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
4
3
|
import { BlockscoutTokenBalance } from '@embarkai/core/clients';
|
|
5
4
|
import * as viem from 'viem';
|
|
6
5
|
import { Address as Address$1, Hex, PublicClient, Chain, Hash as Hash$1, TransactionReceipt } from 'viem';
|
|
@@ -164,7 +163,7 @@ interface SocialProvider {
|
|
|
164
163
|
id: string;
|
|
165
164
|
name: string;
|
|
166
165
|
enabled: boolean;
|
|
167
|
-
icon:
|
|
166
|
+
icon: react__default.ComponentType<{
|
|
168
167
|
className?: string;
|
|
169
168
|
}>;
|
|
170
169
|
comingSoon?: boolean;
|
|
@@ -381,7 +380,7 @@ interface ProviderProps {
|
|
|
381
380
|
callbacks?: CallbacksConfig;
|
|
382
381
|
}
|
|
383
382
|
/** NEVER EVER declare here any state (useState or whatever). This Provider should NEVER trigger self of child-app re-renders */
|
|
384
|
-
declare function Provider(props: ProviderProps):
|
|
383
|
+
declare function Provider(props: ProviderProps): react.JSX.Element;
|
|
385
384
|
declare const useProviderConfig: () => UIContextType;
|
|
386
385
|
|
|
387
386
|
interface ConnectWalletButtonProps {
|
|
@@ -391,7 +390,7 @@ interface ConnectWalletButtonProps {
|
|
|
391
390
|
label?: string;
|
|
392
391
|
usePaymaster?: boolean;
|
|
393
392
|
}
|
|
394
|
-
declare function ConnectWalletButton(props: ConnectWalletButtonProps):
|
|
393
|
+
declare function ConnectWalletButton(props: ConnectWalletButtonProps): react.JSX.Element;
|
|
395
394
|
|
|
396
395
|
/**
|
|
397
396
|
* Account session containing wallet and smart account information.
|
|
@@ -595,7 +594,7 @@ declare function getSmartAccountForChain(chainId: number): Promise<SmartAccountE
|
|
|
595
594
|
/**
|
|
596
595
|
* Iframe Manager for Parent SDK
|
|
597
596
|
*
|
|
598
|
-
* Manages secure communication with the isolated iframe wallet at auth.
|
|
597
|
+
* Manages secure communication with the isolated iframe wallet at auth.embarkai.io
|
|
599
598
|
* Implements postMessage protocol with HMAC authentication and replay protection
|
|
600
599
|
*/
|
|
601
600
|
|
|
@@ -1094,10 +1093,10 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantPr
|
|
|
1094
1093
|
}
|
|
1095
1094
|
|
|
1096
1095
|
/** EmbarkAI Color Mode Switcher */
|
|
1097
|
-
declare function ThemeToggle(props: ButtonProps):
|
|
1096
|
+
declare function ThemeToggle(props: ButtonProps): react.JSX.Element;
|
|
1098
1097
|
|
|
1099
1098
|
/** EmbarkAI Language Switcher */
|
|
1100
|
-
declare function LangToggle(props: ButtonProps):
|
|
1099
|
+
declare function LangToggle(props: ButtonProps): react.JSX.Element;
|
|
1101
1100
|
|
|
1102
1101
|
type ChainLike$2 = {
|
|
1103
1102
|
id: number;
|
|
@@ -1121,7 +1120,7 @@ type UserOpStatusProps = {
|
|
|
1121
1120
|
isPolling?: boolean;
|
|
1122
1121
|
};
|
|
1123
1122
|
};
|
|
1124
|
-
declare const UserOpStatus:
|
|
1123
|
+
declare const UserOpStatus: react.FC<UserOpStatusProps>;
|
|
1125
1124
|
|
|
1126
1125
|
type ChainLike$1 = {
|
|
1127
1126
|
id: number;
|
|
@@ -1141,7 +1140,7 @@ type HashProps = {
|
|
|
1141
1140
|
kind?: 'tx' | 'address' | 'block';
|
|
1142
1141
|
label?: string;
|
|
1143
1142
|
};
|
|
1144
|
-
declare const Hash:
|
|
1143
|
+
declare const Hash: react.FC<HashProps>;
|
|
1145
1144
|
|
|
1146
1145
|
type ChainLike = {
|
|
1147
1146
|
id: number;
|
|
@@ -1160,15 +1159,15 @@ type AddressProps = {
|
|
|
1160
1159
|
showExplorer?: boolean;
|
|
1161
1160
|
label?: string;
|
|
1162
1161
|
};
|
|
1163
|
-
declare const Address:
|
|
1162
|
+
declare const Address: react.FC<AddressProps>;
|
|
1164
1163
|
|
|
1165
1164
|
interface TransactionsListProps {
|
|
1166
1165
|
address: string;
|
|
1167
1166
|
itemsCount?: number;
|
|
1168
1167
|
}
|
|
1169
|
-
declare const TransactionsList:
|
|
1168
|
+
declare const TransactionsList: react__default.FC<TransactionsListProps>;
|
|
1170
1169
|
|
|
1171
|
-
declare function KeyshareBackupMenu():
|
|
1170
|
+
declare function KeyshareBackupMenu(): react.JSX.Element;
|
|
1172
1171
|
|
|
1173
1172
|
interface RecoveryStatsDeviceEntry {
|
|
1174
1173
|
deviceId: string;
|
|
@@ -1215,6 +1214,174 @@ interface UseSendTransactionReturn {
|
|
|
1215
1214
|
}
|
|
1216
1215
|
declare function useSendTransaction(): UseSendTransactionReturn;
|
|
1217
1216
|
|
|
1217
|
+
/**
|
|
1218
|
+
* Get UserOperation data by hash
|
|
1219
|
+
*/
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* UserOperation data from bundler response
|
|
1223
|
+
*/
|
|
1224
|
+
interface UserOperationByHash {
|
|
1225
|
+
/** EntryPoint address */
|
|
1226
|
+
entryPoint: `0x${string}`;
|
|
1227
|
+
/** User operation details */
|
|
1228
|
+
userOperation: {
|
|
1229
|
+
sender: `0x${string}`;
|
|
1230
|
+
nonce: `0x${string}`;
|
|
1231
|
+
callData: `0x${string}`;
|
|
1232
|
+
callGasLimit: `0x${string}`;
|
|
1233
|
+
verificationGasLimit: `0x${string}`;
|
|
1234
|
+
preVerificationGas: `0x${string}`;
|
|
1235
|
+
maxPriorityFeePerGas: `0x${string}`;
|
|
1236
|
+
maxFeePerGas: `0x${string}`;
|
|
1237
|
+
paymaster?: `0x${string}`;
|
|
1238
|
+
paymasterVerificationGasLimit?: `0x${string}`;
|
|
1239
|
+
paymasterPostOpGasLimit?: `0x${string}`;
|
|
1240
|
+
paymasterData?: `0x${string}`;
|
|
1241
|
+
signature: `0x${string}`;
|
|
1242
|
+
};
|
|
1243
|
+
/** Transaction hash (null if not yet included in block) */
|
|
1244
|
+
transactionHash: `0x${string}` | null;
|
|
1245
|
+
/** Block number (null if not yet included in block) */
|
|
1246
|
+
blockNumber: `0x${string}` | null;
|
|
1247
|
+
/** Block hash (null if not yet included in block) */
|
|
1248
|
+
blockHash: `0x${string}` | null;
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Get UserOperation data by hash
|
|
1252
|
+
*
|
|
1253
|
+
* Automatically uses active chain from UI unless chainId is specified.
|
|
1254
|
+
* Returns null if UserOp is not found.
|
|
1255
|
+
*
|
|
1256
|
+
* @param userOpHash - UserOperation hash returned from sendUserOperation
|
|
1257
|
+
* @param chainId - Optional chain ID (defaults to active chain)
|
|
1258
|
+
* @returns UserOperation data if found, null if not found
|
|
1259
|
+
* @throws {Error} If chain has no bundlerUrl configured
|
|
1260
|
+
*
|
|
1261
|
+
* @example
|
|
1262
|
+
* ```typescript
|
|
1263
|
+
* const hash = await sendUserOperation(session, { ... })
|
|
1264
|
+
* const userOp = await getUserOperationByHash(hash)
|
|
1265
|
+
* ```
|
|
1266
|
+
*/
|
|
1267
|
+
declare function getUserOperationByHash(userOpHash: Hash$1 | string, chainId?: number): Promise<UserOperationByHash | null>;
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* Get UserOperation receipt by hash
|
|
1271
|
+
*/
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* UserOperation receipt
|
|
1275
|
+
*
|
|
1276
|
+
* Contains execution details after UserOp is included in a block
|
|
1277
|
+
*/
|
|
1278
|
+
interface UserOperationReceipt {
|
|
1279
|
+
/** UserOperation hash */
|
|
1280
|
+
userOpHash: Hash$1;
|
|
1281
|
+
/** EntryPoint address that processed this UserOp */
|
|
1282
|
+
entryPoint: `0x${string}`;
|
|
1283
|
+
/** Sender (smart account) address */
|
|
1284
|
+
sender: `0x${string}`;
|
|
1285
|
+
/** Nonce used for this UserOp */
|
|
1286
|
+
nonce: `0x${string}`;
|
|
1287
|
+
/** True if UserOp succeeded, false if reverted */
|
|
1288
|
+
success: boolean;
|
|
1289
|
+
/** Actual gas cost paid */
|
|
1290
|
+
actualGasCost: `0x${string}`;
|
|
1291
|
+
/** Actual gas used */
|
|
1292
|
+
actualGasUsed: `0x${string}`;
|
|
1293
|
+
/** Paymaster address (if used) */
|
|
1294
|
+
paymaster?: `0x${string}`;
|
|
1295
|
+
/** Transaction receipt */
|
|
1296
|
+
receipt: {
|
|
1297
|
+
transactionHash: Hash$1;
|
|
1298
|
+
blockNumber: `0x${string}`;
|
|
1299
|
+
blockHash: Hash$1;
|
|
1300
|
+
[key: string]: any;
|
|
1301
|
+
};
|
|
1302
|
+
/** Logs emitted during execution */
|
|
1303
|
+
logs?: any[];
|
|
1304
|
+
/** Revert reason, if unsuccessful */
|
|
1305
|
+
reason?: string;
|
|
1306
|
+
}
|
|
1307
|
+
/**
|
|
1308
|
+
* Get UserOperation receipt by hash
|
|
1309
|
+
*
|
|
1310
|
+
* Automatically uses active chain from UI unless chainId is specified.
|
|
1311
|
+
* Returns null if UserOp is still pending or not found.
|
|
1312
|
+
*
|
|
1313
|
+
* @param userOpHash - UserOperation hash returned from sendUserOperation
|
|
1314
|
+
* @param chainId - Optional chain ID (defaults to active chain)
|
|
1315
|
+
* @returns Receipt if found and mined, null if pending or not found
|
|
1316
|
+
* @throws {Error} If chain has no bundlerUrl configured
|
|
1317
|
+
*
|
|
1318
|
+
* @example
|
|
1319
|
+
* ```typescript
|
|
1320
|
+
* const hash = await sendUserOperation(session, { ... })
|
|
1321
|
+
* const receipt = await getUserOperationReceipt(hash)
|
|
1322
|
+
* if (receipt?.success) {
|
|
1323
|
+
* console.log('Gas used:', receipt.actualGasUsed)
|
|
1324
|
+
* }
|
|
1325
|
+
* ```
|
|
1326
|
+
*/
|
|
1327
|
+
declare function getUserOperationReceipt(userOpHash: Hash$1 | string, chainId?: number): Promise<UserOperationReceipt | null>;
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* Wait for UserOperation receipt with polling
|
|
1331
|
+
*/
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* Options for waiting for UserOperation receipt
|
|
1335
|
+
*/
|
|
1336
|
+
interface WaitForReceiptOptions {
|
|
1337
|
+
/**
|
|
1338
|
+
* Polling interval in milliseconds
|
|
1339
|
+
* @default 1000 (1 second)
|
|
1340
|
+
*/
|
|
1341
|
+
pollIntervalMs?: number;
|
|
1342
|
+
/**
|
|
1343
|
+
* Maximum wait time in milliseconds
|
|
1344
|
+
* @default 60000 (60 seconds)
|
|
1345
|
+
*/
|
|
1346
|
+
maxPollTimeMs?: number;
|
|
1347
|
+
/**
|
|
1348
|
+
* Chain ID (optional)
|
|
1349
|
+
* If not provided, uses activeChainId from UI state.
|
|
1350
|
+
*/
|
|
1351
|
+
chainId?: number;
|
|
1352
|
+
}
|
|
1353
|
+
/**
|
|
1354
|
+
* Thrown when waitForUserOperationReceipt exceeds maxPollTimeMs
|
|
1355
|
+
*/
|
|
1356
|
+
declare class UserOperationTimeoutError extends Error {
|
|
1357
|
+
userOpHash: Hash$1;
|
|
1358
|
+
chainId: number;
|
|
1359
|
+
timeoutMs: number;
|
|
1360
|
+
constructor(userOpHash: Hash$1, chainId: number, timeoutMs: number);
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* Wait for UserOperation receipt with automatic polling
|
|
1364
|
+
*
|
|
1365
|
+
* Polls bundler until receipt is available or timeout is reached.
|
|
1366
|
+
* Automatically uses active chain from UI unless chainId is specified in options.
|
|
1367
|
+
*
|
|
1368
|
+
* @param userOpHash - UserOperation hash returned from sendUserOperation
|
|
1369
|
+
* @param options - Polling configuration and optional chainId
|
|
1370
|
+
* @returns Receipt once UserOp is mined
|
|
1371
|
+
* @throws {UserOperationTimeoutError} If timeout is exceeded before receipt is available
|
|
1372
|
+
* @throws {Error} If chain has no bundlerUrl configured
|
|
1373
|
+
*
|
|
1374
|
+
* @example
|
|
1375
|
+
* ```typescript
|
|
1376
|
+
* const hash = await sendUserOperation(session, { to, value, data })
|
|
1377
|
+
* const receipt = await waitForUserOperationReceipt(hash)
|
|
1378
|
+
* if (receipt.success) {
|
|
1379
|
+
* console.log('TxHash:', receipt.receipt.transactionHash)
|
|
1380
|
+
* }
|
|
1381
|
+
* ```
|
|
1382
|
+
*/
|
|
1383
|
+
declare function waitForUserOperationReceipt(userOpHash: Hash$1, options?: WaitForReceiptOptions): Promise<UserOperationReceipt>;
|
|
1384
|
+
|
|
1218
1385
|
interface UserOpMempool {
|
|
1219
1386
|
entryPoint: `0x${string}` | null;
|
|
1220
1387
|
sender: `0x${string}` | null;
|
|
@@ -1573,174 +1740,6 @@ interface UseNicknameResolveOptions {
|
|
|
1573
1740
|
*/
|
|
1574
1741
|
declare function useNicknameResolve(input: string, options: UseNicknameResolveOptions): UseNicknameResolveResult;
|
|
1575
1742
|
|
|
1576
|
-
/**
|
|
1577
|
-
* Get UserOperation data by hash
|
|
1578
|
-
*/
|
|
1579
|
-
|
|
1580
|
-
/**
|
|
1581
|
-
* UserOperation data from bundler response
|
|
1582
|
-
*/
|
|
1583
|
-
interface UserOperationByHash {
|
|
1584
|
-
/** EntryPoint address */
|
|
1585
|
-
entryPoint: `0x${string}`;
|
|
1586
|
-
/** User operation details */
|
|
1587
|
-
userOperation: {
|
|
1588
|
-
sender: `0x${string}`;
|
|
1589
|
-
nonce: `0x${string}`;
|
|
1590
|
-
callData: `0x${string}`;
|
|
1591
|
-
callGasLimit: `0x${string}`;
|
|
1592
|
-
verificationGasLimit: `0x${string}`;
|
|
1593
|
-
preVerificationGas: `0x${string}`;
|
|
1594
|
-
maxPriorityFeePerGas: `0x${string}`;
|
|
1595
|
-
maxFeePerGas: `0x${string}`;
|
|
1596
|
-
paymaster?: `0x${string}`;
|
|
1597
|
-
paymasterVerificationGasLimit?: `0x${string}`;
|
|
1598
|
-
paymasterPostOpGasLimit?: `0x${string}`;
|
|
1599
|
-
paymasterData?: `0x${string}`;
|
|
1600
|
-
signature: `0x${string}`;
|
|
1601
|
-
};
|
|
1602
|
-
/** Transaction hash (null if not yet included in block) */
|
|
1603
|
-
transactionHash: `0x${string}` | null;
|
|
1604
|
-
/** Block number (null if not yet included in block) */
|
|
1605
|
-
blockNumber: `0x${string}` | null;
|
|
1606
|
-
/** Block hash (null if not yet included in block) */
|
|
1607
|
-
blockHash: `0x${string}` | null;
|
|
1608
|
-
}
|
|
1609
|
-
/**
|
|
1610
|
-
* Get UserOperation data by hash
|
|
1611
|
-
*
|
|
1612
|
-
* Automatically uses active chain from UI unless chainId is specified.
|
|
1613
|
-
* Returns null if UserOp is not found.
|
|
1614
|
-
*
|
|
1615
|
-
* @param userOpHash - UserOperation hash returned from sendUserOperation
|
|
1616
|
-
* @param chainId - Optional chain ID (defaults to active chain)
|
|
1617
|
-
* @returns UserOperation data if found, null if not found
|
|
1618
|
-
* @throws {Error} If chain has no bundlerUrl configured
|
|
1619
|
-
*
|
|
1620
|
-
* @example
|
|
1621
|
-
* ```typescript
|
|
1622
|
-
* const hash = await sendUserOperation(session, { ... })
|
|
1623
|
-
* const userOp = await getUserOperationByHash(hash)
|
|
1624
|
-
* ```
|
|
1625
|
-
*/
|
|
1626
|
-
declare function getUserOperationByHash(userOpHash: Hash$1 | string, chainId?: number): Promise<UserOperationByHash | null>;
|
|
1627
|
-
|
|
1628
|
-
/**
|
|
1629
|
-
* Get UserOperation receipt by hash
|
|
1630
|
-
*/
|
|
1631
|
-
|
|
1632
|
-
/**
|
|
1633
|
-
* UserOperation receipt
|
|
1634
|
-
*
|
|
1635
|
-
* Contains execution details after UserOp is included in a block
|
|
1636
|
-
*/
|
|
1637
|
-
interface UserOperationReceipt {
|
|
1638
|
-
/** UserOperation hash */
|
|
1639
|
-
userOpHash: Hash$1;
|
|
1640
|
-
/** EntryPoint address that processed this UserOp */
|
|
1641
|
-
entryPoint: `0x${string}`;
|
|
1642
|
-
/** Sender (smart account) address */
|
|
1643
|
-
sender: `0x${string}`;
|
|
1644
|
-
/** Nonce used for this UserOp */
|
|
1645
|
-
nonce: `0x${string}`;
|
|
1646
|
-
/** True if UserOp succeeded, false if reverted */
|
|
1647
|
-
success: boolean;
|
|
1648
|
-
/** Actual gas cost paid */
|
|
1649
|
-
actualGasCost: `0x${string}`;
|
|
1650
|
-
/** Actual gas used */
|
|
1651
|
-
actualGasUsed: `0x${string}`;
|
|
1652
|
-
/** Paymaster address (if used) */
|
|
1653
|
-
paymaster?: `0x${string}`;
|
|
1654
|
-
/** Transaction receipt */
|
|
1655
|
-
receipt: {
|
|
1656
|
-
transactionHash: Hash$1;
|
|
1657
|
-
blockNumber: `0x${string}`;
|
|
1658
|
-
blockHash: Hash$1;
|
|
1659
|
-
[key: string]: any;
|
|
1660
|
-
};
|
|
1661
|
-
/** Logs emitted during execution */
|
|
1662
|
-
logs?: any[];
|
|
1663
|
-
/** Revert reason, if unsuccessful */
|
|
1664
|
-
reason?: string;
|
|
1665
|
-
}
|
|
1666
|
-
/**
|
|
1667
|
-
* Get UserOperation receipt by hash
|
|
1668
|
-
*
|
|
1669
|
-
* Automatically uses active chain from UI unless chainId is specified.
|
|
1670
|
-
* Returns null if UserOp is still pending or not found.
|
|
1671
|
-
*
|
|
1672
|
-
* @param userOpHash - UserOperation hash returned from sendUserOperation
|
|
1673
|
-
* @param chainId - Optional chain ID (defaults to active chain)
|
|
1674
|
-
* @returns Receipt if found and mined, null if pending or not found
|
|
1675
|
-
* @throws {Error} If chain has no bundlerUrl configured
|
|
1676
|
-
*
|
|
1677
|
-
* @example
|
|
1678
|
-
* ```typescript
|
|
1679
|
-
* const hash = await sendUserOperation(session, { ... })
|
|
1680
|
-
* const receipt = await getUserOperationReceipt(hash)
|
|
1681
|
-
* if (receipt?.success) {
|
|
1682
|
-
* console.log('Gas used:', receipt.actualGasUsed)
|
|
1683
|
-
* }
|
|
1684
|
-
* ```
|
|
1685
|
-
*/
|
|
1686
|
-
declare function getUserOperationReceipt(userOpHash: Hash$1 | string, chainId?: number): Promise<UserOperationReceipt | null>;
|
|
1687
|
-
|
|
1688
|
-
/**
|
|
1689
|
-
* Wait for UserOperation receipt with polling
|
|
1690
|
-
*/
|
|
1691
|
-
|
|
1692
|
-
/**
|
|
1693
|
-
* Options for waiting for UserOperation receipt
|
|
1694
|
-
*/
|
|
1695
|
-
interface WaitForReceiptOptions {
|
|
1696
|
-
/**
|
|
1697
|
-
* Polling interval in milliseconds
|
|
1698
|
-
* @default 1000 (1 second)
|
|
1699
|
-
*/
|
|
1700
|
-
pollIntervalMs?: number;
|
|
1701
|
-
/**
|
|
1702
|
-
* Maximum wait time in milliseconds
|
|
1703
|
-
* @default 60000 (60 seconds)
|
|
1704
|
-
*/
|
|
1705
|
-
maxPollTimeMs?: number;
|
|
1706
|
-
/**
|
|
1707
|
-
* Chain ID (optional)
|
|
1708
|
-
* If not provided, uses activeChainId from UI state.
|
|
1709
|
-
*/
|
|
1710
|
-
chainId?: number;
|
|
1711
|
-
}
|
|
1712
|
-
/**
|
|
1713
|
-
* Thrown when waitForUserOperationReceipt exceeds maxPollTimeMs
|
|
1714
|
-
*/
|
|
1715
|
-
declare class UserOperationTimeoutError extends Error {
|
|
1716
|
-
userOpHash: Hash$1;
|
|
1717
|
-
chainId: number;
|
|
1718
|
-
timeoutMs: number;
|
|
1719
|
-
constructor(userOpHash: Hash$1, chainId: number, timeoutMs: number);
|
|
1720
|
-
}
|
|
1721
|
-
/**
|
|
1722
|
-
* Wait for UserOperation receipt with automatic polling
|
|
1723
|
-
*
|
|
1724
|
-
* Polls bundler until receipt is available or timeout is reached.
|
|
1725
|
-
* Automatically uses active chain from UI unless chainId is specified in options.
|
|
1726
|
-
*
|
|
1727
|
-
* @param userOpHash - UserOperation hash returned from sendUserOperation
|
|
1728
|
-
* @param options - Polling configuration and optional chainId
|
|
1729
|
-
* @returns Receipt once UserOp is mined
|
|
1730
|
-
* @throws {UserOperationTimeoutError} If timeout is exceeded before receipt is available
|
|
1731
|
-
* @throws {Error} If chain has no bundlerUrl configured
|
|
1732
|
-
*
|
|
1733
|
-
* @example
|
|
1734
|
-
* ```typescript
|
|
1735
|
-
* const hash = await sendUserOperation(session, { to, value, data })
|
|
1736
|
-
* const receipt = await waitForUserOperationReceipt(hash)
|
|
1737
|
-
* if (receipt.success) {
|
|
1738
|
-
* console.log('TxHash:', receipt.receipt.transactionHash)
|
|
1739
|
-
* }
|
|
1740
|
-
* ```
|
|
1741
|
-
*/
|
|
1742
|
-
declare function waitForUserOperationReceipt(userOpHash: Hash$1, options?: WaitForReceiptOptions): Promise<UserOperationReceipt>;
|
|
1743
|
-
|
|
1744
1743
|
declare global {
|
|
1745
1744
|
interface Window {
|
|
1746
1745
|
__EMBARK_CONDITIONAL_UI_ACTIVE__?: boolean;
|
|
@@ -1812,8 +1811,8 @@ interface ConnectedApp {
|
|
|
1812
1811
|
lastActiveAt: string;
|
|
1813
1812
|
}
|
|
1814
1813
|
|
|
1815
|
-
declare function useConnectedApps(): _tanstack_react_query.UseQueryResult<ConnectedApp[]
|
|
1816
|
-
declare function useKeyshareRecoveryStats(): _tanstack_react_query.UseQueryResult<{
|
|
1814
|
+
declare function useConnectedApps(): _tanstack_react_query.UseQueryResult<NoInfer<ConnectedApp[]>, Error>;
|
|
1815
|
+
declare function useKeyshareRecoveryStats(): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
1817
1816
|
keyshareInfo: {
|
|
1818
1817
|
hasKeyshare: boolean;
|
|
1819
1818
|
ownerAddress?: `0x${string}`;
|
|
@@ -1821,7 +1820,7 @@ declare function useKeyshareRecoveryStats(): _tanstack_react_query.UseQueryResul
|
|
|
1821
1820
|
keyshareSize?: number;
|
|
1822
1821
|
};
|
|
1823
1822
|
shareRecoveryStats: RecoveryStats;
|
|
1824
|
-
}
|
|
1823
|
+
}>, Error>;
|
|
1825
1824
|
|
|
1826
1825
|
interface LinkedProfileDisplay extends AuthProvider {
|
|
1827
1826
|
displayName: string;
|
|
@@ -1961,6 +1960,7 @@ declare function useTransactions(): {
|
|
|
1961
1960
|
value: bigint;
|
|
1962
1961
|
type: "legacy";
|
|
1963
1962
|
yParity?: undefined;
|
|
1963
|
+
blockTimestamp?: bigint;
|
|
1964
1964
|
from: viem.Address;
|
|
1965
1965
|
gas: bigint;
|
|
1966
1966
|
hash: Hash$1;
|
|
@@ -1986,6 +1986,7 @@ declare function useTransactions(): {
|
|
|
1986
1986
|
value: bigint;
|
|
1987
1987
|
type: "eip2930";
|
|
1988
1988
|
yParity: number;
|
|
1989
|
+
blockTimestamp?: bigint;
|
|
1989
1990
|
from: viem.Address;
|
|
1990
1991
|
gas: bigint;
|
|
1991
1992
|
hash: Hash$1;
|
|
@@ -2011,6 +2012,7 @@ declare function useTransactions(): {
|
|
|
2011
2012
|
value: bigint;
|
|
2012
2013
|
type: "eip1559";
|
|
2013
2014
|
yParity: number;
|
|
2015
|
+
blockTimestamp?: bigint;
|
|
2014
2016
|
from: viem.Address;
|
|
2015
2017
|
gas: bigint;
|
|
2016
2018
|
hash: Hash$1;
|
|
@@ -2036,6 +2038,7 @@ declare function useTransactions(): {
|
|
|
2036
2038
|
value: bigint;
|
|
2037
2039
|
type: "eip4844";
|
|
2038
2040
|
yParity: number;
|
|
2041
|
+
blockTimestamp?: bigint;
|
|
2039
2042
|
from: viem.Address;
|
|
2040
2043
|
gas: bigint;
|
|
2041
2044
|
hash: Hash$1;
|
|
@@ -2061,6 +2064,7 @@ declare function useTransactions(): {
|
|
|
2061
2064
|
value: bigint;
|
|
2062
2065
|
type: "eip7702";
|
|
2063
2066
|
yParity: number;
|
|
2067
|
+
blockTimestamp?: bigint;
|
|
2064
2068
|
from: viem.Address;
|
|
2065
2069
|
gas: bigint;
|
|
2066
2070
|
hash: Hash$1;
|
|
@@ -2107,6 +2111,7 @@ declare function useSmartAccountTransactions(): {
|
|
|
2107
2111
|
value: bigint;
|
|
2108
2112
|
type: "legacy";
|
|
2109
2113
|
yParity?: undefined;
|
|
2114
|
+
blockTimestamp?: bigint;
|
|
2110
2115
|
from: viem.Address;
|
|
2111
2116
|
gas: bigint;
|
|
2112
2117
|
hash: Hash$1;
|
|
@@ -2132,6 +2137,7 @@ declare function useSmartAccountTransactions(): {
|
|
|
2132
2137
|
value: bigint;
|
|
2133
2138
|
type: "eip2930";
|
|
2134
2139
|
yParity: number;
|
|
2140
|
+
blockTimestamp?: bigint;
|
|
2135
2141
|
from: viem.Address;
|
|
2136
2142
|
gas: bigint;
|
|
2137
2143
|
hash: Hash$1;
|
|
@@ -2157,6 +2163,7 @@ declare function useSmartAccountTransactions(): {
|
|
|
2157
2163
|
value: bigint;
|
|
2158
2164
|
type: "eip1559";
|
|
2159
2165
|
yParity: number;
|
|
2166
|
+
blockTimestamp?: bigint;
|
|
2160
2167
|
from: viem.Address;
|
|
2161
2168
|
gas: bigint;
|
|
2162
2169
|
hash: Hash$1;
|
|
@@ -2182,6 +2189,7 @@ declare function useSmartAccountTransactions(): {
|
|
|
2182
2189
|
value: bigint;
|
|
2183
2190
|
type: "eip4844";
|
|
2184
2191
|
yParity: number;
|
|
2192
|
+
blockTimestamp?: bigint;
|
|
2185
2193
|
from: viem.Address;
|
|
2186
2194
|
gas: bigint;
|
|
2187
2195
|
hash: Hash$1;
|
|
@@ -2207,6 +2215,7 @@ declare function useSmartAccountTransactions(): {
|
|
|
2207
2215
|
value: bigint;
|
|
2208
2216
|
type: "eip7702";
|
|
2209
2217
|
yParity: number;
|
|
2218
|
+
blockTimestamp?: bigint;
|
|
2210
2219
|
from: viem.Address;
|
|
2211
2220
|
gas: bigint;
|
|
2212
2221
|
hash: Hash$1;
|
|
@@ -2328,10 +2337,15 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2328
2337
|
recipient: string;
|
|
2329
2338
|
pendingStep: string;
|
|
2330
2339
|
pendingStepMsg: string;
|
|
2340
|
+
actions: {
|
|
2341
|
+
send: string;
|
|
2342
|
+
confirm: string;
|
|
2343
|
+
};
|
|
2331
2344
|
};
|
|
2332
2345
|
bridgeMenu: {
|
|
2333
2346
|
title: string;
|
|
2334
2347
|
labels: {
|
|
2348
|
+
selectSender: string;
|
|
2335
2349
|
bridgeAsset: string;
|
|
2336
2350
|
selectToken: string;
|
|
2337
2351
|
estimations: string;
|
|
@@ -2343,6 +2357,7 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2343
2357
|
bridgeTransactions: string;
|
|
2344
2358
|
};
|
|
2345
2359
|
quote: {
|
|
2360
|
+
sender: string;
|
|
2346
2361
|
recipient: string;
|
|
2347
2362
|
amount: string;
|
|
2348
2363
|
status: string;
|
|
@@ -2351,8 +2366,10 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2351
2366
|
tokenFee: string;
|
|
2352
2367
|
igpSymbol: string;
|
|
2353
2368
|
localSymbol: string;
|
|
2369
|
+
operationHash: string;
|
|
2354
2370
|
};
|
|
2355
2371
|
actions: {
|
|
2372
|
+
bridge: string;
|
|
2356
2373
|
bridgeAsset: string;
|
|
2357
2374
|
confirmBridge: string;
|
|
2358
2375
|
};
|
|
@@ -2621,6 +2638,53 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2621
2638
|
recipient: string;
|
|
2622
2639
|
pendingStep: string;
|
|
2623
2640
|
pendingStepMsg: string;
|
|
2641
|
+
actions: {
|
|
2642
|
+
send: string;
|
|
2643
|
+
confirm: string;
|
|
2644
|
+
};
|
|
2645
|
+
};
|
|
2646
|
+
bridgeMenu: {
|
|
2647
|
+
title: string;
|
|
2648
|
+
labels: {
|
|
2649
|
+
bridgeAsset: string;
|
|
2650
|
+
selectToken: string;
|
|
2651
|
+
estimations: string;
|
|
2652
|
+
estimatedFee: string;
|
|
2653
|
+
toChain: string;
|
|
2654
|
+
fromChain: string;
|
|
2655
|
+
optionalRecipient: string;
|
|
2656
|
+
confirm: string;
|
|
2657
|
+
bridgeTransactions: string;
|
|
2658
|
+
};
|
|
2659
|
+
quote: {
|
|
2660
|
+
sender: string;
|
|
2661
|
+
recipient: string;
|
|
2662
|
+
amount: string;
|
|
2663
|
+
status: string;
|
|
2664
|
+
igpFee: string;
|
|
2665
|
+
localFee: string;
|
|
2666
|
+
tokenFee: string;
|
|
2667
|
+
igpSymbol: string;
|
|
2668
|
+
localSymbol: string;
|
|
2669
|
+
};
|
|
2670
|
+
actions: {
|
|
2671
|
+
bridge: string;
|
|
2672
|
+
bridgeAsset: string;
|
|
2673
|
+
confirmBridge: string;
|
|
2674
|
+
};
|
|
2675
|
+
statuses: {
|
|
2676
|
+
qouteEstimating: string;
|
|
2677
|
+
switchingWalletChain: string;
|
|
2678
|
+
txPrepare: string;
|
|
2679
|
+
txSending: string;
|
|
2680
|
+
txSent: string;
|
|
2681
|
+
txExecuting: string;
|
|
2682
|
+
};
|
|
2683
|
+
errors: {
|
|
2684
|
+
routeUnavailable: string;
|
|
2685
|
+
noConnections: string;
|
|
2686
|
+
wrongNetwork: string;
|
|
2687
|
+
};
|
|
2624
2688
|
};
|
|
2625
2689
|
receiveMenu: {
|
|
2626
2690
|
title: string;
|
|
@@ -2629,13 +2693,34 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2629
2693
|
share: string;
|
|
2630
2694
|
};
|
|
2631
2695
|
buyMenu: {
|
|
2632
|
-
title:
|
|
2633
|
-
provider:
|
|
2634
|
-
selectProvider:
|
|
2635
|
-
selectCrypto:
|
|
2636
|
-
selectFiat:
|
|
2637
|
-
selectPaymentMode:
|
|
2638
|
-
enterAmount:
|
|
2696
|
+
title: string;
|
|
2697
|
+
provider: string;
|
|
2698
|
+
selectProvider: string;
|
|
2699
|
+
selectCrypto: string;
|
|
2700
|
+
selectFiat: string;
|
|
2701
|
+
selectPaymentMode: string;
|
|
2702
|
+
enterAmount: string;
|
|
2703
|
+
purchaseSummary: string;
|
|
2704
|
+
summary: {
|
|
2705
|
+
youPay: string;
|
|
2706
|
+
youReceive: string;
|
|
2707
|
+
exchangeRate: string;
|
|
2708
|
+
networkFee: string;
|
|
2709
|
+
serviceFee: string;
|
|
2710
|
+
paymentMethod: string;
|
|
2711
|
+
};
|
|
2712
|
+
transactionHistory: {
|
|
2713
|
+
details: string;
|
|
2714
|
+
};
|
|
2715
|
+
noItems: {
|
|
2716
|
+
noTransactions: string;
|
|
2717
|
+
noPaymentModes: string;
|
|
2718
|
+
noCryptoForChain: string;
|
|
2719
|
+
};
|
|
2720
|
+
inputPlaceholder: {
|
|
2721
|
+
selectCurrencies: string;
|
|
2722
|
+
providerMin: string;
|
|
2723
|
+
};
|
|
2639
2724
|
};
|
|
2640
2725
|
portfolioMenu: {
|
|
2641
2726
|
title: string;
|
|
@@ -2645,7 +2730,7 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2645
2730
|
title: string;
|
|
2646
2731
|
noTransactions: string;
|
|
2647
2732
|
internalTransactions: string;
|
|
2648
|
-
comingSoon:
|
|
2733
|
+
comingSoon: string;
|
|
2649
2734
|
};
|
|
2650
2735
|
kycMenu: {
|
|
2651
2736
|
title: string;
|
|
@@ -2753,10 +2838,10 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2753
2838
|
chainMenu: {
|
|
2754
2839
|
title: string;
|
|
2755
2840
|
chainSwitchRequest: {
|
|
2756
|
-
title:
|
|
2757
|
-
description:
|
|
2758
|
-
confirmButton:
|
|
2759
|
-
cancelButton:
|
|
2841
|
+
title: string;
|
|
2842
|
+
description: string;
|
|
2843
|
+
confirmButton: string;
|
|
2844
|
+
cancelButton: string;
|
|
2760
2845
|
};
|
|
2761
2846
|
};
|
|
2762
2847
|
};
|
|
@@ -2852,6 +2937,53 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2852
2937
|
recipient: string;
|
|
2853
2938
|
pendingStep: string;
|
|
2854
2939
|
pendingStepMsg: string;
|
|
2940
|
+
actions: {
|
|
2941
|
+
send: string;
|
|
2942
|
+
confirm: string;
|
|
2943
|
+
};
|
|
2944
|
+
};
|
|
2945
|
+
bridgeMenu: {
|
|
2946
|
+
title: string;
|
|
2947
|
+
labels: {
|
|
2948
|
+
bridgeAsset: string;
|
|
2949
|
+
selectToken: string;
|
|
2950
|
+
estimations: string;
|
|
2951
|
+
estimatedFee: string;
|
|
2952
|
+
toChain: string;
|
|
2953
|
+
fromChain: string;
|
|
2954
|
+
optionalRecipient: string;
|
|
2955
|
+
confirm: string;
|
|
2956
|
+
bridgeTransactions: string;
|
|
2957
|
+
};
|
|
2958
|
+
quote: {
|
|
2959
|
+
sender: string;
|
|
2960
|
+
recipient: string;
|
|
2961
|
+
amount: string;
|
|
2962
|
+
status: string;
|
|
2963
|
+
igpFee: string;
|
|
2964
|
+
localFee: string;
|
|
2965
|
+
tokenFee: string;
|
|
2966
|
+
igpSymbol: string;
|
|
2967
|
+
localSymbol: string;
|
|
2968
|
+
};
|
|
2969
|
+
actions: {
|
|
2970
|
+
bridge: string;
|
|
2971
|
+
bridgeAsset: string;
|
|
2972
|
+
confirmBridge: string;
|
|
2973
|
+
};
|
|
2974
|
+
statuses: {
|
|
2975
|
+
qouteEstimating: string;
|
|
2976
|
+
switchingWalletChain: string;
|
|
2977
|
+
txPrepare: string;
|
|
2978
|
+
txSending: string;
|
|
2979
|
+
txSent: string;
|
|
2980
|
+
txExecuting: string;
|
|
2981
|
+
};
|
|
2982
|
+
errors: {
|
|
2983
|
+
routeUnavailable: string;
|
|
2984
|
+
noConnections: string;
|
|
2985
|
+
wrongNetwork: string;
|
|
2986
|
+
};
|
|
2855
2987
|
};
|
|
2856
2988
|
receiveMenu: {
|
|
2857
2989
|
title: string;
|