@defisaver/tokens 1.5.0 → 1.5.2

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/.env ADDED
@@ -0,0 +1,3 @@
1
+ MAINNET_RPC=https://mainnet.infura.io/v3/a3503e4501d040cd9ea2c913c68983a1
2
+ OPTIMISM_RPC=https://opt-mainnet.g.alchemy.com/v2/Pwh-hdbsP7Bf0CP_UMw4_Pw-NfHhSpIA
3
+ ARBITRUM_RPC=https://arb-mainnet.g.alchemy.com/v2/Pwh-hdbsP7Bf0CP_UMw4_Pw-NfHhSpIA
package/README.md CHANGED
@@ -51,7 +51,7 @@
51
51
 
52
52
  #### Defined in
53
53
 
54
- [types.ts:70](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/types.ts#L70)
54
+ [types.ts:70](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/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/d24c8b9/src/types.ts#L6)
68
+ [types.ts:6](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/types.ts#L6)
69
69
 
70
70
  ___
71
71
 
@@ -96,7 +96,7 @@ Chain-specific asset info type
96
96
 
97
97
  #### Defined in
98
98
 
99
- [types.ts:36](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/types.ts#L36)
99
+ [types.ts:36](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/types.ts#L36)
100
100
 
101
101
  ___
102
102
 
@@ -126,7 +126,7 @@ Chain-agnostic asset info type
126
126
 
127
127
  #### Defined in
128
128
 
129
- [types.ts:17](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/types.ts#L17)
129
+ [types.ts:17](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/types.ts#L17)
130
130
 
131
131
  ___
132
132
 
@@ -136,7 +136,7 @@ ___
136
136
 
137
137
  #### Defined in
138
138
 
139
- [types.ts:77](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/types.ts#L77)
139
+ [types.ts:77](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/types.ts#L77)
140
140
 
141
141
  ___
142
142
 
@@ -164,7 +164,7 @@ Maker ilk info type
164
164
 
165
165
  #### Defined in
166
166
 
167
- [types.ts:56](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/types.ts#L56)
167
+ [types.ts:56](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/types.ts#L56)
168
168
 
169
169
  ## Variables
170
170
 
@@ -174,7 +174,7 @@ Maker ilk info type
174
174
 
175
175
  #### Defined in
176
176
 
177
- [index.ts:27](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/index.ts#L27)
177
+ [index.ts:27](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/index.ts#L27)
178
178
 
179
179
  ___
180
180
 
@@ -184,7 +184,7 @@ ___
184
184
 
185
185
  #### Defined in
186
186
 
187
- [aaveV2Markets.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/aaveV2Markets.ts#L3)
187
+ [aaveV2Markets.ts:3](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/aaveV2Markets.ts#L3)
188
188
 
189
189
  ___
190
190
 
@@ -194,7 +194,7 @@ ___
194
194
 
195
195
  #### Defined in
196
196
 
197
- [assets.ts:242](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/assets.ts#L242)
197
+ [assets.ts:243](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/assets.ts#L243)
198
198
 
199
199
  ___
200
200
 
@@ -204,7 +204,7 @@ ___
204
204
 
205
205
  #### Defined in
206
206
 
207
- [ilks.ts:5](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/ilks.ts#L5)
207
+ [ilks.ts:5](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/ilks.ts#L5)
208
208
 
209
209
  ___
210
210
 
@@ -214,7 +214,7 @@ ___
214
214
 
215
215
  #### Defined in
216
216
 
217
- [reflexerCollTypes.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/reflexerCollTypes.ts#L3)
217
+ [reflexerCollTypes.ts:3](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/reflexerCollTypes.ts#L3)
218
218
 
219
219
  ___
220
220
 
@@ -232,7 +232,7 @@ ___
232
232
 
233
233
  #### Defined in
234
234
 
235
- [index.ts:25](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/index.ts#L25)
235
+ [index.ts:25](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/index.ts#L25)
236
236
 
237
237
  ## Functions
238
238
 
@@ -253,7 +253,7 @@ ___
253
253
 
254
254
  #### Defined in
255
255
 
256
- [index.ts:149](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/index.ts#L149)
256
+ [index.ts:149](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/index.ts#L149)
257
257
 
258
258
  ___
259
259
 
@@ -274,7 +274,7 @@ ___
274
274
 
275
275
  #### Defined in
276
276
 
277
- [index.ts:170](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/index.ts#L170)
277
+ [index.ts:170](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/index.ts#L170)
278
278
 
279
279
  ___
280
280
 
@@ -294,7 +294,7 @@ ___
294
294
 
295
295
  #### Defined in
296
296
 
297
- [index.ts:142](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/index.ts#L142)
297
+ [index.ts:142](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/index.ts#L142)
298
298
 
299
299
  ___
300
300
 
@@ -318,7 +318,7 @@ Warning: will not throw if asset not found. Instead, will return a placeholder o
318
318
 
319
319
  #### Defined in
320
320
 
321
- [index.ts:60](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/index.ts#L60)
321
+ [index.ts:60](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/index.ts#L60)
322
322
 
323
323
  ___
324
324
 
@@ -339,7 +339,7 @@ ___
339
339
 
340
340
  #### Defined in
341
341
 
342
- [index.ts:95](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/index.ts#L95)
342
+ [index.ts:95](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/index.ts#L95)
343
343
 
344
344
  ___
345
345
 
@@ -362,7 +362,7 @@ Warning: will not throw if ilk not found. Instead, will return a placeholder obj
362
362
 
363
363
  #### Defined in
364
364
 
365
- [index.ts:73](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/index.ts#L73)
365
+ [index.ts:73](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/index.ts#L73)
366
366
 
367
367
  ___
368
368
 
@@ -382,7 +382,7 @@ ___
382
382
 
383
383
  #### Defined in
384
384
 
385
- [index.ts:100](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/index.ts#L100)
385
+ [index.ts:100](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/index.ts#L100)
386
386
 
387
387
  ___
388
388
 
@@ -403,7 +403,7 @@ ___
403
403
 
404
404
  #### Defined in
405
405
 
406
- [index.ts:21](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/index.ts#L21)
406
+ [index.ts:21](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/index.ts#L21)
407
407
 
408
408
  ___
409
409
 
@@ -426,7 +426,7 @@ Token symbol
426
426
 
427
427
  #### Defined in
428
428
 
429
- [index.ts:122](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/index.ts#L122)
429
+ [index.ts:122](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/index.ts#L122)
430
430
 
431
431
  ___
432
432
 
@@ -448,7 +448,7 @@ Token symbol
448
448
 
449
449
  #### Defined in
450
450
 
451
- [index.ts:134](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/index.ts#L134)
451
+ [index.ts:134](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/index.ts#L134)
452
452
 
453
453
  ___
454
454
 
@@ -470,4 +470,4 @@ Token symbol
470
470
 
471
471
  #### Defined in
472
472
 
473
- [index.ts:140](https://github.com/DecenterApps/defisaver-tokens/blob/d24c8b9/src/index.ts#L140)
473
+ [index.ts:140](https://github.com/defisaver/defisaver-tokens/blob/5f35b4d/src/index.ts#L140)
package/esm/assets.js CHANGED
@@ -217,6 +217,7 @@ const cbETHCrvAddress = "0x5b6c539b224014a09b3388e51caaa8e354c959c8";
217
217
  const sfrxETH = "0xac3E018457B222d93114458476f3E3416Abbe38F";
218
218
  const crvUSD = "0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E";
219
219
  const sDAIAddress = "0x83F20F44975D03b1b09e64809B757c47f942BEeA";
220
+ const tBTCAddress = "0x18084fbA666a33d37592fA2633fD49a74DD93a88";
220
221
  export const assetProto = {
221
222
  symbol: '?',
222
223
  feedAvailability: {},
@@ -537,7 +538,7 @@ export const assets = [
537
538
  Object.assign(Object.assign({}, assetProto), { symbol: 'SUSHI', feedAvailability: { 1: true }, name: 'Sushi Token', addresses: {
538
539
  1: SushiAddress,
539
540
  }, exchange: true, decimals: 18 }),
540
- Object.assign(Object.assign({}, assetProto), { symbol: 'CREAM', feedAvailability: { 1: true }, name: 'C.R.E.A.M.', addresses: {
541
+ Object.assign(Object.assign({}, assetProto), { symbol: 'CREAM', name: 'C.R.E.A.M.', addresses: {
541
542
  1: CreamAddress,
542
543
  }, exchange: true, decimals: 18 }),
543
544
  Object.assign(Object.assign({}, assetProto), { symbol: 'COVER', name: 'Cover Protocol', addresses: {
@@ -875,7 +876,7 @@ export const assets = [
875
876
  1: ThalesAddress,
876
877
  10: '0x217D47011b23BB961eB6D93cA9945B7501a5BB11',
877
878
  } }),
878
- Object.assign(Object.assign({}, assetProto), { symbol: 'RARI', feedAvailability: { 1: true }, name: 'Rarible', decimals: 18, exchange: true, addresses: {
879
+ Object.assign(Object.assign({}, assetProto), { symbol: 'RARI', name: 'Rarible', decimals: 18, exchange: true, addresses: {
879
880
  1: RariAddress,
880
881
  } }),
881
882
  Object.assign(Object.assign({}, assetProto), { symbol: 'FXS', feedAvailability: { 1: true }, name: 'Frax Share', decimals: 18, exchange: true, addresses: {
@@ -978,10 +979,18 @@ export const assets = [
978
979
  Object.assign(Object.assign({}, assetProto), { symbol: 'crvUSD', feedAvailability: { 1: true }, name: 'Curve.Fi USD Stablecoin', addresses: {
979
980
  1: crvUSD,
980
981
  }, decimals: 18 }),
981
- Object.assign(Object.assign({}, assetProto), { symbol: 'sDAI', name: 'Savings DAI', nativeChainId: 1, addresses: {
982
+ Object.assign(Object.assign({}, assetProto), { symbol: 'sDAI', feedAvailability: { 1: true }, name: 'Savings DAI', nativeChainId: 1, addresses: {
982
983
  1: sDAIAddress,
983
984
  }, decimals: 18 }),
984
985
  Object.assign(Object.assign({}, assetProto), { symbol: 'GHO', feedAvailability: { 1: true }, name: 'GHO', addresses: {
985
986
  1: '0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f',
986
987
  }, decimals: 18, isStable: true }),
988
+ Object.assign(Object.assign({}, assetProto), { symbol: 'tBTC', name: 'tBTC', addresses: {
989
+ 1: tBTCAddress,
990
+ }, decimals: 18 }),
991
+ Object.assign(Object.assign({}, assetProto), { symbol: 'STG', name: 'STG', addresses: {
992
+ 1: '0xAf5191B0De278C7286d6C7CC6ab6BB8A73bA2Cd6',
993
+ 10: '0x296f55f8fb28e498b858d0bcda06d955b2cb3f97',
994
+ 42161: '0x6694340fc020c5e6b96567843da2df01b2ce1eb6'
995
+ }, decimals: 18, exchange: true }),
987
996
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/tokens",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
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
@@ -219,6 +219,7 @@ const cbETHCrvAddress = "0x5b6c539b224014a09b3388e51caaa8e354c959c8";
219
219
  const sfrxETH = "0xac3E018457B222d93114458476f3E3416Abbe38F";
220
220
  const crvUSD = "0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E";
221
221
  const sDAIAddress = "0x83F20F44975D03b1b09e64809B757c47f942BEeA";
222
+ const tBTCAddress = "0x18084fbA666a33d37592fA2633fD49a74DD93a88";
222
223
 
223
224
  export const assetProto: AssetDataBase = {
224
225
  symbol: '?',
@@ -1275,7 +1276,6 @@ export const assets: AssetDataBase[] = [
1275
1276
  {
1276
1277
  ...assetProto,
1277
1278
  symbol: 'CREAM',
1278
- feedAvailability: { 1: true },
1279
1279
  name: 'C.R.E.A.M.',
1280
1280
  addresses: {
1281
1281
  1: CreamAddress,
@@ -2404,7 +2404,6 @@ export const assets: AssetDataBase[] = [
2404
2404
  {
2405
2405
  ...assetProto,
2406
2406
  symbol: 'RARI',
2407
- feedAvailability: { 1: true },
2408
2407
  name: 'Rarible',
2409
2408
  decimals: 18,
2410
2409
  exchange: true,
@@ -2743,6 +2742,7 @@ export const assets: AssetDataBase[] = [
2743
2742
  {
2744
2743
  ...assetProto,
2745
2744
  symbol: 'sDAI',
2745
+ feedAvailability: { 1: true },
2746
2746
  name: 'Savings DAI',
2747
2747
  nativeChainId: 1,
2748
2748
  addresses: {
@@ -2761,4 +2761,25 @@ export const assets: AssetDataBase[] = [
2761
2761
  decimals: 18,
2762
2762
  isStable: true,
2763
2763
  },
2764
+ {
2765
+ ...assetProto,
2766
+ symbol: 'tBTC',
2767
+ name: 'tBTC',
2768
+ addresses: {
2769
+ 1: tBTCAddress,
2770
+ },
2771
+ decimals: 18,
2772
+ },
2773
+ {
2774
+ ...assetProto,
2775
+ symbol: 'STG',
2776
+ name: 'STG',
2777
+ addresses: {
2778
+ 1: '0xAf5191B0De278C7286d6C7CC6ab6BB8A73bA2Cd6',
2779
+ 10: '0x296f55f8fb28e498b858d0bcda06d955b2cb3f97',
2780
+ 42161: '0x6694340fc020c5e6b96567843da2df01b2ce1eb6'
2781
+ },
2782
+ decimals: 18,
2783
+ exchange: true,
2784
+ },
2764
2785
  ];
package/umd/index.js CHANGED
@@ -479,6 +479,7 @@ var cbETHCrvAddress = "0x5b6c539b224014a09b3388e51caaa8e354c959c8";
479
479
  var sfrxETH = "0xac3E018457B222d93114458476f3E3416Abbe38F";
480
480
  var crvUSD = "0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E";
481
481
  var sDAIAddress = "0x83F20F44975D03b1b09e64809B757c47f942BEeA";
482
+ var tBTCAddress = "0x18084fbA666a33d37592fA2633fD49a74DD93a88";
482
483
  var assetProto = {
483
484
  symbol: '?',
484
485
  feedAvailability: {},
@@ -1456,9 +1457,6 @@ var assets = [_objectSpread(_objectSpread({}, assetProto), {}, {
1456
1457
  decimals: 18
1457
1458
  }), _objectSpread(_objectSpread({}, assetProto), {}, {
1458
1459
  symbol: 'CREAM',
1459
- feedAvailability: {
1460
- 1: true
1461
- },
1462
1460
  name: 'C.R.E.A.M.',
1463
1461
  addresses: {
1464
1462
  1: CreamAddress
@@ -2436,9 +2434,6 @@ var assets = [_objectSpread(_objectSpread({}, assetProto), {}, {
2436
2434
  }
2437
2435
  }), _objectSpread(_objectSpread({}, assetProto), {}, {
2438
2436
  symbol: 'RARI',
2439
- feedAvailability: {
2440
- 1: true
2441
- },
2442
2437
  name: 'Rarible',
2443
2438
  decimals: 18,
2444
2439
  exchange: true,
@@ -2746,6 +2741,9 @@ var assets = [_objectSpread(_objectSpread({}, assetProto), {}, {
2746
2741
  decimals: 18
2747
2742
  }), _objectSpread(_objectSpread({}, assetProto), {}, {
2748
2743
  symbol: 'sDAI',
2744
+ feedAvailability: {
2745
+ 1: true
2746
+ },
2749
2747
  name: 'Savings DAI',
2750
2748
  nativeChainId: 1,
2751
2749
  addresses: {
@@ -2763,6 +2761,23 @@ var assets = [_objectSpread(_objectSpread({}, assetProto), {}, {
2763
2761
  },
2764
2762
  decimals: 18,
2765
2763
  isStable: true
2764
+ }), _objectSpread(_objectSpread({}, assetProto), {}, {
2765
+ symbol: 'tBTC',
2766
+ name: 'tBTC',
2767
+ addresses: {
2768
+ 1: tBTCAddress
2769
+ },
2770
+ decimals: 18
2771
+ }), _objectSpread(_objectSpread({}, assetProto), {}, {
2772
+ symbol: 'STG',
2773
+ name: 'STG',
2774
+ addresses: {
2775
+ 1: '0xAf5191B0De278C7286d6C7CC6ab6BB8A73bA2Cd6',
2776
+ 10: '0x296f55f8fb28e498b858d0bcda06d955b2cb3f97',
2777
+ 42161: '0x6694340fc020c5e6b96567843da2df01b2ce1eb6'
2778
+ },
2779
+ decimals: 18,
2780
+ exchange: true
2766
2781
  })];
2767
2782
 
2768
2783
  /***/ }),