Commit Graph

10825 Commits

Author SHA1 Message Date
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
dependabot[bot]
d53b29b1d1
build(deps): Bump google.golang.org/grpc from 1.53.0 to 1.54.0 (#15511)
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-22 19:01:51 +00:00
dependabot[bot]
4995cd130a
build(deps): Bump github.com/mattn/go-isatty from 0.0.17 to 0.0.18 (#15509)
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-22 17:42:29 +00:00
Julien Robert
cc2d9cc623
docs: sync release process (#15505) 2023-03-22 16:17:13 +01:00
Jeancarlo Barrios
4866d9aa2e
feat(autocli): add address validation (#15449)
## Description

Closes: #13287



---

### 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 09:56:21 +00:00
Julien Robert
c77bcc22c3
refactor: use app config configurator for removing boilerplate (#15499) 2023-03-22 07:29:33 +01:00
Facundo Medica
3a7a2645f0
fix: always reset the state for Prepare and Process Proposal (#15487)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-03-21 19:42:19 +00:00
dependabot[bot]
320171461f
build(deps): Bump github.com/hashicorp/go-hclog from 1.4.0 to 1.5.0 in /store (#15498)
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-21 17:31:24 +00:00
Marko
6522dd1731
chore: update to core 0.6.1 (#15497) 2023-03-21 15:53:58 +00:00
Julien Robert
46169d0bff
ci: add changelog reminder (#15459) 2023-03-21 14:44:24 +01:00
Marko
b77e51adf0
docs: add adr/rfc section to contributing (#15385)
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>
2023-03-21 12:11:56 +00:00
Marko
5680f823c5
docs: update roadmap (#15493) 2023-03-21 12:47:31 +01:00
Julien Robert
b3552f2183
test(store): skip PluginTestSuiteon non linux machine (#15488) 2023-03-21 08:49:36 +00:00
Jeancarlo Barrios
8aa0d035d8
test(math): added integer file to fix test (#15490) 2023-03-20 22:55:34 +00:00
Aleksandr Bezobchuk
0d20a1456d
docs: update mempool Select godoc (#15486) 2023-03-20 21:09:14 +00:00
dependabot[bot]
66ce346fea
build(deps): Bump github.com/hashicorp/go-getter from 1.7.0 to 1.7.1 in /x/upgrade (#15483)
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-20 17:59:28 +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
Amaury
a8dceddad9
docs(adr): Add Textual SpecVersion (#15270) 2023-03-20 15:56:26 +00:00
Amaury
897ef64712
feat: Validate Msg proto annotations (#13793)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-03-20 16:27:36 +01:00
Marko
176c61cf70
feat: add delegator to withdraw address (#15462) 2023-03-20 14:43:07 +00:00
Amaury
a4a3c81d11
feat(client): Add cobra's context to clientCtx (#15458)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2023-03-20 14:14:58 +00:00
Robert Zaremba
f4a6feb9d4
fix: flaky group genesis sim (#15447) 2023-03-20 10:33:58 +00:00
Amaury
124aed4b28
feat(x/tx): Support gogo registry in Textual (#15302) 2023-03-20 08:13:27 +00:00
Puneet
bf85bfbf4d
refactor: Rename clientCtx to ctx in distr params.go (#15453) 2023-03-19 13:22:41 +00:00
Marko
ac345ce694
refactor: evidence make equivocation private (#15420) 2023-03-17 17:20:32 +00:00
dependabot[bot]
518f8a2bf0
build(deps): Bump cosmossdk.io/store from 0.0.0-20230314205129-d50cb1ef349f to 0.1.0-alpha.1 (#15444)
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>
2023-03-17 15:20:57 +00:00
Julien Robert
3894b283a1
chore: fix changelog due to previous PR (#15446) 2023-03-17 15:46:56 +01:00
yihuang
8944ab6781
feat!: limit the length of key/value (#14645)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-03-17 14:15:13 +00:00
cool-developer
44ed13dff7
chore: update store iavl with changesets (#15432)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-03-17 13:28:58 +00:00
Marko
a6bc49afab
chore: remove add pr to project ci job. (#15439) 2023-03-17 11:01:17 +00:00
Marko
a4e592ee43
docs: RFC 001 tx validation (#15363)
## Description

This pr is meant to capture a conversation in slack and propose it to the community. The updated flow reduces boilerplate code and decreases the amount of duplicated validations happening. 

---

### 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-17 10:58:36 +00:00
Marko
5caa5fc499
docs: update cosmwasm link (#15438) 2023-03-17 11:54:37 +01:00
Julien Robert
1a1536aa8e
refactor: remove unnecessary modules methods (#15436) 2023-03-17 11:47:08 +01:00
dependabot[bot]
2c75a5fa63
build(deps): Bump cosmossdk.io/x/tx from 0.2.3-0.20230309163709-87da587416ba to 0.3.0 (#15427) 2023-03-16 20:15:40 +00:00
dependabot[bot]
8f54a47607
build(deps): Bump google.golang.org/protobuf from 1.29.1 to 1.30.0 (#15425)
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-16 19:21:24 +00:00
dependabot[bot]
a22a0c8352
build(deps): Bump amannn/action-semantic-pull-request from 5.1.0 to 5.2.0 (#15423)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 18:03:51 +01:00
Aleksandr Bezobchuk
8928ea1066
docs: ADR-065 Store V2 (#15028)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-03-16 10:24:10 -04:00
Matt Kocubinski
4a35885fb7
feat(x/tx): implement SIGN_MODE_DIRECT_AUX handler (#15380)
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
2023-03-16 10:29:41 +00:00