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

Bump up to v4.3.1 #19

Merged
merged 88 commits into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
5fea66b
deps: bumping go version 1.18 (#1627) (#1637)
mergify[bot] Jul 4, 2022
c26772b
delete unused 04-channel version functions (#1636) (#1638)
mergify[bot] Jul 4, 2022
6b60785
build(deps): bump github.com/cosmos/cosmos-sdk from 0.45.5 to 0.45.6 …
mergify[bot] Jul 4, 2022
672129a
Update CHANGELOG.md
Jul 4, 2022
5764260
Remove crossings hello (#1317) (#1692)
mergify[bot] Jul 12, 2022
ef37dfe
remove spurious `TestABCICodeDeterminism` tests (#1695) (#1697)
mergify[bot] Jul 13, 2022
a2b67ba
refactor: remove crossing hellos from 03-connection (backport #1672) …
mergify[bot] Jul 13, 2022
cdf48cd
docs: update middleware documentation (#1639) (#1700)
mergify[bot] Jul 14, 2022
a3356e7
put back module name in event (#1681) (#1712)
mergify[bot] Jul 15, 2022
94b2e97
Remove leftover crossing hello tests in connection handshake (#1724) …
mergify[bot] Jul 19, 2022
2bfb9d7
Thomas/1584 update docs apps (#1675) (#1731)
mergify[bot] Jul 19, 2022
01097fc
update fee mw docs, add formating, fix typos, increase readability (#…
mergify[bot] Jul 21, 2022
c641fd8
chore: denom traces migration handler (backport #1680) (#1755)
mergify[bot] Jul 22, 2022
bec4ca1
feat: allow governance to update the TrustingPeriod of the 07-tenderm…
mergify[bot] Jul 22, 2022
b08c5f0
move entry to right place
Jul 22, 2022
0b08666
add pseudocode to handle empty version string in OnChanOpenInit
Jul 26, 2022
9f0aa16
fix: change non nil relayer check to non empty (backport #1774) (#1790)
mergify[bot] Jul 27, 2022
1f26752
fix broken link (#1776) (#1809)
mergify[bot] Jul 28, 2022
bd29d36
fix: assert previous channel identifer is empty in Msg ValidateBasic …
mergify[bot] Jul 29, 2022
02bbc6f
fix: add cosmos_proto.implements_interface (backport #1740) (#1818)
mergify[bot] Jul 29, 2022
074fa60
fix: assert previous connection id to be empty (backport #1797) (#1828)
mergify[bot] Jul 29, 2022
adfcbeb
fix: ics27 check packet data length explicitly over nil check (#1882)…
mergify[bot] Aug 7, 2022
121799a
Upgrade cosmos-sdk to v0.45.7 (#1905)
devashishdxt Aug 8, 2022
4802796
fix: prevent blocked addresses from sending ICS 20 transfers (backpor…
mergify[bot] Aug 9, 2022
8c1283d
add mock module acc balance and refactor test case (backport #1942) (…
mergify[bot] Aug 9, 2022
3c104b5
fix: adding check for blocked addresses before escrowing fees (backpo…
mergify[bot] Aug 10, 2022
7fa2e89
Update CHANGELOG.md
Aug 10, 2022
2424c39
fix: "acknowledgement written" logs unsupported type (backport #1919)…
mergify[bot] Aug 12, 2022
53a67c8
Update CHANGELOG.md
Aug 12, 2022
9770492
Update CHANGELOG.md
Aug 12, 2022
3d837c2
Update CHANGELOG.md
Aug 12, 2022
d9aa1bb
Update CHANGELOG.md
Aug 12, 2022
22d1d8e
chore: update fee middleware docs to be more explicit about reasoning…
mergify[bot] Aug 12, 2022
b22f83b
Update CHANGELOG.md
Aug 12, 2022
30d1235
fix broken link (#2059) (#2097)
mergify[bot] Aug 23, 2022
607900f
chore: fix broken link to bank module spec (#2201) (#2209)
mergify[bot] Sep 7, 2022
67c0b5a
feat: adding interchain account address query to controller submodule…
mergify[bot] Sep 14, 2022
e4d332a
`release/v4.1.x` - Bump SDK to v0.45.8 and Tendermint to v0.34.21 (#2…
Sep 15, 2022
b6a4184
Merge pull request from GHSA-832c-mq9v-367r
colin-axner Sep 20, 2022
4cb1072
fix: add nil checks for controller and host keeper services (backport…
mergify[bot] Sep 20, 2022
aca801a
update changelog for v4.1.0 release
Sep 20, 2022
77bfa75
Update CHANGELOG.md
Sep 20, 2022
031c860
fix broken link/update link (#2338) (#2348)
mergify[bot] Sep 21, 2022
4683c79
Fix ICAControllerKeeper (#2303) (#2334)
mergify[bot] Sep 21, 2022
98d1fe7
Adding `paramsKeeper.Subspace(icahosttypes.SubModuleName)` (#2220) (#…
mergify[bot] Sep 21, 2022
ce4934f
docs: updating v3->v4 migration docs with fee middleware (#2127) (#2389)
mergify[bot] Sep 26, 2022
7f64aad
docs: add ics29 integration for sdk module (#2394) (#2407)
mergify[bot] Sep 27, 2022
c1866e5
fix: partial revert of #1942 (#2148) (#2474)
mergify[bot] Oct 6, 2022
c9adc07
MsgTransferResponse add sequence (backport #2377) (#2466)
mergify[bot] Oct 6, 2022
c81254d
fixing dead link to sdk v0.44 (#2488) (#2495)
mergify[bot] Oct 7, 2022
ca8aba4
fix broken links (#2511) (#2523)
mergify[bot] Oct 11, 2022
5b73e6b
add known bug about reopening fee-enabled ICA channels
Oct 12, 2022
e0446a6
Added optional packet metadata to the packet and message types (backp…
mergify[bot] Oct 14, 2022
9ee9eb4
add entry for #2305
Oct 25, 2022
f3f19fe
refactor: adapting transfer metadata bytes field to memo string (back…
mergify[bot] Oct 26, 2022
1fdb32c
docs: updating docs for memo field in ics20 transfer (#2602) (#2604)
mergify[bot] Oct 26, 2022
6662cbd
use controller module address instead of module name for NewMsgChanne…
mergify[bot] Oct 27, 2022
f8a268c
remove port prefix requirement (backport #2590) (#2633)
mergify[bot] Oct 31, 2022
c04345d
fix: skip emission of unpopulated memo field in ics20 (backport #2651…
mergify[bot] Nov 3, 2022
538f561
release v4.2.x: bump SDK version to v0.45.10 (#2588)
faddat Nov 4, 2022
e9f3d2a
remove duplicate import (#2673)
Nov 4, 2022
62ba589
add check send enabled (backport #2679) (#2689)
mergify[bot] Nov 5, 2022
196c5a9
prepare changelog for v4.2.0 release
Nov 7, 2022
73a87da
Update CHANGELOG.md
Nov 7, 2022
8f93bcc
Update incorrect PR link in changelog regarding "check x/bank send en…
mergify[bot] Nov 9, 2022
4c51916
add missing set order functions for ica (#2740) (#2756)
mergify[bot] Nov 15, 2022
80eb499
docs: fix migration/docs for ICA controller middleware (#2737) (#2763)
mergify[bot] Nov 15, 2022
66d293a
chore: integrated git cliff into the code base to automate generation…
mergify[bot] Nov 15, 2022
935de3a
Save gas on IsFeeEnabled (backport #2786) (#2815)
mergify[bot] Nov 23, 2022
4ad4091
chore: bump ics23 to v0.9.0 (backport #2868) (#2877)
mergify[bot] Dec 5, 2022
ca1b6b4
fix: check `x/bank` send enabled before escrowing fees (backport #294…
mergify[bot] Dec 19, 2022
56a4075
chore(statemachine)!: write channel state before invoking app callbac…
mergify[bot] Jan 18, 2023
c05a6d6
chore: updating CHANGELOG and cliff toml
chatton Jan 24, 2023
c6ceeb0
deps: bump cosmos sdk to v0.45.12 (#3049)
chatton Jan 24, 2023
8598dab
update changelog and git cliff toml
chatton Jan 24, 2023
e91ceb3
Update Dockerfile for 4.3.x (#3057)
chatton Jan 25, 2023
b9765c7
Remove excess quotes (#3073)
chatton Jan 30, 2023
a8a3775
Update CHANGELOG.md
Apr 6, 2023
c6907da
Handle ordered packets in UnreceivedPackets query. (backport #3346) (…
mergify[bot] May 18, 2023
d41f6d8
Update CHANGELOG.md
May 25, 2023
d713150
Merge pull request from GHSA-3v7p-4x7p-4rx7
damiannolan May 25, 2023
8873425
Merge pull request from GHSA-3v7p-4x7p-4rx7
damiannolan May 25, 2023
1b54a05
Merge pull request from GHSA-3v7p-4x7p-4rx7
damiannolan May 25, 2023
000d340
Merge pull request from GHSA-3v7p-4x7p-4rx7
damiannolan May 25, 2023
cdef4b3
Merge pull request from GHSA-3v7p-4x7p-4rx7
damiannolan May 25, 2023
8cd07a4
Merge pull request from GHSA-3v7p-4x7p-4rx7
damiannolan May 25, 2023
951c774
Merge pull request from GHSA-3v7p-4x7p-4rx7
damiannolan May 25, 2023
77bd8d1
Merge pull request from GHSA-3v7p-4x7p-4rx7
damiannolan May 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 30 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,41 @@ are the most critical to review.

closes: #XXXX


### Commit Message / Changelog Entry

```bash
type: commit message
```

see the [guidelines](../CONTRIBUTING.md#commit-messages) for commit messages. (view raw markdown for examples)


<!--
Example commit messages:

fix: skip emission of unpopulated memo field in ics20
deps: updating sdk to v0.46.4
chore: removed unused variables
e2e: adding e2e upgrade test for ibc-go/v6
docs: ics27 v6 documentation updates
feat: add semantic version utilities for e2e tests
feat(api)!: this is an api breaking feature
fix(statemachine)!: this is a statemachine breaking fix
-->

---

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

- [ ] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#pr-targeting)).
- [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
- [ ] Code follows the [module structure standards](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/structure.md).
- [ ] Wrote unit and integration [tests](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#testing)
- [ ] Updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`)
- [ ] Code follows the [module structure standards](https://github.com/cosmos/cosmos-sdk/blob/main/docs/docs/building-modules/11-structure.md).
- [ ] Wrote unit and integration [tests](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#testing).
- [ ] Updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`).
- [ ] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code).
- [ ] Added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md`
- [ ] Re-reviewed `Files changed` in the Github PR explorer
- [ ] Review `Codecov Report` in the comment section below once CI passes
- [ ] Provide a [commit message](../CONTRIBUTING.md#commit-messages) to be used for the changelog entry in the PR description for review.
- [ ] Re-reviewed `Files changed` in the Github PR explorer.
- [ ] Review `Codecov Report` in the comment section below once CI passes.
18 changes: 17 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,25 @@ jobs:
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
queries: crypto-com/cosmos-sdk-codeql@main,security-and-quality
if: env.GIT_DIFF
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)

- run: make build
- name: Autobuild
uses: github/codeql-action/autobuild@v2
if: env.GIT_DIFF

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ jobs:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
IBC_GO_VERSION=${{ github.ref_name }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Docker Build
run: docker build . --no-cache
run: docker build . --no-cache --build-arg IBC_GO_VERSION=v4.3.0

split-test-files:
runs-on: ubuntu-latest
Expand Down
139 changes: 110 additions & 29 deletions CHANGELOG.md

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,29 @@ All PRs require an approval from at least one CODEOWNER before merge. PRs which
- If you sat down with the PR submitter and did a pairing review please note that in the `Approval`, or your PR comments.
- If you are only making "surface level" reviews, submit any notes as `Comments` without adding a review.

### Commit Messages

Commit messages should be [conventional](https://www.conventionalcommits.org/en/v1.0.0/).

If opening a PR, include the proposed commit message in the PR description.

The commit message type should be one of:

* `feat` / `feature` for feature work.
* `bug` / `fix` for bug fixes.
* `imp` / `improvements` for improvements.
* `doc` / `docs` / `documentation` for any documentation changes.
* `test` / `e2e` for addition or improvements of unit, integration and e2e tests or their corresponding infrastructure.
* `deprecated` for deprecation changes.
* `deps` / `build` for changes to dependencies.
* `chore` / `misc` / `nit` for any miscellaneous changes that don't fit into another category.

**Note**: If any change is breaking, the following format must be used:
* `type` + `(api)!` for api breaking changes, e.g. `fix(api)!: api breaking fix`
* `type` + `(statemachine)!` for state machine breaking changes, e.g. `fix(statemachine)!: state machine breaking fix`

**`api` breaking changes take precedence over `statemachine` breaking changes.**

### Updating Documentation

If you open a PR on ibc-go, it is mandatory to update the relevant documentation in /docs.
Expand Down
15 changes: 12 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
FROM golang:1.20 as builder

ARG IBC_GO_VERSION

ENV GOPATH=""
ENV GOMODULE="on"

# ensure the ibc go version is being specified for this image.
RUN test -n "${IBC_GO_VERSION}"

COPY go.mod .
COPY go.sum .

RUN go mod download

ADD testing testing
ADD modules modules
ADD LICENSE LICENSE
COPY testing testing
COPY modules modules
COPY LICENSE LICENSE

COPY Makefile .

RUN make build

FROM ubuntu:20.04

ARG IBC_GO_VERSION

LABEL "org.cosmos.ibc-go" "${IBC_GO_VERSION}"

COPY --from=builder /go/build/simd /bin/simd

ENTRYPOINT ["simd"]
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ view-docs:
@cd docs && \
npm install && npm run serve


changelog:
docker run --rm -v "$$(pwd)"/.git:/app/ -v "$$(pwd)/cliff.toml":/app/cliff.toml orhunp/git-cliff:latest --unreleased --tag $(tag)

.PHONY: build-docs

###############################################################################
Expand Down
121 changes: 121 additions & 0 deletions cliff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# configuration file for git-cliff (0.1.0)

[changelog]
# changelog header
header = """
<!--
Usage:

Change log entries are generated by git cliff ref: https://github.com/orhun/git-cliff
This can be run using "make changelog tag=vx.y.z"

Each commit should be conventional, the following message groups are supported.

* feat, feature
* imp
* bug, fix
* deprecated
* (api)!
* (statemachine)!

Types of changes (Stanzas):

"Features" for new features. (feat, feature)
"Improvements" for changes in existing functionality. (imp)
"Deprecated" for soon-to-be removed features.
"Bug Fixes" for any bug fixes. (bug, fix)
"API Breaking" for breaking exported APIs used by developers building on SDK. Add (api)! e.g. fix(api)!: api breaking fix
"State Machine Breaking" for any changes that result in a different AppState given the same genesisState and txList. Add (statemachine)! e.g. fix(statemachine)!: state machine breaking fix
Ref: https://keepachangelog.com/en/1.0.0/
-->

# Changelog

All notable changes to this project will be documented in this file.

"""
# template for the changelog body
# https://tera.netlify.app/docs/#introduction
body = """
{% if version %}\
## [{{ version }}](https://github.com/cosmos/ibc-go/releases/tag/{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
* {{ commit.message | upper_first }}\
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespace from the template
trim = true
# changelog footer
footer = """
<!-- generated by git-cliff -->
"""

[git]
# parse the commits based on https://www.conventionalcommits.org
conventional_commits = true
# filter out the commits that are not conventional
filter_unconventional = true
# process each line of a commit as an individual commit
split_commits = true
# regex for preprocessing the commit messages
commit_preprocessors = [
# A reference to an issue is appened to commits that looks like "(#1234)", this will be replaced
# with a link to that issue, e.g. "[#$1234](https://github.com/cosmos/ibc-go/issues/1234)".
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/cosmos/ibc-go/issues/${2}))" },
# any reference to a pr like "pr-1234" will be replaced with a link to the PR.
{ pattern = '\(pr-([0-9]+)\)', replace = "([#${1}](https://github.com/cosmos/ibc-go/pulls/${1}))" },

# the following patterns only exist because "split_commits" is set to true, and we are processesing
# each line of the commit as a separate message.
# these exist to filter out common messages that appear in commit messages that are technically
# conventional, but we do not way to include in the changelog.
{ pattern = '^Signed-off-by:.*', replace='' },
{ pattern = '^Co-authored-by:.*', replace='' },
# don't include references to issues as changelog entries.
{ pattern = '^ref:.*', replace='' },
# exclude CVSS format, CVE can still be included in regular conventinal commits.
{ pattern = 'CVSS:.*', replace='' },
# don't include dependabot auto merge entries.
{ pattern = '.*dependabot-automerge-.*', replace='' },
# don't include statements saying which issue is closed.
{ pattern = '^closes:.*', replace='' },
# remove standalone links in the commit messages.
{ pattern = '^https://.*', replace='' },
# remove lines with html.
{ pattern = '^<.*', replace='' },
]

# regex for parsing and grouping commits
commit_parsers = [
# specifying the number in a comment is a workaround to enable ordering of groups.
# these comments are stripped out of the markdown with the filter "{{ group | striptags | trim | upper_first }}"
# above in the body template.
{ message = "^((?i)deps|(?i)dep|(?i)build)", group = "<!-- 0 -->Dependencies" },
{ message = '^.*\(api\)!', group = "<!-- 1 -->API Breaking" },
{ message = '^.*\(statemachine\)!', group = "<!-- 2 -->State Machine Breaking" },
{ message = "^((?i)improvements|(?i)imp)", group = "<!-- 3 -->Improvements" },
{ message = "^((?i)feature|(?i)feat)", group = "<!-- 4 -->Features" },
{ message = "^((?i)fix|(?i)bug)", group = "<!-- 5 -->Bug Fixes" },
{ message = "^((?i)doc|(?i)docs|(?i)documentation)", group = "<!-- 6 -->Documentation" },
{ message = "^((?i)test|(?i)e2e)", group = "<!-- 7 -->Testing" },
{ message = "^((?i)deprecated)", group = "<!-- 8 -->Deprecated" },
{ message = "^((?i)chore|(?i)misc|(?i)nit)", group = "<!-- 9 -->Miscellaneous Tasks" },
]
# filter out the commits that are not matched by commit parsers
filter_commits = false
# glob pattern for matching git tags
tag_pattern = "v[0-9]*"
# regex for skipping tags
skip_tags = ""
# regex for ignoring tags
ignore_tags = ""
# sort the tags chronologically
date_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"
Loading