@reown/appkit-controllers 1.7.18-log-internal-sdk-errors.0 → 1.7.18
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 +1 -1
- package/dist/esm/exports/react.js.map +1 -1
- package/dist/esm/src/controllers/ApiController.js +2 -1
- package/dist/esm/src/controllers/ApiController.js.map +1 -1
- package/dist/esm/src/controllers/ConnectionController.js +2 -2
- package/dist/esm/src/controllers/ConnectionController.js.map +1 -1
- package/dist/esm/src/controllers/EventsController.js +4 -1
- package/dist/esm/src/controllers/EventsController.js.map +1 -1
- package/dist/esm/src/controllers/SwapController.js +1 -3
- package/dist/esm/src/controllers/SwapController.js.map +1 -1
- package/dist/esm/src/utils/CoreHelperUtil.js +0 -17
- package/dist/esm/src/utils/CoreHelperUtil.js.map +1 -1
- package/dist/esm/src/utils/MobileWallet.js +30 -0
- package/dist/esm/src/utils/MobileWallet.js.map +1 -1
- package/dist/esm/src/utils/SwapCalculationUtil.js +0 -29
- package/dist/esm/src/utils/SwapCalculationUtil.js.map +1 -1
- package/dist/esm/src/utils/withErrorBoundary.js +0 -4
- package/dist/esm/src/utils/withErrorBoundary.js.map +1 -1
- package/dist/esm/tests/utils/MobileWallet.test.js +27 -1
- package/dist/esm/tests/utils/MobileWallet.test.js.map +1 -1
- package/dist/esm/tests/utils/SwapCalculationUtil.test.js +0 -40
- package/dist/esm/tests/utils/SwapCalculationUtil.test.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/exports/react.d.ts +2 -0
- package/dist/types/src/controllers/ConnectionController.d.ts +1 -1
- package/dist/types/src/utils/CoreHelperUtil.d.ts +0 -5
- package/dist/types/src/utils/MobileWallet.d.ts +7 -1
- package/dist/types/src/utils/SwapCalculationUtil.d.ts +0 -7
- package/package.json +3 -3
|
@@ -39,6 +39,7 @@ export declare function useAppKitConnections(namespace?: ChainNamespace): {
|
|
|
39
39
|
accounts: {
|
|
40
40
|
type?: string;
|
|
41
41
|
address: string;
|
|
42
|
+
publicKey?: string;
|
|
42
43
|
}[];
|
|
43
44
|
caipNetwork?: import("@reown/appkit-common").CaipNetwork;
|
|
44
45
|
connectorId: string;
|
|
@@ -54,6 +55,7 @@ export declare function useAppKitConnections(namespace?: ChainNamespace): {
|
|
|
54
55
|
accounts: {
|
|
55
56
|
type?: string;
|
|
56
57
|
address: string;
|
|
58
|
+
publicKey?: string;
|
|
57
59
|
}[];
|
|
58
60
|
caipNetwork?: import("@reown/appkit-common").CaipNetwork;
|
|
59
61
|
connectorId: string;
|
|
@@ -127,7 +127,7 @@ export declare const ConnectionController: {
|
|
|
127
127
|
checkInstalled(ids?: string[]): boolean;
|
|
128
128
|
resetWcConnection(): void;
|
|
129
129
|
resetUri(): void;
|
|
130
|
-
finalizeWcConnection(): void;
|
|
130
|
+
finalizeWcConnection(address?: string): void;
|
|
131
131
|
setWcBasic(wcBasic: ConnectionControllerState["wcBasic"]): void;
|
|
132
132
|
setUri(uri: string): void;
|
|
133
133
|
setWcLinking(wcLinking: ConnectionControllerState["wcLinking"]): void;
|
|
@@ -30,11 +30,6 @@ export declare const CoreHelperUtil: {
|
|
|
30
30
|
isPWA(): boolean;
|
|
31
31
|
preloadImage(src: string): Promise<unknown>;
|
|
32
32
|
formatBalance(balance: string | undefined, symbol: string | undefined): string;
|
|
33
|
-
formatBalance2(balance: string | undefined, symbol: string | undefined): {
|
|
34
|
-
value: string;
|
|
35
|
-
rest: string;
|
|
36
|
-
symbol: string | undefined;
|
|
37
|
-
};
|
|
38
33
|
getApiUrl(): "https://api.web3modal.org";
|
|
39
34
|
getBlockchainApiUrl(): "https://rpc.walletconnect.org";
|
|
40
35
|
getAnalyticsUrl(): "https://pulse.walletconnect.org";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ChainControllerState } from '../controllers/ChainController.js';
|
|
2
2
|
export declare const CUSTOM_DEEPLINK_WALLETS: {
|
|
3
3
|
PHANTOM: {
|
|
4
4
|
id: string;
|
|
@@ -12,6 +12,12 @@ export declare const CUSTOM_DEEPLINK_WALLETS: {
|
|
|
12
12
|
id: string;
|
|
13
13
|
url: string;
|
|
14
14
|
};
|
|
15
|
+
BINANCE: {
|
|
16
|
+
id: string;
|
|
17
|
+
appId: string;
|
|
18
|
+
deeplink: string;
|
|
19
|
+
url: string;
|
|
20
|
+
};
|
|
15
21
|
};
|
|
16
22
|
export declare const MobileWalletUtil: {
|
|
17
23
|
/**
|
|
@@ -12,11 +12,4 @@ export declare const SwapCalculationUtil: {
|
|
|
12
12
|
getProviderFee(sourceTokenAmount: string, feePercentage?: number): string;
|
|
13
13
|
isInsufficientNetworkTokenForGas(networkBalanceInUSD: string, gasPriceInUSD: number | undefined): boolean;
|
|
14
14
|
isInsufficientSourceTokenForSwap(sourceTokenAmount: string, sourceTokenAddress: string, balance: SwapTokenWithBalance[] | undefined): boolean;
|
|
15
|
-
getToTokenAmount({ sourceToken, toToken, sourceTokenPrice, toTokenPrice, sourceTokenAmount }: {
|
|
16
|
-
sourceToken: SwapTokenWithBalance | undefined;
|
|
17
|
-
toToken: SwapTokenWithBalance | undefined;
|
|
18
|
-
sourceTokenPrice: number;
|
|
19
|
-
toTokenPrice: number;
|
|
20
|
-
sourceTokenAmount: string;
|
|
21
|
-
}): string;
|
|
22
15
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-controllers",
|
|
3
|
-
"version": "1.7.18
|
|
3
|
+
"version": "1.7.18",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/esm/exports/index.js",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@walletconnect/universal-provider": "2.21.5",
|
|
52
52
|
"valtio": "2.1.5",
|
|
53
53
|
"viem": ">=2.32.0",
|
|
54
|
-
"@reown/appkit-common": "1.7.18
|
|
55
|
-
"@reown/appkit-wallet": "1.7.18
|
|
54
|
+
"@reown/appkit-common": "1.7.18",
|
|
55
|
+
"@reown/appkit-wallet": "1.7.18"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@vitest/coverage-v8": "2.1.9",
|