Skip to content

Commit

Permalink
v2.3.1 (#121)
Browse files Browse the repository at this point in the history
* upgraded to use cosmos-sdk 46

* feat: added token factory

* feat: added ibc wasm hooks

* feat: added healthcheck route

* fix: renamed rest to error

* fix: comsos-sdk/46 imports

* feat: cosmossdk-46 add ICA

* feat: added token factory genesis

* feat: refactored upgrades and added tokenfactory genesis

* refactored terra app configs

* fix: added tokenfactory to app init

* feat: remove icagenesis from InitChainer

* feat: enable ica

* feat: ICA demo and instructions to run the demo

* fix: added test script to test chain upgrade + fixes for stores

* fix: lint issues

* fix: added ibc fee module

* fix: make sure chain upgrade tester runs for the current codebase

* feat: add alliance

* fix: updated github workflows and added go.mod

* fix: moved alliance keeper up

* feat: added alliance and token factory swagger

* feat: added ica host and controller swagger

* chore: update chain upgrade tester

* feat: intechain acc test all in one

* feat: restructure integration tests

* feat: integration tests ibc-hooks

* feat: integration tests with ibc-hooks

* feat: integration tests for alliance

* fix: typos for progoc gen

* feat: integration tests for versting accounts

* feat: waiting for alliance to be instantiated

* feat: integration tests for token factoryg

* feat: spendable balance caclculated by block

* chore: update cosmos sdk

* feat: validate the custom bank module integration

* fix: ci on cosmossdk 46

* fix: tests for vesting accounts

* removed dependency on cometbft-db

* chore: dependencies

* fix: golang version ci

* feat: upgrade ci from v3 to v4

* feat: add cosmwasm_1_1

* tests: added chain simulation

* updated cosmos-sdk

* added simulate into CI

* test: add unit tests for simulation

* fix:Gosec Security Scanner

* test: alliance integration tests params

* fix: swagger gen (#116)

* add release

* reup of release,dockerfile,makefile

* add readme/cc frommain

* fix error in readme

* add multiplatform builds

* remove darwin from  multiplatform builds

* update release build

* update makefile

* uncomment version for binary build

* create rls thru github cli

* set gh_token env variable

* change draft to prerelease

* change darwin to linux for mac build

* change darwin to linux for mac build

* create release then upload artifacts

* add github token to release action

* fix checkout in release job

* calculate rls hashes thru github action

* calculate checksum

* calculate checksum

* calculate checksum

* calculate checksum

* use --repo switch instead cloning

* Major upgrade to core (Alliance, IBC-hooks, ICA controller, token factory, cosmos v0.46) (#106)

* Cleanup (#98)

* golangci-lint run ./... --fix

* gofumpt

* cleaner linter config

* remove init.go

* Update/readme (#110)

* Create banner.png

* Update readme.md

* Delete banner.png

* Create CODE_OF_CONDUCT.md

* Update readme.md

* fix: swagger gen

* Revert "Cleanup (#98)" (#115)

This reverts commit a97277b.

* feat: update swagger gen

---------

Co-authored-by: Jacob Gadikian <[email protected]>
Co-authored-by: Evan <[email protected]>
Co-authored-by: emidev98 <[email protected]>
Co-authored-by: emidev98 <[email protected]>
Co-authored-by: Greg Junge <[email protected]>

* Update markdown files (#123)

* Update readme.md

* Update CHANGELOG.md

* Update RELEASES.md

* Update SECURITY.md

* Update README.md

* Update README.md

* fix: security wasmvm (#122)

* fix: security wasmvm

* add dokerfile updates

* update wasmd

* update ledger-go dep

* chore: increase code version

---------

Co-authored-by: gregnuj <[email protected]>

* Release/v2.3 (#127)

* fix: security wasmvm

* add dokerfile updates

* update wasmd

* update ledger-go dep

* Update markdown files (#123) (#124)

* Update readme.md

* Update CHANGELOG.md

* Update RELEASES.md

* Update SECURITY.md

* Update README.md

* Update README.md

Co-authored-by: Evan <[email protected]>

* Test (#126)

* Update markdown files (#123)

* Update readme.md

* Update CHANGELOG.md

* Update RELEASES.md

* Update SECURITY.md

* Update README.md

* Update README.md

* fix: security wasmvm (#122)

* fix: security wasmvm

* add dokerfile updates

* update wasmd

* update ledger-go dep

* chore: increase code version

---------

Co-authored-by: gregnuj <[email protected]>
Co-authored-by: Evan <[email protected]>
Co-authored-by: emidev98 <[email protected]>

* fix: coverage report

---------

Co-authored-by: javiersuweijie <[email protected]>
Co-authored-by: javier <[email protected]>
Co-authored-by: gregnuj <[email protected]>
Co-authored-by: Michal Turcan <[email protected]>
Co-authored-by: Jacob Gadikian <[email protected]>
Co-authored-by: Evan <[email protected]>
  • Loading branch information
7 people authored Apr 20, 2023
1 parent 4e583cc commit 9f557e6
Show file tree
Hide file tree
Showing 212 changed files with 34,828 additions and 37,699 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: 1.20.0
- run: go build ./...

test:
runs-on: ubuntu-latest
name: test
steps:
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: 1.20.0
- name: Checkout code
uses: actions/checkout@v3
- name: Test
Expand All @@ -34,9 +34,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: 1.20.0
- run: |
go mod tidy
CHANGES_IN_REPO=$(git status --porcelain)
Expand Down
70 changes: 70 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: docker-build

on:
pull_request:
branches:
- main
- test
push:
branches:
- main
- test
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout
uses: actions/checkout@v3

# https://docs.docker.com/build/ci/github-actions/multi-platform/
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2

# # https://github.com/docker/login-action
# - name: Login to DockerHub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Log in to the github container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: |
ghcr.io/${{ github.repository }}
# terramoney/core
tags: |
type=sha
type=edge,branch=test
type=semver,pattern={{tag}}
type=semver,pattern={{version}}
type=raw,value=latest,enable={{is_default_branch}}
- name: Build docker image
uses: docker/build-push-action@v3
with:
push: ${{ github.event_name != 'pull_request' }}
file: Dockerfile
platforms: linux/amd64,linux/arm64
tags: ${{ env.DOCKER_METADATA_OUTPUT_TAGS }}
labels: ${{ env.DOCKER_METADATA_OUTPUT_LABELS }}
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: 1.20.0
- uses: actions/checkout@v3
- uses: technote-space/get-diff-action@v4
with:
Expand All @@ -28,7 +28,7 @@ jobs:
- uses: golangci/golangci-lint-action@v3
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.45.2
version: v1.51.2
args: --timeout 10m
github-token: ${{ secrets.github_token }}
if: "env.GIT_DIFF != ''"
58 changes: 58 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Release

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+' # Push events to matching v*, i.e. v1.0, v20.15.10
- 'v[0-9]+.[0-9]+.[0-9]+-rc*' # Push events to matching v*, i.e. v1.0-rc1, v20.15.10-rc5

jobs:
release:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Create release for ${{github.ref_name}}
run: gh release create ${{github.ref_name}} --prerelease --generate-notes --repo ${{github.repository}}

artifacts:
if: startsWith(github.ref, 'refs/tags/')
needs: release
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
build_type: ['build-release-arm64', 'build-release-amd64']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set version tag
run: echo "VERSION=$(echo ${{github.ref_name}} | sed 's/^v//')" >> $GITHUB_ENV
- name: Create build directory
run: mkdir -p build/release
- name: Build ${{matrix.build_type}}
run: make ${{matrix.build_type}}
- name: Upload the artifacts to release
run: gh release upload ${{github.ref_name}} ./build/release/*

calculate-checksums:
needs: artifacts
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Create build directory
run: mkdir -p build/release
- name: Download artifacts
run: gh release download ${{github.ref_name}} --pattern '*.tar.gz' --dir build/release --repo ${{github.repository}}
- name: Create checksums
run: |
cd build/release
sha256sum *.tar.gz > checksum.txt
- name: Display checksums
run: cat build/release/checksum.txt
- name: Upload the checksum to release
run: gh release upload ${{github.ref_name}} build/release/checksum.txt --repo ${{github.repository}}
17 changes: 14 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
test-coverage-upload:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: 1.20.0
- uses: actions/checkout@v3
- uses: technote-space/get-diff-action@v4
with:
Expand All @@ -40,7 +40,7 @@ jobs:
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
excludelist+=" $(find ./ -type f -name '*.pb.go')"
for filename in ${excludelist}; do
filename=$(echo $filename | sed 's/^./github.com\/terra-money\/core/g')
filename=$(echo $filename | sed 's/^./github.com\/terra-money\/core\/v2/g')
echo "Excluding ${filename} from coverage report..."
sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
done
Expand All @@ -50,3 +50,14 @@ jobs:
file: ./coverage.txt # optional
fail_ci_if_error: true
if: "env.GIT_DIFF != ''"

test-simulation:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.20.0
- uses: actions/checkout@v3
- name: simulate
run: |
make simulate
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
.vscode
.idea
*.code-workspace
data

# Build
bin
Expand Down Expand Up @@ -51,3 +52,7 @@ dependency-graph.png
*.aux
*.out
*.synctex.gz

# Tests
scripts/tests/ibc-hooks/counter/target
scripts/tests/vesting-accounts/.vesting-periods.json
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,51 @@
# Changelog

Latest releases appear first.

## 2.3.0

## What's Changed
* feat: add alliance by @javiersuweijie in https://github.com/terra-money/core/pull/108
* fix: ci on cosmossdk 46 by @emidev98 in https://github.com/terra-money/core/pull/111
* feat: add cosmwasm_1_1 by @javiersuweijie in https://github.com/terra-money/core/pull/112
* tests: added chain simulation by @javiersuweijie in https://github.com/terra-money/core/pull/113
* fix: swagger gen by @emidev98 in https://github.com/terra-money/core/pull/116

## New Contributors
* @javiersuweijie made their first contribution in https://github.com/terra-money/core/pull/108

## Chain Upgrade Details
* Blockheight: 4711800
* Estimated time of upgrade: 2023-04-20 5:00:00 GMT+0

**Full Changelog**: https://github.com/terra-money/core/compare/v2.2.1...v2.3.0

## 2.2.1

**Full Changelog**: https://github.com/terra-money/core/compare/v2.1.4...v2.2.0

## What's Changed
* upgrade to cosmos-sdk v0.45.12 by @faddat in https://github.com/terra-money/core/pull/102

## New Contributors
* @faddat made their first contribution in https://github.com/terra-money/core/pull/102

**Full Changelog**: https://github.com/terra-money/core/compare/v2.2.0...v2.2.1

## 2.2.0

### What's Changed
* Update readme.md by @svv28 in https://github.com/terra-money/core/pull/85
* Bump SDK and IBC by @YunSuk-Yeo in https://github.com/terra-money/core/pull/87

### New Contributors
* @svv28 made their first contribution in https://github.com/terra-money/core/pull/85

## 2.1.0

### Improvements
- [#52](https://github.com/terra-money/core/pull/52) Enable `PeriodicVestingAccount` creation via tx ([1](https://github.com/terra-money/cosmos-sdk/compare/v0.45.4-terra.1...terra-money:v0.45.4-terra.2)) and Implement vesting token donation feature ([2](https://github.com/terra-money/cosmos-sdk/pull/88)).

### Bug Fixes
- [#60](https://github.com/terra-money/core/pull/60) Software Upgrade Proposal to correct an exchange vesting schedule.

Loading

0 comments on commit 9f557e6

Please sign in to comment.