Commit Graph

593 Commits

Author SHA1 Message Date
Aaron Craelius
001c11e00d
feat!(x/tx): support validator address signers (#15709) 2023-04-12 16:33:04 +00:00
Marko
37032fb948
chore: linting (#15813) 2023-04-12 12:36:42 +00:00
Mark Rushakoff
64908e1559
build(deps): use latest commit of CometBFT v0.37.x branch (#15787) 2023-04-11 19:16:52 +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 Kocubinski
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
Aleksandr Bezobchuk
4684c854d4
refactor!: x/slashing missed block window (#15580) 2023-04-10 16:58:41 +00:00
Julien Robert
cdc03fa66e
refactor(authz): move ValidateBasic logic to msgServer (#15754) 2023-04-08 12:57:51 +00:00
dependabot[bot]
7720bc4cb6
build(deps): Bump golang.org/x/crypto from 0.7.0 to 0.8.0 (#15733)
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-04-07 16:25:45 +00:00
dependabot[bot]
ee70c1475d
build(deps): Bump cosmossdk.io/api from 0.3.1 to 0.4.0 in /core (#15734)
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-04-07 12:07:07 +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
Marko
f5993b1c62
refactor(gov): remove global bech32 (#15682) 2023-04-06 08:56:12 +00:00
Marko
e2a8f7ca32
refactor(distribution): remove global bech32 (#15684)
## Description

ref #13140 

remove global bech32 in distribution

---

### 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-05 14:14:51 +00:00
dependabot[bot]
f5eb9d8887
build(deps): Bump github.com/spf13/cobra from 1.6.1 to 1.7.0 (#15692)
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>
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-04-05 12:13:45 +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
c1974e4b3c
refactor: remove cometbft/libs/cli import (#15673) 2023-04-03 14:48:02 +00:00
Marko
521aa4bfdd
refactor(authz):remove global bech32 (#15662) 2023-04-03 13:55:32 +02:00
Marko
b4d1109efc
refactor(nft): remove global bech32 (#15654) 2023-04-03 10:28:17 +00:00
Marko
7f0e05ebb9
refactor(staking): remove account address bech32 global (#15598) 2023-04-02 21:53:59 +02: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 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
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
1f2875d445
style: gofumpt linting (#15605) 2023-03-30 06:27:38 +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
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
Aleksandr Bezobchuk
ee9774af27
feat: auto-set block timestamp for historical queries (#15448) 2023-03-28 15:10:26 +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
Marko
572e657711
refactor(feegrant): remove bech32 global (#15347)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-03-24 22:33:34 +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
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
c77bcc22c3
refactor: use app config configurator for removing boilerplate (#15499) 2023-03-22 07:29:33 +01: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
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
897ef64712
feat: Validate Msg proto annotations (#13793)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-03-20 16:27:36 +01:00
Amaury
124aed4b28
feat(x/tx): Support gogo registry in Textual (#15302) 2023-03-20 08:13:27 +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