Skip to content

Commit 085f384

Browse files
authored
Merge pull request #61 from nymtech/sandbox
update mainnet to cosmos sdk 0.50+
2 parents d9a9d3a + 75f347b commit 085f384

File tree

278 files changed

+3012
-2087
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

278 files changed

+3012
-2087
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/build-and-push.yml renamed to .github/workflows/build-and-push-mainnet.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Push to DockerHub
1+
name: Build and Push to DockerHub - Mainnet
22

33
on:
44
workflow_dispatch:
@@ -24,4 +24,4 @@ jobs:
2424
uses: docker/build-push-action@v5
2525
with:
2626
push: true
27-
tags: nymtech/bdjuno:chains_nyx_mainnet-
27+
tags: nymtech/callisto:chains_nyx_mainnet-
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build and Push to DockerHub - Sandbox
2+
3+
on:
4+
push:
5+
branches:
6+
- sandbox
7+
8+
jobs:
9+
docker:
10+
runs-on: ubuntu-latest
11+
steps:
12+
-
13+
name: Set up QEMU
14+
uses: docker/setup-qemu-action@v3
15+
-
16+
name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
-
19+
name: Login to Docker Hub
20+
uses: docker/login-action@v3
21+
with:
22+
username: ${{ secrets.DOCKERHUB_USERNAME }}
23+
password: ${{ secrets.DOCKERHUB_TOKEN }}
24+
-
25+
name: Build and push
26+
uses: docker/build-push-action@v5
27+
with:
28+
push: true
29+
tags: nymtech/callisto:chains_nyx_sandbox

.github/workflows/docker-build.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: docker-build
2+
3+
on:
4+
push:
5+
branches:
6+
- cosmos/*/*
7+
- chains/*/*
8+
9+
jobs:
10+
docker:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout 🛎️
14+
uses: actions/checkout@v4
15+
16+
- name: Set Callisto chain name 🔧
17+
shell: bash
18+
run: echo "CHAIN_NAME=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')" >> $GITHUB_ENV
19+
20+
- name: Set Callisto version 🔧
21+
shell: bash
22+
run: echo "GITHUB_VERSION=$(git describe --tags)" >> $GITHUB_ENV
23+
24+
- name: Prepare tags 🏷️
25+
id: prep
26+
run: |
27+
DOCKER_IMAGE=${{ secrets.DOCKERHUB_BDJUNO_REPO }}
28+
CHAIN_NAME="${{env.CHAIN_NAME}}"
29+
VERSION="${{env.GITHUB_VERSION}}"
30+
TAGS="${DOCKER_IMAGE}:${CHAIN_NAME}-${VERSION}"
31+
echo ::set-output name=version::${VERSION}
32+
echo ::set-output name=tags::${TAGS}
33+
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
34+
35+
- name: Determine Dockerfile to use 🔍
36+
run: |
37+
if [[ -f Dockerfile.cosmwasm ]]; then
38+
export DOCKERFILE=Dockerfile.cosmwasm
39+
else
40+
export DOCKERFILE=Dockerfile.default
41+
fi
42+
echo "DOCKERFILE=${DOCKERFILE}" >> $GITHUB_ENV
43+
44+
- name: Set up Docker Buildx 🧰
45+
uses: docker/setup-buildx-action@v3
46+
47+
- name: Login to DockerHub 👤
48+
uses: docker/login-action@v3
49+
with:
50+
username: ${{ secrets.DOCKER_USERNAME }}
51+
password: ${{ secrets.DOCKER_PASSWORD }}
52+
53+
- name: Build and push 📤
54+
uses: docker/build-push-action@v5
55+
with:
56+
context: .
57+
file: "./${{ env.DOCKERFILE }}"
58+
push: true
59+
tags: ${{ steps.prep.outputs.tags }}

.github/workflows/lint-pr.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "Lint PR"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
main:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: amannn/action-semantic-pull-request@v5.4.0
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
uses: actions/checkout@v4
2020

2121
- name: Setup Go 🧰
22-
uses: actions/setup-go@v4
22+
uses: actions/setup-go@v5
2323
with:
24-
go-version: "1.20"
24+
go-version: "1.21"
2525

2626
- name: Compute diff 📜
2727
uses: technote-space/get-diff-action@v6.1.2

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
uses: actions/checkout@v4
2626

2727
- name: Setup Go 🧰
28-
uses: actions/setup-go@v4
28+
uses: actions/setup-go@v5
2929
with:
30-
go-version: "1.20"
30+
go-version: "1.21"
3131

3232
- name: Compute diff 📜
3333
uses: technote-space/get-diff-action@v6.1.2
@@ -47,6 +47,6 @@ jobs:
4747

4848
- name: Upload coverage 📤
4949
if: "env.GIT_DIFF != ''"
50-
uses: codecov/codecov-action@v4-beta
50+
uses: codecov/codecov-action@v4.0.1
5151
with:
5252
file: ./coverage.txt

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.idea/
22
build/
33
pgdata
4+
vendor/
45

56
# Configuration
67
*.toml

.golangci.yaml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,18 @@ linters:
77
disable-all: true
88
enable:
99
- bodyclose
10-
- deadcode
11-
- dogsled
1210
- gocritic
1311
- gofmt
1412
- goimports
15-
- golint
1613
- gosec
1714
- gosimple
1815
- govet
1916
- ineffassign
20-
- maligned
2117
- misspell
2218
- nakedret
23-
- scopelint
2419
- staticcheck
25-
- structcheck
2620
- stylecheck
27-
- typecheck
2821
- unconvert
29-
- unused
3022
- unparam
3123
- misspell
3224
- nolintlint
@@ -54,17 +46,17 @@ issues:
5446
- text: "SA1019:"
5547
linters:
5648
- staticcheck
49+
# Disable integer overflow warnings since we know these conversions are safe in our context
50+
- text: "G115:"
51+
linters:
52+
- gosec
5753
max-issues-per-linter: 10000
5854
max-same-issues: 10000
5955

6056
linters-settings:
6157
dogsled:
6258
max-blank-identifiers: 3
63-
maligned:
64-
# print struct with more effective memory layout or not, false by default
65-
suggest-new: true
6659
nolintlint:
6760
allow-unused: false
68-
allow-leading-space: true
6961
require-explanation: false
7062
require-specific: false

0 commit comments

Comments
 (0)