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