-
Notifications
You must be signed in to change notification settings - Fork 6
Aiken crowdfund #164
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
Open
QSchlegel
wants to merge
33
commits into
main
Choose a base branch
from
aiken-crowdfund
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Aiken crowdfund #164
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
…th crowdfund page refactor(api): add crowdfund and ballot routers to appRouter chore(schema): remove unused Ballot and Crowdfund models
…nd wallet integration - Added MeshTxInitiator class to manage transaction signing, submission, and UTxO queries. - Introduced methods for fetching wallet UTxOs, collateral, and addresses. - Implemented logic for handling different network configurations and language versions. - Created CrowdfundDatum and CrowdfundDatumTS interfaces for crowdfund data structure. - Developed Progress component for visual representation of progress in the UI.
- Updated @meshsdk/core and related packages to version 1.9.0-beta.72. - Upgraded Next.js to version 15.5.0. - Refactored offchain.ts to add fallback values for CrowdfundDatum properties. - Enhanced transaction debugging by logging parameters before completion. - Changed txOutInlineDatumValue to specify JSON format. - Updated crowdfund.ts to use MPubKeyAddress and Bool types instead of PubKeyAddress and Boolean.
- Updated LaunchCrowdfund to handle new contract setup and improved error handling. - Removed WithdrawFromCrowdfund component and integrated its functionality into the main crowdfund flow. - Added ContributeToCrowdfund component for handling contributions with updated state management. - Enhanced MeshCrowdfundContract to support new datum structure and transaction handling. - Updated database schema to include createdAt timestamp for Crowdfund. - Improved UI elements for better user experience and feedback.
- Implemented `evalTx` method in `MeshTxInitiator` for offline transaction evaluation using `OfflineEvaluator`. - Updated `PageCrowdfund` component to enhance the detail modal UI by removing unnecessary elements and adding scrollbar hiding functionality. - Adjusted funding data calculations in `CrowdfundCard` to properly reflect amounts in millions. - Added CSS styles to hide scrollbars while maintaining scroll functionality.
…oved network handling and error management
- Added `govDatum` and `govAddress` fields to the Crowdfund model for governance data. - Updated PageCrowdfund component to manage draft states, allowing users to edit drafts and view appropriate messages. - Improved UI elements to indicate when a crowdfund is in draft mode, preventing contributions and withdrawals until deployment. - Refactored LaunchCrowdfund to support draft data handling and integrated it into the crowdfund creation flow. - Enhanced CrowdfundCard and related components to display draft status and governance features.
…orts; combine Prisma models; align deps; remove conflicted lockfile
- Bump @meshsdk/core and related packages to version 1.9.0-beta.86 in package.json and package-lock.json. - Implement completeCrowdfund method in MeshCrowdfundContract to handle transaction creation with collateral and auth tokens. - Add registerCerts method in MeshCrowdfundGovExtensionContract for managing governance actions and certificates. - Introduce utility methods for fetching auth tokens and calculating slot times in both contract classes.
- Add detailed documentation for the withdrawCrowdfund method in MeshCrowdfundContract, outlining the withdrawal process and error handling. - Update the WithdrawFromCrowdfund component to clarify user instructions and improve the display of total raised funds. - Implement new API procedures for contributing to and withdrawing from crowdfunds, ensuring accurate updates to current_fundraised_amount in the database.
- Introduced a new CrowdfundGovExtension model in the Prisma schema to support governance features. - Updated the Crowdfund model to include a reference to the new governance extension. - Enhanced the CrowdfundCard component to display governance-related information and badges. - Modified the contribute functionality to account for governance deposits and updated contribution calculations. - Updated API procedures to handle the creation and updating of governance extension data alongside crowdfunds. - Improved user interface elements for governance actions and metadata uploads in the launch wizard.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Updated type imports for OnChainTransaction, TxInfo, ProxyData, and UTXO. - Introduced TxUtxosResponse interface for better structure of UTXO data. - Enhanced error handling in refreshWallet calls to log errors appropriately. - Adjusted dependencies in useEffect to include walletsUtxos for more accurate updates.
- Simplified validation for governance actions by removing unnecessary checks for gov_action_period, defaulting it to 6. - Updated funding target calculations to ensure consistency with governance deposits. - Removed deprecated deposit input fields from the LaunchExt component and streamlined deposit handling. - Enhanced state management for governance data to synchronize deposits with fundraising targets.
- Updated the schema to change deposit fields from Int to BigInt for better handling of large values. - Refactored crowdfund components to ensure governance extension is always enabled, simplifying the configuration process. - Improved contribution fetching logic to accurately reflect contributions from the blockchain. - Streamlined deposit handling and validation in the LaunchWizard and related components, ensuring consistency across the governance process. - Enhanced user interface elements to provide clearer governance settings and metadata requirements.
- Updated the Crowdfund model in the Prisma schema to enhance governance configuration, replacing deprecated fields with new structured data. - Introduced optional governance testnet environment variable in the env configuration for better testing flexibility. - Refactored crowdfund components to utilize the new governance data structure, ensuring consistency across the application. - Removed obsolete components and streamlined the crowdfund creation and management process, improving overall code maintainability.
- Added optional environment variables for Sancho API URL and custom slot configuration to improve flexibility in testing and deployment. - Refactored crowdfund components to utilize standardized fetch methods for transactions and UTxOs, enhancing consistency and error handling. - Updated contribution fetching logic to accurately reflect contributions and withdrawals, including improved handling of transaction types. - Introduced charting capabilities for visualizing funding progress over time, enhancing user experience in crowdfund information display. - Streamlined wallet data loading processes and improved error handling across various components for better reliability.
- Introduced a new UrlShortener model in the Prisma schema to support URL shortening functionality. - Enhanced environment configuration by adding optional Pinata API keys for improved integration with IPFS. - Refactored crowdfund components to analyze transaction flows, accurately distinguishing between contributions and withdrawals. - Implemented a URL shortening mechanism for governance anchors to ensure compliance with Cardano's character limits. - Improved user interface elements for displaying transaction types and contributions, enhancing overall user experience.
- Updated the Crowdfund model in the Prisma schema to include optional fields for spend and stake reference scripts, as well as a reference address. - Enhanced the MeshCrowdfundContract class to handle the new reference scripts, including methods for setting and retrieving their transaction hashes and output indices. - Improved the contribute and withdraw components to parse and utilize reference scripts from the crowdfund data. - Added error handling for missing reference scripts during transaction processes, ensuring robust contract interactions. - Updated environment configuration to include a reference address for better integration with crowdfund transactions.
- Introduced a new `govState` field in the Crowdfund model to track governance states: 0=Crowdfund, 1=RegisteredCerts, 2=Proposed, 3=Voted, 4=Refundable. - Added `RegisteredCertsDatumTS` interface to define the structure for registered certificates data. - Updated the `MeshCrowdfundContract` class to handle transitions between governance states, including methods for registering certificates and proposing governance actions. - Enhanced the UI components to reflect the new governance state logic, improving user experience during the crowdfund lifecycle. - Implemented utility functions to determine governance state from datum, ensuring accurate state representation in the application.
- Updated the Crowdfund model to include new fields for governance anchors (`drepAnchor` and `govActionAnchor`) to support enhanced governance functionalities. - Added Pinata configuration options in the environment setup, allowing for improved integration with IPFS for metadata storage. - Enhanced the UI components to display governance-related information and alerts, improving user experience during the crowdfund lifecycle. - Refactored image upload functionality to utilize Pinata, with fallback mechanisms to ensure reliability. - Updated various components to handle new governance action types and improved error handling for governance processes.
- Updated the `getGovActionParam` method in `MeshCrowdfundContract` to directly serialize governance action parameters, enhancing efficiency. - Removed unused `IEvaluator` import from `RegisterCerts.tsx` and commented out the evaluator in `CrowdfundInfo.tsx` for clarity. - Adjusted Plutus JSON schema to reference `ByteArray` for governance actions, ensuring compatibility with new serialization logic. - Cleaned up various Akka files by removing deprecated governance action types and improving function signatures for better readability and maintainability.
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.