@defisaver/tokens 1.4.21 → 1.4.22

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Table of contents
4
4
 
5
- ### Type aliases
5
+ ### Type Aliases
6
6
 
7
7
  - [AaveMarketData](README.md#aavemarketdata)
8
8
  - [AddressMapping](README.md#addressmapping)
@@ -34,7 +34,7 @@
34
34
  - [tokenFromMakerJoin](README.md#tokenfrommakerjoin)
35
35
  - [tokenFromReflexerJoin](README.md#tokenfromreflexerjoin)
36
36
 
37
- ## Type aliases
37
+ ## Type Aliases
38
38
 
39
39
  ### AaveMarketData
40
40
 
@@ -51,7 +51,7 @@
51
51
 
52
52
  #### Defined in
53
53
 
54
- [types.ts:62](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/types.ts#L62)
54
+ [types.ts:62](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/types.ts#L62)
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/defisaver/defisaver-tokens/blob/117ec02/src/types.ts#L6)
68
+ [types.ts:6](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/types.ts#L6)
69
69
 
70
70
  ___
71
71
 
@@ -73,8 +73,6 @@ ___
73
73
 
74
74
  Ƭ **AssetData**: `Object`
75
75
 
76
- Chain-specific asset info type
77
-
78
76
  #### Type declaration
79
77
 
80
78
  | Name | Type |
@@ -94,7 +92,7 @@ Chain-specific asset info type
94
92
 
95
93
  #### Defined in
96
94
 
97
- [types.ts:30](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/types.ts#L30)
95
+ [types.ts:30](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/types.ts#L30)
98
96
 
99
97
  ___
100
98
 
@@ -102,8 +100,6 @@ ___
102
100
 
103
101
  Ƭ **AssetDataBase**: `Object`
104
102
 
105
- Chain-agnostic asset info type
106
-
107
103
  #### Type declaration
108
104
 
109
105
  | Name | Type |
@@ -122,7 +118,7 @@ Chain-agnostic asset info type
122
118
 
123
119
  #### Defined in
124
120
 
125
- [types.ts:13](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/types.ts#L13)
121
+ [types.ts:13](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/types.ts#L13)
126
122
 
127
123
  ___
128
124
 
@@ -132,7 +128,7 @@ ___
132
128
 
133
129
  #### Defined in
134
130
 
135
- [types.ts:69](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/types.ts#L69)
131
+ [types.ts:69](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/types.ts#L69)
136
132
 
137
133
  ___
138
134
 
@@ -140,8 +136,6 @@ ___
140
136
 
141
137
  Ƭ **IlkData**: `Object`
142
138
 
143
- Maker ilk info type
144
-
145
139
  #### Type declaration
146
140
 
147
141
  | Name | Type |
@@ -160,63 +154,63 @@ Maker ilk info type
160
154
 
161
155
  #### Defined in
162
156
 
163
- [types.ts:48](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/types.ts#L48)
157
+ [types.ts:48](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/types.ts#L48)
164
158
 
165
159
  ## Variables
166
160
 
167
161
  ### MAXUINT
168
162
 
169
- • **MAXUINT**: `string` = `'115792089237316195423570985008687907853269984665640564039457584007913129639935'`
163
+ `Const` **MAXUINT**: `string` = `'115792089237316195423570985008687907853269984665640564039457584007913129639935'`
170
164
 
171
165
  #### Defined in
172
166
 
173
- [index.ts:27](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L27)
167
+ [index.ts:27](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/index.ts#L27)
174
168
 
175
169
  ___
176
170
 
177
171
  ### aaveV2Markets
178
172
 
179
- • **aaveV2Markets**: [`AaveMarketData`](README.md#aavemarketdata)[]
173
+ `Const` **aaveV2Markets**: [`AaveMarketData`](README.md#aavemarketdata)[]
180
174
 
181
175
  #### Defined in
182
176
 
183
- [aaveV2Markets.ts:3](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/aaveV2Markets.ts#L3)
177
+ [aaveV2Markets.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/aaveV2Markets.ts#L3)
184
178
 
185
179
  ___
186
180
 
187
181
  ### assets
188
182
 
189
- • **assets**: [`AssetDataBase`](README.md#assetdatabase)[]
183
+ `Const` **assets**: [`AssetDataBase`](README.md#assetdatabase)[]
190
184
 
191
185
  #### Defined in
192
186
 
193
- [assets.ts:231](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/assets.ts#L231)
187
+ [assets.ts:232](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/assets.ts#L232)
194
188
 
195
189
  ___
196
190
 
197
191
  ### ilks
198
192
 
199
- • **ilks**: [`IlkData`](README.md#ilkdata)[]
193
+ `Const` **ilks**: [`IlkData`](README.md#ilkdata)[]
200
194
 
201
195
  #### Defined in
202
196
 
203
- [ilks.ts:5](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/ilks.ts#L5)
197
+ [ilks.ts:5](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/ilks.ts#L5)
204
198
 
205
199
  ___
206
200
 
207
201
  ### reflexerCollTypes
208
202
 
209
- • **reflexerCollTypes**: [`IlkData`](README.md#ilkdata)[]
203
+ `Const` **reflexerCollTypes**: [`IlkData`](README.md#ilkdata)[]
210
204
 
211
205
  #### Defined in
212
206
 
213
- [reflexerCollTypes.ts:3](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/reflexerCollTypes.ts#L3)
207
+ [reflexerCollTypes.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/reflexerCollTypes.ts#L3)
214
208
 
215
209
  ___
216
210
 
217
211
  ### utils
218
212
 
219
- • **utils**: `Object`
213
+ `Const` **utils**: `Object`
220
214
 
221
215
  #### Type declaration
222
216
 
@@ -228,20 +222,20 @@ ___
228
222
 
229
223
  #### Defined in
230
224
 
231
- [index.ts:25](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L25)
225
+ [index.ts:25](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/index.ts#L25)
232
226
 
233
227
  ## Functions
234
228
 
235
229
  ### assetAmountInEth
236
230
 
237
- `Const` **assetAmountInEth**(`amount`, `asset?`): `string`
231
+ ▸ **assetAmountInEth**(`amount`, `asset?`): `string`
238
232
 
239
233
  #### Parameters
240
234
 
241
235
  | Name | Type | Default value | Description |
242
236
  | :------ | :------ | :------ | :------ |
243
- | `amount` | `string` \| `number` \| `object` | `undefined` | Amount in wei |
244
- | `asset` | `string` | `'ETH'` | Asset symbol (or `MCD-${symbol}` for maker asset - always 18dec) |
237
+ | `amount` | `string` \| `number` \| `object` | `undefined` | |
238
+ | `asset` | `string` | `'ETH'` | |
245
239
 
246
240
  #### Returns
247
241
 
@@ -249,20 +243,20 @@ ___
249
243
 
250
244
  #### Defined in
251
245
 
252
- [index.ts:148](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L148)
246
+ [index.ts:148](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/index.ts#L148)
253
247
 
254
248
  ___
255
249
 
256
250
  ### assetAmountInWei
257
251
 
258
- `Const` **assetAmountInWei**(`amount`, `asset`): `string`
252
+ ▸ **assetAmountInWei**(`amount`, `asset`): `string`
259
253
 
260
254
  #### Parameters
261
255
 
262
256
  | Name | Type | Description |
263
257
  | :------ | :------ | :------ |
264
- | `amount` | `string` \| `number` \| `object` | Amount in eth |
265
- | `asset` | `string` | Asset symbol |
258
+ | `amount` | `string` \| `number` \| `object` | |
259
+ | `asset` | `string` | |
266
260
 
267
261
  #### Returns
268
262
 
@@ -270,13 +264,13 @@ ___
270
264
 
271
265
  #### Defined in
272
266
 
273
- [index.ts:169](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L169)
267
+ [index.ts:169](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/index.ts#L169)
274
268
 
275
269
  ___
276
270
 
277
271
  ### getAaveV2MarketInfo
278
272
 
279
- `Const` **getAaveV2MarketInfo**(`name?`): `void` \| [`AaveMarketData`](README.md#aavemarketdata)
273
+ ▸ **getAaveV2MarketInfo**(`name?`): `void` \| [`AaveMarketData`](README.md#aavemarketdata)
280
274
 
281
275
  #### Parameters
282
276
 
@@ -290,16 +284,13 @@ ___
290
284
 
291
285
  #### Defined in
292
286
 
293
- [index.ts:141](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L141)
287
+ [index.ts:141](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/index.ts#L141)
294
288
 
295
289
  ___
296
290
 
297
291
  ### getAssetInfo
298
292
 
299
- `Const` **getAssetInfo**(`symbol?`, `chainId?`): [`AssetData`](README.md#assetdata)
300
-
301
- Returns asset info.
302
- Warning: will not throw if asset not found. Instead, will return a placeholder object.
293
+ ▸ **getAssetInfo**(`symbol?`, `chainId?`): [`AssetData`](README.md#assetdata)
303
294
 
304
295
  #### Parameters
305
296
 
@@ -314,13 +305,13 @@ Warning: will not throw if asset not found. Instead, will return a placeholder o
314
305
 
315
306
  #### Defined in
316
307
 
317
- [index.ts:60](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L60)
308
+ [index.ts:60](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/index.ts#L60)
318
309
 
319
310
  ___
320
311
 
321
312
  ### getAssetInfoByAddress
322
313
 
323
- `Const` **getAssetInfoByAddress**(`address?`, `chainId?`): [`AssetData`](README.md#assetdata)
314
+ ▸ **getAssetInfoByAddress**(`address?`, `chainId?`): [`AssetData`](README.md#assetdata)
324
315
 
325
316
  #### Parameters
326
317
 
@@ -335,22 +326,19 @@ ___
335
326
 
336
327
  #### Defined in
337
328
 
338
- [index.ts:95](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L95)
329
+ [index.ts:95](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/index.ts#L95)
339
330
 
340
331
  ___
341
332
 
342
333
  ### getIlkInfo
343
334
 
344
- `Const` **getIlkInfo**(`ilk?`): [`ExtendedIlkData`](README.md#extendedilkdata)
345
-
346
- Returns Maker or Reflexer ilk info, and asset info as `assetData` attribute.
347
- Warning: will not throw if ilk not found. Instead, will return a placeholder object.
335
+ ▸ **getIlkInfo**(`ilk?`): [`ExtendedIlkData`](README.md#extendedilkdata)
348
336
 
349
337
  #### Parameters
350
338
 
351
339
  | Name | Type | Default value | Description |
352
340
  | :------ | :------ | :------ | :------ |
353
- | `ilk` | `string` | `''` | Ilk encoded as string or as hex |
341
+ | `ilk` | `string` | `''` | |
354
342
 
355
343
  #### Returns
356
344
 
@@ -358,13 +346,13 @@ Warning: will not throw if ilk not found. Instead, will return a placeholder obj
358
346
 
359
347
  #### Defined in
360
348
 
361
- [index.ts:73](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L73)
349
+ [index.ts:73](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/index.ts#L73)
362
350
 
363
351
  ___
364
352
 
365
353
  ### ilkToAsset
366
354
 
367
- `Const` **ilkToAsset**(`ilk?`): `string`
355
+ ▸ **ilkToAsset**(`ilk?`): `string`
368
356
 
369
357
  #### Parameters
370
358
 
@@ -378,13 +366,13 @@ ___
378
366
 
379
367
  #### Defined in
380
368
 
381
- [index.ts:100](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L100)
369
+ [index.ts:100](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/index.ts#L100)
382
370
 
383
371
  ___
384
372
 
385
373
  ### set
386
374
 
387
- `Const` **set**(`key`, `value`): `void`
375
+ ▸ **set**(`key`, `value`): `void`
388
376
 
389
377
  #### Parameters
390
378
 
@@ -399,71 +387,65 @@ ___
399
387
 
400
388
  #### Defined in
401
389
 
402
- [index.ts:21](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L21)
390
+ [index.ts:21](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/index.ts#L21)
403
391
 
404
392
  ___
405
393
 
406
394
  ### tokenFromJoin
407
395
 
408
- `Const` **tokenFromJoin**(`join`, `fromIlks?`): `string`
396
+ ▸ **tokenFromJoin**(`join`, `fromIlks?`): `string`
409
397
 
410
398
  #### Parameters
411
399
 
412
400
  | Name | Type | Default value | Description |
413
401
  | :------ | :------ | :------ | :------ |
414
- | `join` | `string` | `undefined` | Maker or Reflexer ilk join |
402
+ | `join` | `string` | `undefined` | |
415
403
  | `fromIlks` | [`IlkData`](README.md#ilkdata)[] | `ilks` | |
416
404
 
417
405
  #### Returns
418
406
 
419
407
  `string`
420
408
 
421
- Token symbol
422
-
423
409
  #### Defined in
424
410
 
425
- [index.ts:121](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L121)
411
+ [index.ts:121](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/index.ts#L121)
426
412
 
427
413
  ___
428
414
 
429
415
  ### tokenFromMakerJoin
430
416
 
431
- `Const` **tokenFromMakerJoin**(`join`): `string`
417
+ ▸ **tokenFromMakerJoin**(`join`): `string`
432
418
 
433
419
  #### Parameters
434
420
 
435
421
  | Name | Type | Description |
436
422
  | :------ | :------ | :------ |
437
- | `join` | `string` | Maker ilk join |
423
+ | `join` | `string` | |
438
424
 
439
425
  #### Returns
440
426
 
441
427
  `string`
442
428
 
443
- Token symbol
444
-
445
429
  #### Defined in
446
430
 
447
- [index.ts:133](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L133)
431
+ [index.ts:133](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/index.ts#L133)
448
432
 
449
433
  ___
450
434
 
451
435
  ### tokenFromReflexerJoin
452
436
 
453
- `Const` **tokenFromReflexerJoin**(`join`): `string`
437
+ ▸ **tokenFromReflexerJoin**(`join`): `string`
454
438
 
455
439
  #### Parameters
456
440
 
457
441
  | Name | Type | Description |
458
442
  | :------ | :------ | :------ |
459
- | `join` | `string` | Reflexer ilk join |
443
+ | `join` | `string` | |
460
444
 
461
445
  #### Returns
462
446
 
463
447
  `string`
464
448
 
465
- Token symbol
466
-
467
449
  #### Defined in
468
450
 
469
- [index.ts:139](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L139)
451
+ [index.ts:139](https://github.com/DecenterApps/defisaver-tokens/blob/117ec02/src/index.ts#L139)
package/esm/assets.js CHANGED
@@ -208,6 +208,7 @@ const GuniDaiUsdc1Address = "0xAbDDAfB225e10B90D798bB8A886238Fb835e2053";
208
208
  const GuniDaiUsdc2Address = "0x50379f632ca68D36E50cfBC8F78fe16bd1499d1e";
209
209
  const USTAddress = "0xa693B19d2931d498c5B318dF961919BB4aee87a5";
210
210
  const cFeiAddress = "0x7713DD9Ca933848F6819F38B8352D9A15EA73F67";
211
+ const bLUSDAddress = "0xB9D7DdDca9a4AC480991865EfEf82E01273F79C3";
211
212
  export const assetProto = {
212
213
  symbol: '?',
213
214
  name: 'Unknown',
@@ -896,4 +897,7 @@ export const assets = [
896
897
  Object.assign(Object.assign({}, assetProto), { symbol: 'OP', name: 'Optimism', addresses: {
897
898
  10: '0x4200000000000000000000000000000000000042',
898
899
  }, exchange: true, decimals: 18 }),
900
+ Object.assign(Object.assign({}, assetProto), { symbol: 'bLUSD', name: 'Boosted LUSD', addresses: {
901
+ 1: bLUSDAddress,
902
+ }, exchange: true, decimals: 18 })
899
903
  ];
package/esm/index.d.ts CHANGED
@@ -24,7 +24,7 @@ export declare const MAXUINT: string;
24
24
  * @param chainId {number}
25
25
  * @return {AssetData}
26
26
  */
27
- export declare const getAssetInfo: (symbol?: string, chainId?: number | undefined) => AssetData;
27
+ export declare const getAssetInfo: (symbol?: string, chainId?: number) => AssetData;
28
28
  /**
29
29
  * Returns Maker or Reflexer ilk info, and asset info as `assetData` attribute.
30
30
  * Warning: will not throw if ilk not found. Instead, will return a placeholder object.
@@ -33,7 +33,7 @@ export declare const getAssetInfo: (symbol?: string, chainId?: number | undefine
33
33
  * @returns {ExtendedIlkData}
34
34
  */
35
35
  export declare const getIlkInfo: (ilk?: string) => ExtendedIlkData;
36
- export declare const getAssetInfoByAddress: (address?: string, chainId?: number | undefined) => AssetData;
36
+ export declare const getAssetInfoByAddress: (address?: string, chainId?: number) => AssetData;
37
37
  export declare const ilkToAsset: (ilk?: string) => string;
38
38
  /** @private **/
39
39
  export declare const compoundAsset: (underlyingAsset: string) => string;