@defisaver/token-icons 0.0.2 → 0.0.5

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.
package/icons/UST.svg ADDED
@@ -0,0 +1,13 @@
1
+ <svg width="193" height="193" viewBox="0 0 193 193" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M96.4995 193C149.795 193 193 149.795 193 96.4999C193 43.2044 149.795 -0.00012207 96.4995 -0.00012207C43.204 -0.00012207 -0.000488281 43.2044 -0.000488281 96.4999C-0.000488281 149.795 43.204 193 96.4995 193Z" fill="url(#paint0_linear_19374_56942)"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M138.052 114.407C140.86 108.621 142.434 102.125 142.434 95.2613C142.434 81.3333 135.951 68.9194 125.838 60.8728C114.172 60.5767 97.6269 64.1514 83.4828 78.9335C67.9774 95.1384 105.055 107.622 138.052 114.407Z" fill="white"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M54.5918 76.1383C57.5447 68.6982 62.4719 62.2564 68.7269 57.4595C76.6668 54.6835 86.4363 52.9401 86.2036 59.6886C85.8677 69.43 66.4181 76.7052 54.5918 76.1383Z" fill="white"/>
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M77.8642 138.134C61.8486 131.58 50.5654 115.841 50.5654 97.4668C50.5654 93.0071 51.2301 88.7026 52.4658 84.647C60.1322 91.0079 75.5257 107.039 79.1167 123.271C80.6036 129.992 79.7648 134.786 77.8642 138.134Z" fill="white"/>
6
+ <path d="M83.8726 100.385V121.33H138.408V117.141H113.238V112.952H138.408V108.763H113.238V104.574H138.408V100.385H83.8726ZM88.0676 102.48C88.6239 102.48 89.1574 102.701 89.5508 103.093C89.9442 103.486 90.1652 104.019 90.1652 104.574C90.1652 105.13 89.9442 105.662 89.5508 106.055C89.1574 106.448 88.6239 106.669 88.0676 106.669C87.5113 106.669 86.9778 106.448 86.5844 106.055C86.1911 105.662 85.9701 105.13 85.9701 104.574C85.9701 104.019 86.1911 103.486 86.5844 103.093C86.9778 102.701 87.5113 102.48 88.0676 102.48ZM96.4578 102.48C97.0141 102.48 97.5476 102.701 97.9409 103.093C98.3343 103.486 98.5553 104.019 98.5553 104.574C98.5553 105.13 98.3343 105.662 97.9409 106.055C97.5476 106.448 97.0141 106.669 96.4578 106.669C95.9015 106.669 95.3679 106.448 94.9746 106.055C94.5812 105.662 94.3602 105.13 94.3602 104.574C94.3602 104.019 94.5812 103.486 94.9746 103.093C95.3679 102.701 95.9015 102.48 96.4578 102.48ZM104.848 102.48C105.404 102.48 105.938 102.701 106.331 103.093C106.724 103.486 106.945 104.019 106.945 104.574C106.945 105.13 106.724 105.662 106.331 106.055C105.938 106.448 105.404 106.669 104.848 106.669C104.292 106.669 103.758 106.448 103.365 106.055C102.971 105.662 102.75 105.13 102.75 104.574C102.75 104.019 102.971 103.486 103.365 103.093C103.758 102.701 104.292 102.48 104.848 102.48ZM92.2627 108.763C92.819 108.763 93.3525 108.984 93.7459 109.377C94.1392 109.769 94.3602 110.302 94.3602 110.858C94.3602 111.413 94.1392 111.946 93.7459 112.338C93.3525 112.731 92.819 112.952 92.2627 112.952C91.7064 112.952 91.1729 112.731 90.7795 112.338C90.3861 111.946 90.1652 111.413 90.1652 110.858C90.1652 110.302 90.3861 109.769 90.7795 109.377C91.1729 108.984 91.7064 108.763 92.2627 108.763ZM100.653 108.763C101.209 108.763 101.743 108.984 102.136 109.377C102.529 109.769 102.75 110.302 102.75 110.858C102.75 111.413 102.529 111.946 102.136 112.338C101.743 112.731 101.209 112.952 100.653 112.952C100.097 112.952 99.563 112.731 99.1696 112.338C98.7763 111.946 98.5553 111.413 98.5553 110.858C98.5553 110.302 98.7763 109.769 99.1696 109.377C99.563 108.984 100.097 108.763 100.653 108.763ZM109.043 108.763C109.599 108.763 110.133 108.984 110.526 109.377C110.919 109.769 111.14 110.302 111.14 110.858C111.14 111.413 110.919 111.946 110.526 112.338C110.133 112.731 109.599 112.952 109.043 112.952C108.487 112.952 107.953 112.731 107.56 112.338C107.166 111.946 106.945 111.413 106.945 110.858C106.945 110.302 107.166 109.769 107.56 109.377C107.953 108.984 108.487 108.763 109.043 108.763ZM88.0676 115.046C88.6239 115.046 89.1574 115.267 89.5508 115.66C89.9442 116.053 90.1652 116.585 90.1652 117.141C90.1652 117.696 89.9442 118.229 89.5508 118.622C89.1574 119.014 88.6239 119.235 88.0676 119.235C87.5113 119.235 86.9778 119.014 86.5844 118.622C86.1911 118.229 85.9701 117.696 85.9701 117.141C85.9701 116.585 86.1911 116.053 86.5844 115.66C86.9778 115.267 87.5113 115.046 88.0676 115.046ZM96.4578 115.046C97.0141 115.046 97.5476 115.267 97.9409 115.66C98.3343 116.053 98.5553 116.585 98.5553 117.141C98.5553 117.696 98.3343 118.229 97.9409 118.622C97.5476 119.014 97.0141 119.235 96.4578 119.235C95.9015 119.235 95.3679 119.014 94.9746 118.622C94.5812 118.229 94.3602 117.696 94.3602 117.141C94.3602 116.585 94.5812 116.053 94.9746 115.66C95.3679 115.267 95.9015 115.046 96.4578 115.046ZM104.848 115.046C105.404 115.046 105.938 115.267 106.331 115.66C106.724 116.053 106.945 116.585 106.945 117.141C106.945 117.696 106.724 118.229 106.331 118.622C105.938 119.014 105.404 119.235 104.848 119.235C104.292 119.235 103.758 119.014 103.365 118.622C102.971 118.229 102.75 117.696 102.75 117.141C102.75 116.585 102.971 116.053 103.365 115.66C103.758 115.267 104.292 115.046 104.848 115.046ZM83.8726 125.518V129.707H138.408V125.518H83.8726ZM83.8726 133.896V138.085H138.408V133.896H83.8726Z" fill="white"/>
7
+ <defs>
8
+ <linearGradient id="paint0_linear_19374_56942" x1="96.4995" y1="-0.00012207" x2="96.4995" y2="193" gradientUnits="userSpaceOnUse">
9
+ <stop stop-color="#2A5ADA"/>
10
+ <stop offset="1" stop-color="#0232B2"/>
11
+ </linearGradient>
12
+ </defs>
13
+ </svg>
@@ -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.5",
4
4
  "description": "",
5
5
  "module": "src/index.js",
6
6
  "scripts": {
@@ -10,7 +10,7 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@defisaver/tokens": "^1.3.75",
13
+ "@defisaver/tokens": "^1.4.9",
14
14
  "react": "^17.0.2",
15
15
  "react-dom": "^17.0.2"
16
16
  }
package/src/icons.js CHANGED
@@ -113,6 +113,7 @@ import _UNIV2WBTCETH from '../icons/UNIV2WBTCETH.svg';
113
113
  import _USDC from '../icons/USDC.svg';
114
114
  import _USDP from '../icons/USDP.svg';
115
115
  import _USDT from '../icons/USDT.svg';
116
+ import _UST from '../icons/UST.svg';
116
117
  import _WBTC from '../icons/WBTC.svg';
117
118
  import _WETH from '../icons/WETH.svg';
118
119
  import _YAM from '../icons/YAM.svg';
@@ -203,6 +204,7 @@ import _iDAI from '../icons/iDAI.svg';
203
204
  import _imUSD from '../icons/imUSD.svg';
204
205
  import _mUSD from '../icons/mUSD.svg';
205
206
  import _stETH from '../icons/stETH.svg';
207
+ import _steCRV from '../icons/steCRV.svg';
206
208
  import _stkAAVE from '../icons/stkAAVE.svg';
207
209
  import _wstETH from '../icons/wstETH.svg';
208
210
  import _xSUSHI from '../icons/xSUSHI.svg';
@@ -323,6 +325,7 @@ export default {
323
325
  'USDC': _USDC,
324
326
  'USDP': _USDP,
325
327
  'USDT': _USDT,
328
+ 'UST': _UST,
326
329
  'WBTC': _WBTC,
327
330
  'WETH': _WETH,
328
331
  'YAM': _YAM,
@@ -413,6 +416,7 @@ export default {
413
416
  'imUSD': _imUSD,
414
417
  'mUSD': _mUSD,
415
418
  'stETH': _stETH,
419
+ 'steCRV': _steCRV,
416
420
  'stkAAVE': _stkAAVE,
417
421
  'wstETH': _wstETH,
418
422
  'xSUSHI': _xSUSHI,