@defisaver/tokens 1.4.21 → 1.4.23

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
@@ -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/a54dc0d/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/a54dc0d/src/types.ts#L6)
69
69
 
70
70
  ___
71
71
 
@@ -94,7 +94,7 @@ Chain-specific asset info type
94
94
 
95
95
  #### Defined in
96
96
 
97
- [types.ts:30](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/types.ts#L30)
97
+ [types.ts:30](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/types.ts#L30)
98
98
 
99
99
  ___
100
100
 
@@ -122,7 +122,7 @@ Chain-agnostic asset info type
122
122
 
123
123
  #### Defined in
124
124
 
125
- [types.ts:13](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/types.ts#L13)
125
+ [types.ts:13](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/types.ts#L13)
126
126
 
127
127
  ___
128
128
 
@@ -132,7 +132,7 @@ ___
132
132
 
133
133
  #### Defined in
134
134
 
135
- [types.ts:69](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/types.ts#L69)
135
+ [types.ts:69](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/types.ts#L69)
136
136
 
137
137
  ___
138
138
 
@@ -160,7 +160,7 @@ Maker ilk info type
160
160
 
161
161
  #### Defined in
162
162
 
163
- [types.ts:48](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/types.ts#L48)
163
+ [types.ts:48](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/types.ts#L48)
164
164
 
165
165
  ## Variables
166
166
 
@@ -170,7 +170,7 @@ Maker ilk info type
170
170
 
171
171
  #### Defined in
172
172
 
173
- [index.ts:27](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L27)
173
+ [index.ts:27](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/index.ts#L27)
174
174
 
175
175
  ___
176
176
 
@@ -180,7 +180,7 @@ ___
180
180
 
181
181
  #### Defined in
182
182
 
183
- [aaveV2Markets.ts:3](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/aaveV2Markets.ts#L3)
183
+ [aaveV2Markets.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/aaveV2Markets.ts#L3)
184
184
 
185
185
  ___
186
186
 
@@ -190,7 +190,7 @@ ___
190
190
 
191
191
  #### Defined in
192
192
 
193
- [assets.ts:231](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/assets.ts#L231)
193
+ [assets.ts:232](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/assets.ts#L232)
194
194
 
195
195
  ___
196
196
 
@@ -200,7 +200,7 @@ ___
200
200
 
201
201
  #### Defined in
202
202
 
203
- [ilks.ts:5](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/ilks.ts#L5)
203
+ [ilks.ts:5](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/ilks.ts#L5)
204
204
 
205
205
  ___
206
206
 
@@ -210,7 +210,7 @@ ___
210
210
 
211
211
  #### Defined in
212
212
 
213
- [reflexerCollTypes.ts:3](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/reflexerCollTypes.ts#L3)
213
+ [reflexerCollTypes.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/reflexerCollTypes.ts#L3)
214
214
 
215
215
  ___
216
216
 
@@ -228,7 +228,7 @@ ___
228
228
 
229
229
  #### Defined in
230
230
 
231
- [index.ts:25](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L25)
231
+ [index.ts:25](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/index.ts#L25)
232
232
 
233
233
  ## Functions
234
234
 
@@ -249,7 +249,7 @@ ___
249
249
 
250
250
  #### Defined in
251
251
 
252
- [index.ts:148](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L148)
252
+ [index.ts:149](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/index.ts#L149)
253
253
 
254
254
  ___
255
255
 
@@ -270,7 +270,7 @@ ___
270
270
 
271
271
  #### Defined in
272
272
 
273
- [index.ts:169](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L169)
273
+ [index.ts:170](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/index.ts#L170)
274
274
 
275
275
  ___
276
276
 
@@ -290,7 +290,7 @@ ___
290
290
 
291
291
  #### Defined in
292
292
 
293
- [index.ts:141](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L141)
293
+ [index.ts:142](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/index.ts#L142)
294
294
 
295
295
  ___
296
296
 
@@ -314,7 +314,7 @@ Warning: will not throw if asset not found. Instead, will return a placeholder o
314
314
 
315
315
  #### Defined in
316
316
 
317
- [index.ts:60](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L60)
317
+ [index.ts:60](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/index.ts#L60)
318
318
 
319
319
  ___
320
320
 
@@ -335,7 +335,7 @@ ___
335
335
 
336
336
  #### Defined in
337
337
 
338
- [index.ts:95](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L95)
338
+ [index.ts:95](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/index.ts#L95)
339
339
 
340
340
  ___
341
341
 
@@ -358,7 +358,7 @@ Warning: will not throw if ilk not found. Instead, will return a placeholder obj
358
358
 
359
359
  #### Defined in
360
360
 
361
- [index.ts:73](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L73)
361
+ [index.ts:73](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/index.ts#L73)
362
362
 
363
363
  ___
364
364
 
@@ -378,7 +378,7 @@ ___
378
378
 
379
379
  #### Defined in
380
380
 
381
- [index.ts:100](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L100)
381
+ [index.ts:100](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/index.ts#L100)
382
382
 
383
383
  ___
384
384
 
@@ -399,7 +399,7 @@ ___
399
399
 
400
400
  #### Defined in
401
401
 
402
- [index.ts:21](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L21)
402
+ [index.ts:21](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/index.ts#L21)
403
403
 
404
404
  ___
405
405
 
@@ -422,7 +422,7 @@ Token symbol
422
422
 
423
423
  #### Defined in
424
424
 
425
- [index.ts:121](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L121)
425
+ [index.ts:122](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/index.ts#L122)
426
426
 
427
427
  ___
428
428
 
@@ -444,7 +444,7 @@ Token symbol
444
444
 
445
445
  #### Defined in
446
446
 
447
- [index.ts:133](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L133)
447
+ [index.ts:134](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/index.ts#L134)
448
448
 
449
449
  ___
450
450
 
@@ -466,4 +466,4 @@ Token symbol
466
466
 
467
467
  #### Defined in
468
468
 
469
- [index.ts:139](https://github.com/defisaver/defisaver-tokens/blob/117ec02/src/index.ts#L139)
469
+ [index.ts:140](https://github.com/DecenterApps/defisaver-tokens/blob/a54dc0d/src/index.ts#L140)
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/ilks.js CHANGED
@@ -425,7 +425,7 @@ export const ilks = [
425
425
  "ilkBytes": "0x435256563145544853544554482d410000000000000000000000000000000000",
426
426
  "join": "0x82D8bfDB61404C796385f251654F6d7e92092b5D",
427
427
  "clip": "0x1926862F899410BfC19FeFb8A3C69C7Aed22463a",
428
- "pip": "0x0A7DA4e31582a2fB4FD4067943e88f127F70ab39",
428
+ "pip": "0xEa508F82728927454bd3ce853171b0e2705880D4",
429
429
  "isLP": true,
430
430
  "isCrop": true
431
431
  },
@@ -439,5 +439,16 @@ export const ilks = [
439
439
  "pip": "0xFe7a2aC0B945f12089aEEB6eCebf4F384D9f043F",
440
440
  "isLP": false,
441
441
  "isCrop": false
442
+ },
443
+ {
444
+ "asset": "rETH",
445
+ "assetAddress": "0xae78736Cd615f374D3085123A210448E74Fc6393",
446
+ "ilkLabel": "RETH-A",
447
+ "ilkBytes": "0x524554482d410000000000000000000000000000000000000000000000000000",
448
+ "join": "0xC6424e862f1462281B0a5FAc078e4b63006bDEBF",
449
+ "clip": "0x27CA5E525ea473eD52Ea9423CD08cCc081d96a98",
450
+ "pip": "0xeE7F0b350aA119b3d05DC733a4621a81972f7D47",
451
+ "isLP": false,
452
+ "isCrop": false
442
453
  }
443
454
  ];
package/esm/index.js CHANGED
@@ -92,6 +92,8 @@ export const ilkToAsset = (ilk = '') => {
92
92
  return 'wstETH';
93
93
  if (asset === 'CRVV1ETHSTETH')
94
94
  return 'steCRV';
95
+ if (asset === 'RETH')
96
+ return 'rETH';
95
97
  return asset;
96
98
  };
97
99
  /** @private **/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/tokens",
3
- "version": "1.4.21",
3
+ "version": "1.4.23",
4
4
  "description": "Centralized asset data & utility functions",
5
5
  "main": "umd/index.js",
6
6
  "module": "esm/index.js",
package/src/assets.ts CHANGED
@@ -210,6 +210,7 @@ const GuniDaiUsdc1Address = "0xAbDDAfB225e10B90D798bB8A886238Fb835e2053";
210
210
  const GuniDaiUsdc2Address = "0x50379f632ca68D36E50cfBC8F78fe16bd1499d1e";
211
211
  const USTAddress = "0xa693B19d2931d498c5B318dF961919BB4aee87a5"
212
212
  const cFeiAddress = "0x7713DD9Ca933848F6819F38B8352D9A15EA73F67";
213
+ const bLUSDAddress = "0xB9D7DdDca9a4AC480991865EfEf82E01273F79C3";
213
214
 
214
215
  export const assetProto: AssetDataBase = {
215
216
  symbol: '?',
@@ -2410,7 +2411,7 @@ export const assets: AssetDataBase[] = [
2410
2411
  {
2411
2412
  ...assetProto,
2412
2413
  symbol: 'cFEI',
2413
- underlyingAsset:'FEI',
2414
+ underlyingAsset: 'FEI',
2414
2415
  name: 'Fei Protocol',
2415
2416
  addresses: {
2416
2417
  1: cFeiAddress,
@@ -2439,4 +2440,14 @@ export const assets: AssetDataBase[] = [
2439
2440
  exchange: true,
2440
2441
  decimals: 18,
2441
2442
  },
2443
+ {
2444
+ ...assetProto,
2445
+ symbol: 'bLUSD',
2446
+ name: 'Boosted LUSD',
2447
+ addresses: {
2448
+ 1: bLUSDAddress,
2449
+ },
2450
+ exchange: true,
2451
+ decimals: 18,
2452
+ }
2442
2453
  ];
package/src/ilks.ts CHANGED
@@ -428,7 +428,7 @@ export const ilks:IlkData[] = [
428
428
  "ilkBytes": "0x435256563145544853544554482d410000000000000000000000000000000000",
429
429
  "join": "0x82D8bfDB61404C796385f251654F6d7e92092b5D",
430
430
  "clip": "0x1926862F899410BfC19FeFb8A3C69C7Aed22463a",
431
- "pip": "0x0A7DA4e31582a2fB4FD4067943e88f127F70ab39",
431
+ "pip": "0xEa508F82728927454bd3ce853171b0e2705880D4",
432
432
  "isLP": true,
433
433
  "isCrop": true
434
434
  },
@@ -442,5 +442,16 @@ export const ilks:IlkData[] = [
442
442
  "pip": "0xFe7a2aC0B945f12089aEEB6eCebf4F384D9f043F",
443
443
  "isLP": false,
444
444
  "isCrop": false
445
+ },
446
+ {
447
+ "asset": "rETH",
448
+ "assetAddress": "0xae78736Cd615f374D3085123A210448E74Fc6393",
449
+ "ilkLabel": "RETH-A",
450
+ "ilkBytes": "0x524554482d410000000000000000000000000000000000000000000000000000",
451
+ "join": "0xC6424e862f1462281B0a5FAc078e4b63006bDEBF",
452
+ "clip": "0x27CA5E525ea473eD52Ea9423CD08cCc081d96a98",
453
+ "pip": "0xeE7F0b350aA119b3d05DC733a4621a81972f7D47",
454
+ "isLP": false,
455
+ "isCrop": false
445
456
  }
446
457
  ];
package/src/index.ts CHANGED
@@ -105,6 +105,7 @@ export const ilkToAsset = (ilk: string = ''):string => {
105
105
  if (asset === 'PAXUSD' || asset === 'PAX') return 'USDP';
106
106
  if (asset === 'WSTETH') return 'wstETH';
107
107
  if (asset === 'CRVV1ETHSTETH') return 'steCRV';
108
+ if (asset === 'RETH') return 'rETH';
108
109
  return asset;
109
110
  }
110
111
 
package/umd/index.js CHANGED
@@ -168,6 +168,7 @@ var ilkToAsset = function ilkToAsset() {
168
168
  if (asset === 'PAXUSD' || asset === 'PAX') return 'USDP';
169
169
  if (asset === 'WSTETH') return 'wstETH';
170
170
  if (asset === 'CRVV1ETHSTETH') return 'steCRV';
171
+ if (asset === 'RETH') return 'rETH';
171
172
  return asset;
172
173
  };
173
174
  /** @private **/
@@ -469,6 +470,7 @@ var GuniDaiUsdc1Address = "0xAbDDAfB225e10B90D798bB8A886238Fb835e2053";
469
470
  var GuniDaiUsdc2Address = "0x50379f632ca68D36E50cfBC8F78fe16bd1499d1e";
470
471
  var USTAddress = "0xa693B19d2931d498c5B318dF961919BB4aee87a5";
471
472
  var cFeiAddress = "0x7713DD9Ca933848F6819F38B8352D9A15EA73F67";
473
+ var bLUSDAddress = "0xB9D7DdDca9a4AC480991865EfEf82E01273F79C3";
472
474
  var assetProto = {
473
475
  symbol: '?',
474
476
  name: 'Unknown',
@@ -2272,6 +2274,14 @@ var assets = [_objectSpread(_objectSpread({}, assetProto), {}, {
2272
2274
  },
2273
2275
  exchange: true,
2274
2276
  decimals: 18
2277
+ }), _objectSpread(_objectSpread({}, assetProto), {}, {
2278
+ symbol: 'bLUSD',
2279
+ name: 'Boosted LUSD',
2280
+ addresses: {
2281
+ 1: bLUSDAddress
2282
+ },
2283
+ exchange: true,
2284
+ decimals: 18
2275
2285
  })];
2276
2286
 
2277
2287
  /***/ }),
@@ -2670,7 +2680,7 @@ var ilks = [{
2670
2680
  "ilkBytes": "0x435256563145544853544554482d410000000000000000000000000000000000",
2671
2681
  "join": "0x82D8bfDB61404C796385f251654F6d7e92092b5D",
2672
2682
  "clip": "0x1926862F899410BfC19FeFb8A3C69C7Aed22463a",
2673
- "pip": "0x0A7DA4e31582a2fB4FD4067943e88f127F70ab39",
2683
+ "pip": "0xEa508F82728927454bd3ce853171b0e2705880D4",
2674
2684
  "isLP": true,
2675
2685
  "isCrop": true
2676
2686
  }, {
@@ -2683,6 +2693,16 @@ var ilks = [{
2683
2693
  "pip": "0xFe7a2aC0B945f12089aEEB6eCebf4F384D9f043F",
2684
2694
  "isLP": false,
2685
2695
  "isCrop": false
2696
+ }, {
2697
+ "asset": "rETH",
2698
+ "assetAddress": "0xae78736Cd615f374D3085123A210448E74Fc6393",
2699
+ "ilkLabel": "RETH-A",
2700
+ "ilkBytes": "0x524554482d410000000000000000000000000000000000000000000000000000",
2701
+ "join": "0xC6424e862f1462281B0a5FAc078e4b63006bDEBF",
2702
+ "clip": "0x27CA5E525ea473eD52Ea9423CD08cCc081d96a98",
2703
+ "pip": "0xeE7F0b350aA119b3d05DC733a4621a81972f7D47",
2704
+ "isLP": false,
2705
+ "isCrop": false
2686
2706
  }];
2687
2707
 
2688
2708
  /***/ }),
package/webpack.umd.js CHANGED
@@ -9,7 +9,8 @@ module.exports = {
9
9
  libraryTarget: 'umd',
10
10
  path: path.resolve(__dirname, 'umd'),
11
11
  filename: 'index.js',
12
- globalObject: 'this'
12
+ globalObject: 'this',
13
+ hashFunction: "sha256"
13
14
  },
14
15
  module: {
15
16
  rules: [