@defisaver/tokens 1.4.0 → 1.4.3
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/README.md +90 -25
- package/esm/assets.d.ts +3 -3
- package/esm/assets.js +635 -207
- package/esm/index.d.ts +2 -10
- package/esm/index.js +12 -13
- package/esm/types.d.ts +26 -2
- package/package.json +2 -2
- package/src/TokenIcons/GuniDaiUsdc1Icon.js +66 -0
- package/src/TokenIcons/GuniDaiUsdc2Icon.js +69 -0
- package/src/assets.ts +650 -210
- package/src/index.ts +19 -16
- package/src/types.ts +31 -1
- package/umd/index.js +656 -229
package/README.md
CHANGED
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
### Type aliases
|
|
6
6
|
|
|
7
|
+
- [AaveMarketData](README.md#aavemarketdata)
|
|
8
|
+
- [AddressMapping](README.md#addressmapping)
|
|
7
9
|
- [AssetData](README.md#assetdata)
|
|
10
|
+
- [AssetDataBase](README.md#assetdatabase)
|
|
8
11
|
- [ExtendedIlkData](README.md#extendedilkdata)
|
|
9
12
|
- [IlkData](README.md#ilkdata)
|
|
10
13
|
|
|
@@ -33,11 +36,44 @@
|
|
|
33
36
|
|
|
34
37
|
## Type aliases
|
|
35
38
|
|
|
39
|
+
### AaveMarketData
|
|
40
|
+
|
|
41
|
+
Ƭ **AaveMarketData**: `Object`
|
|
42
|
+
|
|
43
|
+
#### Type declaration
|
|
44
|
+
|
|
45
|
+
| Name | Type |
|
|
46
|
+
| :------ | :------ |
|
|
47
|
+
| `dataProvider` | `string` |
|
|
48
|
+
| `lendingPool` | `string` |
|
|
49
|
+
| `lendingPoolAddressProvider` | `string` |
|
|
50
|
+
| `name` | `string` |
|
|
51
|
+
|
|
52
|
+
#### Defined in
|
|
53
|
+
|
|
54
|
+
[types.ts:61](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/types.ts#L61)
|
|
55
|
+
|
|
56
|
+
___
|
|
57
|
+
|
|
58
|
+
### AddressMapping
|
|
59
|
+
|
|
60
|
+
Ƭ **AddressMapping**: `Object`
|
|
61
|
+
|
|
62
|
+
#### Index signature
|
|
63
|
+
|
|
64
|
+
▪ [key: `number`]: `string`
|
|
65
|
+
|
|
66
|
+
#### Defined in
|
|
67
|
+
|
|
68
|
+
[types.ts:6](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/types.ts#L6)
|
|
69
|
+
|
|
70
|
+
___
|
|
71
|
+
|
|
36
72
|
### AssetData
|
|
37
73
|
|
|
38
74
|
Ƭ **AssetData**: `Object`
|
|
39
75
|
|
|
40
|
-
|
|
76
|
+
Chain-specific asset info type
|
|
41
77
|
|
|
42
78
|
#### Type declaration
|
|
43
79
|
|
|
@@ -45,6 +81,35 @@ Asset info type
|
|
|
45
81
|
| :------ | :------ |
|
|
46
82
|
| `aaveCollateral` | `boolean` |
|
|
47
83
|
| `address` | `string` |
|
|
84
|
+
| `addresses` | [`AddressMapping`](README.md#addressmapping) |
|
|
85
|
+
| `compoundCollateral` | `boolean` |
|
|
86
|
+
| `decimals` | `number` |
|
|
87
|
+
| `exchange` | `boolean` |
|
|
88
|
+
| `icon` | `Function` |
|
|
89
|
+
| `isStable` | `boolean` |
|
|
90
|
+
| `name` | `string` |
|
|
91
|
+
| `symbol` | `string` |
|
|
92
|
+
| `underlyingAsset` | `string` |
|
|
93
|
+
| `yearnCollateral` | `boolean` |
|
|
94
|
+
|
|
95
|
+
#### Defined in
|
|
96
|
+
|
|
97
|
+
[types.ts:30](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/types.ts#L30)
|
|
98
|
+
|
|
99
|
+
___
|
|
100
|
+
|
|
101
|
+
### AssetDataBase
|
|
102
|
+
|
|
103
|
+
Ƭ **AssetDataBase**: `Object`
|
|
104
|
+
|
|
105
|
+
Chain-agnostic asset info type
|
|
106
|
+
|
|
107
|
+
#### Type declaration
|
|
108
|
+
|
|
109
|
+
| Name | Type |
|
|
110
|
+
| :------ | :------ |
|
|
111
|
+
| `aaveCollateral` | `boolean` |
|
|
112
|
+
| `addresses` | [`AddressMapping`](README.md#addressmapping) |
|
|
48
113
|
| `compoundCollateral` | `boolean` |
|
|
49
114
|
| `decimals` | `number` |
|
|
50
115
|
| `exchange` | `boolean` |
|
|
@@ -57,7 +122,7 @@ Asset info type
|
|
|
57
122
|
|
|
58
123
|
#### Defined in
|
|
59
124
|
|
|
60
|
-
[types.ts:
|
|
125
|
+
[types.ts:13](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/types.ts#L13)
|
|
61
126
|
|
|
62
127
|
___
|
|
63
128
|
|
|
@@ -67,7 +132,7 @@ ___
|
|
|
67
132
|
|
|
68
133
|
#### Defined in
|
|
69
134
|
|
|
70
|
-
[types.ts:
|
|
135
|
+
[types.ts:68](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/types.ts#L68)
|
|
71
136
|
|
|
72
137
|
___
|
|
73
138
|
|
|
@@ -94,7 +159,7 @@ Maker ilk info type
|
|
|
94
159
|
|
|
95
160
|
#### Defined in
|
|
96
161
|
|
|
97
|
-
[types.ts:
|
|
162
|
+
[types.ts:48](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/types.ts#L48)
|
|
98
163
|
|
|
99
164
|
## Variables
|
|
100
165
|
|
|
@@ -104,27 +169,27 @@ Maker ilk info type
|
|
|
104
169
|
|
|
105
170
|
#### Defined in
|
|
106
171
|
|
|
107
|
-
[index.ts:27](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
172
|
+
[index.ts:27](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/index.ts#L27)
|
|
108
173
|
|
|
109
174
|
___
|
|
110
175
|
|
|
111
176
|
### aaveV2Markets
|
|
112
177
|
|
|
113
|
-
• **aaveV2Markets**: `AaveMarketData`[]
|
|
178
|
+
• **aaveV2Markets**: [`AaveMarketData`](README.md#aavemarketdata)[]
|
|
114
179
|
|
|
115
180
|
#### Defined in
|
|
116
181
|
|
|
117
|
-
[aaveV2Markets.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
182
|
+
[aaveV2Markets.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/aaveV2Markets.ts#L3)
|
|
118
183
|
|
|
119
184
|
___
|
|
120
185
|
|
|
121
186
|
### assets
|
|
122
187
|
|
|
123
|
-
• **assets**: [`
|
|
188
|
+
• **assets**: [`AssetDataBase`](README.md#assetdatabase)[]
|
|
124
189
|
|
|
125
190
|
#### Defined in
|
|
126
191
|
|
|
127
|
-
[assets.ts:
|
|
192
|
+
[assets.ts:229](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/assets.ts#L229)
|
|
128
193
|
|
|
129
194
|
___
|
|
130
195
|
|
|
@@ -134,7 +199,7 @@ ___
|
|
|
134
199
|
|
|
135
200
|
#### Defined in
|
|
136
201
|
|
|
137
|
-
[ilks.ts:5](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
202
|
+
[ilks.ts:5](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/ilks.ts#L5)
|
|
138
203
|
|
|
139
204
|
___
|
|
140
205
|
|
|
@@ -144,7 +209,7 @@ ___
|
|
|
144
209
|
|
|
145
210
|
#### Defined in
|
|
146
211
|
|
|
147
|
-
[reflexerCollTypes.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
212
|
+
[reflexerCollTypes.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/reflexerCollTypes.ts#L3)
|
|
148
213
|
|
|
149
214
|
___
|
|
150
215
|
|
|
@@ -162,7 +227,7 @@ ___
|
|
|
162
227
|
|
|
163
228
|
#### Defined in
|
|
164
229
|
|
|
165
|
-
[index.ts:25](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
230
|
+
[index.ts:25](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/index.ts#L25)
|
|
166
231
|
|
|
167
232
|
## Functions
|
|
168
233
|
|
|
@@ -183,7 +248,7 @@ ___
|
|
|
183
248
|
|
|
184
249
|
#### Defined in
|
|
185
250
|
|
|
186
|
-
[index.ts:
|
|
251
|
+
[index.ts:144](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/index.ts#L144)
|
|
187
252
|
|
|
188
253
|
___
|
|
189
254
|
|
|
@@ -204,13 +269,13 @@ ___
|
|
|
204
269
|
|
|
205
270
|
#### Defined in
|
|
206
271
|
|
|
207
|
-
[index.ts:
|
|
272
|
+
[index.ts:165](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/index.ts#L165)
|
|
208
273
|
|
|
209
274
|
___
|
|
210
275
|
|
|
211
276
|
### getAaveV2MarketInfo
|
|
212
277
|
|
|
213
|
-
▸ `Const` **getAaveV2MarketInfo**(`name?`): `void` \| `AaveMarketData`
|
|
278
|
+
▸ `Const` **getAaveV2MarketInfo**(`name?`): `void` \| [`AaveMarketData`](README.md#aavemarketdata)
|
|
214
279
|
|
|
215
280
|
#### Parameters
|
|
216
281
|
|
|
@@ -220,11 +285,11 @@ ___
|
|
|
220
285
|
|
|
221
286
|
#### Returns
|
|
222
287
|
|
|
223
|
-
`void` \| `AaveMarketData`
|
|
288
|
+
`void` \| [`AaveMarketData`](README.md#aavemarketdata)
|
|
224
289
|
|
|
225
290
|
#### Defined in
|
|
226
291
|
|
|
227
|
-
[index.ts:
|
|
292
|
+
[index.ts:137](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/index.ts#L137)
|
|
228
293
|
|
|
229
294
|
___
|
|
230
295
|
|
|
@@ -247,7 +312,7 @@ Warning: will not throw if asset not found. Instead, will return a placeholder o
|
|
|
247
312
|
|
|
248
313
|
#### Defined in
|
|
249
314
|
|
|
250
|
-
[index.ts:
|
|
315
|
+
[index.ts:58](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/index.ts#L58)
|
|
251
316
|
|
|
252
317
|
___
|
|
253
318
|
|
|
@@ -267,7 +332,7 @@ ___
|
|
|
267
332
|
|
|
268
333
|
#### Defined in
|
|
269
334
|
|
|
270
|
-
[index.ts:
|
|
335
|
+
[index.ts:92](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/index.ts#L92)
|
|
271
336
|
|
|
272
337
|
___
|
|
273
338
|
|
|
@@ -290,7 +355,7 @@ Warning: will not throw if ilk not found. Instead, will return a placeholder obj
|
|
|
290
355
|
|
|
291
356
|
#### Defined in
|
|
292
357
|
|
|
293
|
-
[index.ts:
|
|
358
|
+
[index.ts:71](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/index.ts#L71)
|
|
294
359
|
|
|
295
360
|
___
|
|
296
361
|
|
|
@@ -310,7 +375,7 @@ ___
|
|
|
310
375
|
|
|
311
376
|
#### Defined in
|
|
312
377
|
|
|
313
|
-
[index.ts:
|
|
378
|
+
[index.ts:97](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/index.ts#L97)
|
|
314
379
|
|
|
315
380
|
___
|
|
316
381
|
|
|
@@ -331,7 +396,7 @@ ___
|
|
|
331
396
|
|
|
332
397
|
#### Defined in
|
|
333
398
|
|
|
334
|
-
[index.ts:21](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
399
|
+
[index.ts:21](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/index.ts#L21)
|
|
335
400
|
|
|
336
401
|
___
|
|
337
402
|
|
|
@@ -354,7 +419,7 @@ Token symbol
|
|
|
354
419
|
|
|
355
420
|
#### Defined in
|
|
356
421
|
|
|
357
|
-
[index.ts:
|
|
422
|
+
[index.ts:117](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/index.ts#L117)
|
|
358
423
|
|
|
359
424
|
___
|
|
360
425
|
|
|
@@ -376,7 +441,7 @@ Token symbol
|
|
|
376
441
|
|
|
377
442
|
#### Defined in
|
|
378
443
|
|
|
379
|
-
[index.ts:
|
|
444
|
+
[index.ts:129](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/index.ts#L129)
|
|
380
445
|
|
|
381
446
|
___
|
|
382
447
|
|
|
@@ -398,4 +463,4 @@ Token symbol
|
|
|
398
463
|
|
|
399
464
|
#### Defined in
|
|
400
465
|
|
|
401
|
-
[index.ts:
|
|
466
|
+
[index.ts:135](https://github.com/DecenterApps/defisaver-tokens/blob/9e23996/src/index.ts#L135)
|
package/esm/assets.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const assetProto:
|
|
3
|
-
export declare const assets:
|
|
1
|
+
import { AssetDataBase } from './types';
|
|
2
|
+
export declare const assetProto: AssetDataBase;
|
|
3
|
+
export declare const assets: AssetDataBase[];
|