@defisaver/tokens 1.5.17 → 1.5.19

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,4 @@
1
+ RPC=https://eth-mainnet.alchemyapi.io/v2/Pwh-hdbsP7Bf0CP_UMw4_Pw-NfHhSpIA
2
+ MAINNET_RPC=https://eth-mainnet.alchemyapi.io/v2/Pwh-hdbsP7Bf0CP_UMw4_Pw-NfHhSpIA
3
+ OPTIMISM_RPC=https://opt-mainnet.g.alchemy.com/v2/Pwh-hdbsP7Bf0CP_UMw4_Pw-NfHhSpIA
4
+ 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/1e26681/src/types.ts#L70)
54
+ [types.ts:70](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/types.ts#L6)
68
+ [types.ts:6](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/types.ts#L36)
99
+ [types.ts:36](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/types.ts#L17)
129
+ [types.ts:17](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/types.ts#L77)
139
+ [types.ts:77](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/types.ts#L56)
167
+ [types.ts:56](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/index.ts#L27)
177
+ [index.ts:27](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/aaveV2Markets.ts#L3)
187
+ [aaveV2Markets.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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:247](https://github.com/DecenterApps/defisaver-tokens/blob/1e26681/src/assets.ts#L247)
197
+ [assets.ts:247](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/src/assets.ts#L247)
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/1e26681/src/ilks.ts#L5)
207
+ [ilks.ts:5](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/reflexerCollTypes.ts#L3)
217
+ [reflexerCollTypes.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/index.ts#L25)
235
+ [index.ts:25](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/index.ts#L149)
256
+ [index.ts:149](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/index.ts#L170)
277
+ [index.ts:170](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/index.ts#L142)
297
+ [index.ts:142](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/index.ts#L60)
321
+ [index.ts:60](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/index.ts#L95)
342
+ [index.ts:95](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/index.ts#L73)
365
+ [index.ts:73](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/index.ts#L100)
385
+ [index.ts:100](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/index.ts#L21)
406
+ [index.ts:21](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/index.ts#L122)
429
+ [index.ts:122](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/index.ts#L134)
451
+ [index.ts:134](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/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/1e26681/src/index.ts#L140)
473
+ [index.ts:140](https://github.com/DecenterApps/defisaver-tokens/blob/b1a1e17/src/index.ts#L140)
package/esm/assets.js CHANGED
@@ -293,13 +293,13 @@ export const assets = [
293
293
  Object.assign(Object.assign({}, assetProto), { symbol: 'REP', name: 'Augur', decimals: 18, exchange: true, compoundCollateral: false, addresses: {
294
294
  1: REPAddress,
295
295
  } }),
296
- Object.assign(Object.assign({}, assetProto), { symbol: 'REPv2', feedAvailability: { 1: true }, name: 'Augur', decimals: 18, exchange: false, compoundCollateral: false, addresses: {
296
+ Object.assign(Object.assign({}, assetProto), { symbol: 'REPv2', name: 'Augur', decimals: 18, exchange: false, compoundCollateral: false, addresses: {
297
297
  1: REPv2Address,
298
298
  } }),
299
299
  Object.assign(Object.assign({}, assetProto), { symbol: 'cREP', underlyingAsset: 'REP', name: 'Augur', decimals: 8, exchange: false, compoundCollateral: true, addresses: {
300
300
  1: cREPAddress,
301
301
  } }),
302
- Object.assign(Object.assign({}, assetProto), { symbol: 'USDC', feedAvailability: { 1: true, 42161: true }, name: 'USD Coin', decimals: 6, exchange: true, compoundCollateral: false, yearnCollateral: true, addresses: {
302
+ Object.assign(Object.assign({}, assetProto), { symbol: 'USDC', feedAvailability: { 1: true, 10: true, 42161: true }, name: 'USD Coin', decimals: 6, exchange: true, compoundCollateral: false, yearnCollateral: true, addresses: {
303
303
  1: USDCAddress,
304
304
  10: '0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85',
305
305
  8453: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
@@ -339,6 +339,7 @@ export const assets = [
339
339
  } }),
340
340
  Object.assign(Object.assign({}, assetProto), { symbol: 'COMP', feedAvailability: { 1: true }, name: 'Compound Token', decimals: 18, addresses: {
341
341
  1: COMPAddress,
342
+ 10: '0x7e7d4467112689329f7E06571eD0E8CbAd4910eE',
342
343
  8453: '0x9e1028F5F1D5eDE59748FFceE5532509976840E0',
343
344
  42161: '0x354A6dA3fcde098F8389cad84b0182725c6C91dE',
344
345
  }, exchange: true }),
@@ -436,7 +437,7 @@ export const assets = [
436
437
  Object.assign(Object.assign({}, assetProto), { symbol: 'REN', feedAvailability: { 1: true }, name: 'Ren', decimals: 18, exchange: true, addresses: {
437
438
  1: RENAddress,
438
439
  } }),
439
- Object.assign(Object.assign({}, assetProto), { symbol: 'CRV', feedAvailability: { 1: true, 10: true }, name: 'Curve DAO', decimals: 18, exchange: true, addresses: {
440
+ Object.assign(Object.assign({}, assetProto), { symbol: 'CRV', feedAvailability: { 1: true, 10: true, 42161: true }, name: 'Curve DAO', decimals: 18, exchange: true, addresses: {
440
441
  1: CRVAddress,
441
442
  10: '0x0994206dfe8de6ec6920ff4d779b0d950605fb53',
442
443
  8453: '0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415',
@@ -1027,8 +1028,8 @@ export const assets = [
1027
1028
  1: fxnAddress,
1028
1029
  42161: fxnAddressArb,
1029
1030
  }, decimals: 18, exchange: true }),
1030
- Object.assign(Object.assign({}, assetProto), { symbol: 'weETH', name: 'Wrapped eETH', addresses: {
1031
+ Object.assign(Object.assign({}, assetProto), { symbol: 'weETH', feedAvailability: { 1: true, 42161: true }, name: 'Wrapped eETH', addresses: {
1031
1032
  1: "0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee",
1032
1033
  42161: "0x35751007a407ca6feffe80b3cb397736d2cf4dbe",
1033
- }, feedAvailability: { 1: true, 42161: true }, decimals: 18, exchange: true })
1034
+ }, decimals: 18, exchange: true })
1034
1035
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/tokens",
3
- "version": "1.5.17",
3
+ "version": "1.5.19",
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
@@ -423,7 +423,6 @@ export const assets: AssetDataBase[] = [
423
423
  {
424
424
  ...assetProto,
425
425
  symbol: 'REPv2',
426
- feedAvailability: { 1: true },
427
426
  name: 'Augur',
428
427
  decimals: 18,
429
428
  exchange: false, // not yet available
@@ -447,7 +446,7 @@ export const assets: AssetDataBase[] = [
447
446
  {
448
447
  ...assetProto,
449
448
  symbol: 'USDC',
450
- feedAvailability: { 1: true, 42161: true },
449
+ feedAvailability: { 1: true, 10: true, 42161: true },
451
450
  name: 'USD Coin',
452
451
  decimals: 6,
453
452
  exchange: true,
@@ -581,6 +580,7 @@ export const assets: AssetDataBase[] = [
581
580
  decimals: 18,
582
581
  addresses: {
583
582
  1: COMPAddress,
583
+ 10: '0x7e7d4467112689329f7E06571eD0E8CbAd4910eE',
584
584
  8453: '0x9e1028F5F1D5eDE59748FFceE5532509976840E0',
585
585
  42161: '0x354A6dA3fcde098F8389cad84b0182725c6C91dE',
586
586
  },
@@ -929,7 +929,7 @@ export const assets: AssetDataBase[] = [
929
929
  {
930
930
  ...assetProto,
931
931
  symbol: 'CRV',
932
- feedAvailability: { 1: true, 10: true },
932
+ feedAvailability: { 1: true, 10: true, 42161: true },
933
933
  name: 'Curve DAO',
934
934
  decimals: 18,
935
935
  exchange: true,
@@ -2874,12 +2874,12 @@ export const assets: AssetDataBase[] = [
2874
2874
  {
2875
2875
  ...assetProto,
2876
2876
  symbol: 'weETH',
2877
+ feedAvailability: { 1: true, 42161: true },
2877
2878
  name: 'Wrapped eETH',
2878
2879
  addresses: {
2879
2880
  1: "0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee",
2880
2881
  42161: "0x35751007a407ca6feffe80b3cb397736d2cf4dbe",
2881
2882
  },
2882
- feedAvailability: { 1: true, 42161: true },
2883
2883
  decimals: 18,
2884
2884
  exchange: true,
2885
2885
  }
package/umd/index.js CHANGED
@@ -671,9 +671,6 @@ var assets = [_objectSpread(_objectSpread({}, assetProto), {}, {
671
671
  }
672
672
  }), _objectSpread(_objectSpread({}, assetProto), {}, {
673
673
  symbol: 'REPv2',
674
- feedAvailability: {
675
- 1: true
676
- },
677
674
  name: 'Augur',
678
675
  decimals: 18,
679
676
  exchange: false,
@@ -696,6 +693,7 @@ var assets = [_objectSpread(_objectSpread({}, assetProto), {}, {
696
693
  symbol: 'USDC',
697
694
  feedAvailability: {
698
695
  1: true,
696
+ 10: true,
699
697
  42161: true
700
698
  },
701
699
  name: 'USD Coin',
@@ -824,6 +822,7 @@ var assets = [_objectSpread(_objectSpread({}, assetProto), {}, {
824
822
  decimals: 18,
825
823
  addresses: {
826
824
  1: COMPAddress,
825
+ 10: '0x7e7d4467112689329f7E06571eD0E8CbAd4910eE',
827
826
  8453: '0x9e1028F5F1D5eDE59748FFceE5532509976840E0',
828
827
  42161: '0x354A6dA3fcde098F8389cad84b0182725c6C91dE'
829
828
  },
@@ -1132,7 +1131,8 @@ var assets = [_objectSpread(_objectSpread({}, assetProto), {}, {
1132
1131
  symbol: 'CRV',
1133
1132
  feedAvailability: {
1134
1133
  1: true,
1135
- 10: true
1134
+ 10: true,
1135
+ 42161: true
1136
1136
  },
1137
1137
  name: 'Curve DAO',
1138
1138
  decimals: 18,
@@ -2855,15 +2855,15 @@ var assets = [_objectSpread(_objectSpread({}, assetProto), {}, {
2855
2855
  exchange: true
2856
2856
  }), _objectSpread(_objectSpread({}, assetProto), {}, {
2857
2857
  symbol: 'weETH',
2858
+ feedAvailability: {
2859
+ 1: true,
2860
+ 42161: true
2861
+ },
2858
2862
  name: 'Wrapped eETH',
2859
2863
  addresses: {
2860
2864
  1: "0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee",
2861
2865
  42161: "0x35751007a407ca6feffe80b3cb397736d2cf4dbe"
2862
2866
  },
2863
- feedAvailability: {
2864
- 1: true,
2865
- 42161: true
2866
- },
2867
2867
  decimals: 18,
2868
2868
  exchange: true
2869
2869
  })];