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

WIP: batch grants update #291

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
88474d3
squashed v1.0.0: https://github.com/burnt-labs/xion/compare/v1.0.0
2xburnt Dec 21, 2024
ef053fb
squashed v2.0.0: https://github.com/burnt-labs/xion/compare/v2.0.0
2xburnt Dec 21, 2024
c415a6d
squashed v3.0.0: https://github.com/burnt-labs/xion/compare/v3.0.0
2xburnt Dec 21, 2024
de91248
squashed v3.1.1: https://github.com/burnt-labs/xion/compare/v3.1.1
2xburnt Dec 21, 2024
3971007
squashed v4.0.0: https://github.com/burnt-labs/xion/compare/v4.0.0
2xburnt Dec 21, 2024
d2ac3d0
squashed v5.0.0: https://github.com/burnt-labs/xion/compare/v5.0.0
2xburnt Dec 21, 2024
c5f312e
squashed v6.0.0: https://github.com/burnt-labs/xion/compare/v6.0.0
2xburnt Dec 21, 2024
94c4d9e
squashed v7.0.0: https://github.com/burnt-labs/xion/compare/v7.0.0
2xburnt Dec 21, 2024
1917092
squashed v8.0.0: https://github.com/burnt-labs/xion/compare/v8.0.0
2xburnt Dec 21, 2024
091091b
squashed v8.0.1: https://github.com/burnt-labs/xion/compare/v8.0.1
2xburnt Dec 21, 2024
0bf8312
squashed v9.0.0: https://github.com/burnt-labs/xion/compare/v9.0.0
2xburnt Dec 21, 2024
0c36c1d
squashed v9.0.1: https://github.com/burnt-labs/xion/compare/v9.0.1
2xburnt Dec 21, 2024
d2006e8
squashed v10.0.0: https://github.com/burnt-labs/xion/compare/v10.0.0
2xburnt Dec 21, 2024
974257b
squashed v11.0.0: https://github.com/burnt-labs/xion/compare/v11.0.0
2xburnt Dec 21, 2024
0b0fb02
squashed v11.0.1: https://github.com/burnt-labs/xion/compare/v11.0.1
2xburnt Dec 21, 2024
ab8867e
squashed v12.0.0: https://github.com/burnt-labs/xion/compare/v12.0.0
2xburnt Dec 21, 2024
5466ced
squashed v12.0.1: https://github.com/burnt-labs/xion/compare/v12.0.1
2xburnt Dec 21, 2024
e9dc078
squashed v13.0.0: https://github.com/burnt-labs/xion/compare/v13.0.0
2xburnt Dec 21, 2024
3512686
squashed v13.0.1: https://github.com/burnt-labs/xion/compare/v13.0.1
2xburnt Dec 21, 2024
d295a52
squashed v14.0.0: https://github.com/burnt-labs/xion/compare/v14.0.0
2xburnt Dec 21, 2024
c694360
squashed v14.1.0: https://github.com/burnt-labs/xion/compare/v14.1.0
2xburnt Dec 21, 2024
9554ae0
squashed v14.1.1: https://github.com/burnt-labs/xion/compare/v14.1.1
2xburnt Dec 21, 2024
e670844
WIP: batch grants update
Peartes Jan 1, 2025
8727cb5
chore: CLI command to update grants and fee config
Peartes Jan 2, 2025
df1975c
chore: integration test for CLI cmd to update treasury configs
Peartes Jan 2, 2025
4c4faec
fix: use multiple execute msg to update fee configs
Peartes Jan 2, 2025
dfc19a6
WIP: sign wasm update config with AA
Peartes Jan 3, 2025
f1031cf
feat: wasm treasury update config with AA signer
Peartes Jan 4, 2025
246627c
rebase on release/v14
Peartes Jan 6, 2025
863f92a
WIP: allow local and remote config files
Peartes Jan 8, 2025
c585bed
Merge branch 'feat/json-grants' of github.com:burnt-labs/xion into fe…
Peartes Jan 8, 2025
5bbe9ac
chore: remove unneeded files
Peartes Jan 8, 2025
4b3d520
chore: integration test for using local or url grant config file
Peartes Jan 8, 2025
a73c3a7
chore: set configUrl arg in make command
Peartes Jan 8, 2025
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
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Folders we don't want to copy to Docker daemon in `docker build . -t cosmwasm/xiond:latest`
build/
.github/
.vscode/
devnet/
45 changes: 0 additions & 45 deletions .github/dependabot.yml

This file was deleted.

74 changes: 74 additions & 0 deletions .github/workflows/build-release-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Build Release Info
# Run for new release tags only

on:
workflow_call:
workflow_dispatch:

jobs:
build-release-info:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}

steps:
- name: checkout
uses: actions/checkout@v4

- name: Prepare environment
run: mkdir -p release

- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: release
pattern: xiond-*
merge-multiple: true

- name: Create binaries.json
working-directory: release
id: binaries-json
run: |
set -Eeuo pipefail
ls xiond-* | grep -v 'xiond-darwin-all' | while read -r file; do
platform=$(echo $file | cut -d- -f2- | sed -E 's/^rc[0-9]*-//g; s/-/\//g')
checksum=$(sha256sum "$file" | awk '{ print $1 }')
echo "$platform: https://github.com/burnt-labs/xion/releases/download/${{ github.ref_name }}/$file?checksum=sha256:$checksum"
done | yq '{"binaries": .}' -o json | tee binaries.json

- name: Upload binaries.json file
uses: actions/upload-artifact@v4
with:
name: binaries.json
path: release/binaries.json
retention-days: 3
if-no-files-found: error

- name: Create version.json
working-directory: release
run: |
set -Eeuo pipefail
upgrade_name=$(echo $GITHUB_REF_NAME | cut -d. -f1)
jq -s '.[0] * (.[1] // {})' <(go mod edit -json | jq --arg name $upgrade_name '{
name: $name,
tag: "${{ github.ref_name }}",
height: 0,
proposal: 0,
go_version: .Go,
cosmos_sdk_version: (.Require[] | select(.Path == "github.com/cosmos/cosmos-sdk") | .Version),
cosmwasm_enabled: (.Require[] | select(.Path == "github.com/CosmWasm/wasmd") != null),
cosmwasm_version: (.Require[] | select(.Path == "github.com/CosmWasm/wasmd") | .Version),
ibc_go_version: (.Require[] | select(.Path == "github.com/cosmos/ibc-go/v7") | .Version),
consensus: {
type: "cometbft",
version: (.Require[] | select(.Path == "github.com/cometbft/cometbft") | .Version)
}
}') binaries.json | tee version.json

- name: Upload version.json files
uses: actions/upload-artifact@v4
with:
name: version.json
path: release/version.json
retention-days: 3
if-no-files-found: error
76 changes: 76 additions & 0 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Build Release
# Run for new release tags only

on:
workflow_call:
workflow_dispatch:

jobs:
build-release:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}

steps:
- name: Create release directory
run: mkdir -p release

- name: Build Changelog
id: changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Output Changelog
run: echo "${{steps.changelog.outputs.changelog}}"

- name: Create release for ${{ github.ref_name }}
id: update-release
uses: ncipollo/release-action@v1
with:
name: Release ${{ github.ref_name }}
allowUpdates: true
body: ${{ steps.changelog.outputs.changelog }}
draft: false
generateReleaseNotes: true
prerelease: true
removeArtifacts: false # important, true will remove src archives
tag: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}
updateOnlyUnreleased: true

- name: Download release archives
working-directory: release
run: |
gh release download ${{ github.ref_name }} \
--repo=${{ github.repository }} \
--archive=tar.gz
gh release download ${{ github.ref_name }} \
--repo=${{ github.repository }} \
--archive=zip
ls

- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: release
pattern: xiond-*
merge-multiple: true

- name: Create checksums
working-directory: release
run: |
sha256sum * | tee checksum.txt

- name: Remove release archives
working-directory: release
run: |
rm -f *.zip *.tar.gz
ls

- name: Upload release assets
working-directory: release
run: |
gh release upload ${{ github.ref_name }} * \
--repo ${{ github.repository }} \
--clobber
45 changes: 45 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and Test

on:
workflow_call:
workflow_dispatch:
pull_request:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Golang CI Lint
uses: burnt-labs/xion/.github/workflows/golangci-lint.yaml@main
secrets: inherit

update-swagger:
name: Update Swagger
uses: burnt-labs/xion/.github/workflows/update-swagger.yaml@main
secrets: inherit

unit-tests:
name: Go Unit Tests
uses: burnt-labs/xion/.github/workflows/tests.yaml@main
secrets: inherit

build-docker:
name: Build Docker Images
uses: burnt-labs/xion/.github/workflows/docker-build.yaml@main
secrets: inherit

docker-scout:
needs: build-docker
name: Docker Scout
uses: burnt-labs/xion/.github/workflows/docker-scout.yaml@main
secrets: inherit

interchain-tests:
needs: build-docker
name: Interchain tests
uses: burnt-labs/xion/.github/workflows/integration-tests.yaml@main
secrets: inherit
93 changes: 93 additions & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Create Release
# Run for new release tags only

on:
workflow_dispatch:
push:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+'
- 'v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Golang CI Lint
uses: burnt-labs/xion/.github/workflows/golangci-lint.yaml@main
secrets: inherit

update-swagger:
name: Update Swagger
uses: burnt-labs/xion/.github/workflows/update-swagger.yaml@main
secrets: inherit

unit-tests:
name: Go Unit Tests
uses: burnt-labs/xion/.github/workflows/tests.yaml@main
secrets: inherit

build-darwin-binaries:
name: Build Darwin Binaries
uses: burnt-labs/xion/.github/workflows/darwin-build.yaml@main
secrets: inherit

build-docker:
name: Build Docker Images
uses: burnt-labs/xion/.github/workflows/docker-build.yaml@main
secrets: inherit

push-docker:
name: Push Docker Images
needs: build-docker
uses: burnt-labs/xion/.github/workflows/docker-push.yaml@main
secrets: inherit

push-heighliner:
name: Push Heighliner Images
needs: build-docker
uses: burnt-labs/xion/.github/workflows/heighliner-push.yaml@main
secrets: inherit

docker-scout:
name: Docker Scout
needs: build-docker
uses: burnt-labs/xion/.github/workflows/docker-scout.yaml@main
secrets: inherit

interchain-tests:
name: Interchain tests
needs: build-docker
uses: burnt-labs/xion/.github/workflows/integration-tests.yaml@main
secrets: inherit

build-release-info:
name: Build Release Info
needs:
- build-docker
- build-darwin-binaries
uses: burnt-labs/xion/.github/workflows/build-release-info.yaml@main
secrets: inherit

build-release:
name: Build Release
needs:
- lint
- update-swagger
- unit-tests
- docker-scout
- interchain-tests
- build-release-info
- build-darwin-binaries
uses: burnt-labs/xion/.github/workflows/build-release.yaml@main
secrets: inherit

# TODO: move to triggered action in burnt-networks repo
# update-networks:
# name: Update Networks Repo
# needs:
# - build-release
# - build-release-info
# uses: burnt-labs/xion/.github/workflows/update-networks.yaml@main
# secrets: inherit
Loading
Loading