Commit Graph
104 Commits
Author SHA1 Message Date
Likhita Polavarapu b20bd5d932 test(x/gov): write integration tests (#16194) 2023-05-19 09:42:33 +00:00
Facundo Medicaandmarbar3778 3c4330680f refactor(x/evidence)!: use KVStoreService and context.Context (#16008)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2023-05-17 20:13:01 +00:00
testinginprodandunknown unknown 91d14c04ac refactor(gov)!: use collections for Proposal state management (part 1) (#16171)
Co-authored-by: unknown unknown <unknown@unknown>
2023-05-16 09:55:08 +00:00
testinginprodandunknown unknown f7418c6db2 refactor(gov)!: use collections for constitution and params state (#16118)
Co-authored-by: unknown unknown <unknown@unknown>
2023-05-12 08:15:37 +00:00
testinginprodandunknown unknown 3185542a7a refactor(gov)!: decouple gRPC query methods from Keeper (#16106)
Co-authored-by: unknown unknown <unknown@unknown>
2023-05-11 16:04:46 +00:00
Likhita Polavarapu 52212cf3e9 test(x/bank): write integration tests (#16052) 2023-05-10 11:27:01 +00:00
Matt KocubinskiandAaron Craelius 2f21cb5050 refactor(x/tx): use dynamicpb instead of type resolver in any marshal (#16048)
Co-authored-by: Aaron Craelius <aaron@regen.network>
2023-05-08 19:20:23 +00:00
MarkoandJulien Robert 044fe13789 refactor(math)!: remove aliases in math (#16040)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-05-07 17:25:59 +00:00
Matt Kocubinski 931fbcff5c refactor(x/tx)!: rename aminojson.NewAminoJSON -> aminojson.NewEncoder (#16044) 2023-05-05 20:47:12 +00:00
Facundo MedicaandJulien Robert 4f00acfc24 refactor(x/gov)!: Use KVStoreService, context.Context, return errors, better iterators (#15988)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-05-05 10:13:56 +00:00
Likhita Polavarapu 34018f7130 test(x/evidence): write integration tests (#16015) 2023-05-04 17:23:40 +00:00
Likhita Polavarapu 96730a5f2b test(genutil): remove duplicate tests from genutil integration tests (#16034) 2023-05-04 15:00:10 +00:00
MarkoandAaron Craelius 1705615ef0 feat: add header and comet info service (#15850)
Co-authored-by: Aaron Craelius <aaron@regen.network>
2023-05-03 13:32:25 +00:00
Marko d31f2964b0 feat!: Define Genesis state transition (#15999) 2023-05-03 08:58:58 +00:00
Likhita Polavarapu 672b1f9e15 test(x/staking): write integration tests (#15890) 2023-05-02 20:01:19 +00:00
Aaron CraeliusandMatt Kocubinski cb1641c1b5 refactor(codec)!: update codec to x/tx v0.6.0 (#15873)
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
2023-04-28 08:13:28 +00:00
Likhita Polavarapu 3936030e16 test(x/slashing): write integration tests (#15928) 2023-04-28 07:58:35 +00:00
Facundo Medica 428e19f4f0 refactor(x/distribution)!: Use KVStoreService, context.Context and return errors instead of panic (#15948) 2023-04-27 13:26:51 +00:00
Facundo Medica 6dfe7351a5 refactor!: use KVStoreService and context.Context in x/bank (#15891) 2023-04-26 10:12:47 +00:00
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 MedicaandJulien Robert 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
Likhita PolavarapuandMarko 495ef01f71 test(x/distribution): write integration tests (#15569)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-04-13 10:05:59 +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
Marko 37032fb948 chore: linting (#15813) 2023-04-12 12:36:42 +00:00
testinginprod 7ab0dfc494 refactor(bank): move bank balances to use collections (#15327) 2023-04-11 13:06:04 +00:00
Julien Robert ee53930fc1 refactor(distribution): move ValidateBasic logic to msgServer (#15755) 2023-04-11 08:11:52 +00:00
Matt KocubinskiandAaron Craelius f8e2d984b2 feat(x/tx): tx decoder (#15414)
Co-authored-by: Aaron Craelius <aaronc@users.noreply.github.com>
2023-04-10 21:39:59 +00:00
Mark Rushakoff 4cb71ceb6e style!: lint fixes for x/tx (#15748) 2023-04-10 17:55:06 +00:00
Marko 90e2a2ae89 style: linting (#15704)
## Description

closing in on completion of linting

---

### 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-06 23:25:23 +00:00
Julien Robert c3b1b37e49 test: remove api that should not be used (#15678) 2023-04-03 21:57:11 +00:00
Matt Kocubinski 5e90819765 feat(x/tx): legacy amino json sign mode handler (#15515) 2023-04-03 16:13:45 -04:00
Julien Robert aeaa301506 feat: integration test helpers (#15556) 2023-03-31 18:02:15 +00:00
Jacob Gadikian 8c182e7d77 style: lints for core, math, simapp, and tests (#15638) 2023-03-31 09:30:29 +02:00
Jacob GadikianandJulien Robert 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
Facundo MedicaandAleksandr Bezobchuk d29e8eb4f6 refactor!: use KVStoreService in x/auth (#15520)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-03-27 18:57:02 +00:00
Julien Robert 460bd0ad26 refactor: remove unnecessary depinject usage (#15529) 2023-03-23 16:18:41 +00:00
ae8bd416a3 build(deps): Bump cosmossdk.io/math from 1.0.0-rc.0 to 1.0.0 (#15532)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-03-23 15:44:09 +00:00
Facundo Medica 370acbb659 style: gofumpt everything (#15518) 2023-03-22 20:20:46 +00:00
Matt Kocubinski 4db99fc1a5 fix(math): Dec marshal shouldn't have side effects (#15506)
## Description

Ref: https://github.com/cosmos/cosmos-sdk/issues/15170
Included in: #15515 

Required to resolve a discrepancy between the sign mode being implemented in #15170 and the existing legacy one.

When calling tx builder [SetMsgs](https://github.com/cosmos/cosmos-sdk/blob/4a6a1e3cb8de459891cb0495052589673d14ef51/x/auth/tx/builder.go#L208) messages are coerced to an any type in [NewAnyWithValue](https://github.com/cosmos/cosmos-sdk/blob/4a6a1e3cb8de459891cb0495052589673d14ef51/codec/types/any.go#L61). This marshals a message as proto bytes. If a message has cosmos.Dec typed fields, and they are set to nil, the will be set to 0 during seriazliation in the [Dec.Marshal](https://github.com/cosmos/cosmos-sdk/blob/88909d6f2b86dee6969a76e1e0e3c106fe8fd20c/math/dec.go#L801) implementation.

This side effect *changes* the output of a JSON marshal before and after the call to Dec.Marshal, as shown below.

```go
rates := &stakingtypes.CommissionRates{}
MarshalJson(rates)
// {"rate":"0","max_rate":"0","max_change_rate":"0"}

MarshalProto(rates)

MarshalJson(rates)
//{"rate":"0.000000000000000000","max_rate":"0.000000000000000000","max_change_rate":"0.000000000000000000"}
```

An integration is test is also committed asserting the (now fixed) behavior above.  Its asserts should be changed once a release of math is made and `/tests/go.mod` is updated.



---

### 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-03-22 19:48:36 +00:00
Julien Robert 6acd5cc26c refactor(bank): update InputOutputCoins arguments (#15477) 2023-03-20 17:32:39 +00:00
Robert Zaremba 5612bb815b docs: improve proto vesting docs about time attributes (#15474)
## Description

Added a little bit more comments to note about the meaning / type of the numeric time values.

When I'm creating the vesting accounts, I always have to  double check it, and end up looking at the code.
2023-03-20 16:40:19 +00:00
Marko ac345ce694 refactor: evidence make equivocation private (#15420) 2023-03-17 17:20:32 +00:00
Amaury e9478df161 refactor(x/tx): Move textual,aminojson to signing (#15278) 2023-03-06 18:17:24 +00:00
Mark Rushakoff e33c5a7e49 test: fix flakiness due to duplicate denoms (#15223) 2023-03-01 16:22:48 +00:00
Matt Kocubinski 976ecd4c08 feat: protoreflect based amino json encoder (#14877) 2023-02-23 21:41:06 +00:00
Julien Robert c17c3caab8 refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00