@metamask-previews/assets-controllers 56.0.0-preview-c7dcfd5a → 56.0.0-preview-9d7b1fa6
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/CHANGELOG.md +0 -5
- package/dist/DeFiPositionsController/DeFiPositionsController.cjs +79 -0
- package/dist/DeFiPositionsController/DeFiPositionsController.cjs.map +1 -0
- package/dist/DeFiPositionsController/DeFiPositionsController.d.cts +55 -0
- package/dist/DeFiPositionsController/DeFiPositionsController.d.cts.map +1 -0
- package/dist/DeFiPositionsController/DeFiPositionsController.d.mts +55 -0
- package/dist/DeFiPositionsController/DeFiPositionsController.d.mts.map +1 -0
- package/dist/DeFiPositionsController/DeFiPositionsController.mjs +74 -0
- package/dist/DeFiPositionsController/DeFiPositionsController.mjs.map +1 -0
- package/dist/DeFiPositionsController/fetch-positions.cjs +22 -0
- package/dist/DeFiPositionsController/fetch-positions.cjs.map +1 -0
- package/dist/DeFiPositionsController/fetch-positions.d.cts +59 -0
- package/dist/DeFiPositionsController/fetch-positions.d.cts.map +1 -0
- package/dist/DeFiPositionsController/fetch-positions.d.mts +59 -0
- package/dist/DeFiPositionsController/fetch-positions.d.mts.map +1 -0
- package/dist/DeFiPositionsController/fetch-positions.mjs +18 -0
- package/dist/DeFiPositionsController/fetch-positions.mjs.map +1 -0
- package/dist/DeFiPositionsController/group-positions.cjs +97 -0
- package/dist/DeFiPositionsController/group-positions.cjs.map +1 -0
- package/dist/DeFiPositionsController/group-positions.d.cts +36 -0
- package/dist/DeFiPositionsController/group-positions.d.cts.map +1 -0
- package/dist/DeFiPositionsController/group-positions.d.mts +36 -0
- package/dist/DeFiPositionsController/group-positions.d.mts.map +1 -0
- package/dist/DeFiPositionsController/group-positions.mjs +94 -0
- package/dist/DeFiPositionsController/group-positions.mjs.map +1 -0
- package/dist/DeFiPositionsController/mocks/mock-responses.cjs +600 -0
- package/dist/DeFiPositionsController/mocks/mock-responses.cjs.map +1 -0
- package/dist/DeFiPositionsController/mocks/mock-responses.d.cts +22 -0
- package/dist/DeFiPositionsController/mocks/mock-responses.d.cts.map +1 -0
- package/dist/DeFiPositionsController/mocks/mock-responses.d.mts +22 -0
- package/dist/DeFiPositionsController/mocks/mock-responses.d.mts.map +1 -0
- package/dist/DeFiPositionsController/mocks/mock-responses.mjs +597 -0
- package/dist/DeFiPositionsController/mocks/mock-responses.mjs.map +1 -0
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
@@ -0,0 +1,597 @@
|
|
1
|
+
/**
|
2
|
+
* Entries are from different chains
|
3
|
+
*/
|
4
|
+
export const MOCK_DEFI_RESPONSE_MULTI_CHAIN = [
|
5
|
+
{
|
6
|
+
protocolId: 'aave-v3',
|
7
|
+
name: 'Aave v3 AToken',
|
8
|
+
description: 'Aave v3 defi adapter for yield-generating token',
|
9
|
+
siteUrl: 'https://aave.com/',
|
10
|
+
iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',
|
11
|
+
positionType: 'supply',
|
12
|
+
chainId: 1,
|
13
|
+
productId: 'a-token',
|
14
|
+
chainName: 'ethereum',
|
15
|
+
metadata: {
|
16
|
+
groupPositions: true,
|
17
|
+
},
|
18
|
+
success: true,
|
19
|
+
tokens: [
|
20
|
+
{
|
21
|
+
address: '0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8',
|
22
|
+
name: 'Aave Ethereum WETH',
|
23
|
+
symbol: 'aEthWETH',
|
24
|
+
decimals: 18,
|
25
|
+
balanceRaw: '5000000000000000000',
|
26
|
+
balance: 5,
|
27
|
+
type: 'protocol',
|
28
|
+
tokens: [
|
29
|
+
{
|
30
|
+
address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
31
|
+
name: 'Wrapped Ether',
|
32
|
+
symbol: 'WETH',
|
33
|
+
decimals: 18,
|
34
|
+
type: 'underlying',
|
35
|
+
balanceRaw: '5000000000000000000',
|
36
|
+
balance: 5,
|
37
|
+
price: 1000,
|
38
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png',
|
39
|
+
},
|
40
|
+
],
|
41
|
+
},
|
42
|
+
],
|
43
|
+
},
|
44
|
+
{
|
45
|
+
protocolId: 'aave-v3',
|
46
|
+
name: 'Aave v3 AToken',
|
47
|
+
description: 'Aave v3 defi adapter for yield-generating token',
|
48
|
+
siteUrl: 'https://aave.com/',
|
49
|
+
iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',
|
50
|
+
positionType: 'supply',
|
51
|
+
chainId: 8453,
|
52
|
+
productId: 'a-token',
|
53
|
+
chainName: 'base',
|
54
|
+
metadata: {
|
55
|
+
groupPositions: true,
|
56
|
+
},
|
57
|
+
success: true,
|
58
|
+
tokens: [
|
59
|
+
{
|
60
|
+
address: '0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8',
|
61
|
+
name: 'Aave Ethereum WETH',
|
62
|
+
symbol: 'aEthWETH',
|
63
|
+
decimals: 18,
|
64
|
+
balanceRaw: '5000000000000000000',
|
65
|
+
balance: 5,
|
66
|
+
type: 'protocol',
|
67
|
+
tokens: [
|
68
|
+
{
|
69
|
+
address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
70
|
+
name: 'Wrapped Ether',
|
71
|
+
symbol: 'WETH',
|
72
|
+
decimals: 18,
|
73
|
+
type: 'underlying',
|
74
|
+
balanceRaw: '5000000000000000000',
|
75
|
+
balance: 5,
|
76
|
+
price: 1000,
|
77
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png',
|
78
|
+
},
|
79
|
+
],
|
80
|
+
},
|
81
|
+
],
|
82
|
+
},
|
83
|
+
];
|
84
|
+
/**
|
85
|
+
* The first entry is a failed entry
|
86
|
+
*/
|
87
|
+
export const MOCK_DEFI_RESPONSE_FAILED_ENTRY = [
|
88
|
+
{
|
89
|
+
protocolId: 'aave-v3',
|
90
|
+
name: 'Aave v3 VariableDebtToken',
|
91
|
+
description: 'Aave v3 defi adapter for variable interest-accruing token',
|
92
|
+
siteUrl: 'https://aave.com/',
|
93
|
+
iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',
|
94
|
+
positionType: 'borrow',
|
95
|
+
chainId: 1,
|
96
|
+
productId: 'variable-debt-token',
|
97
|
+
chainName: 'ethereum',
|
98
|
+
metadata: {
|
99
|
+
groupPositions: true,
|
100
|
+
},
|
101
|
+
success: false,
|
102
|
+
error: {
|
103
|
+
message: 'Failed to fetch positions',
|
104
|
+
},
|
105
|
+
},
|
106
|
+
{
|
107
|
+
protocolId: 'aave-v3',
|
108
|
+
name: 'Aave v3 AToken',
|
109
|
+
description: 'Aave v3 defi adapter for yield-generating token',
|
110
|
+
siteUrl: 'https://aave.com/',
|
111
|
+
iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',
|
112
|
+
positionType: 'supply',
|
113
|
+
chainId: 1,
|
114
|
+
productId: 'a-token',
|
115
|
+
chainName: 'ethereum',
|
116
|
+
metadata: {
|
117
|
+
groupPositions: true,
|
118
|
+
},
|
119
|
+
success: true,
|
120
|
+
tokens: [
|
121
|
+
{
|
122
|
+
address: '0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8',
|
123
|
+
name: 'Aave Ethereum WETH',
|
124
|
+
symbol: 'aEthWETH',
|
125
|
+
decimals: 18,
|
126
|
+
balanceRaw: '5000000000000000000',
|
127
|
+
balance: 5,
|
128
|
+
type: 'protocol',
|
129
|
+
tokens: [
|
130
|
+
{
|
131
|
+
address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
132
|
+
name: 'Wrapped Ether',
|
133
|
+
symbol: 'WETH',
|
134
|
+
decimals: 18,
|
135
|
+
type: 'underlying',
|
136
|
+
balanceRaw: '5000000000000000000',
|
137
|
+
balance: 5,
|
138
|
+
price: 1000,
|
139
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png',
|
140
|
+
},
|
141
|
+
],
|
142
|
+
},
|
143
|
+
],
|
144
|
+
},
|
145
|
+
];
|
146
|
+
/**
|
147
|
+
* The second entry has no price
|
148
|
+
*/
|
149
|
+
export const MOCK_DEFI_RESPONSE_NO_PRICES = [
|
150
|
+
{
|
151
|
+
protocolId: 'aave-v3',
|
152
|
+
name: 'Aave v3 AToken',
|
153
|
+
description: 'Aave v3 defi adapter for yield-generating token',
|
154
|
+
siteUrl: 'https://aave.com/',
|
155
|
+
iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',
|
156
|
+
positionType: 'supply',
|
157
|
+
chainId: 1,
|
158
|
+
productId: 'a-token',
|
159
|
+
chainName: 'ethereum',
|
160
|
+
metadata: {
|
161
|
+
groupPositions: true,
|
162
|
+
},
|
163
|
+
success: true,
|
164
|
+
tokens: [
|
165
|
+
{
|
166
|
+
address: '0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8',
|
167
|
+
name: 'Aave Ethereum WETH',
|
168
|
+
symbol: 'aEthWETH',
|
169
|
+
decimals: 18,
|
170
|
+
balanceRaw: '40000000000000000',
|
171
|
+
balance: 0.04,
|
172
|
+
type: 'protocol',
|
173
|
+
tokens: [
|
174
|
+
{
|
175
|
+
address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
176
|
+
name: 'Wrapped Ether',
|
177
|
+
symbol: 'WETH',
|
178
|
+
decimals: 18,
|
179
|
+
type: 'underlying',
|
180
|
+
balanceRaw: '40000000000000000',
|
181
|
+
balance: 0.04,
|
182
|
+
price: 1000,
|
183
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png',
|
184
|
+
},
|
185
|
+
],
|
186
|
+
},
|
187
|
+
{
|
188
|
+
address: '0x5Ee5bf7ae06D1Be5997A1A72006FE6C607eC6DE8',
|
189
|
+
name: 'Aave Ethereum WBTC',
|
190
|
+
symbol: 'aEthWBTC',
|
191
|
+
decimals: 8,
|
192
|
+
balanceRaw: '300000000',
|
193
|
+
balance: 3,
|
194
|
+
type: 'protocol',
|
195
|
+
tokens: [
|
196
|
+
{
|
197
|
+
address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',
|
198
|
+
name: 'Wrapped BTC',
|
199
|
+
symbol: 'WBTC',
|
200
|
+
decimals: 8,
|
201
|
+
type: 'underlying',
|
202
|
+
balanceRaw: '300000000',
|
203
|
+
balance: 3,
|
204
|
+
price: undefined,
|
205
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png',
|
206
|
+
},
|
207
|
+
],
|
208
|
+
},
|
209
|
+
],
|
210
|
+
},
|
211
|
+
];
|
212
|
+
/**
|
213
|
+
* The second entry is a borrow position
|
214
|
+
*/
|
215
|
+
export const MOCK_DEFI_RESPONSE_BORROW = [
|
216
|
+
{
|
217
|
+
protocolId: 'aave-v3',
|
218
|
+
name: 'Aave v3 AToken',
|
219
|
+
description: 'Aave v3 defi adapter for yield-generating token',
|
220
|
+
siteUrl: 'https://aave.com/',
|
221
|
+
iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',
|
222
|
+
positionType: 'supply',
|
223
|
+
chainId: 1,
|
224
|
+
productId: 'a-token',
|
225
|
+
chainName: 'ethereum',
|
226
|
+
metadata: {
|
227
|
+
groupPositions: true,
|
228
|
+
},
|
229
|
+
success: true,
|
230
|
+
tokens: [
|
231
|
+
{
|
232
|
+
address: '0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8',
|
233
|
+
name: 'Aave Ethereum WETH',
|
234
|
+
symbol: 'aEthWETH',
|
235
|
+
decimals: 18,
|
236
|
+
balanceRaw: '40000000000000000',
|
237
|
+
balance: 0.04,
|
238
|
+
type: 'protocol',
|
239
|
+
tokens: [
|
240
|
+
{
|
241
|
+
address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
242
|
+
name: 'Wrapped Ether',
|
243
|
+
symbol: 'WETH',
|
244
|
+
decimals: 18,
|
245
|
+
type: 'underlying',
|
246
|
+
balanceRaw: '40000000000000000',
|
247
|
+
balance: 0.04,
|
248
|
+
price: 1000,
|
249
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png',
|
250
|
+
},
|
251
|
+
],
|
252
|
+
},
|
253
|
+
{
|
254
|
+
address: '0x5Ee5bf7ae06D1Be5997A1A72006FE6C607eC6DE8',
|
255
|
+
name: 'Aave Ethereum WBTC',
|
256
|
+
symbol: 'aEthWBTC',
|
257
|
+
decimals: 8,
|
258
|
+
balanceRaw: '300000000',
|
259
|
+
balance: 3,
|
260
|
+
type: 'protocol',
|
261
|
+
tokens: [
|
262
|
+
{
|
263
|
+
address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',
|
264
|
+
name: 'Wrapped BTC',
|
265
|
+
symbol: 'WBTC',
|
266
|
+
decimals: 8,
|
267
|
+
type: 'underlying',
|
268
|
+
balanceRaw: '300000000',
|
269
|
+
balance: 3,
|
270
|
+
price: 500,
|
271
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png',
|
272
|
+
},
|
273
|
+
],
|
274
|
+
},
|
275
|
+
],
|
276
|
+
},
|
277
|
+
{
|
278
|
+
protocolId: 'aave-v3',
|
279
|
+
name: 'Aave v3 VariableDebtToken',
|
280
|
+
description: 'Aave v3 defi adapter for variable interest-accruing token',
|
281
|
+
siteUrl: 'https://aave.com/',
|
282
|
+
iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',
|
283
|
+
positionType: 'borrow',
|
284
|
+
chainId: 1,
|
285
|
+
productId: 'variable-debt-token',
|
286
|
+
chainName: 'ethereum',
|
287
|
+
metadata: {
|
288
|
+
groupPositions: true,
|
289
|
+
},
|
290
|
+
success: true,
|
291
|
+
tokens: [
|
292
|
+
{
|
293
|
+
address: '0x6df1C1E379bC5a00a7b4C6e67A203333772f45A8',
|
294
|
+
name: 'Aave Ethereum Variable Debt USDT',
|
295
|
+
symbol: 'variableDebtEthUSDT',
|
296
|
+
decimals: 6,
|
297
|
+
balanceRaw: '1000000000',
|
298
|
+
type: 'protocol',
|
299
|
+
tokens: [
|
300
|
+
{
|
301
|
+
address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',
|
302
|
+
name: 'Tether USD',
|
303
|
+
symbol: 'USDT',
|
304
|
+
decimals: 6,
|
305
|
+
type: 'underlying',
|
306
|
+
balanceRaw: '1000000000',
|
307
|
+
balance: 1000,
|
308
|
+
price: 1,
|
309
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png',
|
310
|
+
},
|
311
|
+
],
|
312
|
+
balance: 1000,
|
313
|
+
},
|
314
|
+
],
|
315
|
+
},
|
316
|
+
];
|
317
|
+
/**
|
318
|
+
* Complex mock with multiple chains, failed entries, borrow positions, etc.
|
319
|
+
*/
|
320
|
+
export const MOCK_DEFI_RESPONSE_COMPLEX = [
|
321
|
+
{
|
322
|
+
protocolId: 'aave-v3',
|
323
|
+
name: 'Aave v3 AToken',
|
324
|
+
description: 'Aave v3 defi adapter for yield-generating token',
|
325
|
+
siteUrl: 'https://aave.com/',
|
326
|
+
iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',
|
327
|
+
positionType: 'supply',
|
328
|
+
chainId: 1,
|
329
|
+
productId: 'a-token',
|
330
|
+
chainName: 'ethereum',
|
331
|
+
metadata: {
|
332
|
+
groupPositions: true,
|
333
|
+
},
|
334
|
+
success: true,
|
335
|
+
tokens: [
|
336
|
+
{
|
337
|
+
address: '0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8',
|
338
|
+
name: 'Aave Ethereum WETH',
|
339
|
+
symbol: 'aEthWETH',
|
340
|
+
decimals: 18,
|
341
|
+
balanceRaw: '40000000000000000',
|
342
|
+
balance: 0.04,
|
343
|
+
type: 'protocol',
|
344
|
+
tokens: [
|
345
|
+
{
|
346
|
+
address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
347
|
+
name: 'Wrapped Ether',
|
348
|
+
symbol: 'WETH',
|
349
|
+
decimals: 18,
|
350
|
+
type: 'underlying',
|
351
|
+
balanceRaw: '40000000000000000',
|
352
|
+
balance: 0.04,
|
353
|
+
price: 1000,
|
354
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png',
|
355
|
+
},
|
356
|
+
],
|
357
|
+
},
|
358
|
+
{
|
359
|
+
address: '0x5Ee5bf7ae06D1Be5997A1A72006FE6C607eC6DE8',
|
360
|
+
name: 'Aave Ethereum WBTC',
|
361
|
+
symbol: 'aEthWBTC',
|
362
|
+
decimals: 8,
|
363
|
+
balanceRaw: '300000000',
|
364
|
+
balance: 3,
|
365
|
+
type: 'protocol',
|
366
|
+
tokens: [
|
367
|
+
{
|
368
|
+
address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',
|
369
|
+
name: 'Wrapped BTC',
|
370
|
+
symbol: 'WBTC',
|
371
|
+
decimals: 8,
|
372
|
+
type: 'underlying',
|
373
|
+
balanceRaw: '300000000',
|
374
|
+
balance: 3,
|
375
|
+
price: 500,
|
376
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png',
|
377
|
+
},
|
378
|
+
],
|
379
|
+
},
|
380
|
+
],
|
381
|
+
},
|
382
|
+
{
|
383
|
+
protocolId: 'aave-v3',
|
384
|
+
name: 'Aave v3 VariableDebtToken',
|
385
|
+
description: 'Aave v3 defi adapter for variable interest-accruing token',
|
386
|
+
siteUrl: 'https://aave.com/',
|
387
|
+
iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',
|
388
|
+
positionType: 'borrow',
|
389
|
+
chainId: 1,
|
390
|
+
productId: 'variable-debt-token',
|
391
|
+
chainName: 'ethereum',
|
392
|
+
metadata: {
|
393
|
+
groupPositions: true,
|
394
|
+
},
|
395
|
+
success: true,
|
396
|
+
tokens: [
|
397
|
+
{
|
398
|
+
address: '0x6df1C1E379bC5a00a7b4C6e67A203333772f45A8',
|
399
|
+
name: 'Aave Ethereum Variable Debt USDT',
|
400
|
+
symbol: 'variableDebtEthUSDT',
|
401
|
+
decimals: 6,
|
402
|
+
balanceRaw: '1000000000',
|
403
|
+
type: 'protocol',
|
404
|
+
tokens: [
|
405
|
+
{
|
406
|
+
address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',
|
407
|
+
name: 'Tether USD',
|
408
|
+
symbol: 'USDT',
|
409
|
+
decimals: 6,
|
410
|
+
type: 'underlying',
|
411
|
+
balanceRaw: '1000000000',
|
412
|
+
balance: 1000,
|
413
|
+
price: 1,
|
414
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png',
|
415
|
+
},
|
416
|
+
],
|
417
|
+
balance: 1000,
|
418
|
+
},
|
419
|
+
],
|
420
|
+
},
|
421
|
+
{
|
422
|
+
protocolId: 'lido',
|
423
|
+
name: 'Lido wstEth',
|
424
|
+
description: 'Lido defi adapter for wstEth',
|
425
|
+
siteUrl: 'https://stake.lido.fi/wrap',
|
426
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84/logo.png',
|
427
|
+
positionType: 'stake',
|
428
|
+
chainId: 1,
|
429
|
+
productId: 'wst-eth',
|
430
|
+
chainName: 'ethereum',
|
431
|
+
success: true,
|
432
|
+
tokens: [
|
433
|
+
{
|
434
|
+
address: '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',
|
435
|
+
name: 'Wrapped liquid staked Ether 2.0',
|
436
|
+
symbol: 'wstETH',
|
437
|
+
decimals: 18,
|
438
|
+
balanceRaw: '800000000000000000000',
|
439
|
+
balance: 800,
|
440
|
+
type: 'protocol',
|
441
|
+
tokens: [
|
442
|
+
{
|
443
|
+
address: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',
|
444
|
+
name: 'Liquid staked Ether 2.0',
|
445
|
+
symbol: 'stETH',
|
446
|
+
decimals: 18,
|
447
|
+
type: 'underlying',
|
448
|
+
balanceRaw: '1000000000000000000',
|
449
|
+
balance: 10,
|
450
|
+
price: 2000,
|
451
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84/logo.png',
|
452
|
+
tokens: [
|
453
|
+
{
|
454
|
+
address: '0x0000000000000000000000000000000000000000',
|
455
|
+
name: 'Ethereum',
|
456
|
+
symbol: 'ETH',
|
457
|
+
decimals: 18,
|
458
|
+
type: 'underlying',
|
459
|
+
balanceRaw: '1000000000000000000',
|
460
|
+
balance: 10,
|
461
|
+
price: 2000,
|
462
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/info/logo.png',
|
463
|
+
},
|
464
|
+
],
|
465
|
+
},
|
466
|
+
],
|
467
|
+
},
|
468
|
+
],
|
469
|
+
},
|
470
|
+
{
|
471
|
+
protocolId: 'uniswap-v3',
|
472
|
+
name: 'UniswapV3',
|
473
|
+
description: 'UniswapV3 defi adapter',
|
474
|
+
siteUrl: 'https://uniswap.org/',
|
475
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984/logo.png',
|
476
|
+
positionType: 'supply',
|
477
|
+
chainId: 8453,
|
478
|
+
productId: 'pool',
|
479
|
+
chainName: 'base',
|
480
|
+
success: true,
|
481
|
+
tokens: [
|
482
|
+
{
|
483
|
+
address: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
|
484
|
+
tokenId: '940758',
|
485
|
+
name: 'GASP / USDT - 0.3%',
|
486
|
+
symbol: 'GASP / USDT - 0.3%',
|
487
|
+
decimals: 18,
|
488
|
+
balanceRaw: '1000000000000000000',
|
489
|
+
balance: 1,
|
490
|
+
type: 'protocol',
|
491
|
+
tokens: [
|
492
|
+
{
|
493
|
+
address: '0x736ECc5237B31eDec6f1aB9a396FaE2416b1d96E',
|
494
|
+
name: 'GASP',
|
495
|
+
symbol: 'GASP',
|
496
|
+
decimals: 18,
|
497
|
+
balanceRaw: '100000000000000000000',
|
498
|
+
type: 'underlying',
|
499
|
+
balance: 100,
|
500
|
+
price: 0.1,
|
501
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x736ECc5237B31eDec6f1aB9a396FaE2416b1d96E/logo.png',
|
502
|
+
},
|
503
|
+
{
|
504
|
+
address: '0x736ECc5237B31eDec6f1aB9a396FaE2416b1d96E',
|
505
|
+
name: 'GASP',
|
506
|
+
symbol: 'GASP',
|
507
|
+
decimals: 18,
|
508
|
+
balanceRaw: '10000000000000000000',
|
509
|
+
type: 'underlying-claimable',
|
510
|
+
balance: 10,
|
511
|
+
price: 0.1,
|
512
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x736ECc5237B31eDec6f1aB9a396FaE2416b1d96E/logo.png',
|
513
|
+
},
|
514
|
+
{
|
515
|
+
address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',
|
516
|
+
name: 'Tether USD',
|
517
|
+
symbol: 'USDT',
|
518
|
+
decimals: 6,
|
519
|
+
balanceRaw: '500000000',
|
520
|
+
type: 'underlying',
|
521
|
+
balance: 500,
|
522
|
+
price: 1,
|
523
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png',
|
524
|
+
},
|
525
|
+
{
|
526
|
+
address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',
|
527
|
+
name: 'Tether USD',
|
528
|
+
symbol: 'USDT',
|
529
|
+
decimals: 6,
|
530
|
+
balanceRaw: '2000000',
|
531
|
+
type: 'underlying-claimable',
|
532
|
+
balance: 2,
|
533
|
+
price: 1,
|
534
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png',
|
535
|
+
},
|
536
|
+
],
|
537
|
+
},
|
538
|
+
{
|
539
|
+
address: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
|
540
|
+
tokenId: '940760',
|
541
|
+
name: 'GASP / USDT - 0.3%',
|
542
|
+
symbol: 'GASP / USDT - 0.3%',
|
543
|
+
decimals: 18,
|
544
|
+
balanceRaw: '2000000000000000000',
|
545
|
+
balance: 2,
|
546
|
+
type: 'protocol',
|
547
|
+
tokens: [
|
548
|
+
{
|
549
|
+
address: '0x736ECc5237B31eDec6f1aB9a396FaE2416b1d96E',
|
550
|
+
name: 'GASP',
|
551
|
+
symbol: 'GASP',
|
552
|
+
decimals: 18,
|
553
|
+
balanceRaw: '90000000000000000000000',
|
554
|
+
type: 'underlying',
|
555
|
+
balance: 90000,
|
556
|
+
price: 0.1,
|
557
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x736ECc5237B31eDec6f1aB9a396FaE2416b1d96E/logo.png',
|
558
|
+
},
|
559
|
+
{
|
560
|
+
address: '0x736ECc5237B31eDec6f1aB9a396FaE2416b1d96E',
|
561
|
+
name: 'GASP',
|
562
|
+
symbol: 'GASP',
|
563
|
+
decimals: 18,
|
564
|
+
balanceRaw: '50000000000000000000',
|
565
|
+
type: 'underlying-claimable',
|
566
|
+
balance: 50,
|
567
|
+
price: 0.1,
|
568
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x736ECc5237B31eDec6f1aB9a396FaE2416b1d96E/logo.png',
|
569
|
+
},
|
570
|
+
{
|
571
|
+
address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',
|
572
|
+
name: 'Tether USD',
|
573
|
+
symbol: 'USDT',
|
574
|
+
decimals: 6,
|
575
|
+
balanceRaw: '60000000',
|
576
|
+
type: 'underlying',
|
577
|
+
balance: 60,
|
578
|
+
price: 1,
|
579
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png',
|
580
|
+
},
|
581
|
+
{
|
582
|
+
address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',
|
583
|
+
name: 'Tether USD',
|
584
|
+
symbol: 'USDT',
|
585
|
+
decimals: 6,
|
586
|
+
balanceRaw: '2000000',
|
587
|
+
type: 'underlying-claimable',
|
588
|
+
balance: 2,
|
589
|
+
price: 1,
|
590
|
+
iconUrl: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png',
|
591
|
+
},
|
592
|
+
],
|
593
|
+
},
|
594
|
+
],
|
595
|
+
},
|
596
|
+
];
|
597
|
+
//# sourceMappingURL=mock-responses.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mock-responses.mjs","sourceRoot":"","sources":["../../../src/DeFiPositionsController/mocks/mock-responses.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAA2B;IACpE;QACE,UAAU,EAAE,SAAS;QACrB,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,iDAAiD;QAC9D,OAAO,EAAE,mBAAmB;QAC5B,OAAO,EAAE,iDAAiD;QAC1D,YAAY,EAAE,QAAQ;QACtB,OAAO,EAAE,CAAC;QACV,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,UAAU;QACrB,QAAQ,EAAE;YACR,cAAc,EAAE,IAAI;SACrB;QACD,OAAO,EAAE,IAAI;QACb,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,4CAA4C;gBACrD,IAAI,EAAE,oBAAoB;gBAC1B,MAAM,EAAE,UAAU;gBAClB,QAAQ,EAAE,EAAE;gBACZ,UAAU,EAAE,qBAAqB;gBACjC,OAAO,EAAE,CAAC;gBACV,IAAI,EAAE,UAAU;gBAChB,MAAM,EAAE;oBACN;wBACE,OAAO,EAAE,4CAA4C;wBACrD,IAAI,EAAE,eAAe;wBACrB,MAAM,EAAE,MAAM;wBACd,QAAQ,EAAE,EAAE;wBACZ,IAAI,EAAE,YAAY;wBAClB,UAAU,EAAE,qBAAqB;wBACjC,OAAO,EAAE,CAAC;wBACV,KAAK,EAAE,IAAI;wBACX,OAAO,EACL,6IAA6I;qBAChJ;iBACF;aACF;SACF;KACF;IACD;QACE,UAAU,EAAE,SAAS;QACrB,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,iDAAiD;QAC9D,OAAO,EAAE,mBAAmB;QAC5B,OAAO,EAAE,iDAAiD;QAC1D,YAAY,EAAE,QAAQ;QACtB,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE;YACR,cAAc,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are from different chains\n */\nexport const MOCK_DEFI_RESPONSE_MULTI_CHAIN: DefiPositionResponse[] = [\n {\n protocolId: 'aave-v3',\n name: 'Aave v3 AToken',\n description: 'Aave v3 defi adapter for yield-generating token',\n siteUrl: 'https://aave.com/',\n iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',\n positionType: 'supply',\n chainId: 1,\n productId: 'a-token',\n chainName: 'ethereum',\n metadata: {\n groupPositions: true,\n },\n success: true,\n tokens: [\n {\n address: '0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8',\n name: 'Aave Ethereum WETH',\n symbol: 'aEthWETH',\n decimals: 18,\n balanceRaw: '5000000000000000000',\n balance: 5,\n type: 'protocol',\n tokens: [\n {\n address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',\n name: 'Wrapped Ether',\n symbol: 'WETH',\n decimals: 18,\n type: 'underlying',\n balanceRaw: '5000000000000000000',\n balance: 5,\n price: 1000,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png',\n },\n ],\n },\n ],\n },\n {\n protocolId: 'aave-v3',\n name: 'Aave v3 AToken',\n description: 'Aave v3 defi adapter for yield-generating token',\n siteUrl: 'https://aave.com/',\n iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',\n positionType: 'supply',\n chainId: 8453,\n productId: 'a-token',\n chainName: 'base',\n metadata: {\n groupPositions: true,\n },\n success: true,\n tokens: [\n {\n address: '0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8',\n name: 'Aave Ethereum WETH',\n symbol: 'aEthWETH',\n decimals: 18,\n balanceRaw: '5000000000000000000',\n balance: 5,\n type: 'protocol',\n tokens: [\n {\n address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',\n name: 'Wrapped Ether',\n symbol: 'WETH',\n decimals: 18,\n type: 'underlying',\n balanceRaw: '5000000000000000000',\n balance: 5,\n price: 1000,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png',\n },\n ],\n },\n ],\n },\n];\n\n/**\n * The first entry is a failed entry\n */\nexport const MOCK_DEFI_RESPONSE_FAILED_ENTRY: DefiPositionResponse[] = [\n {\n protocolId: 'aave-v3',\n name: 'Aave v3 VariableDebtToken',\n description: 'Aave v3 defi adapter for variable interest-accruing token',\n siteUrl: 'https://aave.com/',\n iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',\n positionType: 'borrow',\n chainId: 1,\n productId: 'variable-debt-token',\n chainName: 'ethereum',\n metadata: {\n groupPositions: true,\n },\n success: false,\n error: {\n message: 'Failed to fetch positions',\n },\n },\n {\n protocolId: 'aave-v3',\n name: 'Aave v3 AToken',\n description: 'Aave v3 defi adapter for yield-generating token',\n siteUrl: 'https://aave.com/',\n iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',\n positionType: 'supply',\n chainId: 1,\n productId: 'a-token',\n chainName: 'ethereum',\n metadata: {\n groupPositions: true,\n },\n success: true,\n tokens: [\n {\n address: '0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8',\n name: 'Aave Ethereum WETH',\n symbol: 'aEthWETH',\n decimals: 18,\n balanceRaw: '5000000000000000000',\n balance: 5,\n type: 'protocol',\n tokens: [\n {\n address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',\n name: 'Wrapped Ether',\n symbol: 'WETH',\n decimals: 18,\n type: 'underlying',\n balanceRaw: '5000000000000000000',\n balance: 5,\n price: 1000,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png',\n },\n ],\n },\n ],\n },\n];\n\n/**\n * The second entry has no price\n */\nexport const MOCK_DEFI_RESPONSE_NO_PRICES: DefiPositionResponse[] = [\n {\n protocolId: 'aave-v3',\n name: 'Aave v3 AToken',\n description: 'Aave v3 defi adapter for yield-generating token',\n siteUrl: 'https://aave.com/',\n iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',\n positionType: 'supply',\n chainId: 1,\n productId: 'a-token',\n chainName: 'ethereum',\n metadata: {\n groupPositions: true,\n },\n success: true,\n tokens: [\n {\n address: '0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8',\n name: 'Aave Ethereum WETH',\n symbol: 'aEthWETH',\n decimals: 18,\n balanceRaw: '40000000000000000',\n balance: 0.04,\n type: 'protocol',\n tokens: [\n {\n address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',\n name: 'Wrapped Ether',\n symbol: 'WETH',\n decimals: 18,\n type: 'underlying',\n balanceRaw: '40000000000000000',\n balance: 0.04,\n price: 1000,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png',\n },\n ],\n },\n {\n address: '0x5Ee5bf7ae06D1Be5997A1A72006FE6C607eC6DE8',\n name: 'Aave Ethereum WBTC',\n symbol: 'aEthWBTC',\n decimals: 8,\n balanceRaw: '300000000',\n balance: 3,\n type: 'protocol',\n tokens: [\n {\n address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',\n name: 'Wrapped BTC',\n symbol: 'WBTC',\n decimals: 8,\n type: 'underlying',\n balanceRaw: '300000000',\n balance: 3,\n price: undefined,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png',\n },\n ],\n },\n ],\n },\n];\n\n/**\n * The second entry is a borrow position\n */\nexport const MOCK_DEFI_RESPONSE_BORROW: DefiPositionResponse[] = [\n {\n protocolId: 'aave-v3',\n name: 'Aave v3 AToken',\n description: 'Aave v3 defi adapter for yield-generating token',\n siteUrl: 'https://aave.com/',\n iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',\n positionType: 'supply',\n chainId: 1,\n productId: 'a-token',\n chainName: 'ethereum',\n metadata: {\n groupPositions: true,\n },\n success: true,\n tokens: [\n {\n address: '0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8',\n name: 'Aave Ethereum WETH',\n symbol: 'aEthWETH',\n decimals: 18,\n balanceRaw: '40000000000000000',\n balance: 0.04,\n type: 'protocol',\n tokens: [\n {\n address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',\n name: 'Wrapped Ether',\n symbol: 'WETH',\n decimals: 18,\n type: 'underlying',\n balanceRaw: '40000000000000000',\n balance: 0.04,\n price: 1000,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png',\n },\n ],\n },\n {\n address: '0x5Ee5bf7ae06D1Be5997A1A72006FE6C607eC6DE8',\n name: 'Aave Ethereum WBTC',\n symbol: 'aEthWBTC',\n decimals: 8,\n balanceRaw: '300000000',\n balance: 3,\n type: 'protocol',\n tokens: [\n {\n address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',\n name: 'Wrapped BTC',\n symbol: 'WBTC',\n decimals: 8,\n type: 'underlying',\n balanceRaw: '300000000',\n balance: 3,\n price: 500,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png',\n },\n ],\n },\n ],\n },\n {\n protocolId: 'aave-v3',\n name: 'Aave v3 VariableDebtToken',\n description: 'Aave v3 defi adapter for variable interest-accruing token',\n siteUrl: 'https://aave.com/',\n iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',\n positionType: 'borrow',\n chainId: 1,\n productId: 'variable-debt-token',\n chainName: 'ethereum',\n metadata: {\n groupPositions: true,\n },\n success: true,\n tokens: [\n {\n address: '0x6df1C1E379bC5a00a7b4C6e67A203333772f45A8',\n name: 'Aave Ethereum Variable Debt USDT',\n symbol: 'variableDebtEthUSDT',\n decimals: 6,\n balanceRaw: '1000000000',\n type: 'protocol',\n tokens: [\n {\n address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',\n name: 'Tether USD',\n symbol: 'USDT',\n decimals: 6,\n type: 'underlying',\n balanceRaw: '1000000000',\n balance: 1000,\n price: 1,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png',\n },\n ],\n balance: 1000,\n },\n ],\n },\n];\n\n/**\n * Complex mock with multiple chains, failed entries, borrow positions, etc.\n */\nexport const MOCK_DEFI_RESPONSE_COMPLEX: DefiPositionResponse[] = [\n {\n protocolId: 'aave-v3',\n name: 'Aave v3 AToken',\n description: 'Aave v3 defi adapter for yield-generating token',\n siteUrl: 'https://aave.com/',\n iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',\n positionType: 'supply',\n chainId: 1,\n productId: 'a-token',\n chainName: 'ethereum',\n metadata: {\n groupPositions: true,\n },\n success: true,\n tokens: [\n {\n address: '0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8',\n name: 'Aave Ethereum WETH',\n symbol: 'aEthWETH',\n decimals: 18,\n balanceRaw: '40000000000000000',\n balance: 0.04,\n type: 'protocol',\n tokens: [\n {\n address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',\n name: 'Wrapped Ether',\n symbol: 'WETH',\n decimals: 18,\n type: 'underlying',\n balanceRaw: '40000000000000000',\n balance: 0.04,\n price: 1000,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png',\n },\n ],\n },\n {\n address: '0x5Ee5bf7ae06D1Be5997A1A72006FE6C607eC6DE8',\n name: 'Aave Ethereum WBTC',\n symbol: 'aEthWBTC',\n decimals: 8,\n balanceRaw: '300000000',\n balance: 3,\n type: 'protocol',\n tokens: [\n {\n address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',\n name: 'Wrapped BTC',\n symbol: 'WBTC',\n decimals: 8,\n type: 'underlying',\n balanceRaw: '300000000',\n balance: 3,\n price: 500,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png',\n },\n ],\n },\n ],\n },\n {\n protocolId: 'aave-v3',\n name: 'Aave v3 VariableDebtToken',\n description: 'Aave v3 defi adapter for variable interest-accruing token',\n siteUrl: 'https://aave.com/',\n iconUrl: 'https://cryptologos.cc/logos/aave-aave-logo.png',\n positionType: 'borrow',\n chainId: 1,\n productId: 'variable-debt-token',\n chainName: 'ethereum',\n metadata: {\n groupPositions: true,\n },\n success: true,\n tokens: [\n {\n address: '0x6df1C1E379bC5a00a7b4C6e67A203333772f45A8',\n name: 'Aave Ethereum Variable Debt USDT',\n symbol: 'variableDebtEthUSDT',\n decimals: 6,\n balanceRaw: '1000000000',\n type: 'protocol',\n tokens: [\n {\n address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',\n name: 'Tether USD',\n symbol: 'USDT',\n decimals: 6,\n type: 'underlying',\n balanceRaw: '1000000000',\n balance: 1000,\n price: 1,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png',\n },\n ],\n balance: 1000,\n },\n ],\n },\n {\n protocolId: 'lido',\n name: 'Lido wstEth',\n description: 'Lido defi adapter for wstEth',\n siteUrl: 'https://stake.lido.fi/wrap',\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84/logo.png',\n positionType: 'stake',\n chainId: 1,\n productId: 'wst-eth',\n chainName: 'ethereum',\n success: true,\n tokens: [\n {\n address: '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',\n name: 'Wrapped liquid staked Ether 2.0',\n symbol: 'wstETH',\n decimals: 18,\n balanceRaw: '800000000000000000000',\n balance: 800,\n type: 'protocol',\n tokens: [\n {\n address: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',\n name: 'Liquid staked Ether 2.0',\n symbol: 'stETH',\n decimals: 18,\n type: 'underlying',\n balanceRaw: '1000000000000000000',\n balance: 10,\n price: 2000,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84/logo.png',\n tokens: [\n {\n address: '0x0000000000000000000000000000000000000000',\n name: 'Ethereum',\n symbol: 'ETH',\n decimals: 18,\n type: 'underlying',\n balanceRaw: '1000000000000000000',\n balance: 10,\n price: 2000,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/info/logo.png',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n protocolId: 'uniswap-v3',\n name: 'UniswapV3',\n description: 'UniswapV3 defi adapter',\n siteUrl: 'https://uniswap.org/',\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984/logo.png',\n positionType: 'supply',\n chainId: 8453,\n productId: 'pool',\n chainName: 'base',\n success: true,\n tokens: [\n {\n address: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',\n tokenId: '940758',\n name: 'GASP / USDT - 0.3%',\n symbol: 'GASP / USDT - 0.3%',\n decimals: 18,\n balanceRaw: '1000000000000000000',\n balance: 1,\n type: 'protocol',\n tokens: [\n {\n address: '0x736ECc5237B31eDec6f1aB9a396FaE2416b1d96E',\n name: 'GASP',\n symbol: 'GASP',\n decimals: 18,\n balanceRaw: '100000000000000000000',\n type: 'underlying',\n balance: 100,\n price: 0.1,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x736ECc5237B31eDec6f1aB9a396FaE2416b1d96E/logo.png',\n },\n {\n address: '0x736ECc5237B31eDec6f1aB9a396FaE2416b1d96E',\n name: 'GASP',\n symbol: 'GASP',\n decimals: 18,\n balanceRaw: '10000000000000000000',\n type: 'underlying-claimable',\n balance: 10,\n price: 0.1,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x736ECc5237B31eDec6f1aB9a396FaE2416b1d96E/logo.png',\n },\n {\n address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',\n name: 'Tether USD',\n symbol: 'USDT',\n decimals: 6,\n balanceRaw: '500000000',\n type: 'underlying',\n balance: 500,\n price: 1,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png',\n },\n {\n address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',\n name: 'Tether USD',\n symbol: 'USDT',\n decimals: 6,\n balanceRaw: '2000000',\n type: 'underlying-claimable',\n balance: 2,\n price: 1,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png',\n },\n ],\n },\n {\n address: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',\n tokenId: '940760',\n name: 'GASP / USDT - 0.3%',\n symbol: 'GASP / USDT - 0.3%',\n decimals: 18,\n balanceRaw: '2000000000000000000',\n balance: 2,\n type: 'protocol',\n tokens: [\n {\n address: '0x736ECc5237B31eDec6f1aB9a396FaE2416b1d96E',\n name: 'GASP',\n symbol: 'GASP',\n decimals: 18,\n balanceRaw: '90000000000000000000000',\n type: 'underlying',\n balance: 90000,\n price: 0.1,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x736ECc5237B31eDec6f1aB9a396FaE2416b1d96E/logo.png',\n },\n {\n address: '0x736ECc5237B31eDec6f1aB9a396FaE2416b1d96E',\n name: 'GASP',\n symbol: 'GASP',\n decimals: 18,\n balanceRaw: '50000000000000000000',\n type: 'underlying-claimable',\n balance: 50,\n price: 0.1,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x736ECc5237B31eDec6f1aB9a396FaE2416b1d96E/logo.png',\n },\n {\n address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',\n name: 'Tether USD',\n symbol: 'USDT',\n decimals: 6,\n balanceRaw: '60000000',\n type: 'underlying',\n balance: 60,\n price: 1,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png',\n },\n {\n address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',\n name: 'Tether USD',\n symbol: 'USDT',\n decimals: 6,\n balanceRaw: '2000000',\n type: 'underlying-claimable',\n balance: 2,\n price: 1,\n iconUrl:\n 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png',\n },\n ],\n },\n ],\n },\n];\n"]}
|