cosmos-sdk/x/staking/keeper
Jacob Gadikian 78e2e35f80
chore: sdk.Int to math.Int (#12132)
## Description

When locally working with golangci-lint, we can see that there were many deprecation warnings about sdk.Int.  This PR resolves that and makes 1-2 other linting related changes.  Issue on linting coming next.

This also moves BitCurve to bitCurve.

I expect that this set of changes will require several pull requests, one of them to the settings for the linter. 

It also does a gofumpt, because we had various formatting-related linters fail, too. 


---

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [x] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting))
- [x] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/main/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#testing)
- [x] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [x] reviewed "Files changed" and left comments if necessary
- [x] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed 
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)
2022-06-03 12:17:02 +00:00
..
alias_functions.go chore: gofumpt (#11839) 2022-05-19 10:55:27 +02:00
common_test.go chore: gofumpt (#11839) 2022-05-19 10:55:27 +02:00
delegation_test.go chore: gofumpt (#11839) 2022-05-19 10:55:27 +02:00
delegation.go chore: sdk.Int to math.Int (#12132) 2022-06-03 12:17:02 +00:00
genesis_test.go refactor: move x/staking Init/Export genesis to keeper (#11866) 2022-05-04 09:50:58 -04:00
genesis.go refactor: move x/staking Init/Export genesis to keeper (#11866) 2022-05-04 09:50:58 -04:00
grpc_query_test.go chore: gofumpt (#11839) 2022-05-19 10:55:27 +02:00
grpc_query.go feat: migrate x/staking to app wiring (#12102) 2022-06-03 08:10:20 +00:00
historical_info_test.go feat!: Ensure InitGenesis returns with non-empty validator set (#9697) 2021-10-05 12:02:51 +00:00
historical_info.go codec: Rename codec and marshaler interfaces (#9226) 2021-04-29 10:46:22 +00:00
hooks.go feat!: add error handling to staking hooks (#9571) 2021-06-30 10:13:07 +00:00
invariants.go feat: migrate x/staking to app wiring (#12102) 2022-06-03 08:10:20 +00:00
keeper_test.go chore: gofumpt (#11839) 2022-05-19 10:55:27 +02:00
keeper.go feat: migrate x/staking to app wiring (#12102) 2022-06-03 08:10:20 +00:00
migrations.go feat: migrate x/staking to app wiring (#12102) 2022-06-03 08:10:20 +00:00
msg_server_test.go feat: Cancel unbonding delegation entry (#10885) 2022-04-05 10:01:13 +00:00
msg_server.go feat: migrate x/staking to app wiring (#12102) 2022-06-03 08:10:20 +00:00
params.go chore: sdk.Int to math.Int (#12132) 2022-06-03 12:17:02 +00:00
pool.go chore: sdk.Int to math.Int (#12132) 2022-06-03 12:17:02 +00:00
power_reduction_test.go revert: Revert "feat: staking config (#10988)" (#11446) 2022-03-24 12:26:25 +01:00
power_reduction.go chore: sdk.Int to math.Int (#12132) 2022-06-03 12:17:02 +00:00
querier_test.go refactor!: create math go sub module (#11788) 2022-04-28 14:05:21 -04:00
querier.go feat: migrate x/staking to app wiring (#12102) 2022-06-03 08:10:20 +00:00
query_utils.go various linter fixes (#8666) 2021-02-23 08:46:01 +00:00
slash_test.go refactor!: create math go sub module (#11788) 2022-04-28 14:05:21 -04:00
slash.go chore: sdk.Int to math.Int (#12132) 2022-06-03 12:17:02 +00:00
test_common.go feat: migrate x/staking to app wiring (#12102) 2022-06-03 08:10:20 +00:00
val_state_change.go revert: Turn staking power reduction into an on-chain param (#9495) 2021-06-14 14:45:15 +00:00
validator_bench_test.go chore: gofumpt (#11839) 2022-05-19 10:55:27 +02:00
validator_test.go feat: migrate x/staking to app wiring (#12102) 2022-06-03 08:10:20 +00:00
validator.go chore: sdk.Int to math.Int (#12132) 2022-06-03 12:17:02 +00:00