Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bump up cosmos@v0.45.6 #611

Merged
merged 78 commits into from
Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
e269cdc
feat: add get all versions (backport #11124) (#11144)
mergify[bot] Feb 9, 2022
cdaaee3
support debug trace QueryResult (#11148)
yihuang Feb 18, 2022
4455f1e
disable url parameter in swagger-ui page (backport #11202) (#11207)
mergify[bot] Feb 21, 2022
a4fe0fc
feat: Allow to restrict MintCoins from app.go (backport #10771) (#11227)
mergify[bot] Feb 21, 2022
f8167f9
refactor: prune everything (backport #11177) (#11258)
mergify[bot] Feb 23, 2022
cf8551e
feat: min and max operators on coins (backport #11200) (#11249)
mergify[bot] Feb 23, 2022
a1ed16a
feat: include transactions in QueryBlockByHeight (backport #10880) (…
mergify[bot] Feb 24, 2022
05c4d43
fix: reject query with block height in the future (backport #11222) (…
mergify[bot] Feb 25, 2022
521bce6
fix: add concurrency fence on traceContext to avoid data races (backp…
mergify[bot] Feb 8, 2022
9227cfc
fix: x/authz allow insufficient funds error (backport #11252) (#11299)
mergify[bot] Mar 2, 2022
34e3f3c
feat!: Add hooks to allow app modules to add things to state-sync (ba…
mergify[bot] Mar 2, 2022
8bd2b94
Implement rollback command (#11179) (#11314)
mergify[bot] Mar 7, 2022
c6c2985
fix(types): use correct bit length constant for sdk.Dec (backport #11…
mergify[bot] Mar 9, 2022
3c2e787
fix: remove hardcoded pubkey from tx simulation (backport #11282) (#1…
mergify[bot] Mar 10, 2022
4a9353d
fix: cgosecp256k1 verification (backport #11298) (#11360)
mergify[bot] Mar 11, 2022
2aecb56
fix: multisig works with only multisig name as argument, not its addr…
mergify[bot] Mar 11, 2022
10821ed
fix: Update query.go to include pagination for bank q totals (#11355)…
mergify[bot] Mar 15, 2022
6ed1484
feat: add support for spendable balances gRPC query (backport #11417)…
mergify[bot] Mar 27, 2022
d33a8f7
feat: grpc-only mode (backport #11430) (#11460)
mergify[bot] Mar 27, 2022
f8de9f0
feat: add grants by grantee authz query (backport #10944) (#11523)
mergify[bot] Apr 1, 2022
496942d
feat: EIP191 sign mode (backport #11533) (#11545)
mergify[bot] Apr 5, 2022
f6bec44
feat: `ScheduleUpgradeNoHeightValidation` for automated upgrades w/o …
mergify[bot] Apr 8, 2022
c7d9a11
chore: update TM dep (#11562)
alexanderbez Apr 8, 2022
368b870
fix: address confusing error message with SetOrder* functions (#11571…
mergify[bot] Apr 8, 2022
788f47a
build: fix build
dudong2 Jul 26, 2022
05ef05b
check error returned from NewNode (#11624)
jhernandezb Apr 13, 2022
bb4d0a2
feat: add (re)delegation getters (backport #11596) (#11615)
mergify[bot] Apr 13, 2022
66fd823
feat: add vesting util functions (backport #11652) (#11667)
mergify[bot] Apr 18, 2022
510cb76
chore: v0.45.x bump min go version to 1.17 (#11686)
alexanderbez Apr 19, 2022
bf88120
fix: Add validation on create gentx (backport #11693) (#11698)
mergify[bot] Apr 20, 2022
5fddc8a
fix: Added description of how to run the unsafe-reset-all command in …
mergify[bot] Apr 22, 2022
d843304
chore: remove unneeded swagger docs from 0.45 #11745
tac0turtle Apr 25, 2022
00de3c1
fix: data race issues with api.Server (backport #11724) (#11748)
mergify[bot] Apr 25, 2022
63c2afb
updates (#11750)
alexanderbez Apr 25, 2022
07f392f
chore: update vuepress config to reflect new default branch naming (#…
mergify[bot] Apr 26, 2022
5fbdfd2
fix: decrement types.Dec max length to keep decimal bits in DecimalPr…
mergify[bot] Apr 27, 2022
b713855
fix: Bug reading password from a buffer when reader returns EOF (back…
mergify[bot] Apr 27, 2022
9b121fd
refactor: improve error messages (backport #11762) (#11887)
mergify[bot] May 6, 2022
76073b5
feat: add feegrant query to see allowances from a given granter (back…
julienrbrt May 6, 2022
fa26e92
fix: grants by granter pagination `total` (#11813) (#11828)
mergify[bot] May 12, 2022
c21193c
refactor: remove redacted message (backport #11960) (#12002)
mergify[bot] May 20, 2022
319a2e5
fix: index ante events for failed tx (backport: #12013) (#12017)
yihuang May 23, 2022
a85e952
fix: Make rechecking a tx check the sequence number #12060 (#12062)
mergify[bot] May 27, 2022
bf8a7d3
fix: cli `grants-by-grantee`, `grants-by-granter` cmds (backport #119…
mergify[bot] May 27, 2022
d3cbe07
fix: add base account getter (backport #12154) (#12161)
mergify[bot] Jun 6, 2022
a9702ad
refactor: Simplify SimulationManager setup (backport #12153) (#12159)
mergify[bot] Jun 7, 2022
144d442
perf: modify DelegatorSharesInvariant for better performance (#12170)…
mergify[bot] Jun 7, 2022
11af87a
chore: remove direct reliance on staking from slashing (backport #121…
mergify[bot] Jun 7, 2022
a938985
fix(upgrades): perform no-op if 'from' and 'to' migration version are…
mergify[bot] Jun 8, 2022
4250dfb
chore(types): add MustAccAddressFromBech32 util func (backport #12201…
mergify[bot] Jun 9, 2022
c2e06fa
Revert "fix: add base account getter (backport #12154) (#12161)" (#12…
alexanderbez Jun 9, 2022
cee77d4
Update tag.yml
alexanderbez Jun 9, 2022
8936e55
fix: update index of crisis invariant check logs (backport #12208) (#…
mergify[bot] Jun 10, 2022
b16829d
fix: Refactor GetLastCompletedUpgrade [v0.45.x] (#12264)
alexanderbez Jun 15, 2022
bfa3fea
fix: defaultGenTxGas to 10 times (#12314)
hea9549 Jun 21, 2022
a3898d1
fix: edit validator bug from cli (#12317)
likhita-809 Jun 21, 2022
7dc3dda
feat: add query.GenericFilteredPaginated (backport #12253) (#12371)
mergify[bot] Jun 28, 2022
9723c36
refactor: remove new APIs on x/collection (#608)
0Tech Jul 26, 2022
9505081
refactor: remove new APIs on x/token (#609)
0Tech Jul 26, 2022
c5d752a
docs: update outdated events in specs (#602)
0Tech Jul 26, 2022
7291582
feat: apply change of prefix of key name in ostracon (#610)
zemyblue Jul 27, 2022
ada4d8a
chore(deps): Bump github.com/tendermint/tm-db from 0.6.6 to 0.6.7 (#613)
dependabot[bot] Jul 28, 2022
ccdb52a
feat: apply Ostracon's changes that replace `StakingPower` with `Voti…
zemyblue Jul 29, 2022
65cc4eb
chore(deps): Bump google.golang.org/protobuf from 1.28.0 to 1.28.1 (#…
dependabot[bot] Jul 29, 2022
7004a60
build: fix build
dudong2 Jul 26, 2022
18b9f1d
test: fix test cases
dudong2 Jul 27, 2022
3d2cbec
test: fix lint errors
dudong2 Jul 27, 2022
fdf7609
test: fix TestAppStateDeterminism test
dudong2 Jul 27, 2022
9044152
build: use golang 1.18
dudong2 Jul 27, 2022
92b5004
docs: add swagger file
dudong2 Jul 28, 2022
46bc82c
chore: change pagination flag name 'authorizations' -> 'grants'
dudong2 Jul 28, 2022
c1d1bbd
test: fixes for lint, tparse, runsim, statik due to go 1.18
dudong2 Jul 28, 2022
8ec6d6f
test: add uncovered tests for codecov/patch
dudong2 Jul 28, 2022
4910c39
Merge branch 'main' into dudong2/feat/cosmos-sdk@v0.45.6
dudong2 Aug 1, 2022
2980b34
build: go mod tidy
dudong2 Aug 1, 2022
0b70b74
Merge branch 'main' into dudong2/feat/cosmos-sdk@v0.45.6
dudong2 Aug 2, 2022
b536fc9
Merge branch 'main' into dudong2/feat/cosmos-sdk@v0.45.6
dudong2 Aug 2, 2022
def729b
chore: change panic to require.NoError
dudong2 Aug 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: improve error messages (backport #11762) (#11887)
* refactor: improve error messages (#11762)

Closes: #XXXX

---

*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/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

*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)

(cherry picked from commit 8f51644)

* updates

* add changelog

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
  • Loading branch information
3 people authored and dudong2 committed Jul 26, 2022
commit 9b121fdfa9bc50426763b6d8e2c5d2f9d4316797
10 changes: 5 additions & 5 deletions types/decimal.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func NewDecFromIntWithPrec(i Int, prec int64) Dec {
// CONTRACT - This function does not mutate the input str.
func NewDecFromStr(str string) (Dec, error) {
if len(str) == 0 {
return Dec{}, ErrEmptyDecimalStr
return Dec{}, fmt.Errorf("%s: %w", str, ErrEmptyDecimalStr)
}

// first extract any negative symbol
Expand All @@ -154,7 +154,7 @@ func NewDecFromStr(str string) (Dec, error) {
}

if len(str) == 0 {
return Dec{}, ErrEmptyDecimalStr
return Dec{}, fmt.Errorf("%s: %w", str, ErrEmptyDecimalStr)
}

strs := strings.Split(str, ".")
Expand All @@ -172,7 +172,7 @@ func NewDecFromStr(str string) (Dec, error) {
}

if lenDecs > Precision {
return Dec{}, fmt.Errorf("invalid precision; max: %d, got: %d", Precision, lenDecs)
return Dec{}, fmt.Errorf("value '%s' exceeds max precision by %d decimal places: max precision %d", str, Precision-lenDecs, Precision)
}

// add some extra zero's to correct to the Precision factor
Expand All @@ -182,10 +182,10 @@ func NewDecFromStr(str string) (Dec, error) {

combined, ok := new(big.Int).SetString(combinedStr, 10) // base 10
if !ok {
return Dec{}, fmt.Errorf("failed to set decimal string: %s", combinedStr)
return Dec{}, fmt.Errorf("failed to set decimal string with base 10: %s", combinedStr)
}
if combined.BitLen() > maxDecBitLen {
return Dec{}, fmt.Errorf("decimal out of range; bitLen: got %d, max %d", combined.BitLen(), maxDecBitLen)
return Dec{}, fmt.Errorf("decimal '%s' out of range; bitLen: got %d, max %d", str, combined.BitLen(), maxDecBitLen)
}
if neg {
combined = new(big.Int).Neg(combined)
Expand Down
2 changes: 1 addition & 1 deletion types/errors/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func errIsNil(err error) bool {
return false
}

var errPanicWithMsg = Wrapf(ErrPanic, "panic message redacted to hide potentially sensitive system info")
var errPanicWithMsg = Wrapf(ErrPanic, "error message redacted to hide potential sensitive info. Use the '--trace' flag if you are running a node to see the full stack trace error")

// Redact replaces an error that is not initialized as an ABCI Error with a
// generic internal error instance. If the error is an ABCI Error, that error is
Expand Down
2 changes: 1 addition & 1 deletion types/errors/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (s *abciTestSuite) TestABCIInfoSerializeErr() {
},
"redact in default encoder": {
src: myPanic,
exp: "panic message redacted to hide potentially sensitive system info: panic",
exp: "error message redacted to hide potential sensitive info. Use the '--trace' flag if you are running a node to see the full stack trace error: panic",
},
"do not redact in debug encoder": {
src: myPanic,
Expand Down