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

[DON'T MERGE] feat(x/gov): add governors #16

Draft
wants to merge 47 commits into
base: main
Choose a base branch
from

Commits on Sep 13, 2024

  1. tally prototype with governors

    Only sketching out how the tally would work for now.
    Lots of stuff is left undefined but the strategy is the one outlined in https://gist.github.com/giunatale/95e9b43f6e265ba32b29e2769f7b8a37?permalink_comment_id=5067400#gistcomment-5067400 but with the restriction of being able to delegate a percentage of its bonded tokens to at most one governor (https://gist.github.com/giunatale/95e9b43f6e265ba32b29e2769f7b8a37?permalink_comment_id=5187246#gistcomment-5187246)
    
    It assumes that every time someone redelegates, undelegates or adds to its delegations a hook is called to check if there is a governor delegated to in x/gov, and the governor's total shares updated accordingly.
    The governor's total shares are a collection of share amounts for different validators.
    giunatale committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    b301574 View commit details
    Browse the repository at this point in the history
  2. add protos

    giunatale committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    8cb99c2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    41b042f View commit details
    Browse the repository at this point in the history
  4. wip

    giunatale committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    d4a8c03 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2024

  1. wip

    giunatale committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    96abd4c View commit details
    Browse the repository at this point in the history
  2. ...

    giunatale committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    f9ad9d8 View commit details
    Browse the repository at this point in the history
  3. ...

    giunatale committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    700703d View commit details
    Browse the repository at this point in the history
  4. missing governor election

    giunatale committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    f6c3392 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6951d84 View commit details
    Browse the repository at this point in the history
  6. remove percentage and try sorting governors by VP

    can only delegate all or nothing to governors now
    giunatale committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    1a8495c View commit details
    Browse the repository at this point in the history
  7. add msgs

    giunatale committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    a769118 View commit details
    Browse the repository at this point in the history
  8. update test mock keepers

    giunatale committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    ca19aaf View commit details
    Browse the repository at this point in the history
  9. ...

    giunatale committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    be1db00 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2024

  1. compiles

    giunatale committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    e1a2bbb View commit details
    Browse the repository at this point in the history
  2. add query and cli

    giunatale committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    851c005 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    372bca2 View commit details
    Browse the repository at this point in the history
  4. genesis

    giunatale committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    4ea0dad View commit details
    Browse the repository at this point in the history
  5. fix e2e

    giunatale committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    fedba97 View commit details
    Browse the repository at this point in the history
  6. add governors vp invariant

    giunatale committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    68645f2 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. iterate over correct values

    giunatale committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    201b112 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. format pass

    giunatale committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    e5c1284 View commit details
    Browse the repository at this point in the history
  2. fix missing return

    giunatale committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    6f37870 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. cleanup protos

    giunatale committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    c0cdec9 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. Configuration menu
    Copy the full SHA
    80f44c7 View commit details
    Browse the repository at this point in the history
  2. fix merge mistake

    giunatale committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    afa8d07 View commit details
    Browse the repository at this point in the history
  3. fix merge mistakes

    giunatale committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    58d6a83 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    44d71e6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5767cca View commit details
    Browse the repository at this point in the history
  6. protogen

    giunatale committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    25d017a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    671755c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    86031e6 View commit details
    Browse the repository at this point in the history
  9. fmt pass

    giunatale committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    3a9f71f View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. use math

    giunatale committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    b8eac36 View commit details
    Browse the repository at this point in the history
  2. remove iteration over map

    giunatale committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    9bcbd0f View commit details
    Browse the repository at this point in the history
  3. more efficient

    giunatale committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    8daaffb View commit details
    Browse the repository at this point in the history
  4. fix

    giunatale committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    26ff811 View commit details
    Browse the repository at this point in the history
  5. remove ambiguity

    giunatale committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    ec48fe5 View commit details
    Browse the repository at this point in the history
  6. ...

    giunatale committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    180e1c1 View commit details
    Browse the repository at this point in the history
  7. various fixes

    giunatale committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    e147827 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e0d3865 View commit details
    Browse the repository at this point in the history
  9. fix error codes

    giunatale committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    48f45be View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    0659b9d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8b79c43 View commit details
    Browse the repository at this point in the history
  12. ...

    giunatale committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    1f8e5a9 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. Configuration menu
    Copy the full SHA
    374c315 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. Configuration menu
    Copy the full SHA
    90f540c View commit details
    Browse the repository at this point in the history
  2. fmt

    giunatale committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    c5e5ce4 View commit details
    Browse the repository at this point in the history