generated from Abstrucked/nuxt3-web3-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/new sale #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Feature/new sale #97
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
… allow for different contracts
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.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
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.
…-landing into feature/new-sale
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.
…-landing into feature/new-sale
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.