@defisaver/tokens 1.4.32 → 1.4.34
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 +25 -23
- package/esm/assets.js +1 -1
- package/esm/types.d.ts +2 -0
- package/package.json +1 -1
- package/src/assets.ts +1 -1
- package/src/types.ts +2 -0
- package/umd/index.js +1 -1
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
|
|
52
52
|
#### Defined in
|
|
53
53
|
|
|
54
|
-
[types.ts:
|
|
54
|
+
[types.ts:70](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/types.ts#L70)
|
|
55
55
|
|
|
56
56
|
___
|
|
57
57
|
|
|
@@ -65,7 +65,7 @@ ___
|
|
|
65
65
|
|
|
66
66
|
#### Defined in
|
|
67
67
|
|
|
68
|
-
[types.ts:6](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
68
|
+
[types.ts:6](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/types.ts#L6)
|
|
69
69
|
|
|
70
70
|
___
|
|
71
71
|
|
|
@@ -85,16 +85,18 @@ Chain-specific asset info type
|
|
|
85
85
|
| `compoundCollateral` | `boolean` |
|
|
86
86
|
| `decimals` | `number` |
|
|
87
87
|
| `exchange` | `boolean` |
|
|
88
|
+
| `feedAvailability` | `BoolMapping` |
|
|
88
89
|
| `icon` | `Function` |
|
|
89
90
|
| `isStable` | `boolean` |
|
|
90
91
|
| `name` | `string` |
|
|
92
|
+
| `nativeChainId` | `number` |
|
|
91
93
|
| `symbol` | `string` |
|
|
92
94
|
| `underlyingAsset` | `string` |
|
|
93
95
|
| `yearnCollateral` | `boolean` |
|
|
94
96
|
|
|
95
97
|
#### Defined in
|
|
96
98
|
|
|
97
|
-
[types.ts:36](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
99
|
+
[types.ts:36](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/types.ts#L36)
|
|
98
100
|
|
|
99
101
|
___
|
|
100
102
|
|
|
@@ -124,7 +126,7 @@ Chain-agnostic asset info type
|
|
|
124
126
|
|
|
125
127
|
#### Defined in
|
|
126
128
|
|
|
127
|
-
[types.ts:17](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
129
|
+
[types.ts:17](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/types.ts#L17)
|
|
128
130
|
|
|
129
131
|
___
|
|
130
132
|
|
|
@@ -134,7 +136,7 @@ ___
|
|
|
134
136
|
|
|
135
137
|
#### Defined in
|
|
136
138
|
|
|
137
|
-
[types.ts:
|
|
139
|
+
[types.ts:77](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/types.ts#L77)
|
|
138
140
|
|
|
139
141
|
___
|
|
140
142
|
|
|
@@ -162,7 +164,7 @@ Maker ilk info type
|
|
|
162
164
|
|
|
163
165
|
#### Defined in
|
|
164
166
|
|
|
165
|
-
[types.ts:
|
|
167
|
+
[types.ts:56](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/types.ts#L56)
|
|
166
168
|
|
|
167
169
|
## Variables
|
|
168
170
|
|
|
@@ -172,7 +174,7 @@ Maker ilk info type
|
|
|
172
174
|
|
|
173
175
|
#### Defined in
|
|
174
176
|
|
|
175
|
-
[index.ts:27](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
177
|
+
[index.ts:27](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/index.ts#L27)
|
|
176
178
|
|
|
177
179
|
___
|
|
178
180
|
|
|
@@ -182,7 +184,7 @@ ___
|
|
|
182
184
|
|
|
183
185
|
#### Defined in
|
|
184
186
|
|
|
185
|
-
[aaveV2Markets.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
187
|
+
[aaveV2Markets.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/aaveV2Markets.ts#L3)
|
|
186
188
|
|
|
187
189
|
___
|
|
188
190
|
|
|
@@ -192,7 +194,7 @@ ___
|
|
|
192
194
|
|
|
193
195
|
#### Defined in
|
|
194
196
|
|
|
195
|
-
[assets.ts:236](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
197
|
+
[assets.ts:236](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/assets.ts#L236)
|
|
196
198
|
|
|
197
199
|
___
|
|
198
200
|
|
|
@@ -202,7 +204,7 @@ ___
|
|
|
202
204
|
|
|
203
205
|
#### Defined in
|
|
204
206
|
|
|
205
|
-
[ilks.ts:5](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
207
|
+
[ilks.ts:5](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/ilks.ts#L5)
|
|
206
208
|
|
|
207
209
|
___
|
|
208
210
|
|
|
@@ -212,7 +214,7 @@ ___
|
|
|
212
214
|
|
|
213
215
|
#### Defined in
|
|
214
216
|
|
|
215
|
-
[reflexerCollTypes.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
217
|
+
[reflexerCollTypes.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/reflexerCollTypes.ts#L3)
|
|
216
218
|
|
|
217
219
|
___
|
|
218
220
|
|
|
@@ -230,7 +232,7 @@ ___
|
|
|
230
232
|
|
|
231
233
|
#### Defined in
|
|
232
234
|
|
|
233
|
-
[index.ts:25](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
235
|
+
[index.ts:25](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/index.ts#L25)
|
|
234
236
|
|
|
235
237
|
## Functions
|
|
236
238
|
|
|
@@ -251,7 +253,7 @@ ___
|
|
|
251
253
|
|
|
252
254
|
#### Defined in
|
|
253
255
|
|
|
254
|
-
[index.ts:149](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
256
|
+
[index.ts:149](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/index.ts#L149)
|
|
255
257
|
|
|
256
258
|
___
|
|
257
259
|
|
|
@@ -272,7 +274,7 @@ ___
|
|
|
272
274
|
|
|
273
275
|
#### Defined in
|
|
274
276
|
|
|
275
|
-
[index.ts:170](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
277
|
+
[index.ts:170](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/index.ts#L170)
|
|
276
278
|
|
|
277
279
|
___
|
|
278
280
|
|
|
@@ -292,7 +294,7 @@ ___
|
|
|
292
294
|
|
|
293
295
|
#### Defined in
|
|
294
296
|
|
|
295
|
-
[index.ts:142](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
297
|
+
[index.ts:142](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/index.ts#L142)
|
|
296
298
|
|
|
297
299
|
___
|
|
298
300
|
|
|
@@ -316,7 +318,7 @@ Warning: will not throw if asset not found. Instead, will return a placeholder o
|
|
|
316
318
|
|
|
317
319
|
#### Defined in
|
|
318
320
|
|
|
319
|
-
[index.ts:60](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
321
|
+
[index.ts:60](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/index.ts#L60)
|
|
320
322
|
|
|
321
323
|
___
|
|
322
324
|
|
|
@@ -337,7 +339,7 @@ ___
|
|
|
337
339
|
|
|
338
340
|
#### Defined in
|
|
339
341
|
|
|
340
|
-
[index.ts:95](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
342
|
+
[index.ts:95](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/index.ts#L95)
|
|
341
343
|
|
|
342
344
|
___
|
|
343
345
|
|
|
@@ -360,7 +362,7 @@ Warning: will not throw if ilk not found. Instead, will return a placeholder obj
|
|
|
360
362
|
|
|
361
363
|
#### Defined in
|
|
362
364
|
|
|
363
|
-
[index.ts:73](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
365
|
+
[index.ts:73](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/index.ts#L73)
|
|
364
366
|
|
|
365
367
|
___
|
|
366
368
|
|
|
@@ -380,7 +382,7 @@ ___
|
|
|
380
382
|
|
|
381
383
|
#### Defined in
|
|
382
384
|
|
|
383
|
-
[index.ts:100](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
385
|
+
[index.ts:100](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/index.ts#L100)
|
|
384
386
|
|
|
385
387
|
___
|
|
386
388
|
|
|
@@ -401,7 +403,7 @@ ___
|
|
|
401
403
|
|
|
402
404
|
#### Defined in
|
|
403
405
|
|
|
404
|
-
[index.ts:21](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
406
|
+
[index.ts:21](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/index.ts#L21)
|
|
405
407
|
|
|
406
408
|
___
|
|
407
409
|
|
|
@@ -424,7 +426,7 @@ Token symbol
|
|
|
424
426
|
|
|
425
427
|
#### Defined in
|
|
426
428
|
|
|
427
|
-
[index.ts:122](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
429
|
+
[index.ts:122](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/index.ts#L122)
|
|
428
430
|
|
|
429
431
|
___
|
|
430
432
|
|
|
@@ -446,7 +448,7 @@ Token symbol
|
|
|
446
448
|
|
|
447
449
|
#### Defined in
|
|
448
450
|
|
|
449
|
-
[index.ts:134](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
451
|
+
[index.ts:134](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/index.ts#L134)
|
|
450
452
|
|
|
451
453
|
___
|
|
452
454
|
|
|
@@ -468,4 +470,4 @@ Token symbol
|
|
|
468
470
|
|
|
469
471
|
#### Defined in
|
|
470
472
|
|
|
471
|
-
[index.ts:140](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
473
|
+
[index.ts:140](https://github.com/DecenterApps/defisaver-tokens/blob/efd9bd0/src/index.ts#L140)
|
package/esm/assets.js
CHANGED
|
@@ -235,7 +235,7 @@ export const assets = [
|
|
|
235
235
|
10: ETHAddress,
|
|
236
236
|
42161: ETHAddress,
|
|
237
237
|
} }),
|
|
238
|
-
Object.assign(Object.assign({}, assetProto), { symbol: 'WETH', feedAvailability: { 1: true, 10: true, 42161: true }, name: '
|
|
238
|
+
Object.assign(Object.assign({}, assetProto), { symbol: 'WETH', feedAvailability: { 1: true, 10: true, 42161: true }, name: 'Wrapped Ether', decimals: 18, addresses: {
|
|
239
239
|
1: WETHAddress,
|
|
240
240
|
10: '0x4200000000000000000000000000000000000006',
|
|
241
241
|
42161: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
|
package/esm/types.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ declare type AssetData = {
|
|
|
34
34
|
name: string;
|
|
35
35
|
address: string;
|
|
36
36
|
addresses: AddressMapping;
|
|
37
|
+
feedAvailability: BoolMapping;
|
|
37
38
|
decimals: number;
|
|
38
39
|
icon: Function;
|
|
39
40
|
underlyingAsset: string;
|
|
@@ -42,6 +43,7 @@ declare type AssetData = {
|
|
|
42
43
|
aaveCollateral: boolean;
|
|
43
44
|
yearnCollateral: boolean;
|
|
44
45
|
isStable: boolean;
|
|
46
|
+
nativeChainId: number;
|
|
45
47
|
};
|
|
46
48
|
/**
|
|
47
49
|
* Maker ilk info type
|
package/package.json
CHANGED
package/src/assets.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -38,6 +38,7 @@ type AssetData = {
|
|
|
38
38
|
name: string;
|
|
39
39
|
address: string;
|
|
40
40
|
addresses: AddressMapping;
|
|
41
|
+
feedAvailability: BoolMapping;
|
|
41
42
|
decimals: number;
|
|
42
43
|
icon: Function;
|
|
43
44
|
underlyingAsset: string;
|
|
@@ -46,6 +47,7 @@ type AssetData = {
|
|
|
46
47
|
aaveCollateral: boolean;
|
|
47
48
|
yearnCollateral: boolean;
|
|
48
49
|
isStable: boolean;
|
|
50
|
+
nativeChainId: number;
|
|
49
51
|
};
|
|
50
52
|
|
|
51
53
|
/**
|