Commit Graph

8496 Commits

Author SHA1 Message Date
Chirantan Ekbote 5b8a5ea690 staking: Fix potential division-by-zero
`v.DelegatorShares` can be 0 so don't allow division in that case.
2022-10-18 15:29:49 -05:00
Csongor Kiss 46bc89f04d staking/keeper: remove stale comment
this case is now handled properly
2022-07-22 14:11:24 -05:00
Csongor Kiss 443c6c1f7a Check self-delegation against provided minimum 2022-07-22 14:11:24 -05:00
Csongor Kiss abbed8593e Fix simapp compilation
The WormholeKeeper is just set to nil so we don't incur a circular
dependency. The simapp test doesn't use that keeper anyway
2022-07-22 14:11:24 -05:00
Csongor Kiss 5d5267d9ac Delete dependabot 2022-07-22 13:15:12 -05:00
claudijd a555f0e051 Add SECURITY and README updates 2022-07-19 22:20:27 +00:00
Csongor Kiss 63d6cfe5d8 Implement IsConsensusGuardian 2022-07-19 22:19:55 +00:00
Csongor Kiss cb38675560 Make staking keeper know about wormhole keeper 2022-07-19 22:19:55 +00:00
Csongor Kiss e980b6880c Move IsGuardian to validator.go
Previously we put it in a generated file, which was not a good idea.
2022-07-19 22:19:55 +00:00
Csongor Kiss 0700b0b1bb Proof of Authority for tendermint consensus
allows validators to have 0 delegated tokens
2022-07-19 22:19:55 +00:00
mergify[bot] f2d94445c0
feat: add query.GenericFilteredPaginated (backport #12253) (#12371) 2022-06-28 12:42:01 -04:00
Julien Robert dced7ec56a
chore: update release notes (#12377) 2022-06-28 09:54:05 -04:00
likhita-809 cece44df7b
fix: edit validator bug from cli (#12317) 2022-06-21 11:28:20 -04:00
HaeSung bf7348e631
fix: defaultGenTxGas to 10 times (#12314) 2022-06-21 09:48:54 -04:00
Aleksandr Bezobchuk aeab66a32d
fix: Refactor GetLastCompletedUpgrade [v0.45.x] (#12264) 2022-06-15 12:03:23 -04:00
mergify[bot] 63d768c257
fix: update index of crisis invariant check logs (backport #12208) (#12210)
* fix: update index of crisis invariant check logs (#12208)

## Description

the info log messages describing invariant checks use the index to state
progress (eg. `asserting crisis invariants inv=0/15`). this simple change
makes them 1-indexed (eg. `asserting crisis invariants inv=1/15`).

example before:

<img width="374" alt="Screen Shot 2022-06-09 at 12 06 58 PM" src="https://user-images.githubusercontent.com/14897503/172925006-8810706c-0948-4e36-85b8-22813ccc9311.png">

Closes: #XXXX

---

### 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...

- [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [x] added `!` to the type prefix if API or client breaking change - N/A
- [x] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting))
- [x] provided a link to the relevant issue or specification - N/A
- [x] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/main/docs/building-modules) - N/A
- [x] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#testing) - N/A
- [x] added a changelog entry to `CHANGELOG.md`
- [x] included comments for [documenting Go code](https://blog.golang.org/godoc) - N/A
- [x] updated the relevant documentation or specification - N/A
- [x] reviewed "Files changed" and left comments if necessary - N/A
- [x] 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)

(cherry picked from commit 907df327ed)

# Conflicts:
#	CHANGELOG.md

* fix conflict

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-06-10 10:28:25 +02:00
Aleksandr Bezobchuk 6dc53e06dc
Update tag.yml 2022-06-09 17:05:27 -04:00
Aleksandr Bezobchuk a2761bdc6f
chore: prep release notes + cl (#12207) 2022-06-09 16:59:45 -04:00
Aleksandr Bezobchuk 4dd96eba09
Revert "fix: add base account getter (backport #12154) (#12161)" (#12213) 2022-06-09 16:58:34 -04:00
mergify[bot] a3f8a83ec4
chore(types): add MustAccAddressFromBech32 util func (backport #12201) (#12205) 2022-06-09 15:01:04 -04:00
mergify[bot] 48c2f77a27
fix(upgrades): perform no-op if 'from' and 'to' migration version are equal (#12174) (#12192) 2022-06-08 11:17:13 -04:00
mergify[bot] 95d873faeb
chore: remove direct reliance on staking from slashing (backport #12177) (#12181) 2022-06-07 17:34:57 -04:00
mergify[bot] bec98b55e3
perf: modify DelegatorSharesInvariant for better performance (#12170) (#12179) 2022-06-07 14:49:30 -04:00
mergify[bot] d721a760d8
refactor: Simplify SimulationManager setup (backport #12153) (#12159)
* refactor: Simplify SimulationManager setup (#12153)

(cherry picked from commit 544afb65e2)

# Conflicts:
#	CHANGELOG.md
#	simapp/app.go

* fix conflict

* fix conflict

Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-06-07 13:40:39 +02:00
mergify[bot] 008d10da40
fix: add base account getter (backport #12154) (#12161)
* fix: add base account getter (#12154)

(cherry picked from commit a39be7b78f)

# Conflicts:
#	CHANGELOG.md

* fix conflict

Co-authored-by: mmsqe <tqd0800210105@gmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-06-06 22:27:23 +02:00
mergify[bot] 057a6ca7e7
fix: cli `grants-by-grantee`, `grants-by-granter` cmds (backport #11983) (#12025)
* fix: cli `grants-by-grantee`, `grants-by-granter` cmds (#11983)

## Description

ref: #11362

---

### 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/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)

(cherry picked from commit f470d402a5)

# Conflicts:
#	CHANGELOG.md

* add alias

* conflicts

* fix

* remove unneeded files

* Update x/authz/client/cli/query.go

Co-authored-by: atheeshp <59333759+atheeshp@users.noreply.github.com>
Co-authored-by: atheesh <atheesh@vitwit.com>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
2022-05-27 11:31:40 +02:00
mergify[bot] a802a5cf9c
fix: Make rechecking a tx check the sequence number #12060 (#12062)
(cherry picked from commit 8eaff8fadd)

Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com>
2022-05-27 10:14:44 +02:00
yihuang 2921a1c3c9
fix: index ante events for failed tx (backport: #12013) (#12017) 2022-05-23 11:42:35 -04:00
mergify[bot] a72d9fa740
refactor: remove redacted message (backport #11960) (#12002) 2022-05-20 10:11:04 -04:00
mergify[bot] cf17549e41
fix: grants by granter pagination `total` (#11813) (#11828) 2022-05-12 19:34:11 -04:00
Julien Robert 8bbeba5b46
feat: add feegrant query to see allowances from a given granter (backport #10947) (#11885) 2022-05-06 10:27:38 -04:00
mergify[bot] 85bf0aaeda
refactor: improve error messages (backport #11762) (#11887)
* refactor: improve error messages (#11762)

## Description

Closes: #XXXX

---

### 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/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)

(cherry picked from commit 8f51644c0e)

# Conflicts:
#	errors/CHANGELOG.md
#	errors/abci.go

* updates

* add changelog

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-05-06 15:58:48 +02:00
mergify[bot] 162fb49bd9
fix: Bug reading password from a buffer when reader returns EOF (backport #11796) (#11810) 2022-04-27 18:24:41 -04:00
mergify[bot] ad4ad43f02
fix: decrement types.Dec max length to keep decimal bits in DecimalPrecisionBits (backport #11772) (#11805) 2022-04-27 14:16:29 -04:00
mergify[bot] c405df4567
chore: update vuepress config to reflect new default branch naming (#11769) (#11771)
(cherry picked from commit 8ef5417845)

Co-authored-by: Damian Nolan <damiannolan@gmail.com>
2022-04-26 15:13:37 +02:00
Aleksandr Bezobchuk ad9e5620fb
chore: release notes++ 2022-04-25 11:35:58 -04:00
Aleksandr Bezobchuk 77747c5c5e
updates (#11752) 2022-04-25 17:34:51 +02:00
Aleksandr Bezobchuk 6191a36a72
updates (#11750) 2022-04-25 16:51:09 +02:00
mergify[bot] e9ba141d3b
fix: data race issues with api.Server (backport #11724) (#11748) 2022-04-25 10:41:34 -04:00
Marko 3911f5251c
chore: remove unneeded swagger docs from 0.45 #11745 2022-04-25 09:29:13 -04:00
mergify[bot] 53396c8bec
fix: Added description of how to run the unsafe-reset-all command in simapp README (#11718) (#11719)
* Fix simapp README

* Revised review content

Co-authored-by: Julien Robert <julien@rbrt.fr>
(cherry picked from commit d5e0b86a07)

Co-authored-by: Takahiko Tominaga <57429437+takapi327@users.noreply.github.com>
2022-04-22 10:28:29 +02:00
mergify[bot] 13d78deb92
fix: Add validation on create gentx (backport #11693) (#11698) 2022-04-20 11:56:15 -04:00
Aleksandr Bezobchuk ffef0ba417
chore: v0.45.x bump min go version to 1.17 (#11686) 2022-04-19 14:01:10 -04:00
mergify[bot] e73b7eece0
feat: add vesting util functions (backport #11652) (#11667)
* feat: add vesting util functions (#11652)

* feat: add vesting util functions

* changelog

* revert string deletion

* fix build

* Update x/auth/vesting/types/period.go

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
(cherry picked from commit c676952278)

# Conflicts:
#	CHANGELOG.md
#	x/auth/vesting/types/period.go

* changelog

* Update x/auth/vesting/types/period.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <federico.kunze94@gmail.com>
2022-04-18 11:25:42 +02:00
mergify[bot] ac970f52be
feat: add (re)delegation getters (backport #11596) (#11615)
* feat: add (re)delegation getters (#11596)

### Description

This PR adds general helper functions to the `x/staking` module that are used in the Evmos `x/vesting` module and originated from Agoric's custom staking module implementation https://github.com/agoric-labs/cosmos-sdk/blob/4085-true-vesting/x/staking/keeper/delegation.go.

- `GetDelegatorUnbonding`
- `GetDelegatorBonded`
- `IterateDelegatorUnbondingDelegations`
- `IterateDelegatorDelegations`
- `IterateDelegatorRedelegations`

(cherry picked from commit b8270fc9ba)

# Conflicts:
#	CHANGELOG.md
#	x/staking/keeper/delegation.go

* fix RemoveDelegation method conflict

* fix CHANGELOG conflict

* add new PR in CHANGELOG

Co-authored-by: Daniel Burckhardt <daniel.m.burckhardt@gmail.com>
2022-04-13 16:34:42 +02:00
mergify[bot] 3f03714819
docs: Update mentions of Starport to Ignite CLI (backport #11612) (#11617) 2022-04-13 10:19:11 +02:00
mergify[bot] 0ef30e0198
docs: Add v0.45.x to docs versions (backport #11613) (#11623) 2022-04-13 10:18:00 +02:00
Jorge Hernandez 5ad3a36a28
check error returned from NewNode (#11624) 2022-04-13 10:17:38 +02:00
Aleksandr Bezobchuk c2fd51b4c5
chore: v0.45.3 Release Notes (#11611) 2022-04-12 12:40:01 +02:00
mergify[bot] 5f5cba2f8d
fix: address confusing error message with SetOrder* functions (#11571) (#11581) 2022-04-08 10:13:00 -04:00