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: extend consumer_validators query to return consumer valset before launch #2164

Merged
merged 61 commits into from
Aug 28, 2024

Commits on Aug 14, 2024

  1. Configuration menu
    Copy the full SHA
    1edbf8e View commit details
    Browse the repository at this point in the history
  2. renamed proposal messages

    insumity committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    3ba933f View commit details
    Browse the repository at this point in the history
  3. removed global slash entry

    insumity committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    489cefa View commit details
    Browse the repository at this point in the history
  4. fixed unit tests

    insumity committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    2d2c41e View commit details
    Browse the repository at this point in the history
  5. added new messages

    insumity committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    f2ad00a View commit details
    Browse the repository at this point in the history
  6. introduced new state

    insumity committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    c7b5386 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    010db3a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ecb89c0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    758c52f View commit details
    Browse the repository at this point in the history
  10. added extra check in the initialization so unknokwn, launched, or sto…

    …pped chains cannot re-initialize
    insumity committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    e055f0f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    e692a22 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    fda23de View commit details
    Browse the repository at this point in the history
  13. made it so we traverse initialization records instead of addition pro…

    …posals (+ additional changes so the unit tests pass)
    insumity committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    1146509 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    2256ab3 View commit details
    Browse the repository at this point in the history
  15. removed ClientIdToChainId state because chainId already resides on th…

    …e registration record
    insumity committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    caa91b7 View commit details
    Browse the repository at this point in the history
  16. nit fixes in go docs

    insumity committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    e969fe3 View commit details
    Browse the repository at this point in the history
  17. removed MsgConsumerAddition

    insumity committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    cef3be7 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    2385aca View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    8a0ba7d View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    d6f890a View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    64ed6e7 View commit details
    Browse the repository at this point in the history
  22. introduced consumerId in the equivocation messages (and a useful quer…

    …y for Hermes to get the consumerId)
    insumity committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    1f76f20 View commit details
    Browse the repository at this point in the history
  23. added safeguard so that a validator cannot opt-in to two different ch…

    …ains with the same chain id
    insumity committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    f95b248 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    e40449f View commit details
    Browse the repository at this point in the history
  25. updated based on comments

    Co-authored-by: bernd-m <[email protected]>
    insumity and bermuell committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    3d5dbb1 View commit details
    Browse the repository at this point in the history
  26. fixed integration tests

    insumity committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    8a0b825 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2024

  1. rebased to pick up the removal of legacy proposals (#2130) and re-int…

    …roduced old messages so that existing proposals can deserialize
    insumity committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    96b5706 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2024

  1. changes messages to only have MsgCreateConsumer and MsgUpdateConsumer…

    … and modified protos so that we are backward-compatible
    insumity committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    a9b05a3 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. cleaned up slightly a few things (mostly committing & pushing) so peo…

    …ple can pick up the latest changes
    insumity committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    1ac674f View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2024

  1. Configuration menu
    Copy the full SHA
    739bd21 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5e5480f View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2024

  1. pre-spawn query

    sainoe committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    7c43f6d View commit details
    Browse the repository at this point in the history
  2. rebase

    sainoe committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    73ce1f6 View commit details
    Browse the repository at this point in the history
  3. nits

    sainoe committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    9e4fbde View commit details
    Browse the repository at this point in the history
  4. feat: extend consumer validator query to return commission rate (back…

    …port #2162) (#2165)
    
    * adapt #2162 changes for permissionless ICS
    
    * nits
    
    ---------
    
    Co-authored-by: kirdatatjana <[email protected]>
    sainoe and kirdatatjana committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    da3cbb2 View commit details
    Browse the repository at this point in the history
  5. remove panics

    sainoe committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    e5cbcd0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    db8b887 View commit details
    Browse the repository at this point in the history
  7. took into account comments and also added safeguard to reject new pro…

    …posals that still use deprecated messages (e.g., MsgConsumerAddition, etc.)
    insumity committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    4744bdc View commit details
    Browse the repository at this point in the history
  8. Update x/ccv/provider/types/msg.go

    Co-authored-by: bernd-m <[email protected]>
    insumity and bermuell committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    715bbbc View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2024

  1. Configuration menu
    Copy the full SHA
    96029ca View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8beffdc View commit details
    Browse the repository at this point in the history
  3. took into account comments (using protos for marshalling string slice…

    …, fixed issues in the UpdateConsumer logic, added extra check to abort spurious proposals)
    insumity committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    ec5ccec View commit details
    Browse the repository at this point in the history
  4. update logic

    sainoe committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    b733bd7 View commit details
    Browse the repository at this point in the history
  5. took into account comments (using protos for marshalling string slice…

    …, fixed issues in the UpdateConsumer logic, added extra check to abort spurious proposals)
    insumity committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    96ef414 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7580046 View commit details
    Browse the repository at this point in the history
  7. feat: add fields to consumer validators query (#2167)

    * extend consumer validators query
    
    * nit
    
    * nits
    
    * fix msg order
    
    * deprecate power for consumer_power
    sainoe committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    563774b View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. order consumer validators

    sainoe committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    6992a00 View commit details
    Browse the repository at this point in the history
  2. nits

    sainoe committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    6c551f8 View commit details
    Browse the repository at this point in the history
  3. feat: first iteration on Permissionless ICS (#2117)

    * (partially) renamed chain ids to consumer ids
    
    * renamed proposal messages
    
    * removed global slash entry
    
    * fixed unit tests
    
    * added new messages
    
    * introduced new state
    
    * added functionality for the register and initialize messages
    
    * renamed (partially) chainIds to consumerIds
    
    * set consumerId to chainId association during registration
    
    * added extra check in the initialization so unknokwn, launched, or stopped chains cannot re-initialize
    
    * added initial work on traversing initialized chains that are to-be-launched
    
    * fixed rebase issues after bringing the VSCMaturedPackets work in
    
    * made it so we traverse initialization records instead of addition proposals (+ additional changes so the unit tests pass)
    
    * renamed more chainIDs to consumerIds
    
    * removed ClientIdToChainId state because chainId already resides on the registration record
    
    * nit fixes in go docs
    
    * removed MsgConsumerAddition
    
    * added CLI commands for new messages
    
    * removed consumer modification proposal
    
    * removed (partially) consumer removal proposal
    
    * rebased to pick up the inactive-validators work (PR #2079)
    
    * introduced consumerId in the equivocation messages (and a useful query for Hermes to get the consumerId)
    
    * added safeguard so that a validator cannot opt-in to two different chains with the same chain id
    
    * renamed some chainIDs to consumerIds
    
    * updated based on comments
    
    Co-authored-by: bernd-m <[email protected]>
    
    * fixed integration tests
    
    * rebased to pick up the removal of legacy proposals (#2130) and re-introduced old messages so that existing proposals can deserialize
    
    * changes messages to only have MsgCreateConsumer and MsgUpdateConsumer and modified protos so that we are backward-compatible
    
    * cleaned up slightly a few things (mostly committing & pushing) so people can pick up the latest changes
    
    * fixed the CreateConsumer and UpdateConsumer logic and made most of the fields optional
    
    * fixed hooks and the code around proposalId to consumerId
    
    * feat: extend consumer validator query to return commission rate (backport #2162) (#2165)
    
    * adapt #2162 changes for permissionless ICS
    
    * nits
    
    ---------
    
    Co-authored-by: kirdatatjana <[email protected]>
    
    * renamed some chainIds to consumerIds
    
    * took into account comments and also added safeguard to reject new proposals that still use deprecated messages (e.g., MsgConsumerAddition, etc.)
    
    * Update x/ccv/provider/types/msg.go
    
    Co-authored-by: bernd-m <[email protected]>
    
    * removed double-gas charge on MsgCreateConsumer and imroved the logic of MsgUpdateConsumer
    
    * added PopulateMinimumPowerInTopN tested
    
    * took into account comments (using protos for marshalling string slice, fixed issues in the UpdateConsumer logic, added extra check to abort spurious proposals)
    
    * feat: add fields to consumer validators query (#2167)
    
    * extend consumer validators query
    
    * nit
    
    * nits
    
    * fix msg order
    
    * deprecate power for consumer_power
    
    * modified the way we verify the new owner address, as well as nit refactoring on the ConsumerIds
    
    * fixed some rebase issues and changed a proto to be backward-compatible
    
    ---------
    
    Co-authored-by: bernd-m <[email protected]>
    Co-authored-by: Simon Noetzlin <[email protected]>
    Co-authored-by: kirdatatjana <[email protected]>
    4 people committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    05fd5f3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ad5288d View commit details
    Browse the repository at this point in the history
  5. cover stopped phase case

    sainoe committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    fca239b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    29d790c View commit details
    Browse the repository at this point in the history
  7. added some additional tests

    insumity committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    a400de1 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. added tests on the hooks

    insumity committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    84565ab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0fc6968 View commit details
    Browse the repository at this point in the history
  3. feat: refactor consumer validator set computation (#2175)

    * add UT
    
    * nits
    
    * address comments
    
    * Update x/ccv/provider/keeper/partial_set_security.go
    
    Co-authored-by: insumity <[email protected]>
    
    * fix tests
    
    ---------
    
    Co-authored-by: insumity <[email protected]>
    sainoe and insumity committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    19be098 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cc4f6b9 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. nit

    sainoe committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    43baef1 View commit details
    Browse the repository at this point in the history
  2. nits

    sainoe committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    06bdfc4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7b48b97 View commit details
    Browse the repository at this point in the history
  4. nit

    sainoe committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    9403c26 View commit details
    Browse the repository at this point in the history