Commit Graph

74 Commits

Author SHA1 Message Date
son trinh
0c10dd0cc1
refactor(x/gov): Audit gov changes (#21454) 2024-09-05 17:15:01 +00:00
Julien Robert
6276b015bb
chore: fix all lint issue since golangci-lint bump (#21326) 2024-08-16 13:03:24 +00:00
Julien Robert
7a87f2bb15
refactor(x/gov): set environment in context for legacy proposals (#20521) 2024-06-03 09:33:40 +00:00
Aaron Craelius
53925ef5fd
refactor!: turn MsgsV2 into ReflectMessages to make it less confusing (#19839)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: sontrinh16 <trinhleson2000@gmail.com>
Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-05-16 09:55:08 +00:00
Julien Robert
f02a124667
refactor(runtime,core): split router service (#20401) 2024-05-16 08:04:40 +00:00
Hoa Nguyen
19e4884d5a
chore(x/gov): reduce allocations (#20207) 2024-04-30 00:59:27 +00:00
Julien Robert
5e7aae0db1
refactor(core,x/**): simplify core service api and embed environment in keepers (#20071) 2024-04-17 18:18:16 +00:00
Julián Toledano
6972e006be
refactor(x/feegrant): remove Address.String() (#19886)
Co-authored-by: son trinh <trinhleson2000@gmail.com>
2024-03-27 21:12:52 +00:00
Julián Toledano
160c41842e
refactor(x/gov)!: remove Accounts.String() (#19850)
Co-authored-by: son trinh <trinhleson2000@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-03-26 10:29:47 +00:00
Kien
d1c3547d8e
feat(x/gov): emit depositor in proposal_deposit event (#19853) 2024-03-25 15:55:39 +00:00
Aryan Tikarya
45994391ae
feat(x/gov): emit proposer address in submit proposal event (#19842) 2024-03-24 09:53:51 +00:00
Cosmos SDK
d37871af50
chore: fix spelling errors (#19649)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
2024-03-05 12:58:02 +00:00
samricotta
afcb62bd9f
refactor(x/gov)!: migrate to use env var (#19481)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-03-05 06:01:37 +00:00
Julien Robert
69f03cd17f
feat(x/gov): add custom fuction to calculate vote results and vp (#19592) 2024-03-01 17:24:16 +00:00
Julien Robert
e4fabebfc5
refactor(gov): simplify state management (#19349) 2024-02-09 11:22:29 +00:00
Julien Robert
7e4d12209b
feat(x/gov): message based proposal params (#19101) 2024-01-30 09:21:37 +00:00
Julien Robert
41c84d6190
feat(x/gov): multiple choice proposals (#18762) 2024-01-08 11:55:37 +00:00
lilas
14037aef00
refactor(x/gov): reduce "if block" indentation (#18918) 2023-12-30 11:28:11 +00:00
Julien Robert
e1e8c46c21
feat(x/gov): add max cancel voting period param (#18856) 2023-12-28 10:37:27 +00:00
Julien Robert
eb3ea8db8a
feat(x/gov): optimistic proposals (#18620)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2023-12-20 21:49:03 +00:00
Julien Robert
8b894f73b1
feat(gov): add proposal types and spam votes (#18532) 2023-12-11 11:41:06 +00:00
Julien Robert
3853e7ff70
ci: optimize linter script (#18480) 2023-11-16 12:57:32 +00:00
emidev98
89296ccdd3
feat(x/gov): extend governance config (#18428) 2023-11-10 15:17:56 +00:00
Geoff Lee
661d201d6b
remove unncessary comma from value of proposal_messages event (#18300) 2023-10-30 09:26:22 +00:00
Marko
388ff4fc7e
refactor: move gov into own go.mod (#18197) 2023-10-23 14:17:04 +00:00
Julien Robert
4121869cb7
refactor(x/gov)!: let hooks return an error (#18173) 2023-10-19 12:59:10 +00:00
Marko
6615ff4f76
refactor!: deprecate blocktime on context (#17738) 2023-09-18 13:55:21 +00:00
Julien Robert
5442197d6b
chore: cherry-pick some inj changes (#17109) 2023-07-24 13:07:06 +00:00
Jacob Gadikian
6afece635c
style: add gci linter (#16605) 2023-06-22 15:35:51 +00:00
testinginprod
b62a28aac0
refactor(gov)!: finalize collections migration (#16268)
Co-authored-by: unknown unknown <unknown@unknown>
2023-05-26 09:49:12 +00:00
Aaron Craelius
82659a7477
refactor!: deprecate sdk.Msg.GetSigners (#15284)
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
2023-05-25 18:35:09 +00:00
testinginprod
91d14c04ac
refactor(gov)!: use collections for Proposal state management (part 1) (#16171)
Co-authored-by: unknown unknown <unknown@unknown>
2023-05-16 09:55:08 +00:00
testinginprod
deba79d7aa
refactor(gov)!: use collections for Vote state management. (#16164)
Co-authored-by: unknown unknown <unknown@unknown>
2023-05-16 03:42:03 +00:00
testinginprod
71468d2d5a
refactor(gov)!: use collections for deposit state management (#16127)
Co-authored-by: unknown unknown <unknown@unknown>
2023-05-15 15:58:56 +00:00
testinginprod
f7418c6db2
refactor(gov)!: use collections for constitution and params state (#16118)
Co-authored-by: unknown unknown <unknown@unknown>
2023-05-12 08:15:37 +00:00
Facundo Medica
4f00acfc24
refactor(x/gov)!: Use KVStoreService, context.Context, return errors, better iterators (#15988)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-05-05 10:13:56 +00:00
Julien Robert
df161c214c
feat: optional validate basic (#15735) 2023-04-07 13:13:15 +00:00
Facundo Medica
90c9c9a9eb
fix: delete VotingPeriodProposalKey when deleting proposal (#15356) 2023-03-10 22:55:34 +00:00
Facundo Medica
4a6a1e3cb8
refactor: fix lint issues + gofumpt (#15062) 2023-02-19 10:31:49 +00:00
Julien Robert
4251905d56
feat!: upstream expedited proposals (#14720) 2023-02-03 00:25:28 +01:00
Julien Robert
2b64d74e5f
chore(gov): move args in gov new proposal constructor (#14782) 2023-01-25 18:34:51 +01:00
Likhita Polavarapu
7559d9ecd3
refactor: create go.mod for store (#14746)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-01-25 13:31:56 +00:00
Sai Kumar
a4cf8e8c6f
feat(cli): cancel gov proposal by proposer before voting period ends (#13010)
Co-authored-by: Anil Kumar Kammari <anil@vitwit.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Robert Zaremba <robert@zaremba.ch>
Co-authored-by: Marko <marbar3778@yahoo.com>
Closes https://github.com/cosmos/cosmos-sdk/issues/11554
2023-01-20 13:07:09 +00:00
Noel Ukwa
c822836501
refactor: migrate calls from alias file to appropriate store/types (#14455)
Co-authored-by: Marko <marbar3778@yahoo.com>
Closes https://github.com/cosmos/cosmos-sdk/issues/14406
2023-01-10 15:31:06 +00:00
Marko
7b1233327c
refactor: add title and summary to groups proposal (#14465) 2023-01-04 20:01:31 +00:00
Marko
08361d5ff8
refactor: add title, summary and proposer to proposal struct of gov (#14390) 2022-12-26 23:24:08 +00:00
Likhita Polavarapu
f1062c7f2c
refactor: x/gov audit changes (#14174)
* make proto changes

* wip

* wip

* wip

* `make lint-fix`

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-12-07 00:51:34 +00:00
Facundo Medica
91ca57bcef
feat!: (x/gov) store an index of proposals that are in voting period (#13576)
* (x/gov) feat: move parts of Proposal into separate storages

* fix some

* fix others

* fix unit tests

* fix unit tests

* fix conflicts

* progress

* do not overwrite messages

* remove change

* simplify methods

* static data

* fix tests

* fix tests

* fix tests

* rollback some changes

* rollback some changes

* progress

* progress

* progress

* progress

* progress

* progress

* add delete

* fix tests

* use SetProposalWithoutContents whenever possible

* add migrations

* fix godoc

* gofumpt

* add changelog

* rolling back changes

* rolling back changes

* progress

* progress

* progress

* progress

* fix tests

* fix cl

* fix cl

* fix

* fix test error

* add store key in readme

* add store key in readme
2022-10-26 14:52:00 +00:00
Julien Robert
53519ea5b3
refactor: simplify hooks implementation (#13396) 2022-09-27 20:37:26 +02:00
Daniel Wedul
20b947e990
fix(x/gov): Return ErrInvalidProposalContent in SubmitProposal when legacy handler returns an error. (#13051)
* [13030]: When a legacy gov proposal fails it's handler check, wrap the error in a ErrInvalidProposalContent (instead of ErrNoProposalHandlerExists).

* [13030]: Add changelog entry.

* [13030]: If the error is already a ErrNoProposalHandlerExists, just return it. Otherwise, wrap it as a ErrInvalidProposalContent.

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2022-08-26 13:29:58 -04:00