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

Adding LSM module (x/lsnative) #391

Merged
merged 7 commits into from Apr 12, 2023
Merged

Adding LSM module (x/lsnative) #391

merged 7 commits into from Apr 12, 2023

Conversation

xlab
Copy link
Contributor

@xlab xlab commented Apr 3, 2023

⚠️ NOTE: this PR contains commits moved from original PR:
persistenceOne/pstake-native#429


1. Overview

This PR adds a cosmos module from https://github.com/iqlusioninc/liquidity-staking-module, which forks the original staking, slashing, distribution, genutil Cosmos SDK modules. Since the original repo has been in development for couple of years, it also contains some artifacts from v45 -> v46 migrations and is not applicable without manually picking up stuff from a big diff.

2. Implementation details

The changes in this PR are split in multiple commits, the only commit that really matters for now is d754c6f that contains a distilled diff for all the changes needed to implement LSM onto v0.46.11, it doesn't contain any junk left from refactoring the cosmos code itself.

Diff methodology:

  1. The diff was calculated between LSM v0.46.11 using this script https://gist.github.com/xlab/96e7d546645333d154d761578ba0dff9#file-00_the_diff-sh

  2. Manually picked changes line-by-line based on judgement if change is part of LSM implementation of part of previous cosmos refactorings.

  3. The distilled diff is now a commit in this PR

  4. The surplus is also useful, basically what I didn't pick up. I reversed the direction of surplus diff and now those are patches towards upstream LSM repo to make it merge-able into upstream Cosmos SDK v0.46.11

3. How to test/use

  1. clone the repo
  2. cd persistence-sdk/x/lsnative/ && go install ./... kinda works huh?
  3. re-generating proto: cd persistence-sdk/x/lsnative/ && ./protocgen.sh, but after generating proto some manual replacements need to be applied, see 3d5fb0a

4. Integrations

This module has one working integration with persistenceCore app, see PR there:
persistenceOne/persistenceCore#187

5. Future Work (optional)

We might need to include the module to simapp and run benchmarking / simulation tests.

Maksim Kupriianov added 6 commits April 3, 2023 18:45
…sdk 0.46.11

commit 5023392bd9718679668dd8e88a792a6defa63c00
commit 5023392bd9718679668dd8e88a792a6defa63c00
cosmos-proto commit 78e33f25b874e7639f540037599d8ea1d161a62c
…to 0.46.11

This diff contains:
* slashing module changes
* staking module changes
* genutil module changes
* distribution module changes
* staking proto changes
* distribution proto changes
* added new protocgen.sh
@xlab xlab requested a review from ajeet97 April 3, 2023 20:04
@github-actions
Copy link

github-actions bot commented Apr 3, 2023

Coverage after merging f/lsm into master

6.33%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
simapp
   test_helpers.go100%100%22.38%..., 77, 78, 79, 81
   genesis.go100%100%100%
   app.go100%100%78.71%..., 666, 667, 668, 669
   genesis_account.go100%100%100%
   test_suite.go100%100%0%..., 52, 53, 54, 56
   encoding.go100%100%100%
   utils.go100%100%20.25%..., 96, 97, 98, 99
   export.go100%100%15.27%..., 93, 97, 98, 99
   state.go100%100%0%..., 96, 97, 98, 99
   config.go100%100%56.10%..., 72, 73, 74, 75
simapp/simd/cmd
   genaccounts.go100%100%71.54%..., 95, 96, 97, 98
   testnet.go100%100%79.44%..., 408, 409, 62, 63
   root.go100%100%81.94%..., 64, 65, 68, 69
x/epochs/client/cli
   query.go100%100%0%..., 95, 96, 97, 98
   tx.go100%100%0%..., 22, 23, 24, 25
x/epochs/keeper
   abci.go100%100%100%
   epoch.go100%100%85.71%..., 26, 62, 88, 93
   grpc_query.go100%100%38.46%..., 51, 53, 54, 55
   genesis.go100%100%90.91%14
   keeper.go100%100%92.86%30
   hooks.go100%100%100%
x/epochs/types
   keys.go100%100%0%20, 21, 22
   hooks.go100%100%100%
   identifier.go100%100%0%..., 25, 7, 8, 9
   query.pb.gw.go100%100%0%..., 96, 97, 98, 99
   query.pb.go100%100%2.24%..., 96, 97, 98, 99
   genesis.pb.go100%100%28.80%..., 96, 97, 98, 99
   genesis.go100%100%59.18%..., 57, 58, 61, 62
x/halving/simulation
   params.go100%100%100%
   genesis.go100%100%100%
x/halving/types
   query.pb.gw.go100%100%0%..., 95, 96, 97, 98
   genesis.pb.go100%100%2.55%..., 68, 69, 98, 99
   query.pb.go100%100%1.91%..., 96, 97, 98, 99
   genesis.go100%100%86.67%25, 26
   halving.pb.go100%100%2.76%..., 96, 97, 98, 99
   params.go100%100%85.29%23, 24, 25, 43, 44
x/interchainquery
   module.go100%100%62.50%..., 87, 90, 91, 92
   genesis.go100%100%54.55%21, 22, 23, 24, 25
   handler.go100%100%40%16, 17, 18
x/interchainquery/keeper
   msg_server.go100%100%65.08%..., 71, 74, 82, 83
   abci.go100%100%92.68%58, 59, 60
   queries.go100%100%98%67
   grpc_query.go100%100%74.07%..., 33, 40, 43, 44
   keeper.go100%100%67.59%..., 43, 66, 67, 89
x/interchainquery/types
   genesis.go100%100%63.64%15, 16, 17, 18
   codec.go100%100%100%
   messages.pb.gw.go100%100%0%..., 92, 93, 95, 99
   query.pb.go100%100%1.32%..., 996, 997, 998, 999
   msgs.go100%100%56%..., 42, 48, 49, 50
   genesis.pb.go100%100%0.76%..., 996, 997, 998, 999
   messages.pb.go100%100%3.58%..., 96, 97, 98, 99
   keys.go100%100%0%28, 29, 30
   query.pb.gw.go100%100%0%..., 96, 97, 98, 99
x/lsnative/distribution
   handler.go100%100%0%..., 14, 15, 17, 18
   module.go100%100%0%..., 81, 82, 83, 99
   abci.go100%100%0%..., 32, 33, 36, 37
x/lsnative/distribution/client/cli
   tx.go100%100%4.01%..., 96, 97, 98, 99
   utils.go100%100%63.64%16, 17, 20, 21
   query.go100%100%0%..., 95, 97, 98, 99
x/lsnative/distribution/client/common
   common.go100%100%15.25%..., 91, 92, 93, 95
x/lsnative/distribution/client/testutil
   helpers.go100%100%100%
   withdraw_all_suite.go100%100%100%
   grpc_query_suite.go100%100%99.76%459
   suite.go100%100%98.68%..., 632, 633, 634, 635
x/lsnative/distribution/keeper
   delegation.go100%100%0%..., 89, 90, 91, 92
   genesis.go100%100%0%..., 92, 93, 94, 99
   msg_server.go100%100%0%..., 96, 97, 98, 99
   alias_functions.go100%100%0%..., 17, 20, 21, 22
   hooks.go100%100%0%..., 94, 97, 98, 99
   keeper.go100%100%0%..., 95, 96, 97, 98
   validator.go100%100%0%..., 96, 97, 98, 99
   proposal_handler.go100%100%0%..., 25, 26, 27, 28
   migrations.go100%100%0%..., 16, 19, 20, 21
   invariants.go100%100%0%..., 93, 94, 96, 99
   params.go100%100%0%..., 41, 42, 43, 9
   fee_pool.go100%100%0%..., 26, 27, 29, 30
   store.go100%100%0%..., 95, 96, 97, 98
   querier.go100%100%0%..., 95, 96, 97, 98
   allocation.go100%100%0%..., 96, 97, 98, 99
   grpc_query.go100%100%0%..., 95, 96, 98, 99
x/lsnative/distribution/migrations/v043
   store.go100%100%0%..., 21, 22, 23, 24
   helpers.go100%100%0%..., 67, 68, 69, 70
x/lsnative/distribution/simulation
   proposals.go100%100%0%..., 46, 47, 48, 49
   operations.go100%100%0%..., 96, 97, 98, 99
   params.go100%100%0%..., 33, 36, 37, 38
   decoder.go100%100%0%..., 63, 64, 66, 67
   genesis.go100%100%0%..., 80, 81, 83, 84
x/lsnative/distribution/types
   genesis.pb.go100%100%0.64%..., 996, 997, 998, 999
   codec.go100%100%52.78%..., 40, 41, 42, 43
   query.go100%100%0%..., 31, 37, 38, 39
   msg.go100%100%37.41%..., 76, 77, 96, 97
   keys.go100%100%0%..., 95, 96, 97, 98
   validator.go100%100%0%..., 44, 45, 46, 47
   distribution.pb.go100%100%0.61%..., 996, 997, 998, 999
   params.go100%100%46.88%..., 69, 70, 71, 73
   fee_pool.go100%100%0%..., 19, 20, 21, 23
   query.pb.gw.go100%100%0%..., 994, 995, 996, 998
   proposal.go100%100%12.12%..., 67, 68, 69, 70
   tx.pb.go100%100%0.72%..., 971, 972, 973, 974
   querier.go100%100%0%..., 84, 92, 93, 94
   query.pb.go100%100%0.67%..., 996, 997, 998, 999
   delegator.go100%100%0%..., 13, 14, 8, 9
   genesis.go100%100%0%..., 45, 46, 47, 48
x/lsnative/genutil
   collect.go100%100%0%..., 93, 97, 98, 99
   gentx.go100%100%0%..., 96, 97, 98, 99
   module.go100%100%0%..., 94, 95, 96, 97
   genesis.go100%100%0%16, 17, 18, 19, 20
   utils.go100%100%63.64%..., 90, 91, 95, 96
x/lsnative/genutil/client/cli
   collect.go100%100%0%..., 66, 67, 68, 69
   validate_genesis.go100%100%0%..., 66, 67, 68, 70
   migrate.go100%100%0%..., 96, 97, 98, 99
   init.go100%100%0%..., 96, 97, 98, 99
   gentx.go100%100%0%..., 95, 96, 97, 99
x/lsnative/genutil/types
   genesis_state.go100%100%0%..., 96, 97, 98, 99
   genesis.pb.go100%100%2.54%..., 68, 69, 70, 99
   types.go100%100%0%..., 42, 43, 44, 45
x/lsnative/slashing
   abci.go100%100%0%..., 21, 22, 23, 24
   module.go100%100%0%..., 84, 85, 98, 99
x/lsnative/slashing/keeper
   migrations.go100%100%0%..., 16, 19, 20, 21
   signing_info.go100%100%0%..., 96, 97, 98, 99
   keeper.go100%100%0%..., 93, 94, 95, 96
   grpc_query.go100%100%0%..., 70, 71, 72, 73
   genesis.go100%100%0%..., 64, 65, 66, 68
   querier.go100%100%0%..., 88, 89, 90, 92
   infractions.go100%100%0%..., 96, 97, 98, 99
   msg_server.go100%100%0%..., 42, 43, 44, 45
   hooks.go100%100%0%..., 95, 96, 98, 99
   params.go100%100%0%..., 49, 52, 53, 54
   unjail.go100%100%0%..., 48, 49, 52, 53
x/lsnative/slashing/migrations/v043
   store.go100%100%0%..., 18, 19, 20, 21
x/lsnative/slashing/simulation
   params.go100%100%0%..., 32, 35, 36, 37
   genesis.go100%100%0%..., 91, 92, 94, 95
   decoder.go100%100%0%..., 38, 40, 42, 43
   operations.go100%100%0%..., 96, 97, 98, 99
x/lsnative/slashing/types
   keys.go100%100%0%..., 64, 67, 68, 69
   tx.pb.go100%100%1.26%..., 96, 97, 98, 99
   query.pb.go100%100%1.04%..., 994, 995, 998, 999
   querier.go100%100%0%19, 20, 21
   signing_info.go100%100%0%..., 42, 43, 44, 45
   slashing.pb.go100%100%0.91%..., 966, 967, 969, 99
   codec.go100%100%63.16%..., 20, 21, 22, 23
   query.pb.gw.go100%100%0%..., 95, 97, 98, 99
   msg.go100%100%0%..., 40, 41, 42, 43
   params.go100%100%0%..., 93, 94, 96, 99
   genesis.pb.go100%100%1.01%..., 996, 997, 998, 999
   genesis.go100%100%0%..., 61, 62, 63, 65
x/lsnative/staking
   abci.go100%100%0%..., 24, 25, 26, 27
   genesis.go100%100%0%..., 81, 82, 84, 87
   module.go100%100%0%..., 83, 86, 87, 88
x/lsnative/staking/client/cli
   tx.go100%100%12.69%..., 93, 94, 95, 99
   utils.go100%100%0%..., 28, 30, 31, 32
   flags.go100%100%47.27%..., 96, 97, 98, 99
   query.go100%100%0%..., 982, 983, 984, 99
x/lsnative/staking/keeper
   pool.go100%100%0%..., 74, 75, 76, 78
   delegation.go100%100%0%..., 995, 996, 997, 998
   msg_server.go100%100%0%..., 95, 97, 98, 99
   grpc_query.go100%100%0%..., 96, 97, 98, 99
   hooks.go100%100%0%..., 92, 93, 94, 95
   query_utils.go100%100%0%..., 93, 97, 98, 99
   slash.go100%100%0%..., 94, 95, 96, 99
   genesis.go100%100%0%..., 94, 95, 96, 97
   keeper.go100%100%0%..., 94, 95, 96, 97
   querier.go100%100%0%..., 94, 95, 96, 98
   val_state_change.go100%100%0%..., 89, 90, 91, 94
   invariants.go100%100%0%..., 96, 97, 98, 99
   historical_info.go100%100%0%..., 96, 97, 98, 99
   alias_functions.go100%100%0%..., 92, 93, 94, 96
   migrations.go100%100%0%..., 24, 27, 28, 29
   params.go100%100%0%..., 74, 77, 78, 79
   tokenize_share_record.go100%100%0%..., 95, 96, 98, 99
   test_common.go100%100%0%..., 64, 66, 67, 68
   validator.go100%100%0%..., 93, 94, 96, 97
   power_reduction.go100%100%0%..., 14, 15, 16, 9
x/lsnative/staking/migrations/v043
   store.go100%100%0%..., 76, 77, 78, 79
x/lsnative/staking/migrations/v046
   json.go100%100%0%10, 11, 12, 13, 9
   store.go100%100%0%..., 24, 25, 26, 27
x/lsnative/staking/simulation
   params.go100%100%0%..., 26, 29, 30, 31
   genesis.go100%100%0%..., 96, 97, 98, 99
   decoder.go100%100%0%..., 58, 59, 60, 61
   operations.go100%100%0%..., 96, 97, 98, 99
x/lsnative/staking/types
   delegation.go100%100%0%..., 93, 95, 98, 99
   historical_info.go100%100%0%..., 78, 79, 80, 82
   tx.pb.go100%100%0.59%..., 992, 993, 994, 995
   querier.go100%100%0%..., 71, 80, 81, 82
   tokenize_share_record.go100%100%0%..., 14, 16, 17, 18
   msg.go100%100%0%..., 96, 97, 98, 99
   genesis.pb.go100%100%0.61%..., 994, 997, 998, 999
   commission.go100%100%0%..., 95, 96, 98, 99
   authz.pb.go100%100%1.04%..., 96, 97, 98, 99
   pool.go100%100%0%..., 18, 19, 20, 21
   codec.go100%100%57.78%..., 50, 51, 52, 53
   params.go100%100%0%..., 94, 95, 96, 97
   query.pb.go100%100%0.61%..., 985, 99, 998, 999
   validator.go100%100%0%..., 95, 96, 97, 99
   keys.go100%100%0%..., 96, 97, 98, 99
   authz.go100%100%0%..., 95, 96, 98, 99
   hooks.go100%100%0%..., 93, 95, 98, 99
   query.pb.gw.go100%100%0%..., 993, 997, 998, 999
   genesis.go100%100%0%..., 41, 42, 43, 45
   staking.pb.go100%100%0.42%..., 996, 997, 998, 999

@xlab
Copy link
Contributor Author

xlab commented Apr 3, 2023

Interesting issue. According to this CI log:
https://github.com/persistenceOne/persistence-sdk/actions/runs/4600838416/jobs/8127948754?pr=391

the linter is unhappy with 100500 errors coming from modules forked from Cosmos SDK.

I'd rather avoid rewriting Cosmos SDK's code to satisfy our linter. How should we proceed? Just turn off the linter for x/lsnative ?

x/lsnative/protocgen.sh Outdated Show resolved Hide resolved
ajeet97
ajeet97 previously approved these changes Apr 5, 2023
@github-actions
Copy link

Coverage after merging f/lsm into master

6.33%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
simapp
   state.go100%100%0%..., 96, 97, 98, 99
   genesis.go100%100%100%
   test_helpers.go100%100%22.38%..., 78, 79, 80, 82
   config.go100%100%56.10%..., 72, 73, 74, 75
   genesis_account.go100%100%100%
   test_suite.go100%100%0%..., 52, 53, 54, 56
   encoding.go100%100%100%
   export.go100%100%15.27%..., 93, 97, 98, 99
   utils.go100%100%20.25%..., 96, 97, 98, 99
   app.go100%100%78.71%..., 666, 667, 668, 669
simapp/simd/cmd
   genaccounts.go100%100%71.54%..., 95, 96, 97, 98
   testnet.go100%100%79.44%..., 408, 409, 62, 63
   root.go100%100%81.94%..., 64, 65, 68, 69
x/epochs/client/cli
   tx.go100%100%0%..., 22, 23, 24, 25
   query.go100%100%0%..., 95, 96, 97, 98
x/epochs/keeper
   genesis.go100%100%90.91%14
   hooks.go100%100%100%
   keeper.go100%100%92.86%30
   grpc_query.go100%100%38.46%..., 51, 53, 54, 55
   epoch.go100%100%85.71%..., 26, 62, 88, 93
   abci.go100%100%100%
x/epochs/types
   query.pb.go100%100%2.24%..., 96, 97, 98, 99
   keys.go100%100%0%20, 21, 22
   identifier.go100%100%0%..., 25, 7, 8, 9
   genesis.pb.go100%100%28.80%..., 96, 97, 98, 99
   genesis.go100%100%59.18%..., 57, 58, 61, 62
   query.pb.gw.go100%100%0%..., 96, 97, 98, 99
   hooks.go100%100%100%
x/halving/simulation
   params.go100%100%100%
   genesis.go100%100%100%
x/halving/types
   genesis.go100%100%86.67%25, 26
   halving.pb.go100%100%2.76%..., 96, 97, 98, 99
   params.go100%100%85.29%23, 24, 25, 43, 44
   genesis.pb.go100%100%2.55%..., 68, 69, 98, 99
   query.pb.gw.go100%100%0%..., 95, 96, 97, 98
   query.pb.go100%100%1.91%..., 96, 97, 98, 99
x/interchainquery
   handler.go100%100%40%17, 18, 19
   genesis.go100%100%54.55%21, 22, 23, 24, 25
   module.go100%100%62.50%..., 87, 90, 91, 92
x/interchainquery/keeper
   keeper.go100%100%67.59%..., 43, 66, 67, 89
   queries.go100%100%98%67
   abci.go100%100%92.68%58, 59, 60
   msg_server.go100%100%65.08%..., 71, 74, 82, 83
   grpc_query.go100%100%74.07%..., 33, 40, 43, 44
x/interchainquery/types
   query.pb.gw.go100%100%0%..., 96, 97, 98, 99
   messages.pb.gw.go100%100%0%..., 92, 93, 95, 99
   messages.pb.go100%100%3.58%..., 96, 97, 98, 99
   genesis.go100%100%63.64%15, 16, 17, 18
   query.pb.go100%100%1.32%..., 996, 997, 998, 999
   codec.go100%100%100%
   msgs.go100%100%56%..., 42, 48, 49, 50
   keys.go100%100%0%28, 29, 30
   genesis.pb.go100%100%0.76%..., 996, 997, 998, 999
x/lsnative/distribution
   module.go100%100%0%..., 81, 82, 83, 99
   handler.go100%100%0%..., 14, 15, 17, 18
   abci.go100%100%0%..., 32, 33, 36, 37
x/lsnative/distribution/client/cli
   tx.go100%100%4.01%..., 96, 97, 98, 99
   utils.go100%100%63.64%16, 17, 20, 21
   query.go100%100%0%..., 95, 97, 98, 99
x/lsnative/distribution/client/common
   common.go100%100%15.25%..., 91, 92, 93, 95
x/lsnative/distribution/client/testutil
   suite.go100%100%98.68%..., 632, 633, 634, 635
   withdraw_all_suite.go100%100%100%
   grpc_query_suite.go100%100%99.76%459
   helpers.go100%100%100%
x/lsnative/distribution/keeper
   params.go100%100%0%..., 41, 42, 43, 9
   proposal_handler.go100%100%0%..., 25, 26, 27, 28
   store.go100%100%0%..., 95, 96, 97, 98
   keeper.go100%100%0%..., 95, 96, 97, 98
   grpc_query.go100%100%0%..., 95, 96, 98, 99
   invariants.go100%100%0%..., 93, 94, 96, 99
   alias_functions.go100%100%0%..., 17, 20, 21, 22
   msg_server.go100%100%0%..., 96, 97, 98, 99
   querier.go100%100%0%..., 95, 96, 97, 98
   validator.go100%100%0%..., 96, 97, 98, 99
   genesis.go100%100%0%..., 92, 93, 94, 99
   delegation.go100%100%0%..., 89, 90, 91, 92
   fee_pool.go100%100%0%..., 26, 27, 29, 30
   migrations.go100%100%0%..., 16, 19, 20, 21
   allocation.go100%100%0%..., 96, 97, 98, 99
   hooks.go100%100%0%..., 94, 97, 98, 99
x/lsnative/distribution/migrations/v043
   store.go100%100%0%..., 21, 22, 23, 24
   helpers.go100%100%0%..., 67, 68, 69, 70
x/lsnative/distribution/simulation
   decoder.go100%100%0%..., 63, 64, 66, 67
   operations.go100%100%0%..., 96, 97, 98, 99
   proposals.go100%100%0%..., 46, 47, 48, 49
   genesis.go100%100%0%..., 80, 81, 83, 84
   params.go100%100%0%..., 33, 36, 37, 38
x/lsnative/distribution/types
   query.go100%100%0%..., 31, 37, 38, 39
   validator.go100%100%0%..., 44, 45, 46, 47
   genesis.go100%100%0%..., 45, 46, 47, 48
   codec.go100%100%52.78%..., 40, 41, 42, 43
   delegator.go100%100%0%..., 13, 14, 8, 9
   keys.go100%100%0%..., 95, 96, 97, 98
   query.pb.go100%100%0.67%..., 996, 997, 998, 999
   tx.pb.go100%100%0.72%..., 971, 972, 973, 974
   query.pb.gw.go100%100%0%..., 994, 995, 996, 998
   params.go100%100%46.88%..., 69, 70, 71, 73
   msg.go100%100%37.41%..., 76, 77, 96, 97
   querier.go100%100%0%..., 84, 92, 93, 94
   distribution.pb.go100%100%0.61%..., 996, 997, 998, 999
   genesis.pb.go100%100%0.64%..., 996, 997, 998, 999
   fee_pool.go100%100%0%..., 19, 20, 21, 23
   proposal.go100%100%12.12%..., 67, 68, 69, 70
x/lsnative/genutil
   genesis.go100%100%0%16, 17, 18, 19, 20
   gentx.go100%100%0%..., 96, 97, 98, 99
   collect.go100%100%0%..., 93, 97, 98, 99
   module.go100%100%0%..., 94, 95, 96, 97
   utils.go100%100%63.64%..., 90, 91, 95, 96
x/lsnative/genutil/client/cli
   gentx.go100%100%0%..., 95, 96, 97, 99
   init.go100%100%0%..., 96, 97, 98, 99
   collect.go100%100%0%..., 66, 67, 68, 69
   migrate.go100%100%0%..., 96, 97, 98, 99
   validate_genesis.go100%100%0%..., 66, 67, 68, 70
x/lsnative/genutil/types
   types.go100%100%0%..., 42, 43, 44, 45
   genesis.pb.go100%100%2.54%..., 68, 69, 70, 99
   genesis_state.go100%100%0%..., 96, 97, 98, 99
x/lsnative/slashing
   module.go100%100%0%..., 84, 85, 98, 99
   abci.go100%100%0%..., 21, 22, 23, 24
x/lsnative/slashing/keeper
   querier.go100%100%0%..., 88, 89, 90, 92
   grpc_query.go100%100%0%..., 70, 71, 72, 73
   signing_info.go100%100%0%..., 96, 97, 98, 99
   params.go100%100%0%..., 49, 52, 53, 54
   genesis.go100%100%0%..., 64, 65, 66, 68
   infractions.go100%100%0%..., 96, 97, 98, 99
   unjail.go100%100%0%..., 48, 49, 52, 53
   keeper.go100%100%0%..., 93, 94, 95, 96
   msg_server.go100%100%0%..., 42, 43, 44, 45
   hooks.go100%100%0%..., 95, 96, 98, 99
   migrations.go100%100%0%..., 16, 19, 20, 21
x/lsnative/slashing/migrations/v043
   store.go100%100%0%..., 18, 19, 20, 21
x/lsnative/slashing/simulation
   genesis.go100%100%0%..., 91, 92, 94, 95
   decoder.go100%100%0%..., 38, 40, 42, 43
   params.go100%100%0%..., 32, 35, 36, 37
   operations.go100%100%0%..., 96, 97, 98, 99
x/lsnative/slashing/types
   keys.go100%100%0%..., 64, 67, 68, 69
   codec.go100%100%63.16%..., 20, 21, 22, 23
   query.pb.gw.go100%100%0%..., 95, 97, 98, 99
   query.pb.go100%100%1.04%..., 994, 995, 998, 999
   signing_info.go100%100%0%..., 42, 43, 44, 45
   genesis.go100%100%0%..., 61, 62, 63, 65
   params.go100%100%0%..., 93, 94, 96, 99
   slashing.pb.go100%100%0.91%..., 966, 967, 969, 99
   genesis.pb.go100%100%1.01%..., 996, 997, 998, 999
   querier.go100%100%0%19, 20, 21
   tx.pb.go100%100%1.26%..., 96, 97, 98, 99
   msg.go100%100%0%..., 40, 41, 42, 43
x/lsnative/staking
   abci.go100%100%0%..., 24, 25, 26, 27
   module.go100%100%0%..., 83, 86, 87, 88
   genesis.go100%100%0%..., 81, 82, 84, 87
x/lsnative/staking/client/cli
   query.go100%100%0%..., 982, 983, 984, 99
   flags.go100%100%47.27%..., 96, 97, 98, 99
   tx.go100%100%12.69%..., 93, 94, 95, 99
   utils.go100%100%0%..., 28, 30, 31, 32
x/lsnative/staking/keeper
   delegation.go100%100%0%..., 995, 996, 997, 998
   tokenize_share_record.go100%100%0%..., 95, 96, 98, 99
   hooks.go100%100%0%..., 92, 93, 94, 95
   validator.go100%100%0%..., 93, 94, 96, 97
   invariants.go100%100%0%..., 96, 97, 98, 99
   power_reduction.go100%100%0%..., 14, 15, 16, 9
   grpc_query.go100%100%0%..., 96, 97, 98, 99
   query_utils.go100%100%0%..., 93, 97, 98, 99
   alias_functions.go100%100%0%..., 92, 93, 94, 96
   msg_server.go100%100%0%..., 95, 97, 98, 99
   test_common.go100%100%0%..., 64, 66, 67, 68
   pool.go100%100%0%..., 74, 75, 76, 78
   historical_info.go100%100%0%..., 96, 97, 98, 99
   slash.go100%100%0%..., 94, 95, 96, 99
   val_state_change.go100%100%0%..., 89, 90, 91, 94
   keeper.go100%100%0%..., 94, 95, 96, 97
   params.go100%100%0%..., 74, 77, 78, 79
   genesis.go100%100%0%..., 94, 95, 96, 97
   querier.go100%100%0%..., 94, 95, 96, 98
   migrations.go100%100%0%..., 24, 27, 28, 29
x/lsnative/staking/migrations/v043
   store.go100%100%0%..., 76, 77, 78, 79
x/lsnative/staking/migrations/v046
   store.go100%100%0%..., 24, 25, 26, 27
   json.go100%100%0%10, 11, 12, 13, 9
x/lsnative/staking/simulation
   decoder.go100%100%0%..., 58, 59, 60, 61
   params.go100%100%0%..., 26, 29, 30, 31
   operations.go100%100%0%..., 96, 97, 98, 99
   genesis.go100%100%0%..., 96, 97, 98, 99
x/lsnative/staking/types
   querier.go100%100%0%..., 71, 80, 81, 82
   keys.go100%100%0%..., 96, 97, 98, 99
   tx.pb.go100%100%0.59%..., 992, 993, 994, 995
   authz.pb.go100%100%1.04%..., 96, 97, 98, 99
   codec.go100%100%57.78%..., 50, 51, 52, 53
   genesis.pb.go100%100%0.61%..., 994, 997, 998, 999
   msg.go100%100%0%..., 96, 97, 98, 99
   hooks.go100%100%0%..., 93, 95, 98, 99
   query.pb.go100%100%0.61%..., 985, 99, 998, 999
   commission.go100%100%0%..., 95, 96, 98, 99
   genesis.go100%100%0%..., 41, 42, 43, 45
   authz.go100%100%0%..., 95, 96, 98, 99
   tokenize_share_record.go100%100%0%..., 14, 16, 17, 18
   historical_info.go100%100%0%..., 78, 79, 80, 82
   staking.pb.go100%100%0.42%..., 996, 997, 998, 999
   params.go100%100%0%..., 94, 95, 96, 97
   delegation.go100%100%0%..., 93, 95, 98, 99
   pool.go100%100%0%..., 18, 19, 20, 21
   validator.go100%100%0%..., 95, 96, 97, 99
   query.pb.gw.go100%100%0%..., 993, 997, 998, 999

@xlab xlab requested a review from ajeet97 April 12, 2023 11:19
@xlab
Copy link
Contributor Author

xlab commented Apr 12, 2023

@ajeet97 I've added last commit fixing lint

@xlab xlab merged commit 708478f into master Apr 12, 2023
3 checks passed
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.

None yet

3 participants