Skip to content

Commit

Permalink
feat(spaceward): more updates to the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
jjheywood committed Apr 18, 2024
2 parents ae233bb + 7b4907d commit 02b1876
Show file tree
Hide file tree
Showing 41 changed files with 7,131 additions and 7,760 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ lerna-debug.log*
node_modules
dist
dist-ssr
dist-linux-amd64

# Editor directories and files
.tmp
Expand Down
58 changes: 58 additions & 0 deletions .goreleaser-amd64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

version: 1

project_name: wardend

dist: dist-linux-amd64

before:
hooks:
# setup musl
- apk add gcc musl-dev

# setup libwasmvm
- wget https://github.com/CosmWasm/wasmvm/releases/download/v1.5.2/libwasmvm_muslc.x86_64.a -O /lib/libwasmvm_muslc.a

# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...

env:
- CGO_ENABLED=1

builds:
- id: wardend-linux-amd64
main: ./cmd/wardend
goos:
- linux
goarch:
- amd64
flags:
- -mod=readonly
- -trimpath
ldflags:
- -s -w
- -X github.com/cosmos/cosmos-sdk/version.Name=warden
- -X github.com/cosmos/cosmos-sdk/version.AppName=wardend
- -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}
- -linkmode=external
- -extldflags '-static'
tags:
- netgo
- muslc

archives:
- format: zip
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
62 changes: 53 additions & 9 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,69 @@ before:
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
# setup musl
- apt update && apt install musl-dev=1.2.2-1
env:
- CGO_ENABLED=1

builds:
- env:
- CGO_ENABLED=0
- id: wardend-linux-arm64
main: ./cmd/wardend
goos:
- linux
- windows
- darwin
goarch:
- arm64
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
hooks:
pre:
- wget https://github.com/CosmWasm/wasmvm/releases/download/v1.5.2/libwasmvm_muslc.aarch64.a -O /lib/libwasmvm_muslc.a
flags:
- -mod=readonly
- -trimpath
ldflags:
- -s -w
- -X github.com/cosmos/cosmos-sdk/version.Name=warden
- -X github.com/cosmos/cosmos-sdk/version.AppName=wardend
- -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}
- -linkmode=external
- -extldflags '-static'
tags:
- netgo
- muslc

- id: wardend-darwin-arm64
main: ./cmd/wardend
env:
- CC=oa64-clang
- CGO_LDFLAGS=-L/lib
hooks:
pre:
- wget https://github.com/CosmWasm/wasmvm/releases/download/v1.5.2/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a
goos:
- darwin
goarch:
- arm64
flags:
- -mod=readonly
- -trimpath
ldflags:
- -s -w
- -X github.com/cosmos/cosmos-sdk/version.Name=warden
- -X github.com/cosmos/cosmos-sdk/version.AppName=wardend
- -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,static_wasm
- -linkmode=external
tags:
- netgo
- ledger
- static_wasm

release:
mode: append

archives:
- format: zip
Expand All @@ -39,8 +87,4 @@ archives:
{{- if .Arm }}v{{ .Arm }}{{ end }}
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
disable: true
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ FROM debian:bookworm-slim AS faucet
COPY --from=wardend-build /build/wardend /usr/bin/wardend
COPY --from=wardend-build /build/faucet /usr/bin/faucet
ADD --checksum=sha256:b0c3b761e5f00e45bdafebcfe9c03bd703b88b3f535c944ca8e27ef9b891cd10 https://github.com/CosmWasm/wasmvm/releases/download/v1.5.2/libwasmvm.x86_64.so /lib/libwasmvm.x86_64.so
RUN apt-get update && apt-get install -y \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 8000
CMD ["/usr/bin/faucet"]

Expand Down
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
PWD=$(shell pwd)
VERSION=$(shell git describe --tags --always)
COMMIT=$(shell git rev-parse HEAD)
DIRTY=$(shell git diff --quiet || echo "-dirty")
FULL_VERSION=$(VERSION)$(DIRTY)
CHAIN_ID=wardenprotocol
OUTPUT_DIR=./build
LDFLAGS=-ldflags "-s -w -X github.com/cosmos/cosmos-sdk/version.Name=warden -X github.com/cosmos/cosmos-sdk/version.AppName=wardend -X github.com/cosmos/cosmos-sdk/version.Version=$(FULL_VERSION) -X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) -X github.com/warden-protocol/wardenprotocol/cmd/wardenprotocold/cmd.ChainID=$(CHAIN_ID)"
TAG=$(shell git tag --points-at HEAD)

build-all: build-wardend build-faucet build-wardenkms

Expand All @@ -24,4 +26,30 @@ build-faucet:
build-wardenkms:
go build $(LDFLAGS) -o $(OUTPUT_DIR)/wardenkms ./cmd/wardenkms

release-wardend-cross-arm64:
@docker run \
--rm \
-e CGO_ENABLED=1 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(PWD):/go/src/wardend \
-w /go/src/wardend \
ghcr.io/goreleaser/goreleaser-cross:v1.22 \
--clean --skip=validate --skip=publish

release-wardend-linux-amd64:
@docker run \
--platform linux/amd64 \
--rm \
-e CGO_ENABLED=1 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(PWD):/go/src/wardend \
-w /go/src/wardend \
ghcr.io/goreleaser/goreleaser:v1.25.1 \
--clean --skip=publish -f ./.goreleaser-amd64.yaml

release-wardend: release-wardend-linux-amd64 release-wardend-cross-arm64
cat dist-linux-amd64/wardend_*_checksums.txt dist/wardend_*_checksums.txt > dist/checksums.txt
@if [ -z "$(TAG)" ] || [ -n "$(DIRTY)" ]; then echo "No tag found for the current commit. Won't proceed with GitHub release."; exit 1; fi
gh release create $(TAG) --title $(TAG) --verify-tag dist-linux-amd64/wardend_Linux_x86_64.zip dist/wardend_*.zip dist/checksums.txt

.PHONY: build-all build install build-wardend install-wardend build-faucet build-wardenkms
6 changes: 3 additions & 3 deletions spaceward/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@
"@radix-ui/react-tooltip": "^1.0.7",
"@rollup/plugin-inject": "^5.0.5",
"@storyblok/react": "^3.0.9",
"@tanstack/query-core": "^5.14.2",
"@tanstack/react-query": "^4.13.5",
"@tanstack/query-core": "^4.36.1",
"@tanstack/react-query": "^4.36.1",
"@tharsis/proto": "^0.1.20",
"@uidotdev/usehooks": "^2.4.1",
"@walletconnect/auth-client": "^2.1.2",
"@walletconnect/core": "^2.11.0",
"@walletconnect/types": "^2.11.0",
"@walletconnect/utils": "^2.11.0",
"@walletconnect/web3wallet": "^1.10.0",
"@wardenprotocol/wardjs": "link:../wardjs",
"@wardenprotocol/wardjs": "file:../wardjs",
"buffer": "^6.0.3",
"chain-registry": "^1.29.1",
"class-variance-authority": "^0.7.0",
Expand Down
Loading

0 comments on commit 02b1876

Please sign in to comment.