Commit Graph

10863 Commits

Author SHA1 Message Date
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
Julien Robert
d9e04c56c6
revert(consensus): revert proto breaking change (#15627) 2023-03-30 17:59:14 +02:00
Marko
9a09f8656b
feat: add event core api to runtime (#15547)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2023-03-30 14:16:31 +00:00
Marko
51f3e70a12
style: more linting (#15618) 2023-03-30 13:00:18 +00:00
Marko
c1ea84d583
style: more linting (#15616) 2023-03-30 12:05:50 +00:00
Julien Robert
0d80ac4677
chore: sync changelog with latest release (#15622) 2023-03-30 13:38:56 +02:00
dependabot[bot]
1316329316
build(deps): Bump cosmossdk.io/log from 0.1.1-0.20230329182155-367f0dc1194d to 1.0.0 (#15619) 2023-03-30 10:40:58 +00:00
Julien Robert
d21f58c638
feat(log): wire logger filtering (#15601) 2023-03-30 09:48:38 +00:00
dependabot[bot]
f3110e9d53
build(deps): Bump github.com/cosmos/gogoproto from 1.4.6 to 1.4.7 (#15617)
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>
2023-03-30 11:05:17 +02:00
Marko
bbaa5352b0
style: second round of linting (#15607)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-03-30 10:21:59 +02:00
Jacob Gadikian
68cd9c505b
chore: check spelling in linter (#15611) 2023-03-30 06:42:36 +00:00
Marko
1f2875d445
style: gofumpt linting (#15605) 2023-03-30 06:27:38 +00:00
Facundo Medica
24344fb382
refactor!: use store service in x/nft (#15588) 2023-03-29 23:31:35 +02:00
Mark Rushakoff
a7b80d5d8f
feat(log): add NewTestLogger{Info,Error} constructors (#15604) 2023-03-29 18:20:49 +00:00
dependabot[bot]
ed2eb6fb3b
build(deps): Bump cosmossdk.io/x/tx from 0.4.0 to 0.5.0 in /tests (#15599)
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>
2023-03-29 19:15:12 +02:00
Marko
4e337c3256
chore: add label and title to issue templates (#15595) 2023-03-29 15:08:33 +02:00
Julien Robert
cb30586afa
chore: pass argument to linter script (#15592) 2023-03-29 10:33:45 +00:00
Jacob Gadikian
9a07b7defe
fix: use a script to lint each module (#15590) 2023-03-29 03:36:50 +00:00
Aleksandr Bezobchuk
bb8663093e
docs: ADR-064 ABCI++ (2.0) (#14657)
Co-authored-by: ttl33 <19664986+ttl33@users.noreply.github.com>
2023-03-29 00:20:38 +00:00
Aaron Craelius
0b0db0867c
fix(x/tx)!: unexpected cast of interface to concrete type in GetSignersContext (#15581) 2023-03-28 22:55:52 +00:00
Marko
a5ad307ae6
refactor: migrate consensus to collections (#15553) 2023-03-28 20:41:12 +00:00
dependabot[bot]
58634628b3
build(deps): Bump cosmossdk.io/x/tx from 0.3.1-0.20230321155358-6522dd1731b5 to 0.4.0 (#15583)
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>
2023-03-28 20:06:08 +00:00
Julien Robert
eafd9ee4ea
docs: fix broken redirects (#15578)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-03-28 19:19:51 +00:00
Jacob Gadikian
37ba88872d
style: enable strict gofumpt (#15579) 2023-03-28 18:59:21 +00:00
Matt Kocubinski
383fed4c6d
feat(x/tx): unknown field filtering (#15557) 2023-03-28 18:01:41 +00:00
Julien Robert
22621995b5
docs: re-arrange and clarify migration docs (#15575) 2023-03-28 16:39:05 +00:00
Julien Robert
d8a6dcc647
docs(core): add documentation in error message (#15574) 2023-03-28 16:06:37 +00:00
Aleksandr Bezobchuk
ee9774af27
feat: auto-set block timestamp for historical queries (#15448) 2023-03-28 15:10:26 +00:00
Marko
f15cbac864
chore: skip rpc tests till comet fix issue with data race (#15570) 2023-03-28 14:20:27 +00:00
Facundo Medica
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
dependabot[bot]
6cc4e22c2f
build(deps): Bump @docusaurus/core from 2.3.1 to 2.4.0 in /docs (#15558)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-03-27 17:15:24 +00:00
dependabot[bot]
9c79901120
build(deps): Bump github/issue-labeler from 3.0 to 3.1 (#15559)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-27 17:09:09 +00:00
Julien Robert
e783a41221
feat: carry x/gov proposal execution error message (#15554)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-03-27 16:59:14 +00:00
Marko
44b04da86f
docs: add configuration docs (#15544) 2023-03-25 13:11:32 +01:00
Marko
572e657711
refactor(feegrant): remove bech32 global (#15347)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-03-24 22:33:34 +00:00
Marko
443eb3d300
docs: add note on tombstoning (#15545)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2023-03-24 16:55:23 +01:00
Parsa Akbari
9bb9bff96f
docs: fix a typo (#15542)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-03-23 23:46:26 +00:00
Facundo Medica
05dcf860eb
refactor: Use CoreAPI when possible (#15496)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-03-23 22:40:09 +00:00
Jeancarlo Barrios
b44caab53a
feat(autocli): add json file parsing support (#15451)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-03-23 20:43:46 +00:00
dependabot[bot]
07415a5d78
build(deps): Bump cosmossdk.io/core from 0.6.1-0.20230309163709-87da587416ba to 0.6.1 in /x/tx (#15538)
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>
2023-03-23 18:53:26 +00:00
dependabot[bot]
5174542a63
build(deps): Bump actions/stale from 7 to 8 (#15537)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-23 17:07:40 +00:00
Facundo Medica
aeb4f02645
refactor!: use KVStoreService in x/consensus (#15517) 2023-03-23 17:03:45 +00:00
Julien Robert
460bd0ad26
refactor: remove unnecessary depinject usage (#15529) 2023-03-23 16:18:41 +00:00
dependabot[bot]
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
Matt Kocubinski
ba9d4df6d0
chore(math): fix changelog link (#15531)
Fixing a changelog link.
2023-03-23 14:49:21 +00:00
Matt Kocubinski
7204a5d4dd
chore: math v1.0.0 (#15530)
Update Changelog in preparation for tagging math/v1.0.0
2023-03-23 15:44:12 +01:00
Robert Zaremba
67dc594888
fix: Makefile rocksdb (#15422)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-03-23 09:56:48 +00:00
Marko
750d12505f
docs: remove ignite cli (#15521) 2023-03-23 10:31:39 +01: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](4a6a1e3cb8/x/auth/tx/builder.go (L208)) messages are coerced to an any type in [NewAnyWithValue](4a6a1e3cb8/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](88909d6f2b/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