Commit Graph

658 Commits

Author SHA1 Message Date
atheeshp
8f8e242e78
feat: add proto for cons pubkey rotation (#18140) 2023-10-17 12:42:16 +00:00
Facundo Medica
4caecf13bb
feat(x/feegrant): Add limits to grant pruning and enable message to aid manually (#18047) 2023-10-16 16:28:06 +00:00
GoodDaisy
dbf686e144
chore: fix typos (#18106) 2023-10-14 12:57:01 +00:00
samricotta
c325cbf004
chore: Update RequestExtendVote (#17993) 2023-10-06 15:28:21 +00:00
Likhita Polavarapu
4ab48ba94f
chore: Add back CommunityPoolSpendProposalWithDeposit (#17981) 2023-10-06 06:51:41 +00:00
Emmanuel T Odeke
0692fdc6fd
refactor: create go.mod for x/params (#17776)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-10-03 12:56:07 +00:00
Julien Robert
b478f26888
fix(simapp): do not overwrite tx options (#17920) 2023-09-29 10:03:24 +00:00
Likhita Polavarapu
9dd34510e2
feat: Move CommunityPool to its own module (#17657) 2023-09-27 09:09:04 +00:00
Julián Toledano
bb35cf17e6
refactor: deprecate eip191 signmode (#17740) 2023-09-25 09:26:30 +00:00
testinginprod
5952ecf515
feat(accounts): add Genesis handling (#17802)
Co-authored-by: unknown unknown <unknown@unknown>
2023-09-21 14:26:08 +00:00
Marko
6715b5afb5
refactor!: remove tips (#17787) 2023-09-20 12:00:22 +00:00
Marko
86ab9890b8
chore: amend validator to validators (#17809) 2023-09-19 12:34:13 +00:00
Marko
c05ff14a97
refactor(staking): change historicalinfo to contain minimal set of data (#17655)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-09-19 10:59:04 +00:00
Marko
ddcb37cbd7
chore: fix deprecation annotations (#17784) 2023-09-18 13:11:25 +00:00
Clockwork
4e46c2fac1
feat: Complete buf export (#17733) 2023-09-14 08:50:17 +00:00
Marko
81d9ce9af5
feat(x/bank): introduce msg burn to bank keeper (#17569)
Co-authored-by: likhita-809 <likhita@vitwit.com>
2023-09-08 15:59:04 +00:00
testinginprod
c60283b91a
feat(accounts): Add message server and query server logic. (#17614)
Co-authored-by: unknown unknown <unknown@unknown>
Co-authored-by: samricotta <37125168+samricotta@users.noreply.github.com>
2023-09-07 07:42:23 +00:00
Matt, Park
27210f0e62
docs: Improve docs for vote query (#17501) 2023-08-22 10:43:30 +00:00
mmsqe
1bd37053e0
feat: add core and api for PreBlock (#17468) 2023-08-20 17:05:44 +00:00
testinginprod
46bab63d8c
feat(accounts): init accounts module (#17443)
Co-authored-by: unknown unknown <unknown@unknown>
Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-08-19 08:36:45 +00:00
Marko
066f8a7a50
chore: format proto files (#17445)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2023-08-18 14:06:01 +00:00
Matt, Park
c2958326e1
feat(bank): Add secondary query for bank metadata (#16852) 2023-07-27 22:23:09 +00:00
Marko
c23505b037
refactor(staking): use validator & address codecs in staking (#16958) 2023-07-19 11:01:32 +00:00
Julien Robert
1236c52987
feat(api): add autocli options to enhance custom commands (#17033) 2023-07-18 04:11:49 +00:00
Julien Robert
7ed04f71b4
chore: replace amino cosmos_dec_bytes annoation by scalar cosmos.Dec and add missing annotations (#17000) 2023-07-14 18:10:28 +00:00
Ahmet Ömer Kayabaşı
80e3c7a77c
feat(gov): Add proposal failed reason (#16976)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-07-13 17:49:42 +00:00
Robert Zaremba
bc4ccab74b
refactor(types)!: remove IntProto and DecProto (#16918)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-07-12 22:16:28 +00:00
Julien Robert
74c351e2fd
feat(api): add consensus bech32 prefix in app config (#16945) 2023-07-12 17:37:27 +00:00
Likhita Polavarapu
60bbbb8404
chore: x/circuit audit changes (#16901) 2023-07-12 12:30:05 +00:00
Likhita Polavarapu
7017490830
chore: x/gov Audit changes (#16822) 2023-07-05 14:06:37 +00:00
atheeshp
9b237c7189
chore(x/staking): audit changes (#16795)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-07-03 07:14:17 +00:00
Julien Robert
8c72f66396
refactor!: remove types/math aliases (#16798) 2023-06-30 17:09:03 +00:00
Julien Robert
02b7607768
feat(auth,client/v2): add validator address codec (#16768) 2023-06-30 09:44:28 +00:00
Julien Robert
620db732ba
feat(api): add validator bech32 config in auth (#16778) 2023-06-29 21:30:50 +00:00
Facundo Medica
6d7b64e718
fix(x/consensus): Add missing ABCI consensus param in MsgUpdateParams (#16713)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-06-28 19:32:08 +00:00
Likhita Polavarapu
7c8236d2ed
refactor: x/bank audit changes (#16690) 2023-06-27 13:52:23 +00:00
Likhita Polavarapu
1c091aab0b
refactor: x/consensus audit changes (#16695) 2023-06-27 12:01:35 +00:00
atheeshp
d0b42dc829
chore: x/feegrant audit changes (#16652) 2023-06-23 07:48:51 +00:00
Likhita Polavarapu
8d47088f5b
refactor: authz audit changes (#16631) 2023-06-22 06:12:26 +00:00
Jeancarlo Barrios
e078f1a49e
feat(client): add positional optional to client v2 (#16316)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-06-20 04:01:19 +00:00
Julien Robert
6453234073
build: optimize proto-builder (#16343) 2023-05-31 07:33:26 +00:00
Matt Kocubinski
737dcfd1a2
refactor!: rm GetSignBytes (#16062) 2023-05-30 19:34:35 +00:00
Jeancarlo Barrios
be2003e581
feat(group): add group event tally result (#16191)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-05-26 09:43:17 +00:00
Julien Robert
cf1a573679
chore: set correct eden version number (#16281) 2023-05-24 19:58:45 +00:00
Aleksandr Bezobchuk
6cee22df52
feat!: Comet v0.38 Integration (#15519)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: cool-developer <51834436+cool-develope@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-05-24 16:09:19 +00:00
Julien Robert
2c702e6563
feat(gov,group): improve metadata checks and add docs (#16235) 2023-05-22 11:54:42 +00:00
Marko
b8e15a7930
feat: module circuit breaker (#14521)
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Sam Ricotta <samanthalricotta@gmail.com>
Co-authored-by: samricotta <37125168+samricotta@users.noreply.github.com>
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2023-05-15 14:38:48 +00:00
bjwswang
908677e648
chore: fix typo in staking's genesis proto (#16095)
Signed-off-by: bjwswang <bjwswang@gmail.com>
2023-05-11 09:03:35 +00:00
Julien Robert
ebcad58468
fix(autocli): fix simapp enhancing (#15906) 2023-04-25 14:08:02 +00:00
Julien Robert
3030cc4c14
build: enable orm proto gen in proto-builder (#15922) 2023-04-24 12:45:17 +00:00
Bryce Neal
93d64cc6fe
feat: Add PrepareCheckState and Precommit callbacks (#14860)
Co-authored-by: dydxwill <119354122+dydxwill@users.noreply.github.com>
2023-04-23 16:04:36 +00:00
Aaron Craelius
654f26e55c
fix!: correctly annotate validator and consensus address fields (#15710) 2023-04-20 16:55:13 +00:00
Julien Robert
58f3a4a237
chore(orm)!: rename orm package to use a vanity url (#15870) 2023-04-18 16:58:32 +00:00
Marko
9e4fbb6db1
feat!: add node status endpoint (#15597)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2023-04-13 13:42:52 +00:00
Julien Robert
ee53930fc1
refactor(distribution): move ValidateBasic logic to msgServer (#15755) 2023-04-11 08:11:52 +00:00
Aleksandr Bezobchuk
4684c854d4
refactor!: x/slashing missed block window (#15580) 2023-04-10 16:58:41 +00:00
Marko
67c1c788b2
chore: add circuit proto definitions (#15722) 2023-04-07 07:53:22 +00:00
Julien Robert
d9e04c56c6
revert(consensus): revert proto breaking change (#15627) 2023-03-30 17:59:14 +02:00
Marko
51f3e70a12
style: more linting (#15618) 2023-03-30 13:00:18 +00:00
Marko
a5ad307ae6
refactor: migrate consensus to collections (#15553) 2023-03-28 20:41:12 +00:00
Aleksandr Bezobchuk
ee9774af27
feat: auto-set block timestamp for historical queries (#15448) 2023-03-28 15:10:26 +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
Julien Robert
c254d0c608
docs: update buf tag (#15416) 2023-03-16 09:51:55 +01:00
Ergels Gaxhaj
6f3f2c9b16
refactor!: ADR-038 go-plugin system (#14207)
Co-authored-by: HuangYi <huang@crypto.com>
Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
2023-03-14 18:09:30 +00:00
Federico Kunze Küllmer
e90271aca2
feat: add MsgCancelUnbondingDelegation to Staking Authorization (#15164)
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-03-13 22:28:20 +00:00
Marko
ccdd07ff7d
refactor: remove capability module (#15344) 2023-03-10 12:59:10 +00:00
Aaron Craelius
2928fa4e1c
docs: add ADR 054 semver compatible SDK modules (#11802)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Robert Zaremba <robert@zaremba.ch>
2023-03-08 11:25:45 -05:00
Julien Robert
de16912e39
chore: improve UGPRADING.md (#15236)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-03-02 11:43:19 +01:00
Chi Xiao Wen
a49151d693
refactor: remove bytes/HexBytes (#15211)
Co-authored-by: chixiaowen <chixiaowen@zhigui.com>
2023-03-01 18:27:23 +00:00
Julien Robert
2f4654e40c
chore: clean-up of #15151 (#15219) 2023-03-01 11:07:07 +00:00
Marko
44495e7a79
refactor: add burnable params to governance (#15151) 2023-02-28 20:44:46 +00:00
Aleksandr Bezobchuk
41690532be
refactor: Refactor TxSearch (#14758)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-02-24 16:08:53 +00:00
Julien Robert
7d28f63291
docs: set proper v0.47.x buf commit (#15142) 2023-02-23 22:17:58 +01:00
samricotta
eb98685508
feat: constitution (#15125) 2023-02-22 18:41:59 +01:00
Julien Robert
832517befc
feat: add application genesis (#15031) 2023-02-22 10:29:03 +00:00
Julien Robert
27f3c729a3
build(deps): bump to tagged version of CometBFT (#15118) 2023-02-21 23:35:56 +01:00
Matt Kocubinski
407c7572b9
feat: api updates required for aminojson encoder (#15019) 2023-02-15 20:15:31 -07:00
cipherZ
86eca4c72b
feat: Integrate tendermint Block endpoints into the cli (#14659)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-02-14 19:23:45 +01:00
Jeancarlo Barrios
3c5387048f
fix: remove support for NoOptDefaultValue (#14985) 2023-02-09 16:13:14 -05:00
Aaron Craelius
dc20731bdd
fix(orm)!: timestamp encoding doesn't handle nil values properly (#12273)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-02-09 12:25:04 -05:00
Julien Robert
c17c3caab8
refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
Murali Krishna Komatireddy
ffde2b99da
feat: resolve IBC hash to human readable denom (#14894)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-02-06 11:48:29 +00:00
Julien Robert
6978710699
refactor: migrate store and api to CometBFT (#14899) 2023-02-04 14:53:15 +01:00
atheeshp
a2797c8cd4
feat: add query groups in x/group (#14879)
Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>
2023-02-03 10:00:46 +00:00
Julien Robert
4251905d56
feat!: upstream expedited proposals (#14720) 2023-02-03 00:25:28 +01:00
Aaron Craelius
62496d4ac3
feat(orm): support orm appconfig module (#14824) 2023-01-31 09:44:11 +00:00
Likhita Polavarapu
6cf07f881f
refactor: x/upgrade to standalone module (#14764) 2023-01-27 15:08:21 +01:00
Aaron Craelius
de466b9f8b
refactor(orm)!: support core store API (#14796) 2023-01-27 08:50:16 +01:00
atheeshp
cc10614146
refactor: x/feegrant to stand alone (#14649)
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>
2023-01-25 16:39:54 +00: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
Likhita Polavarapu
09e3e55e24
refactor: make x/evidence a standalone module (#14724) 2023-01-24 10:01:26 +01:00
Julien Robert
6b029a6bc1
refactor: rename nft to cosmosssdk.io/x/nft (#14725)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-01-23 11:48:34 +00:00
Murali Krishna Komatireddy
e3b37dc562
fix: return undelegate amount with MsgUndelegateResponse (#14590)
Closes https://github.com/cosmos/cosmos-sdk/issues/14153
2023-01-23 10:08:32 +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
Julien Robert
c8f2f1d594
docs: set buf commit for v0.47.x (#14675) 2023-01-20 12:43:53 +00:00
Amaury
40f7e5dc64
feat: Add Textual SignModeHandler (#14650)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-01-18 09:56:17 +00:00
Murali Krishna Komatireddy
7b8ab8ec77
fix: remove delegator addess from MsgCreateValidator (#14567)
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: samricotta <37125168+samricotta@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Noel Ukwa <noeluchechukwu@gmail.com>
Co-authored-by: JayT106 <JayT106@users.noreply.github.com>
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
Co-authored-by: Julián Toledano <JulianToledano@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>
Co-authored-by: atheeshp <59333759+atheeshp@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Denver <aeharvlee@gmail.com>
Co-authored-by: Hyunwoo Lee <denver@Hyunwoos-MacBook-Pro-2.local>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-01-17 11:48:40 +05:30
Julien Robert
ae1c29b8f8
chore: rename snapshot proto package (#14597) 2023-01-16 12:14:54 +00:00
Aaron Craelius
248f8bd488
test(x/circuit): add MsgAuthorizeCircuitBreaker feature (#14512)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-01-12 19:14:11 +00:00
Amaury
305053136a
refactor: Improve textual's API (#14595) 2023-01-12 16:00:55 +00:00
Julien Robert
e4c0788bf2
docs: update docs links to v0.47 (#14572) 2023-01-12 11:57:53 +00:00
Julien Robert
ecdedf5db4
docs: improve documentation about authority in protos (#14531) 2023-01-09 08:18:13 +00:00
Marko
6f3380d40b
feat: add spec for circuit module (#14481)
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-01-06 14:54:01 +00:00
Robert Zaremba
512953cd68
docs(proto): specify time type in vesting proto (#14513)
## Description

Updates documentation to specify time type for vesting accounts.

Context: I've been creating new vesting accounts and had to go back reading code make sure about the exact type of the end / start time.

---

### 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-01-05 22:37:59 +00:00
Facundo Medica
6ac0c3628e
feat: (x/bank) add spendable balances cmd (#14045) 2023-01-05 19:58:41 +00:00
Marko
7b1233327c
refactor: add title and summary to groups proposal (#14465) 2023-01-04 20:01:31 +00:00
Amaury
b244ffb4dd
chore: Clean up {accept,implement}_interface (#14476) 2023-01-04 14:23:24 +00:00
Marko
1f51b2ecf6
refactor: move crisis v1 to circuit (#14466) 2023-01-03 12:39:09 +01:00
Julien Robert
bca18ba2ea
fix(distribution): correct default for deprecated distribution params (#14462) 2023-01-02 17:54:49 +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
7cc1c351d2
refactor: x/group audit changes (#14278) 2022-12-24 00:13:54 +01:00
Aleksandr Bezobchuk
11f1e8d74c
feat!: deposit to validator rewards pool (#14322) 2022-12-20 15:49:18 +00:00
Daniel Pittman
eb61146c5e
fix: typo in distribution module query.proto (#14336) 2022-12-16 02:24:13 +00:00
Aaron Craelius
2410b846e3
feat: add circuit breaker proto API (#14229)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
2022-12-14 16:30:20 +00:00
Julien Robert
a4d885fe2a
feat(api): add order_migrations argument in runtime.Module config (#14213) 2022-12-08 19:58:56 +00:00
Likhita Polavarapu
bd59987df1
refactor: x/upgrade audit changes (#14188) 2022-12-08 13:02:49 +01:00
Marko
f3be41836f
refactor: remove store kv dependency (#14144) 2022-12-07 20:57:47 +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
Amaury
a1dc6d9998
chore(consensus): Add grpc proto comments and cleanups (#14156)
* chore(consensus): Add grpc proto comments

* refactor: x/consensus audit changes (#14110)

* refactor: x/consensus audit changes

Co-authored-by: Jeancarlo Barrios <JeancarloBarrios@users.noreply.github.com>
2022-12-06 09:40:17 +00:00
yihuang
1f91ee2ee9
fix: state listener observe writes at wrong time (#13516)
* fix: state listener observe writes at wrong time

Closes: #13457

Currently state listener is notified when the cache store write, which happens in commit event only, which breaks the current design.
The solution (as discussed in the issue) is to listen state writes on rootmulti store only.

It also changes the file streamer to output single data file for the writes in the whole block, since we can't distinguish writes from different stage of abci events.

It adds new config items for file streamer:
- streamers.file.output-metadata
- streamers.file.stop-node-on-error
- streamers.file.fsync

* synchronous abci call, and format doc

* fix comment

* update file streamer readme and fix typos

* typo

* fix: state listener observe writes at wrong time

Closes: #13457

Currently state listener is notified when the cache store write, which happens in commit event only, which breaks the current design.
The solution (as discussed in the issue) is to listen state writes on rootmulti store only.

It also changes the file streamer to output single data file for the writes in the whole block, since we can't distinguish writes from different stage of abci events.

It adds new config items for file streamer:
- streamers.file.output-metadata
- streamers.file.stop-node-on-error
- streamers.file.fsync

synchronous abci call, and format doc

fix comment

update file streamer readme and fix typos

typo

* improve UX of file streamer, make it immediately usable after enabled

- set default value to write_dir.
- make write_dir based on home directory by default.
- auto-create the directory if not exists.

* get homePage from opts

Co-authored-by: Marko <marbar3778@yahoo.com>
2022-12-02 15:43:21 +01:00
Likhita Polavarapu
37a9bc3bb6
refactor: x/evidence audit changes (#14092)
## Description

ref: #14063 



---

### 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)
2022-12-01 08:39:10 +00:00
Likhita Polavarapu
ac6b19df21
refactor: x/nft audit changes (#14055)
## Description

ref: #13991 



---

### 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)
2022-11-30 07:23:30 +00:00
Marko
2e3d38f01c
refactor: move snapshotstore under store (#14048)
* Move snapshotstore under store

* add changelog entry

* fix build

* move snapshot proto package

* make proto-gen

* Update CHANGELOG.md

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

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2022-11-29 23:40:14 +00:00
Julien Robert
a1b09a0481
refactor: remove gogoproto stringer annotations (#14046) 2022-11-29 13:34:03 +00:00
Julien Robert
41f0ab15e6
refactor: remove gogoproto stringer annotations and MarshalYAML functions (#13850) 2022-11-28 12:56:00 +00:00
Julien Robert
6f329d70c6
docs: add docs about x/auth/tx (#14021)
* docs: add docs about `x/auth/tx`

* updates

* updates

* updates

* updates

* updates

* updates

* updates

Co-authored-by: Marko <marbar3778@yahoo.com>
2022-11-27 20:30:23 +00:00
Facundo Medica
16c772d900
docs: (x/distribution) Fix docs for v0.47 (#14022) 2022-11-25 14:14:37 +00:00
Likhita Polavarapu
a19eead691
refactor: x/crisis audit changes (#13990)
* wip: nits

* add tests for VerifyInvariant and increase codecov for keeper

* add genesis test

* cover all keeper code in tests

Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-11-24 14:53:22 +00:00
Likhita Polavarapu
e260fc1c89
feat: Add tx encode and decode endpoints for amino txs (#13882)
* add proto changes

* make proto-gen

* wip: adds tests

* wip: tests

* remove consoles

* wip: fix something

* fix: encode amino tests

* add decode amino tests

* wip: address requested changes

* update proto inline docs

* address review comments

Co-authored-by: Amaury M <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: atheeshp <59333759+atheeshp@users.noreply.github.com>
2022-11-24 13:41:03 +00:00
Julien Robert
d6da7037b6
fix(group): migrate group policy account to base accounts with credentials (#13742) 2022-11-21 22:46:48 +00:00
Amaury
f124cb71ae
refactor: x/consensus audit changes (#13949) 2022-11-21 16:17:40 +01:00
atheeshp
42597ee593
chore: added new field account-id with uint64 in AccountAddressByID (#13780)
* add changes

* Update CHANGELOG.md

* Update CHANGELOG.md

* review changes

* add test

* fix static check

* fix lint

* fix lint

* fix lint

* review changes

* review changes

* review changes

* review changes

* fix tests

* Update CHANGELOG.md

Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>

* Update CHANGELOG.md

Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>

* Update proto/cosmos/auth/v1beta1/query.proto

Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>

* review changes

* lint

* review changes

Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>
2022-11-21 11:50:10 +00:00
Likhita Polavarapu
bcff22a376
feat: Add tx encode and decode endpoints (#13789)
* add grpc endpoint for encoding proto tx's
2022-11-15 04:55:27 +00:00
Julien Robert
d9bc5acac8
fix: .String() panics when pubkey is set on a BaseAccount (#13838) 2022-11-14 14:56:18 +00:00
Julien Robert
76be73022a
fix: fix proto files created as super-user (#13801)
* chore: bump proto-builder

* updates

* fix root issue

Co-authored-by: Marko <marbar3778@yahoo.com>
2022-11-09 10:37:07 +00:00
Amaury
b49f948b36
feat: Add proto annotations for Amino JSON (#13501)
* add legacy_amino_name

* make-proto-gen

* remove useless omitempty

* add annotations

* Add proto annotations

* Add more annotations

* update cosmos-proto

* Add message scalar?

* Add comments

* Fix comment

* lint proto files

* proto-gen

* go mod tidy

* Add multisig encoding

* Add field name

* Format proto

* proto-gen

* Update proto/cosmos/msg/v1/msg.proto

Co-authored-by: Aaron Craelius <aaron@regen.network>

* Add dont_omitempty whenever we have nullable=false

* proto-gen

* Remove problematic annotations

* put legacy_amino in subpackage

* proto-gen

* Fixes

* legacy_amino.v1

* add non-working proto

* Generate in separate package

* Remove `cosmos.msg` prefix

* make proto-gen

* remove v1 too

* make proto-format

* Add field option

* format

* proto-gen

* Use underscores

* update legacy_amino -> amino

* update to `key_field`

* make proto-format

* make proto-gen

Co-authored-by: Aaron Craelius <aaron@regen.network>
2022-11-07 22:51:51 +00:00
Likhita Polavarapu
2bb114acec
fix: Evidence API does not decode the hash properly (#13740)
## Description

Closes: #13444 

This PR fixes the x/evidence api query which is not decoding the evidence hash properly because of its type ([]byte). We fix it with the following steps:
1. Adds a new proto field `hash` of type `string`
2. Make the old `evidence_hash` field deprecated
3. Updates query handler 

---

### 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)
2022-11-04 10:08:44 +00:00
Julien Robert
0a8b037e78
feat(api): add authority as module parameter (#13712) 2022-10-31 18:51:43 +00:00
Marko
348734a137
chore: proto format (#13685) 2022-10-28 17:40:48 +02:00
Aaron Craelius
2d606d4ba2
refactor!: simplify cosmos.reflection.v1 (#13668)
* refactor!: simplify cosmos.reflection.v1

* codegen
2022-10-26 17:36:24 +00:00
atheeshp
3c238ebc1d
chore: remove module_query_safe for few auth queries (#13642) 2022-10-25 12:49:44 +02:00
Aaron Craelius
a1b8ec2a2c
feat: add autocli service proto (#13597)
* feat: add autocli service proto

* protogen

* protogen

* move to cosmos.reflection.v1

* docs

* proto gen

* proto lint

* Update proto/cosmos/autocli/v1/service.proto

Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>

* address review comments

Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
2022-10-25 09:17:30 +00:00
Julien Robert
209797f3be
chore: make format, make proto-update-deps, add 0.45.10 in changelog (#13623) 2022-10-24 15:23:12 +02:00
Sai Kumar
ddf5cf0d8d
feat(cli): add module-account cli cmd and grpc get api (#13612) 2022-10-22 18:23:24 +00:00
Amaury
1f10efe621
refactor: Remove useless gogoproto jsontag (#13581) 2022-10-18 10:28:17 +00:00
Aleksandr Bezobchuk
c60c55616d
feat: gRPC query for operator and chain configuration (#13485) 2022-10-10 19:12:00 +00:00
Marko
84675a6bf1
feat!: IS rebase (#13122)
* feat: IS rebase (squash da53124..b45dd5f)

* clean up docs

* fix: fix IS tests (#13420)

* revert key update

* add hook error handling

* impl feedback

* add changelog

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

* more nits

* fix tests
Co-authored-by: Simon <sainoe@users.noreply.github.com>

* add godoc

* add godoc

Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-10-09 12:21:20 +02:00
Julien Robert
74ce07eb26
docs: improve documentation navigation and redirection (#13455) 2022-10-06 15:51:10 +02:00
Amaury
ff39d243d4
refactor: Improve x/bank deterministic tests (#13450)
* refactor: Improve x/bank deterministic tests

* typo

* Less changes

* Rename var

* Fix SpendableBalances

* Fix pagination tests

* Fix TestGRPCQueryTotalSupply

* Remove explicit SetupTest()

* Fix TestGRPCSendEnabled

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2022-10-06 12:05:56 +00:00