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

feat: dispatch as Treasury or AAVEManager from OpenGov #973

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

vgantchev
Copy link
Contributor

@vgantchev vgantchev commented Dec 16, 2024

This PR introduces pallet-dispatcher - enabling specific OpenGov tracks to dispatch Runtime calls as predefined origins

The PR also introduces the first two dispatchables:

  • dispatch_as_treasury - allows the Treasury track to dispatch calls as the Treasury account on Hydration (7L53bUTBopuwFt3mKUfmkzgGLayYa1Yvn1hAg9v5UMrQzTfh)
  • dispatch_as_aave_manager - allows the EconomicParameters track to dispatch calls as the Money Market authority on Hydration (add addr)

TODO:

  • Satisfy Rust compiler :)
  • Add account of the AAVE Manager
  • Create a new OpenGov origin/track called Economic Parameters, and hook it up with the AAVE manager
  • Final benchmarks

@vgantchev vgantchev mentioned this pull request Dec 16, 2024
6 tasks
Copy link

github-actions bot commented Dec 16, 2024

New crates:

  • pallet-dispatcher: v1.0.0

Crate versions that have been updated:

  • pallet-omnipool: v4.3.7 -> v4.3.8
  • hydradx-runtime: v276.0.0 -> v277.0.0

Runtime version has been increased.

@vgantchev vgantchev changed the title feat: pallet-dispatcher feat: dispatch as Treasury or AAVEManager from OpenGov Dec 16, 2024
@vgantchev vgantchev marked this pull request as ready for review December 29, 2024 20:43
@vgantchev vgantchev requested a review from mrq1911 December 29, 2024 20:43
@vgantchev vgantchev changed the base branch from opengov to master December 29, 2024 20:44
type TreasuryManagerOrigin = EitherOf<EnsureRoot<AccountId>, Treasurer>;
type AaveManagerOrigin = EitherOf<EnsureRoot<AccountId>, EconomicParameters>;
type TreasuryAccount = TreasuryAccount;
type AaveManagerAccount = TreasuryAccount;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrq1911 set AaveManagerAccount

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.

1 participant