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(runtime-eden): add bridge_all_vesting_schedules #872

Merged
merged 8 commits into from
Jul 18, 2024

Conversation

aliXsed
Copy link
Contributor

@aliXsed aliXsed commented Jul 16, 2024

  1. The bridge is initiated by the user/grant owner similar to how bridging of free tokens currently happening.
  2. The bridge_all_vesting_schedules function is added to to pallet-grants which will be very similar to cancel_all_vesting_schedules with the difference that for this one only the owner of the grant and not the governance of the chain can initiate a bridge for locked tokens.
  3. Similar to cancel_… bridge_all_vesting_schedules will first do a claim for the user so they get all their free-able tokens into their own account first.
  4. bridge_all_vesting_schedules burns the locked grants of the user and remove their details as well if it succeeds.
  5. bridge_all_vesting_schedules will then generate an event traceable by our bridge off-chain oracles which indicates a bridge operation is complete on the parachain side with the user’s given zksync address as the destination.
  • Add benchmark test
  • Do an initial benchmark

@aliXsed aliXsed marked this pull request as ready for review July 17, 2024 02:59
pallets/grants/src/lib.rs Show resolved Hide resolved
pallets/grants/src/lib.rs Outdated Show resolved Hide resolved
pallets/grants/src/lib.rs Outdated Show resolved Hide resolved
pallets/grants/src/lib.rs Show resolved Hide resolved
pallets/grants/src/tests.rs Show resolved Hide resolved
@aliXsed aliXsed merged commit 9d95038 into master Jul 18, 2024
10 checks passed
@aliXsed aliXsed deleted the aliX/bridge-grants branch July 18, 2024 02:02
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