Skip to content

Commit

Permalink
Merge pull request #166 from aura-nw/euphoria
Browse files Browse the repository at this point in the history
merge upgrade v0.7.1
  • Loading branch information
kienvc authored Nov 13, 2023
2 parents e2b4019 + 4ad31e1 commit fdf7ce2
Show file tree
Hide file tree
Showing 134 changed files with 50,707 additions and 25,772 deletions.
2 changes: 1 addition & 1 deletion .VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.4.5
v0.7.1
12 changes: 1 addition & 11 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
name: golangci-lint
on:
push:
branches:
- main
- dev
- serenity
- euphoria
pull_request:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
workflow_call:
jobs:
golangci:
name: lint
Expand Down
68 changes: 33 additions & 35 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,58 @@
# This workflow is useful if you want to automate the process of:
#
# a) Creating a new prelease when you push a new tag with a "v" prefix (version).
#
# This type of prerelease is meant to be used for production: alpha, beta, rc, etc. types of releases.
# After the prerelease is created, you need to make your changes on the release page at the relevant
# Github page and publish your release.
#
# b) Creating/updating the "latest" prerelease when you push to your default branch.
#
# This type of prelease is useful to make your bleeding-edge binaries available to advanced users.
#
# The workflow will not run if there is no tag pushed with a "v" prefix and no change pushed to your
# default branch.
name: pre-release
on:
push:
branches:
- dev
- halo
- serenity
- euphoria

jobs:
might_release:
test:
uses: ./.github/workflows/test.yml

lint:
uses: ./.github/workflows/golangci-lint.yml

pre_release:
needs: [test, lint]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: "install go"
uses: actions/setup-go@v3
with:
go-version: '1.19'
- name: Set variables
run: |
VER=$(cat .VERSION)-${{ github.head_ref || github.ref_name }}
echo "VERSION=$VER" >> $GITHUB_ENV
- name: "build binary"
run: go build -o aurad cmd/aurad/main.go
- uses: mukunku/[email protected]
id: checkTag
with:
tag: ${{ env.VERSION }}

- name: exit
if: ${{ steps.checkTag.outputs.exists == 'true'}}
run: |
echo ${{ steps.checkTag.outputs.exists }}
exit 1
- name: Delete the "latest" Release
- name: Delete the "latest" Pre-Release
uses: dev-drprasad/[email protected]
with:
keep_latest: 0
delete_tag_pattern: ${{ github.head_ref || github.ref_name }}
delete_tag_pattern: .*-${{ github.head_ref || github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set variables
run: |
VER=$(cat .VERSION)
echo "VERSION=$VER" >> $GITHUB_ENV
- name: Publish the Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.head_ref || github.ref_name }}_${{ env.VERSION }}
prerelease: true
target_commitish: ${{ github.head_ref || github.ref_name }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Publish the Pre-Release
run: make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46 changes: 17 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,37 @@
# This workflow is useful if you want to automate the process of:
#
# a) Creating a new prelease when you push a new tag with a "v" prefix (version).
#
# This type of prerelease is meant to be used for production: alpha, beta, rc, etc. types of releases.
# After the prerelease is created, you need to make your changes on the release page at the relevant
# Github page and publish your release.
#
# b) Creating/updating the "latest" prerelease when you push to your default branch.
#
# This type of prelease is useful to make your bleeding-edge binaries available to advanced users.
#
# The workflow will not run if there is no tag pushed with a "v" prefix and no change pushed to your
# default branch.
name: release
on:
push:
branches:
- main

jobs:
might_release:
test:
uses: ./.github/workflows/test.yml

lint:
uses: ./.github/workflows/golangci-lint.yml

release:
needs: [test, lint]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: "install go"
uses: actions/setup-go@v3
with:
go-version: '1.19'

- name: "build binary"
run: go build -o aurad cmd/aurad/main.go

- name: Set variables
run: |
VER=$(cat .VERSION)
echo "VERSION=$VER" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Publish the Release
uses: softprops/action-gh-release@v1
with:
tag_name: aura_${{ env.VERSION }}
prerelease: false
target_commitish: ${{ github.head_ref || github.ref_name }}
run: make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 1 addition & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
name: go-test
on:
push:
branches:
- main
- dev
- serenity
- euphoria
pull_request:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ vue/node_modules
vue/dist
release/
.idea
config.yml
config.yml
43 changes: 43 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
before:
hooks:
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.LIBWASM_VERSION }}/libwasmvm_muslc.x86_64.a -O /lib/libwasmvm_muslc.a
- apk add musl-dev
env:
- CGO_ENABLED=1
builds:
- id: aurad-linux-amd64
main: ./cmd/aurad
binary: aurad
goos:
- linux
goarch:
- amd64
flags:
- -mod=readonly
- -trimpath
ldflags:
- -s -w
- -X github.com/cosmos/cosmos-sdk/version.Name=aura
- -X github.com/cosmos/cosmos-sdk/version.AppName=aurad
- -X github.com/cosmos/cosmos-sdk/version.Version={{ .Env.VERSION }}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Env.COMMIT }}
- -X github.com/cometbft/cometbft/version.TMCoreSemVer={{ .Env.BFT_VERSION }}
- -X github.com/cosmos/cosmos-sdk/version.BuildTags={{ .Env.BUILD_TAGS_COMMA_SEP }}
- -linkmode=external
- -extldflags '-Wl,-z,muldefs --static -lm'
tags:
- netgo
- muslc
release:
prerelease: auto
checksum:
name_template: '{{ .ProjectName }}d_{{ .Env.VERSION }}_checksums.txt'
archives:
- id: binary
builds:
- aurad-linux-amd64
name_template: '{{ .ProjectName }}d'
wrap_in_directory: false
format: binary
files:
- none*
53 changes: 49 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,57 @@ Ref: https://keepachangelog.com/en/1.0.0/

## Unreleased

## [v0.4.5] - 2023-05-30
## [v0.7.1] - 2023-10-18
Update smartaccount

### Changes
- Change entrypoint call verify to sudo
- Use post handle to verify valid of tx from smartaccount
- Verify all smartaccount nested in the authz

## [v0.7.0] - 2023-09-22

Upgrade sdk to v0.47.4

### Changes
- The custom auth/vesting is deprecated - use sdk auth/vesting instead
- The ibc-middleware is deprecated - use sdk ibc-hooks instead
- The Params module is deprecated, each module now handles its own parameters
- Restructure proto, cmd
- Add types version for smartaccount module
- Upgrade testenv

### Features
- New PostHandler
- Gov proposals can be handled through the deprecated Params module or directly to the target module

## [v0.6.1] - 2023-07-07

### Improvements
- Fix ibc security, bump ibc-go from 3.3.0 to 4.3.1
- Fix wasmd security, bump wasmvm from 1.2.1 to 1.2.3
- Bump go version to 1.19, force to use go1.19 via makefile
- Add config swagger
- Change before check tx of smart account from query to execution

## [v0.6.0] - 2023-06-30

### Features
- Support module SmartAccount

## [v0.5.2] - 2023-06-19

### Improvements
- Fix bug create vesting account

## [v0.5.1] - 2023-04-19

### Improvements
- Applying the patch of wasmvm, upgrade from v1.2.1 to v1.2.3
- Add makefile support ledger

## [v0.5.0] - 2023-04-18

### Features
- Implement ibc-middleware support GMP protocol of Axelar network
- Upgrade wasmd from 0.29.1 to 0.31.0

## [v0.4.4] - 2023-03-13

Expand Down
Loading

0 comments on commit fdf7ce2

Please sign in to comment.