Skip to content

Commit dbee224

Browse files
authored
bump deps (#78)
* bump deps * fix lint * update lintci version to v1.60.0 * upgrade handler
1 parent 0a5241e commit dbee224

File tree

8 files changed

+94
-76
lines changed

8 files changed

+94
-76
lines changed

.github/workflows/build-darwin-amd64.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Go
1616
uses: actions/setup-go@v4
1717
with:
18-
go-version: "1.22.5"
18+
go-version: "1.22"
1919

2020
- name: Set environment variables
2121
run: |

.github/workflows/build-darwin-arm64.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Go
1515
uses: actions/setup-go@v4
1616
with:
17-
go-version: "1.22.5"
17+
go-version: "1.22"
1818
- name: Set environment variables
1919
run: |
2020
MINIWASM_NETWORK_NAME="miniwasm-1"

.github/workflows/build-linux-amd64.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set up Go
1313
uses: actions/setup-go@v4
1414
with:
15-
go-version: "1.22.5"
15+
go-version: "1.22"
1616

1717
- name: Set environment variables
1818
run: |

.github/workflows/lint.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ concurrency:
2323
jobs:
2424
golangci:
2525
env:
26-
GOLANGCI_LINT_VERSION: v1.59.1
26+
GOLANGCI_LINT_VERSION: v1.61.0
2727
name: golangci-lint
2828
runs-on: ubuntu-latest
2929
steps:
3030
- uses: actions/checkout@v4
3131
- uses: actions/setup-go@v5
3232
with:
33-
go-version: 1.22
33+
go-version: 1.23
3434
check-latest: true
3535
- uses: technote-space/[email protected]
3636
id: git_diff
@@ -72,7 +72,7 @@ jobs:
7272
- name: Setup go
7373
uses: actions/setup-go@v5
7474
with:
75-
go-version: 1.22
75+
go-version: 1.23
7676
check-latest: true
7777
- run: |
7878
go mod tidy

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ MiniWasm is an optimistic rollup consumer chain powered by WasmVM, designed to s
44

55
## Prerequisites
66

7-
- Go v1.22.5+
7+
- Go v1.22.7+
88

99
## Getting Started
1010

app/upgrade.go

+20-4
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,31 @@ import (
55

66
upgradetypes "cosmossdk.io/x/upgrade/types"
77
"github.com/cosmos/cosmos-sdk/types/module"
8+
9+
opchildtypes "github.com/initia-labs/OPinit/x/opchild/types"
810
)
911

10-
const upgradeName = "0.6.0"
12+
const upgradeName = "0.6.2"
1113

1214
// RegisterUpgradeHandlers returns upgrade handlers
1315
func (app *MinitiaApp) RegisterUpgradeHandlers(cfg module.Configurator) {
14-
app.UpgradeKeeper.SetUpgradeHandler(upgradeName,
15-
func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
16-
return fromVM, nil
16+
app.UpgradeKeeper.SetUpgradeHandler(
17+
upgradeName,
18+
func(ctx context.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
19+
params, err := app.OPChildKeeper.GetParams(ctx)
20+
if err != nil {
21+
return nil, err
22+
}
23+
24+
// set non-zero default values for new params
25+
params.HookMaxGas = opchildtypes.DefaultHookMaxGas
26+
27+
err = app.OPChildKeeper.SetParams(ctx, params)
28+
if err != nil {
29+
return nil, err
30+
}
31+
32+
return vm, nil
1733
},
1834
)
1935
}

go.mod

+24-22
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module github.com/initia-labs/miniwasm
22

3-
go 1.22.5
3+
go 1.22.7
4+
5+
toolchain go1.23.0
46

57
require (
68
cosmossdk.io/api v0.7.5
@@ -33,16 +35,16 @@ require (
3335
github.com/gorilla/mux v1.8.1
3436
github.com/grpc-ecosystem/grpc-gateway v1.16.0
3537
github.com/hashicorp/go-metrics v0.5.3
36-
github.com/initia-labs/OPinit v0.5.5
37-
github.com/initia-labs/initia v0.6.0
38+
github.com/initia-labs/OPinit v0.5.7
39+
github.com/initia-labs/initia v0.6.1
3840
github.com/initia-labs/kvindexer v0.1.9
3941
github.com/initia-labs/kvindexer/submodules/block v0.1.0
4042
github.com/initia-labs/kvindexer/submodules/tx v0.1.0
4143
github.com/initia-labs/kvindexer/submodules/wasm-nft v0.1.5
4244
github.com/initia-labs/kvindexer/submodules/wasm-pair v0.1.0
4345
github.com/noble-assets/forwarding/v2 v2.0.0-20240521090705-86712c4c9e43
4446
github.com/pkg/errors v0.9.1
45-
github.com/prometheus/client_golang v1.20.4
47+
github.com/prometheus/client_golang v1.20.5
4648
github.com/rakyll/statik v0.1.7
4749
github.com/skip-mev/block-sdk/v2 v2.1.2
4850
github.com/skip-mev/connect/v2 v2.0.1
@@ -51,8 +53,8 @@ require (
5153
github.com/spf13/viper v1.19.0
5254
github.com/stretchr/testify v1.9.0
5355
google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1
54-
google.golang.org/grpc v1.66.2
55-
google.golang.org/protobuf v1.34.2
56+
google.golang.org/grpc v1.67.1
57+
google.golang.org/protobuf v1.35.1
5658
)
5759

5860
require (
@@ -93,7 +95,7 @@ require (
9395
github.com/cockroachdb/pebble v1.1.2 // indirect
9496
github.com/cockroachdb/redact v1.1.5 // indirect
9597
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
96-
github.com/cometbft/cometbft-db v0.12.0 // indirect
98+
github.com/cometbft/cometbft-db v0.14.1 // indirect
9799
github.com/consensys/bavard v0.1.13 // indirect
98100
github.com/consensys/gnark-crypto v0.12.1 // indirect
99101
github.com/cosmos/btcutil v1.0.5 // indirect
@@ -109,7 +111,7 @@ require (
109111
github.com/creachadair/tomledit v0.0.24 // indirect
110112
github.com/danieljoos/wincred v1.1.2 // indirect
111113
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
112-
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
114+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
113115
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
114116
github.com/dgraph-io/badger/v4 v4.2.0 // indirect
115117
github.com/dgraph-io/ristretto v0.1.1 // indirect
@@ -134,10 +136,10 @@ require (
134136
github.com/gofrs/flock v0.12.1 // indirect
135137
github.com/gogo/googleapis v1.4.1 // indirect
136138
github.com/gogo/protobuf v1.3.3 // indirect
137-
github.com/golang/glog v1.2.1 // indirect
139+
github.com/golang/glog v1.2.2 // indirect
138140
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
139141
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
140-
github.com/google/btree v1.1.2 // indirect
142+
github.com/google/btree v1.1.3 // indirect
141143
github.com/google/flatbuffers v2.0.8+incompatible // indirect
142144
github.com/google/go-cmp v0.6.0 // indirect
143145
github.com/google/go-github/v43 v43.0.0 // indirect
@@ -171,7 +173,7 @@ require (
171173
github.com/iancoleman/strcase v0.3.0 // indirect
172174
github.com/improbable-eng/grpc-web v0.15.0 // indirect
173175
github.com/inconshreveable/mousetrap v1.1.0 // indirect
174-
github.com/initia-labs/OPinit/api v0.5.1 // indirect
176+
github.com/initia-labs/OPinit/api v0.5.7 // indirect
175177
github.com/jmespath/go-jmespath v0.4.0 // indirect
176178
github.com/jmhodges/levigo v1.0.0 // indirect
177179
github.com/jsternberg/zap-logfmt v1.3.0 // indirect
@@ -185,7 +187,7 @@ require (
185187
github.com/mattn/go-colorable v0.1.13 // indirect
186188
github.com/mattn/go-isatty v0.0.20 // indirect
187189
github.com/mattn/go-runewidth v0.0.13 // indirect
188-
github.com/minio/highwayhash v1.0.2 // indirect
190+
github.com/minio/highwayhash v1.0.3 // indirect
189191
github.com/mitchellh/go-homedir v1.1.0 // indirect
190192
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
191193
github.com/mitchellh/mapstructure v1.5.0 // indirect
@@ -197,10 +199,10 @@ require (
197199
github.com/olekukonko/tablewriter v0.0.5 // indirect
198200
github.com/opencontainers/go-digest v1.0.0 // indirect
199201
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
200-
github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect
202+
github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 // indirect
201203
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
202204
github.com/prometheus/client_model v0.6.1 // indirect
203-
github.com/prometheus/common v0.55.0 // indirect
205+
github.com/prometheus/common v0.60.1 // indirect
204206
github.com/prometheus/procfs v0.15.1 // indirect
205207
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
206208
github.com/rivo/uniseg v0.2.0 // indirect
@@ -209,7 +211,7 @@ require (
209211
github.com/rs/zerolog v1.33.0 // indirect
210212
github.com/sagikazarmark/locafero v0.4.0 // indirect
211213
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
212-
github.com/sasha-s/go-deadlock v0.3.1 // indirect
214+
github.com/sasha-s/go-deadlock v0.3.5 // indirect
213215
github.com/shamaton/msgpack/v2 v2.2.0 // indirect
214216
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
215217
github.com/sourcegraph/conc v0.3.0 // indirect
@@ -236,14 +238,14 @@ require (
236238
go.opentelemetry.io/otel/trace v1.24.0 // indirect
237239
go.uber.org/multierr v1.11.0 // indirect
238240
go.uber.org/zap v1.27.0 // indirect
239-
golang.org/x/crypto v0.27.0 // indirect
241+
golang.org/x/crypto v0.28.0 // indirect
240242
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
241-
golang.org/x/net v0.29.0 // indirect
242-
golang.org/x/oauth2 v0.21.0 // indirect
243+
golang.org/x/net v0.30.0 // indirect
244+
golang.org/x/oauth2 v0.23.0 // indirect
243245
golang.org/x/sync v0.8.0 // indirect
244-
golang.org/x/sys v0.25.0 // indirect
245-
golang.org/x/term v0.24.0 // indirect
246-
golang.org/x/text v0.18.0 // indirect
246+
golang.org/x/sys v0.26.0 // indirect
247+
golang.org/x/term v0.25.0 // indirect
248+
golang.org/x/text v0.19.0 // indirect
247249
golang.org/x/time v0.6.0 // indirect
248250
google.golang.org/api v0.189.0 // indirect
249251
google.golang.org/genproto v0.0.0-20240722135656-d784300faade // indirect
@@ -281,7 +283,7 @@ replace (
281283

282284
// initia custom
283285
replace (
284-
github.com/cometbft/cometbft => github.com/initia-labs/cometbft v0.0.0-20240925132752-ff8ff0126261
286+
github.com/cometbft/cometbft => github.com/initia-labs/cometbft v0.0.0-20241104064728-ef8cadf1bed8
285287
github.com/cosmos/ibc-go/v8 => github.com/initia-labs/ibc-go/v8 v8.0.0-20240802003717-19c0b4ad450d
286288

287289
// use custom version until this PR is merged

0 commit comments

Comments
 (0)