Skip to content

Commit

Permalink
Merge branch 'main' into add-polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMirim authored Sep 28, 2023
2 parents ce79198 + 9f5610d commit c32d440
Show file tree
Hide file tree
Showing 26 changed files with 727 additions and 233 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yearn-finance/web-lib",
"version": "3.0.39",
"version": "3.0.41",
"main": "./dist/index.js",
"types": "./dist/index.d.js",
"files": [
Expand All @@ -22,14 +22,14 @@
"test": "yarn node --experimental-vm-modules $(yarn bin jest)"
},
"dependencies": {
"@babel/core": "^7.22.17",
"@babel/core": "^7.22.20",
"@headlessui/react": "^1.7.17",
"@rainbow-me/rainbowkit": "^1.0.11",
"@react-hookz/web": "^23.1.0",
"@tailwindcss/forms": "^0.5.6",
"@tailwindcss/typography": "^0.5.10",
"@wagmi/chains": "1.8.0",
"@wagmi/core": "^1.4.2",
"@wagmi/core": "1.4.1",
"@web3modal/ethereum": "^2.7.1",
"@web3modal/react": "^2.7.1",
"autoprefixer": "^10.4.15",
Expand All @@ -50,8 +50,8 @@
"sharp": "^0.32.5",
"tailwindcss": "^3.3.3",
"tsup": "^7.2.0",
"viem": "^1.10.14",
"wagmi": "^1.4.2",
"viem": "1.10.14",
"wagmi": "1.4.1",
"zod": "^3.22.2"
},
"devDependencies": {
Expand Down
24 changes: 24 additions & 0 deletions src/icons/IconChain.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react';

import type {ReactElement} from 'react';

export function IconChain(props: React.SVGProps<SVGSVGElement>): ReactElement {
return (
<svg
width={'24'}
height={'24'}
viewBox={'0 0 24 24'}
fill={'none'}
xmlns={'http://www.w3.org/2000/svg'}
{...props}>
<path
fill={'#5B5B5B'}
d={'M11.53 12.47a3.318 3.318 0 004.693 0l2.815-2.816a3.317 3.317 0 10-4.692-4.692l-2.111 2.111a.992.992 0 01-1.408 0 .995.995 0 010-1.407l2.111-2.111a5.308 5.308 0 117.507 7.507l-2.815 2.815a5.308 5.308 0 01-7.928-.475.745.745 0 01-.16-.443.843.843 0 01.187-.555.917.917 0 01.074-.084l.02-.019c.455-.456 1.252-.287 1.708.168z'}
/>
<path
fill={'#5B5B5B'}
d={'M7.777 11.53l-2.815 2.816a3.317 3.317 0 104.692 4.692l2.111-2.111a.995.995 0 011.408 1.407l-2.111 2.111a5.308 5.308 0 01-7.507-7.507l2.815-2.815a5.308 5.308 0 017.846.373l.082.101c.257.327.193.788-.1 1.083l-.02.019c-.456.456-1.254.287-1.709-.168a3.318 3.318 0 00-4.692 0z'}
/>
</svg>
);
}
20 changes: 0 additions & 20 deletions src/icons/IconNetworkArbitrum.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions src/icons/IconNetworkBase.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions src/icons/IconNetworkEthereum.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions src/icons/IconNetworkFantom.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions src/icons/IconNetworkOptimism.tsx

This file was deleted.

45 changes: 45 additions & 0 deletions src/icons/chains/IconArbitrumChain.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import React from 'react';

import type {ReactElement} from 'react';

export function IconArbitrumChain(props: React.SVGProps<SVGSVGElement>): ReactElement {
return (
<svg
width={32}
height={32}
fill={'none'}
xmlns={'http://www.w3.org/2000/svg'}
viewBox={'0 0 32 32'}
{...props}>
<g clipPath={'url(#clip0_621_285568)'}>
<path
fill={'#2F3749'}
d={'M16 32c8.92 0 16-7.221 16-16 0-8.92-7.221-16-16-16C7.08 0 0 7.221 0 16s7.221 16 16 16z'}
/>
<path
fill={'#9DCCED'}
fillRule={'evenodd'}
d={'M16.153 6.41A.32.32 0 0016 6.355a.31.31 0 00-.153.044L7.56 11.068a.317.317 0 00-.153.264v9.345c0 .105.054.21.153.264l3.444 1.94-.486 1.294-3.662-2.063A1.654 1.654 0 016 20.668v-9.336c0-.599.325-1.145.857-1.444l8.286-4.668c.269-.149.556-.22.852-.22.297 0 .593.071.853.22l8.295 4.668c.532.3.857.845.857 1.444v9.336c0 .599-.325 1.145-.857 1.444l-8.286 4.668c-.27.15-.56.22-.857.22-.298 0-.596-.07-.857-.22l-3.753-2.114.476-1.303.598.34 3.383 1.905a.31.31 0 00.153.044.31.31 0 00.153-.044l8.286-4.667a.317.317 0 00.153-.264V11.34a.298.298 0 00-.153-.264l-8.286-4.668z'}
clipRule={'evenodd'}
/>
<path
fill={'#fff'}
fillRule={'evenodd'}
d={'M13.187 10.661H15.3c.126 0 .216.123.171.247l-4.965 13.271-2.176-1.224 4.505-12.047a.39.39 0 01.352-.247zm3.684 0h2.103c.126 0 .217.123.171.247l-5.597 14.98-2.175-1.224 5.145-13.756a.39.39 0 01.352-.247z'}
clipRule={'evenodd'}
/>
<path
fill={'#12AAFF'}
fillRule={'evenodd'}
d={'M23.18 21.647l-3.32-8.877a.19.19 0 00-.352 0l-1.092 2.923a.41.41 0 000 .255l2.59 6.924 2.174-1.225zm-3.04 1.712l-2.122-5.677a.19.19 0 00-.352 0l-1.092 2.923a.41.41 0 000 .255l1.39 3.723 2.176-1.224z'}
clipRule={'evenodd'}
/>
</g>
<defs>
<clipPath id={'clip0_621_285568'}>
<path fill={'#fff'} d={'M0 0H32V32H0z'} />
</clipPath>
</defs>
</svg>
);
}
26 changes: 26 additions & 0 deletions src/icons/chains/IconAvalancheChain.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from 'react';

import type {ReactElement} from 'react';

export function IconAvalancheChain(props: React.SVGProps<SVGSVGElement>): ReactElement {
return (
<svg
width={32}
height={32}
fill={'none'}
xmlns={'http://www.w3.org/2000/svg'}
viewBox={'0 0 32 32'}
{...props}>
<path
fill={'#E84142'}
d={'M32 16c0 8.837-7.163 16-16 16S0 24.837 0 16 7.163 0 16 0s16 7.163 16 16z'}
/>
<path
fill={'#fff'}
fillRule={'evenodd'}
d={'M8.489 22.98h3.031c.465.035.933.014 1.393-.062.348-.106.666-.292.928-.544.304-.344.557-.73.752-1.146l3.935-6.957c.258-.392.46-.817.601-1.265a2.294 2.294 0 000-1.061 4.943 4.943 0 00-.588-1.236l-1.53-2.683-.056-.096c-.286-.492-.437-.75-.628-.845a.752.752 0 00-.695 0c-.214.107-.37.382-.673.91l-.022.04-7.48 13.136c-.31.555-.457.836-.457 1.055a.76.76 0 00.35.633c.365.13.755.17 1.139.12zm15.011 0h-4.336a2.482 2.482 0 01-1.115-.123.787.787 0 01-.354-.633c-.006-.215.145-.478.446-1l.024-.042 2.22-3.713c.316-.55.482-.822.678-.922a.752.752 0 01.696 0c.17.096.33.356.631.874v.037l2.173 3.713v.05c.297.518.437.786.437 1.005a.771.771 0 01-.348.633c-.37.127-.763.168-1.152.12z'}
clipRule={'evenodd'}
/>
</svg>
);
}
35 changes: 35 additions & 0 deletions src/icons/chains/IconBNBChain.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import React from 'react';

import type {ReactElement} from 'react';

export function IconBNBChain(props: React.SVGProps<SVGSVGElement>): ReactElement {
return (
<svg
width={32}
height={32}
fill={'none'}
xmlns={'http://www.w3.org/2000/svg'}
viewBox={'0 0 32 32'}
{...props}>
<g
fillRule={'evenodd'}
clipPath={'url(#clip0_621_285291)'}
clipRule={'evenodd'}
>
<path
fill={'#F0B90B'}
d={'M16 0c8.837 0 16 7.163 16 16s-7.163 16-16 16S0 24.837 0 16 7.163 0 16 0z'}
/>
<path
fill={'#fff'}
d={'M22.135 15.118l-.013-2.491h.01L19.87 11.38l-3.877 2.138-3.853-2.138-2.26 1.246v2.491l3.876 2.128v4.265l2.25 1.234 2.252-1.234v-4.265l3.877-2.128zM15.995 5L9.878 8.373l2.251 1.246 3.866-2.138 3.876 2.138 2.251-1.246L15.995 5zM8.264 20.255L8.25 16l-2.25-1.244v6.756l6.128 3.362v-2.491l-3.865-2.128zm-.013-6.03v-2.48l2.262-1.246-2.262-1.245L6 10.499v2.48l2.251 1.246zm7.744-4.971l-2.252 1.245 2.252 1.246 2.262-1.246-2.263-1.245zm-3.866 8.874l-2.251-1.246v2.491l2.251 1.234v-2.48zm3.866 6.392l-2.252-1.245v2.48L15.995 27l2.262-1.246v-2.48l-2.263 1.246zm7.741-15.266l-2.25 1.245 2.25 1.246v2.48L26 12.979v-2.48l-2.263-1.245zm2.264 5.5L23.749 16l-.013 4.255-3.864 2.126v2.491L26 21.511v-6.757zm-3.878 4.62l-2.252 1.233v-2.48l2.252-1.245v2.491z'}
/>
</g>
<defs>
<clipPath id={'clip0_621_285291'}>
<path fill={'#fff'} d={'M0 0H32V32H0z'} />
</clipPath>
</defs>
</svg>
);
}
31 changes: 31 additions & 0 deletions src/icons/chains/IconBaseChain.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React from 'react';

import type {ReactElement} from 'react';

export function IconBaseChain(props: React.SVGProps<SVGSVGElement>): ReactElement {
return (
<svg
width={32}
height={32}
fill={'none'}
xmlns={'http://www.w3.org/2000/svg'}
viewBox={'0 0 32 32'}
{...props}>
<g clipPath={'url(#clip0_621_285370)'}>
<path
fill={'#1C55F5'}
d={'M32 16c0 8.837-7.163 16-16 16S0 24.837 0 16 7.163 0 16 0s16 7.163 16 16z'}
/>
<path
fill={'#fff'}
d={'M15.977 29C23.17 29 29 23.18 29 16S23.17 3 15.977 3C9.154 3 3.557 8.24 3 14.907h17.213v2.186H3C3.556 23.761 9.154 29 15.977 29z'}
/>
</g>
<defs>
<clipPath id={'clip0_621_285370'}>
<path fill={'#fff'} d={'M0 0H32V32H0z'} />
</clipPath>
</defs>
</svg>
);
}
33 changes: 33 additions & 0 deletions src/icons/chains/IconCantoChain.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import React from 'react';

import type {ReactElement} from 'react';

export function IconCantoChain(props: React.SVGProps<SVGSVGElement>): ReactElement {
return (
<svg
width={32}
height={32}
fill={'none'}
xmlns={'http://www.w3.org/2000/svg'}
viewBox={'0 0 32 32'}
{...props}>
<g clipPath={'url(#clip0_621_285364)'}>
<path
fill={'#06FC99'}
d={'M32 16c0 8.837-7.163 16-16 16S0 24.837 0 16 7.163 0 16 0s16 7.163 16 16z'}
/>
<path
fill={'#000'}
fillRule={'evenodd'}
d={'M25 6v20H10.375v-3.53H7V9.53h3.375V6H25zM13.187 9.53h8.438v3.529h-8.438v-3.53zm8.438 10h-8.438v-6.471H9.812v6.47h3.375v3.53h8.438v-3.53z'}
clipRule={'evenodd'}
/>
</g>
<defs>
<clipPath id={'clip0_621_285364'}>
<path fill={'#fff'} d={'M0 0H32V32H0z'} />
</clipPath>
</defs>
</svg>
);
}
Loading

0 comments on commit c32d440

Please sign in to comment.