Commit Graph

83 Commits

Author SHA1 Message Date
yukionfire
d6ad92db0f
chore(all): replace all fmt.Errorf without paramters with errors.New (#21068) 2024-07-25 14:54:49 +02:00
beer-1
3395906d1c
fix: include pagination.key at reverse mode (#20939) 2024-07-15 11:39:20 +00:00
Lucas Francisco López
2c3fd19099
docs: Enhanced the ParsePagination method documentation (#20385) 2024-05-16 08:11:30 +00:00
Marko
43764cff30
chore: consensus spinout (#20010) 2024-05-03 14:08:17 +00:00
Duong Minh Ngoc
7ee3bde8f3
refactor(proto): add denote version annotation (#20098)
Co-authored-by: Tuan Tran <tuantran@notional.ventures>
Co-authored-by: Khanh Hoa <hoa@notional.ventures>
Co-authored-by: kienn6034 <kien@notional.ventures>
2024-04-26 10:14:09 +00:00
ipangpang
1bd4351241
style: remove redundant import alias (#20109)
Signed-off-by: ipangpang <arronipangpang@gmail.com>
2024-04-21 19:03:43 +00:00
son trinh
a0d727eebc
refactor(x/auth): auth module can recognize x/accounts account (#20002) 2024-04-11 09:56:37 +00:00
Julián Toledano
c7534584dd
refactor(x/bank)!: remove Address.String() (#19954)
Co-authored-by: Marko <marko@baricevic.me>
2024-04-05 13:09:45 +00:00
Marko
6db53cafcb
chore(sdk): remove modules as a dependency (1/n) (#19003) 2024-01-11 07:55:50 +00:00
Emmanuel T Odeke
05261cc46e
refactor(x/auth): spin out go.mod (#18351) 2023-11-07 11:42:58 +00:00
Marko
21e69bad04
refactor(bank): add go module (#18279) 2023-10-27 09:25:04 +00:00
Marko
65a1ec64f7
chore: remove params module entirely (#17838) 2023-09-22 13:51:37 +00:00
Facundo Medica
60605de779
refactor(x/distribution)!: migrate to collections (#17115)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-07-31 08:41:22 +00:00
testinginprod
9e098ca9e6
fix(query): filtered collections pagination (#16905)
Co-authored-by: atheesh <atheesh@vitwit.com>
Co-authored-by: unknown unknown <unknown@unknown>
2023-07-13 15:44:51 +00:00
Jacob Gadikian
6afece635c
style: add gci linter (#16605) 2023-06-22 15:35:51 +00:00
Marko
5097b0c226
refactor(test): remove header dependence from tests (#16342)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-05-31 15:42:23 +00:00
Dev Ojha
660e906eb8
refactor: Start DRY'ing filtered paginate code (#16099)
Co-authored-by: testinginprod <98415576+testinginprod@users.noreply.github.com>
2023-05-15 19:40:58 +00:00
Marko
06c1a2f3c7
chore: make max limit a variable (#16041) 2023-05-07 10:40:17 +00:00
Facundo Medica
6dfe7351a5
refactor!: use KVStoreService and context.Context in x/bank (#15891) 2023-04-26 10:12:47 +00:00
Facundo Medica
af3122aa6c
feat!: Provide logger through depinject (#15818)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-04-24 09:42:55 +00:00
Marko
37032fb948
chore: linting (#15813) 2023-04-12 12:36:42 +00:00
testinginprod
7ab0dfc494
refactor(bank): move bank balances to use collections (#15327) 2023-04-11 13:06:04 +00:00
Marko
51f3e70a12
style: more linting (#15618) 2023-03-30 13:00:18 +00:00
Jacob Gadikian
37ba88872d
style: enable strict gofumpt (#15579) 2023-03-28 18:59:21 +00:00
testinginprod
2b7a1102ed
refactor(bank): use collections for state management (#15293)
Co-authored-by: testinginprod <testinginprod@somewhere.idk>
2023-03-09 11:36:39 +00:00
testinginprod
a9a9482c86
refactor(collections): move codecs to separate package and add int keys. (#15001) 2023-02-19 13:06:53 +00:00
Julien Robert
80dd55f79b
refactor: rename to CometBFT (#14914) 2023-02-06 18:11:14 +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
41a3dfeced
refactor!: migrate Cosmos SDK to CometBFT (#14897) 2023-02-05 14:51:33 +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
Marko
e8f0cb1b02
chore: update core and store interfaces (#14712) 2023-01-23 22:50:27 +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
testinginprod
f771f20da4
feat(collections): implement pagination (#14468)
Co-authored-by: testinginprod <testinginprod@somewhere.idk>
2023-01-06 11:08:31 +00:00
Jacob Gadikian
1bb0629846
chore: iavl-v0.20-alpha1 and cosmos-db (#14411)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2022-12-28 21:42:00 +01:00
Jacob Gadikian
be8c5a09c2
chore: lint tests (#14268) 2022-12-18 23:48:31 +00:00
Marko
682b72c157
chore: types audit (#14258) 2022-12-12 10:47:42 -05:00
Emmanuel T Odeke
611265af76
test: types/query: add fuzzer for Paginate (#14239) 2022-12-10 14:59:05 +00:00
Marko
755c99ac44
refactor: use proto.Message instead of ProtoMarshler (#14208) 2022-12-08 19:38:38 +00:00
Marko
306a9a7170
feat!: consensus module (#12905) 2022-10-05 18:06:24 +00:00
Julien Robert
79f277c111
fix: fix buf commit link (#13345) 2022-09-20 21:21:45 +02:00
Julien Robert
6d0ef15b0a
refactor: migrate to cosmos/gogoproto (#13070) 2022-09-08 17:27:48 +00:00
Amaury
279f3f17a5
feat: Add proto annotation for deterministic queries (#13174)
* feat: Add proto annotation for deterministic queries

* Add comment

* Tweak comment

* protocgen

* Add gas
2022-09-08 13:33:40 +00:00
Marko
1ad3b29560
chore: proto image migrate to ghcr (#13168) 2022-09-07 12:03:00 +00:00
Jacob Gadikian
5decd22cd3
chore: use math.Int instead of math.Int and apply linting (#12702)
* linting round

* fix changelog

* revert docs changes

* Update CHANGELOG.md

* revert an accidental change to security.md

* Update simapp/integration/client/grpc/tmservice/service_test.go

Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-07-26 00:24:47 +02:00
Matt Kocubinski
5e1ff06821
refactor: remove simapp from client/server tests (#12676) 2022-07-21 22:01:23 +02:00
Matt Kocubinski
9c90f980d2
refactor(types): remove dependency on simapp in integration test (#12587)
## Description

Closes: #12584

- refactored tests to use a test suite initialized by `depinject`
- dependency on `simapp` replaced by 3 dependencies on modules used in the integration test: bank, auth, and params.
- introduces a prototype composable AppConfig configurator which I plan to reuse and refine in the future test refactors 



---

### 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-07-15 13:19:51 +00:00
Facundo Medica
92d24cc69c
refactor: Use GenericFilteredPaginate wherever possible (#12386) 2022-06-30 08:36:20 -04:00
Facundo Medica
e5daf6bde5
feat: add query.GenericFilteredPaginated (#12253) 2022-06-27 20:38:41 -04:00
Jacob Gadikian
55054282d2
chore: gofumpt (#11839)
* fumpt using main not master...

* be more descriptive

* fumpt

* fix nits

Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-05-19 10:55:27 +02:00
Chung Wu
79d2300850
fix: filtered pagination NextKey off-by-one when Offset != 0 and CountTotal == true (#11408)
## Description

Closes: [#11407](https://github.com/cosmos/cosmos-sdk/issues/11407)



In the original code, when CountTotal == true, the iteration goes even after the `end+1`-th hit.

The `end+1`-th hit is expected to be `NextKey`. However, if there is a no-hit after after that, `numHits == end+1` is still true, and `NextKey` will be set to key beyond the `end+1`-th hit, resulting in consecutive queries missing the `end+1`-th hit.

---

### 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/master/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/master/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/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-03-21 15:10:59 +00:00