Skip to content

Conversation

@Abstrucked
Copy link
Collaborator

No description provided.

Introduce new components for the presale, including NftList, ContributeForm, Bonus, and Timer, to handle functionality like NFT locking, bonus calculation, and timer display. Refactor the client logic by replacing useEthClient with useSaleClient and transitioning to usePreSaleClient for presale-specific operations.
This update removes all NFT-related logic and components from the sale flow, including `NftList` and related computations. Replaced old components with the consolidated `Contribute` component for a streamlined contribution process. Minor formatting adjustments and code cleanups were also carried out.
Renamed and updated "sale" related components, stores, and types to "presale" for consistency with functionality. Refactored logic to enhance maintainability and unified component usage with updated naming conventions and dependencies.
Switched from directly using EthereumClient for sale data to relying on `/api/sale` endpoints, simplifying contract interactions. Replaced legacy methods with new API implementations and cleaned up unused helper functions. Introduced new server API handlers for fetching state and max contributions.
Introduced APIs for fetching ERC20 token allowances and balances. Updated token handling to dynamically fetch token lists and integrated server-side APIs for improved reliability. Refactored frontend logic for balances, allowances, and token selection to ensure scalability and maintainability.

WIP :: agreement-status-fetching seems to have broke due to implementation changes
Updated walletStore methods to require explicit addresses for clarity and enhanced token balance checks. Improved error handling and logging in ERC20 allowance retrieval to aid debugging. Removed unnecessary whitespace for cleaner code.
Presale still WIP
Replaced direct Ethereum contract interactions in the presale client with server-side API calls for state, contributions, and max contributions. Updated associated composables and stores to align with the API structure. Added routes for fetching presale data securely and improved error handling across components.
@vercel
Copy link

vercel bot commented Apr 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sir-landing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 30, 2025 9:41pm

Previously, the `address` object lacked the `.value` accessor, causing potential issues with parameter resolution. This change corrects the API call to properly use `address.value`, ensuring accurate data retrieval.
Reorganized .env.example file by adding placeholders for presale and sale contracts, database configuration, and API details. Removed hardcoded values and ensured a clearer structure for better environment management. This improves flexibility and clarity for developers setting up their environments.
Codonyat and others added 3 commits April 23, 2025 10:22
Simplified NFT fetching and contract interaction by replacing custom EthereumClient instances with ethers.js. Standardized presale store naming to `presaleStore` and improved runtime environment handling. Enhanced error handling, logging, and added utility functions in `useWallet` for better provider management.
Replaced direct access to `useRuntimeConfig` with `useEnv` for `buterinCards` and `minedJpeg` in components and composables. Updated `useEnv` to handle production and testnet configurations, ensuring proper validation for new environment variables. This change improves consistency and maintainability of environment configuration.
Deleted the unused `ContributeForm.vue` in the presale component, ensuring no dead code remains. Minor adjustments were made across related files, including enabling `PresaleBonus` in `NftList.vue` and formatting for clarity in `PreviousContributions.vue`.
This commit removes deprecated methods and variables related to locking NFTs, withdrawing funds, and managing NFT selections in the presale module. The cleanup streamlines the codebase and eliminates unneeded functionality to align with updated requirements.
Deleted the `ContributeForm.vue` component as it is no longer in use. Additionally, removed numerous `console.log` debug statements across various files to streamline the codebase and improve readability.
Replaced direct reactive property access with computed properties for `isConnected` and `hasSaleEnded`. Updated template and logic to improve readability and maintain Vue best practices.
This cleanup improves code readability by eliminating an extra blank line in the template. No functional changes were made to the component.
@Codonyat Codonyat merged commit 6777e02 into main May 1, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants