@reown/appkit-core-react-native 2.0.0 → 2.0.1
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/lib/commonjs/controllers/ApiController.js +148 -82
- package/lib/commonjs/controllers/ApiController.js.map +1 -1
- package/lib/commonjs/controllers/AssetController.js +0 -4
- package/lib/commonjs/controllers/AssetController.js.map +1 -1
- package/lib/commonjs/controllers/BlockchainApiController.js +127 -134
- package/lib/commonjs/controllers/BlockchainApiController.js.map +1 -1
- package/lib/commonjs/controllers/ConnectionsController.js +280 -60
- package/lib/commonjs/controllers/ConnectionsController.js.map +1 -1
- package/lib/commonjs/controllers/EnsController.js +6 -4
- package/lib/commonjs/controllers/EnsController.js.map +1 -1
- package/lib/commonjs/controllers/EventsController.js +55 -5
- package/lib/commonjs/controllers/EventsController.js.map +1 -1
- package/lib/commonjs/controllers/LogController.js +188 -0
- package/lib/commonjs/controllers/LogController.js.map +1 -0
- package/lib/commonjs/controllers/ModalController.js +9 -7
- package/lib/commonjs/controllers/ModalController.js.map +1 -1
- package/lib/commonjs/controllers/OnRampController.js +134 -53
- package/lib/commonjs/controllers/OnRampController.js.map +1 -1
- package/lib/commonjs/controllers/OptionsController.js +20 -7
- package/lib/commonjs/controllers/OptionsController.js.map +1 -1
- package/lib/commonjs/controllers/PublicStateController.js.map +1 -1
- package/lib/commonjs/controllers/RouterController.js +7 -22
- package/lib/commonjs/controllers/RouterController.js.map +1 -1
- package/lib/commonjs/controllers/SendController.js +115 -99
- package/lib/commonjs/controllers/SendController.js.map +1 -1
- package/lib/commonjs/controllers/SnackController.js +29 -5
- package/lib/commonjs/controllers/SnackController.js.map +1 -1
- package/lib/commonjs/controllers/SwapController.js +119 -119
- package/lib/commonjs/controllers/SwapController.js.map +1 -1
- package/lib/commonjs/controllers/ThemeController.js +5 -0
- package/lib/commonjs/controllers/ThemeController.js.map +1 -1
- package/lib/commonjs/controllers/TransactionsController.js +25 -19
- package/lib/commonjs/controllers/TransactionsController.js.map +1 -1
- package/lib/commonjs/controllers/WcController.js +73 -0
- package/lib/commonjs/controllers/WcController.js.map +1 -0
- package/lib/commonjs/features/reown-authentication/ReownAuthentication.js +272 -0
- package/lib/commonjs/features/reown-authentication/ReownAuthentication.js.map +1 -0
- package/lib/commonjs/features/reown-authentication/ReownAuthenticationMessenger.js +48 -0
- package/lib/commonjs/features/reown-authentication/ReownAuthenticationMessenger.js.map +1 -0
- package/lib/commonjs/features/reown-authentication/index.js +28 -0
- package/lib/commonjs/features/reown-authentication/index.js.map +1 -0
- package/lib/commonjs/index.js +30 -37
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/utils/ApiUtil.js +1 -1
- package/lib/commonjs/utils/ApiUtil.js.map +1 -1
- package/lib/commonjs/utils/AssetUtil.js +8 -17
- package/lib/commonjs/utils/AssetUtil.js.map +1 -1
- package/lib/commonjs/utils/ConstantsUtil.js +14 -431
- package/lib/commonjs/utils/ConstantsUtil.js.map +1 -1
- package/lib/commonjs/utils/CoreHelperUtil.js +33 -10
- package/lib/commonjs/utils/CoreHelperUtil.js.map +1 -1
- package/lib/commonjs/utils/EventUtil.js.map +1 -1
- package/lib/commonjs/utils/FetchUtil.js +41 -12
- package/lib/commonjs/utils/FetchUtil.js.map +1 -1
- package/lib/commonjs/utils/LogUtils.js +131 -0
- package/lib/commonjs/utils/LogUtils.js.map +1 -0
- package/lib/commonjs/utils/StorageUtil.js +119 -172
- package/lib/commonjs/utils/StorageUtil.js.map +1 -1
- package/lib/commonjs/utils/SwapApiUtil.js +2 -17
- package/lib/commonjs/utils/SwapApiUtil.js.map +1 -1
- package/lib/commonjs/utils/SwapCalculationUtil.js.map +1 -1
- package/lib/commonjs/utils/WalletUtil.js +23 -0
- package/lib/commonjs/utils/WalletUtil.js.map +1 -0
- package/lib/module/controllers/ApiController.js +150 -82
- package/lib/module/controllers/ApiController.js.map +1 -1
- package/lib/module/controllers/AssetController.js +2 -4
- package/lib/module/controllers/AssetController.js.map +1 -1
- package/lib/module/controllers/BlockchainApiController.js +128 -133
- package/lib/module/controllers/BlockchainApiController.js.map +1 -1
- package/lib/module/controllers/ConnectionsController.js +282 -60
- package/lib/module/controllers/ConnectionsController.js.map +1 -1
- package/lib/module/controllers/EnsController.js +6 -2
- package/lib/module/controllers/EnsController.js.map +1 -1
- package/lib/module/controllers/EventsController.js +54 -2
- package/lib/module/controllers/EventsController.js.map +1 -1
- package/lib/module/controllers/LogController.js +185 -0
- package/lib/module/controllers/LogController.js.map +1 -0
- package/lib/module/controllers/ModalController.js +11 -7
- package/lib/module/controllers/ModalController.js.map +1 -1
- package/lib/module/controllers/OnRampController.js +135 -52
- package/lib/module/controllers/OnRampController.js.map +1 -1
- package/lib/module/controllers/OptionsController.js +22 -7
- package/lib/module/controllers/OptionsController.js.map +1 -1
- package/lib/module/controllers/PublicStateController.js +2 -0
- package/lib/module/controllers/PublicStateController.js.map +1 -1
- package/lib/module/controllers/RouterController.js +9 -22
- package/lib/module/controllers/RouterController.js.map +1 -1
- package/lib/module/controllers/SendController.js +114 -96
- package/lib/module/controllers/SendController.js.map +1 -1
- package/lib/module/controllers/SnackController.js +31 -5
- package/lib/module/controllers/SnackController.js.map +1 -1
- package/lib/module/controllers/SwapController.js +121 -119
- package/lib/module/controllers/SwapController.js.map +1 -1
- package/lib/module/controllers/ThemeController.js +7 -0
- package/lib/module/controllers/ThemeController.js.map +1 -1
- package/lib/module/controllers/TransactionsController.js +25 -17
- package/lib/module/controllers/TransactionsController.js.map +1 -1
- package/lib/module/controllers/WcController.js +70 -0
- package/lib/module/controllers/WcController.js.map +1 -0
- package/lib/module/features/reown-authentication/ReownAuthentication.js +268 -0
- package/lib/module/features/reown-authentication/ReownAuthentication.js.map +1 -0
- package/lib/module/features/reown-authentication/ReownAuthenticationMessenger.js +43 -0
- package/lib/module/features/reown-authentication/ReownAuthenticationMessenger.js.map +1 -0
- package/lib/module/features/reown-authentication/index.js +5 -0
- package/lib/module/features/reown-authentication/index.js.map +1 -0
- package/lib/module/index.js +12 -7
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/ApiUtil.js +3 -1
- package/lib/module/utils/ApiUtil.js.map +1 -1
- package/lib/module/utils/AssetUtil.js +10 -17
- package/lib/module/utils/AssetUtil.js.map +1 -1
- package/lib/module/utils/ConstantsUtil.js +16 -431
- package/lib/module/utils/ConstantsUtil.js.map +1 -1
- package/lib/module/utils/CoreHelperUtil.js +35 -8
- package/lib/module/utils/CoreHelperUtil.js.map +1 -1
- package/lib/module/utils/EventUtil.js +2 -0
- package/lib/module/utils/EventUtil.js.map +1 -1
- package/lib/module/utils/FetchUtil.js +44 -12
- package/lib/module/utils/FetchUtil.js.map +1 -1
- package/lib/module/utils/LogUtils.js +121 -0
- package/lib/module/utils/LogUtils.js.map +1 -0
- package/lib/module/utils/StorageUtil.js +122 -172
- package/lib/module/utils/StorageUtil.js.map +1 -1
- package/lib/module/utils/SwapApiUtil.js +4 -17
- package/lib/module/utils/SwapApiUtil.js.map +1 -1
- package/lib/module/utils/SwapCalculationUtil.js +3 -0
- package/lib/module/utils/SwapCalculationUtil.js.map +1 -1
- package/lib/module/utils/WalletUtil.js +19 -0
- package/lib/module/utils/WalletUtil.js.map +1 -0
- package/lib/typescript/controllers/ApiController.d.ts +8 -7
- package/lib/typescript/controllers/ApiController.d.ts.map +1 -1
- package/lib/typescript/controllers/AssetController.d.ts +0 -2
- package/lib/typescript/controllers/AssetController.d.ts.map +1 -1
- package/lib/typescript/controllers/BlockchainApiController.d.ts +21 -13
- package/lib/typescript/controllers/BlockchainApiController.d.ts.map +1 -1
- package/lib/typescript/controllers/ConnectionsController.d.ts +22 -18
- package/lib/typescript/controllers/ConnectionsController.d.ts.map +1 -1
- package/lib/typescript/controllers/EnsController.d.ts +1 -1
- package/lib/typescript/controllers/EnsController.d.ts.map +1 -1
- package/lib/typescript/controllers/EventsController.d.ts +13 -1
- package/lib/typescript/controllers/EventsController.d.ts.map +1 -1
- package/lib/typescript/controllers/LogController.d.ts +65 -0
- package/lib/typescript/controllers/LogController.d.ts.map +1 -0
- package/lib/typescript/controllers/ModalController.d.ts +1 -1
- package/lib/typescript/controllers/ModalController.d.ts.map +1 -1
- package/lib/typescript/controllers/OnRampController.d.ts +4 -3
- package/lib/typescript/controllers/OnRampController.d.ts.map +1 -1
- package/lib/typescript/controllers/OptionsController.d.ts +8 -6
- package/lib/typescript/controllers/OptionsController.d.ts.map +1 -1
- package/lib/typescript/controllers/RouterController.d.ts +6 -21
- package/lib/typescript/controllers/RouterController.d.ts.map +1 -1
- package/lib/typescript/controllers/SendController.d.ts +5 -7
- package/lib/typescript/controllers/SendController.d.ts.map +1 -1
- package/lib/typescript/controllers/SnackController.d.ts +3 -3
- package/lib/typescript/controllers/SnackController.d.ts.map +1 -1
- package/lib/typescript/controllers/SwapController.d.ts +11 -11
- package/lib/typescript/controllers/SwapController.d.ts.map +1 -1
- package/lib/typescript/controllers/ThemeController.d.ts +2 -0
- package/lib/typescript/controllers/ThemeController.d.ts.map +1 -1
- package/lib/typescript/controllers/TransactionsController.d.ts +3 -3
- package/lib/typescript/controllers/TransactionsController.d.ts.map +1 -1
- package/lib/typescript/controllers/WcController.d.ts +27 -0
- package/lib/typescript/controllers/WcController.d.ts.map +1 -0
- package/lib/typescript/features/reown-authentication/ReownAuthentication.d.ts +174 -0
- package/lib/typescript/features/reown-authentication/ReownAuthentication.d.ts.map +1 -0
- package/lib/typescript/features/reown-authentication/ReownAuthenticationMessenger.d.ts +16 -0
- package/lib/typescript/features/reown-authentication/ReownAuthenticationMessenger.d.ts.map +1 -0
- package/lib/typescript/features/reown-authentication/index.d.ts +3 -0
- package/lib/typescript/features/reown-authentication/index.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +6 -8
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/utils/ApiUtil.d.ts +1 -1
- package/lib/typescript/utils/AssetUtil.d.ts +3 -4
- package/lib/typescript/utils/AssetUtil.d.ts.map +1 -1
- package/lib/typescript/utils/ConstantsUtil.d.ts +7 -416
- package/lib/typescript/utils/ConstantsUtil.d.ts.map +1 -1
- package/lib/typescript/utils/CoreHelperUtil.d.ts +8 -6
- package/lib/typescript/utils/CoreHelperUtil.d.ts.map +1 -1
- package/lib/typescript/utils/EventUtil.d.ts +1 -1
- package/lib/typescript/utils/EventUtil.d.ts.map +1 -1
- package/lib/typescript/utils/FetchUtil.d.ts +3 -3
- package/lib/typescript/utils/FetchUtil.d.ts.map +1 -1
- package/lib/typescript/utils/LogUtils.d.ts +15 -0
- package/lib/typescript/utils/LogUtils.d.ts.map +1 -0
- package/lib/typescript/utils/StorageUtil.d.ts +8 -19
- package/lib/typescript/utils/StorageUtil.d.ts.map +1 -1
- package/lib/typescript/utils/SwapApiUtil.d.ts +3 -4
- package/lib/typescript/utils/SwapApiUtil.d.ts.map +1 -1
- package/lib/typescript/utils/SwapCalculationUtil.d.ts +1 -1
- package/lib/typescript/utils/SwapCalculationUtil.d.ts.map +1 -1
- package/lib/typescript/utils/WalletUtil.d.ts +5 -0
- package/lib/typescript/utils/WalletUtil.d.ts.map +1 -0
- package/package.json +12 -25
- package/src/controllers/ApiController.ts +158 -80
- package/src/controllers/AssetController.ts +0 -6
- package/src/controllers/BlockchainApiController.ts +109 -144
- package/src/controllers/ConnectionsController.ts +372 -88
- package/src/controllers/EnsController.ts +5 -3
- package/src/controllers/EventsController.ts +74 -3
- package/src/controllers/LogController.ts +250 -0
- package/src/controllers/ModalController.ts +11 -9
- package/src/controllers/OnRampController.ts +195 -82
- package/src/controllers/OptionsController.ts +40 -13
- package/src/controllers/RouterController.ts +20 -58
- package/src/controllers/SendController.ts +148 -112
- package/src/controllers/SnackController.ts +31 -5
- package/src/controllers/SwapController.ts +140 -148
- package/src/controllers/ThemeController.ts +7 -0
- package/src/controllers/TransactionsController.ts +26 -18
- package/src/controllers/WcController.ts +93 -0
- package/src/features/reown-authentication/ReownAuthentication.ts +475 -0
- package/src/features/reown-authentication/ReownAuthenticationMessenger.ts +80 -0
- package/src/features/reown-authentication/index.ts +2 -0
- package/src/index.ts +15 -22
- package/src/utils/ApiUtil.ts +1 -1
- package/src/utils/AssetUtil.ts +9 -20
- package/src/utils/ConstantsUtil.ts +16 -435
- package/src/utils/CoreHelperUtil.ts +62 -11
- package/src/utils/EventUtil.ts +1 -1
- package/src/utils/FetchUtil.ts +50 -14
- package/src/utils/LogUtils.ts +179 -0
- package/src/utils/StorageUtil.ts +171 -199
- package/src/utils/SwapApiUtil.ts +18 -37
- package/src/utils/SwapCalculationUtil.ts +1 -2
- package/src/utils/WalletUtil.ts +14 -0
- package/lib/commonjs/controllers/AccountController.js +0 -93
- package/lib/commonjs/controllers/AccountController.js.map +0 -1
- package/lib/commonjs/controllers/ConnectionController.js +0 -132
- package/lib/commonjs/controllers/ConnectionController.js.map +0 -1
- package/lib/commonjs/controllers/ConnectorController.js +0 -50
- package/lib/commonjs/controllers/ConnectorController.js.map +0 -1
- package/lib/commonjs/controllers/NetworkController.js +0 -90
- package/lib/commonjs/controllers/NetworkController.js.map +0 -1
- package/lib/commonjs/controllers/WebviewController.js +0 -52
- package/lib/commonjs/controllers/WebviewController.js.map +0 -1
- package/lib/commonjs/utils/NetworkUtil.js +0 -46
- package/lib/commonjs/utils/NetworkUtil.js.map +0 -1
- package/lib/commonjs/utils/RouterUtil.js +0 -25
- package/lib/commonjs/utils/RouterUtil.js.map +0 -1
- package/lib/commonjs/utils/TypeUtil.js +0 -6
- package/lib/commonjs/utils/TypeUtil.js.map +0 -1
- package/lib/module/controllers/AccountController.js +0 -88
- package/lib/module/controllers/AccountController.js.map +0 -1
- package/lib/module/controllers/ConnectionController.js +0 -127
- package/lib/module/controllers/ConnectionController.js.map +0 -1
- package/lib/module/controllers/ConnectorController.js +0 -45
- package/lib/module/controllers/ConnectorController.js.map +0 -1
- package/lib/module/controllers/NetworkController.js +0 -85
- package/lib/module/controllers/NetworkController.js.map +0 -1
- package/lib/module/controllers/WebviewController.js +0 -47
- package/lib/module/controllers/WebviewController.js.map +0 -1
- package/lib/module/utils/NetworkUtil.js +0 -40
- package/lib/module/utils/NetworkUtil.js.map +0 -1
- package/lib/module/utils/RouterUtil.js +0 -19
- package/lib/module/utils/RouterUtil.js.map +0 -1
- package/lib/module/utils/TypeUtil.js +0 -2
- package/lib/module/utils/TypeUtil.js.map +0 -1
- package/lib/typescript/controllers/AccountController.d.ts +0 -33
- package/lib/typescript/controllers/AccountController.d.ts.map +0 -1
- package/lib/typescript/controllers/ConnectionController.d.ts +0 -68
- package/lib/typescript/controllers/ConnectionController.d.ts.map +0 -1
- package/lib/typescript/controllers/ConnectorController.d.ts +0 -18
- package/lib/typescript/controllers/ConnectorController.d.ts.map +0 -1
- package/lib/typescript/controllers/NetworkController.d.ts +0 -34
- package/lib/typescript/controllers/NetworkController.d.ts.map +0 -1
- package/lib/typescript/controllers/WebviewController.d.ts +0 -21
- package/lib/typescript/controllers/WebviewController.d.ts.map +0 -1
- package/lib/typescript/utils/NetworkUtil.d.ts +0 -8
- package/lib/typescript/utils/NetworkUtil.d.ts.map +0 -1
- package/lib/typescript/utils/RouterUtil.d.ts +0 -5
- package/lib/typescript/utils/RouterUtil.d.ts.map +0 -1
- package/lib/typescript/utils/TypeUtil.d.ts +0 -817
- package/lib/typescript/utils/TypeUtil.d.ts.map +0 -1
- package/src/controllers/AccountController.ts +0 -128
- package/src/controllers/ConnectionController.ts +0 -208
- package/src/controllers/ConnectorController.ts +0 -64
- package/src/controllers/NetworkController.ts +0 -120
- package/src/controllers/WebviewController.ts +0 -63
- package/src/utils/NetworkUtil.ts +0 -33
- package/src/utils/RouterUtil.ts +0 -21
- package/src/utils/TypeUtil.ts +0 -995
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { Features } from '
|
|
1
|
+
import type { Features } from '@reown/appkit-common-react-native';
|
|
2
2
|
export declare const OnRampErrorType: {
|
|
3
3
|
readonly AMOUNT_TOO_LOW: "INVALID_AMOUNT_TOO_LOW";
|
|
4
4
|
readonly AMOUNT_TOO_HIGH: "INVALID_AMOUNT_TOO_HIGH";
|
|
5
5
|
readonly INVALID_AMOUNT: "INVALID_AMOUNT";
|
|
6
6
|
readonly INCOMPATIBLE_REQUEST: "INCOMPATIBLE_REQUEST";
|
|
7
7
|
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
8
|
+
readonly NO_VALID_QUOTES: "NO_VALID_QUOTES";
|
|
8
9
|
readonly FAILED_TO_LOAD: "FAILED_TO_LOAD";
|
|
9
10
|
readonly FAILED_TO_LOAD_COUNTRIES: "FAILED_TO_LOAD_COUNTRIES";
|
|
10
11
|
readonly FAILED_TO_LOAD_PROVIDERS: "FAILED_TO_LOAD_PROVIDERS";
|
|
@@ -22,7 +23,6 @@ export declare const ConstantsUtil: {
|
|
|
22
23
|
NATIVE_TOKEN_ADDRESS: {
|
|
23
24
|
readonly eip155: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
24
25
|
readonly solana: "So11111111111111111111111111111111111111111";
|
|
25
|
-
readonly polkadot: "0x";
|
|
26
26
|
readonly bip122: "0x";
|
|
27
27
|
};
|
|
28
28
|
ONRAMP_ERROR_TYPES: {
|
|
@@ -31,6 +31,7 @@ export declare const ConstantsUtil: {
|
|
|
31
31
|
readonly INVALID_AMOUNT: "INVALID_AMOUNT";
|
|
32
32
|
readonly INCOMPATIBLE_REQUEST: "INCOMPATIBLE_REQUEST";
|
|
33
33
|
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
34
|
+
readonly NO_VALID_QUOTES: "NO_VALID_QUOTES";
|
|
34
35
|
readonly FAILED_TO_LOAD: "FAILED_TO_LOAD";
|
|
35
36
|
readonly FAILED_TO_LOAD_COUNTRIES: "FAILED_TO_LOAD_COUNTRIES";
|
|
36
37
|
readonly FAILED_TO_LOAD_PROVIDERS: "FAILED_TO_LOAD_PROVIDERS";
|
|
@@ -43,261 +44,10 @@ export declare const ConstantsUtil: {
|
|
|
43
44
|
SWAP_POPULAR_TOKENS: string[];
|
|
44
45
|
ACTIVITY_SUPPORTED_CHAINS: string[];
|
|
45
46
|
SWAP_SUPPORTED_NETWORKS: string[];
|
|
47
|
+
SEND_SUPPORTED_NAMESPACES: string[];
|
|
48
|
+
ONRAMP_SUPPORTED_NAMESPACES: string[];
|
|
46
49
|
CONVERT_SLIPPAGE_TOLERANCE: number;
|
|
47
50
|
DEFAULT_FEATURES: Features;
|
|
48
|
-
COUNTRY_CURRENCIES: {
|
|
49
|
-
AD: string;
|
|
50
|
-
AE: string;
|
|
51
|
-
AF: string;
|
|
52
|
-
AG: string;
|
|
53
|
-
AI: string;
|
|
54
|
-
AL: string;
|
|
55
|
-
AM: string;
|
|
56
|
-
AN: string;
|
|
57
|
-
AO: string;
|
|
58
|
-
AQ: string;
|
|
59
|
-
AR: string;
|
|
60
|
-
AS: string;
|
|
61
|
-
AT: string;
|
|
62
|
-
AU: string;
|
|
63
|
-
AW: string;
|
|
64
|
-
AX: string;
|
|
65
|
-
AZ: string;
|
|
66
|
-
BA: string;
|
|
67
|
-
BB: string;
|
|
68
|
-
BD: string;
|
|
69
|
-
BE: string;
|
|
70
|
-
BF: string;
|
|
71
|
-
BG: string;
|
|
72
|
-
BH: string;
|
|
73
|
-
BI: string;
|
|
74
|
-
BJ: string;
|
|
75
|
-
BL: string;
|
|
76
|
-
BM: string;
|
|
77
|
-
BN: string;
|
|
78
|
-
BO: string;
|
|
79
|
-
BQ: string;
|
|
80
|
-
BR: string;
|
|
81
|
-
BS: string;
|
|
82
|
-
BT: string;
|
|
83
|
-
BV: string;
|
|
84
|
-
BW: string;
|
|
85
|
-
BY: string;
|
|
86
|
-
BZ: string;
|
|
87
|
-
CA: string;
|
|
88
|
-
CC: string;
|
|
89
|
-
CD: string;
|
|
90
|
-
CF: string;
|
|
91
|
-
CG: string;
|
|
92
|
-
CH: string;
|
|
93
|
-
CI: string;
|
|
94
|
-
CK: string;
|
|
95
|
-
CL: string;
|
|
96
|
-
CM: string;
|
|
97
|
-
CN: string;
|
|
98
|
-
CO: string;
|
|
99
|
-
CR: string;
|
|
100
|
-
CU: string;
|
|
101
|
-
CV: string;
|
|
102
|
-
CW: string;
|
|
103
|
-
CX: string;
|
|
104
|
-
CY: string;
|
|
105
|
-
CZ: string;
|
|
106
|
-
DE: string;
|
|
107
|
-
DJ: string;
|
|
108
|
-
DK: string;
|
|
109
|
-
DM: string;
|
|
110
|
-
DO: string;
|
|
111
|
-
DZ: string;
|
|
112
|
-
EC: string;
|
|
113
|
-
EE: string;
|
|
114
|
-
EG: string;
|
|
115
|
-
EH: string;
|
|
116
|
-
ER: string;
|
|
117
|
-
ES: string;
|
|
118
|
-
ET: string;
|
|
119
|
-
FI: string;
|
|
120
|
-
FJ: string;
|
|
121
|
-
FK: string;
|
|
122
|
-
FM: string;
|
|
123
|
-
FO: string;
|
|
124
|
-
FR: string;
|
|
125
|
-
GA: string;
|
|
126
|
-
GB: string;
|
|
127
|
-
GD: string;
|
|
128
|
-
GE: string;
|
|
129
|
-
GF: string;
|
|
130
|
-
GG: string;
|
|
131
|
-
GH: string;
|
|
132
|
-
GI: string;
|
|
133
|
-
GL: string;
|
|
134
|
-
GM: string;
|
|
135
|
-
GN: string;
|
|
136
|
-
GP: string;
|
|
137
|
-
GQ: string;
|
|
138
|
-
GR: string;
|
|
139
|
-
GS: string;
|
|
140
|
-
GT: string;
|
|
141
|
-
GU: string;
|
|
142
|
-
GW: string;
|
|
143
|
-
GY: string;
|
|
144
|
-
HK: string;
|
|
145
|
-
HM: string;
|
|
146
|
-
HN: string;
|
|
147
|
-
HR: string;
|
|
148
|
-
HT: string;
|
|
149
|
-
HU: string;
|
|
150
|
-
ID: string;
|
|
151
|
-
IE: string;
|
|
152
|
-
IL: string;
|
|
153
|
-
IM: string;
|
|
154
|
-
IN: string;
|
|
155
|
-
IO: string;
|
|
156
|
-
IQ: string;
|
|
157
|
-
IR: string;
|
|
158
|
-
IS: string;
|
|
159
|
-
IT: string;
|
|
160
|
-
JE: string;
|
|
161
|
-
JM: string;
|
|
162
|
-
JO: string;
|
|
163
|
-
JP: string;
|
|
164
|
-
KE: string;
|
|
165
|
-
KG: string;
|
|
166
|
-
KH: string;
|
|
167
|
-
KI: string;
|
|
168
|
-
KM: string;
|
|
169
|
-
KN: string;
|
|
170
|
-
KP: string;
|
|
171
|
-
KR: string;
|
|
172
|
-
KW: string;
|
|
173
|
-
KY: string;
|
|
174
|
-
KZ: string;
|
|
175
|
-
LA: string;
|
|
176
|
-
LB: string;
|
|
177
|
-
LC: string;
|
|
178
|
-
LI: string;
|
|
179
|
-
LK: string;
|
|
180
|
-
LR: string;
|
|
181
|
-
LS: string;
|
|
182
|
-
LT: string;
|
|
183
|
-
LU: string;
|
|
184
|
-
LV: string;
|
|
185
|
-
LY: string;
|
|
186
|
-
MA: string;
|
|
187
|
-
MC: string;
|
|
188
|
-
MD: string;
|
|
189
|
-
ME: string;
|
|
190
|
-
MF: string;
|
|
191
|
-
MG: string;
|
|
192
|
-
MH: string;
|
|
193
|
-
MK: string;
|
|
194
|
-
ML: string;
|
|
195
|
-
MM: string;
|
|
196
|
-
MN: string;
|
|
197
|
-
MO: string;
|
|
198
|
-
MP: string;
|
|
199
|
-
MQ: string;
|
|
200
|
-
MR: string;
|
|
201
|
-
MS: string;
|
|
202
|
-
MT: string;
|
|
203
|
-
MU: string;
|
|
204
|
-
MV: string;
|
|
205
|
-
MW: string;
|
|
206
|
-
MX: string;
|
|
207
|
-
MY: string;
|
|
208
|
-
MZ: string;
|
|
209
|
-
NA: string;
|
|
210
|
-
NC: string;
|
|
211
|
-
NE: string;
|
|
212
|
-
NF: string;
|
|
213
|
-
NG: string;
|
|
214
|
-
NI: string;
|
|
215
|
-
NL: string;
|
|
216
|
-
NO: string;
|
|
217
|
-
NP: string;
|
|
218
|
-
NR: string;
|
|
219
|
-
NU: string;
|
|
220
|
-
NZ: string;
|
|
221
|
-
OM: string;
|
|
222
|
-
PA: string;
|
|
223
|
-
PE: string;
|
|
224
|
-
PF: string;
|
|
225
|
-
PG: string;
|
|
226
|
-
PH: string;
|
|
227
|
-
PK: string;
|
|
228
|
-
PL: string;
|
|
229
|
-
PM: string;
|
|
230
|
-
PN: string;
|
|
231
|
-
PR: string;
|
|
232
|
-
PS: string;
|
|
233
|
-
PT: string;
|
|
234
|
-
PW: string;
|
|
235
|
-
PY: string;
|
|
236
|
-
QA: string;
|
|
237
|
-
RE: string;
|
|
238
|
-
RO: string;
|
|
239
|
-
RS: string;
|
|
240
|
-
RU: string;
|
|
241
|
-
RW: string;
|
|
242
|
-
SA: string;
|
|
243
|
-
SB: string;
|
|
244
|
-
SC: string;
|
|
245
|
-
SD: string;
|
|
246
|
-
SE: string;
|
|
247
|
-
SG: string;
|
|
248
|
-
SH: string;
|
|
249
|
-
SI: string;
|
|
250
|
-
SJ: string;
|
|
251
|
-
SK: string;
|
|
252
|
-
SL: string;
|
|
253
|
-
SM: string;
|
|
254
|
-
SN: string;
|
|
255
|
-
SO: string;
|
|
256
|
-
SR: string;
|
|
257
|
-
SS: string;
|
|
258
|
-
ST: string;
|
|
259
|
-
SV: string;
|
|
260
|
-
SX: string;
|
|
261
|
-
SY: string;
|
|
262
|
-
SZ: string;
|
|
263
|
-
TC: string;
|
|
264
|
-
TD: string;
|
|
265
|
-
TF: string;
|
|
266
|
-
TG: string;
|
|
267
|
-
TH: string;
|
|
268
|
-
TJ: string;
|
|
269
|
-
TK: string;
|
|
270
|
-
TL: string;
|
|
271
|
-
TM: string;
|
|
272
|
-
TN: string;
|
|
273
|
-
TO: string;
|
|
274
|
-
TR: string;
|
|
275
|
-
TT: string;
|
|
276
|
-
TV: string;
|
|
277
|
-
TW: string;
|
|
278
|
-
TZ: string;
|
|
279
|
-
UA: string;
|
|
280
|
-
UG: string;
|
|
281
|
-
UM: string;
|
|
282
|
-
US: string;
|
|
283
|
-
UY: string;
|
|
284
|
-
UZ: string;
|
|
285
|
-
VA: string;
|
|
286
|
-
VC: string;
|
|
287
|
-
VE: string;
|
|
288
|
-
VG: string;
|
|
289
|
-
VI: string;
|
|
290
|
-
VN: string;
|
|
291
|
-
VU: string;
|
|
292
|
-
WF: string;
|
|
293
|
-
WS: string;
|
|
294
|
-
XK: string;
|
|
295
|
-
YE: string;
|
|
296
|
-
YT: string;
|
|
297
|
-
ZA: string;
|
|
298
|
-
ZM: string;
|
|
299
|
-
ZW: string;
|
|
300
|
-
};
|
|
301
51
|
NETWORK_DEFAULT_CURRENCIES: {
|
|
302
52
|
'eip155:1': string;
|
|
303
53
|
'eip155:56': string;
|
|
@@ -322,167 +72,8 @@ export declare const ConstantsUtil: {
|
|
|
322
72
|
'eip155:59144': string;
|
|
323
73
|
'eip155:1101': string;
|
|
324
74
|
'eip155:196': string;
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
AE: string[];
|
|
328
|
-
AR: string[];
|
|
329
|
-
AT: string[];
|
|
330
|
-
AU: string[];
|
|
331
|
-
BD: string[];
|
|
332
|
-
BE: string[];
|
|
333
|
-
BG: string[];
|
|
334
|
-
BR: string[];
|
|
335
|
-
CA: string[];
|
|
336
|
-
CH: string[];
|
|
337
|
-
CL: string[];
|
|
338
|
-
CN: string[];
|
|
339
|
-
CO: string[];
|
|
340
|
-
CY: string[];
|
|
341
|
-
CZ: string[];
|
|
342
|
-
DE: string[];
|
|
343
|
-
DK: string[];
|
|
344
|
-
EC: string[];
|
|
345
|
-
EE: string[];
|
|
346
|
-
ES: string[];
|
|
347
|
-
FI: string[];
|
|
348
|
-
FR: string[];
|
|
349
|
-
GB: string[];
|
|
350
|
-
GR: string[];
|
|
351
|
-
HK: string[];
|
|
352
|
-
HR: string[];
|
|
353
|
-
HU: string[];
|
|
354
|
-
ID: string[];
|
|
355
|
-
IE: string[];
|
|
356
|
-
IL: string[];
|
|
357
|
-
IN: string[];
|
|
358
|
-
IT: string[];
|
|
359
|
-
JP: string[];
|
|
360
|
-
KE: string[];
|
|
361
|
-
KR: string[];
|
|
362
|
-
LT: string[];
|
|
363
|
-
LV: string[];
|
|
364
|
-
MA: string[];
|
|
365
|
-
MX: string[];
|
|
366
|
-
MY: string[];
|
|
367
|
-
NG: string[];
|
|
368
|
-
NL: string[];
|
|
369
|
-
NO: string[];
|
|
370
|
-
NP: string[];
|
|
371
|
-
NZ: string[];
|
|
372
|
-
PH: string[];
|
|
373
|
-
PK: string[];
|
|
374
|
-
PL: string[];
|
|
375
|
-
PR: string[];
|
|
376
|
-
PT: string[];
|
|
377
|
-
RO: string[];
|
|
378
|
-
SA: string[];
|
|
379
|
-
SE: string[];
|
|
380
|
-
SG: string[];
|
|
381
|
-
SI: string[];
|
|
382
|
-
SK: string[];
|
|
383
|
-
TH: string[];
|
|
384
|
-
TR: string[];
|
|
385
|
-
TW: string[];
|
|
386
|
-
UA: string[];
|
|
387
|
-
US: string[];
|
|
388
|
-
VN: string[];
|
|
389
|
-
ZA: string[];
|
|
390
|
-
};
|
|
391
|
-
CURRENCY_SUGGESTED_VALUES: {
|
|
392
|
-
AED: number[];
|
|
393
|
-
AMD: number[];
|
|
394
|
-
ANG: number[];
|
|
395
|
-
AOA: number[];
|
|
396
|
-
ARS: number[];
|
|
397
|
-
AUD: number[];
|
|
398
|
-
AZN: number[];
|
|
399
|
-
BDT: number[];
|
|
400
|
-
BGN: number[];
|
|
401
|
-
BHD: number[];
|
|
402
|
-
BOB: number[];
|
|
403
|
-
BRL: number[];
|
|
404
|
-
BWP: number[];
|
|
405
|
-
CAD: number[];
|
|
406
|
-
CHF: number[];
|
|
407
|
-
CLP: number[];
|
|
408
|
-
CNY: number[];
|
|
409
|
-
COP: number[];
|
|
410
|
-
CRC: number[];
|
|
411
|
-
CZK: number[];
|
|
412
|
-
DKK: number[];
|
|
413
|
-
DOP: number[];
|
|
414
|
-
DZD: number[];
|
|
415
|
-
EGP: number[];
|
|
416
|
-
EUR: number[];
|
|
417
|
-
GBP: number[];
|
|
418
|
-
GEL: number[];
|
|
419
|
-
GHS: number[];
|
|
420
|
-
GTQ: number[];
|
|
421
|
-
HKD: number[];
|
|
422
|
-
HNL: number[];
|
|
423
|
-
HRK: number[];
|
|
424
|
-
HTG: number[];
|
|
425
|
-
HUF: number[];
|
|
426
|
-
IDR: number[];
|
|
427
|
-
ILS: number[];
|
|
428
|
-
INR: number[];
|
|
429
|
-
IQD: number[];
|
|
430
|
-
ISK: number[];
|
|
431
|
-
JOD: number[];
|
|
432
|
-
JPY: number[];
|
|
433
|
-
KES: number[];
|
|
434
|
-
KGS: number[];
|
|
435
|
-
KHR: number[];
|
|
436
|
-
KRW: number[];
|
|
437
|
-
KWD: number[];
|
|
438
|
-
KZT: number[];
|
|
439
|
-
LAK: number[];
|
|
440
|
-
LBP: number[];
|
|
441
|
-
LKR: number[];
|
|
442
|
-
MAD: number[];
|
|
443
|
-
MDL: number[];
|
|
444
|
-
MMK: number[];
|
|
445
|
-
MNT: number[];
|
|
446
|
-
MWK: number[];
|
|
447
|
-
MXN: number[];
|
|
448
|
-
MYR: number[];
|
|
449
|
-
NGN: number[];
|
|
450
|
-
NIO: number[];
|
|
451
|
-
NOK: number[];
|
|
452
|
-
NPR: number[];
|
|
453
|
-
NZD: number[];
|
|
454
|
-
OMR: number[];
|
|
455
|
-
PAB: number[];
|
|
456
|
-
PEN: number[];
|
|
457
|
-
PGK: number[];
|
|
458
|
-
PHP: number[];
|
|
459
|
-
PKR: number[];
|
|
460
|
-
PLN: number[];
|
|
461
|
-
PYG: number[];
|
|
462
|
-
QAR: number[];
|
|
463
|
-
RON: number[];
|
|
464
|
-
RSD: number[];
|
|
465
|
-
RWF: number[];
|
|
466
|
-
SAR: number[];
|
|
467
|
-
SEK: number[];
|
|
468
|
-
SGD: number[];
|
|
469
|
-
THB: number[];
|
|
470
|
-
TJS: number[];
|
|
471
|
-
TND: number[];
|
|
472
|
-
TRY: number[];
|
|
473
|
-
TWD: number[];
|
|
474
|
-
TZS: number[];
|
|
475
|
-
UAH: number[];
|
|
476
|
-
UGX: number[];
|
|
477
|
-
USD: number[];
|
|
478
|
-
UYU: number[];
|
|
479
|
-
UZS: number[];
|
|
480
|
-
VND: number[];
|
|
481
|
-
XAF: number[];
|
|
482
|
-
XCD: number[];
|
|
483
|
-
XOF: number[];
|
|
484
|
-
ZAR: number[];
|
|
485
|
-
ZMW: number[];
|
|
75
|
+
'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp': string;
|
|
76
|
+
'bip122:000000000019d6689c085ae165831e93': string;
|
|
486
77
|
};
|
|
487
78
|
};
|
|
488
79
|
//# sourceMappingURL=ConstantsUtil.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConstantsUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/ConstantsUtil.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConstantsUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/ConstantsUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AASlF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;CAclB,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqRzB,CAAC"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { type Balance, type CaipAddress, type CaipNetwork } from '@reown/appkit-common-react-native';
|
|
2
|
-
import type { DataWallet, LinkingRecord } from './TypeUtil';
|
|
1
|
+
import { BlockchainAdapter, type Balance, type CaipAddress, type CaipNetwork, type ChainNamespace, type SocialProvider, type LinkingRecord, type DataWallet, type SdkVersion } from '@reown/appkit-common-react-native';
|
|
3
2
|
export declare const CoreHelperUtil: {
|
|
4
3
|
isPairingExpired(expiry?: number): boolean;
|
|
5
4
|
isAllowedRetry(lastRetry: number): boolean;
|
|
5
|
+
isCaipAddress(address?: unknown): address is `${string}:${string}:${string}`;
|
|
6
6
|
getPairingExpiry(): number;
|
|
7
7
|
getNetworkId(caipAddress: CaipAddress | undefined): string | undefined;
|
|
8
|
-
getPlainAddress(
|
|
8
|
+
getPlainAddress(address: CaipAddress | string | undefined): string | undefined;
|
|
9
9
|
wait(milliseconds: number): Promise<unknown>;
|
|
10
10
|
isHttpUrl(url: string): boolean;
|
|
11
11
|
isLinkModeURL(url?: string): boolean;
|
|
12
12
|
formatNativeUrl(appUrl: string, wcUri: string): LinkingRecord;
|
|
13
|
-
formatUniversalUrl(appUrl: string, wcUri: string): LinkingRecord;
|
|
13
|
+
formatUniversalUrl(appUrl: string, wcUri: string, provider?: SocialProvider): LinkingRecord;
|
|
14
14
|
openLink(url: string): Promise<void>;
|
|
15
15
|
formatBalance(balance: string | undefined, symbol: string | undefined, decimals?: number): string;
|
|
16
|
-
isAddress(address: string,
|
|
16
|
+
isAddress(address: string, namespace?: ChainNamespace): boolean;
|
|
17
17
|
getApiUrl(): string;
|
|
18
18
|
getBlockchainApiUrl(): string;
|
|
19
19
|
getBlockchainStagingApiUrl(): string;
|
|
20
20
|
getAnalyticsUrl(): string;
|
|
21
21
|
getCountryFromTimezone(): "VC" | "DE" | "GB" | "NZ" | "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW";
|
|
22
22
|
getUUID(): string;
|
|
23
|
-
getBundleId():
|
|
23
|
+
getBundleId(): string | undefined;
|
|
24
24
|
parseError(error: any): string;
|
|
25
25
|
checkInstalled(wallet: DataWallet): Promise<boolean>;
|
|
26
26
|
isValidEmail(email: string): boolean;
|
|
@@ -37,5 +37,7 @@ export declare const CoreHelperUtil: {
|
|
|
37
37
|
};
|
|
38
38
|
sortNetworks(approvedCaipNetworkIds: `${string}:${string}`[] | undefined, requestedCaipNetworks?: CaipNetwork[]): CaipNetwork[];
|
|
39
39
|
debounce<F extends (...args: any[]) => any>(func: F, wait: number): (...args: Parameters<F>) => void;
|
|
40
|
+
generateSdkVersion(adapters: BlockchainAdapter[], version: string): SdkVersion;
|
|
41
|
+
getRequestedCaipNetworkIds(): `${string}:${string}`[];
|
|
40
42
|
};
|
|
41
43
|
//# sourceMappingURL=CoreHelperUtil.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreHelperUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/CoreHelperUtil.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"CoreHelperUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/CoreHelperUtil.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,iBAAiB,EAGjB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,UAAU,EAChB,MAAM,mCAAmC,CAAC;AA+B3C,eAAO,MAAM,cAAc;8BACC,MAAM;8BAIN,MAAM;4BAIR,OAAO;;8BAkBL,WAAW,GAAG,SAAS;6BAIxB,WAAW,GAAG,MAAM,GAAG,SAAS;uBAQhC,MAAM;mBAMhB,MAAM;wBAID,MAAM;4BAQF,MAAM,SAAS,MAAM,GAAG,aAAa;+BA2BlC,MAAM,SAAS,MAAM,aAAa,cAAc,GAAG,aAAa;kBAyBvE,MAAM;2BAQH,MAAM,GAAG,SAAS,UAAU,MAAM,GAAG,SAAS;uBAgBlD,MAAM,cAAa,cAAc,GAAc,OAAO;;;;;;;mBA2E1D,MAAM,GAAG,SAAS;sBAQf,GAAG,GAAG,MAAM;2BAYD,UAAU,GAAG,QAAQ,OAAO,CAAC;wBAiBtC,MAAM;yBAIL,QAAQ,OAAO,CAAC,EAAE;;;;;;;sCAUL,OAAO,EAAE;;;;yCAiBjB,GAAG,MAAM,IAAI,MAAM,EAAE,EAAE,GAAG,SAAS,0BACpC,WAAW,EAAE;iCAiBT,GAAG,EAAE,KAAK,GAAG,iBAAiB,MAAM;iCAcpC,iBAAiB,EAAE,WAAW,MAAM,GAAG,UAAU;;CAsB/E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/EventUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"EventUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/EventUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAE5E,eAAO,MAAM,SAAS;8BACM,QAAQ,cAAc,OAAO,GAAG,QAAQ,GAAG,SAAS;CAkB/E,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RequestCache } from '
|
|
1
|
+
import type { RequestCache } from '@reown/appkit-common-react-native';
|
|
2
2
|
interface Options {
|
|
3
3
|
baseUrl: string;
|
|
4
4
|
clientId?: string | null;
|
|
@@ -21,8 +21,8 @@ export declare class FetchUtil {
|
|
|
21
21
|
post<T>({ body, headers, signal, ...args }: PostArguments): Promise<T | undefined>;
|
|
22
22
|
put<T>({ body, headers, signal, ...args }: PostArguments): Promise<T | undefined>;
|
|
23
23
|
delete<T>({ body, headers, signal, ...args }: PostArguments): Promise<T | undefined>;
|
|
24
|
-
fetchImage(path: string, headers?: Record<string, string>): Promise<string | undefined>;
|
|
25
|
-
|
|
24
|
+
fetchImage(path: string, headers?: Record<string, string>, params?: Record<string, string>): Promise<string | undefined>;
|
|
25
|
+
createUrl({ path, params }: RequestArguments): string;
|
|
26
26
|
private processResponse;
|
|
27
27
|
}
|
|
28
28
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FetchUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/FetchUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FetchUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/FetchUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAItE,UAAU,OAAO;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,UAAU,aAAc,SAAQ,gBAAgB;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAGD,qBAAa,SAAS;IACb,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;gBAElB,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,OAAO;IAKpC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB;IAOrD,IAAI,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa;IAYzD,GAAG,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa;IAYxD,MAAM,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa;IAY3D,UAAU,CACrB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAChC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAiB1B,SAAS,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,gBAAgB;YAsCrC,eAAe;CA+B9B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const sanitizeString: (value: string) => string;
|
|
2
|
+
export declare const sanitizeStackTrace: (stack: string) => string;
|
|
3
|
+
export declare const sanitizeUrl: (url: string) => string;
|
|
4
|
+
export declare const sanitizeValue: (value: unknown, visited?: WeakSet<WeakKey>) => unknown;
|
|
5
|
+
export declare const sanitizeObject: (obj: Record<string, unknown>, visited?: WeakSet<WeakKey>) => Record<string, unknown>;
|
|
6
|
+
export declare const sanitizeData: (data?: Record<string, unknown>) => Record<string, unknown> | undefined;
|
|
7
|
+
export declare const LogUtils: {
|
|
8
|
+
sanitizeString: (value: string) => string;
|
|
9
|
+
sanitizeStackTrace: (stack: string) => string;
|
|
10
|
+
sanitizeUrl: (url: string) => string;
|
|
11
|
+
sanitizeValue: (value: unknown, visited?: WeakSet<WeakKey>) => unknown;
|
|
12
|
+
sanitizeObject: (obj: Record<string, unknown>, visited?: WeakSet<WeakKey>) => Record<string, unknown>;
|
|
13
|
+
sanitizeData: (data?: Record<string, unknown>) => Record<string, unknown> | undefined;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=LogUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/LogUtils.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,cAAc,UAAW,MAAM,KAAG,MAU9C,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,MAAM,KAAG,MAgBlD,CAAC;AAEF,eAAO,MAAM,WAAW,QAAS,MAAM,KAAG,MAazC,CAAC;AAQF,eAAO,MAAM,aAAa,UAAW,OAAO,iCAA4B,OAqCvE,CAAC;AAEF,eAAO,MAAM,cAAc,QACpB,OAAO,MAAM,EAAE,OAAO,CAAC,iCAE3B,OAAO,MAAM,EAAE,OAAO,CA0BxB,CAAC;AAEF,eAAO,MAAM,YAAY,UAChB,OAAO,MAAM,EAAE,OAAO,CAAC,KAC7B,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAM5B,CAAC;AAGF,eAAO,MAAM,QAAQ;4BApIiB,MAAM,KAAG,MAAM;gCAYX,MAAM,KAAG,MAAM;uBAkBxB,MAAM,KAAG,MAAM;2BAqBX,OAAO,iCAA4B,OAAO;0BAwCxE,OAAO,MAAM,EAAE,OAAO,CAAC,iCAE3B,OAAO,MAAM,EAAE,OAAO,CAAC;0BA6BjB,OAAO,MAAM,EAAE,OAAO,CAAC,KAC7B,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;CAgBrC,CAAC"}
|
|
@@ -1,39 +1,28 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type SocialProvider, type New_ConnectorType, type ConnectorType, type ChainNamespace } from '@reown/appkit-common-react-native';
|
|
1
|
+
import { type OnRampCountry, type OnRampFiatCurrency, type OnRampFiatLimit, type OnRampServiceProvider, type OnRampCountryDefaults, type WcWallet, type ConnectorType, type ChainNamespace, type WalletDeepLink } from '@reown/appkit-common-react-native';
|
|
3
2
|
export declare const StorageUtil: {
|
|
4
|
-
setWalletConnectDeepLink({ href, name }:
|
|
5
|
-
|
|
6
|
-
name: string;
|
|
7
|
-
}): void;
|
|
8
|
-
getWalletConnectDeepLink(): Promise<any>;
|
|
3
|
+
setWalletConnectDeepLink({ href, name }: WalletDeepLink): void;
|
|
4
|
+
getWalletConnectDeepLink(): Promise<WalletDeepLink | undefined>;
|
|
9
5
|
removeWalletConnectDeepLink(): Promise<void>;
|
|
10
6
|
addRecentWallet(wallet: WcWallet): Promise<WcWallet[] | undefined>;
|
|
11
7
|
setRecentWallets(wallets: WcWallet[]): Promise<void>;
|
|
12
8
|
getRecentWallets(): Promise<WcWallet[]>;
|
|
13
|
-
setConnectedConnector(connectorType: ConnectorType): Promise<void>;
|
|
14
|
-
getConnectedConnector(): Promise<ConnectorType | undefined>;
|
|
15
|
-
removeConnectedConnector(): Promise<void>;
|
|
16
9
|
setConnectedConnectors({ type, namespaces }: {
|
|
17
|
-
type:
|
|
10
|
+
type: ConnectorType;
|
|
18
11
|
namespaces: string[];
|
|
19
12
|
}): Promise<void>;
|
|
20
13
|
getConnectedConnectors(): Promise<{
|
|
21
|
-
type:
|
|
14
|
+
type: ConnectorType;
|
|
22
15
|
namespaces: string[];
|
|
23
16
|
}[]>;
|
|
24
|
-
removeConnectedConnectors(type:
|
|
25
|
-
setConnectedWalletImageUrl(url: string): Promise<void>;
|
|
26
|
-
getConnectedWalletImageUrl(): Promise<string | null | undefined>;
|
|
27
|
-
removeConnectedWalletImageUrl(): Promise<void>;
|
|
28
|
-
setConnectedSocialProvider(provider: SocialProvider): Promise<void>;
|
|
29
|
-
getConnectedSocialProvider(): Promise<any>;
|
|
30
|
-
removeConnectedSocialProvider(): Promise<void>;
|
|
17
|
+
removeConnectedConnectors(type: ConnectorType): Promise<void>;
|
|
31
18
|
setOnRampPreferredCountry(country: OnRampCountry): Promise<void>;
|
|
32
19
|
getOnRampPreferredCountry(): Promise<OnRampCountry | undefined>;
|
|
33
20
|
setOnRampPreferredFiatCurrency(currency: OnRampFiatCurrency): Promise<void>;
|
|
34
21
|
getOnRampPreferredFiatCurrency(): Promise<OnRampFiatCurrency | undefined>;
|
|
35
22
|
setOnRampCountries(countries: OnRampCountry[]): Promise<void>;
|
|
36
23
|
getOnRampCountries(): Promise<OnRampCountry[]>;
|
|
24
|
+
setOnRampCountriesDefaults(countriesDefaults: OnRampCountryDefaults[]): Promise<void>;
|
|
25
|
+
getOnRampCountriesDefaults(): Promise<OnRampCountryDefaults[]>;
|
|
37
26
|
setOnRampServiceProviders(serviceProviders: OnRampServiceProvider[]): Promise<void>;
|
|
38
27
|
getOnRampServiceProviders(): Promise<OnRampServiceProvider[]>;
|
|
39
28
|
setOnRampFiatLimits(fiatLimits: OnRampFiatLimit[]): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/StorageUtil.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StorageUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/StorageUtil.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,QAAQ,EAEb,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,cAAc,EAEpB,MAAM,mCAAmC,CAAC;AAK3C,eAAO,MAAM,WAAW;6CACmB,cAAc;;;4BAkCzB,QAAQ;8BAuBN,QAAQ,EAAE;wBAQhB,QAAQ,QAAQ,EAAE,CAAC;;cAgBrC,aAAa;oBACP,MAAM,EAAE;;8BAiBU,QAAQ;QAAE,IAAI,EAAE,aAAa,CAAC;QAAC,UAAU,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;oCAclD,aAAa;uCAaV,aAAa;;6CAyBP,kBAAkB;;kCAyB7B,aAAa,EAAE;;kDAsBC,qBAAqB,EAAE;;gDAsCzB,qBAAqB,EAAE;;oCAsCnC,eAAe,EAAE;;4CAsCT,kBAAkB,EAAE;;mCAsC7B,cAAc;;;CAmCpD,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Balance, BlockchainApiSwapAllowanceRequest, SwapTokenWithBalance } from '@reown/appkit-common-react-native';
|
|
2
2
|
export declare const SwapApiUtil: {
|
|
3
3
|
getTokenList(): Promise<SwapTokenWithBalance[]>;
|
|
4
4
|
fetchSwapAllowance({ tokenAddress, userAddress, sourceTokenAmount, sourceTokenDecimals }: Pick<BlockchainApiSwapAllowanceRequest, "tokenAddress" | "userAddress"> & {
|
|
5
5
|
sourceTokenAmount: string;
|
|
6
6
|
sourceTokenDecimals: number;
|
|
7
7
|
}): Promise<boolean>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
fetchGasPrice(): Promise<import("./TypeUtil").BlockchainApiGasPriceResponse | null | undefined>;
|
|
8
|
+
mapBalancesToSwapTokens(balances?: Balance[]): SwapTokenWithBalance[];
|
|
9
|
+
fetchGasPrice(): Promise<import("@reown/appkit-common-react-native").BlockchainApiGasPriceResponse | null | undefined>;
|
|
11
10
|
};
|
|
12
11
|
//# sourceMappingURL=SwapApiUtil.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapApiUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/SwapApiUtil.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SwapApiUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/SwapApiUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EAEP,iCAAiC,EACjC,oBAAoB,EACrB,MAAM,mCAAmC,CAAC;AAM3C,eAAO,MAAM,WAAW;;;2BAgCD,MAAM;6BACJ,MAAM;;uCAqBM,OAAO,EAAE;;CAmC7C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type SwapTokenWithBalance } from '@reown/appkit-common-react-native';
|
|
2
2
|
export declare const SwapCalculationUtil: {
|
|
3
3
|
getGasPriceInEther(gas: bigint, gasPrice: bigint): number;
|
|
4
4
|
getGasPriceInUSD(networkPrice: string, gas: bigint, gasPrice: bigint): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapCalculationUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/SwapCalculationUtil.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SwapCalculationUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/SwapCalculationUtil.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAG1F,eAAO,MAAM,mBAAmB;4BACN,MAAM,YAAY,MAAM;mCAOjB,MAAM,OAAO,MAAM,YAAY,MAAM;;2BAc/C,MAAM;+BACF,MAAM;2BACV,MAAM;uBACV,MAAM;;6BASE,MAAM,iBAAiB,MAAM;sCAOpB,MAAM;2CAOnB,MAAM,yBACF,MAAM;0DASuB,MAAM,iBAAiB,MAAM,GAAG,SAAS;wDAW1E,MAAM,sBACL,MAAM,WACjB,oBAAoB,EAAE,GAAG,SAAS;;qBAmB9B,oBAAoB,GAAG,SAAS;iBACpC,oBAAoB,GAAG,SAAS;0BACvB,MAAM;sBACV,MAAM;2BACD,MAAM;;CA6C5B,CAAC"}
|