Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@

- **Docker**
- **Node**
- **Python**
- **Python**

## Inicialização

Para inicializar a aplicação execute o comando `./start.sh`
26 changes: 15 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
version: '3.8'
version: "3.8"
services:
frontend:
depends_on:
- anvil
build:
context: ./ui
dockerfile: Dockerfile
ports:
- 3000:3000

anvil:
build:
context: ./smartcontracts
Expand All @@ -21,4 +12,17 @@ services:
- anvil
build:
context: ./smartcontracts
dockerfile: Dockerfile.deploy
dockerfile: Dockerfile.deploy
volumes:
- "./frontend/generated:/develop/generated"

frontend:
depends_on:
- anvil
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- 3000:3000
volumes:
- "./frontend/generated:/app/generated"
3 changes: 2 additions & 1 deletion frontend/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parser": "@typescript-eslint/parser",
"extends": ["next/core-web-vitals", "plugin:prettier/recommended", "plugin:@typescript-eslint/recommended"],
"rules": {
"@typescript-eslint/no-unused-vars": ["error"],
// "@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/no-unused-vars": ["off"],
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/ban-ts-comment": ["off"],
"prettier/prettier": [
Expand Down
17 changes: 17 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM node:20.11.1

WORKDIR /app

# COPY package*.json pnpm-lock.yaml ./
COPY package*.json ./

RUN npm install -g pnpm ; \
pnpm install

COPY . .
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

EXPOSE 3000

CMD ["/entrypoint.sh"]
33 changes: 19 additions & 14 deletions frontend/components/example-ui/assets/icontoken/busd.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@

export const IconBusd = ({ className }: { className: string }) => {
return (
<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_22_1289)">
<path d="M8 0.505615C12.4179 0.505615 16 4.0877 16 8.50562C16 12.9235 12.4179 16.5056 8 16.5056C3.58208 16.5056 0 12.9235 0 8.50562C0 4.0877 3.58208 0.505615 8 0.505615Z" fill="#F0B90B" />
<path d="M2.56006 8.50823L3.91878 7.14951L5.2775 8.50823L3.91878 9.86695L2.56006 8.50823ZM12.0813 7.14055L6.63494 12.587L7.99366 13.9457L13.4401 8.49927L12.0813 7.14055ZM4.59782 10.546L10.0442 5.09959L11.4029 6.45831L5.95654 11.9047L4.59782 10.546ZM4.59526 6.47367L8.00326 3.06567L9.36198 4.42439L5.95398 7.83239L4.59526 6.47367Z" fill="white" />
</g>
<defs>
<clipPath id="clip0_22_1289">
<rect width="16" height="16" fill="white" transform="translate(0 0.505615)" />
</clipPath>
</defs>
</svg>
);
return (
<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_22_1289)">
<path
d="M8 0.505615C12.4179 0.505615 16 4.0877 16 8.50562C16 12.9235 12.4179 16.5056 8 16.5056C3.58208 16.5056 0 12.9235 0 8.50562C0 4.0877 3.58208 0.505615 8 0.505615Z"
fill="#F0B90B"
/>
<path
d="M2.56006 8.50823L3.91878 7.14951L5.2775 8.50823L3.91878 9.86695L2.56006 8.50823ZM12.0813 7.14055L6.63494 12.587L7.99366 13.9457L13.4401 8.49927L12.0813 7.14055ZM4.59782 10.546L10.0442 5.09959L11.4029 6.45831L5.95654 11.9047L4.59782 10.546ZM4.59526 6.47367L8.00326 3.06567L9.36198 4.42439L5.95398 7.83239L4.59526 6.47367Z"
fill="white"
/>
</g>
<defs>
<clipPath id="clip0_22_1289">
<rect width="16" height="16" fill="white" transform="translate(0 0.505615)" />
</clipPath>
</defs>
</svg>
);
};
35 changes: 21 additions & 14 deletions frontend/components/example-ui/assets/icontoken/dai.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@

export const IconDai = ({ className }: { className: string }) => {
return (
<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_22_1269)">
<path d="M8 16.5056C12.4183 16.5056 16 12.9239 16 8.50562C16 4.08734 12.4183 0.505615 8 0.505615C3.58172 0.505615 0 4.08734 0 8.50562C0 12.9239 3.58172 16.5056 8 16.5056Z" fill="#F4B731" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.6385 4.50562H7.9145C9.907 4.50562 11.4175 5.56362 11.9795 7.10262H13V8.03312H12.1945C12.21 8.18012 12.218 8.33012 12.218 8.48212V8.50512C12.218 8.67612 12.208 8.84512 12.188 9.01012H13V9.94011H11.96C11.3835 11.4581 9.885 12.5056 7.915 12.5056H4.6385V9.94011H3.5V9.01012H4.6385V8.03312H3.5V7.10312H4.6385V4.50562ZM5.554 9.94011V11.6711H7.914C9.371 11.6711 10.453 10.9776 10.9565 9.94011H5.554ZM11.237 9.01012H5.554V8.03312H11.239C11.2595 8.18662 11.2705 8.34412 11.2705 8.50512V8.52762C11.2705 8.69212 11.259 8.85261 11.237 9.00961V9.01012ZM7.915 5.33812C9.378 5.33812 10.4635 6.05012 10.964 7.10212H5.554V5.33862H7.914L7.915 5.33812Z" fill="white" />
</g>
<defs>
<clipPath id="clip0_22_1269">
<rect width="16" height="16" fill="white" transform="translate(0 0.505615)" />
</clipPath>
</defs>
</svg>
);
return (
<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_22_1269)">
<path
d="M8 16.5056C12.4183 16.5056 16 12.9239 16 8.50562C16 4.08734 12.4183 0.505615 8 0.505615C3.58172 0.505615 0 4.08734 0 8.50562C0 12.9239 3.58172 16.5056 8 16.5056Z"
fill="#F4B731"
/>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M4.6385 4.50562H7.9145C9.907 4.50562 11.4175 5.56362 11.9795 7.10262H13V8.03312H12.1945C12.21 8.18012 12.218 8.33012 12.218 8.48212V8.50512C12.218 8.67612 12.208 8.84512 12.188 9.01012H13V9.94011H11.96C11.3835 11.4581 9.885 12.5056 7.915 12.5056H4.6385V9.94011H3.5V9.01012H4.6385V8.03312H3.5V7.10312H4.6385V4.50562ZM5.554 9.94011V11.6711H7.914C9.371 11.6711 10.453 10.9776 10.9565 9.94011H5.554ZM11.237 9.01012H5.554V8.03312H11.239C11.2595 8.18662 11.2705 8.34412 11.2705 8.50512V8.52762C11.2705 8.69212 11.259 8.85261 11.237 9.00961V9.01012ZM7.915 5.33812C9.378 5.33812 10.4635 6.05012 10.964 7.10212H5.554V5.33862H7.914L7.915 5.33812Z"
fill="white"
/>
</g>
<defs>
<clipPath id="clip0_22_1269">
<rect width="16" height="16" fill="white" transform="translate(0 0.505615)" />
</clipPath>
</defs>
</svg>
);
};
36 changes: 22 additions & 14 deletions frontend/components/example-ui/assets/icontoken/usdc.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@

export const IconUsdc = ({ className }: { className: string }) => {
return (
<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_22_1298)">
<path d="M8.00002 16.5056C9.58228 16.5056 11.129 16.0364 12.4446 15.1574C13.7602 14.2783 14.7856 13.0289 15.3911 11.5671C15.9966 10.1053 16.155 8.49674 15.8463 6.9449C15.5376 5.39305 14.7757 3.96758 13.6569 2.84876C12.5381 1.72994 11.1126 0.968018 9.56075 0.659337C8.0089 0.350655 6.40037 0.509081 4.93856 1.11458C3.47675 1.72008 2.22732 2.74546 1.34827 4.06106C0.469216 5.37665 2.42203e-05 6.92337 2.42203e-05 8.50562C-0.0025658 9.55692 0.202592 10.5984 0.603713 11.5701C1.00483 12.5419 1.59401 13.4249 2.33739 14.1682C3.08078 14.9116 3.96372 15.5008 4.9355 15.9019C5.90727 16.3031 6.94872 16.5082 8.00002 16.5056V16.5056Z" fill="#2775CA"/>
<path d="M10.2 9.77249C10.2 8.60885 9.50034 8.20522 8.10034 8.03867C7.09961 7.90558 6.90034 7.63867 6.90034 7.17249C6.90034 6.70631 7.23343 6.40522 7.89962 6.40522C8.50034 6.40522 8.83343 6.60522 8.99998 7.10558C9.01786 7.15379 9.05013 7.19534 9.0924 7.22461C9.13468 7.25387 9.18492 7.26945 9.23634 7.26922H9.76943C9.80031 7.27002 9.83102 7.26452 9.85971 7.25308C9.8884 7.24163 9.91445 7.22446 9.93629 7.20262C9.95813 7.18078 9.9753 7.15472 9.98675 7.12604C9.9982 7.09735 10.0037 7.06664 10.0029 7.03576V7.00303C9.93848 6.64175 9.75655 6.31186 9.48537 6.06461C9.21419 5.81736 8.86893 5.6666 8.50325 5.63576V4.83576C8.50325 4.70267 8.40289 4.60303 8.23634 4.56958H7.73598C7.60289 4.56958 7.50325 4.66922 7.4698 4.83576V5.60522C6.46689 5.74194 5.83343 6.40522 5.83343 7.23867C5.83343 8.33903 6.50034 8.77249 7.90034 8.93903C8.83343 9.10558 9.13671 9.30267 9.13671 9.83867C9.13671 10.3747 8.67052 10.739 8.03707 10.739C7.17016 10.739 6.87343 10.3754 6.77016 9.87212C6.76063 9.8159 6.73169 9.76481 6.68836 9.72773C6.64504 9.69065 6.59009 9.66995 6.53307 9.66922H5.96362C5.93277 9.66852 5.9021 9.67408 5.87346 9.68557C5.84482 9.69705 5.81881 9.71423 5.79699 9.73604C5.77517 9.75786 5.758 9.78388 5.74651 9.81252C5.73503 9.84115 5.72946 9.87182 5.73016 9.90267V9.93612C5.86398 10.7696 6.39707 11.3696 7.49743 11.5361V12.3361C7.49743 12.4692 7.59707 12.5696 7.76362 12.603H8.26398C8.39707 12.603 8.49743 12.5027 8.53016 12.3361V11.5361C9.53016 11.3696 10.1971 10.6692 10.1971 9.76958L10.2 9.77249Z" fill="white"/>
<path d="M6.2996 13.2722C5.34048 12.9204 4.51251 12.2826 3.92758 11.445C3.34266 10.6075 3.029 9.6105 3.029 8.58891C3.029 7.56731 3.34266 6.57035 3.92758 5.73278C4.51251 4.89521 5.34048 4.25743 6.2996 3.90563C6.36359 3.87796 6.41734 3.83097 6.45333 3.77125C6.48932 3.71153 6.50575 3.64206 6.50032 3.57254V3.10563C6.50482 3.04439 6.48695 2.9836 6.45004 2.93452C6.41313 2.88544 6.35968 2.85141 6.2996 2.83873C6.25268 2.83383 6.20554 2.84568 6.16651 2.87218C4.95299 3.25789 3.89369 4.01976 3.14194 5.04751C2.39019 6.07526 1.98499 7.31557 1.98499 8.58891C1.98499 9.86225 2.39019 11.1026 3.14194 12.1303C3.89369 13.1581 4.95299 13.9199 6.16651 14.3056C6.19422 14.3217 6.22536 14.331 6.25736 14.3328C6.28937 14.3345 6.32133 14.3287 6.35063 14.3157C6.37994 14.3027 6.40575 14.283 6.42595 14.2581C6.44616 14.2332 6.46018 14.2039 6.46687 14.1725C6.50032 14.1391 6.50032 14.1056 6.50032 14.0387V13.5725C6.50032 13.4722 6.39996 13.3391 6.2996 13.2722ZM9.83342 2.87218C9.80565 2.85608 9.77446 2.8468 9.74241 2.84509C9.71037 2.84338 9.67837 2.8493 9.64905 2.86237C9.61973 2.87543 9.59393 2.89526 9.57377 2.92022C9.5536 2.94519 9.53965 2.97459 9.53305 3.006C9.50032 3.03873 9.50032 3.07218 9.50032 3.13909V3.60527C9.50594 3.6725 9.52689 3.73754 9.56156 3.79541C9.59623 3.85327 9.6437 3.90243 9.70032 3.93909C10.6594 4.29088 11.4874 4.92867 12.0723 5.76624C12.6573 6.6038 12.9709 7.60077 12.9709 8.62236C12.9709 9.64396 12.6573 10.6409 12.0723 11.4785C11.4874 12.3161 10.6594 12.9538 9.70032 13.3056C9.6364 13.3333 9.58274 13.3804 9.54687 13.4401C9.51101 13.4998 9.49473 13.5693 9.50032 13.6387V14.1056C9.4958 14.1668 9.51357 14.2275 9.55033 14.2766C9.5871 14.3256 9.64037 14.3597 9.70032 14.3725C9.74725 14.3774 9.79439 14.3656 9.83342 14.3391C11.0465 13.948 12.1042 13.1823 12.8546 12.1521C13.6049 11.1218 14.0092 9.88016 14.0092 8.60564C14.0092 7.33111 13.6049 6.08943 12.8546 5.05918C12.1042 4.02894 11.0465 3.26323 9.83342 2.87218V2.87218Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_22_1298">
<rect width="16" height="16" fill="white" transform="translate(0 0.505615)"/>
</clipPath>
</defs>
</svg>
return (
<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_22_1298)">
<path
d="M8.00002 16.5056C9.58228 16.5056 11.129 16.0364 12.4446 15.1574C13.7602 14.2783 14.7856 13.0289 15.3911 11.5671C15.9966 10.1053 16.155 8.49674 15.8463 6.9449C15.5376 5.39305 14.7757 3.96758 13.6569 2.84876C12.5381 1.72994 11.1126 0.968018 9.56075 0.659337C8.0089 0.350655 6.40037 0.509081 4.93856 1.11458C3.47675 1.72008 2.22732 2.74546 1.34827 4.06106C0.469216 5.37665 2.42203e-05 6.92337 2.42203e-05 8.50562C-0.0025658 9.55692 0.202592 10.5984 0.603713 11.5701C1.00483 12.5419 1.59401 13.4249 2.33739 14.1682C3.08078 14.9116 3.96372 15.5008 4.9355 15.9019C5.90727 16.3031 6.94872 16.5082 8.00002 16.5056V16.5056Z"
fill="#2775CA"
/>
<path
d="M10.2 9.77249C10.2 8.60885 9.50034 8.20522 8.10034 8.03867C7.09961 7.90558 6.90034 7.63867 6.90034 7.17249C6.90034 6.70631 7.23343 6.40522 7.89962 6.40522C8.50034 6.40522 8.83343 6.60522 8.99998 7.10558C9.01786 7.15379 9.05013 7.19534 9.0924 7.22461C9.13468 7.25387 9.18492 7.26945 9.23634 7.26922H9.76943C9.80031 7.27002 9.83102 7.26452 9.85971 7.25308C9.8884 7.24163 9.91445 7.22446 9.93629 7.20262C9.95813 7.18078 9.9753 7.15472 9.98675 7.12604C9.9982 7.09735 10.0037 7.06664 10.0029 7.03576V7.00303C9.93848 6.64175 9.75655 6.31186 9.48537 6.06461C9.21419 5.81736 8.86893 5.6666 8.50325 5.63576V4.83576C8.50325 4.70267 8.40289 4.60303 8.23634 4.56958H7.73598C7.60289 4.56958 7.50325 4.66922 7.4698 4.83576V5.60522C6.46689 5.74194 5.83343 6.40522 5.83343 7.23867C5.83343 8.33903 6.50034 8.77249 7.90034 8.93903C8.83343 9.10558 9.13671 9.30267 9.13671 9.83867C9.13671 10.3747 8.67052 10.739 8.03707 10.739C7.17016 10.739 6.87343 10.3754 6.77016 9.87212C6.76063 9.8159 6.73169 9.76481 6.68836 9.72773C6.64504 9.69065 6.59009 9.66995 6.53307 9.66922H5.96362C5.93277 9.66852 5.9021 9.67408 5.87346 9.68557C5.84482 9.69705 5.81881 9.71423 5.79699 9.73604C5.77517 9.75786 5.758 9.78388 5.74651 9.81252C5.73503 9.84115 5.72946 9.87182 5.73016 9.90267V9.93612C5.86398 10.7696 6.39707 11.3696 7.49743 11.5361V12.3361C7.49743 12.4692 7.59707 12.5696 7.76362 12.603H8.26398C8.39707 12.603 8.49743 12.5027 8.53016 12.3361V11.5361C9.53016 11.3696 10.1971 10.6692 10.1971 9.76958L10.2 9.77249Z"
fill="white"
/>
<path
d="M6.2996 13.2722C5.34048 12.9204 4.51251 12.2826 3.92758 11.445C3.34266 10.6075 3.029 9.6105 3.029 8.58891C3.029 7.56731 3.34266 6.57035 3.92758 5.73278C4.51251 4.89521 5.34048 4.25743 6.2996 3.90563C6.36359 3.87796 6.41734 3.83097 6.45333 3.77125C6.48932 3.71153 6.50575 3.64206 6.50032 3.57254V3.10563C6.50482 3.04439 6.48695 2.9836 6.45004 2.93452C6.41313 2.88544 6.35968 2.85141 6.2996 2.83873C6.25268 2.83383 6.20554 2.84568 6.16651 2.87218C4.95299 3.25789 3.89369 4.01976 3.14194 5.04751C2.39019 6.07526 1.98499 7.31557 1.98499 8.58891C1.98499 9.86225 2.39019 11.1026 3.14194 12.1303C3.89369 13.1581 4.95299 13.9199 6.16651 14.3056C6.19422 14.3217 6.22536 14.331 6.25736 14.3328C6.28937 14.3345 6.32133 14.3287 6.35063 14.3157C6.37994 14.3027 6.40575 14.283 6.42595 14.2581C6.44616 14.2332 6.46018 14.2039 6.46687 14.1725C6.50032 14.1391 6.50032 14.1056 6.50032 14.0387V13.5725C6.50032 13.4722 6.39996 13.3391 6.2996 13.2722ZM9.83342 2.87218C9.80565 2.85608 9.77446 2.8468 9.74241 2.84509C9.71037 2.84338 9.67837 2.8493 9.64905 2.86237C9.61973 2.87543 9.59393 2.89526 9.57377 2.92022C9.5536 2.94519 9.53965 2.97459 9.53305 3.006C9.50032 3.03873 9.50032 3.07218 9.50032 3.13909V3.60527C9.50594 3.6725 9.52689 3.73754 9.56156 3.79541C9.59623 3.85327 9.6437 3.90243 9.70032 3.93909C10.6594 4.29088 11.4874 4.92867 12.0723 5.76624C12.6573 6.6038 12.9709 7.60077 12.9709 8.62236C12.9709 9.64396 12.6573 10.6409 12.0723 11.4785C11.4874 12.3161 10.6594 12.9538 9.70032 13.3056C9.6364 13.3333 9.58274 13.3804 9.54687 13.4401C9.51101 13.4998 9.49473 13.5693 9.50032 13.6387V14.1056C9.4958 14.1668 9.51357 14.2275 9.55033 14.2766C9.5871 14.3256 9.64037 14.3597 9.70032 14.3725C9.74725 14.3774 9.79439 14.3656 9.83342 14.3391C11.0465 13.948 12.1042 13.1823 12.8546 12.1521C13.6049 11.1218 14.0092 9.88016 14.0092 8.60564C14.0092 7.33111 13.6049 6.08943 12.8546 5.05918C12.1042 4.02894 11.0465 3.26323 9.83342 2.87218V2.87218Z"
fill="white"
/>
</g>
<defs>
<clipPath id="clip0_22_1298">
<rect width="16" height="16" fill="white" transform="translate(0 0.505615)" />
</clipPath>
</defs>
</svg>
);
};
33 changes: 20 additions & 13 deletions frontend/components/example-ui/assets/icontoken/usdt.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@

export const IconUsdt = ({ className }: { className: string }) => {
return (
<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_22_1261)">
<path d="M8 16.5056C12.4183 16.5056 16 12.9239 16 8.50562C16 4.08734 12.4183 0.505615 8 0.505615C3.58172 0.505615 0 4.08734 0 8.50562C0 12.9239 3.58172 16.5056 8 16.5056Z" fill="#26A17B" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.96102 9.19728V9.19628C8.90602 9.20028 8.62252 9.21728 7.99002 9.21728C7.48502 9.21728 7.12952 9.20228 7.00452 9.19628V9.19778C5.06052 9.11228 3.60952 8.77378 3.60952 8.36878C3.60952 7.96428 5.06052 7.62578 7.00452 7.53878V8.86078C7.13152 8.86978 7.49552 8.89128 7.99852 8.89128C8.60202 8.89128 8.90452 8.86628 8.96102 8.86128V7.53978C10.901 7.62628 12.3485 7.96478 12.3485 8.36878C12.3485 8.77378 10.901 9.11128 8.96102 9.19728V9.19728ZM8.96102 7.40228V6.21928H11.668V4.41528H4.29752V6.21928H7.00452V7.40178C4.80452 7.50278 3.15002 7.93878 3.15002 8.46078C3.15002 8.98278 4.80452 9.41828 7.00452 9.51978V13.3108H8.96102V9.51878C11.1575 9.41778 12.808 8.98228 12.808 8.46078C12.808 7.93928 11.1575 7.50378 8.96102 7.40228" fill="white" />
</g>
<defs>
<clipPath id="clip0_22_1261">
<rect width="16" height="16" fill="white" transform="translate(0 0.505615)" />
</clipPath>
</defs>
</svg>
return (
<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_22_1261)">
<path
d="M8 16.5056C12.4183 16.5056 16 12.9239 16 8.50562C16 4.08734 12.4183 0.505615 8 0.505615C3.58172 0.505615 0 4.08734 0 8.50562C0 12.9239 3.58172 16.5056 8 16.5056Z"
fill="#26A17B"
/>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M8.96102 9.19728V9.19628C8.90602 9.20028 8.62252 9.21728 7.99002 9.21728C7.48502 9.21728 7.12952 9.20228 7.00452 9.19628V9.19778C5.06052 9.11228 3.60952 8.77378 3.60952 8.36878C3.60952 7.96428 5.06052 7.62578 7.00452 7.53878V8.86078C7.13152 8.86978 7.49552 8.89128 7.99852 8.89128C8.60202 8.89128 8.90452 8.86628 8.96102 8.86128V7.53978C10.901 7.62628 12.3485 7.96478 12.3485 8.36878C12.3485 8.77378 10.901 9.11128 8.96102 9.19728V9.19728ZM8.96102 7.40228V6.21928H11.668V4.41528H4.29752V6.21928H7.00452V7.40178C4.80452 7.50278 3.15002 7.93878 3.15002 8.46078C3.15002 8.98278 4.80452 9.41828 7.00452 9.51978V13.3108H8.96102V9.51878C11.1575 9.41778 12.808 8.98228 12.808 8.46078C12.808 7.93928 11.1575 7.50378 8.96102 7.40228"
fill="white"
/>
</g>
<defs>
<clipPath id="clip0_22_1261">
<rect width="16" height="16" fill="white" transform="translate(0 0.505615)" />
</clipPath>
</defs>
</svg>
);
};
13 changes: 13 additions & 0 deletions frontend/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

echo "Verificando se o arquivo deployedContracts.ts já foi criado."
while [ ! -f ./generated/deployedContracts.ts ]; do
echo "Aguardando..."
sleep 1
done
echo "Arquivo existente. Iniciando servidor"

pnpm run build

# Inicie o servidor Next.js
pnpm start
11 changes: 8 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"dev": "next dev",
"start": "next dev",
"build": "next build",
"build": "NEXT_PUBLIC_IGNORE_BUILD_ERROR=true next build",
"crazy-build": "tsc --noEmit && next build",
"serve": "next start",
"lint": "next lint",
"format": "prettier --write . '!(node_module|.next|contracts)/**/*'",
Expand All @@ -14,11 +15,15 @@
"vercel:yolo": "vercel --build-env NEXT_PUBLIC_IGNORE_BUILD_ERROR=true"
},
"dependencies": {
"@ethersproject/abstract-provider": "^5.7.0",
"@ethersproject/networks": "^5.7.1",
"@ethersproject/providers": "^5.7.2",
"@ethersproject/units": "^5.7.0",
"@ethersproject/web": "^5.7.1",
"@heroicons/react": "^2.0.11",
"@rainbow-me/rainbowkit": "^0.11.0",
"@uniswap/sdk": "^3.0.3",
"abitype": "^1.0.2",
"daisyui": "^2.31.0",
"ethers": "^5.0.0",
"next": "^13.1.6",
Expand All @@ -36,7 +41,7 @@
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
"@types/node": "^17.0.35",
"@types/node": "^20.11.30",
"@types/react": "^18.0.9",
"@types/react-blockies": "^1.4.1",
"@types/react-copy-to-clipboard": "^5.0.4",
Expand All @@ -49,7 +54,7 @@
"postcss": "^8.4.16",
"prettier": "^2.8.4",
"tailwindcss": "^3.1.8",
"typescript": "^4.9.5",
"typescript": "^5.4.2",
"vercel": "^28.15.1"
}
}
Loading