@defisaver/tokens 1.4.16 → 1.4.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/README.md CHANGED
@@ -38,430 +38,360 @@
38
38
 
39
39
  ### AaveMarketData
40
40
 
41
- Ƭ **AaveMarketData**: `Object`
41
+ Ƭ **AaveMarketData**: { `dataProvider`: *string* ; `lendingPool`: *string* ; `lendingPoolAddressProvider`: *string* ; `name`: *string* }
42
42
 
43
- #### Type declaration
43
+ #### Type declaration:
44
44
 
45
- | Name | Type |
46
- | :------ | :------ |
47
- | `dataProvider` | `string` |
48
- | `lendingPool` | `string` |
49
- | `lendingPoolAddressProvider` | `string` |
50
- | `name` | `string` |
45
+ Name | Type |
46
+ ------ | ------ |
47
+ `dataProvider` | *string* |
48
+ `lendingPool` | *string* |
49
+ `lendingPoolAddressProvider` | *string* |
50
+ `name` | *string* |
51
51
 
52
- #### Defined in
53
-
54
- [types.ts:62](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/types.ts#L62)
52
+ Defined in: [types.ts:62](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/types.ts#L62)
55
53
 
56
54
  ___
57
55
 
58
56
  ### AddressMapping
59
57
 
60
- Ƭ **AddressMapping**: `Object`
61
-
62
- #### Index signature
63
-
64
- ▪ [key: `number`]: `string`
58
+ Ƭ **AddressMapping**: { [key: number]: *string*; }
65
59
 
66
- #### Defined in
67
-
68
- [types.ts:6](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/types.ts#L6)
60
+ Defined in: [types.ts:6](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/types.ts#L6)
69
61
 
70
62
  ___
71
63
 
72
64
  ### AssetData
73
65
 
74
- Ƭ **AssetData**: `Object`
66
+ Ƭ **AssetData**: { `aaveCollateral`: *boolean* ; `address`: *string* ; `addresses`: [*AddressMapping*](README.md#addressmapping) ; `compoundCollateral`: *boolean* ; `decimals`: *number* ; `exchange`: *boolean* ; `icon`: Function ; `isStable`: *boolean* ; `name`: *string* ; `symbol`: *string* ; `underlyingAsset`: *string* ; `yearnCollateral`: *boolean* }
75
67
 
76
68
  Chain-specific asset info type
77
69
 
78
- #### Type declaration
79
-
80
- | Name | Type |
81
- | :------ | :------ |
82
- | `aaveCollateral` | `boolean` |
83
- | `address` | `string` |
84
- | `addresses` | [`AddressMapping`](README.md#addressmapping) |
85
- | `compoundCollateral` | `boolean` |
86
- | `decimals` | `number` |
87
- | `exchange` | `boolean` |
88
- | `icon` | `Function` |
89
- | `isStable` | `boolean` |
90
- | `name` | `string` |
91
- | `symbol` | `string` |
92
- | `underlyingAsset` | `string` |
93
- | `yearnCollateral` | `boolean` |
94
-
95
- #### Defined in
96
-
97
- [types.ts:30](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/types.ts#L30)
70
+ #### Type declaration:
71
+
72
+ Name | Type |
73
+ ------ | ------ |
74
+ `aaveCollateral` | *boolean* |
75
+ `address` | *string* |
76
+ `addresses` | [*AddressMapping*](README.md#addressmapping) |
77
+ `compoundCollateral` | *boolean* |
78
+ `decimals` | *number* |
79
+ `exchange` | *boolean* |
80
+ `icon` | Function |
81
+ `isStable` | *boolean* |
82
+ `name` | *string* |
83
+ `symbol` | *string* |
84
+ `underlyingAsset` | *string* |
85
+ `yearnCollateral` | *boolean* |
86
+
87
+ Defined in: [types.ts:30](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/types.ts#L30)
98
88
 
99
89
  ___
100
90
 
101
91
  ### AssetDataBase
102
92
 
103
- Ƭ **AssetDataBase**: `Object`
93
+ Ƭ **AssetDataBase**: { `aaveCollateral`: *boolean* ; `addresses`: [*AddressMapping*](README.md#addressmapping) ; `compoundCollateral`: *boolean* ; `decimals`: *number* ; `exchange`: *boolean* ; `icon`: Function ; `isStable`: *boolean* ; `name`: *string* ; `symbol`: *string* ; `underlyingAsset`: *string* ; `yearnCollateral`: *boolean* }
104
94
 
105
95
  Chain-agnostic asset info type
106
96
 
107
- #### Type declaration
108
-
109
- | Name | Type |
110
- | :------ | :------ |
111
- | `aaveCollateral` | `boolean` |
112
- | `addresses` | [`AddressMapping`](README.md#addressmapping) |
113
- | `compoundCollateral` | `boolean` |
114
- | `decimals` | `number` |
115
- | `exchange` | `boolean` |
116
- | `icon` | `Function` |
117
- | `isStable` | `boolean` |
118
- | `name` | `string` |
119
- | `symbol` | `string` |
120
- | `underlyingAsset` | `string` |
121
- | `yearnCollateral` | `boolean` |
97
+ #### Type declaration:
122
98
 
123
- #### Defined in
99
+ Name | Type |
100
+ ------ | ------ |
101
+ `aaveCollateral` | *boolean* |
102
+ `addresses` | [*AddressMapping*](README.md#addressmapping) |
103
+ `compoundCollateral` | *boolean* |
104
+ `decimals` | *number* |
105
+ `exchange` | *boolean* |
106
+ `icon` | Function |
107
+ `isStable` | *boolean* |
108
+ `name` | *string* |
109
+ `symbol` | *string* |
110
+ `underlyingAsset` | *string* |
111
+ `yearnCollateral` | *boolean* |
124
112
 
125
- [types.ts:13](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/types.ts#L13)
113
+ Defined in: [types.ts:13](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/types.ts#L13)
126
114
 
127
115
  ___
128
116
 
129
117
  ### ExtendedIlkData
130
118
 
131
- Ƭ **ExtendedIlkData**: [`IlkData`](README.md#ilkdata) \| { `assetData`: [`AssetData`](README.md#assetdata) }
119
+ Ƭ **ExtendedIlkData**: [*IlkData*](README.md#ilkdata) \| { `assetData`: [*AssetData*](README.md#assetdata) }
132
120
 
133
- #### Defined in
134
-
135
- [types.ts:69](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/types.ts#L69)
121
+ Defined in: [types.ts:69](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/types.ts#L69)
136
122
 
137
123
  ___
138
124
 
139
125
  ### IlkData
140
126
 
141
- Ƭ **IlkData**: `Object`
127
+ Ƭ **IlkData**: { `asset`: *string* ; `assetAddress?`: *string* ; `clip?`: *string* ; `clipCalc?`: *string* ; `flip?`: *string* ; `ilkBytes`: *string* ; `ilkLabel`: *string* ; `isCrop`: *boolean* ; `isLP`: *boolean* ; `join`: *string* ; `pip`: *string* }
142
128
 
143
129
  Maker ilk info type
144
130
 
145
- #### Type declaration
146
-
147
- | Name | Type |
148
- | :------ | :------ |
149
- | `asset` | `string` |
150
- | `assetAddress?` | `string` |
151
- | `clip?` | `string` |
152
- | `clipCalc?` | `string` |
153
- | `flip?` | `string` |
154
- | `ilkBytes` | `string` |
155
- | `ilkLabel` | `string` |
156
- | `isCrop` | `boolean` |
157
- | `isLP` | `boolean` |
158
- | `join` | `string` |
159
- | `pip` | `string` |
131
+ #### Type declaration:
160
132
 
161
- #### Defined in
133
+ Name | Type |
134
+ ------ | ------ |
135
+ `asset` | *string* |
136
+ `assetAddress?` | *string* |
137
+ `clip?` | *string* |
138
+ `clipCalc?` | *string* |
139
+ `flip?` | *string* |
140
+ `ilkBytes` | *string* |
141
+ `ilkLabel` | *string* |
142
+ `isCrop` | *boolean* |
143
+ `isLP` | *boolean* |
144
+ `join` | *string* |
145
+ `pip` | *string* |
162
146
 
163
- [types.ts:48](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/types.ts#L48)
147
+ Defined in: [types.ts:48](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/types.ts#L48)
164
148
 
165
149
  ## Variables
166
150
 
167
151
  ### MAXUINT
168
152
 
169
- • **MAXUINT**: `string` = `'115792089237316195423570985008687907853269984665640564039457584007913129639935'`
153
+ `Const` **MAXUINT**: *string*= '115792089237316195423570985008687907853269984665640564039457584007913129639935'
170
154
 
171
- #### Defined in
172
-
173
- [index.ts:27](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/index.ts#L27)
155
+ Defined in: [index.ts:27](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/index.ts#L27)
174
156
 
175
157
  ___
176
158
 
177
159
  ### aaveV2Markets
178
160
 
179
- • **aaveV2Markets**: [`AaveMarketData`](README.md#aavemarketdata)[]
180
-
181
- #### Defined in
161
+ `Const` **aaveV2Markets**: [*AaveMarketData*](README.md#aavemarketdata)[]
182
162
 
183
- [aaveV2Markets.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/aaveV2Markets.ts#L3)
163
+ Defined in: [aaveV2Markets.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/aaveV2Markets.ts#L3)
184
164
 
185
165
  ___
186
166
 
187
167
  ### assets
188
168
 
189
- • **assets**: [`AssetDataBase`](README.md#assetdatabase)[]
190
-
191
- #### Defined in
169
+ `Const` **assets**: [*AssetDataBase*](README.md#assetdatabase)[]
192
170
 
193
- [assets.ts:231](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/assets.ts#L231)
171
+ Defined in: [assets.ts:231](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/assets.ts#L231)
194
172
 
195
173
  ___
196
174
 
197
175
  ### ilks
198
176
 
199
- • **ilks**: [`IlkData`](README.md#ilkdata)[]
177
+ `Const` **ilks**: [*IlkData*](README.md#ilkdata)[]
200
178
 
201
- #### Defined in
202
-
203
- [ilks.ts:5](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/ilks.ts#L5)
179
+ Defined in: [ilks.ts:5](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/ilks.ts#L5)
204
180
 
205
181
  ___
206
182
 
207
183
  ### reflexerCollTypes
208
184
 
209
- • **reflexerCollTypes**: [`IlkData`](README.md#ilkdata)[]
210
-
211
- #### Defined in
185
+ `Const` **reflexerCollTypes**: [*IlkData*](README.md#ilkdata)[]
212
186
 
213
- [reflexerCollTypes.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/reflexerCollTypes.ts#L3)
187
+ Defined in: [reflexerCollTypes.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/reflexerCollTypes.ts#L3)
214
188
 
215
189
  ___
216
190
 
217
191
  ### utils
218
192
 
219
- • **utils**: `Object`
193
+ `Const` **utils**: *object*
220
194
 
221
- #### Type declaration
195
+ #### Type declaration:
222
196
 
223
- | Name | Type |
224
- | :------ | :------ |
225
- | `bytesToString` | (`hex`: `string`) => `string` |
226
- | `compare` | (`a`: `string`, `b`: `string`) => `boolean` |
227
- | `stringToBytes` | (`str`: `string`) => `string` |
197
+ Name | Type |
198
+ ------ | ------ |
199
+ `bytesToString` | (`hex`: *string*) => *string* |
200
+ `compare` | (`a`: *string*, `b`: *string*) => *boolean* |
201
+ `stringToBytes` | (`str`: *string*) => *string* |
228
202
 
229
- #### Defined in
230
-
231
- [index.ts:25](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/index.ts#L25)
203
+ Defined in: [index.ts:25](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/index.ts#L25)
232
204
 
233
205
  ## Functions
234
206
 
235
207
  ### assetAmountInEth
236
208
 
237
- ▸ `Const` **assetAmountInEth**(`amount`, `asset?`): `string`
238
-
239
- #### Parameters
209
+ ▸ `Const`**assetAmountInEth**(`amount`: *string* \| *number* \| *object*, `asset?`: *string*): *string*
240
210
 
241
- | Name | Type | Default value | Description |
242
- | :------ | :------ | :------ | :------ |
243
- | `amount` | `string` \| `number` \| `object` | `undefined` | Amount in wei |
244
- | `asset` | `string` | `'ETH'` | Asset symbol (or `MCD-${symbol}` for maker asset - always 18dec) |
211
+ #### Parameters:
245
212
 
246
- #### Returns
213
+ Name | Type | Default value | Description |
214
+ ------ | ------ | ------ | ------ |
215
+ `amount` | *string* \| *number* \| *object* | - | Amount in wei |
216
+ `asset` | *string* | 'ETH' | Asset symbol (or `MCD-${symbol}` for maker asset - always 18dec) |
247
217
 
248
- `string`
218
+ **Returns:** *string*
249
219
 
250
- #### Defined in
251
-
252
- [index.ts:147](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/index.ts#L147)
220
+ Defined in: [index.ts:148](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/index.ts#L148)
253
221
 
254
222
  ___
255
223
 
256
224
  ### assetAmountInWei
257
225
 
258
- ▸ `Const` **assetAmountInWei**(`amount`, `asset`): `string`
259
-
260
- #### Parameters
226
+ ▸ `Const`**assetAmountInWei**(`amount`: *string* \| *number* \| *object*, `asset`: *string*): *string*
261
227
 
262
- | Name | Type | Description |
263
- | :------ | :------ | :------ |
264
- | `amount` | `string` \| `number` \| `object` | Amount in eth |
265
- | `asset` | `string` | Asset symbol |
228
+ #### Parameters:
266
229
 
267
- #### Returns
230
+ Name | Type | Description |
231
+ ------ | ------ | ------ |
232
+ `amount` | *string* \| *number* \| *object* | Amount in eth |
233
+ `asset` | *string* | Asset symbol |
268
234
 
269
- `string`
235
+ **Returns:** *string*
270
236
 
271
- #### Defined in
272
-
273
- [index.ts:168](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/index.ts#L168)
237
+ Defined in: [index.ts:169](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/index.ts#L169)
274
238
 
275
239
  ___
276
240
 
277
241
  ### getAaveV2MarketInfo
278
242
 
279
- ▸ `Const` **getAaveV2MarketInfo**(`name?`): `void` \| [`AaveMarketData`](README.md#aavemarketdata)
280
-
281
- #### Parameters
282
-
283
- | Name | Type | Default value |
284
- | :------ | :------ | :------ |
285
- | `name` | `string` | `''` |
243
+ ▸ `Const`**getAaveV2MarketInfo**(`name?`: *string*): *void* \| [*AaveMarketData*](README.md#aavemarketdata)
286
244
 
287
- #### Returns
245
+ #### Parameters:
288
246
 
289
- `void` \| [`AaveMarketData`](README.md#aavemarketdata)
247
+ Name | Type | Default value |
248
+ ------ | ------ | ------ |
249
+ `name` | *string* | '' |
290
250
 
291
- #### Defined in
251
+ **Returns:** *void* \| [*AaveMarketData*](README.md#aavemarketdata)
292
252
 
293
- [index.ts:140](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/index.ts#L140)
253
+ Defined in: [index.ts:141](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/index.ts#L141)
294
254
 
295
255
  ___
296
256
 
297
257
  ### getAssetInfo
298
258
 
299
- ▸ `Const` **getAssetInfo**(`symbol?`): [`AssetData`](README.md#assetdata)
259
+ ▸ `Const`**getAssetInfo**(`symbol?`: *string*, `chainId?`: *number*): [*AssetData*](README.md#assetdata)
300
260
 
301
261
  Returns asset info.
302
262
  Warning: will not throw if asset not found. Instead, will return a placeholder object.
303
263
 
304
- #### Parameters
305
-
306
- | Name | Type | Default value |
307
- | :------ | :------ | :------ |
308
- | `symbol` | `string` | `''` |
309
-
310
- #### Returns
264
+ #### Parameters:
311
265
 
312
- [`AssetData`](README.md#assetdata)
266
+ Name | Type | Default value |
267
+ ------ | ------ | ------ |
268
+ `symbol` | *string* | '' |
269
+ `chainId?` | *number* | - |
313
270
 
314
- #### Defined in
271
+ **Returns:** [*AssetData*](README.md#assetdata)
315
272
 
316
- [index.ts:59](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/index.ts#L59)
273
+ Defined in: [index.ts:60](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/index.ts#L60)
317
274
 
318
275
  ___
319
276
 
320
277
  ### getAssetInfoByAddress
321
278
 
322
- ▸ `Const` **getAssetInfoByAddress**(`address?`): [`AssetData`](README.md#assetdata)
279
+ ▸ `Const`**getAssetInfoByAddress**(`address?`: *string*, `chainId?`: *number*): [*AssetData*](README.md#assetdata)
323
280
 
324
- #### Parameters
281
+ #### Parameters:
325
282
 
326
- | Name | Type | Default value |
327
- | :------ | :------ | :------ |
328
- | `address` | `string` | `''` |
283
+ Name | Type | Default value |
284
+ ------ | ------ | ------ |
285
+ `address` | *string* | '' |
286
+ `chainId?` | *number* | - |
329
287
 
330
- #### Returns
288
+ **Returns:** [*AssetData*](README.md#assetdata)
331
289
 
332
- [`AssetData`](README.md#assetdata)
333
-
334
- #### Defined in
335
-
336
- [index.ts:94](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/index.ts#L94)
290
+ Defined in: [index.ts:95](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/index.ts#L95)
337
291
 
338
292
  ___
339
293
 
340
294
  ### getIlkInfo
341
295
 
342
- ▸ `Const` **getIlkInfo**(`ilk?`): [`ExtendedIlkData`](README.md#extendedilkdata)
296
+ ▸ `Const`**getIlkInfo**(`ilk?`: *string*): [*ExtendedIlkData*](README.md#extendedilkdata)
343
297
 
344
298
  Returns Maker or Reflexer ilk info, and asset info as `assetData` attribute.
345
299
  Warning: will not throw if ilk not found. Instead, will return a placeholder object.
346
300
 
347
- #### Parameters
348
-
349
- | Name | Type | Default value | Description |
350
- | :------ | :------ | :------ | :------ |
351
- | `ilk` | `string` | `''` | Ilk encoded as string or as hex |
301
+ #### Parameters:
352
302
 
353
- #### Returns
303
+ Name | Type | Default value | Description |
304
+ ------ | ------ | ------ | ------ |
305
+ `ilk` | *string* | '' | Ilk encoded as string or as hex |
354
306
 
355
- [`ExtendedIlkData`](README.md#extendedilkdata)
307
+ **Returns:** [*ExtendedIlkData*](README.md#extendedilkdata)
356
308
 
357
- #### Defined in
358
-
359
- [index.ts:72](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/index.ts#L72)
309
+ Defined in: [index.ts:73](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/index.ts#L73)
360
310
 
361
311
  ___
362
312
 
363
313
  ### ilkToAsset
364
314
 
365
- ▸ `Const` **ilkToAsset**(`ilk?`): `string`
366
-
367
- #### Parameters
315
+ ▸ `Const`**ilkToAsset**(`ilk?`: *string*): *string*
368
316
 
369
- | Name | Type | Default value |
370
- | :------ | :------ | :------ |
371
- | `ilk` | `string` | `''` |
317
+ #### Parameters:
372
318
 
373
- #### Returns
319
+ Name | Type | Default value |
320
+ ------ | ------ | ------ |
321
+ `ilk` | *string* | '' |
374
322
 
375
- `string`
323
+ **Returns:** *string*
376
324
 
377
- #### Defined in
378
-
379
- [index.ts:99](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/index.ts#L99)
325
+ Defined in: [index.ts:100](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/index.ts#L100)
380
326
 
381
327
  ___
382
328
 
383
329
  ### set
384
330
 
385
- ▸ `Const` **set**(`key`, `value`): `void`
386
-
387
- #### Parameters
388
-
389
- | Name | Type |
390
- | :------ | :------ |
391
- | `key` | `string` |
392
- | `value` | `any` |
331
+ ▸ `Const`**set**(`key`: *string*, `value`: *any*): *void*
393
332
 
394
- #### Returns
333
+ #### Parameters:
395
334
 
396
- `void`
335
+ Name | Type |
336
+ ------ | ------ |
337
+ `key` | *string* |
338
+ `value` | *any* |
397
339
 
398
- #### Defined in
340
+ **Returns:** *void*
399
341
 
400
- [index.ts:21](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/index.ts#L21)
342
+ Defined in: [index.ts:21](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/index.ts#L21)
401
343
 
402
344
  ___
403
345
 
404
346
  ### tokenFromJoin
405
347
 
406
- ▸ `Const` **tokenFromJoin**(`join`, `fromIlks?`): `string`
348
+ ▸ `Const`**tokenFromJoin**(`join`: *string*, `fromIlks?`: [*IlkData*](README.md#ilkdata)[]): *string*
407
349
 
408
- #### Parameters
350
+ #### Parameters:
409
351
 
410
- | Name | Type | Default value | Description |
411
- | :------ | :------ | :------ | :------ |
412
- | `join` | `string` | `undefined` | Maker or Reflexer ilk join |
413
- | `fromIlks` | [`IlkData`](README.md#ilkdata)[] | `ilks` | |
352
+ Name | Type | Default value | Description |
353
+ ------ | ------ | ------ | ------ |
354
+ `join` | *string* | - | Maker or Reflexer ilk join |
355
+ `fromIlks` | [*IlkData*](README.md#ilkdata)[] | ... | |
414
356
 
415
- #### Returns
416
-
417
- `string`
357
+ **Returns:** *string*
418
358
 
419
359
  Token symbol
420
360
 
421
- #### Defined in
422
-
423
- [index.ts:120](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/index.ts#L120)
361
+ Defined in: [index.ts:121](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/index.ts#L121)
424
362
 
425
363
  ___
426
364
 
427
365
  ### tokenFromMakerJoin
428
366
 
429
- ▸ `Const` **tokenFromMakerJoin**(`join`): `string`
367
+ ▸ `Const`**tokenFromMakerJoin**(`join`: *string*): *string*
430
368
 
431
- #### Parameters
369
+ #### Parameters:
432
370
 
433
- | Name | Type | Description |
434
- | :------ | :------ | :------ |
435
- | `join` | `string` | Maker ilk join |
371
+ Name | Type | Description |
372
+ ------ | ------ | ------ |
373
+ `join` | *string* | Maker ilk join |
436
374
 
437
- #### Returns
438
-
439
- `string`
375
+ **Returns:** *string*
440
376
 
441
377
  Token symbol
442
378
 
443
- #### Defined in
444
-
445
- [index.ts:132](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/index.ts#L132)
379
+ Defined in: [index.ts:133](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/index.ts#L133)
446
380
 
447
381
  ___
448
382
 
449
383
  ### tokenFromReflexerJoin
450
384
 
451
- ▸ `Const` **tokenFromReflexerJoin**(`join`): `string`
385
+ ▸ `Const`**tokenFromReflexerJoin**(`join`: *string*): *string*
452
386
 
453
- #### Parameters
387
+ #### Parameters:
454
388
 
455
- | Name | Type | Description |
456
- | :------ | :------ | :------ |
457
- | `join` | `string` | Reflexer ilk join |
389
+ Name | Type | Description |
390
+ ------ | ------ | ------ |
391
+ `join` | *string* | Reflexer ilk join |
458
392
 
459
- #### Returns
460
-
461
- `string`
393
+ **Returns:** *string*
462
394
 
463
395
  Token symbol
464
396
 
465
- #### Defined in
466
-
467
- [index.ts:138](https://github.com/DecenterApps/defisaver-tokens/blob/d30fbe9/src/index.ts#L138)
397
+ Defined in: [index.ts:139](https://github.com/DecenterApps/defisaver-tokens/blob/105ffd6/src/index.ts#L139)
package/esm/assets.js CHANGED
@@ -227,7 +227,7 @@ export const assetProto = {
227
227
  export const assets = [
228
228
  Object.assign(Object.assign({}, assetProto), { symbol: 'ETH', name: 'Ether', decimals: 18, exchange: true, compoundCollateral: false, addresses: {
229
229
  1: ETHAddress,
230
- 10: '0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000',
230
+ 10: ETHAddress,
231
231
  42161: ETHAddress,
232
232
  } }),
233
233
  Object.assign(Object.assign({}, assetProto), { symbol: 'WETH', name: 'WrappedEther', decimals: 18, addresses: {
@@ -365,6 +365,7 @@ export const assets = [
365
365
  Object.assign(Object.assign({}, assetProto), { symbol: 'LINK', name: 'ChainLink', decimals: 18, exchange: true, yearnCollateral: true, addresses: {
366
366
  1: LINKAddress,
367
367
  10: '0x350a791Bfc2C21F9Ed5d10980Dad2e2638ffa7f6',
368
+ 42161: '0xf97f4df75117a78c1A5a0DBb814Af92458539FB4',
368
369
  } }),
369
370
  Object.assign(Object.assign({}, assetProto), { symbol: 'cLINK', name: 'ChainLink', underlyingAsset: 'LINK', decimals: 8, exchange: false, compoundCollateral: true, addresses: {
370
371
  1: cLINKAddress,
@@ -445,6 +446,7 @@ export const assets = [
445
446
  Object.assign(Object.assign({}, assetProto), { symbol: 'AAVE', name: 'Aave', addresses: {
446
447
  1: AAVEAddress,
447
448
  10: '0x76FB31fb4af56892A25e32cFC43De717950c9278',
449
+ 42161: '0xba5ddd1f9d7f570dc94a51479a000e3bce967196',
448
450
  }, decimals: 18, exchange: true }),
449
451
  Object.assign(Object.assign({}, assetProto), { symbol: 'aAAVE', name: 'Aave', addresses: {
450
452
  1: aAaveAddress,
@@ -559,6 +561,7 @@ export const assets = [
559
561
  }, exchange: true, decimals: 18 }),
560
562
  Object.assign(Object.assign({}, assetProto), { symbol: 'EURS', name: 'Stasis Euro', addresses: {
561
563
  1: EursAddress,
564
+ 42161: '0xd22a58f79e9481d1a88e00c343885a588b34b68b',
562
565
  }, exchange: true, decimals: 2 }),
563
566
  Object.assign(Object.assign({}, assetProto), { symbol: 'GRT', name: 'The Graph', addresses: {
564
567
  1: GrtAddress,
@@ -884,7 +887,7 @@ export const assets = [
884
887
  1: USTAddress,
885
888
  10: '0xBA28feb4b6A6b81e3F26F08b83a19E715C4294fd',
886
889
  } }),
887
- Object.assign(Object.assign({}, assetProto), { symbol: 'cFEI', name: 'Fei Protocol', addresses: {
890
+ Object.assign(Object.assign({}, assetProto), { symbol: 'cFEI', underlyingAsset: 'FEI', name: 'Fei Protocol', addresses: {
888
891
  1: cFeiAddress,
889
892
  }, exchange: false, compoundCollateral: true, decimals: 8 }),
890
893
  ];
package/esm/index.d.ts CHANGED
@@ -21,9 +21,10 @@ export declare const MAXUINT: string;
21
21
  * Warning: will not throw if asset not found. Instead, will return a placeholder object.
22
22
  *
23
23
  * @param symbol {string}
24
+ * @param chainId {number}
24
25
  * @return {AssetData}
25
26
  */
26
- export declare const getAssetInfo: (symbol?: string) => AssetData;
27
+ export declare const getAssetInfo: (symbol?: string, chainId?: number | undefined) => AssetData;
27
28
  /**
28
29
  * Returns Maker or Reflexer ilk info, and asset info as `assetData` attribute.
29
30
  * Warning: will not throw if ilk not found. Instead, will return a placeholder object.
@@ -32,7 +33,7 @@ export declare const getAssetInfo: (symbol?: string) => AssetData;
32
33
  * @returns {ExtendedIlkData}
33
34
  */
34
35
  export declare const getIlkInfo: (ilk?: string) => ExtendedIlkData;
35
- export declare const getAssetInfoByAddress: (address?: string) => AssetData;
36
+ export declare const getAssetInfoByAddress: (address?: string, chainId?: number | undefined) => AssetData;
36
37
  export declare const ilkToAsset: (ilk?: string) => string;
37
38
  /** @private **/
38
39
  export declare const compoundAsset: (underlyingAsset: string) => string;