@defisaver/token-icons 0.0.2 → 0.0.3

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 ADDED
@@ -0,0 +1,9 @@
1
+ # DFS Token Icons
2
+
3
+ Package containing a registry of token icons to complement the [tokens](https://github.com/defisaver/defisaver-tokens) package. Because this package imports and exposes .svg files directly, it is meant to be used in a webpack (or similar) environment, with a loader configured for .svg files.
4
+
5
+ ## Adding new icons
6
+
7
+ - Add .svg file to icons/ folder using token symbol as the name;
8
+ - If token symbol contains non-alphanumeric characters, replace them with underscore and make sure to add a comment on the first line containing the actual token name (See [ETH2x-FLI](https://github.com/defisaver/defisaver-token-icons/blob/main/icons/ETH2x_FLI.svg) and [cWBTC Legacy](https://github.com/defisaver/defisaver-token-icons/blob/main/icons/cWBTC_Legacy.svg));
9
+ - Run `node scripts/generateIconsIndex` to generate the index.
@@ -0,0 +1 @@
1
+ <svg width="193" height="193" viewBox="0 0 193 193" fill="none" xmlns="http://www.w3.org/2000/svg" data-reactroot=""><circle cx="96.5" cy="96.5" r="96.5" fill="url(#1_crv_steth_icon_fcf02bed-026e-45e9-879a-16badb4a8ef9)"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M97.0391 39L123.273 80.0627L97.0391 95.3473L70.8052 80.0627L97.0391 39ZM78.8343 78.1177L97.0391 49.6261L115.239 78.1177L97.0338 88.7279L78.8343 78.1124V78.1177Z" fill="white"></path><path d="M97.0019 104.373L66.5652 86.645L65.7332 87.9435C61.1846 95.0648 59.2042 103.526 60.1198 111.926C61.0354 120.326 64.792 128.162 70.768 134.136C77.7252 141.093 87.1607 145.001 96.9992 145.001C106.838 145.001 116.273 141.093 123.231 134.136C129.206 128.162 132.963 120.326 133.879 111.926C134.794 103.526 132.814 95.0648 128.265 87.9435L127.428 86.645L97.0019 104.373Z" fill="white"></path><path d="M148.5 89C173.077 89 193 69.0767 193 44.5C193 19.9233 173.077 0 148.5 0C123.923 0 104 19.9233 104 44.5C104 69.0767 123.923 89 148.5 89Z" fill="url(#2_crv_steth_icon_fcf02bed-026e-45e9-879a-16badb4a8ef9)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M139.147 68.2523C130.782 68.2523 127.088 54.9021 127.088 42.7223C126.871 36.6747 129.174 24.2971 140.125 23.1673C153.813 21.755 168.059 34.2484 170.978 40.2236C173.898 46.1987 173.694 51.1961 165.546 53.912C159.028 56.0848 150.48 58.1489 147.021 58.9094C146.249 64.5615 144.262 68.2523 139.147 68.2523ZM147.512 46.1987L147.458 46.1031C147.332 46.171 147.375 46.1987 147.512 46.1987ZM147.458 46.1031C144.405 40.6169 145.032 37.0713 150.649 37.0713C156.298 37.0713 170.869 40.5495 158.267 43.3741C150.421 45.1328 147.9 45.8649 147.458 46.1031ZM139.709 65.2353C143.359 64.5161 145.434 59.4472 144.344 53.9137C143.253 48.3801 139.411 44.4774 135.761 45.1966C132.111 45.9158 130.036 50.9846 131.127 56.5181C132.217 62.0517 136.06 65.9545 139.709 65.2353Z" fill="white"></path><defs><linearGradient id="1_crv_steth_icon_fcf02bed-026e-45e9-879a-16badb4a8ef9" x1="96.5" y1="0" x2="96.5" y2="193" gradientUnits="userSpaceOnUse"><stop stop-color="#00A3FF"></stop><stop offset="1" stop-color="#005E93"></stop></linearGradient><linearGradient id="2_crv_steth_icon_fcf02bed-026e-45e9-879a-16badb4a8ef9" x1="148.5" y1="0" x2="148.5" y2="89" gradientUnits="userSpaceOnUse"><stop stop-color="#3465A4"></stop><stop offset="1" stop-color="#164786"></stop></linearGradient></defs></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/token-icons",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "",
5
5
  "module": "src/index.js",
6
6
  "scripts": {
package/src/icons.js CHANGED
@@ -203,6 +203,7 @@ import _iDAI from '../icons/iDAI.svg';
203
203
  import _imUSD from '../icons/imUSD.svg';
204
204
  import _mUSD from '../icons/mUSD.svg';
205
205
  import _stETH from '../icons/stETH.svg';
206
+ import _steCRV from '../icons/steCRV.svg';
206
207
  import _stkAAVE from '../icons/stkAAVE.svg';
207
208
  import _wstETH from '../icons/wstETH.svg';
208
209
  import _xSUSHI from '../icons/xSUSHI.svg';
@@ -413,6 +414,7 @@ export default {
413
414
  'imUSD': _imUSD,
414
415
  'mUSD': _mUSD,
415
416
  'stETH': _stETH,
417
+ 'steCRV': _steCRV,
416
418
  'stkAAVE': _stkAAVE,
417
419
  'wstETH': _wstETH,
418
420
  'xSUSHI': _xSUSHI,