Closed gaboesquivel closed 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
bitlauncher | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 10, 2024 6:41pm |
smartsale-faucet | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 10, 2024 6:41pm |
This pull request implements dynamic presale addresses and improves security. It includes changes to the presale deposit process, adds new database fields, updates API endpoints, and refactors various components for better type safety and code organization.
Change | Details | Files |
---|---|---|
Implemented dynamic presale addresses and improved security in the presale deposit process |
|
apps/web/api/activity/route.ts apps/web/components/routes/project/presale/presale-deposit-card.tsx apps/web/components/routes/project/presale/presale-token-balance.tsx apps/web/app/(routes)/[lang]/[project]/presale/page.tsx services/supabase/src/supa.schemas.ts services/supabase/src/supa.types.ts services/supabase/migrations/20240910163028_remote_schema.sql services/supabase/migrations/20240910180731_remote_schema.sql |
Refactored and improved the token issuance process |
|
services/trigger/src/lib/presale-issuer.ts services/trigger/src/trigger/activity.ts |
Updated Supabase service to support new presale functionality |
|
services/supabase/service.ts services/supabase/src/supa.schemas.ts services/supabase/src/supa.types.ts |
Refactored and updated React Email components and utilities |
|
services/resend/.react-email/src/components/* services/resend/.react-email/src/utils/* services/resend/.react-email/src/app/* services/resend/.react-email/next.config.js services/resend/.react-email/tailwind.config.ts |
Updated Alchemy webhook configuration |
|
services/alchemy/webhooks/activity-test.ts |
[!CAUTION]
Review failed
The pull request is closed.
The changes encompass updates to various components, services, and database schemas across the application. Key modifications include the introduction of new validation logic for project data, enhancements to presale deposit processing, and the addition of new properties and functions for better handling of token addresses. The database schema has been updated to improve clarity and integrity, including the introduction of a new enum type for deposit states. Overall, the modifications aim to refine functionality and streamline interactions within the application.
File Path | Change Summary |
---|---|
apps/web/app/(routes)/[lang]/[project]/presale/page.tsx |
Added validation for projectData.token_address , implementing a redirect if missing and passing tokenAddress to PresaleDepositCard . |
apps/web/app/api/activity/route.ts |
Replaced hardcoded presaleAddress with dynamic retrieval, updated deposit processing logic, and refined error handling for deposit transactions. |
apps/web/components/routes/project/presale/presale-deposit-card.tsx |
Added tokenAddress prop, modified PresaleTokenBalance to accept it, and adjusted available chains filtering logic. |
apps/web/components/routes/project/presale/presale-token-balance.tsx |
Enhanced to accept tokenAddress , updated to use erc20Abi for ERC20 balance retrieval. |
apps/web/services/supabase/service.ts |
Introduced new functions for presale data retrieval and deposit processing, including error handling improvements. |
packages/auction/src/types.ts |
Expanded ChainType to include 'eos' and 'solana'. |
packages/chains/package.json |
Added a description and updated main and types fields for better package clarity. |
services/alchemy/webhooks/activity-test.ts |
Updated webhook URL for address activity notifications. |
services/resend/.react-email/.eslintrc.js |
Introduced ESLint configuration for the React project, extending predefined rulesets. |
services/resend/.react-email/.prettierrc.js |
Minor formatting adjustment in Prettier config. |
services/resend/.react-email/build-preview-server.mjs |
Implemented server-side script for automating the Next.js build process. |
services/resend/.react-email/next.config.js |
Made formatting adjustments to Next.js configuration. |
services/resend/.react-email/package-lock.json |
Updated ansi-regex package version across dependencies. |
services/resend/.react-email/package.json |
Introduced package.json for the preview-server project with necessary configurations and dependencies. |
services/supabase/migrations/20240910163028_remote_schema.sql |
Modified alchemy_events and project tables, renaming columns for clarity and adding a new token_address . |
services/supabase/migrations/20240910180731_remote_schema.sql |
Created a new enum type state and added it to the presale_deposit table for tracking deposit statuses. |
services/resend/.react-email/src/components/icons/icon-button.tsx |
Introduced IconButton component for rendering customizable buttons. |
services/resend/.react-email/src/components/icons/icon-folder-open.tsx |
Added IconFolderOpen component for rendering an open folder icon. |
services/resend/.react-email/src/components/icons/icon-hide-sidebar.tsx |
Added IconHideSidebar component for rendering a sidebar hide icon. |
sequenceDiagram
participant User
participant ProjectPage
participant PresaleDepositCard
participant API
User->>ProjectPage: Request presale page
ProjectPage->>API: Validate project data
alt Token address is missing
ProjectPage->>User: Redirect to '/'
else Token address is present
ProjectPage->>PresaleDepositCard: Pass tokenAddress
PresaleDepositCard->>API: Fetch token balance
end
🐇 In the garden where changes bloom,
New paths are paved, dispelling gloom.
With tokens bright and deposits clear,
We hop along, spreading cheer!
Each function dances, each line a song,
Together we thrive, where we all belong! 🌼
[!TIP]
Announcements
- The review status is no longer posted as a separate comment when there are no actionable or nitpick comments. In such cases, the review status is included in the walkthrough comment. - We have updated our review workflow to use the Anthropic's Claude family of models. Please share any feedback in the [discussion post](https://discordapp.com/channels/1134356397673414807/1279579842131787838) on our Discord. - Possibly related PRs: Walkthrough comment now includes a list of potentially related PRs to help you recall past context. Please share any feedback in the [discussion post](https://discordapp.com/channels/1134356397673414807/1282535539299323995) on our Discord. - Suggested labels: CodeRabbit can now suggest labels by learning from your past PRs in the walkthrough comment. You can also provide custom labeling instructions in the UI or configuration file. - Possibly related PRs, automatic label suggestions based on past PRs, learnings, and possibly related issues require data opt-in (enabled by default).
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by Sourcery
Add dynamic presale address handling and improve security by introducing new functions for presale processing and token issuance. Refactor code for consistency and enhance the email rendering process. Update build configuration to support new features and remove deprecated files.
New Features:
Enhancements:
Build:
Chores:
Summary by CodeRabbit
New Features
token_address
is present before rendering the presale deposit card.Bug Fixes
Documentation
Style