@reown/appkit-core-react-native 2.0.0-alpha.0 → 2.0.0-alpha.2
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 +16 -5
- package/lib/commonjs/controllers/ApiController.js.map +1 -1
- package/lib/commonjs/controllers/AssetController.js.map +1 -1
- package/lib/commonjs/controllers/BlockchainApiController.js +103 -111
- package/lib/commonjs/controllers/BlockchainApiController.js.map +1 -1
- package/lib/commonjs/controllers/ConnectionController.js +1 -10
- package/lib/commonjs/controllers/ConnectionController.js.map +1 -1
- package/lib/commonjs/controllers/ConnectionsController.js +313 -52
- package/lib/commonjs/controllers/ConnectionsController.js.map +1 -1
- package/lib/commonjs/controllers/EnsController.js +4 -4
- package/lib/commonjs/controllers/EnsController.js.map +1 -1
- package/lib/commonjs/controllers/EventsController.js +4 -4
- package/lib/commonjs/controllers/EventsController.js.map +1 -1
- package/lib/commonjs/controllers/ModalController.js +6 -7
- package/lib/commonjs/controllers/ModalController.js.map +1 -1
- package/lib/commonjs/controllers/OnRampController.js +117 -53
- package/lib/commonjs/controllers/OnRampController.js.map +1 -1
- package/lib/commonjs/controllers/OptionsController.js +14 -0
- package/lib/commonjs/controllers/OptionsController.js.map +1 -1
- package/lib/commonjs/controllers/PublicStateController.js.map +1 -1
- package/lib/commonjs/controllers/RouterController.js +1 -22
- package/lib/commonjs/controllers/RouterController.js.map +1 -1
- package/lib/commonjs/controllers/SendController.js +101 -101
- 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 +140 -147
- package/lib/commonjs/controllers/SwapController.js.map +1 -1
- package/lib/commonjs/controllers/ThemeController.js.map +1 -1
- package/lib/commonjs/controllers/TransactionsController.js +23 -19
- package/lib/commonjs/controllers/TransactionsController.js.map +1 -1
- package/lib/commonjs/index.js +0 -35
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/utils/ApiUtil.js.map +1 -1
- package/lib/commonjs/utils/AssetUtil.js +3 -14
- package/lib/commonjs/utils/AssetUtil.js.map +1 -1
- package/lib/commonjs/utils/ConstantsUtil.js +122 -426
- package/lib/commonjs/utils/ConstantsUtil.js.map +1 -1
- package/lib/commonjs/utils/CoreHelperUtil.js +13 -8
- package/lib/commonjs/utils/CoreHelperUtil.js.map +1 -1
- package/lib/commonjs/utils/EventUtil.js.map +1 -1
- package/lib/commonjs/utils/FetchUtil.js +34 -10
- package/lib/commonjs/utils/FetchUtil.js.map +1 -1
- package/lib/commonjs/utils/RouterUtil.js.map +1 -1
- package/lib/commonjs/utils/StorageUtil.js +86 -92
- package/lib/commonjs/utils/StorageUtil.js.map +1 -1
- package/lib/commonjs/utils/SwapApiUtil.js +11 -22
- package/lib/commonjs/utils/SwapApiUtil.js.map +1 -1
- package/lib/commonjs/utils/SwapCalculationUtil.js.map +1 -1
- package/lib/commonjs/utils/TypeUtil.js +25 -0
- package/lib/commonjs/utils/TypeUtil.js.map +1 -1
- package/lib/module/controllers/ApiController.js +18 -6
- package/lib/module/controllers/ApiController.js.map +1 -1
- package/lib/module/controllers/AssetController.js +2 -0
- package/lib/module/controllers/AssetController.js.map +1 -1
- package/lib/module/controllers/BlockchainApiController.js +104 -110
- package/lib/module/controllers/BlockchainApiController.js.map +1 -1
- package/lib/module/controllers/ConnectionController.js +3 -10
- package/lib/module/controllers/ConnectionController.js.map +1 -1
- package/lib/module/controllers/ConnectionsController.js +314 -51
- package/lib/module/controllers/ConnectionsController.js.map +1 -1
- package/lib/module/controllers/EnsController.js +4 -2
- package/lib/module/controllers/EnsController.js.map +1 -1
- package/lib/module/controllers/EventsController.js +3 -1
- package/lib/module/controllers/EventsController.js.map +1 -1
- package/lib/module/controllers/ModalController.js +8 -7
- package/lib/module/controllers/ModalController.js.map +1 -1
- package/lib/module/controllers/OnRampController.js +118 -52
- package/lib/module/controllers/OnRampController.js.map +1 -1
- package/lib/module/controllers/OptionsController.js +16 -0
- 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 +3 -22
- package/lib/module/controllers/RouterController.js.map +1 -1
- package/lib/module/controllers/SendController.js +100 -98
- 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 +142 -147
- package/lib/module/controllers/SwapController.js.map +1 -1
- package/lib/module/controllers/ThemeController.js +2 -0
- package/lib/module/controllers/ThemeController.js.map +1 -1
- package/lib/module/controllers/TransactionsController.js +23 -17
- package/lib/module/controllers/TransactionsController.js.map +1 -1
- package/lib/module/index.js +2 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/ApiUtil.js +2 -0
- package/lib/module/utils/ApiUtil.js.map +1 -1
- package/lib/module/utils/AssetUtil.js +5 -14
- package/lib/module/utils/AssetUtil.js.map +1 -1
- package/lib/module/utils/ConstantsUtil.js +124 -426
- package/lib/module/utils/ConstantsUtil.js.map +1 -1
- package/lib/module/utils/CoreHelperUtil.js +14 -6
- 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 +36 -10
- package/lib/module/utils/FetchUtil.js.map +1 -1
- package/lib/module/utils/RouterUtil.js +2 -0
- package/lib/module/utils/RouterUtil.js.map +1 -1
- package/lib/module/utils/StorageUtil.js +89 -91
- package/lib/module/utils/StorageUtil.js.map +1 -1
- package/lib/module/utils/SwapApiUtil.js +13 -22
- package/lib/module/utils/SwapApiUtil.js.map +1 -1
- package/lib/module/utils/SwapCalculationUtil.js +2 -0
- package/lib/module/utils/SwapCalculationUtil.js.map +1 -1
- package/lib/module/utils/TypeUtil.js +25 -1
- package/lib/module/utils/TypeUtil.js.map +1 -1
- package/lib/typescript/controllers/ApiController.d.ts +2 -1
- package/lib/typescript/controllers/ApiController.d.ts.map +1 -1
- package/lib/typescript/controllers/BlockchainApiController.d.ts +20 -13
- package/lib/typescript/controllers/BlockchainApiController.d.ts.map +1 -1
- package/lib/typescript/controllers/ConnectionController.d.ts +3 -16
- package/lib/typescript/controllers/ConnectionController.d.ts.map +1 -1
- package/lib/typescript/controllers/ConnectionsController.d.ts +26 -22
- package/lib/typescript/controllers/ConnectionsController.d.ts.map +1 -1
- 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 +3 -2
- package/lib/typescript/controllers/OnRampController.d.ts.map +1 -1
- package/lib/typescript/controllers/OptionsController.d.ts +7 -2
- package/lib/typescript/controllers/OptionsController.d.ts.map +1 -1
- package/lib/typescript/controllers/RouterController.d.ts +4 -17
- 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 +12 -11
- package/lib/typescript/controllers/SwapController.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/index.d.ts +0 -5
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/utils/AssetUtil.d.ts +2 -3
- package/lib/typescript/utils/AssetUtil.d.ts.map +1 -1
- package/lib/typescript/utils/ConstantsUtil.d.ts +7 -414
- package/lib/typescript/utils/ConstantsUtil.d.ts.map +1 -1
- package/lib/typescript/utils/CoreHelperUtil.d.ts +5 -4
- package/lib/typescript/utils/CoreHelperUtil.d.ts.map +1 -1
- package/lib/typescript/utils/FetchUtil.d.ts.map +1 -1
- package/lib/typescript/utils/StorageUtil.d.ts +11 -15
- package/lib/typescript/utils/StorageUtil.d.ts.map +1 -1
- package/lib/typescript/utils/SwapApiUtil.d.ts +3 -3
- package/lib/typescript/utils/SwapApiUtil.d.ts.map +1 -1
- package/lib/typescript/utils/TypeUtil.d.ts +54 -177
- package/lib/typescript/utils/TypeUtil.d.ts.map +1 -1
- package/package.json +9 -23
- package/src/controllers/ApiController.ts +17 -4
- package/src/controllers/BlockchainApiController.ts +74 -119
- package/src/controllers/ConnectionController.ts +5 -28
- package/src/controllers/ConnectionsController.ts +399 -92
- package/src/controllers/EnsController.ts +2 -2
- package/src/controllers/EventsController.ts +1 -1
- package/src/controllers/ModalController.ts +7 -9
- package/src/controllers/OnRampController.ts +178 -81
- package/src/controllers/OptionsController.ts +22 -9
- package/src/controllers/RouterController.ts +4 -54
- package/src/controllers/SendController.ts +124 -113
- package/src/controllers/SnackController.ts +31 -5
- package/src/controllers/SwapController.ts +165 -181
- package/src/controllers/TransactionsController.ts +24 -18
- package/src/index.ts +0 -15
- package/src/utils/AssetUtil.ts +4 -18
- package/src/utils/ConstantsUtil.ts +125 -428
- package/src/utils/CoreHelperUtil.ts +30 -8
- package/src/utils/FetchUtil.ts +37 -10
- package/src/utils/StorageUtil.ts +165 -106
- package/src/utils/SwapApiUtil.ts +25 -42
- package/src/utils/TypeUtil.ts +64 -171
- package/lib/commonjs/controllers/AccountController.js +0 -93
- package/lib/commonjs/controllers/AccountController.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/module/controllers/AccountController.js +0 -88
- package/lib/module/controllers/AccountController.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/typescript/controllers/AccountController.d.ts +0 -33
- package/lib/typescript/controllers/AccountController.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/src/controllers/AccountController.ts +0 -128
- 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
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { WcWallet } from './TypeUtil';
|
|
2
2
|
export declare const AssetUtil: {
|
|
3
3
|
getWalletImage(wallet?: WcWallet): string | undefined;
|
|
4
|
-
|
|
5
|
-
getConnectorImage(connector?: Connector): string | undefined;
|
|
4
|
+
getConnectorImage(imageId?: string): string | undefined;
|
|
6
5
|
};
|
|
7
6
|
//# sourceMappingURL=AssetUtil.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssetUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/AssetUtil.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"AssetUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/AssetUtil.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAO,MAAM,SAAS;4BACI,QAAQ;gCAYJ,MAAM;CAOnC,CAAC"}
|
|
@@ -5,6 +5,7 @@ export declare const OnRampErrorType: {
|
|
|
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";
|
|
@@ -31,6 +32,7 @@ export declare const ConstantsUtil: {
|
|
|
31
32
|
readonly INVALID_AMOUNT: "INVALID_AMOUNT";
|
|
32
33
|
readonly INCOMPATIBLE_REQUEST: "INCOMPATIBLE_REQUEST";
|
|
33
34
|
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
35
|
+
readonly NO_VALID_QUOTES: "NO_VALID_QUOTES";
|
|
34
36
|
readonly FAILED_TO_LOAD: "FAILED_TO_LOAD";
|
|
35
37
|
readonly FAILED_TO_LOAD_COUNTRIES: "FAILED_TO_LOAD_COUNTRIES";
|
|
36
38
|
readonly FAILED_TO_LOAD_PROVIDERS: "FAILED_TO_LOAD_PROVIDERS";
|
|
@@ -41,262 +43,12 @@ export declare const ConstantsUtil: {
|
|
|
41
43
|
};
|
|
42
44
|
SWAP_SUGGESTED_TOKENS: string[];
|
|
43
45
|
SWAP_POPULAR_TOKENS: string[];
|
|
46
|
+
ACTIVITY_SUPPORTED_CHAINS: string[];
|
|
44
47
|
SWAP_SUPPORTED_NETWORKS: string[];
|
|
48
|
+
SEND_SUPPORTED_NAMESPACES: string[];
|
|
49
|
+
ONRAMP_SUPPORTED_NAMESPACES: string[];
|
|
45
50
|
CONVERT_SLIPPAGE_TOLERANCE: number;
|
|
46
51
|
DEFAULT_FEATURES: Features;
|
|
47
|
-
COUNTRY_CURRENCIES: {
|
|
48
|
-
AD: string;
|
|
49
|
-
AE: string;
|
|
50
|
-
AF: string;
|
|
51
|
-
AG: string;
|
|
52
|
-
AI: string;
|
|
53
|
-
AL: string;
|
|
54
|
-
AM: string;
|
|
55
|
-
AN: string;
|
|
56
|
-
AO: string;
|
|
57
|
-
AQ: string;
|
|
58
|
-
AR: string;
|
|
59
|
-
AS: string;
|
|
60
|
-
AT: string;
|
|
61
|
-
AU: string;
|
|
62
|
-
AW: string;
|
|
63
|
-
AX: string;
|
|
64
|
-
AZ: string;
|
|
65
|
-
BA: string;
|
|
66
|
-
BB: string;
|
|
67
|
-
BD: string;
|
|
68
|
-
BE: string;
|
|
69
|
-
BF: string;
|
|
70
|
-
BG: string;
|
|
71
|
-
BH: string;
|
|
72
|
-
BI: string;
|
|
73
|
-
BJ: string;
|
|
74
|
-
BL: string;
|
|
75
|
-
BM: string;
|
|
76
|
-
BN: string;
|
|
77
|
-
BO: string;
|
|
78
|
-
BQ: string;
|
|
79
|
-
BR: string;
|
|
80
|
-
BS: string;
|
|
81
|
-
BT: string;
|
|
82
|
-
BV: string;
|
|
83
|
-
BW: string;
|
|
84
|
-
BY: string;
|
|
85
|
-
BZ: string;
|
|
86
|
-
CA: string;
|
|
87
|
-
CC: string;
|
|
88
|
-
CD: string;
|
|
89
|
-
CF: string;
|
|
90
|
-
CG: string;
|
|
91
|
-
CH: string;
|
|
92
|
-
CI: string;
|
|
93
|
-
CK: string;
|
|
94
|
-
CL: string;
|
|
95
|
-
CM: string;
|
|
96
|
-
CN: string;
|
|
97
|
-
CO: string;
|
|
98
|
-
CR: string;
|
|
99
|
-
CU: string;
|
|
100
|
-
CV: string;
|
|
101
|
-
CW: string;
|
|
102
|
-
CX: string;
|
|
103
|
-
CY: string;
|
|
104
|
-
CZ: string;
|
|
105
|
-
DE: string;
|
|
106
|
-
DJ: string;
|
|
107
|
-
DK: string;
|
|
108
|
-
DM: string;
|
|
109
|
-
DO: string;
|
|
110
|
-
DZ: string;
|
|
111
|
-
EC: string;
|
|
112
|
-
EE: string;
|
|
113
|
-
EG: string;
|
|
114
|
-
EH: string;
|
|
115
|
-
ER: string;
|
|
116
|
-
ES: string;
|
|
117
|
-
ET: string;
|
|
118
|
-
FI: string;
|
|
119
|
-
FJ: string;
|
|
120
|
-
FK: string;
|
|
121
|
-
FM: string;
|
|
122
|
-
FO: string;
|
|
123
|
-
FR: string;
|
|
124
|
-
GA: string;
|
|
125
|
-
GB: string;
|
|
126
|
-
GD: string;
|
|
127
|
-
GE: string;
|
|
128
|
-
GF: string;
|
|
129
|
-
GG: string;
|
|
130
|
-
GH: string;
|
|
131
|
-
GI: string;
|
|
132
|
-
GL: string;
|
|
133
|
-
GM: string;
|
|
134
|
-
GN: string;
|
|
135
|
-
GP: string;
|
|
136
|
-
GQ: string;
|
|
137
|
-
GR: string;
|
|
138
|
-
GS: string;
|
|
139
|
-
GT: string;
|
|
140
|
-
GU: string;
|
|
141
|
-
GW: string;
|
|
142
|
-
GY: string;
|
|
143
|
-
HK: string;
|
|
144
|
-
HM: string;
|
|
145
|
-
HN: string;
|
|
146
|
-
HR: string;
|
|
147
|
-
HT: string;
|
|
148
|
-
HU: string;
|
|
149
|
-
ID: string;
|
|
150
|
-
IE: string;
|
|
151
|
-
IL: string;
|
|
152
|
-
IM: string;
|
|
153
|
-
IN: string;
|
|
154
|
-
IO: string;
|
|
155
|
-
IQ: string;
|
|
156
|
-
IR: string;
|
|
157
|
-
IS: string;
|
|
158
|
-
IT: string;
|
|
159
|
-
JE: string;
|
|
160
|
-
JM: string;
|
|
161
|
-
JO: string;
|
|
162
|
-
JP: string;
|
|
163
|
-
KE: string;
|
|
164
|
-
KG: string;
|
|
165
|
-
KH: string;
|
|
166
|
-
KI: string;
|
|
167
|
-
KM: string;
|
|
168
|
-
KN: string;
|
|
169
|
-
KP: string;
|
|
170
|
-
KR: string;
|
|
171
|
-
KW: string;
|
|
172
|
-
KY: string;
|
|
173
|
-
KZ: string;
|
|
174
|
-
LA: string;
|
|
175
|
-
LB: string;
|
|
176
|
-
LC: string;
|
|
177
|
-
LI: string;
|
|
178
|
-
LK: string;
|
|
179
|
-
LR: string;
|
|
180
|
-
LS: string;
|
|
181
|
-
LT: string;
|
|
182
|
-
LU: string;
|
|
183
|
-
LV: string;
|
|
184
|
-
LY: string;
|
|
185
|
-
MA: string;
|
|
186
|
-
MC: string;
|
|
187
|
-
MD: string;
|
|
188
|
-
ME: string;
|
|
189
|
-
MF: string;
|
|
190
|
-
MG: string;
|
|
191
|
-
MH: string;
|
|
192
|
-
MK: string;
|
|
193
|
-
ML: string;
|
|
194
|
-
MM: string;
|
|
195
|
-
MN: string;
|
|
196
|
-
MO: string;
|
|
197
|
-
MP: string;
|
|
198
|
-
MQ: string;
|
|
199
|
-
MR: string;
|
|
200
|
-
MS: string;
|
|
201
|
-
MT: string;
|
|
202
|
-
MU: string;
|
|
203
|
-
MV: string;
|
|
204
|
-
MW: string;
|
|
205
|
-
MX: string;
|
|
206
|
-
MY: string;
|
|
207
|
-
MZ: string;
|
|
208
|
-
NA: string;
|
|
209
|
-
NC: string;
|
|
210
|
-
NE: string;
|
|
211
|
-
NF: string;
|
|
212
|
-
NG: string;
|
|
213
|
-
NI: string;
|
|
214
|
-
NL: string;
|
|
215
|
-
NO: string;
|
|
216
|
-
NP: string;
|
|
217
|
-
NR: string;
|
|
218
|
-
NU: string;
|
|
219
|
-
NZ: string;
|
|
220
|
-
OM: string;
|
|
221
|
-
PA: string;
|
|
222
|
-
PE: string;
|
|
223
|
-
PF: string;
|
|
224
|
-
PG: string;
|
|
225
|
-
PH: string;
|
|
226
|
-
PK: string;
|
|
227
|
-
PL: string;
|
|
228
|
-
PM: string;
|
|
229
|
-
PN: string;
|
|
230
|
-
PR: string;
|
|
231
|
-
PS: string;
|
|
232
|
-
PT: string;
|
|
233
|
-
PW: string;
|
|
234
|
-
PY: string;
|
|
235
|
-
QA: string;
|
|
236
|
-
RE: string;
|
|
237
|
-
RO: string;
|
|
238
|
-
RS: string;
|
|
239
|
-
RU: string;
|
|
240
|
-
RW: string;
|
|
241
|
-
SA: string;
|
|
242
|
-
SB: string;
|
|
243
|
-
SC: string;
|
|
244
|
-
SD: string;
|
|
245
|
-
SE: string;
|
|
246
|
-
SG: string;
|
|
247
|
-
SH: string;
|
|
248
|
-
SI: string;
|
|
249
|
-
SJ: string;
|
|
250
|
-
SK: string;
|
|
251
|
-
SL: string;
|
|
252
|
-
SM: string;
|
|
253
|
-
SN: string;
|
|
254
|
-
SO: string;
|
|
255
|
-
SR: string;
|
|
256
|
-
SS: string;
|
|
257
|
-
ST: string;
|
|
258
|
-
SV: string;
|
|
259
|
-
SX: string;
|
|
260
|
-
SY: string;
|
|
261
|
-
SZ: string;
|
|
262
|
-
TC: string;
|
|
263
|
-
TD: string;
|
|
264
|
-
TF: string;
|
|
265
|
-
TG: string;
|
|
266
|
-
TH: string;
|
|
267
|
-
TJ: string;
|
|
268
|
-
TK: string;
|
|
269
|
-
TL: string;
|
|
270
|
-
TM: string;
|
|
271
|
-
TN: string;
|
|
272
|
-
TO: string;
|
|
273
|
-
TR: string;
|
|
274
|
-
TT: string;
|
|
275
|
-
TV: string;
|
|
276
|
-
TW: string;
|
|
277
|
-
TZ: string;
|
|
278
|
-
UA: string;
|
|
279
|
-
UG: string;
|
|
280
|
-
UM: string;
|
|
281
|
-
US: string;
|
|
282
|
-
UY: string;
|
|
283
|
-
UZ: string;
|
|
284
|
-
VA: string;
|
|
285
|
-
VC: string;
|
|
286
|
-
VE: string;
|
|
287
|
-
VG: string;
|
|
288
|
-
VI: string;
|
|
289
|
-
VN: string;
|
|
290
|
-
VU: string;
|
|
291
|
-
WF: string;
|
|
292
|
-
WS: string;
|
|
293
|
-
XK: string;
|
|
294
|
-
YE: string;
|
|
295
|
-
YT: string;
|
|
296
|
-
ZA: string;
|
|
297
|
-
ZM: string;
|
|
298
|
-
ZW: string;
|
|
299
|
-
};
|
|
300
52
|
NETWORK_DEFAULT_CURRENCIES: {
|
|
301
53
|
'eip155:1': string;
|
|
302
54
|
'eip155:56': string;
|
|
@@ -321,167 +73,8 @@ export declare const ConstantsUtil: {
|
|
|
321
73
|
'eip155:59144': string;
|
|
322
74
|
'eip155:1101': string;
|
|
323
75
|
'eip155:196': string;
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
AE: string[];
|
|
327
|
-
AR: string[];
|
|
328
|
-
AT: string[];
|
|
329
|
-
AU: string[];
|
|
330
|
-
BD: string[];
|
|
331
|
-
BE: string[];
|
|
332
|
-
BG: string[];
|
|
333
|
-
BR: string[];
|
|
334
|
-
CA: string[];
|
|
335
|
-
CH: string[];
|
|
336
|
-
CL: string[];
|
|
337
|
-
CN: string[];
|
|
338
|
-
CO: string[];
|
|
339
|
-
CY: string[];
|
|
340
|
-
CZ: string[];
|
|
341
|
-
DE: string[];
|
|
342
|
-
DK: string[];
|
|
343
|
-
EC: string[];
|
|
344
|
-
EE: string[];
|
|
345
|
-
ES: string[];
|
|
346
|
-
FI: string[];
|
|
347
|
-
FR: string[];
|
|
348
|
-
GB: string[];
|
|
349
|
-
GR: string[];
|
|
350
|
-
HK: string[];
|
|
351
|
-
HR: string[];
|
|
352
|
-
HU: string[];
|
|
353
|
-
ID: string[];
|
|
354
|
-
IE: string[];
|
|
355
|
-
IL: string[];
|
|
356
|
-
IN: string[];
|
|
357
|
-
IT: string[];
|
|
358
|
-
JP: string[];
|
|
359
|
-
KE: string[];
|
|
360
|
-
KR: string[];
|
|
361
|
-
LT: string[];
|
|
362
|
-
LV: string[];
|
|
363
|
-
MA: string[];
|
|
364
|
-
MX: string[];
|
|
365
|
-
MY: string[];
|
|
366
|
-
NG: string[];
|
|
367
|
-
NL: string[];
|
|
368
|
-
NO: string[];
|
|
369
|
-
NP: string[];
|
|
370
|
-
NZ: string[];
|
|
371
|
-
PH: string[];
|
|
372
|
-
PK: string[];
|
|
373
|
-
PL: string[];
|
|
374
|
-
PR: string[];
|
|
375
|
-
PT: string[];
|
|
376
|
-
RO: string[];
|
|
377
|
-
SA: string[];
|
|
378
|
-
SE: string[];
|
|
379
|
-
SG: string[];
|
|
380
|
-
SI: string[];
|
|
381
|
-
SK: string[];
|
|
382
|
-
TH: string[];
|
|
383
|
-
TR: string[];
|
|
384
|
-
TW: string[];
|
|
385
|
-
UA: string[];
|
|
386
|
-
US: string[];
|
|
387
|
-
VN: string[];
|
|
388
|
-
ZA: string[];
|
|
389
|
-
};
|
|
390
|
-
CURRENCY_SUGGESTED_VALUES: {
|
|
391
|
-
AED: number[];
|
|
392
|
-
AMD: number[];
|
|
393
|
-
ANG: number[];
|
|
394
|
-
AOA: number[];
|
|
395
|
-
ARS: number[];
|
|
396
|
-
AUD: number[];
|
|
397
|
-
AZN: number[];
|
|
398
|
-
BDT: number[];
|
|
399
|
-
BGN: number[];
|
|
400
|
-
BHD: number[];
|
|
401
|
-
BOB: number[];
|
|
402
|
-
BRL: number[];
|
|
403
|
-
BWP: number[];
|
|
404
|
-
CAD: number[];
|
|
405
|
-
CHF: number[];
|
|
406
|
-
CLP: number[];
|
|
407
|
-
CNY: number[];
|
|
408
|
-
COP: number[];
|
|
409
|
-
CRC: number[];
|
|
410
|
-
CZK: number[];
|
|
411
|
-
DKK: number[];
|
|
412
|
-
DOP: number[];
|
|
413
|
-
DZD: number[];
|
|
414
|
-
EGP: number[];
|
|
415
|
-
EUR: number[];
|
|
416
|
-
GBP: number[];
|
|
417
|
-
GEL: number[];
|
|
418
|
-
GHS: number[];
|
|
419
|
-
GTQ: number[];
|
|
420
|
-
HKD: number[];
|
|
421
|
-
HNL: number[];
|
|
422
|
-
HRK: number[];
|
|
423
|
-
HTG: number[];
|
|
424
|
-
HUF: number[];
|
|
425
|
-
IDR: number[];
|
|
426
|
-
ILS: number[];
|
|
427
|
-
INR: number[];
|
|
428
|
-
IQD: number[];
|
|
429
|
-
ISK: number[];
|
|
430
|
-
JOD: number[];
|
|
431
|
-
JPY: number[];
|
|
432
|
-
KES: number[];
|
|
433
|
-
KGS: number[];
|
|
434
|
-
KHR: number[];
|
|
435
|
-
KRW: number[];
|
|
436
|
-
KWD: number[];
|
|
437
|
-
KZT: number[];
|
|
438
|
-
LAK: number[];
|
|
439
|
-
LBP: number[];
|
|
440
|
-
LKR: number[];
|
|
441
|
-
MAD: number[];
|
|
442
|
-
MDL: number[];
|
|
443
|
-
MMK: number[];
|
|
444
|
-
MNT: number[];
|
|
445
|
-
MWK: number[];
|
|
446
|
-
MXN: number[];
|
|
447
|
-
MYR: number[];
|
|
448
|
-
NGN: number[];
|
|
449
|
-
NIO: number[];
|
|
450
|
-
NOK: number[];
|
|
451
|
-
NPR: number[];
|
|
452
|
-
NZD: number[];
|
|
453
|
-
OMR: number[];
|
|
454
|
-
PAB: number[];
|
|
455
|
-
PEN: number[];
|
|
456
|
-
PGK: number[];
|
|
457
|
-
PHP: number[];
|
|
458
|
-
PKR: number[];
|
|
459
|
-
PLN: number[];
|
|
460
|
-
PYG: number[];
|
|
461
|
-
QAR: number[];
|
|
462
|
-
RON: number[];
|
|
463
|
-
RSD: number[];
|
|
464
|
-
RWF: number[];
|
|
465
|
-
SAR: number[];
|
|
466
|
-
SEK: number[];
|
|
467
|
-
SGD: number[];
|
|
468
|
-
THB: number[];
|
|
469
|
-
TJS: number[];
|
|
470
|
-
TND: number[];
|
|
471
|
-
TRY: number[];
|
|
472
|
-
TWD: number[];
|
|
473
|
-
TZS: number[];
|
|
474
|
-
UAH: number[];
|
|
475
|
-
UGX: number[];
|
|
476
|
-
USD: number[];
|
|
477
|
-
UYU: number[];
|
|
478
|
-
UZS: number[];
|
|
479
|
-
VND: number[];
|
|
480
|
-
XAF: number[];
|
|
481
|
-
XCD: number[];
|
|
482
|
-
XOF: number[];
|
|
483
|
-
ZAR: number[];
|
|
484
|
-
ZMW: number[];
|
|
76
|
+
'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp': string;
|
|
77
|
+
'bip122:000000000019d6689c085ae165831e93': string;
|
|
485
78
|
};
|
|
486
79
|
};
|
|
487
80
|
//# sourceMappingURL=ConstantsUtil.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConstantsUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/ConstantsUtil.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"ConstantsUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/ConstantsUtil.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAS3C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;CAclB,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0RzB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Balance, type CaipAddress, type CaipNetwork } from '@reown/appkit-common-react-native';
|
|
2
|
-
import type { DataWallet,
|
|
1
|
+
import { BlockchainAdapter, type Balance, type CaipAddress, type CaipNetwork, type ChainNamespace, type SocialProvider, type LinkingRecord } from '@reown/appkit-common-react-native';
|
|
2
|
+
import type { DataWallet, SdkVersion } from './TypeUtil';
|
|
3
3
|
export declare const CoreHelperUtil: {
|
|
4
4
|
isPairingExpired(expiry?: number): boolean;
|
|
5
5
|
isAllowedRetry(lastRetry: number): boolean;
|
|
@@ -10,10 +10,10 @@ export declare const CoreHelperUtil: {
|
|
|
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;
|
|
@@ -37,5 +37,6 @@ 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;
|
|
40
41
|
};
|
|
41
42
|
//# 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,EACnB,MAAM,mCAAmC,CAAC;AAK3C,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA0BzD,eAAO,MAAM,cAAc;8BACC,MAAM;8BAIN,MAAM;;8BAQN,WAAW,GAAG,SAAS;iCAIpB,WAAW,GAAG,SAAS;uBAI3B,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;;;;;;;;sBAmFvD,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;CAa/E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FetchUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/FetchUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,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,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAgBtE,OAAO,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"FetchUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/FetchUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,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,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAgBtE,OAAO,CAAC,SAAS;YAsCH,eAAe;CA2B9B"}
|
|
@@ -1,32 +1,26 @@
|
|
|
1
|
-
import type { OnRampCountry, OnRampFiatCurrency, OnRampFiatLimit, OnRampServiceProvider, WcWallet } from './TypeUtil';
|
|
2
|
-
import { type SocialProvider, type
|
|
1
|
+
import type { OnRampCountry, OnRampFiatCurrency, OnRampFiatLimit, OnRampServiceProvider, OnRampCountryDefaults, WcWallet } from './TypeUtil';
|
|
2
|
+
import { type SocialProvider, type ConnectorType, type ChainNamespace, type WalletDeepLink } from '@reown/appkit-common-react-native';
|
|
3
3
|
export declare const StorageUtil: {
|
|
4
|
-
setWalletConnectDeepLink({ href, name }:
|
|
5
|
-
|
|
6
|
-
name: string;
|
|
7
|
-
}): void;
|
|
8
|
-
getWalletConnectDeepLink(): Promise<any>;
|
|
4
|
+
setWalletConnectDeepLink({ href, name }: WalletDeepLink): void;
|
|
5
|
+
getWalletConnectDeepLink(): Promise<WalletDeepLink | undefined>;
|
|
9
6
|
removeWalletConnectDeepLink(): Promise<void>;
|
|
10
7
|
addRecentWallet(wallet: WcWallet): Promise<WcWallet[] | undefined>;
|
|
11
8
|
setRecentWallets(wallets: WcWallet[]): Promise<void>;
|
|
12
9
|
getRecentWallets(): Promise<WcWallet[]>;
|
|
13
|
-
setConnectedConnector(connectorType: ConnectorType): Promise<void>;
|
|
14
|
-
getConnectedConnector(): Promise<ConnectorType | undefined>;
|
|
15
|
-
removeConnectedConnector(): Promise<void>;
|
|
16
10
|
setConnectedConnectors({ type, namespaces }: {
|
|
17
|
-
type:
|
|
11
|
+
type: ConnectorType;
|
|
18
12
|
namespaces: string[];
|
|
19
13
|
}): Promise<void>;
|
|
20
14
|
getConnectedConnectors(): Promise<{
|
|
21
|
-
type:
|
|
15
|
+
type: ConnectorType;
|
|
22
16
|
namespaces: string[];
|
|
23
17
|
}[]>;
|
|
24
|
-
removeConnectedConnectors(type:
|
|
18
|
+
removeConnectedConnectors(type: ConnectorType): Promise<void>;
|
|
25
19
|
setConnectedWalletImageUrl(url: string): Promise<void>;
|
|
26
|
-
getConnectedWalletImageUrl(): Promise<
|
|
20
|
+
getConnectedWalletImageUrl(): Promise<any>;
|
|
27
21
|
removeConnectedWalletImageUrl(): Promise<void>;
|
|
28
22
|
setConnectedSocialProvider(provider: SocialProvider): Promise<void>;
|
|
29
|
-
getConnectedSocialProvider(): Promise<
|
|
23
|
+
getConnectedSocialProvider(): Promise<SocialProvider | undefined>;
|
|
30
24
|
removeConnectedSocialProvider(): Promise<void>;
|
|
31
25
|
setOnRampPreferredCountry(country: OnRampCountry): Promise<void>;
|
|
32
26
|
getOnRampPreferredCountry(): Promise<OnRampCountry | undefined>;
|
|
@@ -34,6 +28,8 @@ export declare const StorageUtil: {
|
|
|
34
28
|
getOnRampPreferredFiatCurrency(): Promise<OnRampFiatCurrency | undefined>;
|
|
35
29
|
setOnRampCountries(countries: OnRampCountry[]): Promise<void>;
|
|
36
30
|
getOnRampCountries(): Promise<OnRampCountry[]>;
|
|
31
|
+
setOnRampCountriesDefaults(countriesDefaults: OnRampCountryDefaults[]): Promise<void>;
|
|
32
|
+
getOnRampCountriesDefaults(): Promise<OnRampCountryDefaults[]>;
|
|
37
33
|
setOnRampServiceProviders(serviceProviders: OnRampServiceProvider[]): Promise<void>;
|
|
38
34
|
getOnRampServiceProviders(): Promise<OnRampServiceProvider[]>;
|
|
39
35
|
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,KAAK,EACV,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,QAAQ,EACT,MAAM,YAAY,CAAC;AACpB,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,cAAc,EAEpB,MAAM,mCAAmC,CAAC;AAI3C,eAAO,MAAM,WAAW;6CACmB,cAAc;;;4BAkCzB,QAAQ;8BA0BN,QAAQ,EAAE;wBAWhB,QAAQ,QAAQ,EAAE,CAAC;;cAkBrC,aAAa;oBACP,MAAM,EAAE;;8BAiBU,QAAQ;QAAE,IAAI,EAAE,aAAa,CAAC;QAAC,UAAU,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;oCAclD,aAAa;oCAab,MAAM;;;yCAkCD,cAAc;kCAWrB,QAAQ,cAAc,GAAG,SAAS,CAAC;;uCAsB9B,aAAa;;6CAyBP,kBAAkB;;kCAyB7B,aAAa,EAAE;;kDAyBC,qBAAqB,EAAE;;gDAsCzB,qBAAqB,EAAE;;oCAuCnC,eAAe,EAAE;;4CAsCT,kBAAkB,EAAE;;mCAsC7B,cAAc;;;CAyCpD,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Balance } from '@reown/appkit-common-react-native';
|
|
2
|
+
import type { BlockchainApiSwapAllowanceRequest, SwapTokenWithBalance } from './TypeUtil';
|
|
2
3
|
export declare const SwapApiUtil: {
|
|
3
4
|
getTokenList(): Promise<SwapTokenWithBalance[]>;
|
|
4
5
|
fetchSwapAllowance({ tokenAddress, userAddress, sourceTokenAmount, sourceTokenDecimals }: Pick<BlockchainApiSwapAllowanceRequest, "tokenAddress" | "userAddress"> & {
|
|
5
6
|
sourceTokenAmount: string;
|
|
6
7
|
sourceTokenDecimals: number;
|
|
7
8
|
}): Promise<boolean>;
|
|
8
|
-
|
|
9
|
-
mapBalancesToSwapTokens(balances?: BlockchainApiBalanceResponse['balances']): SwapTokenWithBalance[];
|
|
9
|
+
mapBalancesToSwapTokens(balances?: Balance[]): SwapTokenWithBalance[];
|
|
10
10
|
fetchGasPrice(): Promise<import("./TypeUtil").BlockchainApiGasPriceResponse | null | undefined>;
|
|
11
11
|
};
|
|
12
12
|
//# 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,EAAE,OAAO,EAAiB,MAAM,mCAAmC,CAAC;AAGhF,OAAO,KAAK,EAAE,iCAAiC,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAI1F,eAAO,MAAM,WAAW;;;2BAgCD,MAAM;6BACJ,MAAM;;uCAqBM,OAAO,EAAE;;CAmC7C,CAAC"}
|