From 0d2df4f548c593c119c23c0c3d8cbba365cd4352 Mon Sep 17 00:00:00 2001 From: beer-1 <147697694+beer-1@users.noreply.github.com> Date: Tue, 30 Jul 2024 15:11:44 +0900 Subject: [PATCH] bump opinit and cleanup github actions --- .github/ISSUE_TEMPLATE/ISSUE_TEMPLATE.md | 22 ------ .github/ISSUE_TEMPLATE/Release_notes.md | 50 -------------- .github/ISSUE_TEMPLATE/bug_report.md | 44 +++++------- .github/ISSUE_TEMPLATE/feature_request.md | 15 ++--- .github/ISSUE_TEMPLATE/good_first_issue.md | 18 ----- .github/ISSUE_TEMPLATE/gui_issue.md | 8 --- .github/PULL_REQUEST_TEMPLATE.md | 78 +++++++++++++--------- .github/workflows/build-darwin-amd64.yml | 11 +-- .github/workflows/build-darwin-arm64.yml | 14 ++-- .github/workflows/build-linux-amd64.yml | 9 +-- .github/workflows/build-linux-arm64.yml | 10 +-- .github/workflows/docker.yml | 5 +- .github/workflows/lint.yml | 13 +--- .github/workflows/test.yml | 9 ++- cmd/minitiad/launch.go | 10 +-- go.mod | 8 +-- go.sum | 12 ++-- images/README.md | 17 ----- images/private/Dockerfile | 60 ----------------- 19 files changed, 116 insertions(+), 297 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/ISSUE_TEMPLATE.md delete mode 100644 .github/ISSUE_TEMPLATE/Release_notes.md delete mode 100644 .github/ISSUE_TEMPLATE/good_first_issue.md delete mode 100644 .github/ISSUE_TEMPLATE/gui_issue.md delete mode 100644 images/README.md delete mode 100644 images/private/Dockerfile diff --git a/.github/ISSUE_TEMPLATE/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE/ISSUE_TEMPLATE.md deleted file mode 100644 index dd047dc..0000000 --- a/.github/ISSUE_TEMPLATE/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/.github/ISSUE_TEMPLATE/Release_notes.md b/.github/ISSUE_TEMPLATE/Release_notes.md deleted file mode 100644 index c09f699..0000000 --- a/.github/ISSUE_TEMPLATE/Release_notes.md +++ /dev/null @@ -1,50 +0,0 @@ -Release Notes -================== - -Initia version 0.45.12 is now available from: - - - -This release includes new features, various bug fixes and performance -improvements, as well as updated translations. - -Please report bugs using the issue tracker at GitHub: - - - -To receive security and update notifications, please join our discord channel. - - -What's Changed -============== -### Initia -- upgrade to cosmos-sdk v0.45.12 by @zkst in #102 - -### RPC and other APIs - -- #25220 rpc: fix incorrect warning for address type p2sh-segwit in createmultisig -- #25237 rpc: Capture UniValue by ref for rpcdoccheck -- #25983 Prevent data race for pathHandlers -- #26275 Fix crash on deriveaddresses when index is 2147483647 (2^31-1) - -### Build system - -- #25201 windeploy: Renewed windows code signing certificate -- #25788 guix: patch NSIS to remove .reloc sections from installer stubs -- #25861 guix: use --build={arch}-guix-linux-gnu in cross toolchain -- #25985 Revert "build: Use Homebrew's sqlite package if it is available" - -### GUI - -- gui#631 Disallow encryption of watchonly wallets -- gui#680 Fixes MacOS 13 segfault by preventing certain notifications - -### Tests - -- #24454 tests: Fix calculation of external input weights - -### Miscellaneous - -- #26321 Adjust .tx/config for new Transifex CLI - -Full Changelog: Initia-node-v1.0.0...Initia-node-v1.0.1 [link] \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index d2c50df..4dbb73a 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,38 +1,24 @@ --- name: Bug report -about: Create a report to help us improve (use this for suspected bugs only, if not sure, open a regular issue below) -title: '' -labels: Bug -assignees: '' +about: Create a report to help us improve +title: "" +labels: "" +assignees: "" --- - - - +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error **Expected behavior** +A clear and concise description of what you expected to happen. - - -**Actual behavior** - - - -**To reproduce** - - - -**System information** - - - - - - - - +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 2d56851..2bc5d5f 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,20 +1,19 @@ --- name: Feature request about: Suggest an idea for this project -title: '' -labels: Feature -assignees: '' - +title: "" +labels: "" +assignees: "" --- **Is your feature request related to a problem? Please describe.** - +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd like** - +A clear and concise description of what you want to happen. **Describe alternatives you've considered** - +A clear and concise description of any alternative solutions or features you've considered. **Additional context** - +Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/good_first_issue.md b/.github/ISSUE_TEMPLATE/good_first_issue.md deleted file mode 100644 index 0b92506..0000000 --- a/.github/ISSUE_TEMPLATE/good_first_issue.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Good first issue -about: '(Regular devs only): Suggest a new good first issue' -title: '' -labels: '' -assignees: '' - ---- - - - - - - - -#### Useful skills: - - diff --git a/.github/ISSUE_TEMPLATE/gui_issue.md b/.github/ISSUE_TEMPLATE/gui_issue.md deleted file mode 100644 index 3bac53c..0000000 --- a/.github/ISSUE_TEMPLATE/gui_issue.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -name: An issue or feature request related to the GUI -about: Any report, issue or feature request related to the GUI should be reported to initia support team -title: Any report, issue or feature request related to the GUI should be reported to initia support team -labels: GUI -assignees: '' - ---- \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index ee3a2d9..4d37256 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,32 +1,46 @@ - - - - - +# Description + +Closes: #XXXX + + + +--- + +## Author Checklist + +_All items are required. Please add a note to the item if the item is not applicable and +please add links to any relevant follow up issues._ + +I have... + +- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title, you can find examples of the prefixes below: + +- [ ] confirmed `!` in the type prefix if API or client breaking change +- [ ] targeted the correct branch +- [ ] provided a link to the relevant issue or specification +- [ ] reviewed "Files changed" and left comments if necessary +- [ ] included the necessary unit and integration tests +- [ ] updated the relevant documentation or specification, including comments for [documenting Go code](https://blog.golang.org/godoc) +- [ ] confirmed all CI checks have passed + +## Reviewers Checklist + +_All items are required. Please add a note if the item is not applicable and please add +your handle next to the items reviewed if you only reviewed selected items._ + +I have... + +- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title +- [ ] confirmed all author checklist items have been addressed +- [ ] reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage diff --git a/.github/workflows/build-darwin-amd64.yml b/.github/workflows/build-darwin-amd64.yml index 227ff1f..56001a4 100644 --- a/.github/workflows/build-darwin-amd64.yml +++ b/.github/workflows/build-darwin-amd64.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.22.4' + go-version: "1.22.4" - name: Set environment variables run: | @@ -31,7 +31,7 @@ jobs: echo "VERSION=${VERSION}" >> $GITHUB_ENV echo "ARCH_NAME=x86_64" >> $GITHUB_ENV WASMVM_VERSION=$(go list -m github.com/CosmWasm/wasmvm/v2 | awk '{print $2}') - echo "WASMVM_VERSION=${WASMVM_VERSION}" >> $GITHUB_ENV + echo "WASMVM_VERSION=${WASMVM_VERSION}" >> $GITHUB_ENV - name: Ensure dependencies run: | @@ -47,8 +47,6 @@ jobs: echo "WASMVM_VERSION=${WASMVM_VERSION}" echo "MINIWASM_NETWORK_NAME=${MINIWASM_NETWORK_NAME}" - - - name: Build and Package for Darwin ADM642 run: | cd ../miniwasm \ @@ -59,10 +57,13 @@ jobs: && cp ~/go/pkg/mod/github.com/\!cosm\!wasm/wasmvm/v2@${WASMVM_VERSION}/internal/api/libwasmvm.dylib ./ \ && tar -czvf miniwasm_"$VERSION"_Darwin_"$ARCH_NAME".tar.gz ./minitiad libwasmvm.dylib \ && mv ./miniwasm_"$VERSION"_Darwin_"$ARCH_NAME".tar.gz $GITHUB_WORKSPACE/ \ - && rm -rf ./libwasmvm.dylib ./minitiad + && rm -rf ./libwasmvm.dylib ./minitiad - name: Release uses: softprops/action-gh-release@v2 with: files: | miniwasm_${{ env.VERSION }}_Darwin_${{ env.ARCH_NAME }}.tar.gz + env: + VERSION: ${{ env.VERSION }} + ARCH_NAME: ${{ env.ARCH_NAME }} diff --git a/.github/workflows/build-darwin-arm64.yml b/.github/workflows/build-darwin-arm64.yml index c178022..63901e1 100644 --- a/.github/workflows/build-darwin-arm64.yml +++ b/.github/workflows/build-darwin-arm64.yml @@ -1,4 +1,3 @@ - name: Build Darwin ARM64 on: @@ -15,7 +14,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.22.4' + go-version: "1.22.4" - name: Set environment variables run: | MINIWASM_NETWORK_NAME="miniwasm-1" @@ -31,12 +30,12 @@ jobs: fi echo "VERSION=${VERSION}" >> $GITHUB_ENV echo "ARCH_NAME=aarch64" >> $GITHUB_ENV - + - name: Ensure dependencies run: | go mod tidy go get github.com/CosmWasm/wasmvm/v2@${WASMVM_VERSION} - + - name: Print environment variables run: | echo "GOARCH=${GOARCH}" @@ -55,10 +54,13 @@ jobs: && cp ~/go/pkg/mod/github.com/\!cosm\!wasm/wasmvm/v2@${WASMVM_VERSION}/internal/api/libwasmvm.dylib ./ \ && tar -czvf miniwasm_"$VERSION"_Darwin_"$ARCH_NAME".tar.gz ./minitiad libwasmvm.dylib \ && mv ./miniwasm_"$VERSION"_Darwin_"$ARCH_NAME".tar.gz $GITHUB_WORKSPACE/ \ - && rm -rf ./libwasmvm.dylib ./minitiad - + && rm -rf ./libwasmvm.dylib ./minitiad + - name: Release uses: softprops/action-gh-release@v2 with: files: | miniwasm_${{ env.VERSION }}_Darwin_${{ env.ARCH_NAME }}.tar.gz + env: + VERSION: ${{ env.VERSION }} + ARCH_NAME: ${{ env.ARCH_NAME }} diff --git a/.github/workflows/build-linux-amd64.yml b/.github/workflows/build-linux-amd64.yml index f3abe31..e2eec47 100644 --- a/.github/workflows/build-linux-amd64.yml +++ b/.github/workflows/build-linux-amd64.yml @@ -1,8 +1,6 @@ - name: Build Linux AMD64 -on: - workflow_call +on: workflow_call jobs: build: @@ -14,7 +12,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.22.4' + go-version: "1.22.4" - name: Set environment variables run: | @@ -50,3 +48,6 @@ jobs: with: files: | ./build/miniwasm_${{ env.VERSION }}_Linux_${{ env.ARCH_NAME }}.tar.gz + env: + VERSION: ${{ env.VERSION }} + ARCH_NAME: ${{ env.ARCH_NAME }} diff --git a/.github/workflows/build-linux-arm64.yml b/.github/workflows/build-linux-arm64.yml index 9225b11..3747ea9 100644 --- a/.github/workflows/build-linux-arm64.yml +++ b/.github/workflows/build-linux-arm64.yml @@ -1,4 +1,3 @@ - name: Build Linux ARM64 on: @@ -32,7 +31,7 @@ jobs: fi echo "VERSION=${VERSION}" >> $GITHUB_ENV echo "ARCH_NAME=aarch64" >> $GITHUB_ENV - + - name: Build for ARM64 env: DOCKER_BUILDKIT: 1 @@ -69,9 +68,12 @@ jobs: - name: List files run: ls -l - + - name: Release uses: softprops/action-gh-release@v2 with: files: | - ./miniwasm_${{ env.VERSION }}_Linux_${{ env.ARCH_NAME }}.tar.gz + ./miniwasm_${{ env.VERSION }}_Linux_${{ env.ARCH_NAME }}.tar.gz + env: + VERSION: ${{ env.VERSION }} + ARCH_NAME: ${{ env.ARCH_NAME }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 669c46e..bdd8f98 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -51,8 +51,7 @@ jobs: - name: Build and push uses: docker/build-push-action@v4 with: - build-args: "GITHUB_ACCESS_TOKEN=${{ secrets.GH_READ_TOKEN }}" - file: images/private/Dockerfile + file: Dockerfile push: ${{ startsWith(github.ref, 'refs/tags') }} # push image only for tags tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 22e32e1..c722400 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,9 +23,6 @@ concurrency: jobs: golangci: env: - # for private repo access - GOPRIVATE: github.com/initia-labs,github.com/skip-mev/slinky - GITHUB_ACCESS_TOKEN: ${{ secrets.GH_READ_TOKEN }} GOLANGCI_LINT_VERSION: v1.59.1 name: golangci-lint runs-on: ubuntu-latest @@ -42,8 +39,6 @@ jobs: **/**.go go.mod go.sum - # for private repo access - - run: git config --global url.https://${GITHUB_ACCESS_TOKEN}:x-oauth-basic@github.com/.insteadOf https://github.com/ # install golangci-lint - run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINT_VERSION} - name: run go linters (long) @@ -51,6 +46,8 @@ jobs: id: lint_long run: | make lint + env: + GIT_DIFF: ${{ env.GIT_DIFF }} - uses: technote-space/get-diff-action@v6.1.2 if: steps.lint_long.outcome == 'skipped' with: @@ -68,10 +65,6 @@ jobs: # Use --check or --exit-code when available (Go 1.19?) # https://github.com/golang/go/issues/27005 tidy: - env: - # for private repo access - GOPRIVATE: github.com/initia-labs,github.com/skip-mev/slinky - GITHUB_ACCESS_TOKEN: ${{ secrets.GH_READ_TOKEN }} runs-on: ubuntu-latest name: tidy steps: @@ -81,8 +74,6 @@ jobs: with: go-version: 1.22 check-latest: true - # for private repo access - - run: git config --global url.https://${GITHUB_ACCESS_TOKEN}:x-oauth-basic@github.com/.insteadOf https://github.com/ - run: | go mod tidy CHANGES_IN_REPO=$(git status --porcelain) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1d8f335..fe8dfb5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,9 +22,6 @@ jobs: test-coverage-upload: name: Run test and upload codecov env: - # for private repo access - GOPRIVATE: github.com/initia-labs/* - GITHUB_ACCESS_TOKEN: ${{ secrets.GH_READ_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} runs-on: ubuntu-latest steps: @@ -40,8 +37,6 @@ jobs: **/**.go go.mod go.sum - # for private repo access - - run: git config --global url.https://${GITHUB_ACCESS_TOKEN}:x-oauth-basic@github.com/.insteadOf https://github.com/ - name: build run: | make build @@ -49,6 +44,8 @@ jobs: run: | go test ./... -mod=readonly -timeout 12m -race -coverprofile=coverage.txt -covermode=atomic -tags='ledger test_ledger_mock' if: env.GIT_DIFF + env: + GIT_DIFF: ${{ env.GIT_DIFF }} # - name: filter out DONTCOVER # run: | # excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')" @@ -65,3 +62,5 @@ jobs: files: ./coverage.txt fail_ci_if_error: true if: env.GIT_DIFF + env: + GIT_DIFF: ${{ env.GIT_DIFF }} diff --git a/cmd/minitiad/launch.go b/cmd/minitiad/launch.go index 3a9b9e4..6e20833 100644 --- a/cmd/minitiad/launch.go +++ b/cmd/minitiad/launch.go @@ -82,18 +82,18 @@ func StoreAndInstantiateNFTContracts(input *launchtools.Config) launchtools.Laun msgs := []sdk.Msg{ &wasmtypes.MsgStoreCode{ - Sender: input.SystemKeys.Validator.Address, + Sender: input.SystemKeys.Validator.L2Address, WASMByteCode: cw721, InstantiatePermission: nil, }, &wasmtypes.MsgStoreCode{ - Sender: input.SystemKeys.Validator.Address, + Sender: input.SystemKeys.Validator.L2Address, WASMByteCode: ics721, InstantiatePermission: nil, }, &wasmtypes.MsgInstantiateContract{ - Sender: input.SystemKeys.Validator.Address, - Admin: input.SystemKeys.Validator.Address, + Sender: input.SystemKeys.Validator.L2Address, + Admin: input.SystemKeys.Validator.L2Address, CodeID: 2, Label: "ics721", Msg: []byte(`{"cw721_base_code_id":1}`), @@ -108,7 +108,7 @@ func StoreAndInstantiateNFTContracts(input *launchtools.Config) launchtools.Laun ) res, err := ctx.GetRPCHelperL2().BroadcastTxAndWait( - input.SystemKeys.Validator.Address, + input.SystemKeys.Validator.L2Address, input.SystemKeys.Validator.Mnemonic, 10000000, sdk.NewCoins(), diff --git a/go.mod b/go.mod index 4ae0bb2..f8553a7 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( cosmossdk.io/x/feegrant v0.1.0 cosmossdk.io/x/tx v0.13.3 cosmossdk.io/x/upgrade v0.1.1 - // we also need to update `LIBWASMVM_VERSION` of images/private/Dockerfile#5 + // we also need to update `LIBWASMVM_VERSION` of Dockerfile#5 github.com/CosmWasm/wasmd v0.51.0 github.com/CosmWasm/wasmvm/v2 v2.0.0 github.com/cometbft/cometbft v0.38.7 @@ -34,8 +34,8 @@ require ( github.com/gorilla/mux v1.8.1 github.com/grpc-ecosystem/grpc-gateway v1.16.0 github.com/hashicorp/go-metrics v0.5.3 - github.com/initia-labs/OPinit v0.3.2 - github.com/initia-labs/initia v0.3.5 + github.com/initia-labs/OPinit v0.4.0 + github.com/initia-labs/initia v0.4.0 github.com/initia-labs/kvindexer v0.1.6 github.com/initia-labs/kvindexer/submodules/block v0.1.0 github.com/initia-labs/kvindexer/submodules/tx v0.1.0 @@ -166,7 +166,7 @@ require ( github.com/iancoleman/strcase v0.3.0 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/initia-labs/OPinit/api v0.3.0 // indirect + github.com/initia-labs/OPinit/api v0.4.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jmhodges/levigo v1.0.0 // indirect github.com/jsternberg/zap-logfmt v1.3.0 // indirect diff --git a/go.sum b/go.sum index b3f720b..b08374b 100644 --- a/go.sum +++ b/go.sum @@ -798,16 +798,16 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= -github.com/initia-labs/OPinit v0.3.2 h1:TeELD5GeSJJ9meY5b5YIXDdmCZt9kZOA2Chz+IwxUHc= -github.com/initia-labs/OPinit v0.3.2/go.mod h1:XlYsBFAKOFS6/wRIHB1vVbfonqX8QrC8cWK2GJvmX20= -github.com/initia-labs/OPinit/api v0.3.0 h1:OY8ijwmgZLoYwtw9LI1mSY3VC8PY+gtxJFitB6ZNFl4= -github.com/initia-labs/OPinit/api v0.3.0/go.mod h1:Xy/Nt3ubXLQ4zKn0m7RuQOM1sj8TVdlNNyek21TGYR0= +github.com/initia-labs/OPinit v0.4.0 h1:ICfZRbJ+KqgWt9z8seMl+6sRKbm40ELFvruvWh/KD40= +github.com/initia-labs/OPinit v0.4.0/go.mod h1:qu3h66dk3EF3Ehnr0bRuq0ezxzVKtQvy7G/waQFG9nM= +github.com/initia-labs/OPinit/api v0.4.0 h1:i3Cz5qPFpezeYh2R9TW2riPBb5tHwLOWOx3hrcWrM+o= +github.com/initia-labs/OPinit/api v0.4.0/go.mod h1:Xy/Nt3ubXLQ4zKn0m7RuQOM1sj8TVdlNNyek21TGYR0= github.com/initia-labs/cometbft v0.0.0-20240718082639-9128e8447bb7 h1:4HnN5bA8MP26KxP+NPgwLlA7NVlcM80gtzzO3sSK7KQ= github.com/initia-labs/cometbft v0.0.0-20240718082639-9128e8447bb7/go.mod h1:qGaJePRWAc2OL3OGNd//8fqgypCaFjmwZcy/cNner84= github.com/initia-labs/ibc-go/v8 v8.0.0-20240419124350-4275a05abe2c h1:FDwh5zZbm9v7C37ni4FytQQ9Os5XxYp1px5U7Nqdu2Y= github.com/initia-labs/ibc-go/v8 v8.0.0-20240419124350-4275a05abe2c/go.mod h1:wj3qx75iC/XNnsMqbPDCIGs0G6Y3E/lo3bdqCyoCy+8= -github.com/initia-labs/initia v0.3.5 h1:JsO0OZ+ZRQjzFusXSA2f7U1LNO6nApaCr+U6idJ+Pko= -github.com/initia-labs/initia v0.3.5/go.mod h1:nwtnVe3obacErGb7w6tq8Ych3U0d2f59rsgpVUeMnmM= +github.com/initia-labs/initia v0.4.0 h1:iJeFK5uaHF90YFyKoPztUH2hem5eKDpz42kg2dqJYB8= +github.com/initia-labs/initia v0.4.0/go.mod h1:dWCjY44C38bLlyTPXdXxzdXLwh3X1bAsiARJ0jfVqDg= github.com/initia-labs/kvindexer v0.1.6 h1:RAnd89v/ZNtmsmBiD5ubBe1455UvIbH3dMxvPUYc5A8= github.com/initia-labs/kvindexer v0.1.6/go.mod h1:OV85HaQ9KVrg+zGPUlxT9RF9nAaM3Yq4/3MoHqGqhWk= github.com/initia-labs/kvindexer/submodules/block v0.1.0 h1:y+EXnksd/I2F96mzIoQA64nZUZON2P+99YrSzeLCLoY= diff --git a/images/README.md b/images/README.md deleted file mode 100644 index 1028af4..0000000 --- a/images/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# Specialized images for minitia - -## `private` - -Use a GitHub PAT (Personal Access Token) to access private git repos releases and git trees. -To be used for releases until repos become public. - -Build like: - -``` bash -docker build \ - -t minitiad \ - --build-arg LIBWASMVM_VERSION=v1.5.0 \ - --build-arg GITHUB_ACCESS_TOKEN=$PAT \ - -f images/private/Dockerfile \ - . -``` diff --git a/images/private/Dockerfile b/images/private/Dockerfile deleted file mode 100644 index 022d9e5..0000000 --- a/images/private/Dockerfile +++ /dev/null @@ -1,60 +0,0 @@ -FROM golang:1.22-alpine3.18 AS go-builder -#ARG arch=x86_64 - -# See https://github.com/CosmWasm/wasmvm/releases -ARG LIBWASMVM_VERSION=v2.0.0 - -# this comes from standard alpine nightly file -# https://github.com/rust-lang/docker-rust-nightly/blob/master/alpine3.12/Dockerfile -# with some changes to support our toolchain, etc -RUN set -eux; apk add --no-cache ca-certificates build-base; - -RUN apk add git cmake -# NOTE: add these to run with LEDGER_ENABLED=true -# RUN apk add libusb-dev linux-headers - -WORKDIR /code -COPY . /code/ -# Install mimalloc -RUN git clone --depth 1 https://github.com/microsoft/mimalloc; cd mimalloc; mkdir build; cd build; cmake ..; make -j$(nproc); make install -ENV MIMALLOC_RESERVE_HUGE_OS_PAGES=4 - -# private ci access -ARG GITHUB_ACCESS_TOKEN -ENV GOPRIVATE=github.com/initia-labs/* -RUN git config --global url."https://${GITHUB_ACCESS_TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/" - -# See https://github.com/CosmWasm/wasmvm/releases -ADD https://github.com/gruntwork-io/fetch/releases/download/v0.4.6/fetch_linux_amd64 /usr/bin/fetch -RUN chmod +x /usr/bin/fetch -ENV GITHUB_OAUTH_TOKEN=$GITHUB_ACCESS_TOKEN -RUN fetch --repo="https://github.com/CosmWasm/wasmvm" --tag="${LIBWASMVM_VERSION}" --release-asset="libwasmvm_muslc.*.a" /lib/ -RUN cp /lib/libwasmvm_muslc.`uname -m`.a /lib/libwasmvm_muslc.a - -# force it to use static lib (from above) not standard libwasmvm.so file -RUN LEDGER_ENABLED=false BUILD_TAGS=muslc LDFLAGS="-linkmode=external -extldflags \"-L/code/mimalloc/build -lmimalloc -Wl,-z,muldefs -static\"" make build - -FROM alpine:3.18 - -RUN addgroup minitia \ - && adduser -G minitia -D -h /minitia minitia - -WORKDIR /minitia - -COPY --from=go-builder /code/build/minitiad /usr/local/bin/minitiad - -# for new-metric setup -COPY --from=go-builder /code/contrib /minitia/contrib - -USER minitia - -# rest server -EXPOSE 1317 -# grpc -EXPOSE 9090 -# tendermint p2p -EXPOSE 26656 -# tendermint rpc -EXPOSE 26657 - -CMD ["/usr/local/bin/minitiad", "version"]