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

Feat/dkim module #257

Open
wants to merge 625 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
625 commits
Select commit Hold shift + click to select a range
f677459
debug subspace issue
ash-burnt Mar 22, 2024
1cc619c
JWK Util and re-upgrade for params (#182)
froch Mar 28, 2024
0491cdd
wip testing
edjroz Mar 26, 2024
c6e76d8
wip err logs
edjroz Mar 26, 2024
2f2517d
WIP remove multipliers
edjroz Mar 26, 2024
54dd2ba
switch Coin to Dec types
edjroz Mar 26, 2024
d3d61f1
fix unit tests changing Coin to DecCoin
edjroz Mar 26, 2024
12455bf
set log to debug
ash-burnt Mar 26, 2024
bd0bb09
unused comment
ash-burnt Mar 26, 2024
9cd4b9a
integration test in CI
ash-burnt Mar 26, 2024
43f1d21
switch error logs to debugs
edjroz Mar 26, 2024
a17671a
Update integration_tests/jwt_aa_test.go
edjroz Mar 26, 2024
a4cc294
Update integration_tests/minimum_fee_test.go
edjroz Mar 26, 2024
73ad578
simplify debug log
edjroz Mar 26, 2024
ce8f005
pick max denomination for gas
edjroz Mar 27, 2024
bef2b30
add integration test to CI
ash-burnt Mar 26, 2024
118c39a
fix failing interchaintest
froch Mar 27, 2024
a834306
adjust gas to 1.3 to match testnet & mainnet
edjroz Mar 27, 2024
eb2dd25
Globalfee modifiers (#183)
froch Mar 28, 2024
c303f5c
Fix Docker Scout invocation
froch Mar 28, 2024
34c82a9
Fix Docker Scout invocation (#184)
froch Mar 28, 2024
dee3ea0
fixes for jwk utils and queries (#185)
ash-burnt Apr 5, 2024
d0f12b7
token factory module (#186)
edjroz Apr 6, 2024
a9bb0f5
pre-audit linting and cleanup (#188)
ash-burnt Apr 7, 2024
62919ff
Feat/fork wasmd (#177)
Peartes Apr 8, 2024
d5da4cf
merge main and lint
ash-burnt Apr 8, 2024
3d64ad1
merge main
ash-burnt Apr 8, 2024
a3af2e9
incorrect func sig
ash-burnt Apr 8, 2024
8fe3753
[WIP] v7 upgrade
edjroz Apr 8, 2024
cf2905b
Merge branch 'feat/aa-migration' of github.com:burnt-labs/xion into f…
edjroz Apr 8, 2024
cbe9c6b
test migration with arbitrary number of accounts
edjroz Apr 8, 2024
ef3f380
consildate v7 into v6
edjroz Apr 9, 2024
9f07daa
Rework existing upgrade test to leverage prebuilt heighliner packages
froch Apr 3, 2024
4bf3430
Update dependencies
froch Apr 3, 2024
b637510
Rebuild xiond with private ibc-go
froch Apr 3, 2024
28d8921
Checkpoint 038_039
froch Apr 5, 2024
2b0628a
Add test docstring
froch Apr 5, 2024
8204151
Setup interchain with Xion <=> Osmosis relaying
froch Apr 5, 2024
10de0ee
Add Xion <=> Axelar to interchain relaying
froch Apr 5, 2024
105d877
Kidnap IBC conformance tests
froch Apr 5, 2024
62b620b
Use ibc.GetTransferChannel between srcChainID and dstChainID
froch Apr 6, 2024
3aec164
Remove renamed upgrade test
froch Apr 9, 2024
b15e3d1
Remove mention of IBC in existing upgrade test; it doesn't test it
froch Apr 9, 2024
bbc71be
Rename TestXionUpgradeIBC for genericity
froch Apr 9, 2024
e7b1020
Convert IBC test to table-driven; testing only one interchain pair
froch Apr 9, 2024
3816ce7
Restrict IBC conformance to a single test case for now
froch Apr 10, 2024
50247ca
Add GH Action for standalone Heighliner build
froch Apr 10, 2024
a44fe77
Upgrade ibc-go to v7.4.0
froch Apr 10, 2024
872993e
Tag standalone heighliner build with git SHA instead of latest
froch Apr 10, 2024
f360fde
Remove v7 upgrade because it's not being used
froch Apr 10, 2024
2ff8334
Add Software Upgrade govprop for IBC using prebuilt heighliners
froch Apr 10, 2024
0e1ee54
Test IBC conformance after Software Upgrade govprop passes
froch Apr 10, 2024
380b01b
Fix upgadeTest
froch Apr 10, 2024
c777e6e
Add docstring
froch Apr 10, 2024
7eba16a
Fix Docker Scout GH Action target
froch Apr 10, 2024
bb510e0
Add `--tests false` to golangci GH Action
froch Apr 10, 2024
0772270
Fix Docker image builds for ECR and Dockerhub
froch Apr 10, 2024
312ded1
Parameterize AA wasm codeID according to chainID
froch Apr 11, 2024
239a8b9
Ensure to close the semaphore channel
froch Apr 11, 2024
ee6caf8
Add atomic counter for final migrated contracts tally
froch Apr 11, 2024
267cd3f
Set chainID to xion-integration-1 for integration tests
froch Apr 11, 2024
50b8ef3
Remove extra Dockerfile steps
froch Apr 11, 2024
669a686
Tweak logging
froch Apr 11, 2024
8593f58
Add IBC upgrade table-driven tests and concurrent migrations (#190)
froch Apr 15, 2024
7a842b3
Add paramchange proposal
froch Apr 15, 2024
7ece4ee
Update go.mod for interchaintests fork
froch Apr 15, 2024
8e3d0f1
Remove a branch listener for Heighliner GH Action
froch Apr 15, 2024
275c474
Remove Xion from v6 upgrade
froch Apr 15, 2024
73c7322
Remove AA paramChange govprop from IBC test
froch Apr 15, 2024
8f15878
Rename xion-integration-1 to xion-1
froch Apr 16, 2024
cb185b4
Add Token Factory and upgrade IBC to 7.4.0 (#165)
froch Apr 16, 2024
f750e55
Fix Release GH Action build target
froch Apr 16, 2024
9667057
Fix Release GH Action build target (#191)
froch Apr 16, 2024
40bdb48
query commands for webauthn (#204)
ash-burnt May 20, 2024
155e3e8
Upgrade indirect dependencies (#197)
froch May 20, 2024
7c5f10e
Replace AWS access keys with OIDC assume-role
froch May 20, 2024
5883240
Add permissions for id-token write
froch May 20, 2024
b31ef1c
Replace AWS access keys with OIDC assume-role (#208)
froch May 20, 2024
e8bb1b5
Item 12: return the private claims from a successful jwt check (#200)
ash-burnt May 21, 2024
1e2dada
item 7: Add jwk delete msg to global fee (#201)
edjroz May 21, 2024
3725605
return new audience from state modification handlers (#198)
ash-burnt May 21, 2024
6509d51
Audit Item #2: Prove that key rotation works (#192)
ash-burnt May 21, 2024
24e6804
Item 4: validate admin addr on genesis audiences (#194)
ash-burnt May 21, 2024
bc6d413
max page sizes in audience query to 100 (#199)
ash-burnt May 21, 2024
08f649b
check new admin format during validate basic (#196)
ash-burnt May 21, 2024
36a6161
allow optional non-sender admin in cli (#195)
ash-burnt May 21, 2024
ad29d71
Item 3: Check for shared key types during validation (#193)
ash-burnt May 21, 2024
7867ef6
Audit Item 8: register command, can add jwt (#203)
edjroz May 21, 2024
5fd8b43
item 1: jwk commit reveal (#202)
ash-burnt May 21, 2024
848c0cb
Feat/auto passkey (#207)
Peartes May 21, 2024
e836350
feegrants for authz and smart contracts (#206)
ash-burnt Jun 3, 2024
366901d
remove incorrect replace commands (#212)
ash-burnt Jun 20, 2024
351972c
add upgrade to v7; includes: audit fixes + wasmd patch
edjroz Jun 20, 2024
61b7e00
update: network upgrade test
edjroz Jun 20, 2024
0d9ac6e
patch upgrade log
edjroz Jun 20, 2024
d24c189
Merge pull request #213 from burnt-labs/enhancement/v7
edjroz Jun 20, 2024
01c5275
Set upgrade name to v7.0.0 (#214)
froch Jun 20, 2024
589303b
Feat/treasury contract (#211)
Peartes Jun 27, 2024
84aec71
updated contracts for dlmalloc issue (#216)
ash-burnt Jul 2, 2024
ffd5721
enable snapshot cli (#218)
2xburnt Jul 3, 2024
8a194f7
update abtract-account to register amino structure in codec
edjroz Jul 15, 2024
5547fe7
Merge pull request #221 from burnt-labs/patch/abstract-account-amino-…
edjroz Jul 15, 2024
18dee1c
add in authz stargate query (#209)
Peartes Jul 16, 2024
7993754
import correct types (#219)
ash-burnt Jul 16, 2024
ddb2b74
update globalfee params, to reovke grants
edjroz Jul 17, 2024
2c3b30c
Merge pull request #223 from burnt-labs/patch/globalfee-param-update
edjroz Jul 17, 2024
bc91ddb
Software Upgrade v8.0.0 (#222)
froch Jul 17, 2024
a1cd51f
Fix wasmvm SIGABRT regression (#227)
froch Jul 18, 2024
04a5ce1
Feat/treasury contract update (#228)
Peartes Jul 22, 2024
5d2d1aa
multi allowance feegrant and tests (#225)
ash-burnt Jul 22, 2024
2b98f65
add empty v9 upgrade (#231)
2xburnt Jul 22, 2024
2c88c66
Chore/protoc swagger gen (#232)
2xburnt Jul 30, 2024
bc4007b
Chore/build release (#239) (#240)
2xburnt Aug 5, 2024
cf750dd
[WIP] testing out revoking of allowances (#230)
edjroz Aug 5, 2024
668f0a6
Pull all jobs to the same level (#243)
ash-burnt Aug 6, 2024
72d613a
add devnet environment (#241)
2xburnt Aug 6, 2024
8cd16fd
fix typo in ./proto/xion/jwk/v1/query.proto (#234)
2xburnt Aug 6, 2024
d8d4027
update readme (#238)
2xburnt Aug 6, 2024
4e1aa82
add workflow dispatch to primary workflows, eliminate second files (#…
2xburnt Aug 6, 2024
319c044
Fix/workflow tag (#244)
2xburnt Aug 6, 2024
f45a90e
add upgrade-swagger.yml workflow to main to allow new workflow prs
2xburnt Aug 11, 2024
ef9c658
Chore/docker multiplatform (#246)
2xburnt Aug 12, 2024
cbe7e88
buf generate must run from within proto dir, do not need to gen cosmo…
2xburnt Aug 20, 2024
a2e18e0
Chore/devnet (#249)
2xburnt Aug 22, 2024
a6c028f
Fix/gosec errors (#253)
2xburnt Aug 22, 2024
47e4ffc
revert changed fn
2xburnt Aug 23, 2024
e63e449
fix image load
2xburnt Aug 23, 2024
b6072cd
use artifacts in docker scout
2xburnt Aug 23, 2024
18995e5
use artifacts in docker scout
2xburnt Aug 23, 2024
4223238
wip
2xburnt Aug 23, 2024
dff2742
build all in one workflow
2xburnt Aug 23, 2024
f18aaaf
build all in one workflow
2xburnt Aug 23, 2024
f3142f2
mend
2xburnt Aug 23, 2024
ae214d2
mend
2xburnt Aug 23, 2024
6b89d9d
fix ref format
2xburnt Aug 23, 2024
cdba72d
just build integration test in ubuntu runner
2xburnt Aug 23, 2024
06c0804
fix error in dockerffile
2xburnt Aug 23, 2024
4a8c084
Set selector to ARC runners
froch Aug 24, 2024
19b3b7e
fix image name
2xburnt Aug 30, 2024
8f5903a
fix image name
2xburnt Aug 30, 2024
b768116
fix image tag for merge
2xburnt Aug 30, 2024
458cdd3
update workflows for release
2xburnt Aug 30, 2024
b0f484a
update workflows for release
2xburnt Aug 30, 2024
c69b941
update workflows for release
2xburnt Aug 30, 2024
37f3410
change build names
2xburnt Aug 30, 2024
f7e12d5
change build names
2xburnt Aug 30, 2024
0d63086
change build names
2xburnt Aug 30, 2024
5b9e6d4
fix errors
2xburnt Aug 30, 2024
4c6b31f
fix errors
2xburnt Aug 30, 2024
dbbee19
fix platform string in integration tests
2xburnt Aug 30, 2024
1d08987
fix error
2xburnt Aug 30, 2024
e477fde
add LIB Path
2xburnt Aug 30, 2024
872e604
add fix test bin name
2xburnt Aug 30, 2024
dc1c0bd
change tags to prevent collision
2xburnt Aug 30, 2024
6f33046
fix build manifest
2xburnt Aug 30, 2024
357d7ac
fix image tag
2xburnt Aug 30, 2024
ca2b3fb
manifest skip <none>
2xburnt Aug 30, 2024
f555c53
fix push mainfest
2xburnt Aug 30, 2024
3b4fff0
fix push manifest
2xburnt Aug 30, 2024
5e18a0d
docker push in heighliner.yml is WIP
2xburnt Aug 30, 2024
d299a4b
rename files as needed
2xburnt Aug 30, 2024
1d7a2bf
create tag for workflows
2xburnt Aug 30, 2024
d3e462a
Fix/docker pull error (#254)
2xburnt Sep 3, 2024
b3239a1
Update build-test.yml
2xburnt Sep 3, 2024
160c6a8
Update build-test.yml
2xburnt Sep 3, 2024
9c54494
rename file
2xburnt Sep 3, 2024
3f424a3
use @main for workflows
2xburnt Sep 3, 2024
6131934
Update docker-push.yml
2xburnt Sep 3, 2024
27d70a3
fix xiond binary names in release workflow
2xburnt Sep 3, 2024
6802dec
do not commit pr to networks repo
2xburnt Sep 3, 2024
0dd06f1
fix xiond binary names in release workflow
2xburnt Sep 3, 2024
8d9bb4d
Update workflows
2xburnt Sep 5, 2024
a0e8f7a
fix jq in release.yml workflow
2xburnt Sep 5, 2024
5b57a29
Interchaintest v8 (#229)
ash-burnt Sep 6, 2024
780e5eb
WIP: dkim
Peartes Sep 10, 2024
1bd2f67
wip: dkim
Peartes Sep 12, 2024
f9172bd
feat: add in grpc query to wasmd (#256)
Peartes Sep 12, 2024
e7f9b7d
Merge branch 'main' of github.com:burnt-labs/xion into feat/dkim-module
Peartes Sep 17, 2024
c45d518
WIP: dkim
Peartes Sep 17, 2024
2154a52
fix: add in selector into dkim struct field
Peartes Sep 18, 2024
239fc4f
chore: add in DKIM pub keys
Peartes Sep 18, 2024
0b8e48b
Merge branch 'main' into feat/dkim-module
Peartes Sep 18, 2024
a57106d
chore: remove dkim pubkey
Peartes Sep 19, 2024
ee24096
Merge branch 'feat/dkim-module' of github.com:burnt-labs/xion into fe…
Peartes Sep 19, 2024
245a61a
chore: change position of primary key
Peartes Sep 19, 2024
cea3155
[WIP] Add Simulate Test (#220)
edjroz Sep 19, 2024
4c392fa
chore: add in validation for dkim public keys
Peartes Sep 20, 2024
cf795f1
upgrade cosmos sdk to v0.50.10 (#260)
2xburnt Sep 20, 2024
cabbc3e
Remove overridden sdk (#262)
ash-burnt Sep 23, 2024
da19626
WIP
Peartes Sep 24, 2024
7a50742
chore: add in more unit testing
Peartes Sep 26, 2024
8fb809c
chore: modify cli usage
Peartes Sep 26, 2024
4db9659
upgrade version update
ash-burnt Oct 1, 2024
3cebc42
Enable wasm light clients (#258)
ash-burnt Oct 1, 2024
28c2203
Add go releaser (#263)
2xburnt Oct 1, 2024
77e405f
fix files renamed in error
2xburnt Oct 2, 2024
9fe2c95
remove ibc wasm (#265)
ash-burnt Oct 3, 2024
0cb5721
add heighliner push (#266)
2xburnt Oct 3, 2024
d0af5db
udpate release workflow to push heighliner images (#268)
2xburnt Oct 3, 2024
9993434
IBCWasm upgrade test and fix (#269)
ash-burnt Oct 3, 2024
fcf1c7e
IBCWasm Store Added to Upgrade (#270)
ash-burnt Oct 4, 2024
4bb2b97
Use direct client connection for simulation. (#267)
edjroz Oct 6, 2024
24f349a
WIP
Peartes Oct 8, 2024
716d0ef
feat: add in query platform fee into xion module (#273)
Peartes Oct 10, 2024
c695ada
Mint Module Bugfix (#275)
ash-burnt Oct 18, 2024
80609c0
up the wasm size limits (#278)
ash-burnt Oct 21, 2024
4c19477
Be able to set platform send minimums (#271)
ash-burnt Oct 21, 2024
99ce021
re-add wasm client store upgrade (#280)
ash-burnt Oct 25, 2024
91c966b
chore: custom poseidon function
Peartes Oct 28, 2024
bbd9db8
debug
Peartes Oct 28, 2024
05ca878
debug
Peartes Oct 28, 2024
68059df
chore: function to compute the poseidon of the public key
Peartes Oct 28, 2024
970785f
doc: add readme
Peartes Oct 28, 2024
c9a74a2
Merge branch 'main' of github.com:burnt-labs/xion into feat/dkim-module
Peartes Oct 28, 2024
629f123
fix: lint
Peartes Oct 29, 2024
07ac710
fix: linting
Peartes Oct 29, 2024
5cb8ece
fix: disable gosec G115
Peartes Oct 29, 2024
c89289e
fix: linting
Peartes Oct 29, 2024
fc9abaa
fix: linting
Peartes Oct 29, 2024
d077a35
update protoc-swagger-gen.sh for newer protoc, use openapi
2xburnt Oct 29, 2024
f2af8d2
fix: fixes
Peartes Oct 30, 2024
efef1b4
Merge branch 'feat/dkim-module' of github.com:burnt-labs/xion into fe…
Peartes Oct 30, 2024
26fc7bf
Fix/no_version (#279)
2xburnt Oct 30, 2024
4dbfa00
Merge branch 'main' into feat/dkim-module
2xburnt Oct 30, 2024
509852d
chore: move poseidon hash comparison to ValidateBasic
Peartes Nov 4, 2024
2e4a936
Merge branch 'feat/dkim-module' of github.com:burnt-labs/xion into fe…
Peartes Nov 4, 2024
3d95c2c
WIP: dkim module integration test
Peartes Nov 12, 2024
1878d8e
chore: add in dkim remove in integration test
Peartes Nov 13, 2024
995089a
chore: add in generate dkim public key CLI command
Peartes Nov 14, 2024
29449eb
fmt: format proto
Peartes Nov 14, 2024
ae4fcd3
chore: use generate dkim pubkey CLI command in dkim integration test
Peartes Nov 14, 2024
404329a
fix: failing unit test
Peartes Nov 14, 2024
52d6e56
chore: add in make target for dkim test
Peartes Nov 14, 2024
14f75af
chore: update Readme
Peartes Nov 14, 2024
24affed
expose queries for minimums (#281)
ash-burnt Nov 15, 2024
2d9c3ca
fix: move non-deterministic code away from module package
Peartes Nov 16, 2024
2289198
Merge branch 'main' of github.com:burnt-labs/xion into feat/dkim-module
Peartes Nov 17, 2024
048ab4d
secondary index, added multiple result queries
ash-burnt Nov 18, 2024
df6986c
secondary index, added multiple result queries
ash-burnt Nov 18, 2024
2200e48
lint
ash-burnt Nov 18, 2024
18c9917
chore: no cli tx commands
Peartes Nov 18, 2024
ff45347
add revocation
ash-burnt Nov 18, 2024
1684da3
Merge branch 'feat/dkim-module' of github.com-ash:burnt-labs/xion int…
ash-burnt Nov 18, 2024
01e1230
WIP: working on revoking and dkim pubkeys query
Peartes Nov 18, 2024
a2ac1c1
errors
ash-burnt Nov 18, 2024
d74d82b
chore: add in DkimPubkeys query into integration tests
Peartes Nov 18, 2024
a1a7e13
Merge branch 'feat/dkim-module' of github.com:burnt-labs/xion into fe…
Peartes Nov 18, 2024
046ca92
chore: undo local changes
Peartes Nov 18, 2024
f8ece97
chore: added in unite test for revoke public key
Peartes Nov 18, 2024
168d833
chore: add in revoke dkim pubkey integration test
Peartes Nov 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
92 changes: 92 additions & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
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

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