From 02106138e9906b8ac402b88eaf8c118c65a588bb Mon Sep 17 00:00:00 2001 From: John Letey Date: Mon, 8 May 2023 09:41:16 +0200 Subject: [PATCH] chore: support heighliner (#34) (cherry picked from commit 771a09510c5206ad87d5cc777d978885ec0d6a24) --- CHANGELOG.md | 4 ++++ Makefile | 20 +++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d22e6850..5df384bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ ## [Unreleased] +### Improvements + +- [#34](https://github.com/KYVENetwork/chain/pull/34) Support [Heighliner](https://github.com/strangelove-ventures/heighliner) to enable [interchaintest](https://github.com/strangelove-ventures/interchaintest). + ## [v1.1.0](https://github.com/KYVENetwork/chain/releases/tag/v1.1.0) - 2023-04-18 ### Improvements diff --git a/Makefile b/Makefile index 1c7bbe6f..121c126d 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,8 @@ else $(error ❌ Please specify a build environment..) endif -ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=kyve \ +ldflags := $(LDFLAGS) +ldflags += -X github.com/cosmos/cosmos-sdk/version.Name=kyve \ -X github.com/cosmos/cosmos-sdk/version.AppName=kyved \ -X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \ -X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \ @@ -27,6 +28,7 @@ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=kyve \ -X github.com/KYVENetwork/chain/x/team/types.TEAM_BCP_STRING=$(TEAM_BCP_ADDRESS) \ -X github.com/KYVENetwork/chain/x/team/types.TEAM_ALLOCATION_STRING=$(TEAM_ALLOCATION) \ -X github.com/KYVENetwork/chain/x/team/types.TGE_STRING=$(TEAM_TGE) +ldflags := $(strip $(ldflags)) BUILD_FLAGS := -ldflags '$(ldflags)' -tags 'ledger' -trimpath @@ -138,6 +140,22 @@ proto-setup: ### Tests & Simulation ### ############################################################################### +heighliner: + @echo "🤖 Building Kaon image..." + @heighliner build --chain kaon --local 1> /dev/null + @echo "✅ Completed build!" + + @echo "🤖 Building KYVE image..." + @heighliner build --chain kyve --local 1> /dev/null + @echo "✅ Completed build!" + +heighliner-setup: + @echo "🤖 Installing Heighliner..." + @git clone https://github.com/strangelove-ventures/heighliner.git + @cd heighliner && go install && cd .. + @rm -rf heighliner + @echo "✅ Completed installation!" + test: @echo "🤖 Running tests..." @go test -cover -mod=readonly ./x/...