Skip to content
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

Expose Delegated Voting Functionality via Chain Extension #143

Open
8 tasks
deep-ink-ventures opened this issue Sep 13, 2023 · 0 comments
Open
8 tasks

Expose Delegated Voting Functionality via Chain Extension #143

deep-ink-ventures opened this issue Sep 13, 2023 · 0 comments

Comments

@deep-ink-ventures
Copy link
Owner

Objective

This ticket has a dependency to #118

To expose the newly introduced delegated voting functionality in pallet_dao_token via our chain extension. This will make the delegated voting feature accessible and usable through our chain extension API.

Affected Components

  • Chain extension backend in chain-extensions/pallet-dao-assets
  • contracts/extensions/dao-assets-extension
  • Default implementation of contracts/extensions/dao-assets-contract

Requirements

  1. Update Chain Extension Backend: Modify chain-extensions/pallet-dao-assets to include hooks or calls that interact with the delegated voting feature in pallet_dao_token.
  2. Update Extension Contract: Modify contracts/extensions/dao-assets-extension to include the delegated voting functionality.
  3. Update Default Contract: Make sure that contracts/extensions/dao-assets-contract exposes the new functionality.

Note

The implementation should be in line with the existing architecture and coding standards.

Tasks

Implementation Phase

  • Update chain-extensions/pallet-dao-assets to include delegated voting hooks or calls.
  • Update contracts/extensions/dao-assets-extension to include delegated voting functionality.
  • Update contracts/extensions/dao-assets-contract to expose the new functionality.

Testing Phase

  • Add unit tests for the newly added functionality in chain-extensions/pallet-dao-assets.
  • Add unit tests for the new features in contracts/extensions/dao-assets-extension.
  • Add tests in test_assets.rs to validate the entire flow.

Documentation Phase

  • Write inline code documentation for all new features and functions.
  • Update any existing documentation to reflect the new changes.

Acceptance Criteria

  • All newly added functionalities should be accessible and usable through the chain extension API.
  • All new and modified code should be fully covered by unit tests.
  • Documentation should be updated to reflect all changes.
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

No branches or pull requests

2 participants