Commit Graph

41 Commits

Author SHA1 Message Date
Nikhil Vasan
4467110df4
Merge pull request from GHSA-95rx-m9m5-m94v
* validate ExtendedCommit against LastCommit

test cases

* account for core.comet types

* logging

* linting

* cherry-pick staking fix

* nits

* linting fix

* run tests

---------

Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Marko Baricevic <markobaricevic3778@gmail.com>
2024-03-11 11:48:32 +01:00
mergify[bot]
b922a37513
fix(baseapp): Utilizing voting power from VEs in ValidateVoteExtensions (backport #17518) (#17552)
Co-authored-by: David Terpay <35130517+davidterpay@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-08-28 15:49:16 +02:00
mergify[bot]
e76102f885
refactor: migrate away from using valBech32 globals (2/2) (backport #17157) (#17379)
Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-08-14 17:06:56 +02:00
mergify[bot]
69db56b49b
fix: ValidatorStore interface doesn't match StakingKeeper (backport #17164) (#17283)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-08-03 23:13:13 +00:00
mergify[bot]
46be66ed42
refactor: remove global valaddress bech32 codec calls (1/2) (backport #17098) (#17149)
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-07-27 00:55:11 +02:00
mergify[bot]
16ab635645
refactor(staking): use validator & address codecs in staking (backport #16958) (#17066)
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-07-19 16:02:28 +02:00
mergify[bot]
4076c6a918
feat(staking)!: add consensus and validator address codec in staking (backport #16959) (#16977)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-07-13 11:40:57 +00:00
mergify[bot]
d9c53bfefc
refactor!: remove types/math aliases (backport #16798) (#16803)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-06-30 19:56:38 +02:00
mergify[bot]
0bbfc654a3
feat(auth,client/v2): add validator address codec (backport #16768) (#16789)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-06-30 10:33:40 +00:00
mergify[bot]
d805e631e4
refactor: use appmodule.AppModule in integration helpers (backport #16755) (#16756)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-06-29 11:01:43 +00:00
Julien Robert
c452721442
style: add gci linter (#16758)
Co-authored-by: Jacob Gadikian <faddat@users.noreply.github.com>
2023-06-29 09:46:37 +00:00
mergify[bot]
cd8ba48926
feat(auth): make address codec pluggable (backport #16621) (#16736)
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-06-28 12:19:55 +00:00
mergify[bot]
9f7a16080a
refactor(x/staking)!: KVStoreService, return errors and use context.Context (backport #16324) (#16598)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Facundo Medica <facundomedica@gmail.com>
2023-06-19 11:40:27 -03:00
Marko
044fe13789
refactor(math)!: remove aliases in math (#16040)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-05-07 17:25:59 +00:00
Likhita Polavarapu
672b1f9e15
test(x/staking): write integration tests (#15890) 2023-05-02 20:01:19 +00:00
Facundo Medica
6dfe7351a5
refactor!: use KVStoreService and context.Context in x/bank (#15891) 2023-04-26 10:12:47 +00:00
atheeshp
7b5602492c
refactor: add delegations by validator index (#15731)
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-04-24 14:14:09 +00:00
Facundo Medica
af3122aa6c
feat!: Provide logger through depinject (#15818)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-04-24 09:42:55 +00:00
Likhita Polavarapu
7132a7624e
refactor(staking): add missing msgServer tests and move ValidateBasic() logic to msgServer (#15820) 2023-04-14 14:54:29 +00:00
Marko
8d6c23faa4
feat: add endblocker with valsetupdate type (#15829) 2023-04-14 09:41:29 +00:00
Andrey Petrovich
491cf3babe
refactor(staking)!: binary format for HistoricalInfoKey (#15701)
## Description

Closes: #11463



---

### 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...

* [ ] 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
* [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting))
* [ ] provided a link to the relevant issue or specification
* [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/main/docs/docs/building-modules)
* [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#testing)
* [ ] added a changelog entry to `CHANGELOG.md`
* [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
* [ ] updated the relevant documentation or specification
* [ ] reviewed "Files changed" and left comments if necessary
* [ ] 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)
2023-04-13 07:21:54 +00:00
Julien Robert
c3b1b37e49
test: remove api that should not be used (#15678) 2023-04-03 21:57:11 +00:00
Jacob Gadikian
8c182e7d77
style: lints for core, math, simapp, and tests (#15638) 2023-03-31 09:30:29 +02:00
Jacob Gadikian
b009a75eea
style: make lint-fix everything (#15631)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-03-30 17:27:39 +00:00
Marko
c1ea84d583
style: more linting (#15616) 2023-03-30 12:05:50 +00:00
Marko
1f2875d445
style: gofumpt linting (#15605) 2023-03-30 06:27:38 +00:00
Julien Robert
c17c3caab8
refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
Julien Robert
80dd55f79b
refactor: rename to CometBFT (#14914) 2023-02-06 18:11:14 +00:00
Julien Robert
41a3dfeced
refactor!: migrate Cosmos SDK to CometBFT (#14897) 2023-02-05 14:51:33 +01:00
Murali Krishna Komatireddy
e3b37dc562
fix: return undelegate amount with MsgUndelegateResponse (#14590)
Closes https://github.com/cosmos/cosmos-sdk/issues/14153
2023-01-23 10:08:32 +00:00
Likhita Polavarapu
fae3332d62
chore: Remove testify from testdata package (#14575) 2023-01-13 09:52:33 +01:00
Likhita Polavarapu
f7ead8cbd8
chore: Replace testify with gotest.tools in staking integration tests (#14504) 2023-01-11 14:20:20 +01:00
Noel Ukwa
c822836501
refactor: migrate calls from alias file to appropriate store/types (#14455)
Co-authored-by: Marko <marbar3778@yahoo.com>
Closes https://github.com/cosmos/cosmos-sdk/issues/14406
2023-01-10 15:31:06 +00:00
Julien Robert
419de8de82
refactor: revert API breaking change on Slash (#14363) 2022-12-20 12:12:05 +01:00
atheeshp
9f3575a10f
refactor: deterministic tests and add gas tests (#13539)
* refactor: x/auth deterministic tests

* changes

* x/bank refactor

* changes

* review changes

* refactor `x/staking`

* fix tests

* fix tests

* fix tests

* review changes

* Update testutil/testdata/grpc_query.go

* Update testutil/testdata/grpc_query.go

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
2022-10-25 06:36:47 +00:00
atheeshp
49ad3b0576
feat: x/staking deterministic tests (#13426)
* `x/staking` deterministic tests

* `params` deterministic tests

* add validators

* pull main

* add validators test

* add `valdator delegations`

* changes

* fix tests

* add unbonding delegation tests

* add more tests

* wip: redelegations

* `redelegations`

* fix tests

* review changes

* review

* add gas consumed check

* review changes

* review changes

Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
2022-10-18 17:32:28 +00:00
Marko
84675a6bf1
feat!: IS rebase (#13122)
* feat: IS rebase (squash da53124..b45dd5f)

* clean up docs

* fix: fix IS tests (#13420)

* revert key update

* add hook error handling

* impl feedback

* add changelog

* implements style nits
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>

* more nits

* fix tests
Co-authored-by: Simon <sainoe@users.noreply.github.com>

* add godoc

* add godoc

Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-10-09 12:21:20 +02:00
Julien Robert
80ce491734
refactor: move x/{moduleName}/test{ModuleName} to x/{moduleName}/testutil (#13427)
* refactor: move `x/{moduleName}/test{ModuleName}` to `x/{moduleName}/testutil`

* updates

* updates
2022-10-02 10:42:52 -04:00
Jacob Gadikian
af816057f2
chore: run make format (#13375) 2022-09-24 00:22:03 +02:00
Matt Kocubinski
184235e1a8
refactor: create go.mod for simapp (#13130)
* Add go.mod for simapp

* creating dep check script

* new version of cosmos-sdk

* tests/ must be a module also if it is to test simapp

* maybe add a github action which should fail

* mv tests/mocks -> testutil/mock

* Refactor usages of tests/mocks

* update build command

* fix rosetta tests

* go mod tidy

* use cosmossdk.io/simapp

* Update sim entrypoints

* use simapp as a module

* go mod tidy

* Add replaced for vuln package

* fix vuln dep

* this CI run should fail

* this CI run should succeed

* use absolute path in makefile
2022-09-07 18:14:22 +00:00
cool-developer
bc274d8d95
refactor: staking module using mocks (#12827)
## Description

Closes: #12504 


---

### 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...

- [ ] 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
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting))
- [ ] 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)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] 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-08-28 14:02:29 +00:00