@reown/appkit-core 1.6.8 → 1.6.9-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/exports/react.js +24 -14
- package/dist/esm/exports/react.js.map +1 -1
- package/dist/esm/exports/vue.js +40 -44
- package/dist/esm/exports/vue.js.map +1 -1
- package/dist/esm/src/controllers/AccountController.js +2 -2
- package/dist/esm/src/controllers/AccountController.js.map +1 -1
- package/dist/esm/src/controllers/ApiController.js +5 -0
- package/dist/esm/src/controllers/ApiController.js.map +1 -1
- package/dist/esm/src/controllers/BlockchainApiController.js +50 -23
- package/dist/esm/src/controllers/BlockchainApiController.js.map +1 -1
- package/dist/esm/src/controllers/ChainController.js +34 -27
- package/dist/esm/src/controllers/ChainController.js.map +1 -1
- package/dist/esm/src/controllers/ConnectorController.js +2 -2
- package/dist/esm/src/controllers/ConnectorController.js.map +1 -1
- package/dist/esm/src/controllers/EnsController.js +10 -0
- package/dist/esm/src/controllers/EnsController.js.map +1 -1
- package/dist/esm/src/controllers/EventsController.js +5 -5
- package/dist/esm/src/controllers/EventsController.js.map +1 -1
- package/dist/esm/src/controllers/OptionsController.js +4 -1
- package/dist/esm/src/controllers/OptionsController.js.map +1 -1
- package/dist/esm/src/controllers/RouterController.js +3 -0
- package/dist/esm/src/controllers/RouterController.js.map +1 -1
- package/dist/esm/src/controllers/SendController.js +2 -0
- package/dist/esm/src/controllers/SendController.js.map +1 -1
- package/dist/esm/src/controllers/SwapController.js +2 -6
- package/dist/esm/src/controllers/SwapController.js.map +1 -1
- package/dist/esm/src/utils/ConstantsUtil.js +6 -6
- package/dist/esm/src/utils/ConstantsUtil.js.map +1 -1
- package/dist/esm/src/utils/CoreHelperUtil.js +48 -1
- package/dist/esm/src/utils/CoreHelperUtil.js.map +1 -1
- package/dist/esm/src/utils/OptionsUtil.js +18 -0
- package/dist/esm/src/utils/OptionsUtil.js.map +1 -1
- package/dist/esm/src/utils/StorageUtil.js +208 -0
- package/dist/esm/src/utils/StorageUtil.js.map +1 -1
- package/dist/esm/tests/controllers/BlockchainApiController.test.js +23 -0
- package/dist/esm/tests/controllers/BlockchainApiController.test.js.map +1 -0
- package/dist/esm/tests/controllers/EventsController.test.js +11 -0
- package/dist/esm/tests/controllers/EventsController.test.js.map +1 -1
- package/dist/esm/tests/controllers/RouterController.test.js +17 -0
- package/dist/esm/tests/controllers/RouterController.test.js.map +1 -1
- package/dist/esm/tests/hooks/react.test.js +69 -78
- package/dist/esm/tests/hooks/react.test.js.map +1 -1
- package/dist/esm/tests/hooks/vue.test.js +56 -0
- package/dist/esm/tests/hooks/vue.test.js.map +1 -0
- package/dist/esm/tests/mocks/ChainController.js +24 -0
- package/dist/esm/tests/mocks/ChainController.js.map +1 -0
- package/dist/esm/tests/mocks/useAppKitAccount.js +41 -0
- package/dist/esm/tests/mocks/useAppKitAccount.js.map +1 -0
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/exports/react.d.ts +4 -1
- package/dist/types/exports/vue.d.ts +4 -1
- package/dist/types/src/controllers/AccountController.d.ts +15 -15
- package/dist/types/src/controllers/AlertController.d.ts +3 -2
- package/dist/types/src/controllers/ApiController.d.ts +5 -3
- package/dist/types/src/controllers/AssetController.d.ts +4 -2
- package/dist/types/src/controllers/BlockchainApiController.d.ts +7 -20
- package/dist/types/src/controllers/ChainController.d.ts +10 -7
- package/dist/types/src/controllers/ConnectionController.d.ts +8 -6
- package/dist/types/src/controllers/ConnectorController.d.ts +6 -4
- package/dist/types/src/controllers/EnsController.d.ts +2 -1
- package/dist/types/src/controllers/EventsController.d.ts +5 -5
- package/dist/types/src/controllers/ModalController.d.ts +5 -3
- package/dist/types/src/controllers/OnRampController.d.ts +3 -1
- package/dist/types/src/controllers/OptionsController.d.ts +116 -45
- package/dist/types/src/controllers/RouterController.d.ts +5 -4
- package/dist/types/src/controllers/SendController.d.ts +12 -10
- package/dist/types/src/controllers/SnackController.d.ts +6 -4
- package/dist/types/src/controllers/SwapController.d.ts +2 -1
- package/dist/types/src/controllers/ThemeController.d.ts +2 -2
- package/dist/types/src/controllers/TooltipController.d.ts +3 -2
- package/dist/types/src/controllers/TransactionsController.d.ts +2 -2
- package/dist/types/src/utils/CoreHelperUtil.d.ts +5 -2
- package/dist/types/src/utils/OptionsUtil.d.ts +1 -0
- package/dist/types/src/utils/StorageUtil.d.ts +61 -1
- package/dist/types/src/utils/SwapApiUtil.d.ts +1 -1
- package/dist/types/src/utils/TypeUtil.d.ts +2 -22
- package/dist/types/tests/controllers/BlockchainApiController.test.d.ts +1 -0
- package/dist/types/tests/hooks/vue.test.d.ts +2 -0
- package/dist/types/tests/mocks/ChainController.d.ts +2 -0
- package/dist/types/tests/mocks/SwapController.d.ts +4 -3
- package/dist/types/tests/mocks/useAppKitAccount.d.ts +40 -0
- package/package.json +4 -4
|
@@ -22,19 +22,20 @@ export interface SendControllerState {
|
|
|
22
22
|
networkBalanceInUSD?: string;
|
|
23
23
|
loading: boolean;
|
|
24
24
|
}
|
|
25
|
+
type StateKey = keyof SendControllerState;
|
|
25
26
|
export declare const SendController: {
|
|
26
27
|
state: SendControllerState;
|
|
27
28
|
subscribe(callback: (newState: SendControllerState) => void): () => void;
|
|
28
|
-
subscribeKey<K extends
|
|
29
|
-
setToken(token: SendControllerState[
|
|
30
|
-
setTokenAmount(sendTokenAmount: SendControllerState[
|
|
31
|
-
setReceiverAddress(receiverAddress: SendControllerState[
|
|
32
|
-
setReceiverProfileImageUrl(receiverProfileImageUrl: SendControllerState[
|
|
33
|
-
setReceiverProfileName(receiverProfileName: SendControllerState[
|
|
34
|
-
setGasPrice(gasPrice: SendControllerState[
|
|
35
|
-
setGasPriceInUsd(gasPriceInUSD: SendControllerState[
|
|
36
|
-
setNetworkBalanceInUsd(networkBalanceInUSD: SendControllerState[
|
|
37
|
-
setLoading(loading: SendControllerState[
|
|
29
|
+
subscribeKey<K extends StateKey>(key: K, callback: (value: SendControllerState[K]) => void): () => void;
|
|
30
|
+
setToken(token: SendControllerState["token"]): void;
|
|
31
|
+
setTokenAmount(sendTokenAmount: SendControllerState["sendTokenAmount"]): void;
|
|
32
|
+
setReceiverAddress(receiverAddress: SendControllerState["receiverAddress"]): void;
|
|
33
|
+
setReceiverProfileImageUrl(receiverProfileImageUrl: SendControllerState["receiverProfileImageUrl"]): void;
|
|
34
|
+
setReceiverProfileName(receiverProfileName: SendControllerState["receiverProfileName"]): void;
|
|
35
|
+
setGasPrice(gasPrice: SendControllerState["gasPrice"]): void;
|
|
36
|
+
setGasPriceInUsd(gasPriceInUSD: SendControllerState["gasPriceInUSD"]): void;
|
|
37
|
+
setNetworkBalanceInUsd(networkBalanceInUSD: SendControllerState["networkBalanceInUSD"]): void;
|
|
38
|
+
setLoading(loading: SendControllerState["loading"]): void;
|
|
38
39
|
sendToken(): void;
|
|
39
40
|
sendEvmToken(): void;
|
|
40
41
|
fetchNetworkBalance(): Promise<void>;
|
|
@@ -45,3 +46,4 @@ export declare const SendController: {
|
|
|
45
46
|
sendSolanaToken(): void;
|
|
46
47
|
resetSend(): void;
|
|
47
48
|
};
|
|
49
|
+
export {};
|
|
@@ -13,15 +13,17 @@ export type SnackControllerShowOptions = {
|
|
|
13
13
|
svg?: SnackControllerState['svg'];
|
|
14
14
|
variant?: SnackControllerState['variant'];
|
|
15
15
|
};
|
|
16
|
+
type StateKey = keyof SnackControllerState;
|
|
16
17
|
export declare const SnackController: {
|
|
17
18
|
state: SnackControllerState;
|
|
18
|
-
subscribeKey<K extends
|
|
19
|
-
showLoading(message: SnackControllerState[
|
|
20
|
-
showSuccess(message: SnackControllerState[
|
|
21
|
-
showSvg(message: SnackControllerState[
|
|
19
|
+
subscribeKey<K extends StateKey>(key: K, callback: (value: SnackControllerState[K]) => void): () => void;
|
|
20
|
+
showLoading(message: SnackControllerState["message"], options?: SnackControllerShowOptions): void;
|
|
21
|
+
showSuccess(message: SnackControllerState["message"]): void;
|
|
22
|
+
showSvg(message: SnackControllerState["message"], svg: NonNullable<SnackControllerState["svg"]>): void;
|
|
22
23
|
showError(message: unknown): void;
|
|
23
24
|
hide(): void;
|
|
24
25
|
_showMessage({ message, svg, variant, autoClose }: {
|
|
25
26
|
message: string;
|
|
26
27
|
} & SnackControllerShowOptions): void;
|
|
27
28
|
};
|
|
29
|
+
export {};
|
|
@@ -56,10 +56,11 @@ export interface TokenInfo {
|
|
|
56
56
|
isFoT?: boolean;
|
|
57
57
|
tags?: string[];
|
|
58
58
|
}
|
|
59
|
+
type StateKey = keyof SwapControllerState;
|
|
59
60
|
export declare const SwapController: {
|
|
60
61
|
state: SwapControllerState;
|
|
61
62
|
subscribe(callback: (newState: SwapControllerState) => void): () => void;
|
|
62
|
-
subscribeKey<K extends
|
|
63
|
+
subscribeKey<K extends StateKey>(key: K, callback: (value: SwapControllerState[K]) => void): () => void;
|
|
63
64
|
getParams(): {
|
|
64
65
|
networkAddress: string;
|
|
65
66
|
fromAddress: string;
|
|
@@ -8,8 +8,8 @@ export interface ThemeControllerState {
|
|
|
8
8
|
export declare const ThemeController: {
|
|
9
9
|
state: ThemeControllerState;
|
|
10
10
|
subscribe(callback: (newState: ThemeControllerState) => void): () => void;
|
|
11
|
-
setThemeMode(themeMode: ThemeControllerState[
|
|
12
|
-
setThemeVariables(themeVariables: ThemeControllerState[
|
|
11
|
+
setThemeMode(themeMode: ThemeControllerState["themeMode"]): void;
|
|
12
|
+
setThemeVariables(themeVariables: ThemeControllerState["themeVariables"]): void;
|
|
13
13
|
getSnapshot(): {
|
|
14
14
|
readonly themeMode: ThemeMode;
|
|
15
15
|
readonly themeVariables: {
|
|
@@ -10,14 +10,15 @@ export interface TooltipControllerState {
|
|
|
10
10
|
open: boolean;
|
|
11
11
|
variant: 'shade' | 'fill';
|
|
12
12
|
}
|
|
13
|
+
type StateKey = keyof TooltipControllerState;
|
|
13
14
|
export declare const TooltipController: {
|
|
14
15
|
state: TooltipControllerState;
|
|
15
16
|
subscribe(callback: (newState: TooltipControllerState) => void): () => void;
|
|
16
|
-
subscribeKey<K extends
|
|
17
|
+
subscribeKey<K extends StateKey>(key: K, callback: (value: TooltipControllerState[K]) => void): () => void;
|
|
17
18
|
showTooltip({ message, triggerRect, variant }: {
|
|
18
19
|
message: string;
|
|
19
20
|
triggerRect: TriggerRect;
|
|
20
|
-
variant:
|
|
21
|
+
variant: "shade" | "fill";
|
|
21
22
|
}): void;
|
|
22
23
|
hide(): void;
|
|
23
24
|
};
|
|
@@ -14,8 +14,8 @@ export interface TransactionsControllerState {
|
|
|
14
14
|
export declare const TransactionsController: {
|
|
15
15
|
state: TransactionsControllerState;
|
|
16
16
|
subscribe(callback: (newState: TransactionsControllerState) => void): () => void;
|
|
17
|
-
setLastNetworkInView(lastNetworkInView: TransactionsControllerState[
|
|
18
|
-
fetchTransactions(accountAddress?: string, onramp?:
|
|
17
|
+
setLastNetworkInView(lastNetworkInView: TransactionsControllerState["lastNetworkInView"]): void;
|
|
18
|
+
fetchTransactions(accountAddress?: string, onramp?: "coinbase"): Promise<void>;
|
|
19
19
|
groupTransactionsByYearAndMonth(transactionsMap?: TransactionByYearMap, transactions?: Transaction[]): TransactionByYearMap;
|
|
20
20
|
filterSpamTransactions(transactions: Transaction[]): Transaction[];
|
|
21
21
|
filterByConnectedChain(transactions: Transaction[]): Transaction[];
|
|
@@ -22,7 +22,7 @@ export declare const CoreHelperUtil: {
|
|
|
22
22
|
isHttpUrl(url: string): boolean;
|
|
23
23
|
formatNativeUrl(appUrl: string, wcUri: string): LinkingRecord;
|
|
24
24
|
formatUniversalUrl(appUrl: string, wcUri: string): LinkingRecord;
|
|
25
|
-
getOpenTargetForPlatform(target:
|
|
25
|
+
getOpenTargetForPlatform(target: OpenTarget): "_blank" | "_self" | "popupWindow" | "_top";
|
|
26
26
|
openHref(href: string, target: OpenTarget, features?: string): void;
|
|
27
27
|
returnOpenHref(href: string, target: OpenTarget, features?: string): Window | null;
|
|
28
28
|
isTelegram(): boolean;
|
|
@@ -48,6 +48,9 @@ export declare const CoreHelperUtil: {
|
|
|
48
48
|
uniqueBy<T>(arr: T[], key: keyof T): T[];
|
|
49
49
|
generateSdkVersion(adapters: ChainAdapter[], platform: SDKFramework, version: string): AppKitSdkVersion;
|
|
50
50
|
createAccount<N extends ChainNamespace>(namespace: N, address: string, type: NamespaceTypeMap[N], publicKey?: string, path?: string): AccountTypeMap[N];
|
|
51
|
-
isCaipAddress(address?: unknown): address is
|
|
51
|
+
isCaipAddress(address?: unknown): address is CaipAddress;
|
|
52
|
+
isMac(): boolean;
|
|
53
|
+
formatTelegramSocialLoginUrl(url: string): string;
|
|
54
|
+
injectIntoUrl(url: string, key: string, appendString: string): string;
|
|
52
55
|
};
|
|
53
56
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Features, FeaturesKeys } from './TypeUtil.js';
|
|
2
2
|
export declare const OptionsUtil: {
|
|
3
3
|
getFeatureValue(key: FeaturesKeys, features?: Features): boolean | import("./TypeUtil.js").SocialProvider[] | import("./TypeUtil.js").WalletFeature[] | import("./TypeUtil.js").ConnectMethod[] | undefined;
|
|
4
|
+
filterSocialsByPlatform<T>(socials: Features["socials"]): import("./TypeUtil.js").SocialProvider[] | T;
|
|
4
5
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { type CaipNetworkId, type ChainNamespace } from '@reown/appkit-common';
|
|
2
|
-
import type { ConnectionStatus, SocialProvider, WcWallet } from './TypeUtil.js';
|
|
2
|
+
import type { BlockchainApiBalanceResponse, BlockchainApiIdentityResponse, BlockchainApiLookupEnsName, ConnectionStatus, SocialProvider, WcWallet } from './TypeUtil.js';
|
|
3
3
|
export declare const StorageUtil: {
|
|
4
|
+
cacheExpiry: {
|
|
5
|
+
portfolio: number;
|
|
6
|
+
nativeBalance: number;
|
|
7
|
+
ens: number;
|
|
8
|
+
identity: number;
|
|
9
|
+
};
|
|
10
|
+
isCacheExpired(timestamp: number, cacheExpiry: number): boolean;
|
|
4
11
|
getActiveNetworkProps(): {
|
|
5
12
|
namespace: ChainNamespace | undefined;
|
|
6
13
|
caipNetworkId: `eip155:${string}` | `eip155:${number}` | `solana:${string}` | `solana:${number}` | `polkadot:${string}` | `polkadot:${number}` | `bip122:${string}` | `bip122:${number}` | undefined;
|
|
@@ -33,4 +40,57 @@ export declare const StorageUtil: {
|
|
|
33
40
|
setConnectedNamespaces(namespaces: ChainNamespace[]): void;
|
|
34
41
|
addConnectedNamespace(namespace: ChainNamespace): void;
|
|
35
42
|
removeConnectedNamespace(namespace: ChainNamespace): void;
|
|
43
|
+
getBalanceCache(): Record<string, {
|
|
44
|
+
timestamp: number;
|
|
45
|
+
balance: BlockchainApiBalanceResponse;
|
|
46
|
+
}>;
|
|
47
|
+
removeAddressFromBalanceCache(caipAddress: string): void;
|
|
48
|
+
getBalanceCacheForCaipAddress(caipAddress: string): BlockchainApiBalanceResponse | undefined;
|
|
49
|
+
updateBalanceCache(params: {
|
|
50
|
+
caipAddress: string;
|
|
51
|
+
balance: BlockchainApiBalanceResponse;
|
|
52
|
+
timestamp: number;
|
|
53
|
+
}): void;
|
|
54
|
+
getNativeBalanceCache(): Record<string, {
|
|
55
|
+
caipAddress: string;
|
|
56
|
+
balance: string;
|
|
57
|
+
symbol: string;
|
|
58
|
+
timestamp: number;
|
|
59
|
+
}>;
|
|
60
|
+
removeAddressFromNativeBalanceCache(caipAddress: string): void;
|
|
61
|
+
getNativeBalanceCacheForCaipAddress(caipAddress: string): {
|
|
62
|
+
caipAddress: string;
|
|
63
|
+
balance: string;
|
|
64
|
+
symbol: string;
|
|
65
|
+
timestamp: number;
|
|
66
|
+
} | undefined;
|
|
67
|
+
updateNativeBalanceCache(params: {
|
|
68
|
+
caipAddress: string;
|
|
69
|
+
balance: string;
|
|
70
|
+
symbol: string;
|
|
71
|
+
timestamp: number;
|
|
72
|
+
}): void;
|
|
73
|
+
getEnsCache(): Record<string, {
|
|
74
|
+
ens: BlockchainApiLookupEnsName[];
|
|
75
|
+
timestamp: number;
|
|
76
|
+
}>;
|
|
77
|
+
getEnsFromCacheForAddress(address: string): BlockchainApiLookupEnsName[] | undefined;
|
|
78
|
+
updateEnsCache(params: {
|
|
79
|
+
address: string;
|
|
80
|
+
timestamp: number;
|
|
81
|
+
ens: BlockchainApiLookupEnsName[];
|
|
82
|
+
}): void;
|
|
83
|
+
removeEnsFromCache(address: string): void;
|
|
84
|
+
getIdentityCache(): Record<string, {
|
|
85
|
+
identity: BlockchainApiIdentityResponse;
|
|
86
|
+
timestamp: number;
|
|
87
|
+
}>;
|
|
88
|
+
getIdentityFromCacheForAddress(address: string): BlockchainApiIdentityResponse | undefined;
|
|
89
|
+
updateIdentityCache(params: {
|
|
90
|
+
address: string;
|
|
91
|
+
timestamp: number;
|
|
92
|
+
identity: BlockchainApiIdentityResponse;
|
|
93
|
+
}): void;
|
|
94
|
+
removeIdentityFromCache(address: string): void;
|
|
95
|
+
clearAddressCache(): void;
|
|
36
96
|
};
|
|
@@ -23,5 +23,5 @@ export declare const SwapApiUtil: {
|
|
|
23
23
|
sourceTokenDecimals: number;
|
|
24
24
|
}): Promise<boolean>;
|
|
25
25
|
getMyTokensWithBalance(forceUpdate?: string): Promise<SwapTokenWithBalance[]>;
|
|
26
|
-
mapBalancesToSwapTokens(balances: BlockchainApiBalanceResponse[
|
|
26
|
+
mapBalancesToSwapTokens(balances: BlockchainApiBalanceResponse["balances"]): SwapTokenWithBalance[];
|
|
27
27
|
};
|
|
@@ -676,6 +676,7 @@ export type Event = {
|
|
|
676
676
|
address?: string;
|
|
677
677
|
event: 'SEND_ERROR';
|
|
678
678
|
properties: {
|
|
679
|
+
message: string;
|
|
679
680
|
isSmartAccount: boolean;
|
|
680
681
|
network: string;
|
|
681
682
|
token: string;
|
|
@@ -818,31 +819,10 @@ export type AdapterNetworkState = {
|
|
|
818
819
|
allowUnsupportedCaipNetwork?: boolean;
|
|
819
820
|
smartAccountEnabledNetworks?: number[];
|
|
820
821
|
};
|
|
821
|
-
export type AdapterAccountState = {
|
|
822
|
-
currentTab: number;
|
|
823
|
-
caipAddress?: CaipAddress;
|
|
824
|
-
address?: string;
|
|
825
|
-
addressLabels: Map<string, string>;
|
|
826
|
-
allAccounts: AccountType[];
|
|
827
|
-
balance?: string;
|
|
828
|
-
balanceSymbol?: string;
|
|
829
|
-
profileName?: string | null;
|
|
830
|
-
profileImage?: string | null;
|
|
831
|
-
addressExplorerUrl?: string;
|
|
832
|
-
smartAccountDeployed?: boolean;
|
|
833
|
-
socialProvider?: SocialProvider;
|
|
834
|
-
tokenBalance?: Balance[];
|
|
835
|
-
shouldUpdateToAddress?: string;
|
|
836
|
-
connectedWalletInfo?: ConnectedWalletInfo;
|
|
837
|
-
preferredAccountType?: W3mFrameTypes.AccountType;
|
|
838
|
-
socialWindow?: Window;
|
|
839
|
-
farcasterUrl?: string;
|
|
840
|
-
status?: 'reconnecting' | 'connected' | 'disconnected' | 'connecting';
|
|
841
|
-
};
|
|
842
822
|
export type ChainAdapter = {
|
|
843
823
|
connectionControllerClient?: ConnectionControllerClient;
|
|
844
824
|
networkControllerClient?: NetworkControllerClient;
|
|
845
|
-
accountState?:
|
|
825
|
+
accountState?: AccountControllerState;
|
|
846
826
|
networkState?: AdapterNetworkState;
|
|
847
827
|
namespace?: ChainNamespace;
|
|
848
828
|
caipNetworks?: CaipNetwork[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { CaipAddress } from '@reown/appkit-common';
|
|
1
2
|
export declare const tokensResponse: {
|
|
2
3
|
tokens: {
|
|
3
4
|
name: string;
|
|
4
5
|
symbol: string;
|
|
5
|
-
address:
|
|
6
|
+
address: CaipAddress;
|
|
6
7
|
decimals: number;
|
|
7
8
|
logoUri: string;
|
|
8
9
|
eip2612: boolean;
|
|
@@ -57,8 +58,8 @@ export declare const swapQuoteResponse: {
|
|
|
57
58
|
};
|
|
58
59
|
export declare const swapCalldataResponse: {
|
|
59
60
|
tx: {
|
|
60
|
-
from:
|
|
61
|
-
to:
|
|
61
|
+
from: CaipAddress;
|
|
62
|
+
to: CaipAddress;
|
|
62
63
|
data: `0x${string}`;
|
|
63
64
|
amount: string;
|
|
64
65
|
eip155: {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const defaultAccountState: {
|
|
2
|
+
allAccounts: never[];
|
|
3
|
+
address: undefined;
|
|
4
|
+
caipAddress: undefined;
|
|
5
|
+
isConnected: boolean;
|
|
6
|
+
status: undefined;
|
|
7
|
+
embeddedWalletInfo: undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare const connectedAccountState: {
|
|
10
|
+
allAccounts: never[];
|
|
11
|
+
address: string;
|
|
12
|
+
caipAddress: string;
|
|
13
|
+
isConnected: boolean;
|
|
14
|
+
status: string;
|
|
15
|
+
embeddedWalletInfo: undefined;
|
|
16
|
+
};
|
|
17
|
+
export declare const disconnectedAccountState: {
|
|
18
|
+
allAccounts: never[];
|
|
19
|
+
address: undefined;
|
|
20
|
+
caipAddress: undefined;
|
|
21
|
+
isConnected: boolean;
|
|
22
|
+
status: string;
|
|
23
|
+
embeddedWalletInfo: undefined;
|
|
24
|
+
};
|
|
25
|
+
export declare const connectedWithEmbeddedWalletState: {
|
|
26
|
+
allAccounts: never[];
|
|
27
|
+
address: string;
|
|
28
|
+
caipAddress: string;
|
|
29
|
+
isConnected: boolean;
|
|
30
|
+
status: string;
|
|
31
|
+
embeddedWalletInfo: {
|
|
32
|
+
user: {
|
|
33
|
+
username: string;
|
|
34
|
+
email: string;
|
|
35
|
+
};
|
|
36
|
+
accountType: string;
|
|
37
|
+
authProvider: string;
|
|
38
|
+
isSmartAccountDeployed: boolean;
|
|
39
|
+
};
|
|
40
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-core",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.9-rc.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/esm/exports/index.js",
|
|
6
6
|
"types": "./dist/types/exports/index.d.ts",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"@walletconnect/universal-provider": "2.18.0",
|
|
40
40
|
"valtio": "1.13.2",
|
|
41
41
|
"viem": ">=2.23",
|
|
42
|
-
"@reown/appkit-common": "1.6.
|
|
43
|
-
"@reown/appkit-wallet": "1.6.
|
|
42
|
+
"@reown/appkit-common": "1.6.9-rc.0",
|
|
43
|
+
"@reown/appkit-wallet": "1.6.9-rc.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"vitest": "2.1.
|
|
47
|
+
"vitest": "2.1.9",
|
|
48
48
|
"@vitest/coverage-v8": "2.1.3",
|
|
49
49
|
"vue": "3.x"
|
|
50
50
|
},
|