Commit Graph

67 Commits

Author SHA1 Message Date
Aaron Craelius
001c11e00d
feat!(x/tx): support validator address signers (#15709) 2023-04-12 16:33:04 +00:00
Matt Kocubinski
e342a47254
fix: test sometimes receives an error string containing unicode (#15791) 2023-04-11 18:40:54 +00:00
Likhita Polavarapu
fb257ae9d9
feat: add Context as arg to NewIntegrationApp (#15779)
## Description

Closes: #XXXX

This PR adds `sdk.Context` arg to `NewIntegrationApp`. This allows us to set the context updatable while verifying `begin/end block` logic in integration tests.

---

### 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-11 14:55:55 +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
Emmanuel T Odeke
eb52f03acb
fix: x/tx/signing/textual: use standardized Timestamp+Duration comparators in tests (#15762) 2023-04-10 00:12:44 +02:00
Mark Rushakoff
e24472f9ac
style!: rename direct_aux package to directaux (#15742) 2023-04-07 18:08:31 +00:00
Emmanuel T Odeke
7c068afa6f
fix: x/tx/signing/textual/IntValueRenderer.Parse: gracefully handle "" + fuzz (#15730)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-04-07 14:19:38 +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
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
Matt Kocubinski
5e90819765
feat(x/tx): legacy amino json sign mode handler (#15515) 2023-04-03 16:13:45 -04: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
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
Aaron Craelius
0b0db0867c
fix(x/tx)!: unexpected cast of interface to concrete type in GetSignersContext (#15581) 2023-03-28 22:55:52 +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
Matt Kocubinski
383fed4c6d
feat(x/tx): unknown field filtering (#15557) 2023-03-28 18:01:41 +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]
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
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
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
Amaury
124aed4b28
feat(x/tx): Support gogo registry in Textual (#15302) 2023-03-20 08:13:27 +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
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
Aaron Craelius
46e4b28dad
refactor(x/tx)!: switch to interface in GetSignersContextOptions (#15413) 2023-03-15 21:40:39 +00:00
dependabot[bot]
1cc0080bda
build(deps): Bump google.golang.org/protobuf from 1.29.0 to 1.29.1 (#15392)
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-14 16:35:27 +00:00
Amaury
a539a0331e
docs(adr): Change Textual SignDoc to struct (#15282) 2023-03-14 11:18:40 +01:00
dependabot[bot]
2e5f6f3b4e
build(deps): Bump cosmossdk.io/math from 1.0.0-beta.6.0.20230216172121-959ce49135e4 to 1.0.0-rc.0 (#15370)
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-13 15:38:47 +01:00
dependabot[bot]
7e56d5e06b
build(deps): Bump deps and remove replaces (#15335)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-03-09 18:46:15 +01:00
Amaury
6252e5d2c0
refactor: Use anyutil instead of any (#15322) 2023-03-09 14:24:57 +01:00
Facundo Medica
138e0e1d3c
refactor(textual): Remove msg header screen (#15208)
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
2023-03-09 11:01:41 +00:00
dependabot[bot]
b2188e9326
build(deps): Bump github.com/golang/protobuf from 1.5.2 to 1.5.3 (#15310)
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-08 21:16:24 +00:00
dependabot[bot]
1e73883f66
build(deps): Bump google.golang.org/protobuf from 1.28.2-0.20230222093303-bc1253ad3743 to 1.29.0 (#15307)
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-08 20:33:15 +00:00
Amaury
e9478df161
refactor(x/tx): Move textual,aminojson to signing (#15278) 2023-03-06 18:17:24 +00:00
Aaron Craelius
1f40d9d47d
feat(x/tx): extract signers using cosmos.msg.v1.signer (#15205)
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
2023-03-06 11:12:54 -05:00
Devon Bear
da238c5555
impr(tx): Allow for Custom SignModeHandlers. (#15204)
Co-authored-by: Cal Bera <calbera@berachain.com>
2023-03-02 16:30:46 +00:00
dependabot[bot]
364b5ebc79
build(deps): Bump cosmossdk.io/core from 0.5.1 to 0.6.0 (#15228) 2023-03-01 20:15:43 +01:00
Julien Robert
41c8529ff9
chore: bump cometbft to v0.37.0-rc3 (#15220) 2023-03-01 16:30:41 +01:00
dependabot[bot]
b1603227e5
build(deps): Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 (#15172)
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-02-27 19:49:52 +00:00
Facundo Medica
74ff94fdd5
fix: Format decimals correctly for signmode textual (#15129)
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
2023-02-27 12:34:20 +00:00
Mark Rushakoff
21d479c4ef
chore(tx): fix staticcheck issues (#15150) 2023-02-24 15:02:56 +00:00
Matt Kocubinski
976ecd4c08
feat: protoreflect based amino json encoder (#14877) 2023-02-23 21:41:06 +00:00
dependabot[bot]
9569b34997
build(deps): Bump github.com/cosmos/cosmos-proto from 1.0.0-beta.1 to 1.0.0-beta.2 (#15116)
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-02-21 21:46:01 +01:00
dependabot[bot]
25de9de537
build(deps): Bump github.com/cosmos/gogoproto from 1.4.5 to 1.4.6 (#15111)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-21 14:45:43 +00:00
dependabot[bot]
8a46a3d4fe
build(deps): Bump cosmossdk.io/api from 0.3.0 to 0.3.1 (#15092)
Bumps [cosmossdk.io/api](https://github.com/cosmos/cosmos-sdk) from 0.3.0 to 0.3.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/cosmos/cosmos-sdk/blob/v0.3.1/CHANGELOG.md">cosmossdk.io/api's changelog</a>.</em></p>
<blockquote>
<h2>0.3.1 (March 23, 2017)</h2>
<p>IMPROVEMENTS:</p>
<ul>
<li>CLI returns exit code 1 and logs error before exiting</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/cosmos/cosmos-sdk/compare/v0.3.0...v0.3.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cosmossdk.io/api&package-manager=go_modules&previous-version=0.3.0&new-version=0.3.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>
2023-02-20 20:39:19 +00:00
Facundo Medica
4a6a1e3cb8
refactor: fix lint issues + gofumpt (#15062) 2023-02-19 10:31:49 +00:00