From dcb38f7bd34e200268899585d709b71db9ad3fc4 Mon Sep 17 00:00:00 2001 From: marcello33 Date: Wed, 12 Feb 2025 11:29:35 +0100 Subject: [PATCH 01/12] POS-2822: sec fixes --- .github/workflows/ci.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/govuln.yml | 29 ----------------------------- .github/workflows/govulncheck.yml | 23 +++++++++++++++++++++++ client/v2/go.mod | 16 ++++++++-------- client/v2/go.sum | 20 ++++++++++---------- go.mod | 18 +++++++++--------- go.sum | 24 ++++++++++++------------ simapp/go.mod | 16 ++++++++-------- simapp/go.sum | 20 ++++++++++---------- tests/go.mod | 16 ++++++++-------- tests/go.sum | 20 ++++++++++---------- tools/confix/go.mod | 16 ++++++++-------- tools/confix/go.sum | 20 ++++++++++---------- tools/hubl/go.mod | 16 ++++++++-------- tools/hubl/go.sum | 20 ++++++++++---------- x/circuit/go.mod | 16 ++++++++-------- x/circuit/go.sum | 20 ++++++++++---------- x/evidence/go.mod | 16 ++++++++-------- x/evidence/go.sum | 20 ++++++++++---------- x/feegrant/go.mod | 16 ++++++++-------- x/feegrant/go.sum | 20 ++++++++++---------- x/nft/go.mod | 16 ++++++++-------- x/nft/go.sum | 20 ++++++++++---------- x/upgrade/go.mod | 16 ++++++++-------- x/upgrade/go.sum | 20 ++++++++++---------- 26 files changed, 226 insertions(+), 232 deletions(-) delete mode 100644 .github/workflows/govuln.yml create mode 100644 .github/workflows/govulncheck.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74e59298fae8..7b70999fef12 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: GOPRIVATE : github.com/0xPolygon/heimdall-v2 GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v5 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index c25b316972b6..c207cad611c6 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -25,7 +25,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v5 diff --git a/.github/workflows/govuln.yml b/.github/workflows/govuln.yml deleted file mode 100644 index aad1e1c9db61..000000000000 --- a/.github/workflows/govuln.yml +++ /dev/null @@ -1,29 +0,0 @@ -# TODO HV2: remove GIT_TERMINAL_PROMPT, GOPRIVATE and GH_PAT_TOKEN vars once heimdall-v2 is a public repo -name: Govuln -on: [ push, pull_request ] - -jobs: - govuln: - name: Run govuln check and Publish - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Running govulncheck - uses: Templum/govulncheck-action@v1.0.1 - continue-on-error: true - env: - DEBUG: "true" - GIT_TERMINAL_PROMPT: 1 - GOPRIVATE: github.com/0xPolygon/heimdall-v2 - GH_PAT_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} - with: - go-version: 1.23.2 - package: ./... - github-token: ${{ secrets.GITHUB_TOKEN }} - fail-on-vuln: true - - - name: Upload govulncheck report - uses: actions/upload-artifact@v3 - with: - name: raw-report - path: raw-report.json diff --git a/.github/workflows/govulncheck.yml b/.github/workflows/govulncheck.yml new file mode 100644 index 000000000000..f72b29a699b7 --- /dev/null +++ b/.github/workflows/govulncheck.yml @@ -0,0 +1,23 @@ +name: Govuln +on: [ push, pull_request ] + +jobs: + govulncheck: + name: Run govulncheck + runs-on: ubuntu-latest + steps: + - uses: actions/setup-go@v5 + with: + go-version: "1.23.6" + check-latest: true + - uses: actions/checkout@v4 + - uses: technote-space/get-diff-action@v6 + with: + PATTERNS: | + **/*.go + go.mod + go.sum + Makefile + - name: govulncheck + run: make vulncheck + if: "env.GIT_DIFF != ''" diff --git a/client/v2/go.mod b/client/v2/go.mod index 0974d783011d..9ced742e9269 100644 --- a/client/v2/go.mod +++ b/client/v2/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/client/v2 -go 1.23.2 +go 1.23.6 require ( cosmossdk.io/api v0.7.5 @@ -46,7 +46,7 @@ require ( github.com/cockroachdb/pebble v1.1.2 // indirect github.com/cockroachdb/redact v1.1.5 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect - github.com/cometbft/cometbft v0.38.15 // indirect + github.com/cometbft/cometbft v0.38.17 // indirect github.com/cometbft/cometbft-db v0.14.1 // indirect github.com/consensys/bavard v0.1.13 // indirect github.com/consensys/gnark-crypto v0.12.1 // indirect @@ -69,7 +69,7 @@ require ( github.com/dvsekhvalnov/jose2go v1.7.0 // indirect github.com/emicklei/dot v1.6.1 // indirect github.com/ethereum/c-kzg-4844 v1.0.0 // indirect - github.com/ethereum/go-ethereum v1.14.12 // indirect + github.com/ethereum/go-ethereum v1.15.0 // indirect github.com/fatih/color v1.17.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect @@ -163,13 +163,13 @@ require ( go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 // indirect go.opencensus.io v0.24.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.28.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/net v0.30.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.26.0 // indirect - golang.org/x/term v0.25.0 // indirect - golang.org/x/text v0.19.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240822170219-fc7c04adadcd // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd // indirect diff --git a/client/v2/go.sum b/client/v2/go.sum index 54fb9c252892..431d0fe4a66e 100644 --- a/client/v2/go.sum +++ b/client/v2/go.sum @@ -825,8 +825,8 @@ golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= -golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= @@ -887,8 +887,8 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -945,20 +945,20 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= -golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= -golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/go.mod b/go.mod index 057cb359cee2..61d39e5e6530 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -go 1.23.2 +go 1.23.6 module github.com/cosmos/cosmos-sdk @@ -19,7 +19,7 @@ require ( github.com/chzyer/readline v1.5.1 github.com/cockroachdb/apd/v2 v2.0.2 github.com/cockroachdb/errors v1.11.3 - github.com/cometbft/cometbft v0.38.15 + github.com/cometbft/cometbft v0.38.17 github.com/cosmos/btcutil v1.0.5 github.com/cosmos/cosmos-db v1.0.2 github.com/cosmos/cosmos-proto v1.0.0-beta.5 @@ -28,7 +28,7 @@ require ( github.com/cosmos/gogoproto v1.7.0 github.com/cosmos/ledger-cosmos-go v0.13.3 github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 - github.com/ethereum/go-ethereum v1.14.12 + github.com/ethereum/go-ethereum v1.15.0 github.com/golang/mock v1.6.0 github.com/golang/protobuf v1.5.4 github.com/google/go-cmp v0.6.0 @@ -55,9 +55,9 @@ require ( github.com/spf13/viper v1.19.0 github.com/stretchr/testify v1.9.0 github.com/tendermint/go-amino v0.16.0 - golang.org/x/crypto v0.28.0 + golang.org/x/crypto v0.31.0 golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 - golang.org/x/sync v0.8.0 + golang.org/x/sync v0.10.0 google.golang.org/genproto/googleapis/api v0.0.0-20240822170219-fc7c04adadcd google.golang.org/grpc v1.67.1 google.golang.org/protobuf v1.35.2 @@ -178,9 +178,9 @@ require ( go.opencensus.io v0.24.0 // indirect go.uber.org/multierr v1.11.0 // indirect golang.org/x/net v0.30.0 // indirect - golang.org/x/sys v0.26.0 // indirect - golang.org/x/term v0.25.0 // indirect - golang.org/x/text v0.19.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd // indirect gopkg.in/ini.v1 v1.67.0 // indirect @@ -222,7 +222,7 @@ replace ( cosmossdk.io/x/tx => github.com/0xPolygon/cosmos-sdk/x/tx v0.13.6-0.20241126102051-89dc71d02611 cosmossdk.io/x/upgrade => github.com/0xPolygon/cosmos-sdk/x/upgrade v0.1.5-0.20241126102051-89dc71d02611 github.com/cometbft/cometbft => github.com/0xPolygon/cometbft v0.1.2-beta-polygon - github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.2 + github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.5 ) retract ( diff --git a/go.sum b/go.sum index 96a4cf545dfd..7ed70b520812 100644 --- a/go.sum +++ b/go.sum @@ -517,8 +517,8 @@ github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0V github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= -github.com/maticnetwork/bor v1.5.2 h1:KlwA4qxqaVh0DgNn+29h+ZEZ5sZLce+OzL4CapSudR0= -github.com/maticnetwork/bor v1.5.2/go.mod h1:jx6ipcDT3kNZRco2f94tjHsuMntvcgIWHQB9PhV0NWw= +github.com/maticnetwork/bor v1.5.5 h1:lFWgs9Jgxv2x6MqsvV6HDCsIuPWABYVfJm1bPWGHED4= +github.com/maticnetwork/bor v1.5.5/go.mod h1:oKRrn3rmA2hVx/WLsTiIOM7HY/Qrl8HGvhZivaRLvh0= github.com/maticnetwork/crand v1.0.2 h1:Af0tAivC8zrxXDpGWNWVT/0s1fOz8w0eRbahZgURS8I= github.com/maticnetwork/crand v1.0.2/go.mod h1:/NRNL3bj2eYdqpWmoIP5puxndTpi0XRxpj5ZKxfHjyg= github.com/maticnetwork/polyproto v0.0.4 h1:qQ/qwcO6UNGS4mJlzlLJn1AUMfJK9Rqmf1v+KJgnPsk= @@ -823,8 +823,8 @@ golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= -golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= @@ -884,8 +884,8 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -941,20 +941,20 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= -golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= -golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/simapp/go.mod b/simapp/go.mod index db3279d99524..3e221547526c 100644 --- a/simapp/go.mod +++ b/simapp/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/simapp -go 1.23.2 +go 1.23.6 require ( cosmossdk.io/api v0.7.5 @@ -19,12 +19,12 @@ require ( cosmossdk.io/x/tx v0.13.5 cosmossdk.io/x/upgrade v0.1.4 github.com/0xPolygon/heimdall-v2 v0.0.0-20250120065205-95de2e36b02f - github.com/cometbft/cometbft v0.38.15 + github.com/cometbft/cometbft v0.38.17 github.com/cosmos/cosmos-db v1.0.2 // this version is not used as it is always replaced by the latest Cosmos SDK version github.com/cosmos/cosmos-sdk v0.50.10 github.com/cosmos/gogoproto v1.7.0 - github.com/ethereum/go-ethereum v1.14.12 + github.com/ethereum/go-ethereum v1.15.0 github.com/golang/mock v1.6.0 github.com/spf13/cast v1.6.0 github.com/spf13/cobra v1.8.1 @@ -197,14 +197,14 @@ require ( go.opentelemetry.io/otel/metric v1.29.0 // indirect go.opentelemetry.io/otel/trace v1.29.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.28.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/net v0.30.0 // indirect golang.org/x/oauth2 v0.23.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.26.0 // indirect - golang.org/x/term v0.25.0 // indirect - golang.org/x/text v0.19.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/time v0.5.0 // indirect google.golang.org/api v0.171.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect diff --git a/simapp/go.sum b/simapp/go.sum index 396d2b209123..d59d0e368e3f 100644 --- a/simapp/go.sum +++ b/simapp/go.sum @@ -1147,8 +1147,8 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= -golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1290,8 +1290,8 @@ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1389,13 +1389,13 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= -golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1406,8 +1406,8 @@ golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= -golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= diff --git a/tests/go.mod b/tests/go.mod index 5a697199d67f..739151327b8b 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -1,6 +1,6 @@ module github.com/cosmos/cosmos-sdk/tests -go 1.23.2 +go 1.23.6 require ( cosmossdk.io/api v0.7.5 @@ -17,13 +17,13 @@ require ( cosmossdk.io/x/tx v0.13.6 cosmossdk.io/x/upgrade v0.1.4 github.com/0xPolygon/heimdall-v2 v0.0.0-20250120065205-95de2e36b02f - github.com/cometbft/cometbft v0.38.15 + github.com/cometbft/cometbft v0.38.17 github.com/cosmos/cosmos-db v1.0.2 github.com/cosmos/cosmos-proto v1.0.0-beta.5 // this version is not used as it is always replaced by the latest Cosmos SDK version github.com/cosmos/cosmos-sdk v0.50.10 github.com/cosmos/gogoproto v1.7.0 - github.com/ethereum/go-ethereum v1.14.12 + github.com/ethereum/go-ethereum v1.15.0 github.com/golang/mock v1.6.0 github.com/spf13/cobra v1.8.1 github.com/stretchr/testify v1.9.0 @@ -197,14 +197,14 @@ require ( go.opentelemetry.io/otel/metric v1.29.0 // indirect go.opentelemetry.io/otel/trace v1.29.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.28.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/net v0.30.0 // indirect golang.org/x/oauth2 v0.23.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.26.0 // indirect - golang.org/x/term v0.25.0 // indirect - golang.org/x/text v0.19.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/time v0.5.0 // indirect google.golang.org/api v0.171.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect diff --git a/tests/go.sum b/tests/go.sum index 02d9befe8924..af205003910f 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -1147,8 +1147,8 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= -golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1290,8 +1290,8 @@ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1388,13 +1388,13 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= -golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1405,8 +1405,8 @@ golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= -golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= diff --git a/tools/confix/go.mod b/tools/confix/go.mod index 8e100454fd59..694f8e2c3c66 100644 --- a/tools/confix/go.mod +++ b/tools/confix/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/tools/confix -go 1.23.2 +go 1.23.6 require ( github.com/cosmos/cosmos-sdk v0.50.10 @@ -45,7 +45,7 @@ require ( github.com/cockroachdb/pebble v1.1.2 // indirect github.com/cockroachdb/redact v1.1.5 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect - github.com/cometbft/cometbft v0.38.15 // indirect + github.com/cometbft/cometbft v0.38.17 // indirect github.com/cometbft/cometbft-db v0.14.1 // indirect github.com/consensys/bavard v0.1.13 // indirect github.com/consensys/gnark-crypto v0.12.1 // indirect @@ -69,7 +69,7 @@ require ( github.com/dvsekhvalnov/jose2go v1.7.0 // indirect github.com/emicklei/dot v1.6.1 // indirect github.com/ethereum/c-kzg-4844 v1.0.0 // indirect - github.com/ethereum/go-ethereum v1.14.12 // indirect + github.com/ethereum/go-ethereum v1.15.0 // indirect github.com/fatih/color v1.17.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect @@ -163,12 +163,12 @@ require ( go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 // indirect go.opencensus.io v0.24.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.28.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/net v0.30.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.26.0 // indirect - golang.org/x/term v0.25.0 // indirect - golang.org/x/text v0.19.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240822170219-fc7c04adadcd // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd // indirect diff --git a/tools/confix/go.sum b/tools/confix/go.sum index e0c1574023fa..23dc2b3655c9 100644 --- a/tools/confix/go.sum +++ b/tools/confix/go.sum @@ -831,8 +831,8 @@ golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= -golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= @@ -893,8 +893,8 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -951,20 +951,20 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= -golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= -golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/tools/hubl/go.mod b/tools/hubl/go.mod index f20daee92ab9..474019eaef7e 100644 --- a/tools/hubl/go.mod +++ b/tools/hubl/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/tools/hubl -go 1.23.2 +go 1.23.6 require ( cosmossdk.io/api v0.7.5 @@ -39,7 +39,7 @@ require ( github.com/cockroachdb/pebble v1.1.2 // indirect github.com/cockroachdb/redact v1.1.5 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect - github.com/cometbft/cometbft v0.38.15 // indirect + github.com/cometbft/cometbft v0.38.17 // indirect github.com/cometbft/cometbft-db v0.14.1 // indirect github.com/cosmos/cosmos-db v1.0.2 // indirect github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect @@ -58,7 +58,7 @@ require ( github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.7.0 // indirect github.com/emicklei/dot v1.6.1 // indirect - github.com/ethereum/go-ethereum v1.14.12 // indirect + github.com/ethereum/go-ethereum v1.15.0 // indirect github.com/fatih/color v1.17.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect @@ -142,13 +142,13 @@ require ( go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 // indirect go.opencensus.io v0.24.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.28.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/net v0.30.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.26.0 // indirect - golang.org/x/term v0.25.0 // indirect - golang.org/x/text v0.19.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240822170219-fc7c04adadcd // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd // indirect diff --git a/tools/hubl/go.sum b/tools/hubl/go.sum index ee72570a3145..f0fc664b5dca 100644 --- a/tools/hubl/go.sum +++ b/tools/hubl/go.sum @@ -788,8 +788,8 @@ golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= -golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= @@ -848,8 +848,8 @@ golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -903,20 +903,20 @@ golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= -golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= -golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/x/circuit/go.mod b/x/circuit/go.mod index 88977ea9d4c0..74ec9f72cc82 100644 --- a/x/circuit/go.mod +++ b/x/circuit/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/circuit -go 1.23.2 +go 1.23.6 require ( cosmossdk.io/api v0.7.5 @@ -10,7 +10,7 @@ require ( cosmossdk.io/errors v1.0.1 cosmossdk.io/store v1.1.1 github.com/cockroachdb/errors v1.11.3 - github.com/cometbft/cometbft v0.38.15 + github.com/cometbft/cometbft v0.38.17 github.com/cosmos/cosmos-sdk v0.50.10 github.com/cosmos/gogoproto v1.7.0 github.com/golang/protobuf v1.5.4 @@ -67,7 +67,7 @@ require ( github.com/dvsekhvalnov/jose2go v1.7.0 // indirect github.com/emicklei/dot v1.6.1 // indirect github.com/ethereum/c-kzg-4844 v1.0.0 // indirect - github.com/ethereum/go-ethereum v1.14.12 // indirect + github.com/ethereum/go-ethereum v1.15.0 // indirect github.com/fatih/color v1.17.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect @@ -161,13 +161,13 @@ require ( go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 // indirect go.opencensus.io v0.24.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.28.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/net v0.30.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.26.0 // indirect - golang.org/x/term v0.25.0 // indirect - golang.org/x/text v0.19.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd // indirect google.golang.org/protobuf v1.35.2 // indirect diff --git a/x/circuit/go.sum b/x/circuit/go.sum index 433e4a01fe50..7db861168500 100644 --- a/x/circuit/go.sum +++ b/x/circuit/go.sum @@ -827,8 +827,8 @@ golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= -golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= @@ -889,8 +889,8 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -947,20 +947,20 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= -golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= -golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/x/evidence/go.mod b/x/evidence/go.mod index 9f75b22e22f6..ae63ea91ec38 100644 --- a/x/evidence/go.mod +++ b/x/evidence/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/evidence -go 1.23.2 +go 1.23.6 require ( cosmossdk.io/api v0.7.5 @@ -11,7 +11,7 @@ require ( cosmossdk.io/log v1.4.1 cosmossdk.io/math v1.4.0 cosmossdk.io/store v1.1.1 - github.com/cometbft/cometbft v0.38.15 + github.com/cometbft/cometbft v0.38.17 github.com/cosmos/cosmos-proto v1.0.0-beta.5 github.com/cosmos/cosmos-sdk v0.50.10 github.com/cosmos/gogoproto v1.7.0 @@ -70,7 +70,7 @@ require ( github.com/dvsekhvalnov/jose2go v1.7.0 // indirect github.com/emicklei/dot v1.6.1 // indirect github.com/ethereum/c-kzg-4844 v1.0.0 // indirect - github.com/ethereum/go-ethereum v1.14.12 // indirect + github.com/ethereum/go-ethereum v1.15.0 // indirect github.com/fatih/color v1.17.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect @@ -162,13 +162,13 @@ require ( go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 // indirect go.opencensus.io v0.24.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.28.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/net v0.30.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.26.0 // indirect - golang.org/x/term v0.25.0 // indirect - golang.org/x/text v0.19.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd // indirect gopkg.in/ini.v1 v1.67.0 // indirect diff --git a/x/evidence/go.sum b/x/evidence/go.sum index a92d2eaf0f15..7994e0059e10 100644 --- a/x/evidence/go.sum +++ b/x/evidence/go.sum @@ -827,8 +827,8 @@ golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= -golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= @@ -889,8 +889,8 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -947,20 +947,20 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= -golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= -golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/x/feegrant/go.mod b/x/feegrant/go.mod index f44c7ea27567..af6f24ff3a57 100644 --- a/x/feegrant/go.mod +++ b/x/feegrant/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/feegrant -go 1.23.2 +go 1.23.6 require ( cosmossdk.io/api v0.7.5 @@ -10,7 +10,7 @@ require ( cosmossdk.io/log v1.4.1 cosmossdk.io/math v1.4.0 cosmossdk.io/store v1.1.1 - github.com/cometbft/cometbft v0.38.15 + github.com/cometbft/cometbft v0.38.17 github.com/cosmos/cosmos-proto v1.0.0-beta.5 github.com/cosmos/cosmos-sdk v0.50.10 github.com/cosmos/gogoproto v1.7.0 @@ -72,7 +72,7 @@ require ( github.com/dvsekhvalnov/jose2go v1.7.0 // indirect github.com/emicklei/dot v1.6.1 // indirect github.com/ethereum/c-kzg-4844 v1.0.0 // indirect - github.com/ethereum/go-ethereum v1.14.12 // indirect + github.com/ethereum/go-ethereum v1.15.0 // indirect github.com/fatih/color v1.17.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect @@ -165,13 +165,13 @@ require ( go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 // indirect go.opencensus.io v0.24.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.28.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/net v0.30.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.26.0 // indirect - golang.org/x/term v0.25.0 // indirect - golang.org/x/text v0.19.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd // indirect gopkg.in/ini.v1 v1.67.0 // indirect diff --git a/x/feegrant/go.sum b/x/feegrant/go.sum index 136019b65308..de799d6fb5b4 100644 --- a/x/feegrant/go.sum +++ b/x/feegrant/go.sum @@ -831,8 +831,8 @@ golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= -golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= @@ -893,8 +893,8 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -952,20 +952,20 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= -golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= -golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/x/nft/go.mod b/x/nft/go.mod index 4c2d617e6ed4..84323a26dd4b 100644 --- a/x/nft/go.mod +++ b/x/nft/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/nft -go 1.23.2 +go 1.23.6 require ( cosmossdk.io/api v0.7.5 @@ -10,7 +10,7 @@ require ( cosmossdk.io/log v1.4.1 cosmossdk.io/math v1.4.0 cosmossdk.io/store v1.1.1 - github.com/cometbft/cometbft v0.38.15 + github.com/cometbft/cometbft v0.38.17 github.com/cosmos/cosmos-proto v1.0.0-beta.5 github.com/cosmos/cosmos-sdk v0.50.10 github.com/cosmos/gogoproto v1.7.0 @@ -68,7 +68,7 @@ require ( github.com/dvsekhvalnov/jose2go v1.7.0 // indirect github.com/emicklei/dot v1.6.1 // indirect github.com/ethereum/c-kzg-4844 v1.0.0 // indirect - github.com/ethereum/go-ethereum v1.14.12 // indirect + github.com/ethereum/go-ethereum v1.15.0 // indirect github.com/fatih/color v1.17.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect @@ -161,13 +161,13 @@ require ( go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 // indirect go.opencensus.io v0.24.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.28.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/net v0.30.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.26.0 // indirect - golang.org/x/term v0.25.0 // indirect - golang.org/x/text v0.19.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd // indirect google.golang.org/protobuf v1.35.2 // indirect diff --git a/x/nft/go.sum b/x/nft/go.sum index 433e4a01fe50..7db861168500 100644 --- a/x/nft/go.sum +++ b/x/nft/go.sum @@ -827,8 +827,8 @@ golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= -golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= @@ -889,8 +889,8 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -947,20 +947,20 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= -golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= -golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/x/upgrade/go.mod b/x/upgrade/go.mod index 3b99a53b5a8a..9f1ceae3ff2b 100644 --- a/x/upgrade/go.mod +++ b/x/upgrade/go.mod @@ -1,6 +1,6 @@ module cosmossdk.io/x/upgrade -go 1.23.2 +go 1.23.6 require ( cosmossdk.io/api v0.7.5 @@ -9,7 +9,7 @@ require ( cosmossdk.io/errors v1.0.1 cosmossdk.io/log v1.4.1 cosmossdk.io/store v1.1.1 - github.com/cometbft/cometbft v0.38.15 + github.com/cometbft/cometbft v0.38.17 github.com/cosmos/cosmos-db v1.0.2 github.com/cosmos/cosmos-proto v1.0.0-beta.5 github.com/cosmos/cosmos-sdk v0.50.10 @@ -82,7 +82,7 @@ require ( github.com/dvsekhvalnov/jose2go v1.7.0 // indirect github.com/emicklei/dot v1.6.1 // indirect github.com/ethereum/c-kzg-4844 v1.0.0 // indirect - github.com/ethereum/go-ethereum v1.14.12 // indirect + github.com/ethereum/go-ethereum v1.15.0 // indirect github.com/fatih/color v1.17.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect @@ -187,14 +187,14 @@ require ( go.opentelemetry.io/otel/metric v1.29.0 // indirect go.opentelemetry.io/otel/trace v1.29.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.28.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/net v0.30.0 // indirect golang.org/x/oauth2 v0.23.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.26.0 // indirect - golang.org/x/term v0.25.0 // indirect - golang.org/x/text v0.19.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/time v0.5.0 // indirect google.golang.org/api v0.171.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect diff --git a/x/upgrade/go.sum b/x/upgrade/go.sum index 69ec13df201c..03fd331ce3f5 100644 --- a/x/upgrade/go.sum +++ b/x/upgrade/go.sum @@ -1137,8 +1137,8 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= -golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1280,8 +1280,8 @@ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1378,13 +1378,13 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= -golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1395,8 +1395,8 @@ golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= -golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= From eaea93b04ed39cfb1c6f2d8b969b9a20db39d8fa Mon Sep 17 00:00:00 2001 From: marcello33 Date: Wed, 12 Feb 2025 11:34:28 +0100 Subject: [PATCH 02/12] POS-2822: use env vars for govulncheck --- .github/workflows/govulncheck.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/govulncheck.yml b/.github/workflows/govulncheck.yml index f72b29a699b7..bbb367854039 100644 --- a/.github/workflows/govulncheck.yml +++ b/.github/workflows/govulncheck.yml @@ -19,5 +19,9 @@ jobs: go.sum Makefile - name: govulncheck + env: + GIT_TERMINAL_PROMPT: 1 + GOPRIVATE: github.com/0xPolygon/heimdall-v2 + GH_PAT_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} run: make vulncheck if: "env.GIT_DIFF != ''" From 7d28bc17313964afa7ecb3ff561b487fd4e99181 Mon Sep 17 00:00:00 2001 From: marcello33 Date: Wed, 12 Feb 2025 16:51:48 +0100 Subject: [PATCH 03/12] POS-2822: solve linting issues --- .github/workflows/govulncheck.yml | 5 +- .golangci.yml | 23 ++++---- Makefile | 2 +- baseapp/abci.go | 2 +- baseapp/abci_utils.go | 4 +- client/debug/main.go | 4 +- client/input/input_test.go | 2 +- client/keys/add.go | 2 +- client/keys/list.go | 2 +- client/keys/mnemonic.go | 2 +- client/keys/parse.go | 2 +- client/keys/types.go | 4 +- client/snapshot/export.go | 2 +- client/snapshot/list.go | 2 +- client/v2/autocli/flag/pubkey.go | 4 +- client/v2/autocli/keyring/keyring.go | 7 --- client/v2/autocli/keyring/no_keyring.go | 6 +- client/v2/autocli/query.go | 2 +- codec/address/hex_codec.go | 4 +- codec/address/hex_codec_test.go | 7 ++- codec/proto_codec.go | 26 ++++----- codec/testutil/codec.go | 1 - codec/types/any.go | 4 +- codec/types/any_internal_test.go | 22 ++++---- codec/types/any_test.go | 14 ++--- codec/types/compat.go | 54 +++++++++--------- codec/types/compat_test.go | 12 ++-- codec/types/interface_registry.go | 28 +++++----- codec/types/types_test.go | 34 +++++------ codec/unknownproto/unknown_fields.go | 8 +-- collections/codec/bool.go | 2 +- collections/codec/uint.go | 2 +- collections/genesis.go | 2 +- collections/keyset.go | 2 +- crypto/hd/hdpath_test.go | 2 +- crypto/keyring/keyring.go | 4 +- crypto/keyring/keyring_test.go | 12 ++-- crypto/keyring/record.go | 8 +-- crypto/keys/multisig/multisig.go | 6 +- .../secp256k1/internal/secp256k1/panic_cb.go | 4 +- crypto/keys/secp256k1/secp256k1.go | 11 ++-- crypto/keys/secp256k1/secp256k1_nocgo.go | 21 +------ crypto/types/compact_bit_array.go | 6 +- crypto/types/compact_bit_array_test.go | 4 +- depinject/location.go | 2 +- .../crypto_hd_deriveprivatekeyforpath_test.go | 4 +- .../tests/crypto_hd_newparamsfrompath_test.go | 4 +- ...s_compactbitarray_marshalunmarshal_test.go | 2 +- .../tests/tendermint_amino_decodetime_test.go | 2 +- fuzz/tests/types_dec_setstring_test.go | 2 +- fuzz/tests/types_parsecoin_test.go | 4 +- fuzz/tests/types_parsedeccoin_test.go | 4 +- fuzz/tests/types_parsetimebytes_test.go | 2 +- fuzz/tests/types_verifyaddressformat_test.go | 4 +- fuzz/tests/unknownproto_test.go | 6 +- internal/conv/string.go | 11 +--- math/dec.go | 4 +- math/int.go | 10 ++-- math/max_min.go | 20 +++---- math/uint.go | 6 +- math/unsafe/rand.go | 2 + orm/internal/testkv/debug.go | 12 ++-- orm/model/ormtable/hooks.go | 4 +- orm/model/ormtable/index.go | 2 +- orm/model/ormtable/index_impl.go | 4 +- orm/model/ormtable/unique.go | 6 +- runtime/events.go | 8 +-- runtime/module.go | 2 +- runtime/store.go | 2 +- server/api/server.go | 2 +- server/cmt_cmds.go | 12 ++-- .../grpc/gogoreflection/serverreflection.go | 6 +- server/mock/store.go | 56 +++++++++---------- server/mock/tx.go | 8 +-- server/rollback.go | 2 +- server/start.go | 2 +- simapp/abci.go | 2 +- simapp/simd/cmd/testnet.go | 2 +- simapp/test_helpers.go | 2 +- store/iavl/tree.go | 2 +- store/mem/store.go | 2 +- store/metrics/telemetry.go | 2 +- store/rootmulti/store.go | 3 +- store/types/listening.go | 4 +- tests/e2e/auth/suite.go | 5 -- tests/e2e/authz/grpc.go | 2 - tests/e2e/authz/tx.go | 7 --- tests/e2e/bank/grpc.go | 3 - tests/e2e/bank/suite.go | 4 -- tests/e2e/distribution/grpc_query_suite.go | 9 --- tests/e2e/distribution/suite.go | 8 --- tests/e2e/gov/grpc.go | 8 --- tests/e2e/gov/tx.go | 6 -- testutil/configurator/configurator.go | 1 + testutil/sims/address_helpers.go | 3 +- testutil/sims/app_helpers.go | 13 +++-- testutil/sims/tx_helpers.go | 2 +- tools/confix/cmd/home.go | 2 +- tools/confix/migrations.go | 1 - tools/cosmovisor/cmd/cosmovisor/config.go | 2 +- tools/cosmovisor/cmd/cosmovisor/version.go | 2 +- tools/hubl/internal/load.go | 1 + tools/hubl/internal/remote.go | 10 ++-- types/address.go | 6 +- types/address_race_test.go | 4 +- types/bech32/bech32_test.go | 2 +- types/bech32/legacybech32/pk.go | 4 +- types/coin.go | 22 ++++---- types/coin_test.go | 12 ++-- types/collections.go | 2 +- types/config_test.go | 2 +- types/context_test.go | 2 +- types/dec_coin_test.go | 22 ++++---- types/fuzz_test.go | 2 +- types/handler.go | 4 +- types/module/module.go | 2 - types/module/module_test.go | 2 +- types/query/collections_pagination_test.go | 6 +- types/result.go | 6 +- types/simulation/account.go | 2 +- types/simulation/rand_util.go | 24 ++++---- x/auth/ante/ante.go | 1 + x/auth/ante/basic.go | 1 + x/auth/ante/fee.go | 5 +- x/auth/ante/sigverify.go | 2 - x/auth/ante/validator_tx_fee.go | 5 +- x/auth/client/cli/query.go | 2 +- x/auth/client/cli/tx_multisign.go | 6 +- x/auth/client/cli/tx_sign.go | 3 + x/auth/codec/hex_codec.go | 4 +- x/auth/keeper/grpc_query.go | 24 ++++---- x/auth/module.go | 6 +- x/auth/signing/verify.go | 11 ++-- x/auth/tx/query.go | 4 +- x/auth/tx/service.go | 14 ++--- x/auth/tx/sigs.go | 4 +- x/auth/tx/textual.go | 2 +- x/auth/types/account.go | 8 +-- x/auth/types/genesis.go | 4 +- x/auth/vesting/module.go | 2 +- x/auth/vesting/types/period.go | 6 +- x/auth/vesting/types/vesting_account.go | 2 +- x/authz/authorization_grant.go | 4 +- x/authz/generic_authorization.go | 2 +- x/authz/keeper/grpc_query.go | 14 ++--- x/authz/keeper/keeper.go | 4 +- x/authz/module/module.go | 2 +- x/authz/msgs.go | 8 +-- x/authz/simulation/genesis.go | 4 +- x/authz/simulation/operations.go | 8 +-- x/authz/testutil/bank_helpers.go | 8 +-- x/bank/keeper/grpc_query.go | 2 +- x/bank/keeper/keeper.go | 43 ++------------ x/bank/module.go | 2 +- x/bank/simulation/operations.go | 2 +- x/bank/testutil/helpers.go | 1 + x/circuit/keeper/query.go | 2 +- x/circuit/module.go | 2 +- x/crisis/module.go | 2 +- x/distribution/client/cli/tx.go | 2 - x/distribution/keeper/delegation.go | 12 ++-- x/distribution/keeper/grpc_query.go | 11 ++-- x/distribution/keeper/hooks.go | 2 +- x/distribution/keeper/invariants.go | 2 +- x/distribution/keeper/msg_server.go | 2 +- x/distribution/keeper/store.go | 2 +- x/distribution/simulation/operations.go | 14 ++--- x/distribution/testutil/staking_helper.go | 4 +- x/evidence/keeper/grpc_query.go | 2 +- x/evidence/module.go | 6 +- x/evidence/types/genesis.go | 4 +- x/evidence/types/msgs.go | 4 +- x/feegrant/filtered_fee.go | 6 +- x/feegrant/grant.go | 4 +- x/feegrant/keeper/grpc_query.go | 6 +- x/feegrant/module/module.go | 2 +- x/feegrant/msgs.go | 4 +- x/feegrant/simulation/operations.go | 12 ++-- x/genutil/client/cli/init.go | 4 +- x/genutil/migrations/v046/migrate.go | 8 +-- x/genutil/migrations/v047/migrate.go | 4 +- x/genutil/module.go | 2 +- x/gov/client/cli/tx.go | 5 +- x/gov/keeper/deposit.go | 10 ++-- x/gov/keeper/grpc_query.go | 2 +- x/gov/keeper/invariants.go | 2 +- x/gov/keeper/msg_server.go | 5 +- x/gov/keeper/msg_validator.go | 19 ++++--- x/gov/keeper/proposal.go | 4 +- x/gov/keeper/tally.go | 7 +-- x/gov/migrations/v4/store.go | 2 +- x/gov/module.go | 6 +- x/gov/simulation/genesis.go | 2 +- x/gov/simulation/operations.go | 12 ++-- x/gov/simulation/proposals.go | 2 +- x/gov/types/expected_keepers.go | 5 +- x/gov/types/v1/content.go | 4 +- x/gov/types/v1/genesis.go | 22 ++++---- x/gov/types/v1/params.go | 3 +- x/gov/types/v1beta1/msgs.go | 4 +- x/gov/types/v1beta1/proposal.go | 4 +- x/group/client/cli/tx.go | 2 +- x/group/internal/orm/index_test.go | 4 +- x/group/internal/orm/indexer_test.go | 56 +++++++++---------- x/group/internal/orm/iterator.go | 11 ++-- x/group/internal/orm/iterator_test.go | 2 +- x/group/keeper/keeper.go | 4 +- x/group/keeper/msg_server.go | 2 +- x/group/keeper/proposal_executor.go | 2 +- x/group/migrations/v2/gen_state.go | 2 +- x/group/module/module.go | 2 +- x/group/msgs.go | 12 ++-- x/group/simulation/genesis.go | 4 +- x/group/simulation/operations.go | 48 ++++++++-------- x/group/types.go | 10 ++-- x/mint/module.go | 4 +- x/mint/simulation/genesis.go | 6 +- x/nft/internal/conv/string.go | 11 +--- x/nft/keeper/grpc_query.go | 2 +- x/nft/module/module.go | 4 +- x/params/module.go | 4 +- x/params/simulation/operations.go | 4 +- x/params/types/subspace.go | 2 +- x/simulation/operation.go | 1 - x/slashing/keeper/genesis.go | 2 +- x/slashing/keeper/grpc_query.go | 2 +- x/slashing/keeper/hooks.go | 2 +- x/slashing/migrations/v4/migrate.go | 10 ++-- x/slashing/module.go | 6 +- x/slashing/simulation/operations.go | 4 +- x/staking/client/cli/tx.go | 4 +- x/staking/keeper/delegation.go | 8 +-- x/staking/keeper/grpc_query.go | 18 +++--- x/staking/keeper/keeper.go | 6 +- x/staking/keeper/params.go | 2 +- x/staking/keeper/slash.go | 4 +- x/staking/keeper/test_common.go | 2 + x/staking/keeper/val_state_change.go | 4 +- x/staking/migrations/v2/store.go | 2 +- x/staking/migrations/v3/store.go | 2 +- x/staking/migrations/v4/store.go | 4 +- x/staking/migrations/v5/store.go | 2 +- x/staking/module.go | 4 +- x/staking/simulation/operations.go | 14 ++--- x/upgrade/client/cli/tx.go | 2 +- x/upgrade/internal/conv/string.go | 9 +-- x/upgrade/keeper/grpc_query.go | 4 +- x/upgrade/module.go | 2 +- 248 files changed, 738 insertions(+), 873 deletions(-) diff --git a/.github/workflows/govulncheck.yml b/.github/workflows/govulncheck.yml index bbb367854039..1c03b02c4538 100644 --- a/.github/workflows/govulncheck.yml +++ b/.github/workflows/govulncheck.yml @@ -1,3 +1,4 @@ +# TODO HV2: remove GIT_TERMINAL_PROMPT, GOPRIVATE and GH_ACCESS_TOKEN vars once heimdall-v2 is a public repo name: Govuln on: [ push, pull_request ] @@ -19,9 +20,5 @@ jobs: go.sum Makefile - name: govulncheck - env: - GIT_TERMINAL_PROMPT: 1 - GOPRIVATE: github.com/0xPolygon/heimdall-v2 - GH_PAT_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} run: make vulncheck if: "env.GIT_DIFF != ''" diff --git a/.golangci.yml b/.golangci.yml index 3f61e47a961e..78c66dfb6b4d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,23 +1,13 @@ run: tests: true timeout: 15m - sort-results: true allow-parallel-runners: true - exclude-dir: testutil/testdata - skip-files: - - server/grpc/gogoreflection/fix_registration.go - - "fix_registration.go" - - "x/bank/migrations/v4/gen_state_test.go" - - ".*\\.pb\\.go$" - - ".*\\.pb\\.gw\\.go$" - - ".*\\.pulsar\\.go$" linters: disable-all: true enable: - - depguard - dogsled - - exportloopref + - copyloopvar - goconst - gocritic - gci @@ -28,7 +18,6 @@ linters: - ineffassign - misspell - nakedret - - nolintlint - staticcheck - revive - stylecheck @@ -37,6 +26,16 @@ linters: - unused issues: + exclude-files: + - server/grpc/gogoreflection/fix_registration.go + - "fix_registration.go" + - "x/bank/migrations/v4/gen_state_test.go" + - ".*\\.pb\\.go$" + - ".*\\.pb\\.gw\\.go$" + - ".*\\.pulsar\\.go$" + - ".*_test\\.go" + exclude-dirs: + - testutil/testdata exclude-rules: - text: "Use of weak random number generator" linters: diff --git a/Makefile b/Makefile index 2912e039530e..cdce7c75ec97 100644 --- a/Makefile +++ b/Makefile @@ -372,7 +372,7 @@ benchmark: ### Linting ### ############################################################################### -golangci_version=v1.51.2 +golangci_version=v1.63.4 lint-install: @echo "--> Installing golangci-lint $(golangci_version)" diff --git a/baseapp/abci.go b/baseapp/abci.go index fe8e6f6af523..88a49240755d 100644 --- a/baseapp/abci.go +++ b/baseapp/abci.go @@ -201,7 +201,7 @@ func (app *BaseApp) Query(_ context.Context, req *abci.RequestQuery) (resp *abci } // ListSnapshots implements the ABCI interface. It delegates to app.snapshotManager if set. -func (app *BaseApp) ListSnapshots(req *abci.RequestListSnapshots) (*abci.ResponseListSnapshots, error) { +func (app *BaseApp) ListSnapshots(_ *abci.RequestListSnapshots) (*abci.ResponseListSnapshots, error) { resp := &abci.ResponseListSnapshots{Snapshots: []*abci.Snapshot{}} if app.snapshotManager == nil { return resp, nil diff --git a/baseapp/abci_utils.go b/baseapp/abci_utils.go index 30914b3c8705..575ccb33781f 100644 --- a/baseapp/abci_utils.go +++ b/baseapp/abci_utils.go @@ -4,7 +4,7 @@ import ( "bytes" "context" "fmt" - "slices" //nolint: gci // ignore this line for this linter + "slices" "github.com/cockroachdb/errors" abci "github.com/cometbft/cometbft/abci/types" @@ -12,7 +12,7 @@ import ( cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" protoio "github.com/cosmos/gogoproto/io" - "github.com/cosmos/gogoproto/proto" //nolint: gci // ignore this line for this linter + "github.com/cosmos/gogoproto/proto" "cosmossdk.io/core/comet" diff --git a/client/debug/main.go b/client/debug/main.go index 843399eb17cd..a01f0d82c9dc 100644 --- a/client/debug/main.go +++ b/client/debug/main.go @@ -64,7 +64,7 @@ func getCodecInterfaces() *cobra.Command { Use: "list-interfaces", Short: "List all registered interface type URLs", Long: "List all registered interface type URLs using the application codec", - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { clientCtx := client.GetClientContextFromCmd(cmd) iFaces := clientCtx.Codec.InterfaceRegistry().ListAllInterfaces() for _, iFace := range iFaces { @@ -329,7 +329,7 @@ func PrefixesCmd() *cobra.Command { Short: "List prefixes used for Human-Readable Part (HRP) in hex", Long: "List prefixes used in Bech32 addresses.", Example: fmt.Sprintf("$ %s debug prefixes", version.AppName), - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { cmd.Printf("Hex Acc: %s\n", "") cmd.Printf("Hex Val: %s\n", "") cmd.Printf("Hex Con: %s\n", "") diff --git a/client/input/input_test.go b/client/input/input_test.go index 3132afcdfaa4..6ddf04bb2e36 100644 --- a/client/input/input_test.go +++ b/client/input/input_test.go @@ -34,7 +34,7 @@ func TestReadLineFromBuf(t *testing.T) { }) t.Run("it returns EOF if reader has been exhausted", func(t *testing.T) { - fr.fnc = func(p []byte) (int, error) { + fr.fnc = func(_ []byte) (int, error) { return 0, io.EOF } buf := bufio.NewReader(fr) diff --git a/client/keys/add.go b/client/keys/add.go index 6407cf08496d..103dbd34e545 100644 --- a/client/keys/add.go +++ b/client/keys/add.go @@ -94,7 +94,7 @@ Example: f.String(flagMnemonicSrc, "", "Import mnemonic from a file (only usable when recover or interactive is passed)") // support old flags name for backwards compatibility - f.SetNormalizeFunc(func(f *pflag.FlagSet, name string) pflag.NormalizedName { + f.SetNormalizeFunc(func(_ *pflag.FlagSet, name string) pflag.NormalizedName { if name == flags.FlagKeyAlgorithm { name = flags.FlagKeyType } diff --git a/client/keys/list.go b/client/keys/list.go index 4d7140c605ab..7ff602a72d97 100644 --- a/client/keys/list.go +++ b/client/keys/list.go @@ -56,7 +56,7 @@ func ListKeyTypesCmd() *cobra.Command { Use: "list-key-types", Short: "List all key types", Long: `Return a list of all supported key types (also known as algos)`, - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { clientCtx, err := client.GetClientQueryContext(cmd) if err != nil { return err diff --git a/client/keys/mnemonic.go b/client/keys/mnemonic.go index ea7f9638d9be..daf28a40b570 100644 --- a/client/keys/mnemonic.go +++ b/client/keys/mnemonic.go @@ -23,7 +23,7 @@ func MnemonicKeyCommand() *cobra.Command { Use: "mnemonic", Short: "Compute the bip39 mnemonic for some input entropy", Long: "Create a bip39 mnemonic, sometimes called a seed phrase, by reading from the system entropy. To pass your own entropy, use --unsafe-entropy", - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { var entropySeed []byte if userEntropy, _ := cmd.Flags().GetBool(flagUserEntropy); userEntropy { diff --git a/client/keys/parse.go b/client/keys/parse.go index 2bfa7e12bba7..8ab6420261d9 100644 --- a/client/keys/parse.go +++ b/client/keys/parse.go @@ -33,7 +33,7 @@ type bech32Output struct { Formats []string `json:"formats"` } -func newBech32Output(config *sdk.Config, bs []byte) bech32Output { +func newBech32Output(_ *sdk.Config, bs []byte) bech32Output { out := bech32Output{Formats: make([]string, 1)} bech32Addr, err := bech32.ConvertAndEncode("", bs) if err != nil { diff --git a/client/keys/types.go b/client/keys/types.go index 1df26ed2879d..5a5de765e82f 100644 --- a/client/keys/types.go +++ b/client/keys/types.go @@ -42,8 +42,8 @@ type UpdateKeyReq struct { } // NewUpdateKeyReq constructs a new UpdateKeyReq structure. -func NewUpdateKeyReq(old, new string) UpdateKeyReq { - return UpdateKeyReq{OldPassword: old, NewPassword: new} +func NewUpdateKeyReq(old, n string) UpdateKeyReq { + return UpdateKeyReq{OldPassword: old, NewPassword: n} } // DeleteKeyReq requests deleting a key diff --git a/client/snapshot/export.go b/client/snapshot/export.go index 87c5f02e91c9..0413c97a446b 100644 --- a/client/snapshot/export.go +++ b/client/snapshot/export.go @@ -15,7 +15,7 @@ func ExportSnapshotCmd(appCreator servertypes.AppCreator) *cobra.Command { Use: "export", Short: "Export app state to snapshot store", Args: cobra.NoArgs, - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { ctx := server.GetServerContextFromCmd(cmd) height, err := cmd.Flags().GetInt64("height") diff --git a/client/snapshot/list.go b/client/snapshot/list.go index 501bfd7c5291..bfa572b4463b 100644 --- a/client/snapshot/list.go +++ b/client/snapshot/list.go @@ -12,7 +12,7 @@ import ( var ListSnapshotsCmd = &cobra.Command{ Use: "list", Short: "List local snapshots", - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { ctx := server.GetServerContextFromCmd(cmd) snapshotStore, err := server.GetSnapshotStore(ctx.Viper) if err != nil { diff --git a/client/v2/autocli/flag/pubkey.go b/client/v2/autocli/flag/pubkey.go index adc07956f690..980026e104ca 100644 --- a/client/v2/autocli/flag/pubkey.go +++ b/client/v2/autocli/flag/pubkey.go @@ -45,12 +45,12 @@ func (a *pubkeyValue) Set(s string) error { return fmt.Errorf("input isn't a pubkey: %w", err) } - any, err := types.NewAnyWithValue(pk) + an, err := types.NewAnyWithValue(pk) if err != nil { return fmt.Errorf("error converting to any type") } - a.value = any + a.value = an return nil } diff --git a/client/v2/autocli/keyring/keyring.go b/client/v2/autocli/keyring/keyring.go index 601163aac690..4962af58291f 100644 --- a/client/v2/autocli/keyring/keyring.go +++ b/client/v2/autocli/keyring/keyring.go @@ -1,8 +1,6 @@ package keyring import ( - "context" - signingv1beta1 "cosmossdk.io/api/cosmos/tx/signing/v1beta1" "github.com/cosmos/cosmos-sdk/crypto/types" @@ -18,11 +16,6 @@ type KeyringImpl struct { //nolint:revive // stuttering is fine k Keyring } -// NewKeyringInContext returns a new context with the keyring set. -func NewKeyringInContext(ctx context.Context, k Keyring) context.Context { - return context.WithValue(ctx, KeyringContextKey, NewKeyringImpl(k)) -} - func NewKeyringImpl(k Keyring) *KeyringImpl { return &KeyringImpl{k: k} } diff --git a/client/v2/autocli/keyring/no_keyring.go b/client/v2/autocli/keyring/no_keyring.go index e14267cee5e3..c79cd02ea2a6 100644 --- a/client/v2/autocli/keyring/no_keyring.go +++ b/client/v2/autocli/keyring/no_keyring.go @@ -18,14 +18,14 @@ func (k NoKeyring) List() ([]string, error) { return nil, errNoKeyring } -func (k NoKeyring) LookupAddressByKeyName(name string) ([]byte, error) { +func (k NoKeyring) LookupAddressByKeyName(_ string) ([]byte, error) { return nil, errNoKeyring } -func (k NoKeyring) GetPubKey(name string) (cryptotypes.PubKey, error) { +func (k NoKeyring) GetPubKey(_ string) (cryptotypes.PubKey, error) { return nil, errNoKeyring } -func (k NoKeyring) Sign(name string, msg []byte, signMode signingv1beta1.SignMode) ([]byte, error) { +func (k NoKeyring) Sign(_ string, _ []byte, _ signingv1beta1.SignMode) ([]byte, error) { return nil, errNoKeyring } diff --git a/client/v2/autocli/query.go b/client/v2/autocli/query.go index dcb41bbfa25a..83dff7ed4af3 100644 --- a/client/v2/autocli/query.go +++ b/client/v2/autocli/query.go @@ -114,7 +114,7 @@ func (b *Builder) AddQueryServiceCommands(cmd *cobra.Command, cmdDescriptor *aut // BuildQueryMethodCommand creates a gRPC query command for the given service method. This can be used to auto-generate // just a single command for a single service rpc method. -func (b *Builder) BuildQueryMethodCommand(ctx context.Context, descriptor protoreflect.MethodDescriptor, options *autocliv1.RpcCommandOptions) (*cobra.Command, error) { +func (b *Builder) BuildQueryMethodCommand(_ context.Context, descriptor protoreflect.MethodDescriptor, options *autocliv1.RpcCommandOptions) (*cobra.Command, error) { getClientConn := b.GetClientConn serviceDescriptor := descriptor.Parent().(protoreflect.ServiceDescriptor) methodName := fmt.Sprintf("/%s/%s", serviceDescriptor.FullName(), descriptor.Name()) diff --git a/codec/address/hex_codec.go b/codec/address/hex_codec.go index 9c86e93fa780..460d7f6b6caf 100644 --- a/codec/address/hex_codec.go +++ b/codec/address/hex_codec.go @@ -8,11 +8,11 @@ import ( "cosmossdk.io/core/address" errorsmod "cosmossdk.io/errors" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -type HexCodec struct { -} +type HexCodec struct{} var _ address.Codec = &HexCodec{} diff --git a/codec/address/hex_codec_test.go b/codec/address/hex_codec_test.go index 5707a1a5cf8f..09ffa3df09a1 100644 --- a/codec/address/hex_codec_test.go +++ b/codec/address/hex_codec_test.go @@ -7,12 +7,13 @@ import ( "github.com/stretchr/testify/require" ) +const testAddress = "0xa316fa9fa91700d7084d377bfdc81eb9f232f5ff" + func TestHexCodec_StringToBytes_ValidHex(t *testing.T) { codec := NewHexCodec() - text := "0xa316fa9fa91700d7084d377bfdc81eb9f232f5ff" - expected := common.FromHex(text) + expected := common.FromHex(testAddress) - result, err := codec.StringToBytes(text) + result, err := codec.StringToBytes(testAddress) require.NoError(t, err) require.Equal(t, expected, result) } diff --git a/codec/proto_codec.go b/codec/proto_codec.go index 11fa7859c1c1..0d1c0767d89c 100644 --- a/codec/proto_codec.go +++ b/codec/proto_codec.go @@ -142,7 +142,7 @@ func (pc *ProtoCodec) MustUnmarshalLengthPrefixed(bz []byte, ptr gogoproto.Messa // it marshals to JSON using proto codec. // NOTE: this function must be used with a concrete type which // implements proto.Message. For interface please use the codec.MarshalInterfaceJSON -func (pc *ProtoCodec) MarshalJSON(o gogoproto.Message) ([]byte, error) { //nolint:stdmethods // we don't want to implement Marshaler interface +func (pc *ProtoCodec) MarshalJSON(o gogoproto.Message) ([]byte, error) { if o == nil { return nil, fmt.Errorf("cannot protobuf JSON encode nil") } @@ -227,7 +227,7 @@ func (pc *ProtoCodec) MarshalInterface(i gogoproto.Message) ([]byte, error) { if err := assertNotNil(i); err != nil { return nil, err } - any, err := types.NewAnyWithValue(i) + a, err := types.NewAnyWithValue(i) if err != nil { return nil, err } @@ -236,7 +236,7 @@ func (pc *ProtoCodec) MarshalInterface(i gogoproto.Message) ([]byte, error) { return nil, err } - return pc.Marshal(any) + return pc.Marshal(a) } // UnmarshalInterface is a convenience function for proto unmarshaling interfaces. It @@ -249,24 +249,24 @@ func (pc *ProtoCodec) MarshalInterface(i gogoproto.Message) ([]byte, error) { // var x MyInterface // err := cdc.UnmarshalInterface(bz, &x) func (pc *ProtoCodec) UnmarshalInterface(bz []byte, ptr interface{}) error { - any := &types.Any{} - err := pc.Unmarshal(bz, any) + a := &types.Any{} + err := pc.Unmarshal(bz, a) if err != nil { return err } - return pc.UnpackAny(any, ptr) + return pc.UnpackAny(a, ptr) } // MarshalInterfaceJSON is a convenience function for proto marshaling interfaces. It // packs the provided value in an Any and then marshals it to bytes. // NOTE: to marshal a concrete type, you should use MarshalJSON instead func (pc *ProtoCodec) MarshalInterfaceJSON(x gogoproto.Message) ([]byte, error) { - any, err := types.NewAnyWithValue(x) + a, err := types.NewAnyWithValue(x) if err != nil { return nil, err } - return pc.MarshalJSON(any) + return pc.MarshalJSON(a) } // UnmarshalInterfaceJSON is a convenience function for proto unmarshaling interfaces. @@ -279,19 +279,19 @@ func (pc *ProtoCodec) MarshalInterfaceJSON(x gogoproto.Message) ([]byte, error) // var x MyInterface // must implement proto.Message // err := cdc.UnmarshalInterfaceJSON(&x, bz) func (pc *ProtoCodec) UnmarshalInterfaceJSON(bz []byte, iface interface{}) error { - any := &types.Any{} - err := pc.UnmarshalJSON(bz, any) + a := &types.Any{} + err := pc.UnmarshalJSON(bz, a) if err != nil { return err } - return pc.UnpackAny(any, iface) + return pc.UnpackAny(a, iface) } // UnpackAny implements AnyUnpacker.UnpackAny method, // it unpacks the value in any to the interface pointer passed in as // iface. -func (pc *ProtoCodec) UnpackAny(any *types.Any, iface interface{}) error { - return pc.interfaceRegistry.UnpackAny(any, iface) +func (pc *ProtoCodec) UnpackAny(a *types.Any, iface interface{}) error { + return pc.interfaceRegistry.UnpackAny(a, iface) } // InterfaceRegistry returns InterfaceRegistry diff --git a/codec/testutil/codec.go b/codec/testutil/codec.go index d72a228c8582..5f7b0543e080 100644 --- a/codec/testutil/codec.go +++ b/codec/testutil/codec.go @@ -18,7 +18,6 @@ type CodecOptions struct { // NewInterfaceRegistry returns a new InterfaceRegistry with the given options. func (o CodecOptions) NewInterfaceRegistry() codectypes.InterfaceRegistry { - ir, err := codectypes.NewInterfaceRegistryWithOptions(codectypes.InterfaceRegistryOptions{ ProtoFiles: proto.HybridResolver, SigningOptions: signing.Options{ diff --git a/codec/types/any.go b/codec/types/any.go index bef5441fd170..87e43fbd20e0 100644 --- a/codec/types/any.go +++ b/codec/types/any.go @@ -92,9 +92,9 @@ func NewAnyWithValue(v proto.Message) (*Any, error) { // marshaled with amino and not protobuf. func UnsafePackAny(x interface{}) *Any { if msg, ok := x.(proto.Message); ok { - any, err := NewAnyWithValue(msg) + a, err := NewAnyWithValue(msg) if err == nil { - return any + return a } } return &Any{cachedValue: x} diff --git a/codec/types/any_internal_test.go b/codec/types/any_internal_test.go index f413f95528f2..9c839682ff04 100644 --- a/codec/types/any_internal_test.go +++ b/codec/types/any_internal_test.go @@ -40,28 +40,28 @@ func TestAnyPackUnpack(t *testing.T) { var animal Animal // with cache - any, err := NewAnyWithValue(spot) + a, err := NewAnyWithValue(spot) require.NoError(t, err) - require.Equal(t, spot, any.GetCachedValue()) - err = registry.UnpackAny(any, &animal) + require.Equal(t, spot, a.GetCachedValue()) + err = registry.UnpackAny(a, &animal) require.NoError(t, err) require.Equal(t, spot, animal) // without cache - any.cachedValue = nil - err = registry.UnpackAny(any, &animal) + a.cachedValue = nil + err = registry.UnpackAny(a, &animal) require.NoError(t, err) require.Equal(t, spot, animal) } func TestString(t *testing.T) { - require := require.New(t) + req := require.New(t) spot := &Dog{Name: "Spot"} - any, err := NewAnyWithValue(spot) - require.NoError(err) + a, err := NewAnyWithValue(spot) + req.NoError(err) - require.Equal("&Any{TypeUrl:/tests/dog,Value:[10 4 83 112 111 116],XXX_unrecognized:[]}", any.String()) - require.Equal(`&Any{TypeUrl: "/tests/dog", + req.Equal("&Any{TypeUrl:/tests/dog,Value:[10 4 83 112 111 116],XXX_unrecognized:[]}", a.String()) + req.Equal(`&Any{TypeUrl: "/tests/dog", Value: []byte{0xa, 0x4, 0x53, 0x70, 0x6f, 0x74} -}`, any.GoString()) +}`, a.GoString()) } diff --git a/codec/types/any_test.go b/codec/types/any_test.go index 06c0f5b41896..399620564257 100644 --- a/codec/types/any_test.go +++ b/codec/types/any_test.go @@ -39,7 +39,7 @@ func TestNewAnyWithCustomTypeURLWithErrorNoAllocation(t *testing.T) { var ms1, ms2 runtime.MemStats runtime.ReadMemStats(&ms1) - any, err := types.NewAnyWithValue(eom) + a, err := types.NewAnyWithValue(eom) runtime.ReadMemStats(&ms2) // Ensure that no fresh allocation was made. if diff := ms2.HeapAlloc - ms1.HeapAlloc; diff > 0 { @@ -48,8 +48,8 @@ func TestNewAnyWithCustomTypeURLWithErrorNoAllocation(t *testing.T) { if err == nil { t.Fatal("err wasn't returned") } - if any != nil { - t.Fatalf("Unexpectedly got a non-nil Any value: %v", any) + if a != nil { + t.Fatalf("Unexpectedly got a non-nil Any value: %v", a) } } @@ -59,14 +59,14 @@ func BenchmarkNewAnyWithCustomTypeURLWithErrorReturned(b *testing.B) { b.ResetTimer() b.ReportAllocs() for i := 0; i < b.N; i++ { - any, err := types.NewAnyWithValue(eom) + a, err := types.NewAnyWithValue(eom) if err == nil { b.Fatal("err wasn't returned") } - if any != nil { - b.Fatalf("Unexpectedly got a non-nil Any value: %v", any) + if a != nil { + b.Fatalf("Unexpectedly got a non-nil Any value: %v", a) } - sink = any + sink = a } if sink == nil { b.Fatal("benchmark didn't run") diff --git a/codec/types/compat.go b/codec/types/compat.go index 080ca321c72e..8591b74fddb5 100644 --- a/codec/types/compat.go +++ b/codec/types/compat.go @@ -73,8 +73,8 @@ type AminoUnpacker struct { var _ AnyUnpacker = AminoUnpacker{} -func (a AminoUnpacker) UnpackAny(any *Any, iface interface{}) error { - ac := any.compat +func (a AminoUnpacker) UnpackAny(an *Any, iface interface{}) error { + ac := an.compat if ac == nil { return anyCompatError("amino binary unmarshal", reflect.TypeOf(iface)) } @@ -88,21 +88,21 @@ func (a AminoUnpacker) UnpackAny(any *Any, iface interface{}) error { return err } if m, ok := val.(proto.Message); ok { - if err = any.pack(m); err != nil { + if err = an.pack(m); err != nil { return err } } else { - any.cachedValue = val + an.cachedValue = val } // this is necessary for tests that use reflect.DeepEqual and compare // proto vs amino marshaled values - any.compat = nil + an.compat = nil return nil } -// AminoUnpacker is an AnyUnpacker provided for backwards compatibility with +// AminoPacker is an AnyPacker provided for backwards compatibility with // amino for the binary marshaling phase type AminoPacker struct { Cdc *amino.Codec @@ -110,20 +110,20 @@ type AminoPacker struct { var _ AnyUnpacker = AminoPacker{} -func (a AminoPacker) UnpackAny(any *Any, _ interface{}) error { - err := UnpackInterfaces(any.cachedValue, a) +func (a AminoPacker) UnpackAny(an *Any, _ interface{}) error { + err := UnpackInterfaces(an.cachedValue, a) if err != nil { return err } - bz, err := a.Cdc.MarshalBinaryBare(any.cachedValue) - any.compat = &anyCompat{ + bz, err := a.Cdc.MarshalBinaryBare(an.cachedValue) + an.compat = &anyCompat{ aminoBz: bz, err: err, } return err } -// AminoUnpacker is an AnyUnpacker provided for backwards compatibility with +// AminoJSONUnpacker is an AnyUnpacker provided for backwards compatibility with // amino for the JSON marshaling phase type AminoJSONUnpacker struct { Cdc *amino.Codec @@ -131,8 +131,8 @@ type AminoJSONUnpacker struct { var _ AnyUnpacker = AminoJSONUnpacker{} -func (a AminoJSONUnpacker) UnpackAny(any *Any, iface interface{}) error { - ac := any.compat +func (a AminoJSONUnpacker) UnpackAny(an *Any, iface interface{}) error { + ac := an.compat if ac == nil { return anyCompatError("JSON unmarshal", reflect.TypeOf(iface)) } @@ -146,21 +146,21 @@ func (a AminoJSONUnpacker) UnpackAny(any *Any, iface interface{}) error { return err } if m, ok := val.(proto.Message); ok { - if err = any.pack(m); err != nil { + if err = an.pack(m); err != nil { return err } } else { - any.cachedValue = val + an.cachedValue = val } // this is necessary for tests that use reflect.DeepEqual and compare // proto vs amino marshaled values - any.compat = nil + an.compat = nil return nil } -// AminoUnpacker is an AnyUnpacker provided for backwards compatibility with +// AminoJSONPacker is an AnyPacker provided for backwards compatibility with // amino for the JSON un-marshaling phase type AminoJSONPacker struct { Cdc *amino.Codec @@ -168,13 +168,13 @@ type AminoJSONPacker struct { var _ AnyUnpacker = AminoJSONPacker{} -func (a AminoJSONPacker) UnpackAny(any *Any, _ interface{}) error { - err := UnpackInterfaces(any.cachedValue, a) +func (a AminoJSONPacker) UnpackAny(an *Any, _ interface{}) error { + err := UnpackInterfaces(an.cachedValue, a) if err != nil { return err } - bz, err := a.Cdc.MarshalJSON(any.cachedValue) - any.compat = &anyCompat{ + bz, err := a.Cdc.MarshalJSON(an.cachedValue) + an.compat = &anyCompat{ jsonBz: bz, err: err, } @@ -188,20 +188,20 @@ type ProtoJSONPacker struct { var _ AnyUnpacker = ProtoJSONPacker{} -func (a ProtoJSONPacker) UnpackAny(any *Any, _ interface{}) error { - if any == nil { +func (a ProtoJSONPacker) UnpackAny(an *Any, _ interface{}) error { + if an == nil { return nil } - if any.cachedValue != nil { - err := UnpackInterfaces(any.cachedValue, a) + if an.cachedValue != nil { + err := UnpackInterfaces(an.cachedValue, a) if err != nil { return err } } - bz, err := a.JSONPBMarshaler.MarshalToString(any) - any.compat = &anyCompat{ + bz, err := a.JSONPBMarshaler.MarshalToString(an) + an.compat = &anyCompat{ jsonBz: []byte(bz), err: err, } diff --git a/codec/types/compat_test.go b/codec/types/compat_test.go index 56cb32e82cc0..7005eb1120d5 100644 --- a/codec/types/compat_test.go +++ b/codec/types/compat_test.go @@ -31,9 +31,9 @@ func (s *Suite) SetupTest() { s.spot = &testdata.Dog{Size_: "small", Name: "Spot"} s.a = TypeWithInterface{Animal: s.spot} - any, err := types.NewAnyWithValue(s.spot) + a, err := types.NewAnyWithValue(s.spot) s.Require().NoError(err) - s.b = testdata.HasAnimal{Animal: any} + s.b = testdata.HasAnimal{Animal: a} } func (s *Suite) TestAminoBinary() { @@ -89,12 +89,12 @@ func (s *Suite) TestNested() { s.cdc.RegisterConcrete(&testdata.HasHasAnimal{}, "testdata/HasHasAnimal", nil) s.cdc.RegisterConcrete(&testdata.HasHasHasAnimal{}, "testdata/HasHasHasAnimal", nil) - any, err := types.NewAnyWithValue(&s.b) + a, err := types.NewAnyWithValue(&s.b) s.Require().NoError(err) - hha := testdata.HasHasAnimal{HasAnimal: any} - any2, err := types.NewAnyWithValue(&hha) + hha := testdata.HasHasAnimal{HasAnimal: a} + a2, err := types.NewAnyWithValue(&hha) s.Require().NoError(err) - hhha := testdata.HasHasHasAnimal{HasHasAnimal: any2} + hhha := testdata.HasHasHasAnimal{HasHasAnimal: a2} // marshal err = types.UnpackInterfaces(hhha, types.AminoPacker{Cdc: s.cdc}) diff --git a/codec/types/interface_registry.go b/codec/types/interface_registry.go index 93fbca7c8850..5329d8d5803a 100644 --- a/codec/types/interface_registry.go +++ b/codec/types/interface_registry.go @@ -27,14 +27,14 @@ var ( // AnyUnpacker is an interface which allows safely unpacking types packed // in Any's against a whitelist of registered types type AnyUnpacker interface { - // UnpackAny unpacks the value in any to the interface pointer passed in as + // UnpackAny unpacks the value in a to the interface pointer passed in as // iface. Note that the type in any must have been registered in the // underlying whitelist registry as a concrete type for that interface // Ex: // var msg sdk.Msg - // err := cdc.UnpackAny(any, &msg) + // err := cdc.UnpackAny(a, &msg) // ... - UnpackAny(any *Any, iface interface{}) error + UnpackAny(a *Any, iface interface{}) error } // InterfaceRegistry provides a mechanism for registering interfaces and @@ -281,13 +281,13 @@ func (registry *interfaceRegistry) ListImplementations(ifaceName string) []strin return keys } -func (registry *interfaceRegistry) UnpackAny(any *Any, iface interface{}) error { +func (registry *interfaceRegistry) UnpackAny(a *Any, iface interface{}) error { unpacker := &statefulUnpacker{ registry: registry, maxDepth: MaxUnpackAnyRecursionDepth, maxCalls: &sharedCounter{count: MaxUnpackAnySubCalls}, } - return unpacker.UnpackAny(any, iface) + return unpacker.UnpackAny(a, iface) } // sharedCounter is a type that encapsulates a counter value @@ -314,19 +314,19 @@ func (r statefulUnpacker) cloneForRecursion() *statefulUnpacker { // UnpackAny deserializes a protobuf Any message into the provided interface, ensuring the interface is a pointer. // It applies stateful constraints such as max depth and call limits, and unpacks interfaces if required. -func (r *statefulUnpacker) UnpackAny(any *Any, iface interface{}) error { +func (r *statefulUnpacker) UnpackAny(a *Any, iface interface{}) error { if r.maxDepth == 0 { return errors.New("max depth exceeded") } if r.maxCalls.count == 0 { return errors.New("call limit exceeded") } - // here we gracefully handle the case in which `any` itself is `nil`, which may occur in message decoding - if any == nil { + // here we gracefully handle the case in which `a` itself is `nil`, which may occur in message decoding + if a == nil { return nil } - if any.TypeUrl == "" { + if a.TypeUrl == "" { // if TypeUrl is empty return nil because without it we can't actually unpack anything return nil } @@ -340,7 +340,7 @@ func (r *statefulUnpacker) UnpackAny(any *Any, iface interface{}) error { rt := rv.Elem().Type() - cachedValue := any.cachedValue + cachedValue := a.cachedValue if cachedValue != nil { if reflect.TypeOf(cachedValue).AssignableTo(rt) { rv.Elem().Set(reflect.ValueOf(cachedValue)) @@ -353,9 +353,9 @@ func (r *statefulUnpacker) UnpackAny(any *Any, iface interface{}) error { return fmt.Errorf("no registered implementations of type %+v", rt) } - typ, found := imap[any.TypeUrl] + typ, found := imap[a.TypeUrl] if !found { - return fmt.Errorf("no concrete type registered for type URL %s against interface %T", any.TypeUrl, iface) + return fmt.Errorf("no concrete type registered for type URL %s against interface %T", a.TypeUrl, iface) } msg, ok := reflect.New(typ.Elem()).Interface().(proto.Message) @@ -363,7 +363,7 @@ func (r *statefulUnpacker) UnpackAny(any *Any, iface interface{}) error { return fmt.Errorf("can't proto unmarshal %T", msg) } - err := proto.Unmarshal(any.Value, msg) + err := proto.Unmarshal(a.Value, msg) if err != nil { return err } @@ -375,7 +375,7 @@ func (r *statefulUnpacker) UnpackAny(any *Any, iface interface{}) error { rv.Elem().Set(reflect.ValueOf(msg)) - any.cachedValue = msg + a.cachedValue = msg return nil } diff --git a/codec/types/types_test.go b/codec/types/types_test.go index 4bb3f7d609fa..b4c713d36dd8 100644 --- a/codec/types/types_test.go +++ b/codec/types/types_test.go @@ -19,10 +19,10 @@ func TestAnyPackUnpack(t *testing.T) { var animal testdata.Animal // with cache - any, err := types.NewAnyWithValue(spot) + a, err := types.NewAnyWithValue(spot) require.NoError(t, err) - require.Equal(t, spot, any.GetCachedValue()) - err = registry.UnpackAny(any, &animal) + require.Equal(t, spot, a.GetCachedValue()) + err = registry.UnpackAny(a, &animal) require.NoError(t, err) require.Equal(t, spot, animal) } @@ -92,11 +92,11 @@ func TestUnpackInterfaces(t *testing.T) { registry := testdata.NewTestInterfaceRegistry() spot := &testdata.Dog{Name: "Spot"} - any, err := types.NewAnyWithValue(spot) + a, err := types.NewAnyWithValue(spot) require.NoError(t, err) hasAny := testdata.HasAnimal{ - Animal: any, + Animal: a, X: 1, } bz, err := hasAny.Marshal() @@ -116,18 +116,18 @@ func TestNested(t *testing.T) { registry := testdata.NewTestInterfaceRegistry() spot := &testdata.Dog{Name: "Spot"} - any, err := types.NewAnyWithValue(spot) + a, err := types.NewAnyWithValue(spot) require.NoError(t, err) - ha := &testdata.HasAnimal{Animal: any} - any2, err := types.NewAnyWithValue(ha) + ha := &testdata.HasAnimal{Animal: a} + a2, err := types.NewAnyWithValue(ha) require.NoError(t, err) - hha := &testdata.HasHasAnimal{HasAnimal: any2} - any3, err := types.NewAnyWithValue(hha) + hha := &testdata.HasHasAnimal{HasAnimal: a2} + a3, err := types.NewAnyWithValue(hha) require.NoError(t, err) - hhha := testdata.HasHasHasAnimal{HasHasAnimal: any3} + hhha := testdata.HasHasHasAnimal{HasHasAnimal: a3} // marshal bz, err := hhha.Marshal() @@ -145,26 +145,26 @@ func TestNested(t *testing.T) { func TestAny_ProtoJSON(t *testing.T) { spot := &testdata.Dog{Name: "Spot"} - any, err := types.NewAnyWithValue(spot) + a, err := types.NewAnyWithValue(spot) require.NoError(t, err) jm := &jsonpb.Marshaler{} - json, err := jm.MarshalToString(any) + json, err := jm.MarshalToString(a) require.NoError(t, err) require.Equal(t, "{\"@type\":\"/testpb.Dog\",\"name\":\"Spot\"}", json) registry := testdata.NewTestInterfaceRegistry() jum := &jsonpb.Unmarshaler{} - var any2 types.Any - err = jum.Unmarshal(strings.NewReader(json), &any2) + var a2 types.Any + err = jum.Unmarshal(strings.NewReader(json), &a2) require.NoError(t, err) var animal testdata.Animal - err = registry.UnpackAny(&any2, &animal) + err = registry.UnpackAny(&a2, &animal) require.NoError(t, err) require.Equal(t, spot, animal) ha := &testdata.HasAnimal{ - Animal: any, + Animal: a, } err = ha.UnpackInterfaces(types.ProtoJSONPacker{JSONPBMarshaler: jm}) require.NoError(t, err) diff --git a/codec/unknownproto/unknown_fields.go b/codec/unknownproto/unknown_fields.go index 4c08c4fe9a6f..37184cbb43f5 100644 --- a/codec/unknownproto/unknown_fields.go +++ b/codec/unknownproto/unknown_fields.go @@ -150,12 +150,12 @@ func doRejectUnknownFields( return hasUnknownNonCriticals, err } // And finally we can extract the TypeURL containing the protoMessageName. - any := new(types.Any) - if err := proto.Unmarshal(fieldBytes, any); err != nil { + a := new(types.Any) + if err := proto.Unmarshal(fieldBytes, a); err != nil { return hasUnknownNonCriticals, err } - protoMessageName = any.TypeUrl - fieldBytes = any.Value + protoMessageName = a.TypeUrl + fieldBytes = a.Value msg, err = resolver.Resolve(protoMessageName) if err != nil { return hasUnknownNonCriticals, err diff --git a/collections/codec/bool.go b/collections/codec/bool.go index 4016c8d68dcd..827af36c0715 100644 --- a/collections/codec/bool.go +++ b/collections/codec/bool.go @@ -33,7 +33,7 @@ func (b boolKey[T]) Decode(buffer []byte) (int, T, error) { } } -func (b boolKey[T]) Size(key T) int { return 1 } +func (b boolKey[T]) Size(_ T) int { return 1 } func (b boolKey[T]) EncodeJSON(value T) ([]byte, error) { return json.Marshal(value) diff --git a/collections/codec/uint.go b/collections/codec/uint.go index 658235d385ad..46949ef68083 100644 --- a/collections/codec/uint.go +++ b/collections/codec/uint.go @@ -111,7 +111,7 @@ func (uint16Key[T]) Decode(buffer []byte) (int, T, error) { return 2, (T)(binary.BigEndian.Uint16(buffer)), nil } -func (uint16Key[T]) Size(key T) int { return 2 } +func (uint16Key[T]) Size(_ T) int { return 2 } func (uint16Key[T]) EncodeJSON(value T) ([]byte, error) { return uintEncodeJSON((uint64)(value)) } diff --git a/collections/genesis.go b/collections/genesis.go index 454ba496e180..2c8724a750b8 100644 --- a/collections/genesis.go +++ b/collections/genesis.go @@ -20,7 +20,7 @@ type jsonMapEntry struct { } func (m Map[K, V]) validateGenesis(reader io.Reader) error { - return m.doDecodeJSON(reader, func(key K, value V) error { + return m.doDecodeJSON(reader, func(_ K, _ V) error { return nil }) } diff --git a/collections/keyset.go b/collections/keyset.go index 408086b67262..0ccf4a1d209b 100644 --- a/collections/keyset.go +++ b/collections/keyset.go @@ -54,7 +54,7 @@ func (k KeySet[K]) IterateRaw(ctx context.Context, start, end []byte, order Orde // Walk provides the same functionality as Map.Walk, but callbacks the walk // function only with the key. func (k KeySet[K]) Walk(ctx context.Context, ranger Ranger[K], walkFunc func(key K) (stop bool, err error)) error { - return (Map[K, NoValue])(k).Walk(ctx, ranger, func(key K, value NoValue) (bool, error) { return walkFunc(key) }) + return (Map[K, NoValue])(k).Walk(ctx, ranger, func(key K, _ NoValue) (bool, error) { return walkFunc(key) }) } func (k KeySet[K]) KeyCodec() codec.KeyCodec[K] { return (Map[K, NoValue])(k).KeyCodec() } diff --git a/crypto/hd/hdpath_test.go b/crypto/hd/hdpath_test.go index cce81df86f20..df91e974f1b5 100644 --- a/crypto/hd/hdpath_test.go +++ b/crypto/hd/hdpath_test.go @@ -298,7 +298,7 @@ func TestDerivePrivateKeyForPathDoNotCrash(t *testing.T) { for _, path := range paths { path := path - t.Run(path, func(t *testing.T) { + t.Run(path, func(_ *testing.T) { _, _ = hd.DerivePrivateKeyForPath([32]byte{}, [32]byte{}, path) }) } diff --git a/crypto/keyring/keyring.go b/crypto/keyring/keyring.go index 6598aa88738f..2ab29d1778e3 100644 --- a/crypto/keyring/keyring.go +++ b/crypto/keyring/keyring.go @@ -615,7 +615,7 @@ func SignWithLedger(k *Record, msg []byte, signMode signing.SignMode) (sig []byt priv, err := ledger.NewPrivKeySecp256k1Unsafe(*path) if err != nil { - return + return sig, pub, err } ledgerPubKey := priv.PubKey() pubKey, err := k.GetPubKey() @@ -699,7 +699,7 @@ func newFileBackendKeyringConfig(name, dir string, buf io.Reader) keyring.Config } func newRealPrompt(dir string, buf io.Reader) func(string) (string, error) { - return func(prompt string) (string, error) { + return func(_ string) (string, error) { keyhashStored := false keyhashFilePath := filepath.Join(dir, "keyhash") diff --git a/crypto/keyring/keyring_test.go b/crypto/keyring/keyring_test.go index 533079076c6e..821e51ab75ce 100644 --- a/crypto/keyring/keyring_test.go +++ b/crypto/keyring/keyring_test.go @@ -483,7 +483,7 @@ func TestExportPrivKey(t *testing.T) { uid: "noKeyTest", backend: BackendTest, encryptPassphrase: "myPassphrase", - createKey: func(keystore Keyring) (*Record, string, error) { + createKey: func(_ Keyring) (*Record, string, error) { return nil, "", nil }, expectedErr: sdkerrors.ErrKeyNotFound, @@ -1529,7 +1529,7 @@ func TestAltKeyring_KeyByAddress(t *testing.T) { name: "not found key", backend: BackendTest, uid: "notFoundUid", - getAddres: func(k *Record) (sdk.AccAddress, error) { + getAddres: func(_ *Record) (sdk.AccAddress, error) { return nil, nil }, expectedErr: sdkerrors.ErrKeyNotFound, @@ -1644,7 +1644,7 @@ func TestAltKeyring_DeleteByAddress(t *testing.T) { name: "not found", backend: BackendTest, uid: "notFoundUid", - getAddres: func(k *Record) (sdk.AccAddress, error) { + getAddres: func(_ *Record) (sdk.AccAddress, error) { return nil, nil }, expectedErr: sdkerrors.ErrKeyNotFound, @@ -1662,7 +1662,7 @@ func TestAltKeyring_DeleteByAddress(t *testing.T) { name: "in memory not found", backend: BackendMemory, uid: "inMemoryNotFoundUid", - getAddres: func(k *Record) (sdk.AccAddress, error) { + getAddres: func(_ *Record) (sdk.AccAddress, error) { return nil, nil }, expectedErr: sdkerrors.ErrKeyNotFound, @@ -1920,7 +1920,7 @@ func TestAltKeyring_ConstructorSupportedAlgos(t *testing.T) { }, { name: "not supported algo", - algoOptions: func(options *Options) {}, + algoOptions: func(_ *Options) {}, expectedErr: ErrUnsupportedSigningAlgo, }, } @@ -2004,7 +2004,7 @@ func TestRenameKey(t *testing.T) { for _, tc := range testCases { tc := tc kr := newKeyring(t, "testKeyring") - t.Run(tc.name, func(t *testing.T) { + t.Run(tc.name, func(_ *testing.T) { tc.run(kr) }) } diff --git a/crypto/keyring/record.go b/crypto/keyring/record.go index c461f7f6a4c4..b6536e39f758 100644 --- a/crypto/keyring/record.go +++ b/crypto/keyring/record.go @@ -21,22 +21,22 @@ var ( ) func newRecord(name string, pk cryptotypes.PubKey, item isRecord_Item) (*Record, error) { - any, err := codectypes.NewAnyWithValue(pk) + an, err := codectypes.NewAnyWithValue(pk) if err != nil { return nil, err } - return &Record{name, any, item}, nil + return &Record{name, an, item}, nil } // NewLocalRecord creates a new Record with local key item func NewLocalRecord(name string, priv cryptotypes.PrivKey, pk cryptotypes.PubKey) (*Record, error) { - any, err := codectypes.NewAnyWithValue(priv) + an, err := codectypes.NewAnyWithValue(priv) if err != nil { return nil, err } - recordLocal := &Record_Local{any} + recordLocal := &Record_Local{an} recordLocalItem := &Record_Local_{recordLocal} return newRecord(name, pk, recordLocalItem) diff --git a/crypto/keys/multisig/multisig.go b/crypto/keys/multisig/multisig.go index 10f7d2e04000..0fca458d8160 100644 --- a/crypto/keys/multisig/multisig.go +++ b/crypto/keys/multisig/multisig.go @@ -100,7 +100,7 @@ func (m *LegacyAminoPubKey) VerifyMultisignature(getSignBytes multisigtypes.GetS // VerifySignature implements cryptotypes.PubKey VerifySignature method, // it panics because it can't handle MultiSignatureData // cf. https://github.com/cosmos/cosmos-sdk/issues/7109#issuecomment-686329936 -func (m *LegacyAminoPubKey) VerifySignature(msg, sig []byte) bool { +func (m *LegacyAminoPubKey) VerifySignature(_, _ []byte) bool { panic("not implemented") } @@ -164,11 +164,11 @@ func packPubKeys(pubKeys []cryptotypes.PubKey) ([]*types.Any, error) { anyPubKeys := make([]*types.Any, len(pubKeys)) for i := 0; i < len(pubKeys); i++ { - any, err := types.NewAnyWithValue(pubKeys[i]) + a, err := types.NewAnyWithValue(pubKeys[i]) if err != nil { return nil, err } - anyPubKeys[i] = any + anyPubKeys[i] = a } return anyPubKeys, nil } diff --git a/crypto/keys/secp256k1/internal/secp256k1/panic_cb.go b/crypto/keys/secp256k1/internal/secp256k1/panic_cb.go index a30b04f51b42..5c3f7686ba2e 100644 --- a/crypto/keys/secp256k1/internal/secp256k1/panic_cb.go +++ b/crypto/keys/secp256k1/internal/secp256k1/panic_cb.go @@ -14,11 +14,11 @@ import "unsafe" // recoverable Go panics. //export secp256k1GoPanicIllegal -func secp256k1GoPanicIllegal(msg *C.char, data unsafe.Pointer) { +func secp256k1GoPanicIllegal(msg *C.char, _ unsafe.Pointer) { panic("illegal argument: " + C.GoString(msg)) } //export secp256k1GoPanicError -func secp256k1GoPanicError(msg *C.char, data unsafe.Pointer) { +func secp256k1GoPanicError(msg *C.char, _ unsafe.Pointer) { panic("internal error: " + C.GoString(msg)) } diff --git a/crypto/keys/secp256k1/secp256k1.go b/crypto/keys/secp256k1/secp256k1.go index d782c24cb77c..4cf8f13ec300 100644 --- a/crypto/keys/secp256k1/secp256k1.go +++ b/crypto/keys/secp256k1/secp256k1.go @@ -9,8 +9,8 @@ import ( "math/big" "github.com/cometbft/cometbft/crypto" - secp256k1 "github.com/decred/dcrd/dcrec/secp256k1/v4" - ethCrypto "github.com/ethereum/go-ethereum/crypto" //nolint:depguard + "github.com/decred/dcrd/dcrec/secp256k1/v4" + ethCrypto "github.com/ethereum/go-ethereum/crypto" errorsmod "cosmossdk.io/errors" @@ -38,6 +38,7 @@ const ( func (privKey *PrivKeyOld) Bytes() []byte { return privKey.Key } + func (privKey *PrivKeyOld) PubKey() cryptotypes.PubKey { privateObject, err := ethCrypto.ToECDSA(privKey.Key) if err != nil { @@ -47,12 +48,15 @@ func (privKey *PrivKeyOld) PubKey() cryptotypes.PubKey { pk := ethCrypto.FromECDSAPub(&privateObject.PublicKey) return &PubKey{Key: pk} } + func (privKey *PrivKeyOld) Equals(other cryptotypes.LedgerPrivKey) bool { return privKey.Type() == other.Type() && subtle.ConstantTimeCompare(privKey.Bytes(), other.Bytes()) == 1 } + func (privKey *PrivKeyOld) Type() string { return keyType } + func (privKey *PrivKeyOld) Sign(msg []byte) ([]byte, error) { privateObject, err := ethCrypto.ToECDSA(privKey.Key) if err != nil { @@ -294,9 +298,8 @@ func (pubKey *PubKeyOld) Equals(other cryptotypes.PubKey) bool { return pubKey.Type() == other.Type() && bytes.Equal(pubKey.Bytes(), other.Bytes()) } -func (pubKey *PubKeyOld) VerifySignature(msg []byte, sigStr []byte) bool { +func (pubKey *PubKeyOld) VerifySignature(msg, sigStr []byte) bool { if len(sigStr) != SigSize { - return false } diff --git a/crypto/keys/secp256k1/secp256k1_nocgo.go b/crypto/keys/secp256k1/secp256k1_nocgo.go index 781d7ba6af5d..1af10865932f 100644 --- a/crypto/keys/secp256k1/secp256k1_nocgo.go +++ b/crypto/keys/secp256k1/secp256k1_nocgo.go @@ -4,11 +4,7 @@ package secp256k1 import ( - "errors" ethCrypto "github.com/ethereum/go-ethereum/crypto" - - secp256k1 "github.com/decred/dcrd/dcrec/secp256k1/v4" - "github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa" ) // SigSize is the size of the ECDSA signature. @@ -27,7 +23,7 @@ func (privKey *PrivKey) Sign(msg []byte) ([]byte, error) { // VerifySignature verifies a signature of the form R || S || V. // It rejects signatures which are not in lower-S form. -func (pubKey *PubKey) VerifySignature(msg []byte, sigStr []byte) bool { +func (pubKey *PubKey) VerifySignature(msg, sigStr []byte) bool { if len(sigStr) != SigSize { return false } @@ -35,18 +31,3 @@ func (pubKey *PubKey) VerifySignature(msg []byte, sigStr []byte) bool { hash := ethCrypto.Keccak256(msg) return ethCrypto.VerifySignature(pubKey.Key, hash, sigStr[:64]) } - -// Read Signature struct from R || S. Caller needs to ensure -// that len(sigStr) == 64. -// Rejects malleable signatures (if S value if it is over half order). -func signatureFromBytes(sigStr []byte) (*ecdsa.Signature, error) { - var r secp256k1.ModNScalar - r.SetByteSlice(sigStr[:32]) - var s secp256k1.ModNScalar - s.SetByteSlice(sigStr[32:64]) - if s.IsOverHalfOrder() { - return nil, errors.New("signature is not in lower-S form") - } - - return ecdsa.NewSignature(&r, &s), nil -} diff --git a/crypto/types/compact_bit_array.go b/crypto/types/compact_bit_array.go index 8761d21f63ba..4d19d6be9ced 100644 --- a/crypto/types/compact_bit_array.go +++ b/crypto/types/compact_bit_array.go @@ -87,9 +87,9 @@ func (bA *CompactBitArray) SetIndex(i int, v bool) bool { // there are two bits set to true before index 4. func (bA *CompactBitArray) NumTrueBitsBefore(index int) int { onesCount := 0 - max := bA.Count() - if index > max { - index = max + m := bA.Count() + if index > m { + index = m } // below we iterate over the bytes then over bits (in low endian) and count bits set to 1 for elem := range bA.Elems { diff --git a/crypto/types/compact_bit_array_test.go b/crypto/types/compact_bit_array_test.go index 4831e8e681ea..6e9db098ca7b 100644 --- a/crypto/types/compact_bit_array_test.go +++ b/crypto/types/compact_bit_array_test.go @@ -232,11 +232,11 @@ func TestCompactBitArrayGetSetIndex(t *testing.T) { bA, _ := randCompactBitArray(bits) for j := 0; j < numBitsPerArr; j++ { - copy := bA.Copy() + cp := bA.Copy() index := r.Intn(bits) val := (r.Int63() % 2) == 0 bA.SetIndex(index, val) - require.Equal(t, val, bA.GetIndex(index), "bA.SetIndex(%d, %v) failed on bit array: %s", index, val, copy) + require.Equal(t, val, bA.GetIndex(index), "bA.SetIndex(%d, %v) failed on bit array: %s", index, val, cp) // Ensure that passing in negative indices to .SetIndex and .GetIndex do not // panic. See issue https://github.com/cosmos/cosmos-sdk/issues/9164. diff --git a/depinject/location.go b/depinject/location.go index 7b18d5e1b16a..acefffe38fee 100644 --- a/depinject/location.go +++ b/depinject/location.go @@ -90,7 +90,7 @@ const _vendor = "/vendor/" func splitFuncName(function string) (pname, fname string) { if len(function) == 0 { - return + return pname, fname } // We have something like "path.to/my/pkg.MyFunction". If the function is diff --git a/fuzz/tests/crypto_hd_deriveprivatekeyforpath_test.go b/fuzz/tests/crypto_hd_deriveprivatekeyforpath_test.go index 0f235262c628..9c18abdbf460 100644 --- a/fuzz/tests/crypto_hd_deriveprivatekeyforpath_test.go +++ b/fuzz/tests/crypto_hd_deriveprivatekeyforpath_test.go @@ -16,7 +16,7 @@ func mnemonicToSeed(mnemonic string) []byte { } func FuzzCryptoHDDerivePrivateKeyForPath(f *testing.F) { - f.Fuzz(func(t *testing.T, in []byte) { + f.Fuzz(func(_ *testing.T, in []byte) { splits := bytes.Split(in, []byte("*")) if len(splits) == 1 { return @@ -30,6 +30,6 @@ func FuzzCryptoHDDerivePrivateKeyForPath(f *testing.F) { } seed := mnemonicToSeed(string(mnemonic)) master, ch := hd.ComputeMastersFromSeed(seed) - hd.DerivePrivateKeyForPath(master, ch, string(path)) + _, _ = hd.DerivePrivateKeyForPath(master, ch, string(path)) }) } diff --git a/fuzz/tests/crypto_hd_newparamsfrompath_test.go b/fuzz/tests/crypto_hd_newparamsfrompath_test.go index df178d0505f0..330f70f3e261 100644 --- a/fuzz/tests/crypto_hd_newparamsfrompath_test.go +++ b/fuzz/tests/crypto_hd_newparamsfrompath_test.go @@ -9,7 +9,7 @@ import ( ) func FuzzCryptoHDNewParamsFromPath(f *testing.F) { - f.Fuzz(func(t *testing.T, data []byte) { - hd.NewParamsFromPath(string(data)) + f.Fuzz(func(_ *testing.T, data []byte) { + _, _ = hd.NewParamsFromPath(string(data)) }) } diff --git a/fuzz/tests/crypto_types_compactbitarray_marshalunmarshal_test.go b/fuzz/tests/crypto_types_compactbitarray_marshalunmarshal_test.go index db61a42d2012..fb3f28be5941 100644 --- a/fuzz/tests/crypto_types_compactbitarray_marshalunmarshal_test.go +++ b/fuzz/tests/crypto_types_compactbitarray_marshalunmarshal_test.go @@ -9,7 +9,7 @@ import ( ) func FuzzCryptoTypesCompactbitarrayMarshalUnmarshal(f *testing.F) { - f.Fuzz(func(t *testing.T, data []byte) { + f.Fuzz(func(_ *testing.T, data []byte) { cba, err := types.CompactUnmarshal(data) if err != nil { return diff --git a/fuzz/tests/tendermint_amino_decodetime_test.go b/fuzz/tests/tendermint_amino_decodetime_test.go index 8720c31a1024..7f802083269f 100644 --- a/fuzz/tests/tendermint_amino_decodetime_test.go +++ b/fuzz/tests/tendermint_amino_decodetime_test.go @@ -10,7 +10,7 @@ import ( ) func FuzzTendermintAminoDecodeTime(f *testing.F) { - f.Fuzz(func(t *testing.T, data []byte) { + f.Fuzz(func(_ *testing.T, data []byte) { if len(data) == 0 { return } diff --git a/fuzz/tests/types_dec_setstring_test.go b/fuzz/tests/types_dec_setstring_test.go index 31879e1d1891..6bf8d49b2b78 100644 --- a/fuzz/tests/types_dec_setstring_test.go +++ b/fuzz/tests/types_dec_setstring_test.go @@ -10,7 +10,7 @@ import ( ) func FuzzTypesDecSetString(f *testing.F) { - f.Fuzz(func(t *testing.T, b []byte) { + f.Fuzz(func(_ *testing.T, b []byte) { dec, err := sdkmath.LegacyNewDecFromStr(string(b)) if err != nil { return diff --git a/fuzz/tests/types_parsecoin_test.go b/fuzz/tests/types_parsecoin_test.go index 2204454379c9..635a785f1f6d 100644 --- a/fuzz/tests/types_parsecoin_test.go +++ b/fuzz/tests/types_parsecoin_test.go @@ -9,7 +9,7 @@ import ( ) func FuzzTypesParseCoin(f *testing.F) { - f.Fuzz(func(t *testing.T, data []byte) { - types.ParseCoinNormalized(string(data)) + f.Fuzz(func(_ *testing.T, data []byte) { + _, _ = types.ParseCoinNormalized(string(data)) }) } diff --git a/fuzz/tests/types_parsedeccoin_test.go b/fuzz/tests/types_parsedeccoin_test.go index a9b64e3384ed..6d2e6da33339 100644 --- a/fuzz/tests/types_parsedeccoin_test.go +++ b/fuzz/tests/types_parsedeccoin_test.go @@ -9,7 +9,7 @@ import ( ) func FuzzTypesParseDecCoin(f *testing.F) { - f.Fuzz(func(t *testing.T, data []byte) { - types.ParseDecCoin(string(data)) + f.Fuzz(func(_ *testing.T, data []byte) { + _, _ = types.ParseDecCoin(string(data)) }) } diff --git a/fuzz/tests/types_parsetimebytes_test.go b/fuzz/tests/types_parsetimebytes_test.go index 4cf11dac201c..c41a8635d455 100644 --- a/fuzz/tests/types_parsetimebytes_test.go +++ b/fuzz/tests/types_parsetimebytes_test.go @@ -11,7 +11,7 @@ import ( ) func FuzzTypesParseTimeBytes(f *testing.F) { - f.Fuzz(func(t *testing.T, bin []byte) { + f.Fuzz(func(_ *testing.T, bin []byte) { // Normalize input, reject invalid timestamps. ti, err := types.ParseTimeBytes(bin) if err != nil { diff --git a/fuzz/tests/types_verifyaddressformat_test.go b/fuzz/tests/types_verifyaddressformat_test.go index 7df912e71157..052aebcbd2d3 100644 --- a/fuzz/tests/types_verifyaddressformat_test.go +++ b/fuzz/tests/types_verifyaddressformat_test.go @@ -9,7 +9,7 @@ import ( ) func FuzzTypesVerifyAddressFormat(f *testing.F) { - f.Fuzz(func(t *testing.T, data []byte) { - types.VerifyAddressFormat(data) + f.Fuzz(func(_ *testing.T, data []byte) { + _ = types.VerifyAddressFormat(data) }) } diff --git a/fuzz/tests/unknownproto_test.go b/fuzz/tests/unknownproto_test.go index 0e2eda4aac88..fc7ff3b748e0 100644 --- a/fuzz/tests/unknownproto_test.go +++ b/fuzz/tests/unknownproto_test.go @@ -10,10 +10,10 @@ import ( ) func FuzzUnknownProto(f *testing.F) { - f.Fuzz(func(t *testing.T, b []byte) { + f.Fuzz(func(_ *testing.T, b []byte) { msg := new(testdata.TestVersion2) resolver := new(unknownproto.DefaultAnyResolver) - unknownproto.RejectUnknownFields(b, msg, true, resolver) - unknownproto.RejectUnknownFields(b, msg, false, resolver) + _, _ = unknownproto.RejectUnknownFields(b, msg, true, resolver) + _, _ = unknownproto.RejectUnknownFields(b, msg, false, resolver) }) } diff --git a/internal/conv/string.go b/internal/conv/string.go index ab2b7f44b38a..3bc72180d875 100644 --- a/internal/conv/string.go +++ b/internal/conv/string.go @@ -1,20 +1,13 @@ package conv import ( - "reflect" "unsafe" ) // UnsafeStrToBytes uses unsafe to convert string into byte array. Returned bytes // must not be altered after this function is called as it will cause a segmentation fault. func UnsafeStrToBytes(s string) []byte { - var buf []byte - sHdr := (*reflect.StringHeader)(unsafe.Pointer(&s)) - bufHdr := (*reflect.SliceHeader)(unsafe.Pointer(&buf)) - bufHdr.Data = sHdr.Data - bufHdr.Cap = sHdr.Len - bufHdr.Len = sHdr.Len - return buf + return unsafe.Slice(unsafe.StringData(s), len(s)) } // UnsafeBytesToStr is meant to make a zero allocation conversion @@ -22,5 +15,5 @@ func UnsafeStrToBytes(s string) []byte { // to be used generally, but for a specific pattern to delete keys // from a map. func UnsafeBytesToStr(b []byte) string { - return *(*string)(unsafe.Pointer(&b)) + return unsafe.String(&b[0], len(b)) } diff --git a/math/dec.go b/math/dec.go index d92b0042f38a..41c74de2a5cf 100644 --- a/math/dec.go +++ b/math/dec.go @@ -519,7 +519,7 @@ func (d LegacyDec) IsInteger() bool { } // format decimal state -func (d LegacyDec) Format(s fmt.State, verb rune) { +func (d LegacyDec) Format(s fmt.State, _ rune) { _, err := s.Write([]byte(d.String())) if err != nil { panic(err) @@ -586,6 +586,8 @@ func (d LegacyDec) Float64() (float64, error) { // MustFloat64 returns the float64 representation of a Dec. // Would panic if the conversion failed. +// +//nolint:revive func (d LegacyDec) MustFloat64() float64 { if value, err := strconv.ParseFloat(d.String(), 64); err != nil { panic(err) diff --git a/math/int.go b/math/int.go index dc945b13d283..61712172013b 100644 --- a/math/int.go +++ b/math/int.go @@ -41,7 +41,7 @@ func neg(i *big.Int) *big.Int { return new(big.Int).Neg(i) } func abs(i *big.Int) *big.Int { return new(big.Int).Abs(i) } -func min(i, i2 *big.Int) *big.Int { +func minV(i, i2 *big.Int) *big.Int { if i.Cmp(i2) == 1 { return new(big.Int).Set(i2) } @@ -49,7 +49,7 @@ func min(i, i2 *big.Int) *big.Int { return new(big.Int).Set(i) } -func max(i, i2 *big.Int) *big.Int { +func maxV(i, i2 *big.Int) *big.Int { if i.Cmp(i2) == -1 { return new(big.Int).Set(i2) } @@ -313,14 +313,14 @@ func (i Int) Abs() Int { return Int{abs(i.i)} } -// return the minimum of the ints +// MinInt returns the minimum of the ints func MinInt(i1, i2 Int) Int { - return Int{min(i1.BigInt(), i2.BigInt())} + return Int{minV(i1.BigInt(), i2.BigInt())} } // MaxInt returns the maximum between two integers. func MaxInt(i, i2 Int) Int { - return Int{max(i.BigInt(), i2.BigInt())} + return Int{maxV(i.BigInt(), i2.BigInt())} } // Human readable string diff --git a/math/max_min.go b/math/max_min.go index 407dd816ce68..4cdd75dd7768 100644 --- a/math/max_min.go +++ b/math/max_min.go @@ -3,27 +3,27 @@ package math import "golang.org/x/exp/constraints" func Max[T constraints.Ordered](a, b T, rest ...T) T { - max := a + m := a if b > a { - max = b + m = b } for _, val := range rest { - if val > max { - max = val + if val > m { + m = val } } - return max + return m } func Min[T constraints.Ordered](a, b T, rest ...T) T { - min := a + m := a if b < a { - min = b + m = b } for _, val := range rest { - if val < min { - min = val + if val < m { + m = val } } - return min + return m } diff --git a/math/uint.go b/math/uint.go index 0a61646ae188..1ac95007f057 100644 --- a/math/uint.go +++ b/math/uint.go @@ -129,10 +129,10 @@ func (u Uint) Decr() Uint { func (u Uint) QuoUint64(u2 uint64) Uint { return u.Quo(NewUint(u2)) } // Return the minimum of the Uints -func MinUint(u1, u2 Uint) Uint { return NewUintFromBigInt(min(u1.i, u2.i)) } +func MinUint(u1, u2 Uint) Uint { return NewUintFromBigInt(minV(u1.i, u2.i)) } // Return the maximum of the Uints -func MaxUint(u1, u2 Uint) Uint { return NewUintFromBigInt(max(u1.i, u2.i)) } +func MaxUint(u1, u2 Uint) Uint { return NewUintFromBigInt(maxV(u1.i, u2.i)) } // Human readable string func (u Uint) String() string { return u.i.String() } @@ -247,7 +247,7 @@ func RelativePow(x, n, b Uint) (z Uint) { return z } z = ZeroUint() // otherwise 0^a = 0 - return + return z } z = x diff --git a/math/unsafe/rand.go b/math/unsafe/rand.go index 66d48ae4dc85..a0f252d50825 100644 --- a/math/unsafe/rand.go +++ b/math/unsafe/rand.go @@ -81,6 +81,8 @@ func (r *Rand) Seed(seed int64) { } // Str constructs a random alphanumeric string of given length. +// +//nolint:revive func (r *Rand) Str(length int) string { if length <= 0 { return "" diff --git a/orm/internal/testkv/debug.go b/orm/internal/testkv/debug.go index 5278409550d7..304c64c59fb1 100644 --- a/orm/internal/testkv/debug.go +++ b/orm/internal/testkv/debug.go @@ -234,13 +234,13 @@ func (d debugHooks) ValidateInsert(context context.Context, message proto.Messag return nil } -func (d debugHooks) ValidateUpdate(ctx context.Context, existing, new proto.Message) error { +func (d debugHooks) ValidateUpdate(ctx context.Context, existing, n proto.Message) error { existingJSON, err := stablejson.Marshal(existing) if err != nil { return err } - newJSON, err := stablejson.Marshal(new) + newJSON, err := stablejson.Marshal(n) if err != nil { return err } @@ -252,7 +252,7 @@ func (d debugHooks) ValidateUpdate(ctx context.Context, existing, new proto.Mess newJSON, )) if d.validateHooks != nil { - return d.validateHooks.ValidateUpdate(ctx, existing, new) + return d.validateHooks.ValidateUpdate(ctx, existing, n) } return nil } @@ -290,13 +290,13 @@ func (d debugHooks) OnInsert(ctx context.Context, message proto.Message) { } } -func (d debugHooks) OnUpdate(ctx context.Context, existing, new proto.Message) { +func (d debugHooks) OnUpdate(ctx context.Context, existing, n proto.Message) { existingJSON, err := stablejson.Marshal(existing) if err != nil { panic(err) } - newJSON, err := stablejson.Marshal(new) + newJSON, err := stablejson.Marshal(n) if err != nil { panic(err) } @@ -308,7 +308,7 @@ func (d debugHooks) OnUpdate(ctx context.Context, existing, new proto.Message) { newJSON, )) if d.writeHooks != nil { - d.writeHooks.OnUpdate(ctx, existing, new) + d.writeHooks.OnUpdate(ctx, existing, n) } } diff --git a/orm/model/ormtable/hooks.go b/orm/model/ormtable/hooks.go index c5a76a6af8fa..a7ba9923b409 100644 --- a/orm/model/ormtable/hooks.go +++ b/orm/model/ormtable/hooks.go @@ -15,7 +15,7 @@ type ValidateHooks interface { // ValidateUpdate is called before the existing message is updated with the new one. // If error is not nil the update will fail. - ValidateUpdate(ctx context.Context, existing, new proto.Message) error + ValidateUpdate(ctx context.Context, existing, n proto.Message) error // ValidateDelete is called before the message is deleted. // If error is not nil the deletion will fail. @@ -33,7 +33,7 @@ type WriteHooks interface { OnInsert(context.Context, proto.Message) // OnUpdate is called after the entity is updated in the store. - OnUpdate(ctx context.Context, existing, new proto.Message) + OnUpdate(ctx context.Context, existing, n proto.Message) // OnDelete is called after the entity is deleted from the store. OnDelete(context.Context, proto.Message) diff --git a/orm/model/ormtable/index.go b/orm/model/ormtable/index.go index 8b1b625734c6..888b3e5951f5 100644 --- a/orm/model/ormtable/index.go +++ b/orm/model/ormtable/index.go @@ -73,6 +73,6 @@ type UniqueIndex interface { type indexer interface { onInsert(store kv.Store, message protoreflect.Message) error - onUpdate(store kv.Store, new, existing protoreflect.Message) error + onUpdate(store kv.Store, n, existing protoreflect.Message) error onDelete(store kv.Store, message protoreflect.Message) error } diff --git a/orm/model/ormtable/index_impl.go b/orm/model/ormtable/index_impl.go index 7aacd5aebac4..6e30fc1e9ffa 100644 --- a/orm/model/ormtable/index_impl.go +++ b/orm/model/ormtable/index_impl.go @@ -72,8 +72,8 @@ func (i indexKeyIndex) onInsert(store kv.Store, message protoreflect.Message) er return store.Set(k, v) } -func (i indexKeyIndex) onUpdate(store kv.Store, new, existing protoreflect.Message) error { - newValues := i.GetKeyValues(new) +func (i indexKeyIndex) onUpdate(store kv.Store, n, existing protoreflect.Message) error { + newValues := i.GetKeyValues(n) existingValues := i.GetKeyValues(existing) if i.CompareKeys(newValues, existingValues) == 0 { return nil diff --git a/orm/model/ormtable/unique.go b/orm/model/ormtable/unique.go index d82df89a0805..a5a02b522961 100644 --- a/orm/model/ormtable/unique.go +++ b/orm/model/ormtable/unique.go @@ -120,9 +120,9 @@ func (u uniqueKeyIndex) onInsert(store kv.Store, message protoreflect.Message) e return store.Set(k, v) } -func (u uniqueKeyIndex) onUpdate(store kv.Store, new, existing protoreflect.Message) error { +func (u uniqueKeyIndex) onUpdate(store kv.Store, n, existing protoreflect.Message) error { keyCodec := u.GetKeyCodec() - newValues := keyCodec.GetKeyValues(new) + newValues := keyCodec.GetKeyValues(n) existingValues := keyCodec.GetKeyValues(existing) if keyCodec.CompareKeys(newValues, existingValues) == 0 { return nil @@ -152,7 +152,7 @@ func (u uniqueKeyIndex) onUpdate(store kv.Store, new, existing protoreflect.Mess return err } - _, value, err := u.GetValueCodec().EncodeKeyFromMessage(new) + _, value, err := u.GetValueCodec().EncodeKeyFromMessage(n) if err != nil { return err } diff --git a/runtime/events.go b/runtime/events.go index 752dcae2bb30..e1b395a5560f 100644 --- a/runtime/events.go +++ b/runtime/events.go @@ -34,12 +34,12 @@ func NewEventManager(ctx context.Context) event.Manager { // Emit emits an typed event that is defined in the protobuf file. // In the future these events will be added to consensus. -func (e Events) Emit(ctx context.Context, event protoiface.MessageV1) error { +func (e Events) Emit(_ context.Context, event protoiface.MessageV1) error { return e.EventManagerI.EmitTypedEvent(event) } // EmitKV emits a key value pair event. -func (e Events) EmitKV(ctx context.Context, eventType string, attrs ...event.Attribute) error { +func (e Events) EmitKV(_ context.Context, eventType string, attrs ...event.Attribute) error { attributes := make([]sdk.Attribute, 0, len(attrs)) for _, attr := range attrs { @@ -50,8 +50,8 @@ func (e Events) EmitKV(ctx context.Context, eventType string, attrs ...event.Att return nil } -// Emit emits an typed event that is defined in the protobuf file. +// EmitNonConsensus emits an typed event that is defined in the protobuf file. // In the future these events will be added to consensus. -func (e Events) EmitNonConsensus(ctx context.Context, event protoiface.MessageV1) error { +func (e Events) EmitNonConsensus(_ context.Context, event protoiface.MessageV1) error { return e.EventManagerI.EmitTypedEvent(event) } diff --git a/runtime/module.go b/runtime/module.go index bd56c0de9f3a..9ed646d38203 100644 --- a/runtime/module.go +++ b/runtime/module.go @@ -252,7 +252,7 @@ func ProvideCometInfoService() comet.BlockInfoService { return cometInfoService{} } -func ProvideHeaderInfoService(app *AppBuilder) header.Service { +func ProvideHeaderInfoService(_ *AppBuilder) header.Service { return headerInfoService{} } diff --git a/runtime/store.go b/runtime/store.go index 4cfe131c5071..40c5971e5bdf 100644 --- a/runtime/store.go +++ b/runtime/store.go @@ -112,7 +112,7 @@ func (kvStoreAdapter) CacheWrap() storetypes.CacheWrap { panic("unimplemented") } -func (kvStoreAdapter) CacheWrapWithTrace(w io.Writer, tc storetypes.TraceContext) storetypes.CacheWrap { +func (kvStoreAdapter) CacheWrapWithTrace(_ io.Writer, _ storetypes.TraceContext) storetypes.CacheWrap { panic("unimplemented") } diff --git a/server/api/server.go b/server/api/server.go index 84a0ad6bd827..7f8040ee4d81 100644 --- a/server/api/server.go +++ b/server/api/server.go @@ -119,7 +119,7 @@ func (s *Server) Start(ctx context.Context, cfg config.Config) error { var options []grpcweb.Option if cfg.API.EnableUnsafeCORS { options = append(options, - grpcweb.WithOriginFunc(func(origin string) bool { + grpcweb.WithOriginFunc(func(_ string) bool { return true }), ) diff --git a/server/cmt_cmds.go b/server/cmt_cmds.go index a66956a9b419..91386c813195 100644 --- a/server/cmt_cmds.go +++ b/server/cmt_cmds.go @@ -72,7 +72,7 @@ func ShowNodeIDCmd() *cobra.Command { return &cobra.Command{ Use: "show-node-id", Short: "Show this node's ID", - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { serverCtx := GetServerContextFromCmd(cmd) cfg := serverCtx.Config @@ -92,7 +92,7 @@ func ShowValidatorCmd() *cobra.Command { cmd := cobra.Command{ Use: "show-validator", Short: "Show this node's CometBFT validator info", - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { serverCtx := GetServerContextFromCmd(cmd) cfg := serverCtx.Config @@ -126,7 +126,7 @@ func ShowAddressCmd() *cobra.Command { cmd := &cobra.Command{ Use: "show-address", Short: "Shows this node's CometBFT validator consensus address", - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { serverCtx := GetServerContextFromCmd(cmd) cfg := serverCtx.Config @@ -148,7 +148,7 @@ func VersionCmd() *cobra.Command { Use: "version", Short: "Print CometBFT libraries' version", Long: "Print protocols' and libraries' version numbers against which this app has been compiled.", - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { bs, err := yaml.Marshal(&struct { CometBFT string ABCI string @@ -185,7 +185,7 @@ for. Each module documents its respective events under 'xx_events.md'. "$ %s query blocks --query \"message.sender='cosmos1...' AND block.height > 7\" --page 1 --limit 30 --order_by asc", version.AppName, ), - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { clientCtx, err := client.GetClientQueryContext(cmd) if err != nil { return err @@ -365,7 +365,7 @@ func BootstrapStateCmd(appCreator types.AppCreator) *cobra.Command { Use: "bootstrap-state", Short: "Bootstrap CometBFT state at an arbitrary block height using a light client", Args: cobra.NoArgs, - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { serverCtx := GetServerContextFromCmd(cmd) logger := log.NewLogger(cmd.OutOrStdout()) cfg := serverCtx.Config diff --git a/server/grpc/gogoreflection/serverreflection.go b/server/grpc/gogoreflection/serverreflection.go index fd48aa416b40..10199829976f 100644 --- a/server/grpc/gogoreflection/serverreflection.go +++ b/server/grpc/gogoreflection/serverreflection.go @@ -188,7 +188,7 @@ func fqn(prefix, name string) string { // fileDescForType gets the file descriptor for the given type. // The given type should be a proto message. func (s *serverReflectionServer) fileDescForType(st reflect.Type) (*dpb.FileDescriptorProto, error) { - m, ok := reflect.Zero(reflect.PtrTo(st)).Interface().(protoMessage) + m, ok := reflect.Zero(reflect.PointerTo(st)).Interface().(protoMessage) if !ok { return nil, fmt.Errorf("failed to create message from type: %v", st) } @@ -236,7 +236,7 @@ func typeForName(name string) (reflect.Type, error) { } func fileDescContainingExtension(st reflect.Type, ext int32) (*dpb.FileDescriptorProto, error) { - m, ok := reflect.Zero(reflect.PtrTo(st)).Interface().(proto.Message) + m, ok := reflect.Zero(reflect.PointerTo(st)).Interface().(proto.Message) if !ok { return nil, fmt.Errorf("failed to create message from type: %v", st) } @@ -251,7 +251,7 @@ func fileDescContainingExtension(st reflect.Type, ext int32) (*dpb.FileDescripto } func (s *serverReflectionServer) allExtensionNumbersForType(st reflect.Type) ([]int32, error) { - m, ok := reflect.Zero(reflect.PtrTo(st)).Interface().(proto.Message) + m, ok := reflect.Zero(reflect.PointerTo(st)).Interface().(proto.Message) if !ok { return nil, fmt.Errorf("failed to create message from type: %v", st) } diff --git a/server/mock/store.go b/server/mock/store.go index 6e8a30364614..0c09321cbb8b 100644 --- a/server/mock/store.go +++ b/server/mock/store.go @@ -42,15 +42,15 @@ func (ms multiStore) TracingEnabled() bool { panic("not implemented") } -func (ms multiStore) SetTracingContext(tc storetypes.TraceContext) storetypes.MultiStore { +func (ms multiStore) SetTracingContext(_ storetypes.TraceContext) storetypes.MultiStore { panic("not implemented") } -func (ms multiStore) SetTracer(w io.Writer) storetypes.MultiStore { +func (ms multiStore) SetTracer(_ io.Writer) storetypes.MultiStore { panic("not implemented") } -func (ms multiStore) AddListeners(keys []storetypes.StoreKey) { +func (ms multiStore) AddListeners(_ []storetypes.StoreKey) { panic("not implemented") } @@ -58,7 +58,7 @@ func (ms multiStore) SetMetrics(metrics.StoreMetrics) { panic("not implemented") } -func (ms multiStore) ListeningEnabled(key storetypes.StoreKey) bool { +func (ms multiStore) ListeningEnabled(_ storetypes.StoreKey) bool { panic("not implemented") } @@ -74,7 +74,7 @@ func (ms multiStore) LastCommitID() storetypes.CommitID { panic("not implemented") } -func (ms multiStore) SetPruning(opts pruningtypes.PruningOptions) { +func (ms multiStore) SetPruning(_ pruningtypes.PruningOptions) { panic("not implemented") } @@ -82,15 +82,15 @@ func (ms multiStore) GetPruning() pruningtypes.PruningOptions { panic("not implemented") } -func (ms multiStore) GetCommitKVStore(key storetypes.StoreKey) storetypes.CommitKVStore { +func (ms multiStore) GetCommitKVStore(_ storetypes.StoreKey) storetypes.CommitKVStore { panic("not implemented") } -func (ms multiStore) GetCommitStore(key storetypes.StoreKey) storetypes.CommitStore { +func (ms multiStore) GetCommitStore(_ storetypes.StoreKey) storetypes.CommitStore { panic("not implemented") } -func (ms multiStore) MountStoreWithDB(key storetypes.StoreKey, typ storetypes.StoreType, db dbm.DB) { +func (ms multiStore) MountStoreWithDB(key storetypes.StoreKey, _ storetypes.StoreType, _ dbm.DB) { ms.kv[key] = kvStore{store: make(map[string][]byte)} } @@ -98,15 +98,15 @@ func (ms multiStore) LoadLatestVersion() error { return nil } -func (ms multiStore) LoadLatestVersionAndUpgrade(upgrades *storetypes.StoreUpgrades) error { +func (ms multiStore) LoadLatestVersionAndUpgrade(_ *storetypes.StoreUpgrades) error { return nil } -func (ms multiStore) LoadVersionAndUpgrade(ver int64, upgrades *storetypes.StoreUpgrades) error { +func (ms multiStore) LoadVersionAndUpgrade(_ int64, _ *storetypes.StoreUpgrades) error { panic("not implemented") } -func (ms multiStore) LoadVersion(ver int64) error { +func (ms multiStore) LoadVersion(_ int64) error { panic("not implemented") } @@ -114,7 +114,7 @@ func (ms multiStore) GetKVStore(key storetypes.StoreKey) storetypes.KVStore { return ms.kv[key] } -func (ms multiStore) GetStore(key storetypes.StoreKey) storetypes.Store { +func (ms multiStore) GetStore(_ storetypes.StoreKey) storetypes.Store { panic("not implemented") } @@ -122,11 +122,11 @@ func (ms multiStore) GetStoreType() storetypes.StoreType { panic("not implemented") } -func (ms multiStore) PruneSnapshotHeight(height int64) { +func (ms multiStore) PruneSnapshotHeight(_ int64) { panic("not implemented") } -func (ms multiStore) SetSnapshotInterval(snapshotInterval uint64) { +func (ms multiStore) SetSnapshotInterval(_ uint64) { panic("not implemented") } @@ -134,29 +134,29 @@ func (ms multiStore) SetInterBlockCache(_ storetypes.MultiStorePersistentCache) panic("not implemented") } -func (ms multiStore) SetIAVLCacheSize(size int) { +func (ms multiStore) SetIAVLCacheSize(_ int) { panic("not implemented") } -func (ms multiStore) SetIAVLDisableFastNode(disable bool) { +func (ms multiStore) SetIAVLDisableFastNode(_ bool) { panic("not implemented") } -func (ms multiStore) SetInitialVersion(version int64) error { +func (ms multiStore) SetInitialVersion(_ int64) error { panic("not implemented") } -func (ms multiStore) Snapshot(height uint64, protoWriter protoio.Writer) error { +func (ms multiStore) Snapshot(_ uint64, _ protoio.Writer) error { panic("not implemented") } func (ms multiStore) Restore( - height uint64, format uint32, protoReader protoio.Reader, + _ uint64, _ uint32, _ protoio.Reader, ) (snapshottypes.SnapshotItem, error) { panic("not implemented") } -func (ms multiStore) RollbackToVersion(version int64) error { +func (ms multiStore) RollbackToVersion(_ int64) error { panic("not implemented") } @@ -178,7 +178,7 @@ func (kv kvStore) CacheWrap() storetypes.CacheWrap { panic("not implemented") } -func (kv kvStore) CacheWrapWithTrace(w io.Writer, tc storetypes.TraceContext) storetypes.CacheWrap { +func (kv kvStore) CacheWrapWithTrace(_ io.Writer, _ storetypes.TraceContext) storetypes.CacheWrap { panic("not implemented") } @@ -212,27 +212,27 @@ func (kv kvStore) Delete(key []byte) { delete(kv.store, string(key)) } -func (kv kvStore) Prefix(prefix []byte) storetypes.KVStore { +func (kv kvStore) Prefix(_ []byte) storetypes.KVStore { panic("not implemented") } -func (kv kvStore) Gas(meter storetypes.GasMeter, config storetypes.GasConfig) storetypes.KVStore { - panic("not implmeneted") +func (kv kvStore) Gas(_ storetypes.GasMeter, _ storetypes.GasConfig) storetypes.KVStore { + panic("not implemented") } -func (kv kvStore) Iterator(start, end []byte) storetypes.Iterator { +func (kv kvStore) Iterator(_, _ []byte) storetypes.Iterator { panic("not implemented") } -func (kv kvStore) ReverseIterator(start, end []byte) storetypes.Iterator { +func (kv kvStore) ReverseIterator(_, _ []byte) storetypes.Iterator { panic("not implemented") } -func (kv kvStore) SubspaceIterator(prefix []byte) storetypes.Iterator { +func (kv kvStore) SubspaceIterator(_ []byte) storetypes.Iterator { panic("not implemented") } -func (kv kvStore) ReverseSubspaceIterator(prefix []byte) storetypes.Iterator { +func (kv kvStore) ReverseSubspaceIterator(_ []byte) storetypes.Iterator { panic("not implemented") } diff --git a/server/mock/tx.go b/server/mock/tx.go index f8bdef446a9a..de365eb1c133 100644 --- a/server/mock/tx.go +++ b/server/mock/tx.go @@ -39,9 +39,9 @@ func (t testPubKey) Address() cryptotypes.Address { return t.address.Bytes() } func (t testPubKey) Bytes() []byte { panic("not implemented") } -func (t testPubKey) VerifySignature(msg, sig []byte) bool { panic("not implemented") } +func (t testPubKey) VerifySignature(_, _ []byte) bool { panic("not implemented") } -func (t testPubKey) Equals(key cryptotypes.PubKey) bool { panic("not implemented") } +func (t testPubKey) Equals(_ cryptotypes.PubKey) bool { panic("not implemented") } func (t testPubKey) Type() string { panic("not implemented") } @@ -55,7 +55,7 @@ func (msg *KVStoreTx) GetSignaturesV2() (res []txsigning.SignatureV2, err error) return res, nil } -func (msg *KVStoreTx) VerifySignature(msgByte, sig []byte) bool { +func (msg *KVStoreTx) VerifySignature(_, _ []byte) bool { panic("implement me") } @@ -67,7 +67,7 @@ func (msg *KVStoreTx) Bytes() []byte { panic("implement me") } -func (msg *KVStoreTx) Equals(key cryptotypes.PubKey) bool { +func (msg *KVStoreTx) Equals(_ cryptotypes.PubKey) bool { panic("implement me") } diff --git a/server/rollback.go b/server/rollback.go index ccd7e3213902..98d52c9ac272 100644 --- a/server/rollback.go +++ b/server/rollback.go @@ -25,7 +25,7 @@ The application also rolls back to height n - 1. No blocks are removed, so upon restarting CometBFT the transactions in block n will be re-executed against the application. `, - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { ctx := GetServerContextFromCmd(cmd) cfg := ctx.Config home := cfg.RootDir diff --git a/server/start.go b/server/start.go index dbc575464669..e27f65ae5ea3 100644 --- a/server/start.go +++ b/server/start.go @@ -999,7 +999,7 @@ func addStartNodeFlags(cmd *cobra.Command, opts StartCmdOptions) { cmd.Flags().Duration(FlagShutdownGrace, 0*time.Second, "On Shutdown, duration to wait for resource clean up") // support old flags name for backwards compatibility - cmd.Flags().SetNormalizeFunc(func(f *pflag.FlagSet, name string) pflag.NormalizedName { + cmd.Flags().SetNormalizeFunc(func(_ *pflag.FlagSet, name string) pflag.NormalizedName { if name == "with-tendermint" { name = flagWithComet } diff --git a/simapp/abci.go b/simapp/abci.go index 7848d254d50f..057dd7a18e05 100644 --- a/simapp/abci.go +++ b/simapp/abci.go @@ -61,7 +61,7 @@ func (h *VoteExtensionHandler) ExtendVote() sdk.ExtendVoteHandler { } func (h *VoteExtensionHandler) VerifyVoteExtension() sdk.VerifyVoteExtensionHandler { - return func(ctx sdk.Context, req *abci.RequestVerifyVoteExtension) (*abci.ResponseVerifyVoteExtension, error) { + return func(_ sdk.Context, req *abci.RequestVerifyVoteExtension) (*abci.ResponseVerifyVoteExtension, error) { var ve VoteExtension if err := json.Unmarshal(req.VoteExtension, &ve); err != nil { diff --git a/simapp/simd/cmd/testnet.go b/simapp/simd/cmd/testnet.go index d96244cfdf3f..5baeb2718656 100644 --- a/simapp/simd/cmd/testnet.go +++ b/simapp/simd/cmd/testnet.go @@ -83,7 +83,7 @@ func addTestnetFlagsToCmd(cmd *cobra.Command) { cmd.Flags().String(flags.FlagKeyType, string(hd.Secp256k1Type), "Key signing algorithm to generate keys for") // support old flags name for backwards compatibility - cmd.Flags().SetNormalizeFunc(func(f *pflag.FlagSet, name string) pflag.NormalizedName { + cmd.Flags().SetNormalizeFunc(func(_ *pflag.FlagSet, name string) pflag.NormalizedName { if name == flags.FlagKeyAlgorithm { name = flags.FlagKeyType } diff --git a/simapp/test_helpers.go b/simapp/test_helpers.go index 17b6800e7a05..8bc464883000 100644 --- a/simapp/test_helpers.go +++ b/simapp/test_helpers.go @@ -95,7 +95,7 @@ func NewSimappWithCustomOptions(t *testing.T, isCheckTx bool, options SetupOptio } // Setup initializes a new SimApp. A Nop logger is set in SimApp. -func Setup(t *testing.T, isCheckTx bool) *SimApp { +func Setup(t *testing.T, _ bool) *SimApp { t.Helper() privVal := mock.NewPV() diff --git a/store/iavl/tree.go b/store/iavl/tree.go index 889fc1d5a07f..f3167a4f751e 100644 --- a/store/iavl/tree.go +++ b/store/iavl/tree.go @@ -89,7 +89,7 @@ func (it *immutableTree) AvailableVersions() []int { return []int{} } -func (it *immutableTree) LoadVersionForOverwriting(targetVersion int64) error { +func (it *immutableTree) LoadVersionForOverwriting(_ int64) error { panic("cannot call 'LoadVersionForOverwriting' on an immutable IAVL tree") } diff --git a/store/mem/store.go b/store/mem/store.go index b819d7536302..15e0bcd34e05 100644 --- a/store/mem/store.go +++ b/store/mem/store.go @@ -49,7 +49,7 @@ func (s Store) CacheWrapWithTrace(w io.Writer, tc types.TraceContext) types.Cach // Commit performs a no-op as entries are persistent between commitments. func (s *Store) Commit() (id types.CommitID) { return } -func (s *Store) SetPruning(pruning pruningtypes.PruningOptions) {} +func (s *Store) SetPruning(_ pruningtypes.PruningOptions) {} // GetPruning is a no-op as pruning options cannot be directly set on this store. // They must be set on the root commit multi-store. diff --git a/store/metrics/telemetry.go b/store/metrics/telemetry.go index d5bc55c45b9b..2e4bce490a68 100644 --- a/store/metrics/telemetry.go +++ b/store/metrics/telemetry.go @@ -53,4 +53,4 @@ func NewNoOpMetrics() NoOpMetrics { } // MeasureSince is a no-op implementation of the StoreMetrics interface to avoid time.Now() calls -func (m NoOpMetrics) MeasureSince(keys ...string) {} +func (m NoOpMetrics) MeasureSince(_ ...string) {} diff --git a/store/rootmulti/store.go b/store/rootmulti/store.go index 94336bc5faa8..2831be336e3b 100644 --- a/store/rootmulti/store.go +++ b/store/rootmulti/store.go @@ -898,7 +898,6 @@ func (rs *Store) Snapshot(height uint64, protoWriter protoio.Writer) error { return nil }() - if err != nil { return err } @@ -910,7 +909,7 @@ func (rs *Store) Snapshot(height uint64, protoWriter protoio.Writer) error { // Restore implements snapshottypes.Snapshotter. // returns next snapshot item and error. func (rs *Store) Restore( - height uint64, format uint32, protoReader protoio.Reader, + height uint64, _ uint32, protoReader protoio.Reader, ) (snapshottypes.SnapshotItem, error) { // Import nodes into stores. The first item is expected to be a SnapshotItem containing // a SnapshotStoreItem, telling us which store to import into. The following items will contain diff --git a/store/types/listening.go b/store/types/listening.go index 75828793ffc1..6c21bbb5546c 100644 --- a/store/types/listening.go +++ b/store/types/listening.go @@ -11,10 +11,10 @@ func NewMemoryListener() *MemoryListener { } // OnWrite implements MemoryListener interface -func (fl *MemoryListener) OnWrite(storeKey StoreKey, key, value []byte, delete bool) { +func (fl *MemoryListener) OnWrite(storeKey StoreKey, key, value []byte, del bool) { fl.stateCache = append(fl.stateCache, &StoreKVPair{ StoreKey: storeKey.Name(), - Delete: delete, + Delete: del, Key: key, Value: value, }) diff --git a/tests/e2e/auth/suite.go b/tests/e2e/auth/suite.go index 885ce396a83f..691f97451bf0 100644 --- a/tests/e2e/auth/suite.go +++ b/tests/e2e/auth/suite.go @@ -340,7 +340,6 @@ func (s *E2ETestSuite) TestCLIQueryTxCmdByHash() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { cmd := authcli.QueryTxCmd() clientCtx := val.ClientCtx @@ -470,7 +469,6 @@ func (s *E2ETestSuite) TestCLIQueryTxCmdByEvents() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { cmd := authcli.QueryTxCmd() clientCtx := val.ClientCtx @@ -548,7 +546,6 @@ func (s *E2ETestSuite) TestCLIQueryTxsCmdByEvents() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { cmd := authcli.QueryTxsByEventsCmd() clientCtx := val.ClientCtx @@ -1436,7 +1433,6 @@ func (s *E2ETestSuite) TestAuxSigner() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { _, err := govtestutil.MsgSubmitLegacyProposal( val.ClientCtx, @@ -1658,7 +1654,6 @@ func (s *E2ETestSuite) TestAuxToFeeWithTips() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { res, err := govtestutil.MsgSubmitLegacyProposal( val.ClientCtx, diff --git a/tests/e2e/authz/grpc.go b/tests/e2e/authz/grpc.go index 24dd529b27a8..b9b44be195e3 100644 --- a/tests/e2e/authz/grpc.go +++ b/tests/e2e/authz/grpc.go @@ -63,7 +63,6 @@ func (s *E2ETestSuite) TestQueryGrantGRPC() { }, } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { resp, _ := testutil.GetRequest(tc.url) require := s.Require() @@ -150,7 +149,6 @@ func (s *E2ETestSuite) TestQueryGrantsGRPC() { }, } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { tc.preRun() resp, err := testutil.GetRequest(tc.url) diff --git a/tests/e2e/authz/tx.go b/tests/e2e/authz/tx.go index 43f4ac3101b4..0ca5bfa16436 100644 --- a/tests/e2e/authz/tx.go +++ b/tests/e2e/authz/tx.go @@ -308,7 +308,6 @@ func (s *E2ETestSuite) TestCmdRevokeAuthorizations() { }, } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { cmd := cli.NewCmdRevokeAuthorization(addresscodec.NewHexCodec()) clientCtx := val.ClientCtx @@ -455,7 +454,6 @@ func (s *E2ETestSuite) TestNewExecGenericAuthorized() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { cmd := cli.NewCmdExecAuthorization() clientCtx := val.ClientCtx @@ -561,7 +559,6 @@ func (s *E2ETestSuite) TestNewExecGrantAuthorized() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { cmd := cli.NewCmdExecAuthorization() clientCtx := val.ClientCtx @@ -760,7 +757,6 @@ func (s *E2ETestSuite) TestExecDelegateAuthorization() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { cmd := cli.NewCmdExecAuthorization() clientCtx := val.ClientCtx @@ -827,7 +823,6 @@ func (s *E2ETestSuite) TestExecDelegateAuthorization() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { cmd := cli.NewCmdExecAuthorization() clientCtx := val.ClientCtx @@ -985,7 +980,6 @@ func (s *E2ETestSuite) TestExecUndelegateAuthorization() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { cmd := cli.NewCmdExecAuthorization() clientCtx := val.ClientCtx @@ -1053,7 +1047,6 @@ func (s *E2ETestSuite) TestExecUndelegateAuthorization() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { cmd := cli.NewCmdExecAuthorization() clientCtx := val.ClientCtx diff --git a/tests/e2e/bank/grpc.go b/tests/e2e/bank/grpc.go index d60c6a203b39..ed7c56e3d312 100644 --- a/tests/e2e/bank/grpc.go +++ b/tests/e2e/bank/grpc.go @@ -89,7 +89,6 @@ func (s *E2ETestSuite) TestTotalSupplyGRPCHandler() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { resp, err := testutil.GetRequestWithHeaders(tc.url, tc.headers) s.Require().NoError(err) @@ -210,7 +209,6 @@ func (s *E2ETestSuite) TestDenomMetadataGRPCHandler() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { resp, err := testutil.GetRequestWithHeaders(tc.url, tc.headers) s.Require().NoError(err) @@ -274,7 +272,6 @@ func (s *E2ETestSuite) TestBalancesGRPCHandler() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { resp, err := testutil.GetRequest(tc.url) s.Require().NoError(err) diff --git a/tests/e2e/bank/suite.go b/tests/e2e/bank/suite.go index dd3fd5559429..2636da5e785a 100644 --- a/tests/e2e/bank/suite.go +++ b/tests/e2e/bank/suite.go @@ -234,8 +234,6 @@ func (s *E2ETestSuite) TestNewSendTxCmd() { } for _, tc := range testCases { - tc := tc - s.Require().NoError(s.network.WaitForNextBlock()) s.Run(tc.name, func() { clientCtx := val.ClientCtx @@ -369,8 +367,6 @@ func (s *E2ETestSuite) TestNewMultiSendTxCmd() { } for _, tc := range testCases { - tc := tc - s.Require().NoError(s.network.WaitForNextBlock()) s.Run(tc.name, func() { clientCtx := val.ClientCtx diff --git a/tests/e2e/distribution/grpc_query_suite.go b/tests/e2e/distribution/grpc_query_suite.go index 6d40625d7e57..8ee8683b1381 100644 --- a/tests/e2e/distribution/grpc_query_suite.go +++ b/tests/e2e/distribution/grpc_query_suite.go @@ -64,7 +64,6 @@ func (s *GRPCQueryTestSuite) TestQueryParamsGRPC() { } for _, tc := range testCases { - tc := tc resp, err := sdktestutil.GetRequest(tc.url) s.Run(tc.name, func() { s.Require().NoError(err) @@ -99,7 +98,6 @@ func (s *GRPCQueryTestSuite) TestQueryValidatorDistributionInfoGRPC() { } for _, tc := range testCases { - tc := tc resp, err := sdktestutil.GetRequest(tc.url) s.Run(tc.name, func() { if tc.expErr { @@ -152,7 +150,6 @@ func (s *GRPCQueryTestSuite) TestQueryOutstandingRewardsGRPC() { } for _, tc := range testCases { - tc := tc resp, err := sdktestutil.GetRequestWithHeaders(tc.url, tc.headers) s.Run(tc.name, func() { if tc.expErr { @@ -206,7 +203,6 @@ func (s *GRPCQueryTestSuite) TestQueryValidatorCommissionGRPC() { } for _, tc := range testCases { - tc := tc resp, err := sdktestutil.GetRequestWithHeaders(tc.url, tc.headers) s.Run(tc.name, func() { if tc.expErr { @@ -264,7 +260,6 @@ func (s *GRPCQueryTestSuite) TestQuerySlashesGRPC() { } for _, tc := range testCases { - tc := tc resp, err := sdktestutil.GetRequest(tc.url) s.Run(tc.name, func() { @@ -340,7 +335,6 @@ func (s *GRPCQueryTestSuite) TestQueryDelegatorRewardsGRPC() { } for _, tc := range testCases { - tc := tc resp, err := sdktestutil.GetRequestWithHeaders(tc.url, tc.headers) s.Run(tc.name, func() { @@ -392,7 +386,6 @@ func (s *GRPCQueryTestSuite) TestQueryDelegatorValidatorsGRPC() { } for _, tc := range testCases { - tc := tc resp, err := sdktestutil.GetRequest(tc.url) s.Run(tc.name, func() { @@ -444,7 +437,6 @@ func (s *GRPCQueryTestSuite) TestQueryWithdrawAddressGRPC() { } for _, tc := range testCases { - tc := tc resp, err := sdktestutil.GetRequest(tc.url) s.Run(tc.name, func() { @@ -489,7 +481,6 @@ func (s *GRPCQueryTestSuite) TestQueryValidatorCommunityPoolGRPC() { } for _, tc := range testCases { - tc := tc resp, err := sdktestutil.GetRequestWithHeaders(tc.url, tc.headers) s.Run(tc.name, func() { diff --git a/tests/e2e/distribution/suite.go b/tests/e2e/distribution/suite.go index ba674126c634..1c6e8c55d2b4 100644 --- a/tests/e2e/distribution/suite.go +++ b/tests/e2e/distribution/suite.go @@ -129,8 +129,6 @@ func (s *E2ETestSuite) TestNewWithdrawRewardsCmd() { } for _, tc := range testCases { - tc := tc - s.Run(tc.name, func() { clientCtx := val.ClientCtx @@ -224,8 +222,6 @@ func (s *E2ETestSuite) TestNewWithdrawAllRewardsCmd() { } for _, tc := range testCases { - tc := tc - s.Run(tc.name, func() { cmd := cli.NewWithdrawAllRewardsCmd(address.NewHexCodec(), address.NewHexCodec()) clientCtx := val.ClientCtx @@ -309,8 +305,6 @@ func (s *E2ETestSuite) TestNewSetWithdrawAddrCmd() { } for _, tc := range testCases { - tc := tc - s.Run(tc.name, func() { cmd := cli.NewSetWithdrawAddrCmd(address.NewHexCodec()) clientCtx := val.ClientCtx @@ -364,8 +358,6 @@ func (s *E2ETestSuite) TestNewFundCommunityPoolCmd() { } for _, tc := range testCases { - tc := tc - s.Run(tc.name, func() { cmd := cli.NewFundCommunityPoolCmd(address.NewHexCodec()) clientCtx := val.ClientCtx diff --git a/tests/e2e/gov/grpc.go b/tests/e2e/gov/grpc.go index 448000c65e9a..94f593fd97f4 100644 --- a/tests/e2e/gov/grpc.go +++ b/tests/e2e/gov/grpc.go @@ -38,7 +38,6 @@ func (s *E2ETestSuite) TestGetProposalGRPC() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { resp, err := testutil.GetRequest(tc.url) s.Require().NoError(err) @@ -92,7 +91,6 @@ func (s *E2ETestSuite) TestGetProposalsGRPC() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { resp, err := testutil.GetRequestWithHeaders(tc.url, tc.headers) s.Require().NoError(err) @@ -159,7 +157,6 @@ func (s *E2ETestSuite) TestGetProposalVoteGRPC() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { resp, err := testutil.GetRequest(tc.url) s.Require().NoError(err) @@ -203,7 +200,6 @@ func (s *E2ETestSuite) TestGetProposalVotesGRPC() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { resp, err := testutil.GetRequest(tc.url) s.Require().NoError(err) @@ -252,7 +248,6 @@ func (s *E2ETestSuite) TestGetProposalDepositGRPC() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { resp, err := testutil.GetRequest(tc.url) s.Require().NoError(err) @@ -291,7 +286,6 @@ func (s *E2ETestSuite) TestGetProposalDepositsGRPC() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { resp, err := testutil.GetRequest(tc.url) s.Require().NoError(err) @@ -336,7 +330,6 @@ func (s *E2ETestSuite) TestGetTallyGRPC() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { resp, err := testutil.GetRequest(tc.url) s.Require().NoError(err) @@ -398,7 +391,6 @@ func (s *E2ETestSuite) TestGetParamsGRPC() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { resp, err := testutil.GetRequest(tc.url) s.Require().NoError(err) diff --git a/tests/e2e/gov/tx.go b/tests/e2e/gov/tx.go index 5bcff679372d..d804c35c1acd 100644 --- a/tests/e2e/gov/tx.go +++ b/tests/e2e/gov/tx.go @@ -165,8 +165,6 @@ func (s *E2ETestSuite) TestNewCmdSubmitProposal() { } for _, tc := range testCases { - tc := tc - s.Run(tc.name, func() { cmd := cli.NewCmdSubmitProposal() clientCtx := val.ClientCtx @@ -261,8 +259,6 @@ func (s *E2ETestSuite) TestNewCmdSubmitLegacyProposal() { } for _, tc := range testCases { - tc := tc - s.Run(tc.name, func() { cmd := cli.NewCmdSubmitLegacyProposal() clientCtx := val.ClientCtx @@ -446,7 +442,6 @@ func (s *E2ETestSuite) TestNewCmdVote() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { cmd := cli.NewCmdVote() clientCtx := val.ClientCtx @@ -543,7 +538,6 @@ func (s *E2ETestSuite) TestNewCmdWeightedVote() { } for _, tc := range testCases { - tc := tc s.Run(tc.name, func() { cmd := cli.NewCmdWeightedVote() clientCtx := val.ClientCtx diff --git a/testutil/configurator/configurator.go b/testutil/configurator/configurator.go index 6eba14378104..8ea28d3fc25b 100644 --- a/testutil/configurator/configurator.go +++ b/testutil/configurator/configurator.go @@ -331,6 +331,7 @@ func NewAppConfig(opts ...ModuleOption) depinject.Config { for _, s := range cfg.PreBlockersOrder { if _, ok := cfg.ModuleConfigs[s]; ok { + //nolint:staticcheck preBlockers = append(preBlockers, s) } } diff --git a/testutil/sims/address_helpers.go b/testutil/sims/address_helpers.go index 5b054bff240b..3f29999bbf99 100644 --- a/testutil/sims/address_helpers.go +++ b/testutil/sims/address_helpers.go @@ -7,10 +7,11 @@ import ( "fmt" "strconv" + topupTypes "github.com/0xPolygon/heimdall-v2/x/topup/types" + errorsmod "cosmossdk.io/errors" "cosmossdk.io/math" - topupTypes "github.com/0xPolygon/heimdall-v2/x/topup/types" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/testutil/sims/app_helpers.go b/testutil/sims/app_helpers.go index e296ec76ff75..45b34f618847 100644 --- a/testutil/sims/app_helpers.go +++ b/testutil/sims/app_helpers.go @@ -7,14 +7,17 @@ import ( "strconv" "time" - coreheader "cosmossdk.io/core/header" - "cosmossdk.io/depinject" - sdkmath "cosmossdk.io/math" + stakeTypes "github.com/0xPolygon/heimdall-v2/x/stake/types" abci "github.com/cometbft/cometbft/abci/types" cmtjson "github.com/cometbft/cometbft/libs/json" cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" cmttypes "github.com/cometbft/cometbft/types" dbm "github.com/cosmos/cosmos-db" + + coreheader "cosmossdk.io/core/header" + "cosmossdk.io/depinject" + sdkmath "cosmossdk.io/math" + "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/codec" cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" @@ -26,8 +29,6 @@ import ( "github.com/cosmos/cosmos-sdk/types/simulation" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - - stakeTypes "github.com/0xPolygon/heimdall-v2/x/stake/types" ) const DefaultGenTxGas = 10000000 @@ -281,7 +282,7 @@ func GenesisStateWithValSet( type EmptyAppOptions struct{} // Get implements AppOptions -func (ao EmptyAppOptions) Get(o string) interface{} { +func (ao EmptyAppOptions) Get(_ string) interface{} { return nil } diff --git a/testutil/sims/tx_helpers.go b/testutil/sims/tx_helpers.go index 1beb6207c6d8..1967b66ab9c1 100644 --- a/testutil/sims/tx_helpers.go +++ b/testutil/sims/tx_helpers.go @@ -6,10 +6,10 @@ import ( "testing" "time" + abci "github.com/cometbft/cometbft/abci/types" "github.com/stretchr/testify/require" "cosmossdk.io/errors" - abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" diff --git a/tools/confix/cmd/home.go b/tools/confix/cmd/home.go index 1210303a1cc4..7378bcd7f600 100644 --- a/tools/confix/cmd/home.go +++ b/tools/confix/cmd/home.go @@ -12,7 +12,7 @@ func HomeCommand() *cobra.Command { Short: "Outputs the folder used as the binary home. No home directory is set when using the `confix` tool standalone.", Long: `Outputs the folder used as the binary home. In order to change the home directory path, set the $APPD_HOME environment variable, or use the "--home" flag.`, Args: cobra.NoArgs, - Run: func(cmd *cobra.Command, args []string) { + Run: func(cmd *cobra.Command, _ []string) { clientCtx := client.GetClientContextFromCmd(cmd) if clientCtx.HomeDir == "" { cmd.Println("No home directory set.") diff --git a/tools/confix/migrations.go b/tools/confix/migrations.go index 01c14ca8a148..46792ccd5db6 100644 --- a/tools/confix/migrations.go +++ b/tools/confix/migrations.go @@ -47,7 +47,6 @@ func PlanBuilder(from *tomledit.Document, to string, loadFn loadDestConfigFile) diffs := DiffKeys(from, target) for _, diff := range diffs { - diff := diff kv := diff.KV var step transform.Step diff --git a/tools/cosmovisor/cmd/cosmovisor/config.go b/tools/cosmovisor/cmd/cosmovisor/config.go index 927e005ebf6a..a6cff545baeb 100644 --- a/tools/cosmovisor/cmd/cosmovisor/config.go +++ b/tools/cosmovisor/cmd/cosmovisor/config.go @@ -10,7 +10,7 @@ var configCmd = &cobra.Command{ Use: "config", Short: "Display cosmovisor config (prints environment variables used by cosmovisor).", SilenceUsage: true, - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { cfg, err := cosmovisor.GetConfigFromEnv() if err != nil { return err diff --git a/tools/cosmovisor/cmd/cosmovisor/version.go b/tools/cosmovisor/cmd/cosmovisor/version.go index 9605a5cce873..776bc2faf61f 100644 --- a/tools/cosmovisor/cmd/cosmovisor/version.go +++ b/tools/cosmovisor/cmd/cosmovisor/version.go @@ -53,7 +53,7 @@ func printVersion(cmd *cobra.Command, args []string, noAppVersion bool) error { return nil } -func printVersionJSON(cmd *cobra.Command, args []string, noAppVersion bool) error { +func printVersionJSON(cmd *cobra.Command, _ []string, noAppVersion bool) error { if noAppVersion { cmd.Printf(`{"cosmovisor_version":"%s"}`+"\n", getVersion()) return nil diff --git a/tools/hubl/internal/load.go b/tools/hubl/internal/load.go index 6572beafa746..5bdb284d844d 100644 --- a/tools/hubl/internal/load.go +++ b/tools/hubl/internal/load.go @@ -175,6 +175,7 @@ func (c *ChainInfo) OpenClient() (*grpc.ClientConn, error) { } var err error + //nolint:staticcheck c.client, err = grpc.Dial(endpoint.Endpoint, grpc.WithTransportCredentials(creds)) if err != nil { res = errors.Join(res, err) diff --git a/tools/hubl/internal/remote.go b/tools/hubl/internal/remote.go index 033386b16883..4fe3ac6d6aad 100644 --- a/tools/hubl/internal/remote.go +++ b/tools/hubl/internal/remote.go @@ -79,8 +79,6 @@ func RemoteCommand(config *Config, configDir string) ([]*cobra.Command, error) { commands := []*cobra.Command{} for chain, chainConfig := range config.Chains { - chain, chainConfig := chain, chainConfig - // load chain info chainInfo := NewChainInfo(configDir, chain, chainConfig) if err := chainInfo.Load(false); err != nil { @@ -100,10 +98,10 @@ func RemoteCommand(config *Config, configDir string) ([]*cobra.Command, error) { TypeResolver: &dynamicTypeResolver{chainInfo}, FileResolver: chainInfo.ProtoFiles, }, - GetClientConn: func(command *cobra.Command) (grpc.ClientConnInterface, error) { + GetClientConn: func(_ *cobra.Command) (grpc.ClientConnInterface, error) { return chainInfo.OpenClient() }, - AddQueryConnFlags: func(command *cobra.Command) {}, + AddQueryConnFlags: func(_ *cobra.Command) {}, } var ( @@ -115,7 +113,7 @@ func RemoteCommand(config *Config, configDir string) ([]*cobra.Command, error) { chainCmd := &cobra.Command{ Use: chain, Short: fmt.Sprintf("Commands for the %s chain", chain), - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { switch { case reconfig: return reconfigure(cmd, config, configDir, chain) @@ -146,7 +144,7 @@ func RemoteErrorCommand(config *Config, configDir, chain string, chainConfig *Ch Use: chain, Short: "Unable to load data", Long: "Unable to load data, reconfiguration needed.", - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { cmd.Printf("Error loading chain data for %s: %+v\n", chain, err) return reconfigure(cmd, config, configDir, chain) diff --git a/types/address.go b/types/address.go index 462895220e91..035f685ed98b 100644 --- a/types/address.go +++ b/types/address.go @@ -5,7 +5,6 @@ import ( "encoding/json" "errors" "fmt" - "sync" "sync/atomic" "github.com/ethereum/go-ethereum/common" @@ -41,14 +40,13 @@ const ( ) // cache variables +// +//nolint:unused var ( // AccAddress.String() is expensive and if unoptimized dominantly showed up in profiles, // yet has no mechanisms to trivially cache the result given that AccAddress is a []byte type. - accAddrMu sync.Mutex accAddrCache *simplelru.LRU - consAddrMu sync.Mutex consAddrCache *simplelru.LRU - valAddrMu sync.Mutex valAddrCache *simplelru.LRU isCachingEnabled atomic.Bool diff --git a/types/address_race_test.go b/types/address_race_test.go index f4117eca13eb..da8ad710c2b2 100644 --- a/types/address_race_test.go +++ b/types/address_race_test.go @@ -11,11 +11,11 @@ import ( ) // generates AccAddress with `prefix` and calls String method -func addressStringCaller(require *require.Assertions, prefix byte, max uint32, cancel chan bool, done chan<- bool) { +func addressStringCaller(require *require.Assertions, prefix byte, m uint32, cancel chan bool, done chan<- bool) { bz := make([]byte, 5) // prefix + 4 bytes for uint bz[0] = prefix for i := uint32(0); ; i++ { - if i >= max { + if i >= m { i = 0 } select { diff --git a/types/bech32/bech32_test.go b/types/bech32/bech32_test.go index e39086fb9d97..466f68d418e8 100644 --- a/types/bech32/bech32_test.go +++ b/types/bech32/bech32_test.go @@ -32,7 +32,7 @@ func FuzzDecodeAndConvert(f *testing.F) { f.Add("shasum149yfqne0parehrupja55kvqcfvxja5wpe54pas8mshffngvj53rs93fk75") f.Add("bech321er8m900ayvv9rg5r6ush4nzvqhj4p9tqnxqkxaaxrs4ueuvhurcs4x3j4j") - f.Fuzz(func(t *testing.T, str string) { + f.Fuzz(func(_ *testing.T, str string) { _, _, _ = bech32.DecodeAndConvert(str) }) } diff --git a/types/bech32/legacybech32/pk.go b/types/bech32/legacybech32/pk.go index 1cc3c74c9080..fe515efcca95 100644 --- a/types/bech32/legacybech32/pk.go +++ b/types/bech32/legacybech32/pk.go @@ -40,13 +40,13 @@ func MustMarshalPubKey(pkt Bech32PubKeyType, pubkey cryptotypes.PubKey) string { return res } -func getPrefix(pkt Bech32PubKeyType) string { +func getPrefix(_ Bech32PubKeyType) string { return "" } // Deprecated: UnmarshalPubKey returns a PublicKey from a bech32-encoded PublicKey with // a given key type. -func UnmarshalPubKey(pkt Bech32PubKeyType, pubkeyStr string) (cryptotypes.PubKey, error) { +func UnmarshalPubKey(_ Bech32PubKeyType, pubkeyStr string) (cryptotypes.PubKey, error) { bz, err := sdk.GetFromHex(pubkeyStr) if err != nil { return nil, err diff --git a/types/coin.go b/types/coin.go index 136295eed295..aa042a155de4 100644 --- a/types/coin.go +++ b/types/coin.go @@ -420,7 +420,6 @@ func (coins Coins) SafeMulInt(x math.Int) (Coins, bool) { res := make(Coins, len(coins)) for i, coin := range coins { - coin := coin res[i] = NewCoin(coin.Denom, coin.Amount.Mul(x)) } @@ -454,7 +453,6 @@ func (coins Coins) SafeQuoInt(x math.Int) (Coins, bool) { var res Coins for _, coin := range coins { - coin := coin res = append(res, NewCoin(coin.Denom, coin.Amount.Quo(x))) } @@ -477,34 +475,34 @@ func (coins Coins) SafeQuoInt(x math.Int) (Coins, bool) { // {2A, 3B}.Max({1B, 4C}) == {2A, 3B, 4C} // {1A, 2B}.Max({}) == {1A, 2B} func (coins Coins) Max(coinsB Coins) Coins { - max := make([]Coin, 0) + m := make([]Coin, 0) indexA, indexB := 0, 0 for indexA < len(coins) && indexB < len(coinsB) { coinA, coinB := coins[indexA], coinsB[indexB] switch strings.Compare(coinA.Denom, coinB.Denom) { case -1: // denom missing from coinsB - max = append(max, coinA) + m = append(m, coinA) indexA++ case 0: // same denom in both maxCoin := coinA if coinB.Amount.GT(maxCoin.Amount) { maxCoin = coinB } - max = append(max, maxCoin) + m = append(m, maxCoin) indexA++ indexB++ case 1: // denom missing from coinsA - max = append(max, coinB) + m = append(m, coinB) indexB++ } } for ; indexA < len(coins); indexA++ { - max = append(max, coins[indexA]) + m = append(m, coins[indexA]) } for ; indexB < len(coinsB); indexB++ { - max = append(max, coinsB[indexB]) + m = append(m, coinsB[indexB]) } - return NewCoins(max...) + return NewCoins(m...) } // Min takes two valid Coins inputs and returns a valid Coins result @@ -525,7 +523,7 @@ func (coins Coins) Max(coinsB Coins) Coins { // // See also DecCoins.Intersect(). func (coins Coins) Min(coinsB Coins) Coins { - min := make([]Coin, 0) + m := make([]Coin, 0) for indexA, indexB := 0, 0; indexA < len(coins) && indexB < len(coinsB); { coinA, coinB := coins[indexA], coinsB[indexB] switch strings.Compare(coinA.Denom, coinB.Denom) { @@ -537,7 +535,7 @@ func (coins Coins) Min(coinsB Coins) Coins { minCoin = coinB } if !minCoin.IsZero() { - min = append(min, minCoin) + m = append(m, minCoin) } indexA++ indexB++ @@ -545,7 +543,7 @@ func (coins Coins) Min(coinsB Coins) Coins { indexB++ } } - return NewCoins(min...) + return NewCoins(m...) } // IsAllGT returns true if for every denom in coinsB, diff --git a/types/coin_test.go b/types/coin_test.go index bce1eb8bd84e..9c9af51b830b 100644 --- a/types/coin_test.go +++ b/types/coin_test.go @@ -882,8 +882,8 @@ func (s *coinTestSuite) TestMinMax() { name string input1 sdk.Coins input2 sdk.Coins - min sdk.Coins - max sdk.Coins + mi sdk.Coins + ma sdk.Coins }{ {"zero-zero", sdk.Coins{}, sdk.Coins{}, sdk.Coins{}, sdk.Coins{}}, {"zero-one", sdk.Coins{}, sdk.Coins{{testDenom1, one}}, sdk.Coins{}, sdk.Coins{{testDenom1, one}}}, @@ -899,10 +899,10 @@ func (s *coinTestSuite) TestMinMax() { } for _, tc := range cases { - min := tc.input1.Min(tc.input2) - max := tc.input1.Max(tc.input2) - s.Require().True(min.Equal(tc.min), tc.name) - s.Require().True(max.Equal(tc.max), tc.name) + mi := tc.input1.Min(tc.input2) + ma := tc.input1.Max(tc.input2) + s.Require().True(mi.Equal(tc.mi), tc.name) + s.Require().True(ma.Equal(tc.ma), tc.name) } } diff --git a/types/collections.go b/types/collections.go index 53658ef7b84a..63477d4e253d 100644 --- a/types/collections.go +++ b/types/collections.go @@ -228,7 +228,7 @@ func (timeKeyCodec) Decode(buffer []byte) (int, time.Time, error) { return timeSize, t, nil } -func (timeKeyCodec) Size(key time.Time) int { return timeSize } +func (timeKeyCodec) Size(_ time.Time) int { return timeSize } func (timeKeyCodec) EncodeJSON(value time.Time) ([]byte, error) { return value.MarshalJSON() } diff --git a/types/config_test.go b/types/config_test.go index df281b1f852a..f9fd2ec85a78 100644 --- a/types/config_test.go +++ b/types/config_test.go @@ -44,7 +44,7 @@ func (s *configTestSuite) TestConfig_SetTxEncoder() { mockErr := errors.New("test") config := sdk.NewConfig() s.Require().Nil(config.GetTxEncoder()) - encFunc := sdk.TxEncoder(func(tx sdk.Tx) ([]byte, error) { return nil, nil }) + encFunc := sdk.TxEncoder(func(_ sdk.Tx) ([]byte, error) { return nil, nil }) config.SetTxEncoder(encFunc) _, err := config.GetTxEncoder()(sdk.Tx(nil)) s.Require().Error(mockErr, err) diff --git a/types/context_test.go b/types/context_test.go index 926f28dba193..167223253aff 100644 --- a/types/context_test.go +++ b/types/context_test.go @@ -214,7 +214,7 @@ func (s *contextTestSuite) TestContextHeaderClone() { for name, tc := range cases { tc := tc - s.T().Run(name, func(t *testing.T) { + s.T().Run(name, func(_ *testing.T) { ctx := types.NewContext(nil, tc.h, false, nil) s.Require().Equal(tc.h.Height, ctx.BlockHeight()) s.Require().Equal(tc.h.Time.UTC(), ctx.BlockTime()) diff --git a/types/dec_coin_test.go b/types/dec_coin_test.go index 0d88621933c9..f643a8afdaac 100644 --- a/types/dec_coin_test.go +++ b/types/dec_coin_test.go @@ -677,7 +677,7 @@ func (s *decCoinTestSuite) TestDecCoins_GetDenomByIndex() { for i, tc := range testCases { tc := tc - s.T().Run(tc.name, func(t *testing.T) { + s.T().Run(tc.name, func(_ *testing.T) { if tc.expectedErr { s.Require().Panics(func() { tc.input.GetDenomByIndex(tc.index) }, "Test should have panicked") } else { @@ -719,7 +719,7 @@ func (s *decCoinTestSuite) TestDecCoins_IsAllPositive() { for i, tc := range testCases { tc := tc - s.T().Run(tc.name, func(t *testing.T) { + s.T().Run(tc.name, func(_ *testing.T) { if tc.expectedResult { s.Require().True(tc.input.IsAllPositive(), "Test case #%d: %s", i, tc.name) } else { @@ -751,7 +751,7 @@ func (s *decCoinTestSuite) TestDecCoin_IsLT() { } for i, tc := range testCases { - s.T().Run(tc.name, func(t *testing.T) { + s.T().Run(tc.name, func(_ *testing.T) { if tc.expectedPanic { s.Require().Panics(func() { tc.coin.IsLT(tc.otherCoin) }, "Test case #%d: %s", i, tc.name) } else { @@ -789,7 +789,7 @@ func (s *decCoinTestSuite) TestDecCoin_IsGTE() { for i, tc := range testCases { tc := tc - s.T().Run(tc.name, func(t *testing.T) { + s.T().Run(tc.name, func(_ *testing.T) { if tc.expectedPanic { s.Require().Panics(func() { tc.coin.IsGTE(tc.otherCoin) }, "Test case #%d: %s", i, tc.name) } else { @@ -833,7 +833,7 @@ func (s *decCoinTestSuite) TestDecCoins_IsZero() { for i, tc := range testCases { tc := tc - s.T().Run(tc.name, func(t *testing.T) { + s.T().Run(tc.name, func(_ *testing.T) { if tc.expectedResult { s.Require().True(tc.coins.IsZero(), "Test case #%d: %s", i, tc.name) } else { @@ -888,7 +888,7 @@ func (s *decCoinTestSuite) TestDecCoins_MulDec() { for i, tc := range testCases { tc := tc - s.T().Run(tc.name, func(t *testing.T) { + s.T().Run(tc.name, func(_ *testing.T) { res := tc.coins.MulDec(tc.multiplier) s.Require().Equal(tc.expectedResult, res, "Test case #%d: %s", i, tc.name) }) @@ -937,7 +937,7 @@ func (s *decCoinTestSuite) TestDecCoins_MulDecTruncate() { for i, tc := range testCases { tc := tc - s.T().Run(tc.name, func(t *testing.T) { + s.T().Run(tc.name, func(_ *testing.T) { if tc.expectedPanic { s.Require().Panics(func() { tc.coins.MulDecTruncate(tc.multiplier) }, "Test case #%d: %s", i, tc.name) } else { @@ -1038,7 +1038,7 @@ func (s *decCoinTestSuite) TestDecCoin_IsEqual() { } for i, tc := range testCases { - s.T().Run(tc.name, func(t *testing.T) { + s.T().Run(tc.name, func(_ *testing.T) { res := tc.coin.IsEqual(tc.otherCoin) if tc.expectedResult { s.Require().True(res, "Test case #%d: %s", i, tc.name) @@ -1089,7 +1089,7 @@ func (s *decCoinTestSuite) TestDecCoins_IsEqual() { } for i, tc := range testCases { - s.T().Run(tc.name, func(t *testing.T) { + s.T().Run(tc.name, func(_ *testing.T) { res := tc.coinsA.Equal(tc.coinsB) if tc.expectedResult { s.Require().True(res, "Test case #%d: %s", i, tc.name) @@ -1117,7 +1117,7 @@ func (s *decCoinTestSuite) TestDecCoin_Validate() { } for i, tc := range testCases { - s.T().Run(tc.name, func(t *testing.T) { + s.T().Run(tc.name, func(_ *testing.T) { err := tc.input.Validate() if tc.expectedPass { s.Require().NoError(err, "unexpected result for test case #%d %s, input: %v", i, tc.name, tc.input) @@ -1152,7 +1152,7 @@ func (s *decCoinTestSuite) TestDecCoin_ParseDecCoin() { } for i, tc := range testCases { - s.T().Run(tc.name, func(t *testing.T) { + s.T().Run(tc.name, func(_ *testing.T) { res, err := sdk.ParseDecCoin(tc.input) if tc.expectedErr { s.Require().Error(err, "expected error for test case #%d %s, input: %v", i, tc.name, tc.input) diff --git a/types/fuzz_test.go b/types/fuzz_test.go index 167b648ac0ce..a7785e98c29d 100644 --- a/types/fuzz_test.go +++ b/types/fuzz_test.go @@ -17,7 +17,7 @@ func FuzzCoinUnmarshalJSON(f *testing.F) { f.Add(`{"denom":"uatom","amount":"1000111111111111111111111"}`) f.Add(`{"denom":"mu","amount":"0"}`) - f.Fuzz(func(t *testing.T, jsonBlob string) { + f.Fuzz(func(_ *testing.T, jsonBlob string) { var c Coin _ = cdc.UnmarshalJSON([]byte(jsonBlob), &c) }) diff --git a/types/handler.go b/types/handler.go index 456c3904e43c..cb43fcc5ce52 100644 --- a/types/handler.go +++ b/types/handler.go @@ -39,7 +39,7 @@ func ChainAnteDecorators(chain ...AnteDecorator) AnteHandler { handlerChain := make([]AnteHandler, len(chain)+1) // set the terminal AnteHandler decorator - handlerChain[len(chain)] = func(ctx Context, tx Tx, simulate bool) (Context, error) { + handlerChain[len(chain)] = func(ctx Context, _ Tx, _ bool) (Context, error) { return ctx, nil } for i := 0; i < len(chain); i++ { @@ -67,7 +67,7 @@ func ChainPostDecorators(chain ...PostDecorator) PostHandler { handlerChain := make([]PostHandler, len(chain)+1) // set the terminal PostHandler decorator - handlerChain[len(chain)] = func(ctx Context, tx Tx, simulate, success bool) (Context, error) { + handlerChain[len(chain)] = func(ctx Context, _ Tx, _, _ bool) (Context, error) { return ctx, nil } for i := 0; i < len(chain); i++ { diff --git a/types/module/module.go b/types/module/module.go index 7eacde76d097..55b241c8d666 100644 --- a/types/module/module.go +++ b/types/module/module.go @@ -620,7 +620,6 @@ func (m *Manager) assertNoForgottenModules(setOrderFnName string, moduleNames [] } var missing []string for m := range m.Modules { - m := m if pass != nil && pass(m) { continue } @@ -862,7 +861,6 @@ func (m *Manager) GetVersionMap() VersionMap { if v, ok := v.(HasConsensusVersion); ok { version = v.ConsensusVersion() } - name := name vermap[name] = version } diff --git a/types/module/module_test.go b/types/module/module_test.go index 660af10449b8..7b29f2fe6d08 100644 --- a/types/module/module_test.go +++ b/types/module/module_test.go @@ -634,7 +634,7 @@ func (MockCoreAppModule) ValidateGenesis(src appmodule.GenesisSource) error { return nil } func (MockCoreAppModule) InitGenesis(context.Context, appmodule.GenesisSource) error { return nil } -func (MockCoreAppModule) ExportGenesis(ctx context.Context, target appmodule.GenesisTarget) error { +func (MockCoreAppModule) ExportGenesis(_ context.Context, target appmodule.GenesisTarget) error { wrt, err := target("someField") if err != nil { return err diff --git a/types/query/collections_pagination_test.go b/types/query/collections_pagination_test.go index 4467355ca263..dfc5b6a07fc0 100644 --- a/types/query/collections_pagination_test.go +++ b/types/query/collections_pagination_test.go @@ -112,7 +112,7 @@ func TestCollectionPagination(t *testing.T) { expResp: &PageResponse{ NextKey: encodeKey(5), }, - filter: func(key, value uint64) (bool, error) { + filter: func(key, _ uint64) (bool, error) { return key%2 == 0, nil }, expResults: []collections.KeyValue[uint64, uint64]{ @@ -129,7 +129,7 @@ func TestCollectionPagination(t *testing.T) { expResp: &PageResponse{ NextKey: encodeKey(5), }, - filter: func(key, value uint64) (bool, error) { + filter: func(key, _ uint64) (bool, error) { return key%2 == 0, nil }, expResults: []collections.KeyValue[uint64, uint64]{ @@ -166,7 +166,7 @@ type testStore struct { db db.DB } -func (t testStore) OpenKVStore(ctx context.Context) store.KVStore { +func (t testStore) OpenKVStore(_ context.Context) store.KVStore { return t } diff --git a/types/result.go b/types/result.go index ea3d491025fa..1afdddde0f17 100644 --- a/types/result.go +++ b/types/result.go @@ -83,7 +83,7 @@ func NewResponseResultTx(res *coretypes.ResultTx, anyTx *codectypes.Any, timesta } // NewResponseResultBlock returns a BlockResponse given a ResultBlock from CometBFT -func NewResponseResultBlock(res *coretypes.ResultBlock, timestamp string) *cmtproto.Block { +func NewResponseResultBlock(res *coretypes.ResultBlock, _ string) *cmtproto.Block { if res == nil { return nil } @@ -203,7 +203,7 @@ func WrapServiceResult(ctx Context, res proto.Message, err error) (*Result, erro return nil, err } - any, err := codectypes.NewAnyWithValue(res) + a, err := codectypes.NewAnyWithValue(res) if err != nil { return nil, err } @@ -224,7 +224,7 @@ func WrapServiceResult(ctx Context, res proto.Message, err error) (*Result, erro return &Result{ Data: data, Events: events, - MsgResponses: []*codectypes.Any{any}, + MsgResponses: []*codectypes.Any{a}, }, nil } diff --git a/types/simulation/account.go b/types/simulation/account.go index 2e0ddf1caa8b..cfaa4c2006a7 100644 --- a/types/simulation/account.go +++ b/types/simulation/account.go @@ -64,7 +64,7 @@ func FindAccount(accs []Account, address sdk.Address) (Account, bool) { // RandomFees returns a random fee by selecting a random coin denomination and // amount from the account's available balance. If the user doesn't have enough // funds for paying fees, it returns empty coins. -func RandomFees(r *rand.Rand, ctx sdk.Context, spendableCoins sdk.Coins) (sdk.Coins, error) { +func RandomFees(r *rand.Rand, _ sdk.Context, spendableCoins sdk.Coins) (sdk.Coins, error) { if spendableCoins.Empty() { return nil, nil } diff --git a/types/simulation/rand_util.go b/types/simulation/rand_util.go index adacd90ad436..9703a43e7b3c 100644 --- a/types/simulation/rand_util.go +++ b/types/simulation/rand_util.go @@ -42,28 +42,28 @@ func RandStringOfLength(r *rand.Rand, n int) string { } // RandPositiveInt get a rand positive math.Int -func RandPositiveInt(r *rand.Rand, max math.Int) (math.Int, error) { - if !max.GTE(math.OneInt()) { +func RandPositiveInt(r *rand.Rand, m math.Int) (math.Int, error) { + if !m.GTE(math.OneInt()) { return math.Int{}, errors.New("max too small") } - max = max.Sub(math.OneInt()) + m = m.Sub(math.OneInt()) - return math.NewIntFromBigInt(new(big.Int).Rand(r, max.BigInt())).Add(math.OneInt()), nil + return math.NewIntFromBigInt(new(big.Int).Rand(r, m.BigInt())).Add(math.OneInt()), nil } // RandomAmount generates a random amount // Note: The range of RandomAmount includes max, and is, in fact, biased to return max as well as 0. -func RandomAmount(r *rand.Rand, max math.Int) math.Int { +func RandomAmount(r *rand.Rand, m math.Int) math.Int { randInt := big.NewInt(0) switch r.Intn(10) { case 0: // randInt = big.NewInt(0) case 1: - randInt = max.BigInt() + randInt = m.BigInt() default: // NOTE: there are 10 total cases. - randInt = big.NewInt(0).Rand(r, max.BigInt()) // up to max - 1 + randInt = big.NewInt(0).Rand(r, m.BigInt()) // up to max - 1 } return math.NewIntFromBigInt(randInt) @@ -71,16 +71,16 @@ func RandomAmount(r *rand.Rand, max math.Int) math.Int { // RandomDecAmount generates a random decimal amount // Note: The range of RandomDecAmount includes max, and is, in fact, biased to return max as well as 0. -func RandomDecAmount(r *rand.Rand, max math.LegacyDec) math.LegacyDec { +func RandomDecAmount(r *rand.Rand, m math.LegacyDec) math.LegacyDec { randInt := big.NewInt(0) switch r.Intn(10) { case 0: // randInt = big.NewInt(0) case 1: - randInt = max.BigInt() // the underlying big int with all precision bits. + randInt = m.BigInt() // the underlying big int with all precision bits. default: // NOTE: there are 10 total cases. - randInt = big.NewInt(0).Rand(r, max.BigInt()) + randInt = big.NewInt(0).Rand(r, m.BigInt()) } return math.LegacyNewDecFromBigIntWithPrec(randInt, math.LegacyPrecision) @@ -101,8 +101,8 @@ func RandTimestamp(r *rand.Rand) time.Time { } // RandIntBetween returns a random int in the range [min, max) using a given source of randomness. -func RandIntBetween(r *rand.Rand, min, max int) int { - return r.Intn(max-min) + min +func RandIntBetween(r *rand.Rand, mi, ma int) int { + return r.Intn(ma-mi) + mi } // RandSubsetCoins returns random subset of the provided coins diff --git a/x/auth/ante/ante.go b/x/auth/ante/ante.go index f2d540f2abd0..159222c17d69 100644 --- a/x/auth/ante/ante.go +++ b/x/auth/ante/ante.go @@ -4,6 +4,7 @@ import ( errorsmod "cosmossdk.io/errors" storetypes "cosmossdk.io/store/types" txsigning "cosmossdk.io/x/tx/signing" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/types/tx/signing" diff --git a/x/auth/ante/basic.go b/x/auth/ante/basic.go index 94c88bd41d27..97d55061c024 100644 --- a/x/auth/ante/basic.go +++ b/x/auth/ante/basic.go @@ -153,6 +153,7 @@ func (cgts ConsumeTxSizeGasDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, sim // If the pubkey is a multi-signature pubkey, then we estimate for the maximum // number of signers. if _, ok := pubkey.(*multisig.LegacyAminoPubKey); ok { + //nolint:ineffassign cost *= params.TxSigLimit } diff --git a/x/auth/ante/fee.go b/x/auth/ante/fee.go index 44858bf25b02..d03d5f91102f 100644 --- a/x/auth/ante/fee.go +++ b/x/auth/ante/fee.go @@ -5,9 +5,8 @@ import ( "fmt" "math/big" - "cosmossdk.io/math" - errorsmod "cosmossdk.io/errors" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -149,7 +148,7 @@ func DeductFees(bankKeeper types.BankKeeper, ctx sdk.Context, acc sdk.AccountI, err := bankKeeper.SendCoinsFromAccountToModule(ctx, acc.GetAddress(), types.FeeCollectorName, fees) if err != nil { - return errorsmod.Wrapf(sdkerrors.ErrInsufficientFunds, err.Error()) + return errorsmod.Wrapf(sdkerrors.ErrInsufficientFunds, "%s", err.Error()) } return nil diff --git a/x/auth/ante/sigverify.go b/x/auth/ante/sigverify.go index b8e779b7c93d..df1664ac14db 100644 --- a/x/auth/ante/sigverify.go +++ b/x/auth/ante/sigverify.go @@ -263,7 +263,6 @@ func OnlyLegacyAminoSigners(sigData signing.SignatureData) bool { } func (svd SigVerificationDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) { - sigTx, ok := tx.(authsigning.Tx) if !ok { return ctx, errorsmod.Wrap(sdkerrors.ErrTxDecode, "invalid transaction type") @@ -334,7 +333,6 @@ func (svd SigVerificationDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simul } txData := adaptableTx.GetSigningTxData() err := authsigning.VerifySignature(ctx, pubKey, signerData, sig.Data, svd.signModeHandler, txData) - if err != nil { var errMsg string if OnlyLegacyAminoSigners(sig.Data) { diff --git a/x/auth/ante/validator_tx_fee.go b/x/auth/ante/validator_tx_fee.go index 628c1e2fdae5..428e9211ce1d 100644 --- a/x/auth/ante/validator_tx_fee.go +++ b/x/auth/ante/validator_tx_fee.go @@ -3,18 +3,17 @@ package ante import ( "math" - "github.com/cosmos/cosmos-sdk/x/auth/types" - errorsmod "cosmossdk.io/errors" sdkmath "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/cosmos/cosmos-sdk/x/auth/types" ) // checkTxFeeWithValidatorMinGasPrices implements the default fee logic, where the minimum price per // unit of gas is fixed and set by each validator, can the tx priority is computed from the gas price. -func checkTxFeeWithValidatorMinGasPrices(ctx sdk.Context, tx sdk.Tx, params types.Params) (sdk.Coins, int64, error) { +func checkTxFeeWithValidatorMinGasPrices(_ sdk.Context, _ sdk.Tx, params types.Params) (sdk.Coins, int64, error) { amount, ok := sdkmath.NewIntFromString(params.GetTxFees()) if !ok { return nil, 0, errorsmod.Wrap(sdkerrors.ErrInvalidTxFees, "must provide correct txFees") diff --git a/x/auth/client/cli/query.go b/x/auth/client/cli/query.go index 8d3ee8e793db..4eae1f730f6d 100644 --- a/x/auth/client/cli/query.go +++ b/x/auth/client/cli/query.go @@ -44,7 +44,7 @@ for. Each module documents its respective events under 'xx_events.md'. "$ %s query txs --query \"message.sender='cosmos1...' AND message.action='withdraw_delegator_reward' AND tx.height > 7\" --page 1 --limit 30", version.AppName, ), - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { clientCtx, err := client.GetClientQueryContext(cmd) if err != nil { return err diff --git a/x/auth/client/cli/tx_multisign.go b/x/auth/client/cli/tx_multisign.go index b99d601f2a5d..fde6c168ae12 100644 --- a/x/auth/client/cli/tx_multisign.go +++ b/x/auth/client/cli/tx_multisign.go @@ -71,9 +71,9 @@ The SIGN_MODE_DIRECT sign mode is not supported.' return cmd } +//nolint:revive,govet func makeMultiSignCmd() func(cmd *cobra.Command, args []string) (err error) { return func(cmd *cobra.Command, args []string) (err error) { - // HV2: multisig disabled in Heimdall return fmt.Errorf("multi-sign is currently not supported in heimdall") @@ -83,7 +83,7 @@ func makeMultiSignCmd() func(cmd *cobra.Command, args []string) (err error) { } parsedTx, err := authclient.ReadTxFromFile(clientCtx, args[0]) if err != nil { - return + return err } txFactory, err := tx.NewFactoryCLI(clientCtx, cmd.Flags()) @@ -246,9 +246,9 @@ The SIGN_MODE_DIRECT sign mode is not supported.' return cmd } +//nolint:revive,govet func makeBatchMultisignCmd() func(cmd *cobra.Command, args []string) error { return func(cmd *cobra.Command, args []string) (err error) { - // HV2: multisig disabled in Heimdall return fmt.Errorf("multi-sign is currently not supported in heimdall") diff --git a/x/auth/client/cli/tx_sign.go b/x/auth/client/cli/tx_sign.go index 5c2f62635100..81af8db678db 100644 --- a/x/auth/client/cli/tx_sign.go +++ b/x/auth/client/cli/tx_sign.go @@ -63,6 +63,7 @@ overwritten by the default flag values. return cmd } +//nolint:staticcheck func makeSignBatchCmd() func(cmd *cobra.Command, args []string) error { return func(cmd *cobra.Command, args []string) error { clientCtx, err := client.GetClientTxContext(cmd) @@ -76,6 +77,7 @@ func makeSignBatchCmd() func(cmd *cobra.Command, args []string) error { txCfg := clientCtx.TxConfig printSignatureOnly, _ := cmd.Flags().GetBool(flagSigOnly) + //nolint:ineffassign ms, err := cmd.Flags().GetString(flagMultisig) if err != nil { return err @@ -383,6 +385,7 @@ func makeSignCmd() func(cmd *cobra.Command, args []string) error { } } +//nolint:ineffassign,staticcheck func signTx(cmd *cobra.Command, clientCtx client.Context, txF tx.Factory, newTx sdk.Tx) error { f := cmd.Flags() txCfg := clientCtx.TxConfig diff --git a/x/auth/codec/hex_codec.go b/x/auth/codec/hex_codec.go index e725997f40a3..facdf38c8a81 100644 --- a/x/auth/codec/hex_codec.go +++ b/x/auth/codec/hex_codec.go @@ -8,11 +8,11 @@ import ( "cosmossdk.io/core/address" errorsmod "cosmossdk.io/errors" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -type hexCodec struct { -} +type hexCodec struct{} var _ address.Codec = &hexCodec{} diff --git a/x/auth/keeper/grpc_query.go b/x/auth/keeper/grpc_query.go index 8b2c324deb5f..9b4168142405 100644 --- a/x/auth/keeper/grpc_query.go +++ b/x/auth/keeper/grpc_query.go @@ -78,12 +78,12 @@ func (s queryServer) Account(ctx context.Context, req *types.QueryAccountRequest return nil, status.Errorf(codes.NotFound, "account %s not found", req.Address) } - any, err := codectypes.NewAnyWithValue(account) + a, err := codectypes.NewAnyWithValue(account) if err != nil { - return nil, status.Errorf(codes.Internal, err.Error()) + return nil, status.Errorf(codes.Internal, "%s", err.Error()) } - return &types.QueryAccountResponse{Account: any}, nil + return &types.QueryAccountResponse{Account: a}, nil } // Params returns parameters of auth module @@ -119,11 +119,11 @@ func (s queryServer) ModuleAccounts(c context.Context, req *types.QueryModuleAcc if account == nil { return nil, status.Errorf(codes.NotFound, "account %s not found", moduleName) } - any, err := codectypes.NewAnyWithValue(account) + a, err := codectypes.NewAnyWithValue(account) if err != nil { - return nil, status.Errorf(codes.Internal, err.Error()) + return nil, status.Errorf(codes.Internal, "%s", err.Error()) } - modAccounts = append(modAccounts, any) + modAccounts = append(modAccounts, a) } return &types.QueryModuleAccountsResponse{Accounts: modAccounts}, nil @@ -146,16 +146,16 @@ func (s queryServer) ModuleAccountByName(c context.Context, req *types.QueryModu if account == nil { return nil, status.Errorf(codes.NotFound, "account %s not found", moduleName) } - any, err := codectypes.NewAnyWithValue(account) + a, err := codectypes.NewAnyWithValue(account) if err != nil { - return nil, status.Errorf(codes.Internal, err.Error()) + return nil, status.Errorf(codes.Internal, "%s", err.Error()) } - return &types.QueryModuleAccountByNameResponse{Account: any}, nil + return &types.QueryModuleAccountByNameResponse{Account: a}, nil } // AddressBytesToString converts an address from bytes to string -func (s queryServer) AddressBytesToString(ctx context.Context, req *types.AddressBytesToStringRequest) (*types.AddressBytesToStringResponse, error) { +func (s queryServer) AddressBytesToString(_ context.Context, req *types.AddressBytesToStringRequest) (*types.AddressBytesToStringResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "empty request") } @@ -173,7 +173,7 @@ func (s queryServer) AddressBytesToString(ctx context.Context, req *types.Addres } // AddressStringToBytes converts an address from string to bytes -func (s queryServer) AddressStringToBytes(ctx context.Context, req *types.AddressStringToBytesRequest) (*types.AddressStringToBytesResponse, error) { +func (s queryServer) AddressStringToBytes(_ context.Context, req *types.AddressStringToBytesRequest) (*types.AddressStringToBytesResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "empty request") } @@ -216,7 +216,7 @@ func (s queryServer) AccountInfo(ctx context.Context, req *types.QueryAccountInf if pubKey != nil { pkAny, err = codectypes.NewAnyWithValue(account.GetPubKey()) if err != nil { - return nil, status.Errorf(codes.Internal, err.Error()) + return nil, status.Errorf(codes.Internal, "%s", err.Error()) } } diff --git a/x/auth/module.go b/x/auth/module.go index 897ab6f4e023..f4d9de3f2223 100644 --- a/x/auth/module.go +++ b/x/auth/module.go @@ -62,7 +62,7 @@ func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { } // ValidateGenesis performs genesis state validation for the auth module. -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { +func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error { var data types.GenesisState if err := cdc.UnmarshalJSON(bz, &data); err != nil { return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) @@ -101,7 +101,7 @@ func (am AppModule) IsOnePerModuleType() {} func (am AppModule) IsAppModule() {} // NewAppModule creates a new AppModule object -func NewAppModule(cdc codec.Codec, accountKeeper keeper.AccountKeeper, randGenAccountsFn types.RandomGenesisAccountsFn, ss exported.Subspace) AppModule { +func NewAppModule(_ codec.Codec, accountKeeper keeper.AccountKeeper, randGenAccountsFn types.RandomGenesisAccountsFn, ss exported.Subspace) AppModule { return AppModule{ AppModuleBasic: AppModuleBasic{ac: accountKeeper.AddressCodec()}, accountKeeper: accountKeeper, @@ -160,7 +160,7 @@ func (am AppModule) GenerateGenesisState(simState *module.SimulationState) { } // ProposalMsgs returns msgs used for governance proposals for simulations. -func (AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg { +func (AppModule) ProposalMsgs(_ module.SimulationState) []simtypes.WeightedProposalMsg { return simulation.ProposalMsgs() } diff --git a/x/auth/signing/verify.go b/x/auth/signing/verify.go index b97f3c4f1f1c..34176e705d73 100644 --- a/x/auth/signing/verify.go +++ b/x/auth/signing/verify.go @@ -5,11 +5,12 @@ import ( "encoding/hex" "fmt" - signingv1beta1 "cosmossdk.io/api/cosmos/tx/signing/v1beta1" - txsigning "cosmossdk.io/x/tx/signing" "github.com/ethereum/go-ethereum/crypto" ethCrypto "github.com/ethereum/go-ethereum/crypto/secp256k1" + signingv1beta1 "cosmossdk.io/api/cosmos/tx/signing/v1beta1" + txsigning "cosmossdk.io/x/tx/signing" + cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" "github.com/cosmos/cosmos-sdk/crypto/types/multisig" "github.com/cosmos/cosmos-sdk/types/tx/signing" @@ -62,6 +63,8 @@ func internalSignModeToAPI(mode signing.SignMode) (signingv1beta1.SignMode, erro // VerifySignature verifies a transaction signature contained in SignatureData abstracting over different signing // modes. It differs from VerifySignature in that it uses the new txsigning.TxData interface in x/tx. +// +//nolint:govet func VerifySignature(ctx context.Context, pubKey cryptotypes.PubKey, signerData txsigning.SignerData, signatureData signing.SignatureData, handler *txsigning.HandlerMap, txData txsigning.TxData) error { switch data := signatureData.(type) { case *signing.SingleSignatureData: @@ -101,7 +104,7 @@ func VerifySignature(ctx context.Context, pubKey cryptotypes.PubKey, signerData } // RecoverPubKey builds a signature for given a signed msg. -func RecoverPubKey(msg []byte, sig []byte) ([]byte, error) { +func RecoverPubKey(msg, sig []byte) ([]byte, error) { data := crypto.Keccak256(msg) - return ethCrypto.RecoverPubkey(data, sig[:]) + return ethCrypto.RecoverPubkey(data, sig) } diff --git a/x/auth/tx/query.go b/x/auth/tx/query.go index 9733f7f8c156..6f3ce7f1c8ec 100644 --- a/x/auth/tx/query.go +++ b/x/auth/tx/query.go @@ -138,8 +138,8 @@ func mkTxResult(txConfig client.TxConfig, resTx *coretypes.ResultTx, resBlock *c if !ok { return nil, fmt.Errorf("expecting a type implementing intoAny, got: %T", txb) } - any := p.AsAny() - return sdk.NewResponseResultTx(resTx, any, resBlock.Block.Time.Format(time.RFC3339)), nil + a := p.AsAny() + return sdk.NewResponseResultTx(resTx, a, resBlock.Block.Time.Format(time.RFC3339)), nil } // Deprecated: this interface is used only internally for scenario we are diff --git a/x/auth/tx/service.go b/x/auth/tx/service.go index a96ac8cae0b4..4dccf6a67cb7 100644 --- a/x/auth/tx/service.go +++ b/x/auth/tx/service.go @@ -43,7 +43,7 @@ func NewTxServer(clientCtx client.Context, simulate baseAppSimulateFn, interface var _ txtypes.ServiceServer = txServer{} // GetTxsEvent implements the ServiceServer.TxsByEvents RPC method. -func (s txServer) GetTxsEvent(ctx context.Context, req *txtypes.GetTxsEventRequest) (*txtypes.GetTxsEventResponse, error) { +func (s txServer) GetTxsEvent(_ context.Context, req *txtypes.GetTxsEventRequest) (*txtypes.GetTxsEventResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be nil") } @@ -73,7 +73,7 @@ func (s txServer) GetTxsEvent(ctx context.Context, req *txtypes.GetTxsEventReque } // Simulate implements the ServiceServer.Simulate RPC method. -func (s txServer) Simulate(ctx context.Context, req *txtypes.SimulateRequest) (*txtypes.SimulateResponse, error) { +func (s txServer) Simulate(_ context.Context, req *txtypes.SimulateRequest) (*txtypes.SimulateResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid empty tx") } @@ -107,7 +107,7 @@ func (s txServer) Simulate(ctx context.Context, req *txtypes.SimulateRequest) (* } // GetTx implements the ServiceServer.GetTx RPC method. -func (s txServer) GetTx(ctx context.Context, req *txtypes.GetTxRequest) (*txtypes.GetTxResponse, error) { +func (s txServer) GetTx(_ context.Context, req *txtypes.GetTxRequest) (*txtypes.GetTxResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "request cannot be nil") } @@ -222,7 +222,7 @@ func (s txServer) BroadcastTx(ctx context.Context, req *txtypes.BroadcastTxReque } // TxEncode implements the ServiceServer.TxEncode RPC method. -func (s txServer) TxEncode(ctx context.Context, req *txtypes.TxEncodeRequest) (*txtypes.TxEncodeResponse, error) { +func (s txServer) TxEncode(_ context.Context, req *txtypes.TxEncodeRequest) (*txtypes.TxEncodeResponse, error) { if req.Tx == nil { return nil, status.Error(codes.InvalidArgument, "invalid empty tx") } @@ -240,7 +240,7 @@ func (s txServer) TxEncode(ctx context.Context, req *txtypes.TxEncodeRequest) (* } // TxEncodeAmino implements the ServiceServer.TxEncodeAmino RPC method. -func (s txServer) TxEncodeAmino(ctx context.Context, req *txtypes.TxEncodeAminoRequest) (*txtypes.TxEncodeAminoResponse, error) { +func (s txServer) TxEncodeAmino(_ context.Context, req *txtypes.TxEncodeAminoRequest) (*txtypes.TxEncodeAminoResponse, error) { if req.AminoJson == "" { return nil, status.Error(codes.InvalidArgument, "invalid empty tx json") } @@ -262,7 +262,7 @@ func (s txServer) TxEncodeAmino(ctx context.Context, req *txtypes.TxEncodeAminoR } // TxDecode implements the ServiceServer.TxDecode RPC method. -func (s txServer) TxDecode(ctx context.Context, req *txtypes.TxDecodeRequest) (*txtypes.TxDecodeResponse, error) { +func (s txServer) TxDecode(_ context.Context, req *txtypes.TxDecodeRequest) (*txtypes.TxDecodeResponse, error) { if req.TxBytes == nil { return nil, status.Error(codes.InvalidArgument, "invalid empty tx bytes") } @@ -283,7 +283,7 @@ func (s txServer) TxDecode(ctx context.Context, req *txtypes.TxDecodeRequest) (* } // TxDecodeAmino implements the ServiceServer.TxDecodeAmino RPC method. -func (s txServer) TxDecodeAmino(ctx context.Context, req *txtypes.TxDecodeAminoRequest) (*txtypes.TxDecodeAminoResponse, error) { +func (s txServer) TxDecodeAmino(_ context.Context, req *txtypes.TxDecodeAminoRequest) (*txtypes.TxDecodeAminoResponse, error) { if req.AminoBinary == nil { return nil, status.Error(codes.InvalidArgument, "invalid empty tx bytes") } diff --git a/x/auth/tx/sigs.go b/x/auth/tx/sigs.go index 7d4716acec75..ce793f3f6df8 100644 --- a/x/auth/tx/sigs.go +++ b/x/auth/tx/sigs.go @@ -110,13 +110,13 @@ func (g config) MarshalSignatureJSON(sigs []signing.SignatureV2) ([]byte, error) for i, sig := range sigs { descData := signing.SignatureDataToProto(sig.Data) - any, err := codectypes.NewAnyWithValue(sig.PubKey) + a, err := codectypes.NewAnyWithValue(sig.PubKey) if err != nil { return nil, err } descs[i] = &signing.SignatureDescriptor{ - PublicKey: any, + PublicKey: a, Data: descData, Sequence: sig.Sequence, } diff --git a/x/auth/tx/textual.go b/x/auth/tx/textual.go index 028248d61958..107c40b15cf2 100644 --- a/x/auth/tx/textual.go +++ b/x/auth/tx/textual.go @@ -38,7 +38,7 @@ func (signModeTextualHandler) Modes() []signingtypes.SignMode { } // GetSignBytes implements SignModeHandler.GetSignBytes -func (h signModeTextualHandler) GetSignBytes(mode signingtypes.SignMode, data signing.SignerData, tx sdk.Tx) ([]byte, error) { +func (h signModeTextualHandler) GetSignBytes(_ signingtypes.SignMode, _ signing.SignerData, _ sdk.Tx) ([]byte, error) { panic("SIGN_MODE_TEXTUAL needs GetSignBytesWithContext") } diff --git a/x/auth/types/account.go b/x/auth/types/account.go index d39698423b38..ba41d57e6394 100644 --- a/x/auth/types/account.go +++ b/x/auth/types/account.go @@ -5,7 +5,6 @@ import ( "encoding/json" "errors" "fmt" - "github.com/cosmos/cosmos-sdk/types/address" "strings" "github.com/cometbft/cometbft/crypto" @@ -13,6 +12,7 @@ import ( codectypes "github.com/cosmos/cosmos-sdk/codec/types" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/address" ) var ( @@ -89,9 +89,9 @@ func (acc *BaseAccount) SetPubKey(pubKey cryptotypes.PubKey) error { acc.PubKey = nil return nil } - any, err := codectypes.NewAnyWithValue(pubKey) + a, err := codectypes.NewAnyWithValue(pubKey) if err == nil { - acc.PubKey = any + acc.PubKey = a } return err } @@ -211,7 +211,7 @@ func (ma ModuleAccount) GetPermissions() []string { } // SetPubKey - Implements AccountI -func (ma ModuleAccount) SetPubKey(pubKey cryptotypes.PubKey) error { +func (ma ModuleAccount) SetPubKey(_ cryptotypes.PubKey) error { return fmt.Errorf("not supported for module accounts") } diff --git a/x/auth/types/genesis.go b/x/auth/types/genesis.go index b3a66869da83..ac69283268b9 100644 --- a/x/auth/types/genesis.go +++ b/x/auth/types/genesis.go @@ -170,11 +170,11 @@ func PackAccounts(accounts GenesisAccounts) ([]*types.Any, error) { if !ok { return nil, fmt.Errorf("cannot proto marshal %T", acc) } - any, err := types.NewAnyWithValue(msg) + a, err := types.NewAnyWithValue(msg) if err != nil { return nil, err } - accountsAny[i] = any + accountsAny[i] = a } return accountsAny, nil diff --git a/x/auth/vesting/module.go b/x/auth/vesting/module.go index 139efb1af0de..35661b96cd99 100644 --- a/x/auth/vesting/module.go +++ b/x/auth/vesting/module.go @@ -59,7 +59,7 @@ func (AppModuleBasic) DefaultGenesis(_ codec.JSONCodec) json.RawMessage { } // ValidateGenesis performs genesis state validation. Currently, this is a no-op. -func (AppModuleBasic) ValidateGenesis(_ codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error { +func (AppModuleBasic) ValidateGenesis(_ codec.JSONCodec, _ client.TxEncodingConfig, _ json.RawMessage) error { return nil } diff --git a/x/auth/vesting/types/period.go b/x/auth/vesting/types/period.go index 6bf7bffcceeb..9bb9356ee216 100644 --- a/x/auth/vesting/types/period.go +++ b/x/auth/vesting/types/period.go @@ -27,11 +27,11 @@ func (p Periods) TotalLength() int64 { // TotalDuration returns the total duration of the period func (p Periods) TotalDuration() time.Duration { - len := p.TotalLength() - return time.Duration(len) * time.Second + l := p.TotalLength() + return time.Duration(l) * time.Second } -// TotalDuration returns the sum of coins for the period +// TotalAmount returns the sum of coins for the period func (p Periods) TotalAmount() sdk.Coins { total := sdk.Coins{} for _, period := range p { diff --git a/x/auth/vesting/types/vesting_account.go b/x/auth/vesting/types/vesting_account.go index 868dc49588e7..1577c3957e27 100644 --- a/x/auth/vesting/types/vesting_account.go +++ b/x/auth/vesting/types/vesting_account.go @@ -495,7 +495,7 @@ func (plva PermanentLockedAccount) LockedCoins(_ time.Time) sdk.Coins { // TrackDelegation tracks a desired delegation amount by setting the appropriate // values for the amount of delegated vesting, delegated free, and reducing the // overall amount of base coins. -func (plva *PermanentLockedAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins) { +func (plva *PermanentLockedAccount) TrackDelegation(_ time.Time, balance, amount sdk.Coins) { plva.BaseVestingAccount.TrackDelegation(balance, plva.OriginalVesting, amount) } diff --git a/x/authz/authorization_grant.go b/x/authz/authorization_grant.go index cb2088316fc0..64b9650d71a7 100644 --- a/x/authz/authorization_grant.go +++ b/x/authz/authorization_grant.go @@ -22,13 +22,13 @@ func NewGrant(blockTime time.Time, a Authorization, expiration *time.Time) (Gran if !ok { return Grant{}, sdkerrors.ErrPackAny.Wrapf("cannot proto marshal %T", a) } - any, err := cdctypes.NewAnyWithValue(msg) + an, err := cdctypes.NewAnyWithValue(msg) if err != nil { return Grant{}, err } return Grant{ Expiration: expiration, - Authorization: any, + Authorization: an, }, nil } diff --git a/x/authz/generic_authorization.go b/x/authz/generic_authorization.go index a7c790e02bf1..c6cfc71b1e22 100644 --- a/x/authz/generic_authorization.go +++ b/x/authz/generic_authorization.go @@ -22,7 +22,7 @@ func (a GenericAuthorization) MsgTypeURL() string { } // Accept implements Authorization.Accept. -func (a GenericAuthorization) Accept(ctx context.Context, msg sdk.Msg) (AcceptResponse, error) { +func (a GenericAuthorization) Accept(_ context.Context, _ sdk.Msg) (AcceptResponse, error) { return AcceptResponse{Accept: true}, nil } diff --git a/x/authz/keeper/grpc_query.go b/x/authz/keeper/grpc_query.go index de4cd060d026..d8ad8f54be33 100644 --- a/x/authz/keeper/grpc_query.go +++ b/x/authz/keeper/grpc_query.go @@ -48,7 +48,7 @@ func (k Keeper) Grants(ctx context.Context, req *authz.QueryGrantsRequest) (*aut authorizationAny, err := codectypes.NewAnyWithValue(authorization) if err != nil { - return nil, status.Errorf(codes.Internal, err.Error()) + return nil, status.Errorf(codes.Internal, "%s", err.Error()) } return &authz.QueryGrantsResponse{ Grants: []*authz.Grant{{ @@ -62,7 +62,7 @@ func (k Keeper) Grants(ctx context.Context, req *authz.QueryGrantsRequest) (*aut key := grantStoreKey(grantee, granter, "") grantsStore := prefix.NewStore(store, key) - authorizations, pageRes, err := query.GenericFilteredPaginate(k.cdc, grantsStore, req.Pagination, func(key []byte, auth *authz.Grant) (*authz.Grant, error) { + authorizations, pageRes, err := query.GenericFilteredPaginate(k.cdc, grantsStore, req.Pagination, func(_ []byte, auth *authz.Grant) (*authz.Grant, error) { auth1, err := auth.GetAuthorization() if err != nil { return nil, err @@ -70,7 +70,7 @@ func (k Keeper) Grants(ctx context.Context, req *authz.QueryGrantsRequest) (*aut authorizationAny, err := codectypes.NewAnyWithValue(auth1) if err != nil { - return nil, status.Errorf(codes.Internal, err.Error()) + return nil, status.Errorf(codes.Internal, "%s", err.Error()) } return &authz.Grant{ Authorization: authorizationAny, @@ -109,16 +109,16 @@ func (k Keeper) GranterGrants(ctx context.Context, req *authz.QueryGranterGrants return nil, err } - any, err := codectypes.NewAnyWithValue(auth1) + an, err := codectypes.NewAnyWithValue(auth1) if err != nil { - return nil, status.Errorf(codes.Internal, err.Error()) + return nil, status.Errorf(codes.Internal, "%s", err.Error()) } grantee := firstAddressFromGrantStoreKey(key) return &authz.GrantAuthorization{ Granter: req.Granter, Grantee: grantee.String(), - Authorization: any, + Authorization: an, Expiration: auth.Expiration, }, nil }, func() *authz.Grant { @@ -160,7 +160,7 @@ func (k Keeper) GranteeGrants(ctx context.Context, req *authz.QueryGranteeGrants authorizationAny, err := codectypes.NewAnyWithValue(auth1) if err != nil { - return nil, status.Errorf(codes.Internal, err.Error()) + return nil, status.Errorf(codes.Internal, "%s", err.Error()) } return &authz.GrantAuthorization{ diff --git a/x/authz/keeper/keeper.go b/x/authz/keeper/keeper.go index 974c18000e42..ff4ea22c7142 100644 --- a/x/authz/keeper/keeper.go +++ b/x/authz/keeper/keeper.go @@ -88,12 +88,12 @@ func (k Keeper) update(ctx context.Context, grantee, granter sdk.AccAddress, upd return sdkerrors.ErrPackAny.Wrapf("cannot proto marshal %T", updated) } - any, err := codectypes.NewAnyWithValue(msg) + a, err := codectypes.NewAnyWithValue(msg) if err != nil { return err } - grant.Authorization = any + grant.Authorization = a store := k.storeService.OpenKVStore(ctx) store.Set(skey, k.cdc.MustMarshal(&grant)) diff --git a/x/authz/module/module.go b/x/authz/module/module.go index 3c80d13c1420..f2bbe0108260 100644 --- a/x/authz/module/module.go +++ b/x/authz/module/module.go @@ -78,7 +78,7 @@ func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { } // ValidateGenesis performs genesis state validation for the authz module. -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config sdkclient.TxEncodingConfig, bz json.RawMessage) error { +func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ sdkclient.TxEncodingConfig, bz json.RawMessage) error { var data authz.GenesisState if err := cdc.UnmarshalJSON(bz, &data); err != nil { return errors.Wrapf(err, "failed to unmarshal %s genesis state", authz.ModuleName) diff --git a/x/authz/msgs.go b/x/authz/msgs.go index 1721c6c5347c..5fe5c74b15ca 100644 --- a/x/authz/msgs.go +++ b/x/authz/msgs.go @@ -44,11 +44,11 @@ func (msg *MsgGrant) SetAuthorization(a Authorization) error { if !ok { return sdkerrors.ErrPackAny.Wrapf("can't proto marshal %T", m) } - any, err := cdctypes.NewAnyWithValue(m) + an, err := cdctypes.NewAnyWithValue(m) if err != nil { return err } - msg.Grant.Authorization = any + msg.Grant.Authorization = an return nil } @@ -83,12 +83,12 @@ func NewMsgRevoke(granter, grantee sdk.AccAddress, msgTypeURL string) MsgRevoke func NewMsgExec(grantee sdk.AccAddress, msgs []sdk.Msg) MsgExec { msgsAny := make([]*cdctypes.Any, len(msgs)) for i, msg := range msgs { - any, err := cdctypes.NewAnyWithValue(msg) + an, err := cdctypes.NewAnyWithValue(msg) if err != nil { panic(err) } - msgsAny[i] = any + msgsAny[i] = an } return MsgExec{ diff --git a/x/authz/simulation/genesis.go b/x/authz/simulation/genesis.go index 8dfaf7ed1813..4d4010b3bbe5 100644 --- a/x/authz/simulation/genesis.go +++ b/x/authz/simulation/genesis.go @@ -47,12 +47,12 @@ func generateRandomGrant(r *rand.Rand) *codectypes.Any { } func newAnyAuthorization(a authz.Authorization) *codectypes.Any { - any, err := codectypes.NewAnyWithValue(a) + an, err := codectypes.NewAnyWithValue(a) if err != nil { panic(err) } - return any + return an } // RandomizedGenState generates a random GenesisState for authz. diff --git a/x/authz/simulation/operations.go b/x/authz/simulation/operations.go index 80063b2d09fb..517e3261468f 100644 --- a/x/authz/simulation/operations.go +++ b/x/authz/simulation/operations.go @@ -43,7 +43,7 @@ const ( func WeightedOperations( registry cdctypes.InterfaceRegistry, appParams simtypes.AppParams, - cdc codec.JSONCodec, + _ codec.JSONCodec, txGen client.TxConfig, ak authz.AccountKeeper, bk authz.BankKeeper, @@ -87,7 +87,7 @@ func WeightedOperations( // SimulateMsgGrant generates a MsgGrant with random values. func SimulateMsgGrant( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txCfg client.TxConfig, ak authz.AccountKeeper, bk authz.BankKeeper, @@ -160,7 +160,7 @@ func generateRandomAuthorization(r *rand.Rand, spendLimit sdk.Coins) authz.Autho // SimulateMsgRevoke generates a MsgRevoke with random values. func SimulateMsgRevoke( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txCfg client.TxConfig, ak authz.AccountKeeper, bk authz.BankKeeper, @@ -229,7 +229,7 @@ func SimulateMsgRevoke( // SimulateMsgExec generates a MsgExec with random values. func SimulateMsgExec( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txCfg client.TxConfig, ak authz.AccountKeeper, bk authz.BankKeeper, diff --git a/x/authz/testutil/bank_helpers.go b/x/authz/testutil/bank_helpers.go index 24928118343d..278df3f97113 100644 --- a/x/authz/testutil/bank_helpers.go +++ b/x/authz/testutil/bank_helpers.go @@ -8,18 +8,18 @@ import ( var _ bank.MsgServer = MockBankKeeper{} -func (k MockBankKeeper) Send(goCtx context.Context, msg *bank.MsgSend) (*bank.MsgSendResponse, error) { +func (k MockBankKeeper) Send(_ context.Context, _ *bank.MsgSend) (*bank.MsgSendResponse, error) { return nil, nil } -func (k MockBankKeeper) MultiSend(goCtx context.Context, msg *bank.MsgMultiSend) (*bank.MsgMultiSendResponse, error) { +func (k MockBankKeeper) MultiSend(_ context.Context, _ *bank.MsgMultiSend) (*bank.MsgMultiSendResponse, error) { return nil, nil } -func (k MockBankKeeper) UpdateParams(goCtx context.Context, req *bank.MsgUpdateParams) (*bank.MsgUpdateParamsResponse, error) { +func (k MockBankKeeper) UpdateParams(_ context.Context, _ *bank.MsgUpdateParams) (*bank.MsgUpdateParamsResponse, error) { return nil, nil } -func (k MockBankKeeper) SetSendEnabled(goCtx context.Context, req *bank.MsgSetSendEnabled) (*bank.MsgSetSendEnabledResponse, error) { +func (k MockBankKeeper) SetSendEnabled(_ context.Context, _ *bank.MsgSetSendEnabled) (*bank.MsgSetSendEnabledResponse, error) { return nil, nil } diff --git a/x/bank/keeper/grpc_query.go b/x/bank/keeper/grpc_query.go index c172fb24e649..159c05bbf810 100644 --- a/x/bank/keeper/grpc_query.go +++ b/x/bank/keeper/grpc_query.go @@ -255,7 +255,7 @@ func (k BaseKeeper) DenomOwners( ctx, k.Balances.Indexes.Denom, req.Pagination, - func(key collections.Pair[string, sdk.AccAddress], value collections.NoValue) (*types.DenomOwner, error) { + func(key collections.Pair[string, sdk.AccAddress], _ collections.NoValue) (*types.DenomOwner, error) { amt, err := k.Balances.Get(ctx, collections.Join(key.K2(), req.Denom)) if err != nil { return nil, err diff --git a/x/bank/keeper/keeper.go b/x/bank/keeper/keeper.go index c34b1323dba3..a0a17b997aca 100644 --- a/x/bank/keeper/keeper.go +++ b/x/bank/keeper/keeper.go @@ -123,7 +123,7 @@ func (k BaseKeeper) WithMintCoinsRestriction(check types.MintingRestrictionFn) B // vesting and vested coins. The coins are then transferred from the delegator // address to a ModuleAccount address. If any of the delegation amounts are negative, // an error is returned. -func (k BaseKeeper) DelegateCoins(ctx context.Context, delegatorAddr, moduleAccAddr sdk.AccAddress, amt sdk.Coins) error { +func (k BaseKeeper) DelegateCoins(_ context.Context, _, _ sdk.AccAddress, _ sdk.Coins) error { return fmt.Errorf("DelegateCoins not supported in Heimdall since vesting and delegation are disabled") /* moduleAcc := k.ak.GetAccount(ctx, moduleAccAddr) @@ -177,7 +177,7 @@ func (k BaseKeeper) DelegateCoins(ctx context.Context, delegatorAddr, moduleAccA // vesting and vested coins. The coins are then transferred from a ModuleAccount // address to the delegator address. If any of the undelegation amounts are // negative, an error is returned. -func (k BaseKeeper) UndelegateCoins(ctx context.Context, moduleAccAddr, delegatorAddr sdk.AccAddress, amt sdk.Coins) error { +func (k BaseKeeper) UndelegateCoins(_ context.Context, _, _ sdk.AccAddress, _ sdk.Coins) error { return fmt.Errorf("UndelegateCoins not supported in Heimdall since vesting and delegation is disabled") /* moduleAcc := k.ak.GetAccount(ctx, moduleAccAddr) @@ -318,7 +318,7 @@ func (k BaseKeeper) SendCoinsFromAccountToModule( // delegator account to a module account. It will panic if the module account // does not exist or is unauthorized. func (k BaseKeeper) DelegateCoinsFromAccountToModule( - ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins, + _ context.Context, _ sdk.AccAddress, _ string, _ sdk.Coins, ) error { return fmt.Errorf("DelegateCoinsFromAccountToModule not supported in Heimdall since vesting and delegation are disabled") /* @@ -341,7 +341,7 @@ func (k BaseKeeper) DelegateCoinsFromAccountToModule( // them from a module account to the delegator account. It will panic if the // module account does not exist or is unauthorized. func (k BaseKeeper) UndelegateCoinsFromModuleToAccount( - ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins, + _ context.Context, _ string, _ sdk.AccAddress, _ sdk.Coins, ) error { return fmt.Errorf("UndelegateCoinsFromModuleToAccount not supported in Heimdall since vesting and delegation are disabled") /* @@ -444,41 +444,6 @@ func (k BaseKeeper) setSupply(ctx context.Context, coin sdk.Coin) { } } -// trackDelegation tracks the delegation of the given account if it is a vesting account -func (k BaseKeeper) trackDelegation(ctx context.Context, addr sdk.AccAddress, balance, amt sdk.Coins) error { - acc := k.ak.GetAccount(ctx, addr) - if acc == nil { - return errorsmod.Wrapf(sdkerrors.ErrUnknownAddress, "account %s does not exist", addr) - } - - vacc, ok := acc.(types.VestingAccount) - if ok { - // TODO: return error on account.TrackDelegation - sdkCtx := sdk.UnwrapSDKContext(ctx) - vacc.TrackDelegation(sdkCtx.BlockHeader().Time, balance, amt) - k.ak.SetAccount(ctx, acc) - } - - return nil -} - -// trackUndelegation trakcs undelegation of the given account if it is a vesting account -func (k BaseKeeper) trackUndelegation(ctx context.Context, addr sdk.AccAddress, amt sdk.Coins) error { - acc := k.ak.GetAccount(ctx, addr) - if acc == nil { - return errorsmod.Wrapf(sdkerrors.ErrUnknownAddress, "account %s does not exist", addr) - } - - vacc, ok := acc.(types.VestingAccount) - if ok { - // TODO: return error on account.TrackUndelegation - vacc.TrackUndelegation(amt) - k.ak.SetAccount(ctx, acc) - } - - return nil -} - // IterateTotalSupply iterates over the total supply calling the given cb (callback) function // with the balance of each coin. // The iteration stops if the callback returns true. diff --git a/x/bank/module.go b/x/bank/module.go index 6355216141e1..abbb21ed9558 100644 --- a/x/bank/module.go +++ b/x/bank/module.go @@ -177,7 +177,7 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } // ProposalMsgs returns msgs used for governance proposals for simulations. -func (AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg { +func (AppModule) ProposalMsgs(_ module.SimulationState) []simtypes.WeightedProposalMsg { return simulation.ProposalMsgs() } diff --git a/x/bank/simulation/operations.go b/x/bank/simulation/operations.go index 7196cce768b4..ed78c48a5df4 100644 --- a/x/bank/simulation/operations.go +++ b/x/bank/simulation/operations.go @@ -27,7 +27,7 @@ const ( // WeightedOperations returns all the operations from the module with their respective weights func WeightedOperations( appParams simtypes.AppParams, - cdc codec.JSONCodec, + _ codec.JSONCodec, txGen client.TxConfig, ak types.AccountKeeper, bk keeper.Keeper, diff --git a/x/bank/testutil/helpers.go b/x/bank/testutil/helpers.go index 1f79a9c3e230..df0b7b3d557b 100644 --- a/x/bank/testutil/helpers.go +++ b/x/bank/testutil/helpers.go @@ -4,6 +4,7 @@ import ( context "context" topupTypes "github.com/0xPolygon/heimdall-v2/x/topup/types" + sdk "github.com/cosmos/cosmos-sdk/types" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" ) diff --git a/x/circuit/keeper/query.go b/x/circuit/keeper/query.go index a8b39e4d4a82..081c86faec6b 100644 --- a/x/circuit/keeper/query.go +++ b/x/circuit/keeper/query.go @@ -60,7 +60,7 @@ func (qs QueryServer) Accounts(ctx context.Context, req *types.QueryAccountsRequ } // DisabledList returns a list of disabled message urls -func (qs QueryServer) DisabledList(ctx context.Context, req *types.QueryDisabledListRequest) (*types.DisabledListResponse, error) { +func (qs QueryServer) DisabledList(ctx context.Context, _ *types.QueryDisabledListRequest) (*types.DisabledListResponse, error) { // Iterate over disabled list and perform the callback var msgs []string err := qs.keeper.DisableList.Walk(ctx, nil, func(msgUrl string) (bool, error) { diff --git a/x/circuit/module.go b/x/circuit/module.go index 9d8e05e875df..cd34cd5d7440 100644 --- a/x/circuit/module.go +++ b/x/circuit/module.go @@ -45,7 +45,7 @@ type AppModuleBasic struct { func (AppModuleBasic) Name() string { return types.ModuleName } // RegisterLegacyAminoCodec registers the circuit module's types on the LegacyAmino codec. -func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { +func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino) { } // DefaultGenesis returns default genesis state as raw bytes for the circuit diff --git a/x/crisis/module.go b/x/crisis/module.go index 7c753652b8b0..3a484e61ea3c 100644 --- a/x/crisis/module.go +++ b/x/crisis/module.go @@ -66,7 +66,7 @@ func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { } // ValidateGenesis performs genesis state validation for the crisis module. -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { +func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error { var data types.GenesisState if err := cdc.UnmarshalJSON(bz, &data); err != nil { return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) diff --git a/x/distribution/client/cli/tx.go b/x/distribution/client/cli/tx.go index e325631d8540..94b4dd31abe6 100644 --- a/x/distribution/client/cli/tx.go +++ b/x/distribution/client/cli/tx.go @@ -78,7 +78,6 @@ func newSplitAndApply( // NewWithdrawRewardsCmd returns a CLI command handler for creating a MsgWithdrawDelegatorReward transaction. func NewWithdrawRewardsCmd(valCodec, ac address.Codec) *cobra.Command { - cmd := &cobra.Command{ Use: "withdraw-rewards [validator-addr]", Short: "Withdraw rewards from a given delegation address, and optionally withdraw validator commission if the delegation address given is a validator operator", @@ -190,7 +189,6 @@ $ %[1]s tx distribution withdraw-all-rewards --from mykey // NewSetWithdrawAddrCmd returns a CLI command handler for creating a MsgSetWithdrawAddress transaction. func NewSetWithdrawAddrCmd(ac address.Codec) *cobra.Command { - cmd := &cobra.Command{ Use: "set-withdraw-addr [withdraw-addr]", Short: "change the default withdraw address for rewards associated with an address", diff --git a/x/distribution/keeper/delegation.go b/x/distribution/keeper/delegation.go index 2b0e99d390e5..695c718747cd 100644 --- a/x/distribution/keeper/delegation.go +++ b/x/distribution/keeper/delegation.go @@ -11,7 +11,7 @@ import ( stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" ) -// initialize starting info for a new delegation +// initializeDelegation initializes starting info for a new delegation func (k Keeper) initializeDelegation(ctx context.Context, val sdk.ValAddress, del sdk.AccAddress) error { // period has already been incremented - we want to store the period ended by this delegation action valCurrentRewards, err := k.GetValidatorCurrentRewards(ctx, val) @@ -44,7 +44,7 @@ func (k Keeper) initializeDelegation(ctx context.Context, val sdk.ValAddress, de return k.SetDelegatorStartingInfo(ctx, val, del, types.NewDelegatorStartingInfo(previousPeriod, stake, uint64(sdkCtx.BlockHeight()))) } -// calculate the rewards accrued by a delegation between two periods +// calculateDelegationRewardsBetween calculates the rewards accrued by a delegation between two periods func (k Keeper) calculateDelegationRewardsBetween(ctx context.Context, val stakingtypes.ValidatorI, startingPeriod, endingPeriod uint64, stake math.LegacyDec, ) (sdk.DecCoins, error) { @@ -83,7 +83,7 @@ func (k Keeper) calculateDelegationRewardsBetween(ctx context.Context, val staki return rewards, nil } -// calculate the total rewards accrued by a delegation +// CalculateDelegationRewards calculates the total rewards accrued by a delegation func (k Keeper) CalculateDelegationRewards(ctx context.Context, val stakingtypes.ValidatorI, del stakingtypes.DelegationI, endingPeriod uint64) (rewards sdk.DecCoins, err error) { addrCodec := k.authKeeper.AddressCodec() delAddr, err := addrCodec.StringToBytes(del.GetDelegatorAddr()) @@ -99,13 +99,13 @@ func (k Keeper) CalculateDelegationRewards(ctx context.Context, val stakingtypes // fetch starting info for delegation startingInfo, err := k.GetDelegatorStartingInfo(ctx, sdk.ValAddress(valAddr), sdk.AccAddress(delAddr)) if err != nil { - return + return rewards, err } sdkCtx := sdk.UnwrapSDKContext(ctx) if startingInfo.Height == uint64(sdkCtx.BlockHeight()) { // started this height, no rewards yet - return + return rewards, err } startingPeriod := startingInfo.PreviousPeriod @@ -124,7 +124,7 @@ func (k Keeper) CalculateDelegationRewards(ctx context.Context, val stakingtypes endingHeight := uint64(sdkCtx.BlockHeight()) if endingHeight > startingHeight { k.IterateValidatorSlashEventsBetween(ctx, valAddr, startingHeight, endingHeight, - func(height uint64, event types.ValidatorSlashEvent) (stop bool) { + func(_ uint64, event types.ValidatorSlashEvent) (stop bool) { endingPeriod := event.ValidatorPeriod if endingPeriod > startingPeriod { delRewards, err := k.calculateDelegationRewardsBetween(ctx, val, startingPeriod, endingPeriod, stake) diff --git a/x/distribution/keeper/grpc_query.go b/x/distribution/keeper/grpc_query.go index b80ca323f8fc..53720d8b0a84 100644 --- a/x/distribution/keeper/grpc_query.go +++ b/x/distribution/keeper/grpc_query.go @@ -27,7 +27,7 @@ func NewQuerier(keeper Keeper) Querier { } // Params queries params of distribution module -func (k Querier) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { +func (k Querier) Params(ctx context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { params, err := k.Keeper.Params.Get(ctx) if err != nil { return nil, err @@ -116,7 +116,7 @@ func (k Querier) ValidatorOutstandingRewards(ctx context.Context, req *types.Que } if validator == nil { - return nil, errors.Wrapf(types.ErrNoValidatorExists, req.ValidatorAddress) + return nil, errors.Wrapf(types.ErrNoValidatorExists, "%s", req.ValidatorAddress) } rewards, err := k.GetValidatorOutstandingRewards(ctx, valAdr) @@ -148,7 +148,7 @@ func (k Querier) ValidatorCommission(ctx context.Context, req *types.QueryValida } if validator == nil { - return nil, errors.Wrapf(types.ErrNoValidatorExists, req.ValidatorAddress) + return nil, errors.Wrapf(types.ErrNoValidatorExists, "%s", req.ValidatorAddress) } commission, err := k.GetValidatorAccumulatedCommission(ctx, valAdr) if err != nil { @@ -180,7 +180,7 @@ func (k Querier) ValidatorSlashes(ctx context.Context, req *types.QueryValidator store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) slashesStore := prefix.NewStore(store, types.GetValidatorSlashEventPrefix(valAddr)) - events, pageRes, err := query.GenericFilteredPaginate(k.cdc, slashesStore, req.Pagination, func(key []byte, result *types.ValidatorSlashEvent) (*types.ValidatorSlashEvent, error) { + events, pageRes, err := query.GenericFilteredPaginate(k.cdc, slashesStore, req.Pagination, func(_ []byte, result *types.ValidatorSlashEvent) (*types.ValidatorSlashEvent, error) { if result.ValidatorPeriod < req.StartingHeight || result.ValidatorPeriod > req.EndingHeight { return nil, nil } @@ -331,7 +331,6 @@ func (k Querier) DelegatorValidators(ctx context.Context, req *types.QueryDelega return false }, ) - if err != nil { return nil, err } @@ -362,7 +361,7 @@ func (k Querier) DelegatorWithdrawAddress(ctx context.Context, req *types.QueryD } // CommunityPool queries the community pool coins -func (k Querier) CommunityPool(ctx context.Context, req *types.QueryCommunityPoolRequest) (*types.QueryCommunityPoolResponse, error) { +func (k Querier) CommunityPool(ctx context.Context, _ *types.QueryCommunityPoolRequest) (*types.QueryCommunityPoolResponse, error) { pool, err := k.FeePool.Get(ctx) if err != nil { return nil, err diff --git a/x/distribution/keeper/hooks.go b/x/distribution/keeper/hooks.go index 006f35ed89a8..13eaf68413b8 100644 --- a/x/distribution/keeper/hooks.go +++ b/x/distribution/keeper/hooks.go @@ -122,7 +122,7 @@ func (h Hooks) AfterValidatorRemoved(ctx context.Context, _ sdk.ConsAddress, val } // increment period -func (h Hooks) BeforeDelegationCreated(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error { +func (h Hooks) BeforeDelegationCreated(ctx context.Context, _ sdk.AccAddress, valAddr sdk.ValAddress) error { val, err := h.k.stakingKeeper.Validator(ctx, valAddr) if err != nil { return err diff --git a/x/distribution/keeper/invariants.go b/x/distribution/keeper/invariants.go index 060dfd575722..f1bb27879b3a 100644 --- a/x/distribution/keeper/invariants.go +++ b/x/distribution/keeper/invariants.go @@ -127,7 +127,7 @@ func CanWithdrawInvariant(k Keeper) sdk.Invariant { func ReferenceCountInvariant(k Keeper) sdk.Invariant { return func(ctx sdk.Context) (string, bool) { valCount := uint64(0) - err := k.stakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) { + err := k.stakingKeeper.IterateValidators(ctx, func(_ int64, _ stakingtypes.ValidatorI) (stop bool) { valCount++ return false }) diff --git a/x/distribution/keeper/msg_server.go b/x/distribution/keeper/msg_server.go index 1f4c64e0eb3f..17bd4e6422e1 100644 --- a/x/distribution/keeper/msg_server.go +++ b/x/distribution/keeper/msg_server.go @@ -190,7 +190,7 @@ func (k msgServer) DepositValidatorRewardsPool(ctx context.Context, msg *types.M } if validator == nil { - return nil, errors.Wrapf(types.ErrNoValidatorExists, msg.ValidatorAddress) + return nil, errors.Wrapf(types.ErrNoValidatorExists, "%s", msg.ValidatorAddress) } // Allocate tokens from the distribution module to the validator, which are diff --git a/x/distribution/keeper/store.go b/x/distribution/keeper/store.go index 6ba127910018..522720b0c06e 100644 --- a/x/distribution/keeper/store.go +++ b/x/distribution/keeper/store.go @@ -30,7 +30,7 @@ func (k Keeper) SetDelegatorWithdrawAddr(ctx context.Context, delAddr, withdrawA } // delete a delegator withdraw addr -func (k Keeper) DeleteDelegatorWithdrawAddr(ctx context.Context, delAddr, withdrawAddr sdk.AccAddress) error { +func (k Keeper) DeleteDelegatorWithdrawAddr(ctx context.Context, delAddr, _ sdk.AccAddress) error { store := k.storeService.OpenKVStore(ctx) return store.Delete(types.GetDelegatorWithdrawAddrKey(delAddr)) } diff --git a/x/distribution/simulation/operations.go b/x/distribution/simulation/operations.go index 4fff81489e91..7ebccc3e2381 100644 --- a/x/distribution/simulation/operations.go +++ b/x/distribution/simulation/operations.go @@ -34,7 +34,7 @@ const ( // WeightedOperations returns all the operations from the module with their respective weights func WeightedOperations( appParams simtypes.AppParams, - cdc codec.JSONCodec, + _ codec.JSONCodec, txConfig client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, @@ -84,7 +84,7 @@ func WeightedOperations( // SimulateMsgSetWithdrawAddress generates a MsgSetWithdrawAddress with random values. func SimulateMsgSetWithdrawAddress(txConfig client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation { return func( - r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { isWithdrawAddrEnabled, err := k.GetWithdrawAddrEnabled(ctx) if err != nil { @@ -122,9 +122,9 @@ func SimulateMsgSetWithdrawAddress(txConfig client.TxConfig, ak types.AccountKee } // SimulateMsgWithdrawDelegatorReward generates a MsgWithdrawDelegatorReward with random values. -func SimulateMsgWithdrawDelegatorReward(txConfig client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk types.StakingKeeper) simtypes.Operation { +func SimulateMsgWithdrawDelegatorReward(txConfig client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, _ keeper.Keeper, sk types.StakingKeeper) simtypes.Operation { return func( - r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { simAccount, _ := simtypes.RandomAcc(r, accs) delegations, err := sk.GetAllDelegatorDelegations(ctx, simAccount.Address) @@ -175,7 +175,7 @@ func SimulateMsgWithdrawDelegatorReward(txConfig client.TxConfig, ak types.Accou // SimulateMsgWithdrawValidatorCommission generates a MsgWithdrawValidatorCommission with random values. func SimulateMsgWithdrawValidatorCommission(txConfig client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk types.StakingKeeper) simtypes.Operation { return func( - r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { msgType := sdk.MsgTypeURL(&types.MsgWithdrawValidatorCommission{}) @@ -234,9 +234,9 @@ func SimulateMsgWithdrawValidatorCommission(txConfig client.TxConfig, ak types.A // SimulateMsgFundCommunityPool simulates MsgFundCommunityPool execution where // a random account sends a random amount of its funds to the community pool. -func SimulateMsgFundCommunityPool(txConfig client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, sk types.StakingKeeper) simtypes.Operation { +func SimulateMsgFundCommunityPool(txConfig client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, _ keeper.Keeper, _ types.StakingKeeper) simtypes.Operation { return func( - r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { funder, _ := simtypes.RandomAcc(r, accs) diff --git a/x/distribution/testutil/staking_helper.go b/x/distribution/testutil/staking_helper.go index a031774cf652..ef29c8739b3d 100644 --- a/x/distribution/testutil/staking_helper.go +++ b/x/distribution/testutil/staking_helper.go @@ -43,9 +43,9 @@ func CallCreateValidatorHooks(ctx sdk.Context, k keeper.Keeper, addr sdk.AccAddr // The passed validator will get its tokens updated. func SlashValidator( ctx sdk.Context, - consAddr sdk.ConsAddress, + _ sdk.ConsAddress, infractionHeight int64, - power int64, + _ int64, slashFactor math.LegacyDec, validator *stakingtypes.Validator, distrKeeper *keeper.Keeper, diff --git a/x/evidence/keeper/grpc_query.go b/x/evidence/keeper/grpc_query.go index 22d2be5c2458..a24faba23430 100644 --- a/x/evidence/keeper/grpc_query.go +++ b/x/evidence/keeper/grpc_query.go @@ -56,7 +56,7 @@ func (k Querier) Evidence(c context.Context, req *types.QueryEvidenceRequest) (* evidenceAny, err := codectypes.NewAnyWithValue(msg) if err != nil { - return nil, status.Errorf(codes.Internal, err.Error()) + return nil, status.Error(codes.Internal, err.Error()) } return &types.QueryEvidenceResponse{Evidence: evidenceAny}, nil diff --git a/x/evidence/module.go b/x/evidence/module.go index d9bb011ba57c..55a6b3f3c55f 100644 --- a/x/evidence/module.go +++ b/x/evidence/module.go @@ -13,7 +13,7 @@ import ( "cosmossdk.io/core/address" "cosmossdk.io/core/appmodule" "cosmossdk.io/core/comet" - store "cosmossdk.io/core/store" + "cosmossdk.io/core/store" "cosmossdk.io/depinject" eviclient "cosmossdk.io/x/evidence/client" "cosmossdk.io/x/evidence/client/cli" @@ -71,7 +71,7 @@ func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { } // ValidateGenesis performs genesis state validation for the evidence module. -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { +func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error { var gs types.GenesisState if err := cdc.UnmarshalJSON(bz, &gs); err != nil { return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) @@ -173,7 +173,7 @@ func (am AppModule) RegisterStoreDecoder(sdr simtypes.StoreDecoderRegistry) { } // WeightedOperations returns the all the gov module operations with their respective weights. -func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { +func (am AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation { return nil } diff --git a/x/evidence/types/genesis.go b/x/evidence/types/genesis.go index 873f9a075fba..14a1c64917e6 100644 --- a/x/evidence/types/genesis.go +++ b/x/evidence/types/genesis.go @@ -20,11 +20,11 @@ func NewGenesisState(e []exported.Evidence) *GenesisState { if !ok { panic(fmt.Errorf("cannot proto marshal %T", evi)) } - any, err := types.NewAnyWithValue(msg) + a, err := types.NewAnyWithValue(msg) if err != nil { panic(err) } - evidence[i] = any + evidence[i] = a } return &GenesisState{ Evidence: evidence, diff --git a/x/evidence/types/msgs.go b/x/evidence/types/msgs.go index 149253d7036f..28cfcb947c31 100644 --- a/x/evidence/types/msgs.go +++ b/x/evidence/types/msgs.go @@ -23,11 +23,11 @@ func NewMsgSubmitEvidence(s sdk.AccAddress, evi exported.Evidence) (*MsgSubmitEv if !ok { return nil, fmt.Errorf("cannot proto marshal %T", evi) } - any, err := types.NewAnyWithValue(msg) + a, err := types.NewAnyWithValue(msg) if err != nil { return nil, err } - return &MsgSubmitEvidence{Submitter: s.String(), Evidence: any}, nil + return &MsgSubmitEvidence{Submitter: s.String(), Evidence: a}, nil } func (m MsgSubmitEvidence) GetEvidence() exported.Evidence { diff --git a/x/feegrant/filtered_fee.go b/x/feegrant/filtered_fee.go index c6ed2fed40b4..1dded04359d7 100644 --- a/x/feegrant/filtered_fee.go +++ b/x/feegrant/filtered_fee.go @@ -30,19 +30,19 @@ func (a *AllowedMsgAllowance) UnpackInterfaces(unpacker types.AnyUnpacker) error return unpacker.UnpackAny(a.Allowance, &allowance) } -// NewAllowedMsgFeeAllowance creates new filtered fee allowance. +// NewAllowedMsgAllowance creates new filtered fee allowance. func NewAllowedMsgAllowance(allowance FeeAllowanceI, allowedMsgs []string) (*AllowedMsgAllowance, error) { msg, ok := allowance.(proto.Message) if !ok { return nil, errorsmod.Wrapf(sdkerrors.ErrPackAny, "cannot proto marshal %T", msg) } - any, err := types.NewAnyWithValue(msg) + a, err := types.NewAnyWithValue(msg) if err != nil { return nil, err } return &AllowedMsgAllowance{ - Allowance: any, + Allowance: a, AllowedMessages: allowedMsgs, }, nil } diff --git a/x/feegrant/grant.go b/x/feegrant/grant.go index 56029b9ae21c..ecbdd276f668 100644 --- a/x/feegrant/grant.go +++ b/x/feegrant/grant.go @@ -19,7 +19,7 @@ func NewGrant(granter, grantee sdk.AccAddress, feeAllowance FeeAllowanceI) (Gran return Grant{}, errorsmod.Wrapf(sdkerrors.ErrPackAny, "cannot proto marshal %T", feeAllowance) } - any, err := types.NewAnyWithValue(msg) + a, err := types.NewAnyWithValue(msg) if err != nil { return Grant{}, err } @@ -27,7 +27,7 @@ func NewGrant(granter, grantee sdk.AccAddress, feeAllowance FeeAllowanceI) (Gran return Grant{ Granter: granter.String(), Grantee: grantee.String(), - Allowance: any, + Allowance: a, }, nil } diff --git a/x/feegrant/keeper/grpc_query.go b/x/feegrant/keeper/grpc_query.go index 7dde41517154..a86e65c5587f 100644 --- a/x/feegrant/keeper/grpc_query.go +++ b/x/feegrant/keeper/grpc_query.go @@ -39,7 +39,7 @@ func (q Keeper) Allowance(c context.Context, req *feegrant.QueryAllowanceRequest feeAllowance, err := q.GetAllowance(ctx, granterAddr, granteeAddr) if err != nil { - return nil, status.Errorf(codes.Internal, err.Error()) + return nil, status.Error(codes.Internal, err.Error()) } msg, ok := feeAllowance.(proto.Message) @@ -49,7 +49,7 @@ func (q Keeper) Allowance(c context.Context, req *feegrant.QueryAllowanceRequest feeAllowanceAny, err := codectypes.NewAnyWithValue(msg) if err != nil { - return nil, status.Errorf(codes.Internal, err.Error()) + return nil, status.Error(codes.Internal, err.Error()) } return &feegrant.QueryAllowanceResponse{ @@ -79,7 +79,7 @@ func (q Keeper) Allowances(c context.Context, req *feegrant.QueryAllowancesReque store := q.storeService.OpenKVStore(ctx) grantsStore := prefix.NewStore(runtime.KVStoreAdapter(store), feegrant.FeeAllowancePrefixByGrantee(granteeAddr)) - pageRes, err := query.Paginate(grantsStore, req.Pagination, func(key, value []byte) error { + pageRes, err := query.Paginate(grantsStore, req.Pagination, func(_, value []byte) error { var grant feegrant.Grant if err := q.cdc.Unmarshal(value, &grant); err != nil { diff --git a/x/feegrant/module/module.go b/x/feegrant/module/module.go index 5baebe39021a..82636bcdb48c 100644 --- a/x/feegrant/module/module.go +++ b/x/feegrant/module/module.go @@ -81,7 +81,7 @@ func (ab AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { } // ValidateGenesis performs genesis state validation for the feegrant module. -func (ab AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config sdkclient.TxEncodingConfig, bz json.RawMessage) error { +func (ab AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ sdkclient.TxEncodingConfig, bz json.RawMessage) error { var data feegrant.GenesisState if err := cdc.UnmarshalJSON(bz, &data); err != nil { return errors.Wrapf(err, "failed to unmarshal %s genesis state", feegrant.ModuleName) diff --git a/x/feegrant/msgs.go b/x/feegrant/msgs.go index b0c4fcf09d47..6756afaee87f 100644 --- a/x/feegrant/msgs.go +++ b/x/feegrant/msgs.go @@ -21,7 +21,7 @@ func NewMsgGrantAllowance(feeAllowance FeeAllowanceI, granter, grantee sdk.AccAd if !ok { return nil, errorsmod.Wrapf(sdkerrors.ErrPackAny, "cannot proto marshal %T", msg) } - any, err := types.NewAnyWithValue(msg) + a, err := types.NewAnyWithValue(msg) if err != nil { return nil, err } @@ -29,7 +29,7 @@ func NewMsgGrantAllowance(feeAllowance FeeAllowanceI, granter, grantee sdk.AccAd return &MsgGrantAllowance{ Granter: granter.String(), Grantee: grantee.String(), - Allowance: any, + Allowance: a, }, nil } diff --git a/x/feegrant/simulation/operations.go b/x/feegrant/simulation/operations.go index 488ab82e8c98..71e9a409c553 100644 --- a/x/feegrant/simulation/operations.go +++ b/x/feegrant/simulation/operations.go @@ -32,7 +32,7 @@ var ( func WeightedOperations( registry codectypes.InterfaceRegistry, appParams simtypes.AppParams, - cdc codec.JSONCodec, + _ codec.JSONCodec, txConfig client.TxConfig, ak feegrant.AccountKeeper, bk feegrant.BankKeeper, @@ -72,14 +72,14 @@ func WeightedOperations( // SimulateMsgGrantAllowance generates MsgGrantAllowance with random values. func SimulateMsgGrantAllowance( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txConfig client.TxConfig, ak feegrant.AccountKeeper, bk feegrant.BankKeeper, k keeper.Keeper, ) simtypes.Operation { return func( - r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { granter, _ := simtypes.RandomAcc(r, accs) grantee, _ := simtypes.RandomAcc(r, accs) @@ -127,7 +127,7 @@ func SimulateMsgGrantAllowance( // SimulateMsgRevokeAllowance generates a MsgRevokeAllowance with random values. func SimulateMsgRevokeAllowance( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txConfig client.TxConfig, ak feegrant.AccountKeeper, bk feegrant.BankKeeper, @@ -135,12 +135,12 @@ func SimulateMsgRevokeAllowance( ac address.Codec, ) simtypes.Operation { return func( - r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { hasGrant := false var granterAddr sdk.AccAddress var granteeAddr sdk.AccAddress - k.IterateAllFeeAllowances(ctx, func(grant feegrant.Grant) bool { + _ = k.IterateAllFeeAllowances(ctx, func(grant feegrant.Grant) bool { granter, err := ac.StringToBytes(grant.Granter) if err != nil { panic(err) diff --git a/x/genutil/client/cli/init.go b/x/genutil/client/cli/init.go index 0461713a0e16..c7ab4cdccdad 100644 --- a/x/genutil/client/cli/init.go +++ b/x/genutil/client/cli/init.go @@ -93,8 +93,8 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { // Get bip39 mnemonic var mnemonic string - recover, _ := cmd.Flags().GetBool(FlagRecover) - if recover { + rec, _ := cmd.Flags().GetBool(FlagRecover) + if rec { inBuf := bufio.NewReader(cmd.InOrStdin()) value, err := input.GetString("Enter your bip39 mnemonic", inBuf) if err != nil { diff --git a/x/genutil/migrations/v046/migrate.go b/x/genutil/migrations/v046/migrate.go index b6d6774feb41..21e0efdf4376 100644 --- a/x/genutil/migrations/v046/migrate.go +++ b/x/genutil/migrations/v046/migrate.go @@ -24,11 +24,11 @@ func Migrate(appState types.AppMap, clientCtx client.Context) (types.AppMap, err // Migrate relative source genesis application state and marshal it into // the respective key. - new, err := v3gov.MigrateJSON(&old) + n, err := v3gov.MigrateJSON(&old) if err != nil { return nil, err } - appState[v3gov.ModuleName] = clientCtx.Codec.MustMarshalJSON(new) + appState[v3gov.ModuleName] = clientCtx.Codec.MustMarshalJSON(n) } // Migrate x/staking. @@ -42,11 +42,11 @@ func Migrate(appState types.AppMap, clientCtx client.Context) (types.AppMap, err // Migrate relative source genesis application state and marshal it into // the respective key. - new, err := stakingv3.MigrateJSON(old) + n, err := stakingv3.MigrateJSON(old) if err != nil { return nil, err } - appState[stakingv3.ModuleName] = clientCtx.Codec.MustMarshalJSON(&new) + appState[stakingv3.ModuleName] = clientCtx.Codec.MustMarshalJSON(&n) } return appState, nil diff --git a/x/genutil/migrations/v047/migrate.go b/x/genutil/migrations/v047/migrate.go index 359bb1e0439d..c77a452c8439 100644 --- a/x/genutil/migrations/v047/migrate.go +++ b/x/genutil/migrations/v047/migrate.go @@ -35,11 +35,11 @@ func Migrate(appState types.AppMap, clientCtx client.Context) (types.AppMap, err delete(appState, v4gov.ModuleName) // set the x/gov genesis state with new state. - new, err := v4gov.MigrateJSON(&old) + n, err := v4gov.MigrateJSON(&old) if err != nil { return nil, err } - appState[v4gov.ModuleName] = clientCtx.Codec.MustMarshalJSON(new) + appState[v4gov.ModuleName] = clientCtx.Codec.MustMarshalJSON(n) } // Migrate x/auth group policy accounts diff --git a/x/genutil/module.go b/x/genutil/module.go index 5d3337ba24ab..e9d15cbebd90 100644 --- a/x/genutil/module.go +++ b/x/genutil/module.go @@ -44,7 +44,7 @@ func (AppModuleBasic) Name() string { } // RegisterLegacyAminoCodec registers the genutil module's types on the given LegacyAmino codec. -func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {} +func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino) {} // RegisterInterfaces registers the module's interface types func (b AppModuleBasic) RegisterInterfaces(cdctypes.InterfaceRegistry) {} diff --git a/x/gov/client/cli/tx.go b/x/gov/client/cli/tx.go index 311064cc8b19..8e6a8afba3fe 100644 --- a/x/gov/client/cli/tx.go +++ b/x/gov/client/cli/tx.go @@ -213,7 +213,7 @@ $ %s tx gov submit-legacy-proposal --title="Test Proposal" --description="My awe version.AppName, version.AppName, ), ), - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { clientCtx, err := client.GetClientTxContext(cmd) if err != nil { return err @@ -356,6 +356,8 @@ $ %s tx gov vote 1 yes --from mykey } // NewCmdWeightedVote implements creating a new weighted vote command. +// +//nolint:revive,govet func NewCmdWeightedVote() *cobra.Command { cmd := &cobra.Command{ Use: "weighted-vote [proposal-id] [weighted-options]", @@ -372,7 +374,6 @@ $ %s tx gov weighted-vote 1 yes=0.6,no=0.3,abstain=0.05,no_with_veto=0.05 --from ), ), RunE: func(cmd *cobra.Command, args []string) error { - // HV2: disabled in heimdall as we do not support WeighedVoteOptions return fmt.Errorf("weighted-vote are currently not supported in heimdall") diff --git a/x/gov/keeper/deposit.go b/x/gov/keeper/deposit.go index 96ad7cb28a18..58caab9a75c6 100644 --- a/x/gov/keeper/deposit.go +++ b/x/gov/keeper/deposit.go @@ -6,6 +6,8 @@ import ( "math/rand" "strings" + stakeTypes "github.com/0xPolygon/heimdall-v2/x/stake/types" + "cosmossdk.io/collections" "cosmossdk.io/errors" sdkmath "cosmossdk.io/math" @@ -15,8 +17,6 @@ import ( disttypes "github.com/cosmos/cosmos-sdk/x/distribution/types" "github.com/cosmos/cosmos-sdk/x/gov/types" v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" - - stakeTypes "github.com/0xPolygon/heimdall-v2/x/stake/types" ) // SetDeposit sets a Deposit to the gov store @@ -38,6 +38,8 @@ func (keeper Keeper) GetDeposits(ctx context.Context, proposalID uint64) (deposi } // DeleteAndBurnDeposits deletes and burns all the deposits on a specific proposal. +// +//nolint:govet func (keeper Keeper) DeleteAndBurnDeposits(ctx context.Context, proposalID uint64) error { // HV2: no support in heimdall for burn deposits panic(errors.ErrPanic) @@ -379,7 +381,7 @@ func (keeper Keeper) DistributeAndDeleteDeposits(ctx context.Context, proposalID // validateInitialDeposit validates if initial deposit is greater than or equal to the minimum // required at the time of proposal submission. This threshold amount is determined by // the deposit parameters. Returns nil on success, error otherwise. -func (keeper Keeper) validateInitialDeposit(ctx context.Context, params v1.Params, initialDeposit sdk.Coins, expedited bool) error { +func (keeper Keeper) validateInitialDeposit(_ context.Context, params v1.Params, initialDeposit sdk.Coins, expedited bool) error { if !initialDeposit.IsValid() || initialDeposit.IsAnyNegative() { return errors.Wrap(sdkerrors.ErrInvalidCoins, initialDeposit.String()) } @@ -409,7 +411,7 @@ func (keeper Keeper) validateInitialDeposit(ctx context.Context, params v1.Param } // validateDepositDenom validates if the deposit denom is accepted by the governance module. -func (keeper Keeper) validateDepositDenom(ctx context.Context, params v1.Params, depositAmount sdk.Coins) error { +func (keeper Keeper) validateDepositDenom(_ context.Context, params v1.Params, depositAmount sdk.Coins) error { denoms := []string{} acceptedDenoms := make(map[string]bool, len(params.MinDeposit)) for _, coin := range params.MinDeposit { diff --git a/x/gov/keeper/grpc_query.go b/x/gov/keeper/grpc_query.go index b42a114cfb14..94696aac8455 100644 --- a/x/gov/keeper/grpc_query.go +++ b/x/gov/keeper/grpc_query.go @@ -56,7 +56,7 @@ func (q queryServer) Proposal(ctx context.Context, req *v1.QueryProposalRequest) // Proposals implements the Query/Proposals gRPC method func (q queryServer) Proposals(ctx context.Context, req *v1.QueryProposalsRequest) (*v1.QueryProposalsResponse, error) { - filteredProposals, pageRes, err := query.CollectionFilteredPaginate(ctx, q.k.Proposals, req.Pagination, func(key uint64, p v1.Proposal) (include bool, err error) { + filteredProposals, pageRes, err := query.CollectionFilteredPaginate(ctx, q.k.Proposals, req.Pagination, func(_ uint64, p v1.Proposal) (include bool, err error) { matchVoter, matchDepositor, matchStatus := true, true, true // match status (if supplied/valid) diff --git a/x/gov/keeper/invariants.go b/x/gov/keeper/invariants.go index f5374c28dfd6..2b67b048d5c3 100644 --- a/x/gov/keeper/invariants.go +++ b/x/gov/keeper/invariants.go @@ -21,7 +21,7 @@ func ModuleAccountInvariant(keeper *Keeper, bk types.BankKeeper) sdk.Invariant { return func(ctx sdk.Context) (string, bool) { var expectedDeposits sdk.Coins - err := keeper.Deposits.Walk(ctx, nil, func(key collections.Pair[uint64, sdk.AccAddress], value v1.Deposit) (stop bool, err error) { + err := keeper.Deposits.Walk(ctx, nil, func(_ collections.Pair[uint64, sdk.AccAddress], value v1.Deposit) (stop bool, err error) { expectedDeposits = expectedDeposits.Add(value.Amount...) return false, nil }) diff --git a/x/gov/keeper/msg_server.go b/x/gov/keeper/msg_server.go index 587361c5c696..cab6f70b92ec 100644 --- a/x/gov/keeper/msg_server.go +++ b/x/gov/keeper/msg_server.go @@ -193,8 +193,9 @@ func (k msgServer) Vote(goCtx context.Context, msg *v1.MsgVote) (*v1.MsgVoteResp } // VoteWeighted implements the MsgServer.VoteWeighted method. +// +//nolint:revive,govet func (k msgServer) VoteWeighted(goCtx context.Context, msg *v1.MsgVoteWeighted) (*v1.MsgVoteWeightedResponse, error) { - // HV2: disabled in heimdall as we do not support WeighedVoteOptions return nil, errors.Wrap(govtypes.ErrWeightedVoteOptionsNotSupported, "not implemented") @@ -351,8 +352,8 @@ func (k legacyMsgServer) Vote(goCtx context.Context, msg *v1beta1.MsgVote) (*v1b return &v1beta1.MsgVoteResponse{}, nil } +//nolint:revive,govet func (k legacyMsgServer) VoteWeighted(goCtx context.Context, msg *v1beta1.MsgVoteWeighted) (*v1beta1.MsgVoteWeightedResponse, error) { - // HV2: disabled in heimdall as we do not support WeighedVoteOptions return nil, errors.Wrap(govtypes.ErrWeightedVoteOptionsNotSupported, "not implemented") diff --git a/x/gov/keeper/msg_validator.go b/x/gov/keeper/msg_validator.go index da7c666ec7fd..b7228b15c26f 100644 --- a/x/gov/keeper/msg_validator.go +++ b/x/gov/keeper/msg_validator.go @@ -3,26 +3,27 @@ package keeper import ( "fmt" + "github.com/0xPolygon/heimdall-v2/api/heimdallv2/bor" + "github.com/0xPolygon/heimdall-v2/api/heimdallv2/chainmanager" + "github.com/0xPolygon/heimdall-v2/api/heimdallv2/checkpoint" + "github.com/0xPolygon/heimdall-v2/api/heimdallv2/milestone" + borTypes "github.com/0xPolygon/heimdall-v2/x/bor/types" + chainmanagertypes "github.com/0xPolygon/heimdall-v2/x/chainmanager/types" + checkpointTypes "github.com/0xPolygon/heimdall-v2/x/checkpoint/types" + milestoneTypes "github.com/0xPolygon/heimdall-v2/x/milestone/types" + authv1beta1 "cosmossdk.io/api/cosmos/auth/v1beta1" bankv1beta1 "cosmossdk.io/api/cosmos/bank/v1beta1" consensusv1 "cosmossdk.io/api/cosmos/consensus/v1" govv1 "cosmossdk.io/api/cosmos/gov/v1" errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" consensustypes "github.com/cosmos/cosmos-sdk/x/consensus/types" "github.com/cosmos/cosmos-sdk/x/gov/types" v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" - - "github.com/0xPolygon/heimdall-v2/api/heimdallv2/bor" - "github.com/0xPolygon/heimdall-v2/api/heimdallv2/chainmanager" - "github.com/0xPolygon/heimdall-v2/api/heimdallv2/checkpoint" - "github.com/0xPolygon/heimdall-v2/api/heimdallv2/milestone" - borTypes "github.com/0xPolygon/heimdall-v2/x/bor/types" - chainmanagertypes "github.com/0xPolygon/heimdall-v2/x/chainmanager/types" - checkpointTypes "github.com/0xPolygon/heimdall-v2/x/checkpoint/types" - milestoneTypes "github.com/0xPolygon/heimdall-v2/x/milestone/types" ) // ValidateGovMsgType validates the type of the message submitted within a proposal. diff --git a/x/gov/keeper/proposal.go b/x/gov/keeper/proposal.go index a5a67dbe960e..f095e40debcc 100644 --- a/x/gov/keeper/proposal.go +++ b/x/gov/keeper/proposal.go @@ -67,7 +67,7 @@ func (keeper Keeper) SubmitProposal(ctx context.Context, messages []sdk.Msg, met // assert that the governance module account is the only signer of the messages if !bytes.Equal(signers[0], keeper.GetGovernanceAccount(ctx).GetAddress()) { - return v1.Proposal{}, errorsmod.Wrapf(types.ErrInvalidSigner, sdk.AccAddress(signers[0]).String()) + return v1.Proposal{}, errorsmod.Wrapf(types.ErrInvalidSigner, "%s", sdk.AccAddress(signers[0]).String()) } // use the msg service router to see that there is a valid route for that message. @@ -92,7 +92,7 @@ func (keeper Keeper) SubmitProposal(ctx context.Context, messages []sdk.Msg, met cacheCtx, _ := sdkCtx.CacheContext() if _, err := handler(cacheCtx, msg); err != nil { - if errors.Is(types.ErrNoProposalHandlerExists, err) { + if errors.Is(err, types.ErrNoProposalHandlerExists) { return v1.Proposal{}, err } return v1.Proposal{}, errorsmod.Wrap(types.ErrInvalidProposalContent, err.Error()) diff --git a/x/gov/keeper/tally.go b/x/gov/keeper/tally.go index c060f0e04dd0..5d369d9a79b1 100644 --- a/x/gov/keeper/tally.go +++ b/x/gov/keeper/tally.go @@ -3,13 +3,13 @@ package keeper import ( "context" + stakeTypes "github.com/0xPolygon/heimdall-v2/x/stake/types" + "cosmossdk.io/collections" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" - - stakeTypes "github.com/0xPolygon/heimdall-v2/x/stake/types" ) // TODO: Break into several smaller functions for clarity @@ -48,7 +48,7 @@ func (keeper Keeper) Tally(ctx context.Context, proposal v1.Proposal) (passes, b } rng := collections.NewPrefixedPairRange[uint64, sdk.AccAddress](proposal.Id) - err = keeper.Votes.Walk(ctx, rng, func(key collections.Pair[uint64, sdk.AccAddress], vote v1.Vote) (bool, error) { + err = keeper.Votes.Walk(ctx, rng, func(_ collections.Pair[uint64, sdk.AccAddress], vote v1.Vote) (bool, error) { // if validator, just record it in the map voter, err := keeper.authKeeper.AddressCodec().StringToBytes(vote.Voter) if err != nil { @@ -94,7 +94,6 @@ func (keeper Keeper) Tally(ctx context.Context, proposal v1.Proposal) (passes, b */ return false, keeper.Votes.Remove(ctx, collections.Join(vote.ProposalId, sdk.AccAddress(voter))) }) - if err != nil { return false, false, tallyResults, err } diff --git a/x/gov/migrations/v4/store.go b/x/gov/migrations/v4/store.go index b6562a75c741..b1026f1c8f09 100644 --- a/x/gov/migrations/v4/store.go +++ b/x/gov/migrations/v4/store.go @@ -55,7 +55,7 @@ func migrateParams(ctx sdk.Context, store storetypes.KVStore, legacySubspace exp return nil } -func migrateProposalVotingPeriod(ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec) error { +func migrateProposalVotingPeriod(_ sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec) error { propStore := prefix.NewStore(store, v1.ProposalsKeyPrefix) iter := propStore.Iterator(nil, nil) diff --git a/x/gov/module.go b/x/gov/module.go index fb86ca65d07e..81e8ab456ee9 100644 --- a/x/gov/module.go +++ b/x/gov/module.go @@ -81,7 +81,7 @@ func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { } // ValidateGenesis performs genesis state validation for the gov module. -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { +func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error { var data v1.GenesisState if err := cdc.UnmarshalJSON(bz, &data); err != nil { return fmt.Errorf("failed to unmarshal %s genesis state: %w", govtypes.ModuleName, err) @@ -331,12 +331,12 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { // ProposalContents returns all the gov content functions used to // simulate governance proposals. -func (AppModule) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalContent { //nolint:staticcheck // used for legacy testing +func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent { //nolint:staticcheck // used for legacy testing return simulation.ProposalContents() } // ProposalMsgs returns all the gov msgs used to simulate governance proposals. -func (AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg { +func (AppModule) ProposalMsgs(_ module.SimulationState) []simtypes.WeightedProposalMsg { return simulation.ProposalMsgs() } diff --git a/x/gov/simulation/genesis.go b/x/gov/simulation/genesis.go index 160668848462..ec10b1f91e84 100644 --- a/x/gov/simulation/genesis.go +++ b/x/gov/simulation/genesis.go @@ -96,7 +96,7 @@ func GenVeto(r *rand.Rand) sdkmath.LegacyDec { } // GenMinDepositRatio returns randomized DepositMinRatio -func GenMinDepositRatio(r *rand.Rand) sdkmath.LegacyDec { +func GenMinDepositRatio(_ *rand.Rand) sdkmath.LegacyDec { return sdkmath.LegacyMustNewDecFromStr("0.01") } diff --git a/x/gov/simulation/operations.go b/x/gov/simulation/operations.go index 013e89fd5262..46aa4959a68b 100644 --- a/x/gov/simulation/operations.go +++ b/x/gov/simulation/operations.go @@ -87,7 +87,6 @@ func WeightedOperations( // generate the weighted operations for the proposal msgs var wProposalOps simulation.WeightedOperations for _, wMsg := range wMsgs { - wMsg := wMsg // pin variable var weight int appParams.GetOrGenerate(wMsg.AppParamsKey(), &weight, nil, func(_ *rand.Rand) { weight = wMsg.DefaultWeight() }, @@ -105,7 +104,6 @@ func WeightedOperations( // generate the weighted operations for the proposal contents var wLegacyProposalOps simulation.WeightedOperations for _, wContent := range wContents { - wContent := wContent // pin variable var weight int appParams.GetOrGenerate(wContent.AppParamsKey(), &weight, nil, func(_ *rand.Rand) { weight = wContent.DefaultWeight() }, @@ -314,7 +312,7 @@ func SimulateMsgDeposit( ) simtypes.Operation { return func( r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, - accs []simtypes.Account, chainID string, + accs []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { simAccount, _ := simtypes.RandomAcc(r, accs) proposalID, ok := randomProposalID(r, k, ctx, v1.StatusDepositPeriod) @@ -385,7 +383,7 @@ func operationSimulateMsgVote( ) simtypes.Operation { return func( r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, - accs []simtypes.Account, chainID string, + accs []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { if simAccount.Equals(simtypes.Account{}) { simAccount, _ = simtypes.RandomAcc(r, accs) @@ -448,7 +446,7 @@ func operationSimulateMsgVoteWeighted( ) simtypes.Operation { return func( r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, - accs []simtypes.Account, chainID string, + accs []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { if simAccount.Equals(simtypes.Account{}) { simAccount, _ = simtypes.RandomAcc(r, accs) @@ -500,7 +498,7 @@ func SimulateMsgCancelProposal( ) simtypes.Operation { return func( r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, - accs []simtypes.Account, chainID string, + accs []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { simAccount := accs[0] proposal := randomProposal(r, k, ctx) @@ -608,7 +606,7 @@ func randomDeposit( // randomProposal returns a random proposal stored in state func randomProposal(r *rand.Rand, k *keeper.Keeper, ctx sdk.Context) *v1.Proposal { var proposals []*v1.Proposal - err := k.Proposals.Walk(ctx, nil, func(key uint64, value v1.Proposal) (stop bool, err error) { + err := k.Proposals.Walk(ctx, nil, func(_ uint64, value v1.Proposal) (stop bool, err error) { proposals = append(proposals, &value) return false, nil }) diff --git a/x/gov/simulation/proposals.go b/x/gov/simulation/proposals.go index 06c6a1d785e2..ba6d982a2bbe 100644 --- a/x/gov/simulation/proposals.go +++ b/x/gov/simulation/proposals.go @@ -25,7 +25,7 @@ func ProposalMsgs() []simtypes.WeightedProposalMsg { // SimulateTextProposal returns a random text proposal content. // A text proposal is a proposal that contains no msgs. -func SimulateTextProposal(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg { +func SimulateTextProposal(_ *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg { return nil } diff --git a/x/gov/types/expected_keepers.go b/x/gov/types/expected_keepers.go index f5eb8634440d..54e8417f02ef 100644 --- a/x/gov/types/expected_keepers.go +++ b/x/gov/types/expected_keepers.go @@ -3,10 +3,11 @@ package types import ( "context" + stakeTypes "github.com/0xPolygon/heimdall-v2/x/stake/types" + addresscodec "cosmossdk.io/core/address" - sdk "github.com/cosmos/cosmos-sdk/types" - stakeTypes "github.com/0xPolygon/heimdall-v2/x/stake/types" + sdk "github.com/cosmos/cosmos-sdk/types" ) // ParamSubspace defines the expected Subspace interface for parameters (noalias) diff --git a/x/gov/types/v1/content.go b/x/gov/types/v1/content.go index b240d12a5ea6..1b6a7a1a615c 100644 --- a/x/gov/types/v1/content.go +++ b/x/gov/types/v1/content.go @@ -18,12 +18,12 @@ func NewLegacyContent(content v1beta1.Content, authority string) (*MsgExecLegacy return nil, fmt.Errorf("%T does not implement proto.Message", content) } - any, err := codectypes.NewAnyWithValue(msg) + a, err := codectypes.NewAnyWithValue(msg) if err != nil { return nil, err } - return NewMsgExecLegacyContent(any, authority), nil + return NewMsgExecLegacyContent(a, authority), nil } // LegacyContentFromMessage extracts the legacy Content interface from a diff --git a/x/gov/types/v1/genesis.go b/x/gov/types/v1/genesis.go index 71352bb77839..1146e9dca08a 100644 --- a/x/gov/types/v1/genesis.go +++ b/x/gov/types/v1/genesis.go @@ -42,13 +42,13 @@ func ValidateGenesis(data *GenesisState) error { var errGroup errgroup.Group // weed out duplicate proposals - proposalIds := make(map[uint64]struct{}) + proposalIDs := make(map[uint64]struct{}) for _, p := range data.Proposals { - if _, ok := proposalIds[p.Id]; ok { + if _, ok := proposalIDs[p.Id]; ok { return fmt.Errorf("duplicate proposal id: %d", p.Id) } - proposalIds[p.Id] = struct{}{} + proposalIDs[p.Id] = struct{}{} } // weed out duplicate deposits @@ -57,18 +57,18 @@ func ValidateGenesis(data *GenesisState) error { ProposalId uint64 //nolint:revive // staying consistent with main and v0.47 Depositor string } - depositIds := make(map[depositKey]struct{}) + depositIDs := make(map[depositKey]struct{}) for _, d := range data.Deposits { - if _, ok := proposalIds[d.ProposalId]; !ok { + if _, ok := proposalIDs[d.ProposalId]; !ok { return fmt.Errorf("deposit %v has non-existent proposal id: %d", d, d.ProposalId) } dk := depositKey{d.ProposalId, d.Depositor} - if _, ok := depositIds[dk]; ok { + if _, ok := depositIDs[dk]; ok { return fmt.Errorf("duplicate deposit: %v", d) } - depositIds[dk] = struct{}{} + depositIDs[dk] = struct{}{} } return nil @@ -80,18 +80,18 @@ func ValidateGenesis(data *GenesisState) error { ProposalId uint64 //nolint:revive // staying consistent with main and v0.47 Voter string } - voteIds := make(map[voteKey]struct{}) + voteIDs := make(map[voteKey]struct{}) for _, v := range data.Votes { - if _, ok := proposalIds[v.ProposalId]; !ok { + if _, ok := proposalIDs[v.ProposalId]; !ok { return fmt.Errorf("vote %v has non-existent proposal id: %d", v, v.ProposalId) } vk := voteKey{v.ProposalId, v.Voter} - if _, ok := voteIds[vk]; ok { + if _, ok := voteIDs[vk]; ok { return fmt.Errorf("duplicate vote: %v", v) } - voteIds[vk] = struct{}{} + voteIDs[vk] = struct{}{} } return nil diff --git a/x/gov/types/v1/params.go b/x/gov/types/v1/params.go index d79a7a65c279..8a1c4120db03 100644 --- a/x/gov/types/v1/params.go +++ b/x/gov/types/v1/params.go @@ -5,11 +5,10 @@ import ( "math/big" "time" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - sdkmath "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" ) // Default period for deposits & voting diff --git a/x/gov/types/v1beta1/msgs.go b/x/gov/types/v1beta1/msgs.go index 1f8a62019f05..5470e71edbd9 100644 --- a/x/gov/types/v1beta1/msgs.go +++ b/x/gov/types/v1beta1/msgs.go @@ -64,11 +64,11 @@ func (m *MsgSubmitProposal) SetContent(content Content) error { if !ok { return fmt.Errorf("can't proto marshal %T", msg) } - any, err := codectypes.NewAnyWithValue(msg) + a, err := codectypes.NewAnyWithValue(msg) if err != nil { return err } - m.Content = any + m.Content = a return nil } diff --git a/x/gov/types/v1beta1/proposal.go b/x/gov/types/v1beta1/proposal.go index e603ee167608..4b0fabfafd66 100644 --- a/x/gov/types/v1beta1/proposal.go +++ b/x/gov/types/v1beta1/proposal.go @@ -25,13 +25,13 @@ func NewProposal(content Content, id uint64, submitTime, depositEndTime time.Tim return Proposal{}, fmt.Errorf("%T does not implement proto.Message", content) } - any, err := codectypes.NewAnyWithValue(msg) + an, err := codectypes.NewAnyWithValue(msg) if err != nil { return Proposal{}, err } p := Proposal{ - Content: any, + Content: an, ProposalId: id, Status: StatusDepositPeriod, FinalTallyResult: EmptyTallyResult(), diff --git a/x/group/client/cli/tx.go b/x/group/client/cli/tx.go index 59c71073f678..032e57638d68 100644 --- a/x/group/client/cli/tx.go +++ b/x/group/client/cli/tx.go @@ -618,7 +618,7 @@ metadata example: // Since the --from flag is not required on this CLI command, we // ignore it, and just use the 1st proposer in the JSON file. - if prop.Proposers == nil || len(prop.Proposers) == 0 { + if len(prop.Proposers) == 0 { return errors.New("no proposers specified in proposal") } cmd.Flags().Set(flags.FlagFrom, prop.Proposers[0]) diff --git a/x/group/internal/orm/index_test.go b/x/group/internal/orm/index_test.go index a965190b647a..86d9a563904d 100644 --- a/x/group/internal/orm/index_test.go +++ b/x/group/internal/orm/index_test.go @@ -386,12 +386,12 @@ func TestUniqueIndex(t *testing.T) { _, err = it.LoadNext(&loaded) require.Error(t, errors.ErrORMIteratorDone, err) // create with same index key should fail - new := testdata.TableModel{ + n := testdata.TableModel{ Id: 1, Name: "my test", Metadata: []byte("my-metadata"), } - err = myTable.Create(store, &new) + err = myTable.Create(store, &n) require.Error(t, errors.ErrORMUniqueConstraint, err) // and when delete diff --git a/x/group/internal/orm/indexer_test.go b/x/group/internal/orm/indexer_test.go index 0787bfc4abf8..bc5fb7e96c61 100644 --- a/x/group/internal/orm/indexer_test.go +++ b/x/group/internal/orm/indexer_test.go @@ -92,7 +92,7 @@ func TestIndexerOnCreate(t *testing.T) { expErr error }{ "single key": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{uint64(1)}, nil }, expAddFuncCalled: true, @@ -100,7 +100,7 @@ func TestIndexerOnCreate(t *testing.T) { expRowIDs: []RowID{myRowID}, }, "multi key": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{uint64(1), uint64(128)}, nil }, expAddFuncCalled: true, @@ -108,32 +108,32 @@ func TestIndexerOnCreate(t *testing.T) { expRowIDs: []RowID{myRowID, myRowID}, }, "empty key in slice": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{[]byte{}}, nil }, expAddFuncCalled: false, }, "nil key in slice": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{nil}, nil }, expErr: fmt.Errorf("type %T not allowed as key part", nil), expAddFuncCalled: false, }, "empty key": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{}, nil }, expAddFuncCalled: false, }, "nil key": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return nil, nil }, expAddFuncCalled: false, }, "error case": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return nil, stdErrors.New("test") }, expErr: stdErrors.New("test"), @@ -174,13 +174,13 @@ func TestIndexerOnDelete(t *testing.T) { expErr error }{ "single key": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{uint64(1)}, nil }, expDeletedKeys: []RowID{append(EncodeSequence(1), myRowID...)}, }, "multi key": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{uint64(1), uint64(128)}, nil }, expDeletedKeys: []RowID{ @@ -189,28 +189,28 @@ func TestIndexerOnDelete(t *testing.T) { }, }, "empty key": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{}, nil }, }, "nil key": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return nil, nil }, }, "empty key in slice": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{[]byte{}}, nil }, }, "nil key in slice": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{nil}, nil }, expErr: fmt.Errorf("type %T not allowed as key part", nil), }, "error case": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return nil, stdErrors.New("test") }, expErr: stdErrors.New("test"), @@ -258,7 +258,7 @@ func TestIndexerOnUpdate(t *testing.T) { addFunc func(storetypes.KVStore, interface{}, RowID) error }{ "single key - same key, no update": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{uint64(1)}, nil }, }, @@ -275,7 +275,7 @@ func TestIndexerOnUpdate(t *testing.T) { }, }, "multi key - same key, no update": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{uint64(1), uint64(2)}, nil }, }, @@ -294,28 +294,28 @@ func TestIndexerOnUpdate(t *testing.T) { }, }, "empty key": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{}, nil }, }, "nil key": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return nil, nil }, }, "empty key in slice": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{[]byte{}}, nil }, }, "nil key in slice": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{nil}, nil }, expErr: fmt.Errorf("type %T not allowed as key part", nil), }, "error case with new value": { - srcFunc: func(value interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return nil, stdErrors.New("test") }, expErr: stdErrors.New("test"), @@ -504,42 +504,42 @@ func TestPruneEmptyKeys(t *testing.T) { expError error }{ "non empty": { - srcFunc: func(v interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{uint64(0), uint64(1)}, nil }, expResult: []interface{}{uint64(0), uint64(1)}, }, "empty": { - srcFunc: func(v interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{}, nil }, expResult: []interface{}{}, }, "nil": { - srcFunc: func(v interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return nil, nil }, }, "empty in the beginning": { - srcFunc: func(v interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{[]byte{}, uint64(0), uint64(1)}, nil }, expResult: []interface{}{uint64(0), uint64(1)}, }, "empty in the middle": { - srcFunc: func(v interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{uint64(0), []byte{}, uint64(1)}, nil }, expResult: []interface{}{uint64(0), uint64(1)}, }, "empty at the end": { - srcFunc: func(v interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return []interface{}{uint64(0), uint64(1), []byte{}}, nil }, expResult: []interface{}{uint64(0), uint64(1)}, }, "error passed": { - srcFunc: func(v interface{}) ([]interface{}, error) { + srcFunc: func(_ interface{}) ([]interface{}, error) { return nil, stdErrors.New("test") }, expError: stdErrors.New("test"), diff --git a/x/group/internal/orm/iterator.go b/x/group/internal/orm/iterator.go index 6b3927b0949e..8ac547dc6307 100644 --- a/x/group/internal/orm/iterator.go +++ b/x/group/internal/orm/iterator.go @@ -45,9 +45,9 @@ func NewSingleValueIterator(rowID RowID, val []byte) Iterator { }) } -// Iterator that return ErrORMInvalidIterator only. +// NewInvalidIterator that return ErrORMInvalidIterator only. func NewInvalidIterator() Iterator { - return IteratorFunc(func(dest proto.Message) (RowID, error) { + return IteratorFunc(func(_ proto.Message) (RowID, error) { return nil, errors.ErrORMInvalidIterator }) } @@ -61,14 +61,14 @@ type LimitedIterator struct { // LimitIterator returns a new iterator that returns max number of elements. // The parent iterator must not be nil // max can be 0 or any positive number -func LimitIterator(parent Iterator, max int) (*LimitedIterator, error) { - if max < 0 { +func LimitIterator(parent Iterator, m int) (*LimitedIterator, error) { + if m < 0 { return nil, errors.ErrORMInvalidArgument.Wrap("quantity must not be negative") } if parent == nil { return nil, errors.ErrORMInvalidArgument.Wrap("parent iterator must not be nil") } - return &LimitedIterator{remainingCount: max, parentIterator: parent}, nil + return &LimitedIterator{remainingCount: m, parentIterator: parent}, nil } // LoadNext loads the next value in the sequence into the pointer passed as dest and returns the key. If there @@ -298,6 +298,7 @@ func assertDest(dest ModelSlicePtr, destRef, tmpSlice *reflect.Value) (reflect.T protoMarshaler := reflect.TypeOf((*proto.Message)(nil)).Elem() if !elemType.Implements(protoMarshaler) && + //nolint:staticcheck !reflect.PtrTo(elemType).Implements(protoMarshaler) { return nil, errorsmod.Wrapf(errors.ErrORMInvalidArgument, "unsupported type :%s", elemType) } diff --git a/x/group/internal/orm/iterator_test.go b/x/group/internal/orm/iterator_test.go index a7b4854dd108..2b7cccd199de 100644 --- a/x/group/internal/orm/iterator_test.go +++ b/x/group/internal/orm/iterator_test.go @@ -356,7 +356,7 @@ func mockIter(rowID RowID, val proto.Message) Iterator { } func noopIter() Iterator { - return IteratorFunc(func(dest proto.Message) (RowID, error) { + return IteratorFunc(func(_ proto.Message) (RowID, error) { return nil, nil }) } diff --git a/x/group/keeper/keeper.go b/x/group/keeper/keeper.go index 4a79e7303348..81dbf428bf45 100644 --- a/x/group/keeper/keeper.go +++ b/x/group/keeper/keeper.go @@ -285,7 +285,6 @@ func (k Keeper) abortProposals(ctx sdk.Context, groupPolicyAddr sdk.AccAddress) return err } - //nolint:gosec // "implicit memory aliasing in the for loop (because of the pointer on &proposalInfo)" for _, proposalInfo := range proposals { // Mark all proposals still in the voting phase as aborted. if proposalInfo.Status == group.PROPOSAL_STATUS_SUBMITTED { @@ -330,7 +329,6 @@ func (k Keeper) pruneVotes(ctx sdk.Context, proposalID uint64) error { return err } - //nolint:gosec // "implicit memory aliasing in the for loop (because of the pointer on &v)" for _, v := range votes { err = k.voteTable.Delete(ctx.KVStore(k.key), &v) if err != nil { @@ -399,7 +397,7 @@ func (k Keeper) TallyProposalsAtVPEnd(ctx sdk.Context) error { if err != nil { return nil } - //nolint:gosec // "implicit memory aliasing in the for loop (because of the pointers in the loop)" + for _, proposal := range proposals { policyInfo, err := k.getGroupPolicyInfo(ctx, proposal.GroupPolicyAddress) if err != nil { diff --git a/x/group/keeper/msg_server.go b/x/group/keeper/msg_server.go index b36215a75e60..477606a6c77b 100644 --- a/x/group/keeper/msg_server.go +++ b/x/group/keeper/msg_server.go @@ -1061,7 +1061,7 @@ func (k Keeper) doUpdateGroup(ctx sdk.Context, groupID uint64, reqGroupAdmin str // is greater than a pre-defined maxMetadataLen. func (k Keeper) assertMetadataLength(metadata, description string) error { if metadata != "" && uint64(len(metadata)) > k.config.MaxMetadataLen { - return errorsmod.Wrapf(errors.ErrMaxLimit, description) + return errorsmod.Wrapf(errors.ErrMaxLimit, "%s", description) } return nil } diff --git a/x/group/keeper/proposal_executor.go b/x/group/keeper/proposal_executor.go index ecbda22ced12..05de2624f83b 100644 --- a/x/group/keeper/proposal_executor.go +++ b/x/group/keeper/proposal_executor.go @@ -16,7 +16,7 @@ import ( // doExecuteMsgs routes the messages to the registered handlers. Messages are limited to those that require no authZ or // by the account of group policy only. Otherwise this gives access to other peoples accounts as the sdk middlewares are bypassed -func (s Keeper) doExecuteMsgs(ctx sdk.Context, router baseapp.MessageRouter, proposal group.Proposal, groupPolicyAcc sdk.AccAddress, decisionPolicy group.DecisionPolicy) ([]sdk.Result, error) { +func (s Keeper) doExecuteMsgs(ctx sdk.Context, _ baseapp.MessageRouter, proposal group.Proposal, groupPolicyAcc sdk.AccAddress, decisionPolicy group.DecisionPolicy) ([]sdk.Result, error) { // Ensure it's not too early to execute the messages. minExecutionDate := proposal.SubmitTime.Add(decisionPolicy.GetMinExecutionPeriod()) if ctx.BlockTime().Before(minExecutionDate) { diff --git a/x/group/migrations/v2/gen_state.go b/x/group/migrations/v2/gen_state.go index a21b018f1ecb..310e07da2f30 100644 --- a/x/group/migrations/v2/gen_state.go +++ b/x/group/migrations/v2/gen_state.go @@ -2,7 +2,7 @@ package v2 import ( "encoding/binary" - + sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" ) diff --git a/x/group/module/module.go b/x/group/module/module.go index 889d22ab1787..b9f41993ff28 100644 --- a/x/group/module/module.go +++ b/x/group/module/module.go @@ -83,7 +83,7 @@ func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { } // ValidateGenesis performs genesis state validation for the group module. -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config sdkclient.TxEncodingConfig, bz json.RawMessage) error { +func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ sdkclient.TxEncodingConfig, bz json.RawMessage) error { var data group.GenesisState if err := cdc.UnmarshalJSON(bz, &data); err != nil { return fmt.Errorf("failed to unmarshal %s genesis state: %w", group.ModuleName, err) diff --git a/x/group/msgs.go b/x/group/msgs.go index 59793d79adb3..f6f872bd1d6b 100644 --- a/x/group/msgs.go +++ b/x/group/msgs.go @@ -74,11 +74,11 @@ func (m *MsgCreateGroupWithPolicy) GetDecisionPolicy() (DecisionPolicy, error) { // SetDecisionPolicy sets the decision policy for MsgCreateGroupWithPolicy. func (m *MsgCreateGroupWithPolicy) SetDecisionPolicy(decisionPolicy DecisionPolicy) error { - any, err := types.NewAnyWithValue(decisionPolicy) + a, err := types.NewAnyWithValue(decisionPolicy) if err != nil { return err } - m.DecisionPolicy = any + m.DecisionPolicy = a return nil } @@ -107,11 +107,11 @@ func (m *MsgUpdateGroupPolicyDecisionPolicy) SetDecisionPolicy(decisionPolicy De if !ok { return sdkerrors.ErrInvalidType.Wrapf("can't proto marshal %T", msg) } - any, err := types.NewAnyWithValue(msg) + a, err := types.NewAnyWithValue(msg) if err != nil { return err } - m.DecisionPolicy = any + m.DecisionPolicy = a return nil } @@ -171,11 +171,11 @@ func (m *MsgCreateGroupPolicy) GetDecisionPolicy() (DecisionPolicy, error) { // SetDecisionPolicy sets the decision policy of MsgCreateGroupPolicy. func (m *MsgCreateGroupPolicy) SetDecisionPolicy(decisionPolicy DecisionPolicy) error { - any, err := types.NewAnyWithValue(decisionPolicy) + a, err := types.NewAnyWithValue(decisionPolicy) if err != nil { return err } - m.DecisionPolicy = any + m.DecisionPolicy = a return nil } diff --git a/x/group/simulation/genesis.go b/x/group/simulation/genesis.go index d5273b97bb0d..a5f814f94fd4 100644 --- a/x/group/simulation/genesis.go +++ b/x/group/simulation/genesis.go @@ -81,7 +81,7 @@ func getGroupPolicies(r *rand.Rand, simState *module.SimulationState) []*group.G } usedAccs[acc.Address.String()] = true - any, err := codectypes.NewAnyWithValue(group.NewThresholdDecisionPolicy("10", time.Second, 0)) + an, err := codectypes.NewAnyWithValue(group.NewThresholdDecisionPolicy("10", time.Second, 0)) if err != nil { panic(err) } @@ -90,7 +90,7 @@ func getGroupPolicies(r *rand.Rand, simState *module.SimulationState) []*group.G Admin: acc.Address.String(), Address: acc.Address.String(), Version: 1, - DecisionPolicy: any, + DecisionPolicy: an, Metadata: simtypes.RandStringOfLength(r, 10), }) } diff --git a/x/group/simulation/operations.go b/x/group/simulation/operations.go index 7827e8d5433b..d197dbdec726 100644 --- a/x/group/simulation/operations.go +++ b/x/group/simulation/operations.go @@ -79,9 +79,9 @@ const ( // WeightedOperations returns all the operations from the module with their respective weights func WeightedOperations( registry cdctypes.InterfaceRegistry, - appParams simtypes.AppParams, cdc codec.JSONCodec, txGen client.TxConfig, + appParams simtypes.AppParams, _ codec.JSONCodec, txGen client.TxConfig, ak group.AccountKeeper, bk group.BankKeeper, k keeper.Keeper, - appCdc cdctypes.AnyUnpacker, + _ cdctypes.AnyUnpacker, ) simulation.WeightedOperations { var ( weightMsgCreateGroup int @@ -217,7 +217,7 @@ func WeightedOperations( // SimulateMsgCreateGroup generates a MsgCreateGroup with random values func SimulateMsgCreateGroup( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txGen client.TxConfig, ak group.AccountKeeper, bk group.BankKeeper, @@ -264,7 +264,7 @@ func SimulateMsgCreateGroup( // SimulateMsgCreateGroupWithPolicy generates a MsgCreateGroupWithPolicy with random values func SimulateMsgCreateGroupWithPolicy( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txGen client.TxConfig, ak group.AccountKeeper, bk group.BankKeeper, @@ -328,7 +328,7 @@ func SimulateMsgCreateGroupWithPolicy( // SimulateMsgCreateGroupPolicy generates a NewMsgCreateGroupPolicy with random values func SimulateMsgCreateGroupPolicy( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txGen client.TxConfig, ak group.AccountKeeper, bk group.BankKeeper, @@ -394,7 +394,7 @@ func SimulateMsgCreateGroupPolicy( // SimulateMsgSubmitProposal generates a NewMsgSubmitProposal with random values func SimulateMsgSubmitProposal( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txGen client.TxConfig, ak group.AccountKeeper, bk group.BankKeeper, @@ -475,7 +475,7 @@ func SimulateMsgSubmitProposal( // SimulateMsgUpdateGroupAdmin generates a MsgUpdateGroupAdmin with random values func SimulateMsgUpdateGroupAdmin( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txGen client.TxConfig, ak group.AccountKeeper, bk group.BankKeeper, @@ -540,7 +540,7 @@ func SimulateMsgUpdateGroupAdmin( // SimulateMsgUpdateGroupMetadata generates a MsgUpdateGroupMetadata with random values func SimulateMsgUpdateGroupMetadata( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txGen client.TxConfig, ak group.AccountKeeper, bk group.BankKeeper, @@ -596,7 +596,7 @@ func SimulateMsgUpdateGroupMetadata( // SimulateMsgUpdateGroupMembers generates a MsgUpdateGroupMembers with random values func SimulateMsgUpdateGroupMembers( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txGen client.TxConfig, ak group.AccountKeeper, bk group.BankKeeper, @@ -679,7 +679,7 @@ func SimulateMsgUpdateGroupMembers( // SimulateMsgUpdateGroupPolicyAdmin generates a MsgUpdateGroupPolicyAdmin with random values func SimulateMsgUpdateGroupPolicyAdmin( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txGen client.TxConfig, ak group.AccountKeeper, bk group.BankKeeper, @@ -742,9 +742,9 @@ func SimulateMsgUpdateGroupPolicyAdmin( } } -// // SimulateMsgUpdateGroupPolicyDecisionPolicy generates a NewMsgUpdateGroupPolicyDecisionPolicy with random values +// SimulateMsgUpdateGroupPolicyDecisionPolicy generates a NewMsgUpdateGroupPolicyDecisionPolicy with random values func SimulateMsgUpdateGroupPolicyDecisionPolicy( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txGen client.TxConfig, ak group.AccountKeeper, bk group.BankKeeper, @@ -806,9 +806,9 @@ func SimulateMsgUpdateGroupPolicyDecisionPolicy( } } -// // SimulateMsgUpdateGroupPolicyMetadata generates a MsgUpdateGroupPolicyMetadata with random values +// SimulateMsgUpdateGroupPolicyMetadata generates a MsgUpdateGroupPolicyMetadata with random values func SimulateMsgUpdateGroupPolicyMetadata( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txGen client.TxConfig, ak group.AccountKeeper, bk group.BankKeeper, @@ -864,7 +864,7 @@ func SimulateMsgUpdateGroupPolicyMetadata( // SimulateMsgWithdrawProposal generates a MsgWithdrawProposal with random values func SimulateMsgWithdrawProposal( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txGen client.TxConfig, ak group.AccountKeeper, bk group.BankKeeper, @@ -958,7 +958,6 @@ func SimulateMsgWithdrawProposal( } _, _, err = app.SimDeliver(txGen.TxEncoder(), tx) - if err != nil { if strings.Contains(err.Error(), "group was modified") || strings.Contains(err.Error(), "group policy was modified") { return simtypes.NoOpMsg(group.ModuleName, sdk.MsgTypeURL(msg), "no-op:group/group-policy was modified"), nil, nil @@ -972,7 +971,7 @@ func SimulateMsgWithdrawProposal( // SimulateMsgVote generates a MsgVote with random values func SimulateMsgVote( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txGen client.TxConfig, ak group.AccountKeeper, bk group.BankKeeper, @@ -1066,7 +1065,6 @@ func SimulateMsgVote( } _, _, err = app.SimDeliver(txGen.TxEncoder(), tx) - if err != nil { if strings.Contains(err.Error(), "group was modified") || strings.Contains(err.Error(), "group policy was modified") { return simtypes.NoOpMsg(group.ModuleName, sdk.MsgTypeURL(msg), "no-op:group/group-policy was modified"), nil, nil @@ -1078,9 +1076,9 @@ func SimulateMsgVote( } } -// // SimulateMsgExec generates a MsgExec with random values +// SimulateMsgExec generates a MsgExec with random values func SimulateMsgExec( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txGen client.TxConfig, ak group.AccountKeeper, bk group.BankKeeper, @@ -1160,7 +1158,7 @@ func SimulateMsgExec( // SimulateMsgLeaveGroup generates a MsgLeaveGroup with random values func SimulateMsgLeaveGroup( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txGen client.TxConfig, k keeper.Keeper, ak group.AccountKeeper, @@ -1352,12 +1350,12 @@ func genGroupMembers(r *rand.Rand, accounts []simtypes.Account) []group.MemberRe } } - max := 5 - if len(accounts) < max { - max = len(accounts) + m := 5 + if len(accounts) < m { + m = len(accounts) } - membersLen := simtypes.RandIntBetween(r, 1, max) + membersLen := simtypes.RandIntBetween(r, 1, m) members := make([]group.MemberRequest, membersLen) for i := 0; i < membersLen; i++ { diff --git a/x/group/types.go b/x/group/types.go index 12a5c4bd18c9..d5283b9c9eea 100644 --- a/x/group/types.go +++ b/x/group/types.go @@ -99,7 +99,7 @@ func (p ThresholdDecisionPolicy) Allow(tallyResult TallyResult, totalPower strin // and the threshold doesn't, we can end up with threshold > total_weight. // In this case, as long as everyone votes yes (in which case // `yesCount`==`realThreshold`), then the proposal still passes. - realThreshold := min(threshold, totalPowerDec) + realThreshold := minV(threshold, totalPowerDec) if yesCount.Cmp(realThreshold) >= 0 { return DecisionPolicyResult{Allow: true, Final: true}, nil @@ -126,7 +126,7 @@ func (p ThresholdDecisionPolicy) Allow(tallyResult TallyResult, totalPower strin return DecisionPolicyResult{Allow: false, Final: false}, nil } -func min(a, b math.Dec) math.Dec { +func minV(a, b math.Dec) math.Dec { if a.Cmp(b) < 0 { return a } @@ -188,7 +188,7 @@ func (p PercentageDecisionPolicy) ValidateBasic() error { } // Validate validates the policy against the group. -func (p *PercentageDecisionPolicy) Validate(g GroupInfo, config Config) error { +func (p *PercentageDecisionPolicy) Validate(_ GroupInfo, config Config) error { if p.Windows.MinExecutionPeriod > p.Windows.VotingPeriod+config.MaxExecutionPeriod { return errorsmod.Wrap(errors.ErrInvalid, "min_execution_period should be smaller than voting_period + max_execution_period") } @@ -266,11 +266,11 @@ func NewGroupPolicyInfo(address sdk.AccAddress, group uint64, admin sdk.AccAddre // SetDecisionPolicy sets the decision policy for GroupPolicyInfo. func (g *GroupPolicyInfo) SetDecisionPolicy(decisionPolicy DecisionPolicy) error { - any, err := codectypes.NewAnyWithValue(decisionPolicy) + a, err := codectypes.NewAnyWithValue(decisionPolicy) if err != nil { return err } - g.DecisionPolicy = any + g.DecisionPolicy = a return nil } diff --git a/x/mint/module.go b/x/mint/module.go index 7c55567f1acf..593dcf89449e 100644 --- a/x/mint/module.go +++ b/x/mint/module.go @@ -66,7 +66,7 @@ func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { } // ValidateGenesis performs genesis state validation for the mint module. -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { +func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error { var data types.GenesisState if err := cdc.UnmarshalJSON(bz, &data); err != nil { return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) @@ -170,7 +170,7 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } // ProposalMsgs returns msgs used for governance proposals for simulations. -func (AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg { +func (AppModule) ProposalMsgs(_ module.SimulationState) []simtypes.WeightedProposalMsg { return simulation.ProposalMsgs() } diff --git a/x/mint/simulation/genesis.go b/x/mint/simulation/genesis.go index 48ae9c3acf0a..5c54b6053bda 100644 --- a/x/mint/simulation/genesis.go +++ b/x/mint/simulation/genesis.go @@ -31,17 +31,17 @@ func GenInflationRateChange(r *rand.Rand) math.LegacyDec { } // GenInflationMax randomized InflationMax -func GenInflationMax(r *rand.Rand) math.LegacyDec { +func GenInflationMax(_ *rand.Rand) math.LegacyDec { return math.LegacyNewDecWithPrec(20, 2) } // GenInflationMin randomized InflationMin -func GenInflationMin(r *rand.Rand) math.LegacyDec { +func GenInflationMin(_ *rand.Rand) math.LegacyDec { return math.LegacyNewDecWithPrec(7, 2) } // GenGoalBonded randomized GoalBonded -func GenGoalBonded(r *rand.Rand) math.LegacyDec { +func GenGoalBonded(_ *rand.Rand) math.LegacyDec { return math.LegacyNewDecWithPrec(67, 2) } diff --git a/x/nft/internal/conv/string.go b/x/nft/internal/conv/string.go index ab2b7f44b38a..3bc72180d875 100644 --- a/x/nft/internal/conv/string.go +++ b/x/nft/internal/conv/string.go @@ -1,20 +1,13 @@ package conv import ( - "reflect" "unsafe" ) // UnsafeStrToBytes uses unsafe to convert string into byte array. Returned bytes // must not be altered after this function is called as it will cause a segmentation fault. func UnsafeStrToBytes(s string) []byte { - var buf []byte - sHdr := (*reflect.StringHeader)(unsafe.Pointer(&s)) - bufHdr := (*reflect.SliceHeader)(unsafe.Pointer(&buf)) - bufHdr.Data = sHdr.Data - bufHdr.Cap = sHdr.Len - bufHdr.Len = sHdr.Len - return buf + return unsafe.Slice(unsafe.StringData(s), len(s)) } // UnsafeBytesToStr is meant to make a zero allocation conversion @@ -22,5 +15,5 @@ func UnsafeStrToBytes(s string) []byte { // to be used generally, but for a specific pattern to delete keys // from a map. func UnsafeBytesToStr(b []byte) string { - return *(*string)(unsafe.Pointer(&b)) + return unsafe.String(&b[0], len(b)) } diff --git a/x/nft/keeper/grpc_query.go b/x/nft/keeper/grpc_query.go index e4ccb1cc31f6..3ad774ca06c9 100644 --- a/x/nft/keeper/grpc_query.go +++ b/x/nft/keeper/grpc_query.go @@ -118,7 +118,7 @@ func (k Keeper) NFTs(goCtx context.Context, r *nft.QueryNFTsRequest) (*nft.Query return nil, err } case len(r.ClassId) == 0 && len(r.Owner) > 0: - if pageRes, err = query.Paginate(k.prefixStoreNftOfClassByOwner(ctx, owner), r.Pagination, func(key, value []byte) error { + if pageRes, err = query.Paginate(k.prefixStoreNftOfClassByOwner(ctx, owner), r.Pagination, func(key, _ []byte) error { classID, nftID := parseNftOfClassByOwnerStoreKey(key) if n, has := k.GetNFT(ctx, classID, nftID); has { nfts = append(nfts, &n) diff --git a/x/nft/module/module.go b/x/nft/module/module.go index 2728032358c9..a13eb57b2ba4 100644 --- a/x/nft/module/module.go +++ b/x/nft/module/module.go @@ -54,7 +54,7 @@ func (am AppModule) RegisterServices(registrar grpc.ServiceRegistrar) error { } // RegisterLegacyAminoCodec registers the nft module's types for the given codec. -func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {} +func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino) {} // RegisterInterfaces registers the nft module's interface types func (AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry) { @@ -68,7 +68,7 @@ func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { } // ValidateGenesis performs genesis state validation for the nft module. -func (ab AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config sdkclient.TxEncodingConfig, bz json.RawMessage) error { +func (ab AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ sdkclient.TxEncodingConfig, bz json.RawMessage) error { var data nft.GenesisState if err := cdc.UnmarshalJSON(bz, &data); err != nil { return errors.Wrapf(err, "failed to unmarshal %s genesis state", nft.ModuleName) diff --git a/x/params/module.go b/x/params/module.go index 8dfe121bea9b..6ebe30d9bfb8 100644 --- a/x/params/module.go +++ b/x/params/module.go @@ -78,7 +78,7 @@ func (am AppModule) IsOnePerModuleType() {} func (am AppModule) IsAppModule() {} // GenerateGenesisState performs a no-op. -func (AppModule) GenerateGenesisState(simState *module.SimulationState) {} +func (AppModule) GenerateGenesisState(_ *module.SimulationState) {} // RegisterServices registers a gRPC query service to respond to the // module-specific gRPC queries. @@ -87,7 +87,7 @@ func (am AppModule) RegisterServices(cfg module.Configurator) { } // RegisterStoreDecoder doesn't register any type. -func (AppModule) RegisterStoreDecoder(sdr simtypes.StoreDecoderRegistry) {} +func (AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry) {} // WeightedOperations returns the all the gov module operations with their respective weights. func (am AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation { diff --git a/x/params/simulation/operations.go b/x/params/simulation/operations.go index 2d9a862dc449..9716d33f0615 100644 --- a/x/params/simulation/operations.go +++ b/x/params/simulation/operations.go @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/params/types/proposal" ) -func min(a, b int) int { +func minV(a, b int) int { if a <= b { return a } @@ -22,7 +22,7 @@ func min(a, b int) int { func SimulateParamChangeProposalContent(paramChangePool []simulation.LegacyParamChange) simulation.ContentSimulatorFn { //nolint:staticcheck // used for legacy testing numProposals := 0 // Bound the maximum number of simultaneous parameter changes - maxSimultaneousParamChanges := min(len(paramChangePool), 1000) + maxSimultaneousParamChanges := minV(len(paramChangePool), 1000) if maxSimultaneousParamChanges == 0 { panic("param changes array is empty") } diff --git a/x/params/types/subspace.go b/x/params/types/subspace.go index bc577480107b..e485092cad3c 100644 --- a/x/params/types/subspace.go +++ b/x/params/types/subspace.go @@ -86,7 +86,7 @@ func (s Subspace) transientStore(ctx sdk.Context) storetypes.KVStore { // Validate attempts to validate a parameter value by its key. If the key is not // registered or if the validation of the value fails, an error is returned. -func (s Subspace) Validate(ctx sdk.Context, key []byte, value interface{}) error { +func (s Subspace) Validate(_ sdk.Context, key []byte, value interface{}) error { attr, ok := s.table.m[string(key)] if !ok { return fmt.Errorf("parameter %s not registered", key) diff --git a/x/simulation/operation.go b/x/simulation/operation.go index 5594fd3f5822..35a8df0e7908 100644 --- a/x/simulation/operation.go +++ b/x/simulation/operation.go @@ -79,7 +79,6 @@ func queueOperations(queuedOps OperationQueue, queuedTimeOps, futureOps []simula } for _, futureOp := range futureOps { - futureOp := futureOp if futureOp.BlockHeight != 0 { if val, ok := queuedOps[futureOp.BlockHeight]; ok { queuedOps[futureOp.BlockHeight] = append(val, futureOp.Op) diff --git a/x/slashing/keeper/genesis.go b/x/slashing/keeper/genesis.go index bb83aabbaeeb..440d3e16803a 100644 --- a/x/slashing/keeper/genesis.go +++ b/x/slashing/keeper/genesis.go @@ -10,7 +10,7 @@ import ( // pubkey map. func (keeper Keeper) InitGenesis(ctx sdk.Context, stakingKeeper types.StakingKeeper, data *types.GenesisState) { stakingKeeper.IterateValidators(ctx, - func(index int64, validator stakingtypes.ValidatorI) bool { + func(_ int64, validator stakingtypes.ValidatorI) bool { consPk, err := validator.ConsPubKey() if err != nil { panic(err) diff --git a/x/slashing/keeper/grpc_query.go b/x/slashing/keeper/grpc_query.go index 2edce8b78718..a81f6b710724 100644 --- a/x/slashing/keeper/grpc_query.go +++ b/x/slashing/keeper/grpc_query.go @@ -67,7 +67,7 @@ func (k Keeper) SigningInfos(ctx context.Context, req *types.QuerySigningInfosRe var signInfos []types.ValidatorSigningInfo sigInfoStore := prefix.NewStore(runtime.KVStoreAdapter(store), types.ValidatorSigningInfoKeyPrefix) - pageRes, err := query.Paginate(sigInfoStore, req.Pagination, func(key, value []byte) error { + pageRes, err := query.Paginate(sigInfoStore, req.Pagination, func(_, value []byte) error { var info types.ValidatorSigningInfo err := k.cdc.Unmarshal(value, &info) if err != nil { diff --git a/x/slashing/keeper/hooks.go b/x/slashing/keeper/hooks.go index f90ba4da96d6..7f9469e344b4 100644 --- a/x/slashing/keeper/hooks.go +++ b/x/slashing/keeper/hooks.go @@ -25,7 +25,7 @@ func (k Keeper) Hooks() Hooks { } // AfterValidatorBonded updates the signing info start height or create a new signing info -func (h Hooks) AfterValidatorBonded(ctx context.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error { +func (h Hooks) AfterValidatorBonded(ctx context.Context, consAddr sdk.ConsAddress, _ sdk.ValAddress) error { sdkCtx := sdk.UnwrapSDKContext(ctx) signingInfo, err := h.k.GetValidatorSigningInfo(ctx, consAddr) if err == nil { diff --git a/x/slashing/migrations/v4/migrate.go b/x/slashing/migrations/v4/migrate.go index 85ec21ad8204..f707160edf54 100644 --- a/x/slashing/migrations/v4/migrate.go +++ b/x/slashing/migrations/v4/migrate.go @@ -19,7 +19,7 @@ func Migrate(ctx sdk.Context, cdc codec.BinaryCodec, store storetypes.KVStore, p // Get all the missed blocks for each validator, based on the existing signing // info. var missedBlocks []types.ValidatorMissedBlocks - iterateValidatorSigningInfos(ctx, cdc, store, func(addr sdk.ConsAddress, info types.ValidatorSigningInfo) (stop bool) { + iterateValidatorSigningInfos(ctx, cdc, store, func(addr sdk.ConsAddress, _ types.ValidatorSigningInfo) (stop bool) { bechAddr := addr.String() localMissedBlocks := GetValidatorMissedBlocks(ctx, cdc, store, addr, params) @@ -57,7 +57,7 @@ func Migrate(ctx sdk.Context, cdc codec.BinaryCodec, store storetypes.KVStore, p } func iterateValidatorSigningInfos( - ctx sdk.Context, + _ sdk.Context, cdc codec.BinaryCodec, store storetypes.KVStore, cb func(address sdk.ConsAddress, info types.ValidatorSigningInfo) (stop bool), @@ -77,7 +77,7 @@ func iterateValidatorSigningInfos( } func iterateValidatorMissedBlockBitArray( - ctx sdk.Context, + _ sdk.Context, cdc codec.BinaryCodec, store storetypes.KVStore, addr sdk.ConsAddress, @@ -114,7 +114,7 @@ func GetValidatorMissedBlocks( return missedBlocks } -func deleteValidatorMissedBlockBitArray(ctx sdk.Context, store storetypes.KVStore, addr sdk.ConsAddress) { +func deleteValidatorMissedBlockBitArray(_ sdk.Context, store storetypes.KVStore, addr sdk.ConsAddress) { iter := storetypes.KVStorePrefixIterator(store, validatorMissedBlockBitArrayPrefixKey(addr)) defer iter.Close() @@ -123,7 +123,7 @@ func deleteValidatorMissedBlockBitArray(ctx sdk.Context, store storetypes.KVStor } } -func setMissedBlockBitmapValue(ctx sdk.Context, store storetypes.KVStore, addr sdk.ConsAddress, index int64, missed bool) error { +func setMissedBlockBitmapValue(_ sdk.Context, store storetypes.KVStore, addr sdk.ConsAddress, index int64, missed bool) error { // get the chunk or "word" in the logical bitmap chunkIndex := index / MissedBlockBitmapChunkSize key := ValidatorMissedBlockBitmapKey(addr, chunkIndex) diff --git a/x/slashing/module.go b/x/slashing/module.go index a1b0d328a5ca..3ecceeedad98 100644 --- a/x/slashing/module.go +++ b/x/slashing/module.go @@ -67,7 +67,7 @@ func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { } // ValidateGenesis performs genesis state validation for the slashing module. -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { +func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error { var data types.GenesisState if err := cdc.UnmarshalJSON(bz, &data); err != nil { return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) @@ -106,7 +106,7 @@ func NewAppModule( bk types.BankKeeper, sk types.StakingKeeper, ss exported.Subspace, - registry cdctypes.InterfaceRegistry, + _ cdctypes.InterfaceRegistry, ) AppModule { return AppModule{ AppModuleBasic: AppModuleBasic{cdc: cdc}, @@ -174,7 +174,7 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } // ProposalMsgs returns msgs used for governance proposals for simulations. -func (AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg { +func (AppModule) ProposalMsgs(_ module.SimulationState) []simtypes.WeightedProposalMsg { return simulation.ProposalMsgs() } diff --git a/x/slashing/simulation/operations.go b/x/slashing/simulation/operations.go index 280e06f7eec5..207523dab626 100644 --- a/x/slashing/simulation/operations.go +++ b/x/slashing/simulation/operations.go @@ -28,7 +28,7 @@ const ( func WeightedOperations( registry codectypes.InterfaceRegistry, appParams simtypes.AppParams, - cdc codec.JSONCodec, + _ codec.JSONCodec, txGen client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, @@ -50,7 +50,7 @@ func WeightedOperations( // SimulateMsgUnjail generates a MsgUnjail with random values func SimulateMsgUnjail( - cdc *codec.ProtoCodec, + _ *codec.ProtoCodec, txGen client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, diff --git a/x/staking/client/cli/tx.go b/x/staking/client/cli/tx.go index bb005c71efe9..94231abb8662 100644 --- a/x/staking/client/cli/tx.go +++ b/x/staking/client/cli/tx.go @@ -123,7 +123,7 @@ func NewEditValidatorCmd(ac address.Codec) *cobra.Command { cmd := &cobra.Command{ Use: "edit-validator", Short: "edit an existing validator account", - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { clientCtx, err := client.GetClientTxContext(cmd) if err != nil { return err @@ -278,7 +278,6 @@ $ %s tx staking redelegate cosmosvalopers1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj // NewUnbondCmd returns a CLI command handler for creating a MsgUndelegate transaction. func NewUnbondCmd(valAddrCodec, ac address.Codec) *cobra.Command { - cmd := &cobra.Command{ Use: "unbond [validator-addr] [amount]", Short: "Unbond shares from a validator", @@ -325,7 +324,6 @@ $ %s tx staking unbond 0x... 100stake --from mykey // NewCancelUnbondingDelegation returns a CLI command handler for creating a MsgCancelUnbondingDelegation transaction. func NewCancelUnbondingDelegation(valAddrCodec, ac address.Codec) *cobra.Command { - cmd := &cobra.Command{ Use: "cancel-unbond [validator-addr] [amount] [creation-height]", Short: "Cancel unbonding delegation and delegate back to the validator", diff --git a/x/staking/keeper/delegation.go b/x/staking/keeper/delegation.go index 606cb1e51c89..0c3223d02bf5 100644 --- a/x/staking/keeper/delegation.go +++ b/x/staking/keeper/delegation.go @@ -679,7 +679,7 @@ func (k Keeper) SetRedelegationEntry(ctx context.Context, delegatorAddr sdk.AccAddress, validatorSrcAddr, validatorDstAddr sdk.ValAddress, creationHeight int64, minTime time.Time, balance math.Int, - sharesSrc, sharesDst math.LegacyDec, + _, sharesDst math.LegacyDec, ) (types.Redelegation, error) { id, err := k.IncrementUnbondingID(ctx) if err != nil { @@ -830,7 +830,7 @@ func (k Keeper) RedelegationQueueIterator(ctx context.Context, endTime time.Time // DequeueAllMatureRedelegationQueue returns a concatenated list of all the // timeslices inclusively previous to currTime, and deletes the timeslices from // the queue. -func (k Keeper) DequeueAllMatureRedelegationQueue(ctx context.Context, currTime time.Time) (matureRedelegations []types.DVVTriplet, err error) { +func (k Keeper) DequeueAllMatureRedelegationQueue(ctx context.Context, _ time.Time) (matureRedelegations []types.DVVTriplet, err error) { store := k.storeService.OpenKVStore(ctx) // gets an iterator for all timeslices from time 0 until the current Blockheader time @@ -1068,12 +1068,12 @@ func (k Keeper) getBeginInfo( ) (completionTime time.Time, height int64, completeNow bool, err error) { validator, err := k.GetValidator(ctx, valSrcAddr) if err != nil && errors.Is(err, types.ErrNoValidatorFound) { - return + return completionTime, height, completeNow, err } sdkCtx := sdk.UnwrapSDKContext(ctx) unbondingTime, err := k.UnbondingTime(ctx) if err != nil { - return + return completionTime, height, completeNow, err } // TODO: When would the validator not be found? diff --git a/x/staking/keeper/grpc_query.go b/x/staking/keeper/grpc_query.go index 890ca859c12b..79d514ffe55c 100644 --- a/x/staking/keeper/grpc_query.go +++ b/x/staking/keeper/grpc_query.go @@ -41,7 +41,7 @@ func (k Querier) Validators(ctx context.Context, req *types.QueryValidatorsReque store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) valStore := prefix.NewStore(store, types.ValidatorsKey) - validators, pageRes, err := query.GenericFilteredPaginate(k.cdc, valStore, req.Pagination, func(key []byte, val *types.Validator) (*types.Validator, error) { + validators, pageRes, err := query.GenericFilteredPaginate(k.cdc, valStore, req.Pagination, func(_ []byte, val *types.Validator) (*types.Validator, error) { if req.Status != "" && !strings.EqualFold(val.GetStatus().String(), req.Status) { return nil, nil } @@ -107,7 +107,7 @@ func (k Querier) ValidatorDelegations(ctx context.Context, req *types.QueryValid dels types.Delegations pageRes *query.PageResponse ) - pageRes, err = query.Paginate(delStore, req.Pagination, func(delAddr, value []byte) error { + pageRes, err = query.Paginate(delStore, req.Pagination, func(delAddr, _ []byte) error { bz := store.Get(types.GetDelegationKey(delAddr, valAddr)) var delegation types.Delegation @@ -147,7 +147,7 @@ func (k Querier) getValidatorDelegationsLegacy(ctx context.Context, req *types.Q store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) valStore := prefix.NewStore(store, types.DelegationKey) - return query.GenericFilteredPaginate(k.cdc, valStore, req.Pagination, func(key []byte, delegation *types.Delegation) (*types.Delegation, error) { + return query.GenericFilteredPaginate(k.cdc, valStore, req.Pagination, func(_ []byte, delegation *types.Delegation) (*types.Delegation, error) { _, err := k.validatorAddressCodec.StringToBytes(req.ValidatorAddr) if err != nil { return nil, err @@ -182,7 +182,7 @@ func (k Querier) ValidatorUnbondingDelegations(ctx context.Context, req *types.Q store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) srcValPrefix := types.GetUBDsByValIndexKey(valAddr) ubdStore := prefix.NewStore(store, srcValPrefix) - pageRes, err := query.Paginate(ubdStore, req.Pagination, func(key, value []byte) error { + pageRes, err := query.Paginate(ubdStore, req.Pagination, func(key, _ []byte) error { storeKey := types.GetUBDKeyFromValIndexKey(append(srcValPrefix, key...)) storeValue := store.Get(storeKey) @@ -294,7 +294,7 @@ func (k Querier) DelegatorDelegations(ctx context.Context, req *types.QueryDeleg store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) delStore := prefix.NewStore(store, types.GetDelegationsKey(delAddr)) - pageRes, err := query.Paginate(delStore, req.Pagination, func(key, value []byte) error { + pageRes, err := query.Paginate(delStore, req.Pagination, func(_, value []byte) error { delegation, err := types.UnmarshalDelegation(k.cdc, value) if err != nil { return err @@ -363,7 +363,7 @@ func (k Querier) DelegatorUnbondingDelegations(ctx context.Context, req *types.Q store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) unbStore := prefix.NewStore(store, types.GetUBDsKey(delAddr)) - pageRes, err := query.Paginate(unbStore, req.Pagination, func(key, value []byte) error { + pageRes, err := query.Paginate(unbStore, req.Pagination, func(_, value []byte) error { unbond, err := types.UnmarshalUBD(k.cdc, value) if err != nil { return err @@ -446,7 +446,7 @@ func (k Querier) DelegatorValidators(ctx context.Context, req *types.QueryDelega } delStore := prefix.NewStore(store, types.GetDelegationsKey(delAddr)) - pageRes, err := query.Paginate(delStore, req.Pagination, func(key, value []byte) error { + pageRes, err := query.Paginate(delStore, req.Pagination, func(_, value []byte) error { delegation, err := types.UnmarshalDelegation(k.cdc, value) if err != nil { return err @@ -534,7 +534,7 @@ func queryRedelegationsFromSrcValidator(store storetypes.KVStore, k Querier, req srcValPrefix := types.GetREDsFromValSrcIndexKey(valAddr) redStore := prefix.NewStore(store, srcValPrefix) - res, err = query.Paginate(redStore, req.Pagination, func(key, value []byte) error { + res, err = query.Paginate(redStore, req.Pagination, func(key, _ []byte) error { storeKey := types.GetREDKeyFromValSrcIndexKey(append(srcValPrefix, key...)) storeValue := store.Get(storeKey) red, err := types.UnmarshalRED(k.cdc, storeValue) @@ -555,7 +555,7 @@ func queryAllRedelegations(store storetypes.KVStore, k Querier, req *types.Query } redStore := prefix.NewStore(store, types.GetREDsKey(delAddr)) - res, err = query.Paginate(redStore, req.Pagination, func(key, value []byte) error { + res, err = query.Paginate(redStore, req.Pagination, func(_, value []byte) error { redelegation, err := types.UnmarshalRED(k.cdc, value) if err != nil { return err diff --git a/x/staking/keeper/keeper.go b/x/staking/keeper/keeper.go index 6136f86bef2c..984440906e79 100644 --- a/x/staking/keeper/keeper.go +++ b/x/staking/keeper/keeper.go @@ -3,8 +3,8 @@ package keeper import ( "context" "fmt" - stakeTypes "github.com/0xPolygon/heimdall-v2/x/stake/types" + stakeTypes "github.com/0xPolygon/heimdall-v2/x/stake/types" abci "github.com/cometbft/cometbft/abci/types" addresscodec "cosmossdk.io/core/address" @@ -178,13 +178,15 @@ func (k Keeper) GetValidatorUpdates(ctx context.Context) ([]abci.ValidatorUpdate // They are present here just to be able to build cosmos-sdk (simapp/app.go uses the staking keeper) and run some tests // GetValIdFromAddress returns a validator's id given its address string +// +//nolint:revive func (k Keeper) GetValIdFromAddress(context context.Context, address string) (uint64, error) { // HV2: returning zero value and nil error return 0, nil } // IterateCurrentValidatorsAndApplyFn iterate through current validators -func (k Keeper) IterateCurrentValidatorsAndApplyFn(ctx context.Context, f func(validator stakeTypes.Validator) bool) error { +func (k Keeper) IterateCurrentValidatorsAndApplyFn(_ context.Context, _ func(validator stakeTypes.Validator) bool) error { // HV2: returning nil error return nil } diff --git a/x/staking/keeper/params.go b/x/staking/keeper/params.go index 83e29708470c..0c6264f2f192 100644 --- a/x/staking/keeper/params.go +++ b/x/staking/keeper/params.go @@ -46,7 +46,7 @@ func (k Keeper) BondDenom(ctx context.Context) (string, error) { // Currently, this returns a global variable that the app developer can tweak. // TODO: we might turn this into an on-chain param: // https://github.com/cosmos/cosmos-sdk/issues/8365 -func (k Keeper) PowerReduction(ctx context.Context) math.Int { +func (k Keeper) PowerReduction(_ context.Context) math.Int { return sdk.DefaultPowerReduction } diff --git a/x/staking/keeper/slash.go b/x/staking/keeper/slash.go index be175b568a2c..f11b376aee18 100644 --- a/x/staking/keeper/slash.go +++ b/x/staking/keeper/slash.go @@ -285,13 +285,13 @@ func (k Keeper) SlashUnbondingDelegation(ctx context.Context, unbondingDelegatio return totalSlashAmount, nil } -// slash a redelegation and update the pool +// SlashRedelegation slashes a redelegation and update the pool // return the amount that would have been slashed assuming // the unbonding delegation had enough stake to slash // (the amount actually slashed may be less if there's // insufficient stake remaining) // NOTE this is only slashing for prior infractions from the source validator -func (k Keeper) SlashRedelegation(ctx context.Context, srcValidator types.Validator, redelegation types.Redelegation, +func (k Keeper) SlashRedelegation(ctx context.Context, _ types.Validator, redelegation types.Redelegation, infractionHeight int64, slashFactor math.LegacyDec, ) (totalSlashAmount math.Int, err error) { sdkCtx := sdk.UnwrapSDKContext(ctx) diff --git a/x/staking/keeper/test_common.go b/x/staking/keeper/test_common.go index 0fa31d8ef924..5289811e51d0 100644 --- a/x/staking/keeper/test_common.go +++ b/x/staking/keeper/test_common.go @@ -21,6 +21,8 @@ func ValidatorByPowerIndexExists(ctx context.Context, keeper *Keeper, power []by } // TestingUpdateValidator updates a validator for testing +// +//nolint:revive func TestingUpdateValidator(keeper *Keeper, ctx sdk.Context, validator types.Validator, apply bool) types.Validator { err := keeper.SetValidator(ctx, validator) if err != nil { diff --git a/x/staking/keeper/val_state_change.go b/x/staking/keeper/val_state_change.go index 180e591b1d73..fdbbf92c6a66 100644 --- a/x/staking/keeper/val_state_change.go +++ b/x/staking/keeper/val_state_change.go @@ -173,13 +173,13 @@ func (k Keeper) ApplyAndReturnValidatorSetUpdates(ctx context.Context) (updates case validator.IsUnbonded(): validator, err = k.unbondedToBonded(ctx, validator) if err != nil { - return + return updates, err } amtFromNotBondedToBonded = amtFromNotBondedToBonded.Add(validator.GetTokens()) case validator.IsUnbonding(): validator, err = k.unbondingToBonded(ctx, validator) if err != nil { - return + return updates, err } amtFromNotBondedToBonded = amtFromNotBondedToBonded.Add(validator.GetTokens()) case validator.IsBonded(): diff --git a/x/staking/migrations/v2/store.go b/x/staking/migrations/v2/store.go index 7b20394eac8a..c3ec02e7afb8 100644 --- a/x/staking/migrations/v2/store.go +++ b/x/staking/migrations/v2/store.go @@ -60,7 +60,7 @@ func migrateValidatorsByPowerIndexKey(store storetypes.KVStore) { // migration includes: // // - Setting the Power Reduction param in the paramstore -func MigrateStore(ctx sdk.Context, store storetypes.KVStore) error { +func MigrateStore(_ sdk.Context, store storetypes.KVStore) error { v2distribution.MigratePrefixAddress(store, v1.LastValidatorPowerKey) v2distribution.MigratePrefixAddress(store, v1.ValidatorsKey) v2distribution.MigratePrefixAddress(store, v1.ValidatorsByConsAddrKey) diff --git a/x/staking/migrations/v3/store.go b/x/staking/migrations/v3/store.go index 6cb6c6263113..e480ca2c16b2 100644 --- a/x/staking/migrations/v3/store.go +++ b/x/staking/migrations/v3/store.go @@ -23,7 +23,7 @@ type subspace interface { // The migration includes: // // - Setting the MinCommissionRate param in the paramstore -func MigrateStore(ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec, paramstore exported.Subspace) error { +func MigrateStore(ctx sdk.Context, _ storetypes.KVStore, _ codec.BinaryCodec, paramstore exported.Subspace) error { migrateParamsStore(ctx, paramstore.(subspace)) return nil diff --git a/x/staking/migrations/v4/store.go b/x/staking/migrations/v4/store.go index 0802e887560f..2cdaacaf7578 100644 --- a/x/staking/migrations/v4/store.go +++ b/x/staking/migrations/v4/store.go @@ -43,7 +43,7 @@ func migrateParams(ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCo // migrateUBDEntries will remove the ubdEntries with same creation_height // and create a new ubdEntry with updated balance and initial_balance -func migrateUBDEntries(ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec, legacySubspace exported.Subspace) error { +func migrateUBDEntries(ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec, _ exported.Subspace) error { iterator := storetypes.KVStorePrefixIterator(store, types.UnbondingDelegationKey) defer iterator.Close() @@ -84,7 +84,7 @@ func migrateUBDEntries(ctx sdk.Context, store storetypes.KVStore, cdc codec.Bina return nil } -func setUBDToStore(ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec, ubd types.UnbondingDelegation) { +func setUBDToStore(_ sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec, ubd types.UnbondingDelegation) { delegatorAddress := sdk.MustAccAddressFromHex(ubd.DelegatorAddress) bz := types.MustMarshalUBD(cdc, ubd) diff --git a/x/staking/migrations/v5/store.go b/x/staking/migrations/v5/store.go index 569cc80c648f..ee3c6cbb7dc1 100644 --- a/x/staking/migrations/v5/store.go +++ b/x/staking/migrations/v5/store.go @@ -12,7 +12,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -func migrateDelegationsByValidatorIndex(ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec) error { +func migrateDelegationsByValidatorIndex(_ sdk.Context, store storetypes.KVStore, _ codec.BinaryCodec) error { iterator := storetypes.KVStorePrefixIterator(store, DelegationKey) for ; iterator.Valid(); iterator.Next() { diff --git a/x/staking/module.go b/x/staking/module.go index ff5933ab8048..d8f63a2d5df7 100644 --- a/x/staking/module.go +++ b/x/staking/module.go @@ -76,7 +76,7 @@ func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { } // ValidateGenesis performs genesis state validation for the staking module. -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { +func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error { var data types.GenesisState if err := cdc.UnmarshalJSON(bz, &data); err != nil { return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) @@ -285,7 +285,7 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } // ProposalMsgs returns msgs used for governance proposals for simulations. -func (AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg { +func (AppModule) ProposalMsgs(_ module.SimulationState) []simtypes.WeightedProposalMsg { return simulation.ProposalMsgs() } diff --git a/x/staking/simulation/operations.go b/x/staking/simulation/operations.go index 0776de5dbc45..fcfa7e58c2b3 100644 --- a/x/staking/simulation/operations.go +++ b/x/staking/simulation/operations.go @@ -38,7 +38,7 @@ const ( // WeightedOperations returns all the operations from the module with their respective weights func WeightedOperations( appParams simtypes.AppParams, - cdc codec.JSONCodec, + _ codec.JSONCodec, txGen client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, @@ -113,7 +113,7 @@ func SimulateMsgCreateValidator( k *keeper.Keeper, ) simtypes.Operation { return func( - r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { msgType := sdk.MsgTypeURL(&types.MsgCreateValidator{}) @@ -200,7 +200,7 @@ func SimulateMsgEditValidator( k *keeper.Keeper, ) simtypes.Operation { return func( - r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { msgType := sdk.MsgTypeURL(&types.MsgEditValidator{}) @@ -275,7 +275,7 @@ func SimulateMsgDelegate( k *keeper.Keeper, ) simtypes.Operation { return func( - r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { msgType := sdk.MsgTypeURL(&types.MsgDelegate{}) denom, err := k.BondDenom(ctx) @@ -353,7 +353,7 @@ func SimulateMsgUndelegate( k *keeper.Keeper, ) simtypes.Operation { return func( - r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { msgType := sdk.MsgTypeURL(&types.MsgUndelegate{}) @@ -468,7 +468,7 @@ func SimulateMsgCancelUnbondingDelegate( k *keeper.Keeper, ) simtypes.Operation { return func( - r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { msgType := sdk.MsgTypeURL(&types.MsgCancelUnbondingDelegation{}) @@ -568,7 +568,7 @@ func SimulateMsgBeginRedelegate( k *keeper.Keeper, ) simtypes.Operation { return func( - r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, + r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, _ string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { msgType := sdk.MsgTypeURL(&types.MsgBeginRedelegate{}) diff --git a/x/upgrade/client/cli/tx.go b/x/upgrade/client/cli/tx.go index 294538fdc6d4..50bea08e4bcc 100644 --- a/x/upgrade/client/cli/tx.go +++ b/x/upgrade/client/cli/tx.go @@ -139,7 +139,7 @@ func NewCmdSubmitCancelUpgradeProposal(ac addresscodec.Codec) *cobra.Command { Args: cobra.ExactArgs(0), Short: "Cancel the current software upgrade proposal", Long: "Cancel a software upgrade along with an initial deposit.", - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, _ []string) error { clientCtx, err := client.GetClientTxContext(cmd) if err != nil { return err diff --git a/x/upgrade/internal/conv/string.go b/x/upgrade/internal/conv/string.go index 8cd9e6827850..f8b59e800349 100644 --- a/x/upgrade/internal/conv/string.go +++ b/x/upgrade/internal/conv/string.go @@ -1,18 +1,11 @@ package conv import ( - "reflect" "unsafe" ) // UnsafeStrToBytes uses unsafe to convert string into byte array. Returned bytes // must not be altered after this function is called as it will cause a segmentation fault. func UnsafeStrToBytes(s string) []byte { - var buf []byte - sHdr := (*reflect.StringHeader)(unsafe.Pointer(&s)) - bufHdr := (*reflect.SliceHeader)(unsafe.Pointer(&buf)) - bufHdr.Data = sHdr.Data - bufHdr.Cap = sHdr.Len - bufHdr.Len = sHdr.Len - return buf + return unsafe.Slice(unsafe.StringData(s), len(s)) } diff --git a/x/upgrade/keeper/grpc_query.go b/x/upgrade/keeper/grpc_query.go index d3502372e731..496ddee13602 100644 --- a/x/upgrade/keeper/grpc_query.go +++ b/x/upgrade/keeper/grpc_query.go @@ -13,7 +13,7 @@ import ( var _ types.QueryServer = Keeper{} // CurrentPlan implements the Query/CurrentPlan gRPC method -func (k Keeper) CurrentPlan(c context.Context, req *types.QueryCurrentPlanRequest) (*types.QueryCurrentPlanResponse, error) { +func (k Keeper) CurrentPlan(c context.Context, _ *types.QueryCurrentPlanRequest) (*types.QueryCurrentPlanResponse, error) { ctx := sdk.UnwrapSDKContext(c) plan, err := k.GetUpgradePlan(ctx) @@ -84,6 +84,6 @@ func (k Keeper) ModuleVersions(c context.Context, req *types.QueryModuleVersions } // Authority implements the Query/Authority gRPC method, returning the account capable of performing upgrades -func (k Keeper) Authority(c context.Context, req *types.QueryAuthorityRequest) (*types.QueryAuthorityResponse, error) { +func (k Keeper) Authority(_ context.Context, _ *types.QueryAuthorityRequest) (*types.QueryAuthorityResponse, error) { return &types.QueryAuthorityResponse{Address: k.authority}, nil } diff --git a/x/upgrade/module.go b/x/upgrade/module.go index aaf0da375f16..43dfedff63e9 100644 --- a/x/upgrade/module.go +++ b/x/upgrade/module.go @@ -87,7 +87,7 @@ func (AppModuleBasic) DefaultGenesis(_ codec.JSONCodec) json.RawMessage { } // ValidateGenesis is always successful, as we ignore the value -func (AppModuleBasic) ValidateGenesis(_ codec.JSONCodec, config client.TxEncodingConfig, _ json.RawMessage) error { +func (AppModuleBasic) ValidateGenesis(_ codec.JSONCodec, _ client.TxEncodingConfig, _ json.RawMessage) error { return nil } From 4a89656cd3a7378d15d3ac49a9bc96e972921d59 Mon Sep 17 00:00:00 2001 From: marcello33 Date: Thu, 13 Feb 2025 09:21:33 +0100 Subject: [PATCH 04/12] POS-2822: fix type conversion without bounds --- client/tx/factory.go | 5 ++++- crypto/keys/bcrypt/bcrypt.go | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/client/tx/factory.go b/client/tx/factory.go index 1404139aea60..eb60a6fe755a 100644 --- a/client/tx/factory.go +++ b/client/tx/factory.go @@ -3,6 +3,7 @@ package tx import ( "errors" "fmt" + "math/big" "os" "strings" @@ -311,7 +312,9 @@ func (f Factory) BuildUnsignedTx(msgs ...sdk.Msg) (client.TxBuilder, error) { return nil, errors.New("cannot provide both fees and gas prices") } - glDec := math.LegacyNewDec(int64(f.gas)) + // f.gas is a uint64 and we should convert to LegacyDec + // without the risk of under/overflow via uint64->int64. + glDec := math.LegacyNewDecFromBigInt(new(big.Int).SetUint64(f.gas)) // Derive the fees based on the provided gas prices, where // fee = ceil(gasPrice * gasLimit). diff --git a/crypto/keys/bcrypt/bcrypt.go b/crypto/keys/bcrypt/bcrypt.go index f4f62d500cf7..75d9e99d43fd 100644 --- a/crypto/keys/bcrypt/bcrypt.go +++ b/crypto/keys/bcrypt/bcrypt.go @@ -268,7 +268,7 @@ func (p *hashed) decodeVersion(sbytes []byte) (int, error) { // sbytes should begin where decodeVersion left off. func (p *hashed) decodeCost(sbytes []byte) (int, error) { - cost, err := strconv.Atoi(string(sbytes[0:2])) + cost, err := strconv.ParseUint(string(sbytes[0:2]), 10, 32) if err != nil { return -1, err } From a58e7ee364160e22c97d1a7779d9ca9a5810e8ae Mon Sep 17 00:00:00 2001 From: marcello33 Date: Thu, 13 Feb 2025 09:26:44 +0100 Subject: [PATCH 05/12] POS-2822: bump deps --- store/go.mod | 8 ++++---- store/go.sum | 16 ++++++++-------- tools/cosmovisor/go.mod | 12 ++++++------ tools/cosmovisor/go.sum | 20 ++++++++++---------- x/tx/go.mod | 6 +++--- x/tx/go.sum | 12 ++++++------ 6 files changed, 37 insertions(+), 37 deletions(-) diff --git a/store/go.mod b/store/go.mod index 9be34352f102..23604849984f 100644 --- a/store/go.mod +++ b/store/go.mod @@ -6,7 +6,7 @@ require ( cosmossdk.io/errors v1.0.0 cosmossdk.io/log v1.4.1 cosmossdk.io/math v1.4.0 - github.com/cometbft/cometbft v0.38.15 + github.com/cometbft/cometbft v0.38.17 github.com/cosmos/cosmos-db v1.0.2 github.com/cosmos/gogoproto v1.7.0 github.com/cosmos/iavl v1.2.0 @@ -73,10 +73,10 @@ require ( github.com/rs/zerolog v1.33.0 // indirect github.com/sasha-s/go-deadlock v0.3.5 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect - golang.org/x/crypto v0.28.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/net v0.30.0 // indirect - golang.org/x/sys v0.26.0 // indirect - golang.org/x/text v0.19.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/text v0.21.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/store/go.sum b/store/go.sum index f26d9484258d..97ad21d41095 100644 --- a/store/go.sum +++ b/store/go.sum @@ -268,8 +268,8 @@ golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnf golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= -golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= @@ -296,8 +296,8 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -328,16 +328,16 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= -golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= diff --git a/tools/cosmovisor/go.mod b/tools/cosmovisor/go.mod index d22b0b959b3e..ff144c20ba78 100644 --- a/tools/cosmovisor/go.mod +++ b/tools/cosmovisor/go.mod @@ -43,7 +43,7 @@ require ( github.com/cockroachdb/pebble v1.1.2 // indirect github.com/cockroachdb/redact v1.1.5 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect - github.com/cometbft/cometbft v0.38.15 // indirect + github.com/cometbft/cometbft v0.38.17 // indirect github.com/cometbft/cometbft-db v0.14.1 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/cosmos-db v1.0.2 // indirect @@ -164,14 +164,14 @@ require ( go.opentelemetry.io/otel/sdk v1.29.0 // indirect go.opentelemetry.io/otel/trace v1.29.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.28.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/net v0.30.0 // indirect golang.org/x/oauth2 v0.23.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.26.0 // indirect - golang.org/x/term v0.25.0 // indirect - golang.org/x/text v0.19.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/time v0.5.0 // indirect google.golang.org/api v0.171.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect diff --git a/tools/cosmovisor/go.sum b/tools/cosmovisor/go.sum index 731a9f23d0ae..da50662ab53e 100644 --- a/tools/cosmovisor/go.sum +++ b/tools/cosmovisor/go.sum @@ -1031,8 +1031,8 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= -golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1174,8 +1174,8 @@ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1267,13 +1267,13 @@ golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= -golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1284,8 +1284,8 @@ golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= -golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= diff --git a/x/tx/go.mod b/x/tx/go.mod index 82c90d92d51b..e5e56d85ee7f 100644 --- a/x/tx/go.mod +++ b/x/tx/go.mod @@ -25,11 +25,11 @@ require ( github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/holiman/uint256 v1.2.4 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect - golang.org/x/crypto v0.25.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/net v0.27.0 // indirect - golang.org/x/sys v0.22.0 // indirect - golang.org/x/text v0.16.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/text v0.21.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240520151616-dc85e6b867a5 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240709173604-40e1e62336c5 // indirect google.golang.org/grpc v1.64.1 // indirect diff --git a/x/tx/go.sum b/x/tx/go.sum index 7ad5a28879b4..5ac0ba66a393 100644 --- a/x/tx/go.sum +++ b/x/tx/go.sum @@ -45,8 +45,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= -golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30= -golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -54,10 +54,10 @@ golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= -golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto/googleapis/api v0.0.0-20240520151616-dc85e6b867a5 h1:P8OJ/WCl/Xo4E4zoe4/bifHpSmmKwARqyqE4nW6J2GQ= google.golang.org/genproto/googleapis/api v0.0.0-20240520151616-dc85e6b867a5/go.mod h1:RGnPtTG7r4i8sPlNyDeikXF99hMM+hN6QMm4ooG9g2g= From bd72c00a8485802cdd4aeffda1b2227e9ff01766 Mon Sep 17 00:00:00 2001 From: marcello33 Date: Thu, 13 Feb 2025 09:32:32 +0100 Subject: [PATCH 06/12] POS-2822: bump tx dep --- client/v2/go.mod | 2 +- go.mod | 2 +- simapp/go.mod | 2 +- tests/go.mod | 2 +- tools/confix/go.mod | 2 +- tools/cosmovisor/go.mod | 2 +- tools/hubl/go.mod | 2 +- x/circuit/go.mod | 2 +- x/evidence/go.mod | 2 +- x/evidence/go.sum | 4 ++-- x/feegrant/go.mod | 2 +- x/nft/go.mod | 2 +- x/upgrade/go.mod | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) diff --git a/client/v2/go.mod b/client/v2/go.mod index 9ced742e9269..afaf8d5b10ed 100644 --- a/client/v2/go.mod +++ b/client/v2/go.mod @@ -7,7 +7,7 @@ require ( cosmossdk.io/core v0.11.1 cosmossdk.io/depinject v1.0.0 cosmossdk.io/math v1.4.0 - cosmossdk.io/x/tx v0.13.6 + cosmossdk.io/x/tx v0.13.7 github.com/cockroachdb/errors v1.11.3 github.com/cosmos/cosmos-proto v1.0.0-beta.5 github.com/cosmos/cosmos-sdk v0.50.10 diff --git a/go.mod b/go.mod index 61d39e5e6530..3c1c39b72ef2 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( cosmossdk.io/log v1.4.1 cosmossdk.io/math v1.4.0 cosmossdk.io/store v1.1.1 - cosmossdk.io/x/tx v0.13.5 + cosmossdk.io/x/tx v0.13.7 github.com/0xPolygon/heimdall-v2 v0.0.0-20250120065205-95de2e36b02f github.com/99designs/keyring v1.2.1 github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 diff --git a/simapp/go.mod b/simapp/go.mod index 3e221547526c..4abaafcfad25 100644 --- a/simapp/go.mod +++ b/simapp/go.mod @@ -16,7 +16,7 @@ require ( cosmossdk.io/x/evidence v0.1.1 cosmossdk.io/x/feegrant v0.1.1 cosmossdk.io/x/nft v0.1.1 - cosmossdk.io/x/tx v0.13.5 + cosmossdk.io/x/tx v0.13.7 cosmossdk.io/x/upgrade v0.1.4 github.com/0xPolygon/heimdall-v2 v0.0.0-20250120065205-95de2e36b02f github.com/cometbft/cometbft v0.38.17 diff --git a/tests/go.mod b/tests/go.mod index 739151327b8b..cd1989ffa117 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -14,7 +14,7 @@ require ( cosmossdk.io/x/evidence v0.1.1 cosmossdk.io/x/feegrant v0.1.1 cosmossdk.io/x/nft v0.1.1 // indirect - cosmossdk.io/x/tx v0.13.6 + cosmossdk.io/x/tx v0.13.7 cosmossdk.io/x/upgrade v0.1.4 github.com/0xPolygon/heimdall-v2 v0.0.0-20250120065205-95de2e36b02f github.com/cometbft/cometbft v0.38.17 diff --git a/tools/confix/go.mod b/tools/confix/go.mod index 694f8e2c3c66..51df268fafa9 100644 --- a/tools/confix/go.mod +++ b/tools/confix/go.mod @@ -22,7 +22,7 @@ require ( cosmossdk.io/log v1.4.1 // indirect cosmossdk.io/math v1.4.0 // indirect cosmossdk.io/store v1.1.1 // indirect - cosmossdk.io/x/tx v0.13.6 // indirect + cosmossdk.io/x/tx v0.13.7 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/0xPolygon/heimdall-v2 v0.0.0-20250120065205-95de2e36b02f // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect diff --git a/tools/cosmovisor/go.mod b/tools/cosmovisor/go.mod index ff144c20ba78..b61e8616fa45 100644 --- a/tools/cosmovisor/go.mod +++ b/tools/cosmovisor/go.mod @@ -23,7 +23,7 @@ require ( cosmossdk.io/errors v1.0.1 // indirect cosmossdk.io/math v1.4.0 // indirect cosmossdk.io/store v1.1.1 // indirect - cosmossdk.io/x/tx v0.13.5 // indirect + cosmossdk.io/x/tx v0.13.7 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.1 // indirect diff --git a/tools/hubl/go.mod b/tools/hubl/go.mod index 474019eaef7e..23d53778277d 100644 --- a/tools/hubl/go.mod +++ b/tools/hubl/go.mod @@ -22,7 +22,7 @@ require ( cosmossdk.io/log v1.4.1 // indirect cosmossdk.io/math v1.4.0 // indirect cosmossdk.io/store v1.1.1 // indirect - cosmossdk.io/x/tx v0.13.6 // indirect + cosmossdk.io/x/tx v0.13.7 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.1 // indirect diff --git a/x/circuit/go.mod b/x/circuit/go.mod index 74ec9f72cc82..3c920c2556fe 100644 --- a/x/circuit/go.mod +++ b/x/circuit/go.mod @@ -23,7 +23,7 @@ require ( require ( cosmossdk.io/log v1.4.1 // indirect cosmossdk.io/math v1.4.0 // indirect - cosmossdk.io/x/tx v0.13.5 // indirect + cosmossdk.io/x/tx v0.13.7 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/0xPolygon/heimdall-v2 v0.0.0-20250120065205-95de2e36b02f // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect diff --git a/x/evidence/go.mod b/x/evidence/go.mod index ae63ea91ec38..44ac0b72519d 100644 --- a/x/evidence/go.mod +++ b/x/evidence/go.mod @@ -26,7 +26,7 @@ require ( ) require ( - cosmossdk.io/x/tx v0.13.5 // indirect + cosmossdk.io/x/tx v0.13.7 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/0xPolygon/heimdall-v2 v0.0.0-20250120065205-95de2e36b02f // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect diff --git a/x/evidence/go.sum b/x/evidence/go.sum index 7994e0059e10..cc8d13d7691f 100644 --- a/x/evidence/go.sum +++ b/x/evidence/go.sum @@ -2,8 +2,8 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cosmossdk.io/client/v2 v2.0.0-beta.4.0.20240918122632-1879050ca719 h1:w57wGtZYx1O24WIaFLMK+ZEjQuZzLFUN3hiYf/+H4mk= cosmossdk.io/client/v2 v2.0.0-beta.4.0.20240918122632-1879050ca719/go.mod h1:4p0P6o0ro+FizakJUYS9SeM94RNbv0thLmkHRw5o5as= -cosmossdk.io/x/tx v0.13.5 h1:FdnU+MdmFWn1pTsbfU0OCf2u6mJ8cqc1H4OMG418MLw= -cosmossdk.io/x/tx v0.13.5/go.mod h1:V6DImnwJMTq5qFjeGWpXNiT/fjgE4HtmclRmTqRVM3w= +cosmossdk.io/x/tx v0.13.7 h1:8WSk6B/OHJLYjiZeMKhq7DK7lHDMyK0UfDbBMxVmeOI= +cosmossdk.io/x/tx v0.13.7/go.mod h1:V6DImnwJMTq5qFjeGWpXNiT/fjgE4HtmclRmTqRVM3w= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek= filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= diff --git a/x/feegrant/go.mod b/x/feegrant/go.mod index af6f24ff3a57..45e28fe14423 100644 --- a/x/feegrant/go.mod +++ b/x/feegrant/go.mod @@ -27,7 +27,7 @@ require ( require ( cosmossdk.io/collections v0.4.0 // indirect - cosmossdk.io/x/tx v0.13.6 // indirect + cosmossdk.io/x/tx v0.13.7 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/0xPolygon/heimdall-v2 v0.0.0-20250120065205-95de2e36b02f // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect diff --git a/x/nft/go.mod b/x/nft/go.mod index 84323a26dd4b..0c475f6fe841 100644 --- a/x/nft/go.mod +++ b/x/nft/go.mod @@ -24,7 +24,7 @@ require ( require ( cosmossdk.io/collections v0.4.0 // indirect - cosmossdk.io/x/tx v0.13.5 // indirect + cosmossdk.io/x/tx v0.13.7 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/0xPolygon/heimdall-v2 v0.0.0-20250120065205-95de2e36b02f // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect diff --git a/x/upgrade/go.mod b/x/upgrade/go.mod index 9f1ceae3ff2b..c948cf00bfec 100644 --- a/x/upgrade/go.mod +++ b/x/upgrade/go.mod @@ -36,7 +36,7 @@ require ( cloud.google.com/go/storage v1.38.0 // indirect cosmossdk.io/collections v0.4.0 // indirect cosmossdk.io/math v1.4.0 // indirect - cosmossdk.io/x/tx v0.13.6 // indirect + cosmossdk.io/x/tx v0.13.7 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/0xPolygon/heimdall-v2 v0.0.0-20250120065205-95de2e36b02f // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect From d06590e35bf653674a2f699133408eef1ea5fcaa Mon Sep 17 00:00:00 2001 From: marcello33 Date: Thu, 13 Feb 2025 09:36:58 +0100 Subject: [PATCH 07/12] POS-2822: bump net dep --- api/go.mod | 6 +++--- api/go.sum | 12 ++++++------ client/v2/go.mod | 2 +- client/v2/go.sum | 4 ++-- collections/go.mod | 6 +++--- collections/go.sum | 16 ++++++++-------- core/go.mod | 6 +++--- core/go.sum | 16 ++++++++-------- errors/go.mod | 3 +-- errors/go.sum | 12 ++++++------ go.mod | 2 +- go.sum | 4 ++-- orm/go.mod | 6 +++--- orm/go.sum | 16 ++++++++-------- simapp/go.mod | 2 +- simapp/go.sum | 4 ++-- store/go.mod | 2 +- store/go.sum | 4 ++-- tests/go.mod | 2 +- tests/go.sum | 4 ++-- tools/confix/go.mod | 2 +- tools/confix/go.sum | 4 ++-- tools/cosmovisor/go.mod | 2 +- tools/cosmovisor/go.sum | 4 ++-- tools/hubl/go.mod | 2 +- tools/hubl/go.sum | 4 ++-- x/circuit/go.mod | 2 +- x/circuit/go.sum | 4 ++-- x/evidence/go.mod | 2 +- x/evidence/go.sum | 4 ++-- x/feegrant/go.mod | 2 +- x/feegrant/go.sum | 4 ++-- x/nft/go.mod | 2 +- x/nft/go.sum | 4 ++-- x/tx/go.mod | 2 +- x/tx/go.sum | 4 ++-- x/upgrade/go.mod | 2 +- x/upgrade/go.sum | 4 ++-- 38 files changed, 91 insertions(+), 92 deletions(-) diff --git a/api/go.mod b/api/go.mod index 33dc3b2fb91f..b872933af8f4 100644 --- a/api/go.mod +++ b/api/go.mod @@ -13,9 +13,9 @@ require ( require ( github.com/golang/protobuf v1.5.4 // indirect github.com/google/go-cmp v0.6.0 // indirect - golang.org/x/net v0.20.0 // indirect - golang.org/x/sys v0.16.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/net v0.33.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/text v0.21.0 // indirect google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 // indirect ) diff --git a/api/go.sum b/api/go.sum index e1cbdeef5534..df260090c7aa 100644 --- a/api/go.sum +++ b/api/go.sum @@ -6,12 +6,12 @@ github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= -golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= -golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= -golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80 h1:KAeGQVN3M9nD0/bQXnr/ClcEMJ968gUXJQ9pwfSynuQ= google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80/go.mod h1:cc8bqMqtv9gMOr0zHg2Vzff5ULhhL2IXP4sbcn32Dro= google.golang.org/genproto/googleapis/api v0.0.0-20240123012728-ef4313101c80 h1:Lj5rbfG876hIAYFjqiJnPHfhXbv+nzTWfm04Fg/XSVU= diff --git a/client/v2/go.mod b/client/v2/go.mod index afaf8d5b10ed..6f70784af9c5 100644 --- a/client/v2/go.mod +++ b/client/v2/go.mod @@ -165,7 +165,7 @@ require ( go.uber.org/multierr v1.11.0 // indirect golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/net v0.30.0 // indirect + golang.org/x/net v0.33.0 // indirect golang.org/x/sync v0.10.0 // indirect golang.org/x/sys v0.28.0 // indirect golang.org/x/term v0.27.0 // indirect diff --git a/client/v2/go.sum b/client/v2/go.sum index 431d0fe4a66e..ca9a34bb88b1 100644 --- a/client/v2/go.sum +++ b/client/v2/go.sum @@ -874,8 +874,8 @@ golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= -golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= diff --git a/collections/go.mod b/collections/go.mod index 7e0e8f9840c2..260c4b300031 100644 --- a/collections/go.mod +++ b/collections/go.mod @@ -43,9 +43,9 @@ require ( github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 // indirect - golang.org/x/net v0.27.0 // indirect - golang.org/x/sys v0.22.0 // indirect - golang.org/x/text v0.16.0 // indirect + golang.org/x/net v0.33.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/text v0.21.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240709173604-40e1e62336c5 // indirect google.golang.org/grpc v1.64.1 // indirect google.golang.org/protobuf v1.34.2 // indirect diff --git a/collections/go.sum b/collections/go.sum index 8f680b1216ad..887353aedb89 100644 --- a/collections/go.sum +++ b/collections/go.sum @@ -149,15 +149,15 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= -golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -175,16 +175,16 @@ golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= -golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= diff --git a/core/go.mod b/core/go.mod index ed0d3162a4f0..42237849810d 100644 --- a/core/go.mod +++ b/core/go.mod @@ -45,9 +45,9 @@ require ( github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect - golang.org/x/net v0.27.0 // indirect - golang.org/x/sys v0.22.0 // indirect - golang.org/x/text v0.16.0 // indirect + golang.org/x/net v0.33.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/text v0.21.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240709173604-40e1e62336c5 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/core/go.sum b/core/go.sum index b635aa763ced..93689b5c6086 100644 --- a/core/go.sum +++ b/core/go.sum @@ -149,16 +149,16 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= -golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -175,16 +175,16 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= -golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= diff --git a/errors/go.mod b/errors/go.mod index 8a6981b1708e..10cea8a172e0 100644 --- a/errors/go.mod +++ b/errors/go.mod @@ -14,8 +14,7 @@ require ( github.com/kr/pretty v0.3.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/rogpeppe/go-internal v1.8.1 // indirect - golang.org/x/net v0.9.0 // indirect - golang.org/x/sys v0.8.0 // indirect + golang.org/x/net v0.33.0 // indirect google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect google.golang.org/protobuf v1.33.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect diff --git a/errors/go.sum b/errors/go.sum index 9cbbbadd10e1..229608c2eb26 100644 --- a/errors/go.sum +++ b/errors/go.sum @@ -23,12 +23,12 @@ github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XF github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM= -golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= -golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 h1:KpwkzHKEF7B9Zxg18WzOa7djJ+Ha5DzthMyZYQfEn2A= google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU= google.golang.org/grpc v1.55.0 h1:3Oj82/tFSCeUrRTg/5E/7d/W5A1tj6Ky1ABAuZuv5ag= diff --git a/go.mod b/go.mod index 3c1c39b72ef2..7369bde0ea3c 100644 --- a/go.mod +++ b/go.mod @@ -177,7 +177,7 @@ require ( go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 // indirect go.opencensus.io v0.24.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/net v0.30.0 // indirect + golang.org/x/net v0.33.0 // indirect golang.org/x/sys v0.28.0 // indirect golang.org/x/term v0.27.0 // indirect golang.org/x/text v0.21.0 // indirect diff --git a/go.sum b/go.sum index 7ed70b520812..1011f901189f 100644 --- a/go.sum +++ b/go.sum @@ -871,8 +871,8 @@ golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwY golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= -golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= diff --git a/orm/go.mod b/orm/go.mod index 1cef30b82cfb..263053b15ace 100644 --- a/orm/go.mod +++ b/orm/go.mod @@ -58,9 +58,9 @@ require ( github.com/spf13/cast v1.6.0 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect - golang.org/x/net v0.27.0 // indirect - golang.org/x/sys v0.22.0 // indirect - golang.org/x/text v0.16.0 // indirect + golang.org/x/net v0.33.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/text v0.21.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240709173604-40e1e62336c5 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/orm/go.sum b/orm/go.sum index 2d7150e3d913..9635fb9f398b 100644 --- a/orm/go.sum +++ b/orm/go.sum @@ -180,16 +180,16 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= -golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -209,16 +209,16 @@ golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= -golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= diff --git a/simapp/go.mod b/simapp/go.mod index 4abaafcfad25..9eba70372cf7 100644 --- a/simapp/go.mod +++ b/simapp/go.mod @@ -199,7 +199,7 @@ require ( go.uber.org/multierr v1.11.0 // indirect golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/net v0.30.0 // indirect + golang.org/x/net v0.33.0 // indirect golang.org/x/oauth2 v0.23.0 // indirect golang.org/x/sync v0.10.0 // indirect golang.org/x/sys v0.28.0 // indirect diff --git a/simapp/go.sum b/simapp/go.sum index d59d0e368e3f..a600d561b8a9 100644 --- a/simapp/go.sum +++ b/simapp/go.sum @@ -1247,8 +1247,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= -golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= diff --git a/store/go.mod b/store/go.mod index 23604849984f..42df7d840424 100644 --- a/store/go.mod +++ b/store/go.mod @@ -74,7 +74,7 @@ require ( github.com/sasha-s/go-deadlock v0.3.5 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect golang.org/x/crypto v0.31.0 // indirect - golang.org/x/net v0.30.0 // indirect + golang.org/x/net v0.33.0 // indirect golang.org/x/sys v0.28.0 // indirect golang.org/x/text v0.21.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect diff --git a/store/go.sum b/store/go.sum index 97ad21d41095..bfdef465f256 100644 --- a/store/go.sum +++ b/store/go.sum @@ -287,8 +287,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= -golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= diff --git a/tests/go.mod b/tests/go.mod index cd1989ffa117..946c8a40b4d5 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -199,7 +199,7 @@ require ( go.uber.org/multierr v1.11.0 // indirect golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/net v0.30.0 // indirect + golang.org/x/net v0.33.0 // indirect golang.org/x/oauth2 v0.23.0 // indirect golang.org/x/sync v0.10.0 // indirect golang.org/x/sys v0.28.0 // indirect diff --git a/tests/go.sum b/tests/go.sum index af205003910f..b0f13a062d07 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -1247,8 +1247,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= -golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= diff --git a/tools/confix/go.mod b/tools/confix/go.mod index 51df268fafa9..021c412a590d 100644 --- a/tools/confix/go.mod +++ b/tools/confix/go.mod @@ -164,7 +164,7 @@ require ( go.opencensus.io v0.24.0 // indirect go.uber.org/multierr v1.11.0 // indirect golang.org/x/crypto v0.31.0 // indirect - golang.org/x/net v0.30.0 // indirect + golang.org/x/net v0.33.0 // indirect golang.org/x/sync v0.10.0 // indirect golang.org/x/sys v0.28.0 // indirect golang.org/x/term v0.27.0 // indirect diff --git a/tools/confix/go.sum b/tools/confix/go.sum index 23dc2b3655c9..b567b514da39 100644 --- a/tools/confix/go.sum +++ b/tools/confix/go.sum @@ -880,8 +880,8 @@ golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= -golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= diff --git a/tools/cosmovisor/go.mod b/tools/cosmovisor/go.mod index b61e8616fa45..d8ea523885d2 100644 --- a/tools/cosmovisor/go.mod +++ b/tools/cosmovisor/go.mod @@ -166,7 +166,7 @@ require ( go.uber.org/multierr v1.11.0 // indirect golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/net v0.30.0 // indirect + golang.org/x/net v0.33.0 // indirect golang.org/x/oauth2 v0.23.0 // indirect golang.org/x/sync v0.10.0 // indirect golang.org/x/sys v0.28.0 // indirect diff --git a/tools/cosmovisor/go.sum b/tools/cosmovisor/go.sum index da50662ab53e..ae109a260abc 100644 --- a/tools/cosmovisor/go.sum +++ b/tools/cosmovisor/go.sum @@ -1131,8 +1131,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= -golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= diff --git a/tools/hubl/go.mod b/tools/hubl/go.mod index 23d53778277d..0537a7129c59 100644 --- a/tools/hubl/go.mod +++ b/tools/hubl/go.mod @@ -144,7 +144,7 @@ require ( go.uber.org/multierr v1.11.0 // indirect golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/net v0.30.0 // indirect + golang.org/x/net v0.33.0 // indirect golang.org/x/sync v0.10.0 // indirect golang.org/x/sys v0.28.0 // indirect golang.org/x/term v0.27.0 // indirect diff --git a/tools/hubl/go.sum b/tools/hubl/go.sum index f0fc664b5dca..9d197701c4b9 100644 --- a/tools/hubl/go.sum +++ b/tools/hubl/go.sum @@ -836,8 +836,8 @@ golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= -golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= diff --git a/x/circuit/go.mod b/x/circuit/go.mod index 3c920c2556fe..49ebca5e2ec9 100644 --- a/x/circuit/go.mod +++ b/x/circuit/go.mod @@ -163,7 +163,7 @@ require ( go.uber.org/multierr v1.11.0 // indirect golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/net v0.30.0 // indirect + golang.org/x/net v0.33.0 // indirect golang.org/x/sync v0.10.0 // indirect golang.org/x/sys v0.28.0 // indirect golang.org/x/term v0.27.0 // indirect diff --git a/x/circuit/go.sum b/x/circuit/go.sum index 7db861168500..d1705a4d77e7 100644 --- a/x/circuit/go.sum +++ b/x/circuit/go.sum @@ -876,8 +876,8 @@ golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= -golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= diff --git a/x/evidence/go.mod b/x/evidence/go.mod index 44ac0b72519d..c325c3867174 100644 --- a/x/evidence/go.mod +++ b/x/evidence/go.mod @@ -164,7 +164,7 @@ require ( go.uber.org/multierr v1.11.0 // indirect golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/net v0.30.0 // indirect + golang.org/x/net v0.33.0 // indirect golang.org/x/sync v0.10.0 // indirect golang.org/x/sys v0.28.0 // indirect golang.org/x/term v0.27.0 // indirect diff --git a/x/evidence/go.sum b/x/evidence/go.sum index cc8d13d7691f..b6b568f90aa3 100644 --- a/x/evidence/go.sum +++ b/x/evidence/go.sum @@ -876,8 +876,8 @@ golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= -golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= diff --git a/x/feegrant/go.mod b/x/feegrant/go.mod index 45e28fe14423..abc27775efc1 100644 --- a/x/feegrant/go.mod +++ b/x/feegrant/go.mod @@ -167,7 +167,7 @@ require ( go.uber.org/multierr v1.11.0 // indirect golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/net v0.30.0 // indirect + golang.org/x/net v0.33.0 // indirect golang.org/x/sync v0.10.0 // indirect golang.org/x/sys v0.28.0 // indirect golang.org/x/term v0.27.0 // indirect diff --git a/x/feegrant/go.sum b/x/feegrant/go.sum index de799d6fb5b4..cb5ab9811500 100644 --- a/x/feegrant/go.sum +++ b/x/feegrant/go.sum @@ -880,8 +880,8 @@ golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= -golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= diff --git a/x/nft/go.mod b/x/nft/go.mod index 0c475f6fe841..136b8f427c02 100644 --- a/x/nft/go.mod +++ b/x/nft/go.mod @@ -163,7 +163,7 @@ require ( go.uber.org/multierr v1.11.0 // indirect golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/net v0.30.0 // indirect + golang.org/x/net v0.33.0 // indirect golang.org/x/sync v0.10.0 // indirect golang.org/x/sys v0.28.0 // indirect golang.org/x/term v0.27.0 // indirect diff --git a/x/nft/go.sum b/x/nft/go.sum index 7db861168500..d1705a4d77e7 100644 --- a/x/nft/go.sum +++ b/x/nft/go.sum @@ -876,8 +876,8 @@ golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= -golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= diff --git a/x/tx/go.mod b/x/tx/go.mod index e5e56d85ee7f..70c3791918a5 100644 --- a/x/tx/go.mod +++ b/x/tx/go.mod @@ -27,7 +27,7 @@ require ( github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/net v0.27.0 // indirect + golang.org/x/net v0.33.0 // indirect golang.org/x/sys v0.28.0 // indirect golang.org/x/text v0.21.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240520151616-dc85e6b867a5 // indirect diff --git a/x/tx/go.sum b/x/tx/go.sum index 5ac0ba66a393..de75780fa471 100644 --- a/x/tx/go.sum +++ b/x/tx/go.sum @@ -50,8 +50,8 @@ golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ss golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= -golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= diff --git a/x/upgrade/go.mod b/x/upgrade/go.mod index c948cf00bfec..b7a0d0bf06e0 100644 --- a/x/upgrade/go.mod +++ b/x/upgrade/go.mod @@ -189,7 +189,7 @@ require ( go.uber.org/multierr v1.11.0 // indirect golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/net v0.30.0 // indirect + golang.org/x/net v0.33.0 // indirect golang.org/x/oauth2 v0.23.0 // indirect golang.org/x/sync v0.10.0 // indirect golang.org/x/sys v0.28.0 // indirect diff --git a/x/upgrade/go.sum b/x/upgrade/go.sum index 03fd331ce3f5..6e7f8b4f9585 100644 --- a/x/upgrade/go.sum +++ b/x/upgrade/go.sum @@ -1237,8 +1237,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= -golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= From ca93fc56aa584e58aa169e51b7a34fea98109dc7 Mon Sep 17 00:00:00 2001 From: marcello33 Date: Thu, 13 Feb 2025 09:38:46 +0100 Subject: [PATCH 08/12] POS-2822: bump cosmos-sdk --- client/v2/go.mod | 2 +- simapp/go.mod | 2 +- tests/go.mod | 2 +- tools/confix/go.mod | 2 +- tools/cosmovisor/go.mod | 16 ++++++++-------- tools/cosmovisor/go.sum | 24 ++++++++++++------------ tools/hubl/go.mod | 2 +- x/circuit/go.mod | 2 +- x/evidence/go.mod | 2 +- x/feegrant/go.mod | 2 +- x/nft/go.mod | 2 +- x/upgrade/go.mod | 2 +- 12 files changed, 30 insertions(+), 30 deletions(-) diff --git a/client/v2/go.mod b/client/v2/go.mod index 6f70784af9c5..3b43abcf7eec 100644 --- a/client/v2/go.mod +++ b/client/v2/go.mod @@ -10,7 +10,7 @@ require ( cosmossdk.io/x/tx v0.13.7 github.com/cockroachdb/errors v1.11.3 github.com/cosmos/cosmos-proto v1.0.0-beta.5 - github.com/cosmos/cosmos-sdk v0.50.10 + github.com/cosmos/cosmos-sdk v0.50.11 github.com/spf13/cobra v1.8.1 github.com/spf13/pflag v1.0.5 github.com/stretchr/testify v1.9.0 diff --git a/simapp/go.mod b/simapp/go.mod index 9eba70372cf7..f6b095ad16da 100644 --- a/simapp/go.mod +++ b/simapp/go.mod @@ -22,7 +22,7 @@ require ( github.com/cometbft/cometbft v0.38.17 github.com/cosmos/cosmos-db v1.0.2 // this version is not used as it is always replaced by the latest Cosmos SDK version - github.com/cosmos/cosmos-sdk v0.50.10 + github.com/cosmos/cosmos-sdk v0.50.11 github.com/cosmos/gogoproto v1.7.0 github.com/ethereum/go-ethereum v1.15.0 github.com/golang/mock v1.6.0 diff --git a/tests/go.mod b/tests/go.mod index 946c8a40b4d5..273fe9cd1214 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -21,7 +21,7 @@ require ( github.com/cosmos/cosmos-db v1.0.2 github.com/cosmos/cosmos-proto v1.0.0-beta.5 // this version is not used as it is always replaced by the latest Cosmos SDK version - github.com/cosmos/cosmos-sdk v0.50.10 + github.com/cosmos/cosmos-sdk v0.50.11 github.com/cosmos/gogoproto v1.7.0 github.com/ethereum/go-ethereum v1.15.0 github.com/golang/mock v1.6.0 diff --git a/tools/confix/go.mod b/tools/confix/go.mod index 021c412a590d..821e9365c0e2 100644 --- a/tools/confix/go.mod +++ b/tools/confix/go.mod @@ -3,7 +3,7 @@ module cosmossdk.io/tools/confix go 1.23.6 require ( - github.com/cosmos/cosmos-sdk v0.50.10 + github.com/cosmos/cosmos-sdk v0.50.11 github.com/creachadair/atomicfile v0.3.1 github.com/creachadair/tomledit v0.0.24 github.com/pelletier/go-toml/v2 v2.2.2 diff --git a/tools/cosmovisor/go.mod b/tools/cosmovisor/go.mod index d8ea523885d2..eb7968604e87 100644 --- a/tools/cosmovisor/go.mod +++ b/tools/cosmovisor/go.mod @@ -16,10 +16,10 @@ require ( cloud.google.com/go/compute/metadata v0.5.0 // indirect cloud.google.com/go/iam v1.1.6 // indirect cloud.google.com/go/storage v1.38.0 // indirect - cosmossdk.io/api v0.7.5 // indirect + cosmossdk.io/api v0.7.6 // indirect cosmossdk.io/collections v0.4.0 // indirect cosmossdk.io/core v0.11.1 // indirect - cosmossdk.io/depinject v1.0.0 // indirect + cosmossdk.io/depinject v1.1.0 // indirect cosmossdk.io/errors v1.0.1 // indirect cosmossdk.io/math v1.4.0 // indirect cosmossdk.io/store v1.1.1 // indirect @@ -46,13 +46,13 @@ require ( github.com/cometbft/cometbft v0.38.17 // indirect github.com/cometbft/cometbft-db v0.14.1 // indirect github.com/cosmos/btcutil v1.0.5 // indirect - github.com/cosmos/cosmos-db v1.0.2 // indirect + github.com/cosmos/cosmos-db v1.1.0 // indirect github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect - github.com/cosmos/cosmos-sdk v0.50.10 // indirect + github.com/cosmos/cosmos-sdk v0.50.11 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/gogoproto v1.7.0 // indirect - github.com/cosmos/iavl v1.2.0 // indirect + github.com/cosmos/iavl v1.2.2 // indirect github.com/cosmos/ics23/go v0.11.0 // indirect github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/danieljoos/wincred v1.2.1 // indirect @@ -63,7 +63,7 @@ require ( github.com/dgraph-io/ristretto v0.1.1 // indirect github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.7.0 // indirect - github.com/emicklei/dot v1.6.1 // indirect + github.com/emicklei/dot v1.6.2 // indirect github.com/ethereum/go-ethereum v1.14.12 // indirect github.com/fatih/color v1.17.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect @@ -144,7 +144,7 @@ require ( github.com/sasha-s/go-deadlock v0.3.5 // indirect github.com/sourcegraph/conc v0.3.0 // indirect github.com/spf13/afero v1.11.0 // indirect - github.com/spf13/cast v1.6.0 // indirect + github.com/spf13/cast v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/spf13/viper v1.19.0 // indirect github.com/subosito/gotenv v1.6.0 // indirect @@ -176,7 +176,7 @@ require ( google.golang.org/api v0.171.0 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240822170219-fc7c04adadcd // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240930140551-af27646dc61f // indirect google.golang.org/grpc v1.67.1 // indirect google.golang.org/protobuf v1.35.1 // indirect gopkg.in/ini.v1 v1.67.0 // indirect diff --git a/tools/cosmovisor/go.sum b/tools/cosmovisor/go.sum index ae109a260abc..766d2515a313 100644 --- a/tools/cosmovisor/go.sum +++ b/tools/cosmovisor/go.sum @@ -313,12 +313,12 @@ github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSV github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= -github.com/cosmos/cosmos-db v1.0.2 h1:hwMjozuY1OlJs/uh6vddqnk9j7VamLv+0DBlbEXbAKs= -github.com/cosmos/cosmos-db v1.0.2/go.mod h1:Z8IXcFJ9PqKK6BIsVOB3QXtkKoqUOp1vRvPT39kOXEA= +github.com/cosmos/cosmos-db v1.1.0 h1:KLHNVQ73h7vawXTpj9UJ7ZR2IXv51tsEHkQJJ9EBDzI= +github.com/cosmos/cosmos-db v1.1.0/go.mod h1:t7c4A6cfGdpUwwVxrQ0gQLeRQqGUBJu0yvE4F/26REg= github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= -github.com/cosmos/cosmos-sdk v0.50.10 h1:zXfeu/z653tWZARr/jESzAEiCUYjgJwwG4ytnYWMoDM= -github.com/cosmos/cosmos-sdk v0.50.10/go.mod h1:6Eesrx3ZE7vxBZWpK++30H+Uc7Q4ahQWCL7JKU/LEdU= +github.com/cosmos/cosmos-sdk v0.50.11 h1:LxR1aAc8kixdrs3itO+3a44sFoc+vjxVAOyPFx22yjk= +github.com/cosmos/cosmos-sdk v0.50.11/go.mod h1:gt14Meok2IDCjbDtjwkbUcgVNEpUBDN/4hg9cCUtLgw= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= @@ -326,8 +326,8 @@ github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU= github.com/cosmos/gogoproto v1.7.0 h1:79USr0oyXAbxg3rspGh/m4SWNyoz/GLaAh0QlCe2fro= github.com/cosmos/gogoproto v1.7.0/go.mod h1:yWChEv5IUEYURQasfyBW5ffkMHR/90hiHgbNgrtp4j0= -github.com/cosmos/iavl v1.2.0 h1:kVxTmjTh4k0Dh1VNL046v6BXqKziqMDzxo93oh3kOfM= -github.com/cosmos/iavl v1.2.0/go.mod h1:HidWWLVAtODJqFD6Hbne2Y0q3SdxByJepHUOeoH4LiI= +github.com/cosmos/iavl v1.2.2 h1:qHhKW3I70w+04g5KdsdVSHRbFLgt3yY3qTMd4Xa4rC8= +github.com/cosmos/iavl v1.2.2/go.mod h1:GiM43q0pB+uG53mLxLDzimxM9l/5N9UuSY3/D0huuVw= github.com/cosmos/ics23/go v0.11.0 h1:jk5skjT0TqX5e5QJbEnwXIS2yI2vnmLOgpQPeM5RtnU= github.com/cosmos/ics23/go v0.11.0/go.mod h1:A8OjxPE67hHST4Icw94hOxxFEJMBG031xIGF/JHNIY0= github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= @@ -366,8 +366,8 @@ github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5m github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= -github.com/emicklei/dot v1.6.1 h1:ujpDlBkkwgWUY+qPId5IwapRW/xEoligRSYjioR6DFI= -github.com/emicklei/dot v1.6.1/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= +github.com/emicklei/dot v1.6.2 h1:08GN+DD79cy/tzN6uLCT84+2Wk9u+wvqP+Hkx/dIR8A= +github.com/emicklei/dot v1.6.2/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= @@ -917,8 +917,8 @@ github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIK github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= -github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= -github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= +github.com/spf13/cast v1.7.0 h1:ntdiHjuueXFgm5nzDRdOS4yfT43P5Fnud6DH50rz/7w= +github.com/spf13/cast v1.7.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= @@ -1534,8 +1534,8 @@ google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de h1:F6qOa9AZTYJXOUE google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:VUhTRKeHn9wwcdrk73nvdC9gF178Tzhmt/qyaFcPLSo= google.golang.org/genproto/googleapis/api v0.0.0-20240822170219-fc7c04adadcd h1:BBOTEWLuuEGQy9n1y9MhVJ9Qt0BDu21X8qZs71/uPZo= google.golang.org/genproto/googleapis/api v0.0.0-20240822170219-fc7c04adadcd/go.mod h1:fO8wJzT2zbQbAjbIoos1285VfEIYKDDY+Dt+WpTkh6g= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd h1:6TEm2ZxXoQmFWFlt1vNxvVOa1Q0dXFQD1m/rYjXmS0E= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240930140551-af27646dc61f h1:cUMEy+8oS78BWIH9OWazBkzbr090Od9tWBNtZHkOhf0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240930140551-af27646dc61f/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= diff --git a/tools/hubl/go.mod b/tools/hubl/go.mod index 0537a7129c59..f0b100870dd8 100644 --- a/tools/hubl/go.mod +++ b/tools/hubl/go.mod @@ -7,7 +7,7 @@ require ( cosmossdk.io/client/v2 v2.0.0-beta.4.0.20240918122632-1879050ca719 cosmossdk.io/errors v1.0.1 github.com/cockroachdb/errors v1.11.3 - github.com/cosmos/cosmos-sdk v0.50.10 + github.com/cosmos/cosmos-sdk v0.50.11 github.com/manifoldco/promptui v0.9.0 github.com/pelletier/go-toml/v2 v2.2.2 github.com/spf13/cobra v1.8.1 diff --git a/x/circuit/go.mod b/x/circuit/go.mod index 49ebca5e2ec9..70c1c8b32931 100644 --- a/x/circuit/go.mod +++ b/x/circuit/go.mod @@ -11,7 +11,7 @@ require ( cosmossdk.io/store v1.1.1 github.com/cockroachdb/errors v1.11.3 github.com/cometbft/cometbft v0.38.17 - github.com/cosmos/cosmos-sdk v0.50.10 + github.com/cosmos/cosmos-sdk v0.50.11 github.com/cosmos/gogoproto v1.7.0 github.com/golang/protobuf v1.5.4 github.com/grpc-ecosystem/grpc-gateway v1.16.0 diff --git a/x/evidence/go.mod b/x/evidence/go.mod index c325c3867174..919ede61e836 100644 --- a/x/evidence/go.mod +++ b/x/evidence/go.mod @@ -13,7 +13,7 @@ require ( cosmossdk.io/store v1.1.1 github.com/cometbft/cometbft v0.38.17 github.com/cosmos/cosmos-proto v1.0.0-beta.5 - github.com/cosmos/cosmos-sdk v0.50.10 + github.com/cosmos/cosmos-sdk v0.50.11 github.com/cosmos/gogoproto v1.7.0 github.com/golang/mock v1.6.0 github.com/golang/protobuf v1.5.4 diff --git a/x/feegrant/go.mod b/x/feegrant/go.mod index abc27775efc1..3dda13e97a29 100644 --- a/x/feegrant/go.mod +++ b/x/feegrant/go.mod @@ -12,7 +12,7 @@ require ( cosmossdk.io/store v1.1.1 github.com/cometbft/cometbft v0.38.17 github.com/cosmos/cosmos-proto v1.0.0-beta.5 - github.com/cosmos/cosmos-sdk v0.50.10 + github.com/cosmos/cosmos-sdk v0.50.11 github.com/cosmos/gogoproto v1.7.0 github.com/golang/mock v1.6.0 github.com/golang/protobuf v1.5.4 diff --git a/x/nft/go.mod b/x/nft/go.mod index 136b8f427c02..0808eec595b4 100644 --- a/x/nft/go.mod +++ b/x/nft/go.mod @@ -12,7 +12,7 @@ require ( cosmossdk.io/store v1.1.1 github.com/cometbft/cometbft v0.38.17 github.com/cosmos/cosmos-proto v1.0.0-beta.5 - github.com/cosmos/cosmos-sdk v0.50.10 + github.com/cosmos/cosmos-sdk v0.50.11 github.com/cosmos/gogoproto v1.7.0 github.com/golang/mock v1.6.0 github.com/golang/protobuf v1.5.4 diff --git a/x/upgrade/go.mod b/x/upgrade/go.mod index b7a0d0bf06e0..a655c4dec747 100644 --- a/x/upgrade/go.mod +++ b/x/upgrade/go.mod @@ -12,7 +12,7 @@ require ( github.com/cometbft/cometbft v0.38.17 github.com/cosmos/cosmos-db v1.0.2 github.com/cosmos/cosmos-proto v1.0.0-beta.5 - github.com/cosmos/cosmos-sdk v0.50.10 + github.com/cosmos/cosmos-sdk v0.50.11 github.com/cosmos/gogoproto v1.7.0 github.com/golang/protobuf v1.5.4 github.com/grpc-ecosystem/grpc-gateway v1.16.0 From b6a4f5d743399f687a90a7d666a86c39c45c95ea Mon Sep 17 00:00:00 2001 From: marcello33 Date: Thu, 13 Feb 2025 09:50:10 +0100 Subject: [PATCH 09/12] POS-2822: bump grpc --- errors/go.mod | 2 +- errors/go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/errors/go.mod b/errors/go.mod index 10cea8a172e0..80ebb46e738e 100644 --- a/errors/go.mod +++ b/errors/go.mod @@ -5,7 +5,7 @@ go 1.23.2 require ( github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.8.4 - google.golang.org/grpc v1.55.0 + google.golang.org/grpc v1.56.3 ) require ( diff --git a/errors/go.sum b/errors/go.sum index 229608c2eb26..c66040e71a41 100644 --- a/errors/go.sum +++ b/errors/go.sum @@ -31,8 +31,8 @@ golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 h1:KpwkzHKEF7B9Zxg18WzOa7djJ+Ha5DzthMyZYQfEn2A= google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU= -google.golang.org/grpc v1.55.0 h1:3Oj82/tFSCeUrRTg/5E/7d/W5A1tj6Ky1ABAuZuv5ag= -google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= +google.golang.org/grpc v1.56.3 h1:8I4C0Yq1EjstUzUJzpcRVbuYA2mODtEmpWiQoN/b2nc= +google.golang.org/grpc v1.56.3/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= From 30e151121449e3ee50df1e143ff9b180ab5ab56a Mon Sep 17 00:00:00 2001 From: marcello33 Date: Thu, 13 Feb 2025 09:56:42 +0100 Subject: [PATCH 10/12] POS-2822: bump go-getter --- simapp/go.mod | 2 +- simapp/go.sum | 4 ++-- tests/go.mod | 2 +- tests/go.sum | 4 ++-- tools/cosmovisor/go.mod | 2 +- tools/cosmovisor/go.sum | 4 ++-- x/upgrade/go.mod | 2 +- x/upgrade/go.sum | 4 ++-- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/simapp/go.mod b/simapp/go.mod index f6b095ad16da..1eb4323f7ed6 100644 --- a/simapp/go.mod +++ b/simapp/go.mod @@ -122,7 +122,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect - github.com/hashicorp/go-getter v1.7.4 // indirect + github.com/hashicorp/go-getter v1.7.5 // indirect github.com/hashicorp/go-hclog v1.5.0 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-metrics v0.5.3 // indirect diff --git a/simapp/go.sum b/simapp/go.sum index a600d561b8a9..31a5075f7e01 100644 --- a/simapp/go.sum +++ b/simapp/go.sum @@ -682,8 +682,8 @@ github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtng github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= -github.com/hashicorp/go-getter v1.7.4 h1:3yQjWuxICvSpYwqSayAdKRFcvBl1y/vogCxczWSmix0= -github.com/hashicorp/go-getter v1.7.4/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= +github.com/hashicorp/go-getter v1.7.5 h1:dT58k9hQ/vbxNMwoI5+xFYAJuv6152UNvdHokfI5wE4= +github.com/hashicorp/go-getter v1.7.5/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= diff --git a/tests/go.mod b/tests/go.mod index 273fe9cd1214..fa286c95370f 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -119,7 +119,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect - github.com/hashicorp/go-getter v1.7.4 // indirect + github.com/hashicorp/go-getter v1.7.5 // indirect github.com/hashicorp/go-hclog v1.5.0 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-metrics v0.5.3 // indirect diff --git a/tests/go.sum b/tests/go.sum index b0f13a062d07..0ef5b352a1dd 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -678,8 +678,8 @@ github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtng github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= -github.com/hashicorp/go-getter v1.7.4 h1:3yQjWuxICvSpYwqSayAdKRFcvBl1y/vogCxczWSmix0= -github.com/hashicorp/go-getter v1.7.4/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= +github.com/hashicorp/go-getter v1.7.5 h1:dT58k9hQ/vbxNMwoI5+xFYAJuv6152UNvdHokfI5wE4= +github.com/hashicorp/go-getter v1.7.5/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= diff --git a/tools/cosmovisor/go.mod b/tools/cosmovisor/go.mod index eb7968604e87..1295147efb98 100644 --- a/tools/cosmovisor/go.mod +++ b/tools/cosmovisor/go.mod @@ -95,7 +95,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect - github.com/hashicorp/go-getter v1.7.4 // indirect + github.com/hashicorp/go-getter v1.7.5 // indirect github.com/hashicorp/go-hclog v1.5.0 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-metrics v0.5.3 // indirect diff --git a/tools/cosmovisor/go.sum b/tools/cosmovisor/go.sum index 766d2515a313..bf8a77db253e 100644 --- a/tools/cosmovisor/go.sum +++ b/tools/cosmovisor/go.sum @@ -612,8 +612,8 @@ github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtng github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= -github.com/hashicorp/go-getter v1.7.4 h1:3yQjWuxICvSpYwqSayAdKRFcvBl1y/vogCxczWSmix0= -github.com/hashicorp/go-getter v1.7.4/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= +github.com/hashicorp/go-getter v1.7.5 h1:dT58k9hQ/vbxNMwoI5+xFYAJuv6152UNvdHokfI5wE4= +github.com/hashicorp/go-getter v1.7.5/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= diff --git a/x/upgrade/go.mod b/x/upgrade/go.mod index a655c4dec747..2755a94c44ed 100644 --- a/x/upgrade/go.mod +++ b/x/upgrade/go.mod @@ -17,7 +17,7 @@ require ( github.com/golang/protobuf v1.5.4 github.com/grpc-ecosystem/grpc-gateway v1.16.0 github.com/hashicorp/go-cleanhttp v0.5.2 - github.com/hashicorp/go-getter v1.7.4 + github.com/hashicorp/go-getter v1.7.5 github.com/hashicorp/go-metrics v0.5.3 github.com/spf13/cast v1.6.0 github.com/spf13/cobra v1.8.1 diff --git a/x/upgrade/go.sum b/x/upgrade/go.sum index 6e7f8b4f9585..7318b730ce0e 100644 --- a/x/upgrade/go.sum +++ b/x/upgrade/go.sum @@ -668,8 +668,8 @@ github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtng github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= -github.com/hashicorp/go-getter v1.7.4 h1:3yQjWuxICvSpYwqSayAdKRFcvBl1y/vogCxczWSmix0= -github.com/hashicorp/go-getter v1.7.4/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= +github.com/hashicorp/go-getter v1.7.5 h1:dT58k9hQ/vbxNMwoI5+xFYAJuv6152UNvdHokfI5wE4= +github.com/hashicorp/go-getter v1.7.5/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= From ba34726aaf0ebc532cb49c19357c8d684c507315 Mon Sep 17 00:00:00 2001 From: marcello33 Date: Thu, 13 Feb 2025 09:59:45 +0100 Subject: [PATCH 11/12] POS-2822: bump geth --- client/v2/go.mod | 2 +- client/v2/go.sum | 4 ++-- simapp/go.mod | 2 +- simapp/go.sum | 4 ++-- store/go.mod | 4 ++-- store/go.sum | 4 ++-- tests/go.mod | 2 +- tests/go.sum | 4 ++-- tools/confix/go.mod | 2 +- tools/confix/go.sum | 4 ++-- tools/cosmovisor/go.mod | 12 ++++++------ tools/cosmovisor/go.sum | 28 ++++++++++++++-------------- tools/hubl/go.mod | 2 +- tools/hubl/go.sum | 4 ++-- x/circuit/go.mod | 2 +- x/circuit/go.sum | 4 ++-- x/evidence/go.mod | 2 +- x/evidence/go.sum | 4 ++-- x/feegrant/go.mod | 2 +- x/feegrant/go.sum | 4 ++-- x/nft/go.mod | 2 +- x/nft/go.sum | 4 ++-- x/tx/go.mod | 4 ++-- x/tx/go.sum | 4 ++-- x/upgrade/go.mod | 2 +- x/upgrade/go.sum | 4 ++-- 26 files changed, 58 insertions(+), 58 deletions(-) diff --git a/client/v2/go.mod b/client/v2/go.mod index 3b43abcf7eec..62653ef5e25f 100644 --- a/client/v2/go.mod +++ b/client/v2/go.mod @@ -193,5 +193,5 @@ replace ( cosmossdk.io/x/tx => github.com/0xPolygon/cosmos-sdk/x/tx v0.13.6-0.20241126102051-89dc71d02611 github.com/cometbft/cometbft => github.com/0xPolygon/cometbft v0.1.2-beta-polygon github.com/cosmos/cosmos-sdk => ./../../ - github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.2 + github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.5 ) diff --git a/client/v2/go.sum b/client/v2/go.sum index ca9a34bb88b1..0b0848ec5bca 100644 --- a/client/v2/go.sum +++ b/client/v2/go.sum @@ -515,8 +515,8 @@ github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0V github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= -github.com/maticnetwork/bor v1.5.2 h1:KlwA4qxqaVh0DgNn+29h+ZEZ5sZLce+OzL4CapSudR0= -github.com/maticnetwork/bor v1.5.2/go.mod h1:jx6ipcDT3kNZRco2f94tjHsuMntvcgIWHQB9PhV0NWw= +github.com/maticnetwork/bor v1.5.5 h1:lFWgs9Jgxv2x6MqsvV6HDCsIuPWABYVfJm1bPWGHED4= +github.com/maticnetwork/bor v1.5.5/go.mod h1:oKRrn3rmA2hVx/WLsTiIOM7HY/Qrl8HGvhZivaRLvh0= github.com/maticnetwork/crand v1.0.2 h1:Af0tAivC8zrxXDpGWNWVT/0s1fOz8w0eRbahZgURS8I= github.com/maticnetwork/crand v1.0.2/go.mod h1:/NRNL3bj2eYdqpWmoIP5puxndTpi0XRxpj5ZKxfHjyg= github.com/maticnetwork/polyproto v0.0.4 h1:qQ/qwcO6UNGS4mJlzlLJn1AUMfJK9Rqmf1v+KJgnPsk= diff --git a/simapp/go.mod b/simapp/go.mod index 1eb4323f7ed6..19a0b25191d4 100644 --- a/simapp/go.mod +++ b/simapp/go.mod @@ -254,5 +254,5 @@ replace ( cosmossdk.io/x/tx => github.com/0xPolygon/cosmos-sdk/x/tx v0.13.6-0.20241126102051-89dc71d02611 cosmossdk.io/x/upgrade => github.com/0xPolygon/cosmos-sdk/x/upgrade v0.1.5-0.20241126102051-89dc71d02611 github.com/cometbft/cometbft => github.com/0xPolygon/cometbft v0.1.2-beta-polygon - github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.2 + github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.5 ) diff --git a/simapp/go.sum b/simapp/go.sum index 31a5075f7e01..69675be4a2ee 100644 --- a/simapp/go.sum +++ b/simapp/go.sum @@ -811,8 +811,8 @@ github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0V github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= -github.com/maticnetwork/bor v1.5.2 h1:KlwA4qxqaVh0DgNn+29h+ZEZ5sZLce+OzL4CapSudR0= -github.com/maticnetwork/bor v1.5.2/go.mod h1:jx6ipcDT3kNZRco2f94tjHsuMntvcgIWHQB9PhV0NWw= +github.com/maticnetwork/bor v1.5.5 h1:lFWgs9Jgxv2x6MqsvV6HDCsIuPWABYVfJm1bPWGHED4= +github.com/maticnetwork/bor v1.5.5/go.mod h1:oKRrn3rmA2hVx/WLsTiIOM7HY/Qrl8HGvhZivaRLvh0= github.com/maticnetwork/crand v1.0.2 h1:Af0tAivC8zrxXDpGWNWVT/0s1fOz8w0eRbahZgURS8I= github.com/maticnetwork/crand v1.0.2/go.mod h1:/NRNL3bj2eYdqpWmoIP5puxndTpi0XRxpj5ZKxfHjyg= github.com/maticnetwork/polyproto v0.0.4 h1:qQ/qwcO6UNGS4mJlzlLJn1AUMfJK9Rqmf1v+KJgnPsk= diff --git a/store/go.mod b/store/go.mod index 42df7d840424..b44fd47468ad 100644 --- a/store/go.mod +++ b/store/go.mod @@ -40,7 +40,7 @@ require ( github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect github.com/emicklei/dot v1.6.1 // indirect - github.com/ethereum/go-ethereum v1.14.12 // indirect + github.com/ethereum/go-ethereum v1.15.0 // indirect github.com/fatih/color v1.17.0 // indirect github.com/getsentry/sentry-go v0.27.0 // indirect github.com/gogo/protobuf v1.3.2 // indirect @@ -87,5 +87,5 @@ replace ( cosmossdk.io/log => github.com/0xPolygon/cosmos-sdk/log v1.4.1 cosmossdk.io/math => github.com/0xPolygon/cosmos-sdk/math v1.4.0 github.com/cometbft/cometbft => github.com/0xPolygon/cometbft v0.1.2-beta-polygon - github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.2 + github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.5 ) diff --git a/store/go.sum b/store/go.sum index bfdef465f256..7ad854148b63 100644 --- a/store/go.sum +++ b/store/go.sum @@ -161,8 +161,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/linxGnu/grocksdb v1.8.14 h1:HTgyYalNwBSG/1qCQUIott44wU5b2Y9Kr3z7SK5OfGQ= github.com/linxGnu/grocksdb v1.8.14/go.mod h1:QYiYypR2d4v63Wj1adOOfzglnoII0gLj3PNh4fZkcFA= -github.com/maticnetwork/bor v1.5.2 h1:KlwA4qxqaVh0DgNn+29h+ZEZ5sZLce+OzL4CapSudR0= -github.com/maticnetwork/bor v1.5.2/go.mod h1:jx6ipcDT3kNZRco2f94tjHsuMntvcgIWHQB9PhV0NWw= +github.com/maticnetwork/bor v1.5.5 h1:lFWgs9Jgxv2x6MqsvV6HDCsIuPWABYVfJm1bPWGHED4= +github.com/maticnetwork/bor v1.5.5/go.mod h1:oKRrn3rmA2hVx/WLsTiIOM7HY/Qrl8HGvhZivaRLvh0= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= diff --git a/tests/go.mod b/tests/go.mod index fa286c95370f..869fbdd70331 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -250,5 +250,5 @@ replace ( cosmossdk.io/x/tx => github.com/0xPolygon/cosmos-sdk/x/tx v0.13.6-0.20241126102051-89dc71d02611 cosmossdk.io/x/upgrade => github.com/0xPolygon/cosmos-sdk/x/upgrade v0.1.5-0.20241126102051-89dc71d02611 github.com/cometbft/cometbft => github.com/0xPolygon/cometbft v0.1.2-beta-polygon - github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.2 + github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.5 ) diff --git a/tests/go.sum b/tests/go.sum index 0ef5b352a1dd..2f63d36f90c4 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -807,8 +807,8 @@ github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0V github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= -github.com/maticnetwork/bor v1.5.2 h1:KlwA4qxqaVh0DgNn+29h+ZEZ5sZLce+OzL4CapSudR0= -github.com/maticnetwork/bor v1.5.2/go.mod h1:jx6ipcDT3kNZRco2f94tjHsuMntvcgIWHQB9PhV0NWw= +github.com/maticnetwork/bor v1.5.5 h1:lFWgs9Jgxv2x6MqsvV6HDCsIuPWABYVfJm1bPWGHED4= +github.com/maticnetwork/bor v1.5.5/go.mod h1:oKRrn3rmA2hVx/WLsTiIOM7HY/Qrl8HGvhZivaRLvh0= github.com/maticnetwork/crand v1.0.2 h1:Af0tAivC8zrxXDpGWNWVT/0s1fOz8w0eRbahZgURS8I= github.com/maticnetwork/crand v1.0.2/go.mod h1:/NRNL3bj2eYdqpWmoIP5puxndTpi0XRxpj5ZKxfHjyg= github.com/maticnetwork/polyproto v0.0.4 h1:qQ/qwcO6UNGS4mJlzlLJn1AUMfJK9Rqmf1v+KJgnPsk= diff --git a/tools/confix/go.mod b/tools/confix/go.mod index 821e9365c0e2..ca7687c6190e 100644 --- a/tools/confix/go.mod +++ b/tools/confix/go.mod @@ -196,5 +196,5 @@ replace ( cosmossdk.io/x/tx => github.com/0xPolygon/cosmos-sdk/x/tx v0.13.6-0.20241126102051-89dc71d02611 github.com/cometbft/cometbft => github.com/0xPolygon/cometbft v0.1.2-beta-polygon github.com/cosmos/cosmos-sdk => ./../../ - github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.2 + github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.5 ) diff --git a/tools/confix/go.sum b/tools/confix/go.sum index b567b514da39..7f6003bf7348 100644 --- a/tools/confix/go.sum +++ b/tools/confix/go.sum @@ -521,8 +521,8 @@ github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0V github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= -github.com/maticnetwork/bor v1.5.2 h1:KlwA4qxqaVh0DgNn+29h+ZEZ5sZLce+OzL4CapSudR0= -github.com/maticnetwork/bor v1.5.2/go.mod h1:jx6ipcDT3kNZRco2f94tjHsuMntvcgIWHQB9PhV0NWw= +github.com/maticnetwork/bor v1.5.5 h1:lFWgs9Jgxv2x6MqsvV6HDCsIuPWABYVfJm1bPWGHED4= +github.com/maticnetwork/bor v1.5.5/go.mod h1:oKRrn3rmA2hVx/WLsTiIOM7HY/Qrl8HGvhZivaRLvh0= github.com/maticnetwork/crand v1.0.2 h1:Af0tAivC8zrxXDpGWNWVT/0s1fOz8w0eRbahZgURS8I= github.com/maticnetwork/crand v1.0.2/go.mod h1:/NRNL3bj2eYdqpWmoIP5puxndTpi0XRxpj5ZKxfHjyg= github.com/maticnetwork/polyproto v0.0.4 h1:qQ/qwcO6UNGS4mJlzlLJn1AUMfJK9Rqmf1v+KJgnPsk= diff --git a/tools/cosmovisor/go.mod b/tools/cosmovisor/go.mod index 1295147efb98..4b6a01f134eb 100644 --- a/tools/cosmovisor/go.mod +++ b/tools/cosmovisor/go.mod @@ -64,7 +64,7 @@ require ( github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.7.0 // indirect github.com/emicklei/dot v1.6.2 // indirect - github.com/ethereum/go-ethereum v1.14.12 // indirect + github.com/ethereum/go-ethereum v1.15.0 // indirect github.com/fatih/color v1.17.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect @@ -107,7 +107,7 @@ require ( github.com/hashicorp/hcl v1.0.0 // indirect github.com/hashicorp/yamux v0.1.1 // indirect github.com/hdevalence/ed25519consensus v0.1.0 // indirect - github.com/holiman/uint256 v1.3.1 // indirect + github.com/holiman/uint256 v1.3.2 // indirect github.com/huandu/skiplist v1.2.0 // indirect github.com/iancoleman/strcase v0.3.0 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect @@ -164,13 +164,13 @@ require ( go.opentelemetry.io/otel/sdk v1.29.0 // indirect go.opentelemetry.io/otel/trace v1.29.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.31.0 // indirect + golang.org/x/crypto v0.32.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/net v0.33.0 // indirect + golang.org/x/net v0.34.0 // indirect golang.org/x/oauth2 v0.23.0 // indirect golang.org/x/sync v0.10.0 // indirect - golang.org/x/sys v0.28.0 // indirect - golang.org/x/term v0.27.0 // indirect + golang.org/x/sys v0.29.0 // indirect + golang.org/x/term v0.28.0 // indirect golang.org/x/text v0.21.0 // indirect golang.org/x/time v0.5.0 // indirect google.golang.org/api v0.171.0 // indirect diff --git a/tools/cosmovisor/go.sum b/tools/cosmovisor/go.sum index bf8a77db253e..e654d724543a 100644 --- a/tools/cosmovisor/go.sum +++ b/tools/cosmovisor/go.sum @@ -252,8 +252,8 @@ github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bits-and-blooms/bitset v1.13.0 h1:bAQ9OPNFYbGHV6Nez0tmNI0RiEu7/hxlYJRUA0wFAVE= -github.com/bits-and-blooms/bitset v1.13.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= +github.com/bits-and-blooms/bitset v1.17.0 h1:1X2TS7aHz1ELcC0yU1y2stUs/0ig5oMU6STFZGrhvHI= +github.com/bits-and-blooms/bitset v1.17.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= github.com/btcsuite/btcd/btcec/v2 v2.3.4 h1:3EJjcN70HCu/mwqlUsGK8GcNVyLVxFDlWurTXGPFfiQ= github.com/btcsuite/btcd/btcec/v2 v2.3.4/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= github.com/btcsuite/btcd/btcutil v1.1.6 h1:zFL2+c3Lb9gEgqKNzowKUPQNb8jV7v5Oaodi/AYFd6c= @@ -379,8 +379,8 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.m github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/ethereum/go-ethereum v1.14.12 h1:8hl57x77HSUo+cXExrURjU/w1VhL+ShCTJrTwcCQSe4= -github.com/ethereum/go-ethereum v1.14.12/go.mod h1:RAC2gVMWJ6FkxSPESfbshrcKpIokgQKsVKmAuqdekDY= +github.com/ethereum/go-ethereum v1.15.0 h1:LLb2jCPsbJZcB4INw+E/MgzUX5wlR6SdwXcv09/1ME4= +github.com/ethereum/go-ethereum v1.15.0/go.mod h1:4q+4t48P2C03sjqGvTXix5lEOplf5dz4CTosbjt5tGs= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= @@ -655,8 +655,8 @@ github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= github.com/hdevalence/ed25519consensus v0.1.0 h1:jtBwzzcHuTmFrQN6xQZn6CQEO/V9f7HsjsjeEZ6auqU= github.com/hdevalence/ed25519consensus v0.1.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= -github.com/holiman/uint256 v1.3.1 h1:JfTzmih28bittyHM8z360dCjIA9dbPIBlcTI6lmctQs= -github.com/holiman/uint256 v1.3.1/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= +github.com/holiman/uint256 v1.3.2 h1:a9EgMPSC1AAaj1SZL5zIQD3WbwTuHrMGOerLjGmM/TA= +github.com/holiman/uint256 v1.3.2/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= @@ -1031,8 +1031,8 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= -golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= +golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc= +golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1131,8 +1131,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= -golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= +golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0= +golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1267,13 +1267,13 @@ golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= -golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU= +golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= -golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= +golang.org/x/term v0.28.0 h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg= +golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= diff --git a/tools/hubl/go.mod b/tools/hubl/go.mod index f0b100870dd8..138c6b56777b 100644 --- a/tools/hubl/go.mod +++ b/tools/hubl/go.mod @@ -174,5 +174,5 @@ replace ( cosmossdk.io/x/tx => github.com/0xPolygon/cosmos-sdk/x/tx v0.13.6-0.20241126102051-89dc71d02611 github.com/cometbft/cometbft => github.com/0xPolygon/cometbft v0.1.2-beta-polygon github.com/cosmos/cosmos-sdk => ./../../ - github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.2 + github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.5 ) diff --git a/tools/hubl/go.sum b/tools/hubl/go.sum index 9d197701c4b9..36fbd4679e0b 100644 --- a/tools/hubl/go.sum +++ b/tools/hubl/go.sum @@ -494,8 +494,8 @@ github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0V github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= -github.com/maticnetwork/bor v1.5.2 h1:KlwA4qxqaVh0DgNn+29h+ZEZ5sZLce+OzL4CapSudR0= -github.com/maticnetwork/bor v1.5.2/go.mod h1:jx6ipcDT3kNZRco2f94tjHsuMntvcgIWHQB9PhV0NWw= +github.com/maticnetwork/bor v1.5.5 h1:lFWgs9Jgxv2x6MqsvV6HDCsIuPWABYVfJm1bPWGHED4= +github.com/maticnetwork/bor v1.5.5/go.mod h1:oKRrn3rmA2hVx/WLsTiIOM7HY/Qrl8HGvhZivaRLvh0= github.com/maticnetwork/polyproto v0.0.4 h1:qQ/qwcO6UNGS4mJlzlLJn1AUMfJK9Rqmf1v+KJgnPsk= github.com/maticnetwork/polyproto v0.0.4/go.mod h1:e1mU2EXSwEpn5jM7GfNwu3AupsV6WAGoPFFfswXOF0o= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= diff --git a/x/circuit/go.mod b/x/circuit/go.mod index 70c1c8b32931..c2b01a4b1a86 100644 --- a/x/circuit/go.mod +++ b/x/circuit/go.mod @@ -193,5 +193,5 @@ replace ( cosmossdk.io/x/tx => github.com/0xPolygon/cosmos-sdk/x/tx v0.13.6-0.20241126102051-89dc71d02611 github.com/cometbft/cometbft => github.com/0xPolygon/cometbft v0.1.2-beta-polygon github.com/cosmos/cosmos-sdk => ./../../ - github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.2 + github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.5 ) diff --git a/x/circuit/go.sum b/x/circuit/go.sum index d1705a4d77e7..0ccec2f9a887 100644 --- a/x/circuit/go.sum +++ b/x/circuit/go.sum @@ -517,8 +517,8 @@ github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0V github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= -github.com/maticnetwork/bor v1.5.2 h1:KlwA4qxqaVh0DgNn+29h+ZEZ5sZLce+OzL4CapSudR0= -github.com/maticnetwork/bor v1.5.2/go.mod h1:jx6ipcDT3kNZRco2f94tjHsuMntvcgIWHQB9PhV0NWw= +github.com/maticnetwork/bor v1.5.5 h1:lFWgs9Jgxv2x6MqsvV6HDCsIuPWABYVfJm1bPWGHED4= +github.com/maticnetwork/bor v1.5.5/go.mod h1:oKRrn3rmA2hVx/WLsTiIOM7HY/Qrl8HGvhZivaRLvh0= github.com/maticnetwork/crand v1.0.2 h1:Af0tAivC8zrxXDpGWNWVT/0s1fOz8w0eRbahZgURS8I= github.com/maticnetwork/crand v1.0.2/go.mod h1:/NRNL3bj2eYdqpWmoIP5puxndTpi0XRxpj5ZKxfHjyg= github.com/maticnetwork/polyproto v0.0.4 h1:qQ/qwcO6UNGS4mJlzlLJn1AUMfJK9Rqmf1v+KJgnPsk= diff --git a/x/evidence/go.mod b/x/evidence/go.mod index 919ede61e836..8f60715ecf3a 100644 --- a/x/evidence/go.mod +++ b/x/evidence/go.mod @@ -192,5 +192,5 @@ replace ( cosmossdk.io/store => github.com/0xPolygon/cosmos-sdk/store v1.1.2-0.20241126102051-89dc71d02611 github.com/cometbft/cometbft => github.com/0xPolygon/cometbft v0.1.2-beta-polygon github.com/cosmos/cosmos-sdk => ./../../ - github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.2 + github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.5 ) diff --git a/x/evidence/go.sum b/x/evidence/go.sum index b6b568f90aa3..2c226f229c49 100644 --- a/x/evidence/go.sum +++ b/x/evidence/go.sum @@ -517,8 +517,8 @@ github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0V github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= -github.com/maticnetwork/bor v1.5.2 h1:KlwA4qxqaVh0DgNn+29h+ZEZ5sZLce+OzL4CapSudR0= -github.com/maticnetwork/bor v1.5.2/go.mod h1:jx6ipcDT3kNZRco2f94tjHsuMntvcgIWHQB9PhV0NWw= +github.com/maticnetwork/bor v1.5.5 h1:lFWgs9Jgxv2x6MqsvV6HDCsIuPWABYVfJm1bPWGHED4= +github.com/maticnetwork/bor v1.5.5/go.mod h1:oKRrn3rmA2hVx/WLsTiIOM7HY/Qrl8HGvhZivaRLvh0= github.com/maticnetwork/crand v1.0.2 h1:Af0tAivC8zrxXDpGWNWVT/0s1fOz8w0eRbahZgURS8I= github.com/maticnetwork/crand v1.0.2/go.mod h1:/NRNL3bj2eYdqpWmoIP5puxndTpi0XRxpj5ZKxfHjyg= github.com/maticnetwork/polyproto v0.0.4 h1:qQ/qwcO6UNGS4mJlzlLJn1AUMfJK9Rqmf1v+KJgnPsk= diff --git a/x/feegrant/go.mod b/x/feegrant/go.mod index 3dda13e97a29..266a26f5464c 100644 --- a/x/feegrant/go.mod +++ b/x/feegrant/go.mod @@ -196,5 +196,5 @@ replace ( cosmossdk.io/x/upgrade => github.com/0xPolygon/cosmos-sdk/x/upgrade v0.1.5-0.20241126102051-89dc71d02611 github.com/cometbft/cometbft => github.com/0xPolygon/cometbft v0.1.2-beta-polygon github.com/cosmos/cosmos-sdk => ./../../ - github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.2 + github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.5 ) diff --git a/x/feegrant/go.sum b/x/feegrant/go.sum index cb5ab9811500..c9713147737b 100644 --- a/x/feegrant/go.sum +++ b/x/feegrant/go.sum @@ -521,8 +521,8 @@ github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0V github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= -github.com/maticnetwork/bor v1.5.2 h1:KlwA4qxqaVh0DgNn+29h+ZEZ5sZLce+OzL4CapSudR0= -github.com/maticnetwork/bor v1.5.2/go.mod h1:jx6ipcDT3kNZRco2f94tjHsuMntvcgIWHQB9PhV0NWw= +github.com/maticnetwork/bor v1.5.5 h1:lFWgs9Jgxv2x6MqsvV6HDCsIuPWABYVfJm1bPWGHED4= +github.com/maticnetwork/bor v1.5.5/go.mod h1:oKRrn3rmA2hVx/WLsTiIOM7HY/Qrl8HGvhZivaRLvh0= github.com/maticnetwork/crand v1.0.2 h1:Af0tAivC8zrxXDpGWNWVT/0s1fOz8w0eRbahZgURS8I= github.com/maticnetwork/crand v1.0.2/go.mod h1:/NRNL3bj2eYdqpWmoIP5puxndTpi0XRxpj5ZKxfHjyg= github.com/maticnetwork/polyproto v0.0.4 h1:qQ/qwcO6UNGS4mJlzlLJn1AUMfJK9Rqmf1v+KJgnPsk= diff --git a/x/nft/go.mod b/x/nft/go.mod index 0808eec595b4..ce682c3e5360 100644 --- a/x/nft/go.mod +++ b/x/nft/go.mod @@ -193,5 +193,5 @@ replace ( cosmossdk.io/x/tx => github.com/0xPolygon/cosmos-sdk/x/tx v0.13.6-0.20241126102051-89dc71d02611 github.com/cometbft/cometbft => github.com/0xPolygon/cometbft v0.1.2-beta-polygon github.com/cosmos/cosmos-sdk => ./../../ - github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.2 + github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.5 ) diff --git a/x/nft/go.sum b/x/nft/go.sum index d1705a4d77e7..0ccec2f9a887 100644 --- a/x/nft/go.sum +++ b/x/nft/go.sum @@ -517,8 +517,8 @@ github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0V github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= -github.com/maticnetwork/bor v1.5.2 h1:KlwA4qxqaVh0DgNn+29h+ZEZ5sZLce+OzL4CapSudR0= -github.com/maticnetwork/bor v1.5.2/go.mod h1:jx6ipcDT3kNZRco2f94tjHsuMntvcgIWHQB9PhV0NWw= +github.com/maticnetwork/bor v1.5.5 h1:lFWgs9Jgxv2x6MqsvV6HDCsIuPWABYVfJm1bPWGHED4= +github.com/maticnetwork/bor v1.5.5/go.mod h1:oKRrn3rmA2hVx/WLsTiIOM7HY/Qrl8HGvhZivaRLvh0= github.com/maticnetwork/crand v1.0.2 h1:Af0tAivC8zrxXDpGWNWVT/0s1fOz8w0eRbahZgURS8I= github.com/maticnetwork/crand v1.0.2/go.mod h1:/NRNL3bj2eYdqpWmoIP5puxndTpi0XRxpj5ZKxfHjyg= github.com/maticnetwork/polyproto v0.0.4 h1:qQ/qwcO6UNGS4mJlzlLJn1AUMfJK9Rqmf1v+KJgnPsk= diff --git a/x/tx/go.mod b/x/tx/go.mod index 70c3791918a5..4086b6e87588 100644 --- a/x/tx/go.mod +++ b/x/tx/go.mod @@ -9,7 +9,7 @@ require ( cosmossdk.io/math v1.4.0 github.com/cosmos/cosmos-proto v1.0.0-beta.5 github.com/cosmos/gogoproto v1.7.0 - github.com/ethereum/go-ethereum v1.14.11 + github.com/ethereum/go-ethereum v1.15.0 github.com/google/go-cmp v0.6.0 github.com/google/gofuzz v1.2.0 github.com/iancoleman/strcase v0.3.0 @@ -46,5 +46,5 @@ replace ( cosmossdk.io/core => github.com/0xPolygon/cosmos-sdk/core v0.11.3-0.20241126102051-89dc71d02611 cosmossdk.io/errors => github.com/0xPolygon/cosmos-sdk/errors v1.0.0-beta.7.0.20241126102051-89dc71d02611 cosmossdk.io/math => github.com/0xPolygon/cosmos-sdk/math v1.4.0 - github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.2 + github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.5 ) diff --git a/x/tx/go.sum b/x/tx/go.sum index de75780fa471..bc3090848930 100644 --- a/x/tx/go.sum +++ b/x/tx/go.sum @@ -30,8 +30,8 @@ github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/maticnetwork/bor v1.5.2 h1:KlwA4qxqaVh0DgNn+29h+ZEZ5sZLce+OzL4CapSudR0= -github.com/maticnetwork/bor v1.5.2/go.mod h1:jx6ipcDT3kNZRco2f94tjHsuMntvcgIWHQB9PhV0NWw= +github.com/maticnetwork/bor v1.5.5 h1:lFWgs9Jgxv2x6MqsvV6HDCsIuPWABYVfJm1bPWGHED4= +github.com/maticnetwork/bor v1.5.5/go.mod h1:oKRrn3rmA2hVx/WLsTiIOM7HY/Qrl8HGvhZivaRLvh0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= diff --git a/x/upgrade/go.mod b/x/upgrade/go.mod index 2755a94c44ed..e5c48a83aac1 100644 --- a/x/upgrade/go.mod +++ b/x/upgrade/go.mod @@ -221,5 +221,5 @@ replace ( cosmossdk.io/x/tx => github.com/0xPolygon/cosmos-sdk/x/tx v0.13.6-0.20241126102051-89dc71d02611 github.com/cometbft/cometbft => github.com/0xPolygon/cometbft v0.1.2-beta-polygon github.com/cosmos/cosmos-sdk => ./../../ - github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.2 + github.com/ethereum/go-ethereum => github.com/maticnetwork/bor v1.5.5 ) diff --git a/x/upgrade/go.sum b/x/upgrade/go.sum index 7318b730ce0e..80d39dd7320a 100644 --- a/x/upgrade/go.sum +++ b/x/upgrade/go.sum @@ -797,8 +797,8 @@ github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0V github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= -github.com/maticnetwork/bor v1.5.2 h1:KlwA4qxqaVh0DgNn+29h+ZEZ5sZLce+OzL4CapSudR0= -github.com/maticnetwork/bor v1.5.2/go.mod h1:jx6ipcDT3kNZRco2f94tjHsuMntvcgIWHQB9PhV0NWw= +github.com/maticnetwork/bor v1.5.5 h1:lFWgs9Jgxv2x6MqsvV6HDCsIuPWABYVfJm1bPWGHED4= +github.com/maticnetwork/bor v1.5.5/go.mod h1:oKRrn3rmA2hVx/WLsTiIOM7HY/Qrl8HGvhZivaRLvh0= github.com/maticnetwork/crand v1.0.2 h1:Af0tAivC8zrxXDpGWNWVT/0s1fOz8w0eRbahZgURS8I= github.com/maticnetwork/crand v1.0.2/go.mod h1:/NRNL3bj2eYdqpWmoIP5puxndTpi0XRxpj5ZKxfHjyg= github.com/maticnetwork/polyproto v0.0.4 h1:qQ/qwcO6UNGS4mJlzlLJn1AUMfJK9Rqmf1v+KJgnPsk= From 537781bf7b343f9deb22f596e0374e89b63496b1 Mon Sep 17 00:00:00 2001 From: marcello33 Date: Thu, 13 Feb 2025 10:01:06 +0100 Subject: [PATCH 12/12] POS-2822: bump glog --- client/v2/go.mod | 2 +- client/v2/go.sum | 4 ++-- go.mod | 2 +- go.sum | 4 ++-- simapp/go.mod | 2 +- simapp/go.sum | 4 ++-- tests/go.mod | 2 +- tests/go.sum | 4 ++-- tools/confix/go.mod | 2 +- tools/confix/go.sum | 4 ++-- tools/cosmovisor/go.mod | 2 +- tools/cosmovisor/go.sum | 4 ++-- tools/hubl/go.mod | 2 +- tools/hubl/go.sum | 4 ++-- x/circuit/go.mod | 2 +- x/circuit/go.sum | 4 ++-- x/evidence/go.mod | 2 +- x/evidence/go.sum | 4 ++-- x/feegrant/go.mod | 2 +- x/feegrant/go.sum | 4 ++-- x/nft/go.mod | 2 +- x/nft/go.sum | 4 ++-- x/upgrade/go.mod | 2 +- x/upgrade/go.sum | 4 ++-- 24 files changed, 36 insertions(+), 36 deletions(-) diff --git a/client/v2/go.mod b/client/v2/go.mod index 62653ef5e25f..f2a92f6d7c45 100644 --- a/client/v2/go.mod +++ b/client/v2/go.mod @@ -82,7 +82,7 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.2 // indirect + github.com/golang/glog v1.2.4 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/mock v1.6.0 // indirect github.com/golang/protobuf v1.5.4 // indirect diff --git a/client/v2/go.sum b/client/v2/go.sum index 0b0848ec5bca..9f0ffda19d37 100644 --- a/client/v2/go.sum +++ b/client/v2/go.sum @@ -311,8 +311,8 @@ github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= -github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.4 h1:CNNw5U8lSiiBk7druxtSHHTsRWcxKoac6kZKm2peBBc= +github.com/golang/glog v1.2.4/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= diff --git a/go.mod b/go.mod index 7369bde0ea3c..802850479815 100644 --- a/go.mod +++ b/go.mod @@ -115,7 +115,7 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.2 // indirect + github.com/golang/glog v1.2.4 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect github.com/google/btree v1.1.3 // indirect diff --git a/go.sum b/go.sum index 1011f901189f..7aba9c02675d 100644 --- a/go.sum +++ b/go.sum @@ -315,8 +315,8 @@ github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= -github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.4 h1:CNNw5U8lSiiBk7druxtSHHTsRWcxKoac6kZKm2peBBc= +github.com/golang/glog v1.2.4/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= diff --git a/simapp/go.mod b/simapp/go.mod index 19a0b25191d4..191a6260a353 100644 --- a/simapp/go.mod +++ b/simapp/go.mod @@ -103,7 +103,7 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.2 // indirect + github.com/golang/glog v1.2.4 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect diff --git a/simapp/go.sum b/simapp/go.sum index 69675be4a2ee..91cb6c16e189 100644 --- a/simapp/go.sum +++ b/simapp/go.sum @@ -534,8 +534,8 @@ github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= -github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.4 h1:CNNw5U8lSiiBk7druxtSHHTsRWcxKoac6kZKm2peBBc= +github.com/golang/glog v1.2.4/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= diff --git a/tests/go.mod b/tests/go.mod index 869fbdd70331..73ab4889626a 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -100,7 +100,7 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.2 // indirect + github.com/golang/glog v1.2.4 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect diff --git a/tests/go.sum b/tests/go.sum index 2f63d36f90c4..31bfc311effb 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -529,8 +529,8 @@ github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= -github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.4 h1:CNNw5U8lSiiBk7druxtSHHTsRWcxKoac6kZKm2peBBc= +github.com/golang/glog v1.2.4/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= diff --git a/tools/confix/go.mod b/tools/confix/go.mod index ca7687c6190e..6d565b8b4e80 100644 --- a/tools/confix/go.mod +++ b/tools/confix/go.mod @@ -82,7 +82,7 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.2 // indirect + github.com/golang/glog v1.2.4 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/mock v1.6.0 // indirect github.com/golang/protobuf v1.5.4 // indirect diff --git a/tools/confix/go.sum b/tools/confix/go.sum index 7f6003bf7348..9cb847c53e2e 100644 --- a/tools/confix/go.sum +++ b/tools/confix/go.sum @@ -317,8 +317,8 @@ github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= -github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.4 h1:CNNw5U8lSiiBk7druxtSHHTsRWcxKoac6kZKm2peBBc= +github.com/golang/glog v1.2.4/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= diff --git a/tools/cosmovisor/go.mod b/tools/cosmovisor/go.mod index 4b6a01f134eb..2ddcebc2f7d0 100644 --- a/tools/cosmovisor/go.mod +++ b/tools/cosmovisor/go.mod @@ -77,7 +77,7 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.2 // indirect + github.com/golang/glog v1.2.4 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect diff --git a/tools/cosmovisor/go.sum b/tools/cosmovisor/go.sum index e654d724543a..2663bcd3095e 100644 --- a/tools/cosmovisor/go.sum +++ b/tools/cosmovisor/go.sum @@ -464,8 +464,8 @@ github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= -github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.4 h1:CNNw5U8lSiiBk7druxtSHHTsRWcxKoac6kZKm2peBBc= +github.com/golang/glog v1.2.4/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= diff --git a/tools/hubl/go.mod b/tools/hubl/go.mod index 138c6b56777b..fc6a80b852d5 100644 --- a/tools/hubl/go.mod +++ b/tools/hubl/go.mod @@ -69,7 +69,7 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.2 // indirect + github.com/golang/glog v1.2.4 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect diff --git a/tools/hubl/go.sum b/tools/hubl/go.sum index 36fbd4679e0b..f3d0197349ad 100644 --- a/tools/hubl/go.sum +++ b/tools/hubl/go.sum @@ -302,8 +302,8 @@ github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= -github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.4 h1:CNNw5U8lSiiBk7druxtSHHTsRWcxKoac6kZKm2peBBc= +github.com/golang/glog v1.2.4/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= diff --git a/x/circuit/go.mod b/x/circuit/go.mod index c2b01a4b1a86..e9ad37cde687 100644 --- a/x/circuit/go.mod +++ b/x/circuit/go.mod @@ -80,7 +80,7 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.2 // indirect + github.com/golang/glog v1.2.4 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/mock v1.6.0 // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect diff --git a/x/circuit/go.sum b/x/circuit/go.sum index 0ccec2f9a887..3a9917bcb2ca 100644 --- a/x/circuit/go.sum +++ b/x/circuit/go.sum @@ -313,8 +313,8 @@ github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= -github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.4 h1:CNNw5U8lSiiBk7druxtSHHTsRWcxKoac6kZKm2peBBc= +github.com/golang/glog v1.2.4/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= diff --git a/x/evidence/go.mod b/x/evidence/go.mod index 8f60715ecf3a..6e812076793a 100644 --- a/x/evidence/go.mod +++ b/x/evidence/go.mod @@ -83,7 +83,7 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.2 // indirect + github.com/golang/glog v1.2.4 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect github.com/google/btree v1.1.3 // indirect diff --git a/x/evidence/go.sum b/x/evidence/go.sum index 2c226f229c49..68a8d2275770 100644 --- a/x/evidence/go.sum +++ b/x/evidence/go.sum @@ -313,8 +313,8 @@ github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= -github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.4 h1:CNNw5U8lSiiBk7druxtSHHTsRWcxKoac6kZKm2peBBc= +github.com/golang/glog v1.2.4/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= diff --git a/x/feegrant/go.mod b/x/feegrant/go.mod index 266a26f5464c..325bc2e01ad0 100644 --- a/x/feegrant/go.mod +++ b/x/feegrant/go.mod @@ -85,7 +85,7 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.2 // indirect + github.com/golang/glog v1.2.4 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect github.com/google/btree v1.1.3 // indirect diff --git a/x/feegrant/go.sum b/x/feegrant/go.sum index c9713147737b..4642a33c31dd 100644 --- a/x/feegrant/go.sum +++ b/x/feegrant/go.sum @@ -317,8 +317,8 @@ github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= -github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.4 h1:CNNw5U8lSiiBk7druxtSHHTsRWcxKoac6kZKm2peBBc= +github.com/golang/glog v1.2.4/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= diff --git a/x/nft/go.mod b/x/nft/go.mod index ce682c3e5360..61f1616271b6 100644 --- a/x/nft/go.mod +++ b/x/nft/go.mod @@ -81,7 +81,7 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.2 // indirect + github.com/golang/glog v1.2.4 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect github.com/google/btree v1.1.3 // indirect diff --git a/x/nft/go.sum b/x/nft/go.sum index 0ccec2f9a887..3a9917bcb2ca 100644 --- a/x/nft/go.sum +++ b/x/nft/go.sum @@ -313,8 +313,8 @@ github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= -github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.4 h1:CNNw5U8lSiiBk7druxtSHHTsRWcxKoac6kZKm2peBBc= +github.com/golang/glog v1.2.4/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= diff --git a/x/upgrade/go.mod b/x/upgrade/go.mod index e5c48a83aac1..30be04893faf 100644 --- a/x/upgrade/go.mod +++ b/x/upgrade/go.mod @@ -97,7 +97,7 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.2 // indirect + github.com/golang/glog v1.2.4 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/mock v1.6.0 // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect diff --git a/x/upgrade/go.sum b/x/upgrade/go.sum index 80d39dd7320a..fd56b5b68c42 100644 --- a/x/upgrade/go.sum +++ b/x/upgrade/go.sum @@ -519,8 +519,8 @@ github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= -github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.4 h1:CNNw5U8lSiiBk7druxtSHHTsRWcxKoac6kZKm2peBBc= +github.com/golang/glog v1.2.4/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=