Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

V4 - Cosmos-SDK v0.50 & WASM #455

Closed
wants to merge 75 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
0e7fee7
v50 core files updated
RaulBernal Feb 9, 2024
954bcb7
Upgrade handler v047 to v050
RaulBernal Feb 9, 2024
4a73bad
Preparation for WASM https://github.com/ignite/cli/pull/3956/
RaulBernal Feb 9, 2024
7d8760f
TODO: Write a Confix guide for SDK v0.50 upgrade
RaulBernal Feb 9, 2024
503456e
Don't allow BCNAID duplicates & add A new CLI/API to search BitCannaI…
RaulBernal Feb 9, 2024
670f991
LINT: SA1019: simtypes.WeightedProposalContent is deprecated: Use Wei…
RaulBernal Feb 9, 2024
34b390c
Check custom field's length
RaulBernal Feb 9, 2024
f0aa731
Add test to bitcannaid: TestHasBitcannaidWithBcnaid
RaulBernal Feb 9, 2024
bc9cc18
Fix Lint errors & Add BCNA errors types
RaulBernal Feb 12, 2024
e3b72a3
Fix Lint errors & add BCNA error types
RaulBernal Feb 12, 2024
e7d5d8d
Fix lint errors
RaulBernal Feb 12, 2024
f46df32
Update golangci-lint.yml
RaulBernal Feb 12, 2024
57e69e2
Update golangci-lint.yml
RaulBernal Feb 12, 2024
361dba4
Update ibc.go
RaulBernal Feb 12, 2024
613cdb6
Update golangci-lint.yml
RaulBernal Feb 12, 2024
376200c
No lint staticcheck
RaulBernal Feb 12, 2024
d4a1272
Fix CI test with Custom BCNA types
RaulBernal Feb 12, 2024
5b53594
Bump IBC-go to v8.1.0 & CometBFT-db to v.0.11.0
RaulBernal Feb 12, 2024
d3c1bd3
Bump Jose2Go to v1.6.0 (security fix) & rebuild API doc with all endp…
RaulBernal Feb 13, 2024
8cbb33e
fix reading the client config
RaulBernal Feb 13, 2024
447dc2c
Normalize the URL at LCD
RaulBernal Feb 13, 2024
83315eb
Normalize LCD endpoints for BCNA (doc file and protoc-gen-grpc-gatewa…
RaulBernal Feb 13, 2024
d90f0f7
remove NFT module
RaulBernal Feb 13, 2024
984995a
add logging detail to upgrades
RaulBernal Feb 13, 2024
420c453
Extra log at Modules post migrate
RaulBernal Feb 13, 2024
b98968f
DEVNET-6 FIX: new consensus params keeper
RaulBernal Feb 13, 2024
f400d3d
Remove fix for DEVNET-6
RaulBernal Feb 14, 2024
a36ab86
testing upgrades
RaulBernal Feb 15, 2024
7ae36e5
RegisterUpgrades
RaulBernal Mar 20, 2024
660c927
Remove DEBUG messages for Store Keys
RaulBernal Mar 21, 2024
b525e8f
ibc-go v8.1.1
RaulBernal Mar 21, 2024
0d6c63b
LCD queries fixing
RaulBernal Mar 21, 2024
33372c8
NoLint deprecation msg
RaulBernal Apr 1, 2024
9b275fc
Merge pull request #347 from BitCannaGlobal/v4-no-nft
RaulBernal Apr 1, 2024
e69b962
Bump cosmossdk.io/api from 0.7.2 to 0.7.3
RaulBernal Apr 1, 2024
d5e4dee
Bump github.com/cosmos/gogoproto from 1.4.10 to 1.4.12
RaulBernal Apr 1, 2024
71b9efb
Bump IBC-GO from v8.1.1 to v8.2.0 by security vuln
RaulBernal Apr 8, 2024
098c455
remove custom modules & add Wasm
RaulBernal Sep 12, 2024
6a7db55
remove release workflow
RaulBernal Sep 12, 2024
7ddd08a
Merge pull request #422 from BitCannaGlobal/v4-reloaded
RaulBernal Sep 12, 2024
5bd37a5
FIX Consensus params
RaulBernal Sep 17, 2024
bc97828
Comments for use in DEVNET-1 or MAINNET
RaulBernal Sep 17, 2024
98c6635
Merge pull request #426 from BitCannaGlobal/425-v4-include-upgrade-co…
RaulBernal Sep 17, 2024
b710f2f
Bump IBC/go to v8.5.1
RaulBernal Sep 17, 2024
5ba92b6
Merge pull request #427 from BitCannaGlobal/v4-Bump-IBC-go-latest-sta…
RaulBernal Sep 17, 2024
05f1713
Add error logging messages
RaulBernal Sep 18, 2024
0bb2e15
Merge pull request #429 from BitCannaGlobal/425-v4-include-upgrade-co…
RaulBernal Sep 18, 2024
52e79de
Set WASM upload/instantiate params
RaulBernal Sep 18, 2024
7a63e72
Merge pull request #431 from BitCannaGlobal/430-feat-v4-prepare-defau…
RaulBernal Sep 18, 2024
5336669
v4 defaults at APP.TOML & CONFIG.TOML
RaulBernal Sep 20, 2024
547d65c
Merge pull request #434 from BitCannaGlobal/433-feat-v4-defaults-in-c…
RaulBernal Sep 20, 2024
ba851eb
set PlanName for Upgrade at DEVNET-1
RaulBernal Sep 20, 2024
9a35c05
Bump SDK version from v0.50.9 to v0.50.10
RaulBernal Sep 20, 2024
136f6b3
Merge pull request #436 from BitCannaGlobal/v4---Bump-SDK-from-v0.50.…
RaulBernal Sep 20, 2024
07792dc
Merge pull request #437 from BitCannaGlobal/v4---Bump-SDK-from-v0.50.…
RaulBernal Sep 20, 2024
50dfa34
Bump WasmVM from v2.1.2 to v2.1.3 (security bug)
RaulBernal Oct 1, 2024
8dde4f5
Update Makefile & Create Dockerfile for Static Link of Wasm Libs
RaulBernal Oct 1, 2024
a9a08c6
GitHub workflows
RaulBernal Oct 1, 2024
d369f24
Merge pull request #1 from RaulBernal/Create-docker,-fix-Makefile,-Up…
RaulBernal Oct 1, 2024
d51327d
Rename .github/build.yml to .github/workflows/build.yml
RaulBernal Oct 1, 2024
bf2ae75
Change workflow "build" to manual launched
RaulBernal Oct 1, 2024
d63fa8c
fix Makefile
RaulBernal Oct 3, 2024
88cd1ea
Fix Makefile
RaulBernal Oct 3, 2024
5ffdc27
fix release.yml
RaulBernal Oct 3, 2024
2b82593
Update Makefile
RaulBernal Oct 3, 2024
740e6f1
Merge pull request #444 from RaulBernal/v4
RaulBernal Oct 3, 2024
2bae26e
Update release.yml to work with `v4`
RaulBernal Oct 3, 2024
5a98918
Merge pull request #445 from BitCannaGlobal/v4
RaulBernal Oct 3, 2024
222493a
fix release.yml Action
RaulBernal Oct 3, 2024
9b4a205
Update Makefile to compress files with tar.gz
RaulBernal Oct 10, 2024
d418195
Update release.yml
RaulBernal Oct 10, 2024
01db54d
Update release.yml
RaulBernal Oct 10, 2024
9720d68
Upgrade handler & bump dependencies
RaulBernal Nov 22, 2024
1db355b
Merge branch 'v4' into v4.0.0-rc7
RaulBernal Nov 22, 2024
76d1d5a
Merge pull request #454 from BitCannaGlobal/v4.0.0-rc7
RaulBernal Nov 22, 2024
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
11 changes: 0 additions & 11 deletions .github/dependabot.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/Json-validate.yaml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This is a basic workflow that is manually triggered

name: compile bcna

# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
workflow_dispatch:
# This workflow makes x86_64 binaries for mac, windows, and linux.

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [amd64, arm64]
targetos: [darwin, linux]
include:
- targetos: windows
arch: amd64
name: bcna ${{ matrix.arch }} for ${{ matrix.targetos }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "^1.23"
env:
GOOS: ${{ matrix.targetos }}
GOARCH: ${{ matrix.arch }}

- name: run tests
run: go test ./...

# we build and install in case we want to run it or capture an artifact as we do in the step below.
- name: Compile bcnad
run: |
go build ./...
go install ./...

# now uploads genesis.json and bin
- uses: actions/upload-artifact@v3
with:
name: bcnad ${{ matrix.targetos }} ${{ matrix.arch }}
path: build/bcnad
33 changes: 0 additions & 33 deletions .github/workflows/golangci-lint.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Release"

on:
release:
types: [published]
draft-release:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Copy Binary
run: |
make build-reproducible-all

- name: List files
run: ls -R

- name: Draft Release
uses: softprops/action-gh-release@v2
with:
draft: true
files: |
build/bcnad_linux_arm64.tar.gz
build/bcnad_linux_amd64.tar.gz
build/bcnad_sha256.txt
10 changes: 8 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
config.yml
vue/node_modules
vue/dist
release/
.idea/
.vscode/
.DS_Store
ts-client/*
*.dot
*.log
*.ign
4 changes: 4 additions & 0 deletions 6.confix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Upgrade Config files with Confix (BCNAD v4.x SDK v0.50 - )

TODO
https://github.com/cosmos/cosmos-sdk/blob/release/v0.50.x/UPGRADING.md#config-files
39 changes: 39 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
ARG IMG_TAG=latest
ARG PLATFORM="linux/amd64"
ARG GO_VERSION="1.23.1"
ARG RUNNER_IMAGE="gcr.io/distroless/static"

FROM --platform=${PLATFORM} golang:${GO_VERSION}-alpine3.20 as builder
WORKDIR /src/app/
COPY go.mod go.sum* ./
RUN go mod download
COPY . .

# From https://github.com/CosmWasm/wasmd/blob/master/Dockerfile
# For more details see https://github.com/CosmWasm/wasmvm#builds-of-libwasmvm
ARG ARCH=x86_64
# See https://github.com/CosmWasm/wasmvm/releases
ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.1.3/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a
ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.1.3/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a
#ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.1.3/libwasmvmstatic_darwin.a /lib/libwasmvm_muslc.darwin.a
RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep faea4e15390e046d2ca8441c21a88dba56f9a0363f92c5d94015df0ac6da1f2d
RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 8dab08434a5fe57a6fbbcb8041794bc3c31846d31f8ff5fb353ee74e0fcd3093
#RUN sha256sum /lib/libwasmvm_muslc.darwin.a | grep f7a997c6a769e5624dac910dc2f0bec4c386aeb54342dd04ef6d5eba0340a20d
RUN cp /lib/libwasmvm_muslc.${ARCH}.a /lib/libwasmvm_muslc.a

ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python3
RUN apk add --no-cache $PACKAGES
RUN set -eux; apk add --no-cache ca-certificates build-base;

ARG VERSION=""
RUN BUILD_TAGS=muslc LINK_STATICALLY=true LDFLAGS=-buildid=$VERSION make build

# Add to a distroless container
ARG PLATFORM="linux/amd64"
FROM --platform=${PLATFORM} gcr.io/distroless/cc:$IMG_TAG
ARG IMG_TAG
COPY --from=builder /src/app/build/bcnad /usr/local/bin/bcnad

EXPOSE 26656 26657 1317 9090

ENTRYPOINT ["bcnad"]
Loading