-
Notifications
You must be signed in to change notification settings - Fork 719
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
chore(docs): add code guidelines #1819
Conversation
Co-authored-by: billy rennekamp <[email protected]>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1819 +/- ##
==========================================
- Coverage 79.93% 75.02% -4.91%
==========================================
Files 23 34 +11
Lines 1540 1862 +322
==========================================
+ Hits 1231 1397 +166
- Misses 260 402 +142
- Partials 49 63 +14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question about the test command already including the hermes build but otherwise so great to see a doc like this!
There are some redundancies with the current https://github.com/cosmos/gaia/blob/main/CONTRIBUTING.md. This will be included in the hub.cosmos.network as it's part of the doc directory, should it link to the other file or the other way around? should we consider merging the content or use this one for website rendered audiences versus github markdown audiences?
can we also have a guide for writing testing code, including test file naming, structure etc |
Yes, sure!! Let's merge them. It's nice to have clear documentation in one place and not massive documentation for everyone to read quickly; WDYT? |
|
Line 111 in fb95f50
|
|
|
docs/code-guidelines.md
Outdated
|
||
ErrBrokenLink = errors.New("link is broken") | ||
ErrCouldNotOpen = errors.New("could not open") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we create a types/errors/errors.go
to collect all err types together or put errors in each file where they were used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can follow the current pattern and keep it inside the types package for each module, but we can create a pkg/errors
for more generic errors.
docs/code-guidelines.md
Outdated
Performance-specific guidelines apply only to the hot path. | ||
|
||
#### Prefer strconv over fmt | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add
avoid "+" for frequent string concatenation
- bad
func strConcat(n int, str string) string {
s := ""
for i := 0; i < n; i++ {
s += str
}
return s
}
- good
a better option isstrings.Builder
or[]byte
func strConcat(n int, str string) string {
b := []byte{}
for i := 0; i < n; i++ {
buf = append(buf, str...)
}
return string(b)
}
In golang, string is immutable. when use "+", every time, there has to be a new memory allocation. For []byte
, the memory of the slice []byte is allocated in multiples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is a very nice one! sometimes the +
can be more performative. But definitely is not so clear to read
can we add a section about importable and unimportable struct field and funcs ? |
|
|
can you share this info for I can add? |
Kudos, SonarCloud Quality Gate passed! |
* feat: Add command bech32-convert (#1845) * add bech32-convert command to gaiad * add changelog notice * add review fixes * add tests for ConvertBech32Prefix Co-authored-by: Petr Ivanov <[email protected]> Co-authored-by: Danilo Pantani <[email protected]> Co-authored-by: billy rennekamp <[email protected]> * fix feegrant test accounts (#1861) * Updated and new links (#1862) * Updated and added links Current Telegram links directs to a chat that no longer exists, replaced it with the main Cosmos Telegram group. Also added link to Mintscan's list of on-chain proposals * Updated Telegram link: t.me/atomgov Co-authored-by: billy rennekamp <[email protected]> * chore: bump sdk to v0.46.4 (#1863) * chore: bump sdk * rename flag * prepare v8 release (#1860) * chore: changelog * chore: update changelog * chore: add changelog for v7.0.3 * chore: add v7.1.0 to changelog Co-authored-by: Yaru Wang <[email protected]> * Add backport for v8 & future v9/v10 (#1865) * Revert "prepare v8 release (#1860)" (#1866) This reverts commit f0397fd. * chore: changelog (#1868) * fix: print in app.go (#1878) * fix: print in app.go * fix: change print err to panic in init * refactor: simplify the logic in fee antehandler (#1877) * refactor: simplify the logic in fee antehandler * fix: test * test: add test for disable checkTx * fix: err check (#1880) * fix: change log.Fatal to panic, defer iter.Close() * update export.go * fix: lint * chore(deps): bump github.com/spf13/viper from 1.13.0 to 1.14.0 (#1885) Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.13.0 to 1.14.0. - [Release notes](https://github.com/spf13/viper/releases) - [Commits](spf13/viper@v1.13.0...v1.14.0) --- updated-dependencies: - dependency-name: github.com/spf13/viper dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * test: export genesis (#1871) * Add export test * Add unit test for app export * Refactor gaia helpers setup Co-authored-by: Danilo Pantani <[email protected]> * fix(chore): fix gosec issues (#1881) * gosec improvements * fix gosec issues * defer to close iterator * add gas adjustment * Merge PR #1893: Delete CODE_OF_CONDUCT.md * test: Unit tests for global fee module (#1858) * test: add test for globalfee validateMinimumGasPrices * test: add test for querier * fix: panic in test * update test * update test * use original test * Update x/globalfee/types/params_test.go Co-authored-by: Danilo Pantani <[email protected]> Co-authored-by: Danilo Pantani <[email protected]> * icamauth docs (#1813) * docs: add icamauth docs * docs: change uatom to stake * chore: update docs * docs: update icamuath.md according to review comments * docs: rename icamauth.md to README.md * docs: read mnemonic from file * docs: add hermes download instruction * update docs * globalfee/README.md -> globalfee.md * Update docs/modules/icamauth/hermes_setup.sh Co-authored-by: Danilo Pantani <[email protected]> * docs: fix dead link * Update README.md * Update README.md * fixes Co-authored-by: billy rennekamp <[email protected]> Co-authored-by: Danilo Pantani <[email protected]> * docs: correct `NoWithVeto` condition description (#1900) According to (docs)[https://docs.cosmos.network/main/modules/gov#threshold] and [code](https://github.com/cosmos/cosmos-sdk/blob/bcff22a3767b9c5dd7d1d562aece90cf72e05e85/x/gov/keeper/tally.go#L115), it includes `abstain` when calculating the threshold of `NoWithVeto`. * fix(CI): fix code coverage (#1903) * fix the code test coverage measure * fix folder type removal * docs: update icamauth (#1905) * docs: update icamauth * docs: restructure icamauth docs * docs: update links * docs: fix dead links * chore: update docs (#1906) * feat(CI): skip run the go CI test for markdown/docs files (#1907) * skip run the test CI for markdown files * remove skip from the codeql ci * only ignore md files for codeql * feat(x/ica): add tests for icamauth module (#1897) * add unit tests methods * add tests for the types folder * remove query test * add test description * refactor: e2e test (#1840) * refactor: ica e2e test * refactor: globalfee e2e test * refactor: add execBankSendBatch * refactor: add const proposalGlobalFee * refactor: execBankSendBatch * Update tests/e2e/e2e_exec_test.go Co-authored-by: Danilo Pantani <[email protected]> * test: refactor execBankSendBatch * fix: failure test Co-authored-by: Danilo Pantani <[email protected]> * Update ibc-go v5.1.0 (#1898) * Strangelove/forward middleware atomic (#1911) * Update forward middleware to use packet memo field, async acks * fixed e2e Co-authored-by: Andrew Gouin <[email protected]> * fix bank migration in upgrade handler (#1892) * fix bank migtation in upgrade handler * try atomated upgrade test * fix build * change so runs on yml change too * change so runs on yml change too * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * passing upgrade test * Update app/upgrades/v8/upgrades.go Co-authored-by: Danilo Pantani <[email protected]> * Update contrib/scripts/run-gaia-v7.sh Co-authored-by: Danilo Pantani <[email protected]> * Update contrib/scripts/run-gaia-v7.sh Co-authored-by: Danilo Pantani <[email protected]> * Update contrib/scripts/run-gaia-v7.sh Co-authored-by: Danilo Pantani <[email protected]> * Update contrib/scripts/run-gaia-v7.sh Co-authored-by: Danilo Pantani <[email protected]> * add unit test * Update app/upgrades/v8/upgrades_test.go Co-authored-by: Danilo Pantani <[email protected]> * added check for deformed being removed Co-authored-by: Danilo Pantani <[email protected]> * chore: simplify logic of getting allFees (#1917) * Updated codeowners, removed pantani, cmwaters & noomski * Makefile: add govulnchecker (#1927) Adds the Go vulnerability checker to the Makefile as a directive dependency to the all directive. Updates #1879 * spike to test feasibility of downgrade to v0.45 (#1902) * pause * no vscode errors * rewrite go.sum, go.work.sum and fix amino import * remove mauth docs * gofumpt * fix find * cant get docker to build locally * debug ibc test * fix ibc test * passing e2e * clean up commented out tests * remove more mauth * forgot to save * add back middleware test * fix upgrade * fix test setup * add TODO note * remove multihop test * Update docs/modules/gov.md * Update tests/e2e/query.go Co-authored-by: lg <[email protected]> * remove groups and gov docs * laurens comment re moduleAccountAddress * remove commented code that should not be added back Co-authored-by: lg <[email protected]> * feat: proto dependencies for downgrade to 0.45 (#1933) * feat: add third_party proto * feat: add script for generating go files from proto, and swagger * feat: add protoc-doc-gen.sh * fix: antehandler to fit sdk v0.45 (#1918) * pause * no vscode errors * rewrite go.sum, go.work.sum and fix amino import * remove mauth docs * gofumpt * fix find * cant get docker to build locally * debug ibc test * fix ibc test * passing e2e * clean up commented out tests * remove more mauth * forgot to save * add back middleware test * fix upgrade * fix test setup * add TODO note * remove multihop test * fix: antehandler in sdkv0.45 * test: add back globalfee e2e test * fix: failure of verifying sending token amount * chore: remove comments * feat: simplify fee logic Co-authored-by: billy rennekamp <[email protected]> * test re-org (#1913) * pause * no vscode errors * rewrite go.sum, go.work.sum and fix amino import * remove mauth docs * gofumpt * fix find * cant get docker to build locally * debug ibc test * fix ibc test * passing e2e * clean up commented out tests * remove more mauth * forgot to save * add back middleware test * fix upgrade * fix test setup * add TODO note * remove multihop test * re-organized tests to make it easier to skip when working on a single one * remove gov tests * removed multihop tests * markdownlint (#1936) * fix: feegrant e2e test (#1940) * docs: update state sync (#1946) * Updated roadmap (#1947) * bump versions, remove e2e go.mod (#1944) * bump versions, remove e2e go.mod * stupid gofumpt errors * fixed packet forward configuration (#1941) * exclude e2e tests from test coverage upload (#1953) * exclude e2e tests from test coverage upload * swap order of test to exclude e2e * remove e2e from find * updated gov docs as specified in issue #1948 (#1949) * updated gov docs as specified in issue #1948 * fixed links * missed a few links * fix links (#1954) * test: Refactor gov e2e for v0.45 Rho (#1951) * WIP * Refactor gov tests for v45 * Refactor gov and add community spend test * Refactor * Set explicit sdk & tm versions for all dependencies Co-authored-by: billy rennekamp <[email protected]> * Skip broken redirect link check * Restrict disable link to single link Co-authored-by: billy rennekamp <[email protected]> * add back TestGaiaApp_Export (#1955) * pause * unit pasing, check e2e * Update test_helpers.go * fix: put iterator in closure (#1934) Co-authored-by: Milan Mulji <[email protected]> * uncomment still existing test (#1956) * uncomment still existing test * forgot to include this file * pause * remove again * add back rest of tests * push e2e image and use released versions in docker push action (#1939) Co-authored-by: billy rennekamp <[email protected]> * lint tests, too (#1960) * feat: Change MaxBypassMinFeeMsgGasUsage via NewFeeDecorator (#1961) * change MaxBypassMinFeeMsgGasUsage easily * move test to newTestGasLimit * chore: remove unneeded replace tags (#1959) * remove unneeded replace tags * remove ibc dep * Update go.mod Co-authored-by: Marko Baricevic <[email protected]> Co-authored-by: billy rennekamp <[email protected]> * chore(docs): add code guidelines (#1819) * code guidelines * add resources * Update docs/code-guidelines.md Co-authored-by: billy rennekamp <[email protected]> * git guidelines * small fixes and final steps Co-authored-by: billy rennekamp <[email protected]> * Update ko genesis.md (#1964) * offboarding (#1969) * chore(deps): bump actions/cache from 3.0.10 to 3.2.0 (#1968) Bumps [actions/cache](https://github.com/actions/cache) from 3.0.10 to 3.2.0. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](actions/cache@v3.0.10...v3.2.0) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * docs: fix global fee link (#1978) * chore(deps): bump github.com/gravity-devs/liquidity from 1.5.1 to 1.5.3 (#1981) Bumps [github.com/gravity-devs/liquidity](https://github.com/gravity-devs/liquidity) from 1.5.1 to 1.5.3. - [Release notes](https://github.com/gravity-devs/liquidity/releases) - [Changelog](https://github.com/Gravity-Devs/liquidity/blob/master/CHANGELOG.md) - [Commits](Gravity-Devs/liquidity@v1.5.1...v1.5.3) --- updated-dependencies: - dependency-name: github.com/gravity-devs/liquidity dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix: minor typos (#1984) Fix: minor typos * Migrations for quicksilver issue (#1976) * prepare v8 release (backport #1860) (#1867) * prepare v8 release (#1860) * chore: changelog * chore: update changelog * chore: add changelog for v7.0.3 * chore: add v7.1.0 to changelog Co-authored-by: Yaru Wang <[email protected]> (cherry picked from commit f0397fd) # Conflicts: # CHANGELOG.md * Update CHANGELOG.md Co-authored-by: billy rennekamp <[email protected]> * Added migrations for quicksilver stuck fund fix * Migrations for quicksilver * Check if balance of the refund addess is positive Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: billy rennekamp <[email protected]> Co-authored-by: lg <[email protected]> * test: remove unused const (#1988) * test: remove unused const * fix: lint * Changelog for V8 (#1982) * Update changelog for v8 * Update changelog for v8 * Update changelog * Make requested changes * Update date * Point to informal's fork of tendermint (#1990) * fix: remove ica controller params setup from upgrade handler (#1989) Signed-off-by: Yaru Wang <[email protected]> * Update codeowners (#1993) * preparing for v8.0.0-rc1 release (#1994) * prepare v8 release (backport #1860) (#1867) * prepare v8 release (#1860) * chore: changelog * chore: update changelog * chore: add changelog for v7.0.3 * chore: add v7.1.0 to changelog Co-authored-by: Yaru Wang <[email protected]> (cherry picked from commit f0397fd) # Conflicts: # CHANGELOG.md * Update CHANGELOG.md Co-authored-by: billy rennekamp <[email protected]> * docs: update changelog Signed-off-by: Yaru Wang <[email protected]> * docs: update docs Signed-off-by: Yaru Wang <[email protected]> Signed-off-by: Yaru Wang <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: billy rennekamp <[email protected]> * docs: changelog for v8.0.0-rc1 (#1997) Signed-off-by: Yaru Wang <[email protected]> Signed-off-by: Yaru Wang <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Yaru Wang <[email protected]> Co-authored-by: Petr Ivanov <[email protected]> Co-authored-by: Petr Ivanov <[email protected]> Co-authored-by: Danilo Pantani <[email protected]> Co-authored-by: billy rennekamp <[email protected]> Co-authored-by: ZorroZ77 <[email protected]> Co-authored-by: Yaru Wang <[email protected]> Co-authored-by: yaruwangway <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jacob Gadikian <[email protected]> Co-authored-by: Yongwoo Lee <[email protected]> Co-authored-by: Giancarlos Salas <[email protected]> Co-authored-by: Andrew Gouin <[email protected]> Co-authored-by: Milan Mulji <[email protected]> Co-authored-by: Emmanuel T Odeke <[email protected]> Co-authored-by: Lexa Michaelides <[email protected]> Co-authored-by: Reece Williams <[email protected]> Co-authored-by: Marko <[email protected]> Co-authored-by: Marko Baricevic <[email protected]> Co-authored-by: GwangIl-Park <[email protected]> Co-authored-by: omahs <[email protected]> Co-authored-by: stana-ethernal <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* feat: Add command bech32-convert (#1845) * add bech32-convert command to gaiad * add changelog notice * add review fixes * add tests for ConvertBech32Prefix Co-authored-by: Petr Ivanov <[email protected]> Co-authored-by: Danilo Pantani <[email protected]> Co-authored-by: billy rennekamp <[email protected]> * fix feegrant test accounts (#1861) * Updated and new links (#1862) * Updated and added links Current Telegram links directs to a chat that no longer exists, replaced it with the main Cosmos Telegram group. Also added link to Mintscan's list of on-chain proposals * Updated Telegram link: t.me/atomgov Co-authored-by: billy rennekamp <[email protected]> * chore: bump sdk to v0.46.4 (#1863) * chore: bump sdk * rename flag * prepare v8 release (#1860) * chore: changelog * chore: update changelog * chore: add changelog for v7.0.3 * chore: add v7.1.0 to changelog Co-authored-by: Yaru Wang <[email protected]> * Add backport for v8 & future v9/v10 (#1865) * Revert "prepare v8 release (#1860)" (#1866) This reverts commit f0397fd. * chore: changelog (#1868) * fix: print in app.go (#1878) * fix: print in app.go * fix: change print err to panic in init * refactor: simplify the logic in fee antehandler (#1877) * refactor: simplify the logic in fee antehandler * fix: test * test: add test for disable checkTx * fix: err check (#1880) * fix: change log.Fatal to panic, defer iter.Close() * update export.go * fix: lint * chore(deps): bump github.com/spf13/viper from 1.13.0 to 1.14.0 (#1885) Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.13.0 to 1.14.0. - [Release notes](https://github.com/spf13/viper/releases) - [Commits](spf13/viper@v1.13.0...v1.14.0) --- updated-dependencies: - dependency-name: github.com/spf13/viper dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * test: export genesis (#1871) * Add export test * Add unit test for app export * Refactor gaia helpers setup Co-authored-by: Danilo Pantani <[email protected]> * fix(chore): fix gosec issues (#1881) * gosec improvements * fix gosec issues * defer to close iterator * add gas adjustment * Merge PR #1893: Delete CODE_OF_CONDUCT.md * test: Unit tests for global fee module (#1858) * test: add test for globalfee validateMinimumGasPrices * test: add test for querier * fix: panic in test * update test * update test * use original test * Update x/globalfee/types/params_test.go Co-authored-by: Danilo Pantani <[email protected]> Co-authored-by: Danilo Pantani <[email protected]> * icamauth docs (#1813) * docs: add icamauth docs * docs: change uatom to stake * chore: update docs * docs: update icamuath.md according to review comments * docs: rename icamauth.md to README.md * docs: read mnemonic from file * docs: add hermes download instruction * update docs * globalfee/README.md -> globalfee.md * Update docs/modules/icamauth/hermes_setup.sh Co-authored-by: Danilo Pantani <[email protected]> * docs: fix dead link * Update README.md * Update README.md * fixes Co-authored-by: billy rennekamp <[email protected]> Co-authored-by: Danilo Pantani <[email protected]> * docs: correct `NoWithVeto` condition description (#1900) According to (docs)[https://docs.cosmos.network/main/modules/gov#threshold] and [code](https://github.com/cosmos/cosmos-sdk/blob/bcff22a3767b9c5dd7d1d562aece90cf72e05e85/x/gov/keeper/tally.go#L115), it includes `abstain` when calculating the threshold of `NoWithVeto`. * fix(CI): fix code coverage (#1903) * fix the code test coverage measure * fix folder type removal * docs: update icamauth (#1905) * docs: update icamauth * docs: restructure icamauth docs * docs: update links * docs: fix dead links * chore: update docs (#1906) * feat(CI): skip run the go CI test for markdown/docs files (#1907) * skip run the test CI for markdown files * remove skip from the codeql ci * only ignore md files for codeql * feat(x/ica): add tests for icamauth module (#1897) * add unit tests methods * add tests for the types folder * remove query test * add test description * refactor: e2e test (#1840) * refactor: ica e2e test * refactor: globalfee e2e test * refactor: add execBankSendBatch * refactor: add const proposalGlobalFee * refactor: execBankSendBatch * Update tests/e2e/e2e_exec_test.go Co-authored-by: Danilo Pantani <[email protected]> * test: refactor execBankSendBatch * fix: failure test Co-authored-by: Danilo Pantani <[email protected]> * Update ibc-go v5.1.0 (#1898) * Strangelove/forward middleware atomic (#1911) * Update forward middleware to use packet memo field, async acks * fixed e2e Co-authored-by: Andrew Gouin <[email protected]> * fix bank migration in upgrade handler (#1892) * fix bank migtation in upgrade handler * try atomated upgrade test * fix build * change so runs on yml change too * change so runs on yml change too * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * change again * passing upgrade test * Update app/upgrades/v8/upgrades.go Co-authored-by: Danilo Pantani <[email protected]> * Update contrib/scripts/run-gaia-v7.sh Co-authored-by: Danilo Pantani <[email protected]> * Update contrib/scripts/run-gaia-v7.sh Co-authored-by: Danilo Pantani <[email protected]> * Update contrib/scripts/run-gaia-v7.sh Co-authored-by: Danilo Pantani <[email protected]> * Update contrib/scripts/run-gaia-v7.sh Co-authored-by: Danilo Pantani <[email protected]> * add unit test * Update app/upgrades/v8/upgrades_test.go Co-authored-by: Danilo Pantani <[email protected]> * added check for deformed being removed Co-authored-by: Danilo Pantani <[email protected]> * chore: simplify logic of getting allFees (#1917) * Updated codeowners, removed pantani, cmwaters & noomski * Makefile: add govulnchecker (#1927) Adds the Go vulnerability checker to the Makefile as a directive dependency to the all directive. Updates #1879 * spike to test feasibility of downgrade to v0.45 (#1902) * pause * no vscode errors * rewrite go.sum, go.work.sum and fix amino import * remove mauth docs * gofumpt * fix find * cant get docker to build locally * debug ibc test * fix ibc test * passing e2e * clean up commented out tests * remove more mauth * forgot to save * add back middleware test * fix upgrade * fix test setup * add TODO note * remove multihop test * Update docs/modules/gov.md * Update tests/e2e/query.go Co-authored-by: lg <[email protected]> * remove groups and gov docs * laurens comment re moduleAccountAddress * remove commented code that should not be added back Co-authored-by: lg <[email protected]> * feat: proto dependencies for downgrade to 0.45 (#1933) * feat: add third_party proto * feat: add script for generating go files from proto, and swagger * feat: add protoc-doc-gen.sh * fix: antehandler to fit sdk v0.45 (#1918) * pause * no vscode errors * rewrite go.sum, go.work.sum and fix amino import * remove mauth docs * gofumpt * fix find * cant get docker to build locally * debug ibc test * fix ibc test * passing e2e * clean up commented out tests * remove more mauth * forgot to save * add back middleware test * fix upgrade * fix test setup * add TODO note * remove multihop test * fix: antehandler in sdkv0.45 * test: add back globalfee e2e test * fix: failure of verifying sending token amount * chore: remove comments * feat: simplify fee logic Co-authored-by: billy rennekamp <[email protected]> * test re-org (#1913) * pause * no vscode errors * rewrite go.sum, go.work.sum and fix amino import * remove mauth docs * gofumpt * fix find * cant get docker to build locally * debug ibc test * fix ibc test * passing e2e * clean up commented out tests * remove more mauth * forgot to save * add back middleware test * fix upgrade * fix test setup * add TODO note * remove multihop test * re-organized tests to make it easier to skip when working on a single one * remove gov tests * removed multihop tests * markdownlint (#1936) * fix: feegrant e2e test (#1940) * docs: update state sync (#1946) * Updated roadmap (#1947) * bump versions, remove e2e go.mod (#1944) * bump versions, remove e2e go.mod * stupid gofumpt errors * fixed packet forward configuration (#1941) * exclude e2e tests from test coverage upload (#1953) * exclude e2e tests from test coverage upload * swap order of test to exclude e2e * remove e2e from find * updated gov docs as specified in issue #1948 (#1949) * updated gov docs as specified in issue #1948 * fixed links * missed a few links * fix links (#1954) * test: Refactor gov e2e for v0.45 Rho (#1951) * WIP * Refactor gov tests for v45 * Refactor gov and add community spend test * Refactor * Set explicit sdk & tm versions for all dependencies Co-authored-by: billy rennekamp <[email protected]> * Skip broken redirect link check * Restrict disable link to single link Co-authored-by: billy rennekamp <[email protected]> * add back TestGaiaApp_Export (#1955) * pause * unit pasing, check e2e * Update test_helpers.go * fix: put iterator in closure (#1934) Co-authored-by: Milan Mulji <[email protected]> * uncomment still existing test (#1956) * uncomment still existing test * forgot to include this file * pause * remove again * add back rest of tests * push e2e image and use released versions in docker push action (#1939) Co-authored-by: billy rennekamp <[email protected]> * lint tests, too (#1960) * feat: Change MaxBypassMinFeeMsgGasUsage via NewFeeDecorator (#1961) * change MaxBypassMinFeeMsgGasUsage easily * move test to newTestGasLimit * chore: remove unneeded replace tags (#1959) * remove unneeded replace tags * remove ibc dep * Update go.mod Co-authored-by: Marko Baricevic <[email protected]> Co-authored-by: billy rennekamp <[email protected]> * chore(docs): add code guidelines (#1819) * code guidelines * add resources * Update docs/code-guidelines.md Co-authored-by: billy rennekamp <[email protected]> * git guidelines * small fixes and final steps Co-authored-by: billy rennekamp <[email protected]> * Update ko genesis.md (#1964) * offboarding (#1969) * chore(deps): bump actions/cache from 3.0.10 to 3.2.0 (#1968) Bumps [actions/cache](https://github.com/actions/cache) from 3.0.10 to 3.2.0. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](actions/cache@v3.0.10...v3.2.0) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * docs: fix global fee link (#1978) * chore(deps): bump github.com/gravity-devs/liquidity from 1.5.1 to 1.5.3 (#1981) Bumps [github.com/gravity-devs/liquidity](https://github.com/gravity-devs/liquidity) from 1.5.1 to 1.5.3. - [Release notes](https://github.com/gravity-devs/liquidity/releases) - [Changelog](https://github.com/Gravity-Devs/liquidity/blob/master/CHANGELOG.md) - [Commits](Gravity-Devs/liquidity@v1.5.1...v1.5.3) --- updated-dependencies: - dependency-name: github.com/gravity-devs/liquidity dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix: minor typos (#1984) Fix: minor typos * Migrations for quicksilver issue (#1976) * prepare v8 release (backport #1860) (#1867) * prepare v8 release (#1860) * chore: changelog * chore: update changelog * chore: add changelog for v7.0.3 * chore: add v7.1.0 to changelog Co-authored-by: Yaru Wang <[email protected]> (cherry picked from commit f0397fd) # Conflicts: # CHANGELOG.md * Update CHANGELOG.md Co-authored-by: billy rennekamp <[email protected]> * Added migrations for quicksilver stuck fund fix * Migrations for quicksilver * Check if balance of the refund addess is positive Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: billy rennekamp <[email protected]> Co-authored-by: lg <[email protected]> * test: remove unused const (#1988) * test: remove unused const * fix: lint * Changelog for V8 (#1982) * Update changelog for v8 * Update changelog for v8 * Update changelog * Make requested changes * Update date * Point to informal's fork of tendermint (#1990) * fix: remove ica controller params setup from upgrade handler (#1989) Signed-off-by: Yaru Wang <[email protected]> * Update codeowners (#1993) * preparing for v8.0.0-rc1 release (#1994) * prepare v8 release (backport #1860) (#1867) * prepare v8 release (#1860) * chore: changelog * chore: update changelog * chore: add changelog for v7.0.3 * chore: add v7.1.0 to changelog Co-authored-by: Yaru Wang <[email protected]> (cherry picked from commit f0397fd) # Conflicts: # CHANGELOG.md * Update CHANGELOG.md Co-authored-by: billy rennekamp <[email protected]> * docs: update changelog Signed-off-by: Yaru Wang <[email protected]> * docs: update docs Signed-off-by: Yaru Wang <[email protected]> Signed-off-by: Yaru Wang <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: billy rennekamp <[email protected]> * docs: changelog for v8.0.0-rc1 (#1997) Signed-off-by: Yaru Wang <[email protected]> Signed-off-by: Yaru Wang <[email protected]> * fix: correct ica wiring and update pfm fixes for v8 upgrade (#2008) * fix: remove duplicates of ica module * Remove ICAController * Add back ica new module config * Move migration run to end of upgrade * Update strangelove * Fix pfm * Add sdk logging * Add fix for pfm spelling mistake * Update ugrade handler logging, update pfm config * Fix linter * Update pfm * Update TransferKeeper to pass ChannelKeeper instead of RouterKeeper * Update pfm config * Update * Fix pfm again Co-authored-by: lg <[email protected]> * Update changelog for rc2 (#2022) * Update v8 backport rules (#2025) Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Yaru Wang <[email protected]> Co-authored-by: Petr Ivanov <[email protected]> Co-authored-by: Petr Ivanov <[email protected]> Co-authored-by: Danilo Pantani <[email protected]> Co-authored-by: billy rennekamp <[email protected]> Co-authored-by: ZorroZ77 <[email protected]> Co-authored-by: Yaru Wang <[email protected]> Co-authored-by: yaruwangway <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jacob Gadikian <[email protected]> Co-authored-by: Yongwoo Lee <[email protected]> Co-authored-by: Giancarlos Salas <[email protected]> Co-authored-by: Andrew Gouin <[email protected]> Co-authored-by: Milan Mulji <[email protected]> Co-authored-by: Emmanuel T Odeke <[email protected]> Co-authored-by: Lexa Michaelides <[email protected]> Co-authored-by: Reece Williams <[email protected]> Co-authored-by: Marko <[email protected]> Co-authored-by: Marko Baricevic <[email protected]> Co-authored-by: GwangIl-Park <[email protected]> Co-authored-by: omahs <[email protected]> Co-authored-by: stana-ethernal <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Description
Add code guidelines so we can review and create this document together.