Skip to content

Commit

Permalink
Merge branch 'define-sponsorTx' of https://github.com/linhpn99/gno in…
Browse files Browse the repository at this point in the history
…to define-sponsorTx
  • Loading branch information
linhpn99 committed Jul 25, 2024
2 parents 2d5a168 + d7d37fa commit 6cb0211
Show file tree
Hide file tree
Showing 65 changed files with 1,467 additions and 145 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/[email protected].0
- uses: toshimaru/[email protected].1
4 changes: 2 additions & 2 deletions .github/workflows/autocounterd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -39,7 +39,7 @@ jobs:
type=semver,pattern=v{{version}}
- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: ./misc/autocounterd
push: ${{ github.event_name != 'pull_request' }}
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/contribs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,7 @@ on:
branches:
- master
workflow_dispatch:
pull_request:
paths:
- "contribs/**"
- ".github/**"
# Contribs directly depend on gno, so we need to test it whenever changes
# are made to one of those
- "go.*" # check on go.mod/sum update
- "gno.land/**"
- "tm2/**.go"
- "gnovm/**.go"
pull_request:

jobs:
setup:
Expand All @@ -24,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- id: set-matrix
run: echo "::set-output name=programs::$(ls -d contribs/*/ | cut -d/ -f2 | jq -R -s -c 'split("\n")[:-1]')"
run: echo "::set-output name=programs::$(ls -d contribs/*/ | cut -d/ -f2 | jq -R -s -c 'split("\n")[:-1]')"
main:
needs: setup
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: |
# Ensure Make is installed
make --version
# Run the tidy target
make tidy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
trigger-netlify-docs-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
github-token: ${{ secrets.DOCS_DEPLOY_PAT }}
script: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.22'

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ name: examples

on:
pull_request:
paths:
- "go.sum"
- "gnovm/**"
- "examples/**"
- ".github/workflows/examples.yml"
push:
branches: [ "master" ]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: mv .github/.fossa.yml .

- name: Cache Coursier cache
uses: coursier/[email protected].5
uses: coursier/[email protected].6

- name: Set up JDK 17
uses: coursier/[email protected]
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/gnoland.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ on:
- master
workflow_dispatch:
pull_request:
paths:
- "gno.land/**"
- "tm2/**.go"
- "gnovm/**.go"
- "go.*" # check on go.mod/sum update
- ".github/**"
- "examples/**"

jobs:
main:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/gnovm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ on:
branches:
- master
workflow_dispatch:
pull_request:
paths:
- "gnovm/**"
- "go.*" # check on go.mod/sum update
- ".github/**"
pull_request:

jobs:
main:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Lint
uses: golangci/golangci-lint-action@v5
uses: golangci/golangci-lint-action@v6
with:
working-directory: ${{ inputs.modulepath }}
args:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ on:
branches:
- master
workflow_dispatch:
pull_request:
paths:
- "misc/**"
- ".github/**"
pull_request:

jobs:
main:
Expand All @@ -32,4 +29,4 @@ jobs:
with:
modulepath: misc/${{ matrix.program }}
secrets:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
codecov-token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/nightlies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
cache: true

- uses: sigstore/[email protected]
- uses: anchore/sbom-action/download-syft@v0.15.10
- uses: anchore/sbom-action/download-syft@v0.17.0

- uses: docker/login-action@v3
with:
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- uses: goreleaser/goreleaser-action@v5
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser-pro
version: v1.26.2-pro
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/portal-loop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
type=semver,pattern=v{{version}}
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./misc/loop
target: portalloopd
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/releaser-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
cache: true

- uses: sigstore/[email protected]
- uses: anchore/sbom-action/download-syft@v0.15.10
- uses: anchore/sbom-action/download-syft@v0.17.0

- uses: docker/login-action@v3
with:
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- uses: goreleaser/goreleaser-action@v5
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser-pro
version: v1.26.2-pro
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
cache: true

- uses: sigstore/[email protected]
- uses: anchore/sbom-action/download-syft@v0.15.10
- uses: anchore/sbom-action/download-syft@v0.17.0

- uses: docker/login-action@v3
with:
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- uses: goreleaser/goreleaser-action@v5
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser-pro
version: v1.26.2-pro
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/tm2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ on:
- master
workflow_dispatch:
pull_request:
paths:
- "tm2/**"
- "go.*" # check on go.mod/sum update
- ".github/**"

jobs:
main:
Expand Down
3 changes: 2 additions & 1 deletion contribs/gnokeykc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"os"

"github.com/gnolang/gno/gno.land/pkg/keyscli"
"github.com/gnolang/gno/gnovm/pkg/gnoenv"
"github.com/gnolang/gno/tm2/pkg/commands"
"github.com/gnolang/gno/tm2/pkg/crypto/keys/client"
Expand All @@ -15,7 +16,7 @@ func main() {
wrappedio := &wrappedIO{IO: stdio}
baseCfg := client.DefaultBaseOptions
baseCfg.Home = gnoenv.HomeDir()
cmd := client.NewRootCmdWithBaseConfig(wrappedio, baseCfg)
cmd := keyscli.NewRootCmd(wrappedio, baseCfg)
cmd.AddSubCommands(newKcCmd(stdio))

cmd.Execute(context.Background(), os.Args[1:])
Expand Down
Loading

0 comments on commit 6cb0211

Please sign in to comment.