@embarkai/ui-kit 0.4.58 → 0.4.60
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 +1 -1
- package/dist/iframe/main.js +96 -89
- package/dist/index.cjs +1364 -1230
- package/dist/index.d.cts +28 -41
- package/dist/index.d.ts +28 -41
- package/dist/index.js +767 -639
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BatchOperation as BatchOperation$1 } from '@embarkai/core';
|
|
1
|
+
import { NormalizedAsset, NormalizedAssetType, BatchOperation as BatchOperation$1 } from '@embarkai/core';
|
|
2
2
|
export { wagmiConfig } from '@embarkai/core';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import react__default, { ReactNode, RefObject, FC, HTMLAttributes, ButtonHTMLAttributes, SVGProps } from 'react';
|
|
@@ -28,7 +28,7 @@ interface TokenBalance {
|
|
|
28
28
|
/**
|
|
29
29
|
* Asset type classification
|
|
30
30
|
*/
|
|
31
|
-
type AssetType =
|
|
31
|
+
type AssetType = NormalizedAssetType;
|
|
32
32
|
/**
|
|
33
33
|
* NFT metadata from token instance
|
|
34
34
|
*/
|
|
@@ -76,29 +76,19 @@ interface AssetListError {
|
|
|
76
76
|
/**
|
|
77
77
|
* Represents a token or NFT asset
|
|
78
78
|
*/
|
|
79
|
-
interface Asset {
|
|
79
|
+
interface Asset extends NormalizedAsset {
|
|
80
80
|
/** Asset type classification */
|
|
81
|
-
type: AssetType;
|
|
82
81
|
/** Contract address (undefined for native token) */
|
|
83
|
-
address?: `0x${string}`;
|
|
84
82
|
/** Human-readable token name */
|
|
85
|
-
name: string;
|
|
86
83
|
/** Token symbol (e.g., "LUMIA", "USDC") */
|
|
87
|
-
symbol: string;
|
|
88
84
|
/** Raw balance as string (wei for fungible, count for NFT) */
|
|
89
|
-
balance: string;
|
|
90
85
|
/** Human-readable formatted balance */
|
|
91
|
-
formattedBalance: string;
|
|
92
86
|
/** Decimal precision (undefined for NFTs) */
|
|
93
|
-
decimals?: number;
|
|
94
87
|
/** USD rate reported by explorer when available */
|
|
95
88
|
exchangeRateUsd?: string;
|
|
96
89
|
/** NFT token ID (only for ERC721/ERC1155) */
|
|
97
|
-
tokenId?: string;
|
|
98
90
|
/** Token logo URL */
|
|
99
|
-
logo?: string;
|
|
100
91
|
/** NFT image URL (only for ERC721/ERC1155) */
|
|
101
|
-
image?: string;
|
|
102
92
|
/** NFT metadata (only for ERC721/ERC1155) */
|
|
103
93
|
nftMetadata?: NFTMetadata;
|
|
104
94
|
/** Security token compliance status (only for ERC3643) */
|
|
@@ -111,7 +101,15 @@ declare function useAssets(address?: `0x${string}`): {
|
|
|
111
101
|
symbol: string;
|
|
112
102
|
value: bigint;
|
|
113
103
|
};
|
|
114
|
-
tokenBalances:
|
|
104
|
+
tokenBalances: ({
|
|
105
|
+
error?: undefined;
|
|
106
|
+
result: unknown;
|
|
107
|
+
status: "success";
|
|
108
|
+
} | {
|
|
109
|
+
error: Error;
|
|
110
|
+
result?: undefined;
|
|
111
|
+
status: "failure";
|
|
112
|
+
})[];
|
|
115
113
|
assets: Asset[];
|
|
116
114
|
getTokenBalance: (tokenAddress: `0x${string}`) => {
|
|
117
115
|
address: `0x${string}`;
|
|
@@ -123,7 +121,7 @@ declare function useAssets(address?: `0x${string}`): {
|
|
|
123
121
|
logo: string;
|
|
124
122
|
};
|
|
125
123
|
refreshBalances: () => Promise<void>;
|
|
126
|
-
isLoading:
|
|
124
|
+
isLoading: boolean;
|
|
127
125
|
isConnected: boolean;
|
|
128
126
|
};
|
|
129
127
|
declare function useTokenInfo(tokenAddress: `0x${string}`): {
|
|
@@ -182,14 +180,6 @@ interface ProjectAsset extends Omit<Asset, 'type'> {
|
|
|
182
180
|
balanceQuery: () => Promise<ProjectAssetBalance>;
|
|
183
181
|
hideInPortfolio?: boolean;
|
|
184
182
|
}
|
|
185
|
-
interface AssetRateQueryInput {
|
|
186
|
-
symbol: string;
|
|
187
|
-
address?: `0x${string}`;
|
|
188
|
-
}
|
|
189
|
-
interface AssetRateQueryResult {
|
|
190
|
-
symbol: string;
|
|
191
|
-
price: string;
|
|
192
|
-
}
|
|
193
183
|
/**
|
|
194
184
|
* Token configuration for custom token watching.
|
|
195
185
|
* Used when chain doesn't have Blockscout API or for project-specific tokens.
|
|
@@ -236,9 +226,9 @@ interface ProviderConfig {
|
|
|
236
226
|
allowedWallets?: string[];
|
|
237
227
|
};
|
|
238
228
|
preferedColorMode?: 'light' | 'dark';
|
|
229
|
+
showBalanceAs?: Asset['symbol'];
|
|
239
230
|
projectAssets?: {
|
|
240
231
|
assets: ProjectAsset[];
|
|
241
|
-
showBalanceAs?: ProjectAsset['symbol'];
|
|
242
232
|
};
|
|
243
233
|
/**
|
|
244
234
|
* Host-provided portfolio data overrides.
|
|
@@ -248,8 +238,6 @@ interface ProviderConfig {
|
|
|
248
238
|
portfolio?: {
|
|
249
239
|
tokenBalancesQuery?: (address: `0x${string}`) => Promise<BlockscoutTokenBalance[]>;
|
|
250
240
|
tokenBalancesQueryKey?: readonly unknown[];
|
|
251
|
-
assetRateQuery?: (input: AssetRateQueryInput) => Promise<AssetRateQueryResult | null>;
|
|
252
|
-
assetRateQueryKey?: readonly unknown[];
|
|
253
241
|
};
|
|
254
242
|
/**
|
|
255
243
|
* Custom tokens to monitor per chain.
|
|
@@ -1856,13 +1844,26 @@ declare class UserRejectedError extends AccountAbstractionError {
|
|
|
1856
1844
|
static readonly CODE: "USER_REJECTED";
|
|
1857
1845
|
constructor(message?: string);
|
|
1858
1846
|
}
|
|
1847
|
+
/**
|
|
1848
|
+
* Error thrown when the auth session is dead (refresh impossible)
|
|
1849
|
+
* and the user must log in again
|
|
1850
|
+
*/
|
|
1851
|
+
declare class SessionExpiredError extends AccountAbstractionError {
|
|
1852
|
+
static readonly CODE: "SESSION_EXPIRED";
|
|
1853
|
+
constructor(message?: string);
|
|
1854
|
+
}
|
|
1859
1855
|
/**
|
|
1860
1856
|
* Error codes for EmbarkAI operations
|
|
1861
1857
|
*/
|
|
1862
1858
|
declare const ErrorCodes: {
|
|
1863
1859
|
readonly MPC_SIGNING_ERROR: "MPC_SIGNING_ERROR";
|
|
1864
1860
|
readonly USER_REJECTED: "USER_REJECTED";
|
|
1861
|
+
readonly SESSION_EXPIRED: "SESSION_EXPIRED";
|
|
1865
1862
|
};
|
|
1863
|
+
/**
|
|
1864
|
+
* Duck-types by `code` (not `instanceof`) so the check survives bundle boundaries
|
|
1865
|
+
*/
|
|
1866
|
+
declare function isSessionExpiredError(error: unknown): boolean;
|
|
1866
1867
|
/**
|
|
1867
1868
|
* Create appropriate error from error code
|
|
1868
1869
|
* Used to reconstruct errors from iframe postMessage
|
|
@@ -1874,10 +1875,6 @@ declare function createAccountAbstractionError(params: {
|
|
|
1874
1875
|
|
|
1875
1876
|
declare function getExplorerUrl(): string;
|
|
1876
1877
|
|
|
1877
|
-
/**
|
|
1878
|
-
* Hook for fetching all assets from Blockscout API
|
|
1879
|
-
*/
|
|
1880
|
-
|
|
1881
1878
|
interface UseBlockscoutAssetsOptions {
|
|
1882
1879
|
/** Wallet address to query */
|
|
1883
1880
|
address: Address$1 | undefined;
|
|
@@ -1914,16 +1911,6 @@ interface UseBlockscoutAssetsResult {
|
|
|
1914
1911
|
/** Timestamp of last successful fetch */
|
|
1915
1912
|
lastUpdated: number | null;
|
|
1916
1913
|
}
|
|
1917
|
-
/**
|
|
1918
|
-
* React hook for fetching all assets from Blockscout API
|
|
1919
|
-
*
|
|
1920
|
-
* @example
|
|
1921
|
-
* ```tsx
|
|
1922
|
-
* const { assets, isLoading, error, refreshBalances } = useBlockscoutAssets({
|
|
1923
|
-
* address: '0x...',
|
|
1924
|
-
* });
|
|
1925
|
-
* ```
|
|
1926
|
-
*/
|
|
1927
1914
|
declare function useBlockscoutAssets(options: UseBlockscoutAssetsOptions): UseBlockscoutAssetsResult;
|
|
1928
1915
|
|
|
1929
1916
|
interface Transaction {
|
|
@@ -3387,4 +3374,4 @@ declare function getLanguageIcon(languageKey: string): string | null;
|
|
|
3387
3374
|
|
|
3388
3375
|
declare const USER_PROFILE_QUERY_KEY: string;
|
|
3389
3376
|
|
|
3390
|
-
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, NETWORKS_ICONS, 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, TOKENS_ICONS, 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, WALLET_ICONS, WRAPPED_TOKENS, type WaitForReceiptOptions, type WalletMode, type WalletReadyStatus, type WatchToken, combineI18NResources, createAccountAbstractionError, deployAccount, destroyIframeManager, generateFingerprint, getAllSmartAccounts, getAvailableLanguages, getExplorerUrl, getIframeManager, getInProgressOnrampTransactionsList, 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, waitForStoreHydration, waitForUserOperationReceipt };
|
|
3377
|
+
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, NETWORKS_ICONS, 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, SessionExpiredError, type SignTypedDataParams, type SmartAccountEntry, TOKENS_ICONS, 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, WALLET_ICONS, WRAPPED_TOKENS, type WaitForReceiptOptions, type WalletMode, type WalletReadyStatus, type WatchToken, combineI18NResources, createAccountAbstractionError, deployAccount, destroyIframeManager, generateFingerprint, getAllSmartAccounts, getAvailableLanguages, getExplorerUrl, getIframeManager, getInProgressOnrampTransactionsList, getLanguageIcon, getShareRecoveryStats, getSmartAccountForChain, getUserOperationByHash, getUserOperationReceipt, getUserProfile, isSessionExpiredError, 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, waitForStoreHydration, waitForUserOperationReceipt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BatchOperation as BatchOperation$1 } from '@embarkai/core';
|
|
1
|
+
import { NormalizedAsset, NormalizedAssetType, BatchOperation as BatchOperation$1 } from '@embarkai/core';
|
|
2
2
|
export { wagmiConfig } from '@embarkai/core';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import react__default, { ReactNode, RefObject, FC, HTMLAttributes, ButtonHTMLAttributes, SVGProps } from 'react';
|
|
@@ -28,7 +28,7 @@ interface TokenBalance {
|
|
|
28
28
|
/**
|
|
29
29
|
* Asset type classification
|
|
30
30
|
*/
|
|
31
|
-
type AssetType =
|
|
31
|
+
type AssetType = NormalizedAssetType;
|
|
32
32
|
/**
|
|
33
33
|
* NFT metadata from token instance
|
|
34
34
|
*/
|
|
@@ -76,29 +76,19 @@ interface AssetListError {
|
|
|
76
76
|
/**
|
|
77
77
|
* Represents a token or NFT asset
|
|
78
78
|
*/
|
|
79
|
-
interface Asset {
|
|
79
|
+
interface Asset extends NormalizedAsset {
|
|
80
80
|
/** Asset type classification */
|
|
81
|
-
type: AssetType;
|
|
82
81
|
/** Contract address (undefined for native token) */
|
|
83
|
-
address?: `0x${string}`;
|
|
84
82
|
/** Human-readable token name */
|
|
85
|
-
name: string;
|
|
86
83
|
/** Token symbol (e.g., "LUMIA", "USDC") */
|
|
87
|
-
symbol: string;
|
|
88
84
|
/** Raw balance as string (wei for fungible, count for NFT) */
|
|
89
|
-
balance: string;
|
|
90
85
|
/** Human-readable formatted balance */
|
|
91
|
-
formattedBalance: string;
|
|
92
86
|
/** Decimal precision (undefined for NFTs) */
|
|
93
|
-
decimals?: number;
|
|
94
87
|
/** USD rate reported by explorer when available */
|
|
95
88
|
exchangeRateUsd?: string;
|
|
96
89
|
/** NFT token ID (only for ERC721/ERC1155) */
|
|
97
|
-
tokenId?: string;
|
|
98
90
|
/** Token logo URL */
|
|
99
|
-
logo?: string;
|
|
100
91
|
/** NFT image URL (only for ERC721/ERC1155) */
|
|
101
|
-
image?: string;
|
|
102
92
|
/** NFT metadata (only for ERC721/ERC1155) */
|
|
103
93
|
nftMetadata?: NFTMetadata;
|
|
104
94
|
/** Security token compliance status (only for ERC3643) */
|
|
@@ -111,7 +101,15 @@ declare function useAssets(address?: `0x${string}`): {
|
|
|
111
101
|
symbol: string;
|
|
112
102
|
value: bigint;
|
|
113
103
|
};
|
|
114
|
-
tokenBalances:
|
|
104
|
+
tokenBalances: ({
|
|
105
|
+
error?: undefined;
|
|
106
|
+
result: unknown;
|
|
107
|
+
status: "success";
|
|
108
|
+
} | {
|
|
109
|
+
error: Error;
|
|
110
|
+
result?: undefined;
|
|
111
|
+
status: "failure";
|
|
112
|
+
})[];
|
|
115
113
|
assets: Asset[];
|
|
116
114
|
getTokenBalance: (tokenAddress: `0x${string}`) => {
|
|
117
115
|
address: `0x${string}`;
|
|
@@ -123,7 +121,7 @@ declare function useAssets(address?: `0x${string}`): {
|
|
|
123
121
|
logo: string;
|
|
124
122
|
};
|
|
125
123
|
refreshBalances: () => Promise<void>;
|
|
126
|
-
isLoading:
|
|
124
|
+
isLoading: boolean;
|
|
127
125
|
isConnected: boolean;
|
|
128
126
|
};
|
|
129
127
|
declare function useTokenInfo(tokenAddress: `0x${string}`): {
|
|
@@ -182,14 +180,6 @@ interface ProjectAsset extends Omit<Asset, 'type'> {
|
|
|
182
180
|
balanceQuery: () => Promise<ProjectAssetBalance>;
|
|
183
181
|
hideInPortfolio?: boolean;
|
|
184
182
|
}
|
|
185
|
-
interface AssetRateQueryInput {
|
|
186
|
-
symbol: string;
|
|
187
|
-
address?: `0x${string}`;
|
|
188
|
-
}
|
|
189
|
-
interface AssetRateQueryResult {
|
|
190
|
-
symbol: string;
|
|
191
|
-
price: string;
|
|
192
|
-
}
|
|
193
183
|
/**
|
|
194
184
|
* Token configuration for custom token watching.
|
|
195
185
|
* Used when chain doesn't have Blockscout API or for project-specific tokens.
|
|
@@ -236,9 +226,9 @@ interface ProviderConfig {
|
|
|
236
226
|
allowedWallets?: string[];
|
|
237
227
|
};
|
|
238
228
|
preferedColorMode?: 'light' | 'dark';
|
|
229
|
+
showBalanceAs?: Asset['symbol'];
|
|
239
230
|
projectAssets?: {
|
|
240
231
|
assets: ProjectAsset[];
|
|
241
|
-
showBalanceAs?: ProjectAsset['symbol'];
|
|
242
232
|
};
|
|
243
233
|
/**
|
|
244
234
|
* Host-provided portfolio data overrides.
|
|
@@ -248,8 +238,6 @@ interface ProviderConfig {
|
|
|
248
238
|
portfolio?: {
|
|
249
239
|
tokenBalancesQuery?: (address: `0x${string}`) => Promise<BlockscoutTokenBalance[]>;
|
|
250
240
|
tokenBalancesQueryKey?: readonly unknown[];
|
|
251
|
-
assetRateQuery?: (input: AssetRateQueryInput) => Promise<AssetRateQueryResult | null>;
|
|
252
|
-
assetRateQueryKey?: readonly unknown[];
|
|
253
241
|
};
|
|
254
242
|
/**
|
|
255
243
|
* Custom tokens to monitor per chain.
|
|
@@ -1856,13 +1844,26 @@ declare class UserRejectedError extends AccountAbstractionError {
|
|
|
1856
1844
|
static readonly CODE: "USER_REJECTED";
|
|
1857
1845
|
constructor(message?: string);
|
|
1858
1846
|
}
|
|
1847
|
+
/**
|
|
1848
|
+
* Error thrown when the auth session is dead (refresh impossible)
|
|
1849
|
+
* and the user must log in again
|
|
1850
|
+
*/
|
|
1851
|
+
declare class SessionExpiredError extends AccountAbstractionError {
|
|
1852
|
+
static readonly CODE: "SESSION_EXPIRED";
|
|
1853
|
+
constructor(message?: string);
|
|
1854
|
+
}
|
|
1859
1855
|
/**
|
|
1860
1856
|
* Error codes for EmbarkAI operations
|
|
1861
1857
|
*/
|
|
1862
1858
|
declare const ErrorCodes: {
|
|
1863
1859
|
readonly MPC_SIGNING_ERROR: "MPC_SIGNING_ERROR";
|
|
1864
1860
|
readonly USER_REJECTED: "USER_REJECTED";
|
|
1861
|
+
readonly SESSION_EXPIRED: "SESSION_EXPIRED";
|
|
1865
1862
|
};
|
|
1863
|
+
/**
|
|
1864
|
+
* Duck-types by `code` (not `instanceof`) so the check survives bundle boundaries
|
|
1865
|
+
*/
|
|
1866
|
+
declare function isSessionExpiredError(error: unknown): boolean;
|
|
1866
1867
|
/**
|
|
1867
1868
|
* Create appropriate error from error code
|
|
1868
1869
|
* Used to reconstruct errors from iframe postMessage
|
|
@@ -1874,10 +1875,6 @@ declare function createAccountAbstractionError(params: {
|
|
|
1874
1875
|
|
|
1875
1876
|
declare function getExplorerUrl(): string;
|
|
1876
1877
|
|
|
1877
|
-
/**
|
|
1878
|
-
* Hook for fetching all assets from Blockscout API
|
|
1879
|
-
*/
|
|
1880
|
-
|
|
1881
1878
|
interface UseBlockscoutAssetsOptions {
|
|
1882
1879
|
/** Wallet address to query */
|
|
1883
1880
|
address: Address$1 | undefined;
|
|
@@ -1914,16 +1911,6 @@ interface UseBlockscoutAssetsResult {
|
|
|
1914
1911
|
/** Timestamp of last successful fetch */
|
|
1915
1912
|
lastUpdated: number | null;
|
|
1916
1913
|
}
|
|
1917
|
-
/**
|
|
1918
|
-
* React hook for fetching all assets from Blockscout API
|
|
1919
|
-
*
|
|
1920
|
-
* @example
|
|
1921
|
-
* ```tsx
|
|
1922
|
-
* const { assets, isLoading, error, refreshBalances } = useBlockscoutAssets({
|
|
1923
|
-
* address: '0x...',
|
|
1924
|
-
* });
|
|
1925
|
-
* ```
|
|
1926
|
-
*/
|
|
1927
1914
|
declare function useBlockscoutAssets(options: UseBlockscoutAssetsOptions): UseBlockscoutAssetsResult;
|
|
1928
1915
|
|
|
1929
1916
|
interface Transaction {
|
|
@@ -3387,4 +3374,4 @@ declare function getLanguageIcon(languageKey: string): string | null;
|
|
|
3387
3374
|
|
|
3388
3375
|
declare const USER_PROFILE_QUERY_KEY: string;
|
|
3389
3376
|
|
|
3390
|
-
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, NETWORKS_ICONS, 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, TOKENS_ICONS, 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, WALLET_ICONS, WRAPPED_TOKENS, type WaitForReceiptOptions, type WalletMode, type WalletReadyStatus, type WatchToken, combineI18NResources, createAccountAbstractionError, deployAccount, destroyIframeManager, generateFingerprint, getAllSmartAccounts, getAvailableLanguages, getExplorerUrl, getIframeManager, getInProgressOnrampTransactionsList, 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, waitForStoreHydration, waitForUserOperationReceipt };
|
|
3377
|
+
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, NETWORKS_ICONS, 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, SessionExpiredError, type SignTypedDataParams, type SmartAccountEntry, TOKENS_ICONS, 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, WALLET_ICONS, WRAPPED_TOKENS, type WaitForReceiptOptions, type WalletMode, type WalletReadyStatus, type WatchToken, combineI18NResources, createAccountAbstractionError, deployAccount, destroyIframeManager, generateFingerprint, getAllSmartAccounts, getAvailableLanguages, getExplorerUrl, getIframeManager, getInProgressOnrampTransactionsList, getLanguageIcon, getShareRecoveryStats, getSmartAccountForChain, getUserOperationByHash, getUserOperationReceipt, getUserProfile, isSessionExpiredError, 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, waitForStoreHydration, waitForUserOperationReceipt };
|