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(types): Deprecate the DBBackend variable in favor of the Tendermint Config's db-backend value. #11193

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
5eaaae4
chore: Add release notes for 0.43.0-rc0 (#9584)
amaury1093 Jun 25, 2021
c0e0383
feat: Error on blank chain-id in multisign command (backport #9593) (…
mergify[bot] Jun 30, 2021
3a28c34
fix: Don't error on startup if min-gas-price is empty (#9621)
amaury1093 Jul 2, 2021
1466050
chore: Audit v0.43 CHANGELOG against commit log (backport #9592) (#9622)
mergify[bot] Jul 5, 2021
4833172
docs(swagger): add authz & feegrant swagger docs (#9625) (#9632)
mergify[bot] Jul 5, 2021
5c5adf4
docs: add v0.43 version option (#9506) (#9676)
mergify[bot] Jul 12, 2021
56c1650
feat: add migrations for balances with zero coins (backport #9664) (#…
mergify[bot] Jul 13, 2021
7c90c2b
chore: Cleanup Changelog, add Rosetta to Release Notes as beta (#9691)
amaury1093 Jul 14, 2021
6ef8d24
chore: separate changes between 0.43.0-rc0 and 0.43.0-rc1 (#9700)
robert-zaremba Jul 14, 2021
606d56e
chore: add missing bugfix (zero coins pruning) to the changelog (#9701)
robert-zaremba Jul 15, 2021
0ab5726
fix: start GRPCWebServer in goroutine (backport #9704) (#9719)
mergify[bot] Jul 19, 2021
7fcc409
docs: add chain upgrade guide v0.43 (backport #9567) (#9725)
mergify[bot] Jul 20, 2021
b8cb68b
perf(grpcweb): remove useless HTTP HandlerFun wrapping (#9711) (#9721)
mergify[bot] Jul 20, 2021
9fd720e
fix: support output flag on tx commands (backport #9717) (#9771)
mergify[bot] Jul 26, 2021
9cd4e58
feat: TxRaw must follow ADR 027 (#9743) (#9754)
mergify[bot] Jul 27, 2021
b402d1c
refactor: Improve txRaw decoder code (backport #9769) (#9779)
mergify[bot] Jul 27, 2021
e7c5f6b
feat: Query txs by signature and by address+seq (backport #9750) (#9782)
mergify[bot] Jul 27, 2021
db3e033
feat: Low-s normalization for ecdsa secp256r1 signing (#9738) (#9793)
mergify[bot] Jul 27, 2021
a2133ef
docs: fix cosmovisor quickstart (backport #9730) (#9789)
mergify[bot] Jul 28, 2021
d5b0f3a
docs: Update baseapp.md and tx-lifecycle.md (#9792) (#9802)
mergify[bot] Jul 28, 2021
c6d03f7
fix: Cap Initialization Fix (forward-port #9392) (#9805)
mergify[bot] Jul 28, 2021
3daccc9
chore: added changelog for 9793 (secp256r1 tx malleability) (backport…
mergify[bot] Jul 28, 2021
b561931
fix: hardcoded ledger algo on `keys add` (backport #9766) (#9803)
mergify[bot] Jul 28, 2021
4ebcae6
fix: feegrant grant cli bug (backport #9720) (#9733)
mergify[bot] Jul 30, 2021
59b1004
feat: Improve withdraw-all-rewards UX (backport #9781) (#9824)
mergify[bot] Aug 2, 2021
6137324
fix!: update gentx val pub key input parsing (backport #9827) (#9833)
mergify[bot] Aug 2, 2021
838269b
fix: fixed missing coin denomination in msg server logs (backport #97…
mergify[bot] Aug 4, 2021
650ccdb
fix!: Capability Issue on Restart, Backport to v0.43 (backport #9836)…
mergify[bot] Aug 4, 2021
e609415
style(capability)!: update go doc comments and remove BeginBlocker (b…
mergify[bot] Aug 4, 2021
0054c40
chore: Changelog and Release Notes for 0.43.0-rc3 (#9801)
amaury1093 Aug 5, 2021
1afd470
refactor: update default pruning strategy (#9859) (#9863)
mergify[bot] Aug 6, 2021
118d57b
chore: add missing changelog entry from #9859 (backport #9867) (#9871)
mergify[bot] Aug 6, 2021
3f8596c
chore: v0.43.0 Changelog and Release Notes (#9886)
amaury1093 Aug 10, 2021
a804449
feat: add tx fee event (backport #9860) (#9887)
mergify[bot] Aug 10, 2021
4b2b306
fix: file keyring fails to add/import/export keys when input is not s…
mergify[bot] Aug 12, 2021
c1e02c6
chore: Deprecate QueryUpgradedConsensusState (#9906) (#9909)
mergify[bot] Aug 12, 2021
58b40fd
chore: Update STABLE_RELEASES for 0.43 (#9931) (#9943)
mergify[bot] Aug 16, 2021
8dfe627
fix: Fix CLI query tx docs for acc/seq (#9942) (#9950)
mergify[bot] Aug 17, 2021
d60c934
build(deps): bump TM to v0.34.12 (backport #9956) (#9960)
mergify[bot] Aug 17, 2021
370134c
fix(build): set a right version for the app (backport #9965) (#9967)
mergify[bot] Aug 18, 2021
0155244
refactor: Move some methods inside TX Factory (backport #9421) (#10039)
mergify[bot] Aug 31, 2021
c1fc2a3
fix: remove legacy REST endpoints for broadcast & encode (v0.44.x) (#…
clevinson Sep 1, 2021
ce52de7
fix!: Remove onlyAminoSigners in sequence check (backport #10029) (#1…
mergify[bot] Sep 1, 2021
ccc5245
chore: release v0.44 (#10048)
robert-zaremba Sep 1, 2021
59a4952
chore: revert TxFactory changes (#10053)
robert-zaremba Sep 1, 2021
b372f4c
fix: minimum-gas-price warning (#10071)
ryanchristo Sep 7, 2021
15769f2
chore: remove incorrect EOL date for v0.42 (#10078)
clevinson Sep 9, 2021
d185a78
docs: clarify grpc server (#9761) (#10101)
mergify[bot] Sep 9, 2021
5f97313
docs: update to v0.44 version tag (#10069) (#10099)
mergify[bot] Sep 10, 2021
8f49499
docs: update to v0.44 migration (backport #10070) (#10129)
mergify[bot] Sep 13, 2021
6cfa58f
fix: Allow --home to propagate to init command (backport #10104) (#10…
mergify[bot] Sep 15, 2021
000c17b
fix: rosetta server boot and add burn event type to pass check:data (…
mergify[bot] Sep 16, 2021
cbc164a
perf: Speedup coins.AmountOf() by removing many regex calls (backport…
mergify[bot] Sep 16, 2021
4831870
fix: Update RequestInitChain in Simulations (#10171)
mergify[bot] Sep 16, 2021
fcaff72
fix: unmarshalling issue with multisig keys in master (backport #1006…
mergify[bot] Sep 16, 2021
1e4f561
fix: use keyring in config for add-genesis-account cmd (backport #996…
mergify[bot] Sep 16, 2021
3ee7099
fix(CI): add golangci-lint to dependencies (#10112) (#10172)
robert-zaremba Sep 16, 2021
7330f38
fix!: update ABCI query to use request height (backport #9879) (#10185)
mergify[bot] Sep 16, 2021
b4d7c1f
fix: Incorrect error message when periodlimit is not set on a feegran…
mergify[bot] Sep 16, 2021
22a4f50
perf: Make CacheKV store interleaved iterator and insertion not O(n^2…
mergify[bot] Sep 16, 2021
6bc72e7
chore: bump IAVL version (backport #10040) (#10154)
mergify[bot] Sep 17, 2021
cded906
perf: Remove telemetry from wrappings of store (backport #10077) (#10…
mergify[bot] Sep 17, 2021
37f5069
fix: revert \#10169 (amino multisig key unmarshalling) (#10193)
robert-zaremba Sep 18, 2021
89be5a2
fix: removed potential sources of non-determinism in upgrades (backpo…
mergify[bot] Sep 29, 2021
8a73b26
chore: v0.44.1 release notes and changelog (#10261)
amaury1093 Sep 29, 2021
fece3f0
fix: --home flag parsing (backport #10226) (#10271)
mergify[bot] Oct 4, 2021
7a03a18
fix!: remove grpc query routing through tendermint (backport #10045) …
mergify[bot] Oct 4, 2021
64cc3a7
chore: [x/feegrant] remove unnecessary logging in simulation (backpor…
mergify[bot] Oct 5, 2021
f11689b
fix: null guard for tx fee amounts (backport #10327) (#10342)
mergify[bot] Oct 12, 2021
5b79b76
perf: Only do memory allocation when zero coin is found (backport #10…
mergify[bot] Oct 14, 2021
a1521fd
build(deps): bump github.com/tendermint/tendermint from 0.34.13 to 0.…
mergify[bot] Oct 15, 2021
6079fe1
fix!: store/cachekv: reduce growth factor for iterator ranging using …
mergify[bot] Oct 15, 2021
f537f99
chore: backport release-v0.44.2 (#10349)
robert-zaremba Oct 15, 2021
c55b241
fix: rosetta `getHeight` function to use tmRPC.GenesisChunked() inste…
mergify[bot] Oct 20, 2021
0592ba6
build: Update gin-gonic/gin to v1.7.0 (backport #10401) (#10410)
mergify[bot] Oct 21, 2021
b75c29f
chore: v0.44.3 release notes and changelog (#10416)
amaury1093 Oct 22, 2021
7b0b6e0
docs: add ibc migration docs in migration docs (#10438) (#10440)
mergify[bot] Oct 26, 2021
0ac1f6d
chore: Add "Since:" on proto doc comments (backport #10434) (#10449)
mergify[bot] Oct 29, 2021
8a9589a
style: lint go and markdown (backport #10060) (#10473)
mergify[bot] Nov 11, 2021
a359079
fix: use sdk.config hdpath (backport #10414) (#10445)
mergify[bot] Nov 12, 2021
e443fb7
fix: query account balance by ibc denom (backport #10394) (#10523)
mergify[bot] Nov 12, 2021
2bbec7a
fix: delete ru docs (#10549)
fedekunze Nov 15, 2021
6a46c95
feat: update x/upgrade keeper.DumpUpgradeInfoToDisk to support Plan.I…
robert-zaremba Nov 15, 2021
3ae5e0c
build: fix build environment for the liveness test (backport #10551) …
mergify[bot] Nov 15, 2021
792f388
chore: Iavl iterator (backport #10544) (#10545)
mergify[bot] Nov 16, 2021
ecab606
fix: always move auth module migration to the end (#10608)
robert-zaremba Nov 25, 2021
59d7dc4
chore: 0.44.4 release notes (#10613)
robert-zaremba Nov 25, 2021
768e376
build(deps): Use self-maintained btcutil (#10082) (backport #10201) (…
mergify[bot] Nov 29, 2021
b3646ac
fix: emit ante events even for the failed txs (#10631)
yun-yeo Dec 1, 2021
72fb852
fix: upgrade IAVL (#10648)
robert-zaremba Dec 1, 2021
fd34e37
fix: Add Events to TxResponse (backport #10630) (#10643)
mergify[bot] Dec 2, 2021
33dbf6a
chore: Cosmos SDK v0.44.5 release notes (#10667)
robert-zaremba Dec 2, 2021
7ef483e
fix: types/errors Wrap and Wrapf (backport #10674) (#10676)
mergify[bot] Dec 6, 2021
d404619
fix: Charge gas even when there are no entries in gaskv (backport #10…
mergify[bot] Dec 8, 2021
e01217c
feat: add configurable iavl cache size (backport #10561) (#10698)
mergify[bot] Dec 8, 2021
b9250f3
feat: Add `HasSupply` method to bank keeper (backport #10393) (#10699)
mergify[bot] Dec 9, 2021
8fe6873
Updated and fixed Rosetta
fkneeland-figure Dec 9, 2021
9052919
add changelog
fkneeland-figure Dec 9, 2021
16da4a4
fix!: Charge gas for key length in gas meter (backport #10247) (#10697)
mergify[bot] Dec 10, 2021
a8a1101
build(deps): upgrade rosetta to 0.7.0 (backport #10432) (#10716)
mergify[bot] Dec 10, 2021
fe198a3
added prs to changelog
fkneeland-figure Dec 10, 2021
b5da250
Merge pull request #6 from provenance-io/upgrade_rosetta_4
fkneeland-figure Dec 10, 2021
3824f28
update release notes
fkneeland-figure Dec 10, 2021
b681425
Merge branch 'release-pio/v0.44.3.x' of github.com:provenance-io/cosm…
fkneeland-figure Dec 10, 2021
bb6d068
Merge pull request #7 from provenance-io/release-pio/v0.44.3.1
fkneeland-figure Dec 10, 2021
ad443cb
perf: Speedup cachekv iterator on large deletions & IBC v2 upgrade lo…
mergify[bot] Dec 13, 2021
51f7d31
fix: populate ctx.ConsensusParams for begin blockers (backport #10725…
mergify[bot] Dec 16, 2021
eff7dd7
feat: Add msg service router interface (#2)
channa-figure Dec 23, 2021
f67928a
fix: nil pointer panic on `NewIntFromBigInt` (backport #9627) (#10845)
mergify[bot] Dec 29, 2021
8ad8d5d
perf: Improve the speed of coins.String() (backport #10076) (#10850)
mergify[bot] Dec 30, 2021
1321bc1
perf!: Add HasAccount to the AuthKeeper to save protobuf decoding tim…
mergify[bot] Dec 31, 2021
7115d3b
fix: enable setting sequence (nonce) for module account (backport #10…
mergify[bot] Jan 3, 2022
14cd943
perf: store/cachekv: avoid a map lookup if unnecessary, clear maps fa…
mergify[bot] Jan 3, 2022
19e924d
fix: adding checks to ensure coin denoms are sorted in `Balance` duri…
mergify[bot] Jan 3, 2022
44d3f4d
fix: register evidence regression (backport #10595) (#10775)
mergify[bot] Jan 3, 2022
a0503e5
fix: Panic if SetOrder* functions forgot modules (backport #10711) (#…
mergify[bot] Jan 3, 2022
0be9863
fix: create query context with requested block height (#10827) (#10866)
mergify[bot] Jan 4, 2022
71a168d
fix: recreate compat field, of null pubkeys in multisig (backport #10…
mergify[bot] Jan 5, 2022
6d44d71
fix!: tx result don't report block gas used as tx gas used (#10833)
yihuang Jan 5, 2022
8932338
feat: support in-place migration ordering (backport #10614) (#10890)
mergify[bot] Jan 6, 2022
05656a2
fix: use full gas on overflow (backport #10897) (#10912)
mergify[bot] Jan 7, 2022
a5c60b7
feat!: x/gov: raise max description length to 10k chars (backport #10…
mergify[bot] Jan 10, 2022
788915a
fix merge conflicts
fkneeland-figure Jan 11, 2022
545b829
fixed @arnabmitra cr request
fkneeland-figure Jan 11, 2022
6006f16
go mod vendor
fkneeland-figure Jan 11, 2022
7e3d4a1
cleanup
fkneeland-figure Jan 11, 2022
488ee1b
fmt
fkneeland-figure Jan 11, 2022
a8abc19
adding msg fee work to the changelog under unreleased section.
arnabmitra Jan 11, 2022
f5baa8c
fixed tests
fkneeland-figure Jan 11, 2022
be2ed64
Merge branch 'release-pio/v0.44.5' of github.com:provenance-io/cosmos…
fkneeland-figure Jan 11, 2022
1ee2c04
updated changelog to reflect provenance releases
fkneeland-figure Jan 11, 2022
a69b016
remove unused db copy cmd
fkneeland-figure Jan 11, 2022
ebfcbd4
updated release notes
fkneeland-figure Jan 11, 2022
173e653
updating comment.
arnabmitra Jan 11, 2022
2141a57
updating comment based on code review.
arnabmitra Jan 11, 2022
f470d9c
adding anteevents which were missed in the merge.
arnabmitra Jan 11, 2022
6a1379f
update release notes wording
fkneeland-figure Jan 11, 2022
6410f1f
baseapp changes the way they propagate antehandler events, this commi…
arnabmitra Jan 12, 2022
26d31b9
Merge branch 'release-pio/v0.44.5' of github.com:provenance-io/cosmos…
arnabmitra Jan 12, 2022
ba1e099
fix: revert tx when block gas limit exceeded (backport: #10770) (#10814)
yihuang Jan 12, 2022
c1c1ad7
chore: v0.45.0 Release Notes (#10760)
amaury1093 Jan 12, 2022
f672cad
Merge pull request #21 from provenance-io/release-pio/v0.44.5
fkneeland-figure Jan 12, 2022
90ffbce
feat: support custom mnemonics in in-process testing network (backpor…
mergify[bot] Jan 13, 2022
ed224e3
Error from fee invoker is not getting propagated properly.
arnabmitra Jan 14, 2022
26fb838
Merge pull request #22 from provenance-io/bug/msgfee-error-not-propag…
fkneeland-figure Jan 14, 2022
8236b26
chore: move server.GenerateCoinKey and server.GenerateSaveCoinKey to …
robert-zaremba Jan 18, 2022
b6c77e6
chore: release v0.45 changelog (#10964)
robert-zaremba Jan 18, 2022
b8b5ea4
Merge branch 'release-pio/v0.45.x' into v0.45-rc-prep
arnabmitra Jan 18, 2022
6067c5b
merging.
arnabmitra Jan 18, 2022
e399768
updating release notes.
arnabmitra Jan 18, 2022
d7c2138
Add missing iavl config size value to config parser
channa-figure Jan 19, 2022
697ab06
[10948]: Get rid of the DBBackend value. Copy changes from Cosmos PR …
dwedul-figure Feb 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 7 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@ jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v4
- uses: actions/[email protected]
with:
go-version: 1.16
- uses: technote-space/get-diff-action@v5
id: git_diff
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: golangci/golangci-lint-action@master
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.39
args: --timeout 10m
github-token: ${{ secrets.github_token }}
- name: run go linters
run: make lint-go
if: env.GIT_DIFF
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ jobs:

liveness-test:
runs-on: ubuntu-latest
timeout-minutes: 10
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ docs/_build
docs/tutorial
docs/node_modules
docs/modules
docs/run-node/cosmovisor.md
dist
tools-stamp
buf-stamp
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ linters:
- gocritic
- gofmt
- goimports
- golint
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- prealloc
- revive
- exportloopref
- staticcheck
- structcheck
Expand Down
203 changes: 198 additions & 5 deletions CHANGELOG.md

Large diffs are not rendered by default.

89 changes: 89 additions & 0 deletions CODING_GUIDELINES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Coding Guidelines

This document is an extension to [CONTRIBUTING](./CONTRIBUTING.md) and provides more details about the coding guidelines and requirements.

## API & Design

+ Code must be well structured:
+ packages must have a limited responsibility (different concerns can go to different packages),
+ types must be easy to compose,
+ think about maintainbility and testability.
+ "Depend upon abstractions, [not] concretions".
+ Try to limit the number of methods you are exposing. It's easier to expose something later than to hide it.
+ Take advantage of `internal` package concept.
+ Follow agreed-upon design patterns and naming conventions.
+ publicly-exposed functions are named logically, have forward-thinking arguments and return types.
+ Avoid global variables and global configurators.
+ Favor composable and extensible designs.
+ Minimize code duplication.
+ Limit third-party dependencies.

Performance:

+ Avoid unnecessary operations or memory allocations.

Security:

+ Pay proper attention to exploits involving:
+ gas usage
+ transaction verification and signatures
+ malleability
+ code must be always deterministic
+ Thread safety. If some functionality is not thread-safe, or uses something that is not thread-safe, then clearly indicate the risk on each level.

## Testing

Make sure your code is well tested:

+ Provide unit tests for every unit of your code if possible. Unit tests are expected to comprise 70%-80% of your tests.
+ Describe the test scenarios you are implementing for integration tests.
+ Create integration tests for queries and msgs.
+ Use both test cases and property / fuzzy testing. We use the [rapid](pgregory.net/rapid) Go library for property-based and fuzzy testing.
+ Do not decrease code test coverage. Explain in a PR if test coverage is decreased.

We expect tests to use `require` or `assert` rather than `t.Skip` or `t.Fail`,
unless there is a reason to do otherwise.
When testing a function under a variety of different inputs, we prefer to use
[table driven tests](https://github.com/golang/go/wiki/TableDrivenTests).
Table driven test error messages should follow the following format
`<desc>, tc #<index>, i #<index>`.
`<desc>` is an optional short description of whats failing, `tc` is the
index within the test case table that is failing, and `i` is when there
is a loop, exactly which iteration of the loop failed.
The idea is you should be able to see the
error message and figure out exactly what failed.
Here is an example check:

```go
<some table>
for tcIndex, tc := range cases {
<some code>
resp, err := doSomething()
require.NoError(err)
require.Equal(t, tc.expected, resp, "should correctly perform X")
```

## Quality Assurance

We are forming a QA team that will support the core Cosmos SDK team and collaborators by:

- Improving the Cosmos SDK QA Processes
- Improving automation in QA and testing
- Defining high-quality metrics
- Maintaining and improving testing frameworks (unit tests, integration tests, and functional tests)
- Defining test scenarios.
- Verifying user experience and defining a high quality.
- We want to have **acceptance tests**! Document and list acceptance lists that are implemented and identify acceptance tests that are still missing.
- Acceptance tests should be specified in `acceptance-tests` directory as Markdown files.
- Supporting other teams with testing frameworks, automation, and User Experience testing.
- Testing chain upgrades for every new breaking change.
- Defining automated tests that assure data integrity after an update.

Desired outcomes:

- QA team works with Development Team.
- QA is happening in parallel with Core Cosmos SDK development.
- Releases are more predictable.
- QA reports. Goal is to guide with new tasks and be one of the QA measures.

As a developer, you must help the QA team by providing instructions for User Experience (UX) and functional testing.
Loading