Skip to content

Commit 89d2a0c

Browse files
authored
Merge pull request #12 from initia-labs/bump/initia-opinit
bump: initia and opinitg
2 parents b688cfc + 0356daf commit 89d2a0c

File tree

3 files changed

+106
-67
lines changed

3 files changed

+106
-67
lines changed

app/app.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,17 @@ func NewMinitiaApp(
678678
panic(fmt.Sprintf("error while reading wasm config: %s", err))
679679
}
680680

681+
// allow slinky queries
682+
queryAllowlist := make(map[string]proto.Message)
683+
queryAllowlist["/slinky.oracle.v1.Query/GetAllCurrencyPairs"] = &oracletypes.GetAllCurrencyPairsRequest{}
684+
queryAllowlist["/slinky.oracle.v1.Query/GetPrice"] = &oracletypes.GetPriceRequest{}
685+
queryAllowlist["/slinky.oracle.v1.Query/GetPrices"] = &oracletypes.GetPricesRequest{}
686+
687+
// use accept list stargate querier
688+
wasmOpts = append(wasmOpts, wasmkeeper.WithQueryPlugins(&wasmkeeper.QueryPlugins{
689+
Stargate: wasmkeeper.AcceptListStargateQuerier(queryAllowlist, app.GRPCQueryRouter(), appCodec),
690+
}))
691+
681692
// The last arguments can contain custom message handlers, and custom query handlers,
682693
// if we want to allow any custom callbacks
683694
*app.WasmKeeper = wasmkeeper.NewKeeper(

go.mod

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ require (
99
cosmossdk.io/core v0.11.0
1010
cosmossdk.io/errors v1.0.1
1111
cosmossdk.io/log v1.3.1
12-
cosmossdk.io/math v1.2.0
12+
cosmossdk.io/math v1.3.0
1313
cosmossdk.io/store v1.0.2
1414
cosmossdk.io/tools/confix v0.1.1
1515
cosmossdk.io/x/feegrant v0.1.0
16-
cosmossdk.io/x/tx v0.13.0
16+
cosmossdk.io/x/tx v0.13.1
1717
cosmossdk.io/x/upgrade v0.1.1
1818
// we also need to update `LIBWASMVM_VERSION` of images/private/Dockerfile#5
1919
github.com/CosmWasm/wasmd v0.50.0
2020
github.com/CosmWasm/wasmvm v1.5.0
2121
github.com/cometbft/cometbft v0.38.5
22-
github.com/cosmos/cosmos-db v1.0.0
22+
github.com/cosmos/cosmos-db v1.0.2
2323
github.com/cosmos/cosmos-proto v1.0.0-beta.4
2424
github.com/cosmos/cosmos-sdk v0.50.4
2525
github.com/cosmos/go-bip39 v1.0.0
@@ -29,11 +29,11 @@ require (
2929
github.com/cosmos/ibc-go/modules/capability v1.0.0
3030
github.com/cosmos/ibc-go/v8 v8.0.0
3131
github.com/golang/mock v1.6.0
32-
github.com/golang/protobuf v1.5.3
32+
github.com/golang/protobuf v1.5.4
3333
github.com/gorilla/mux v1.8.1
3434
github.com/grpc-ecosystem/grpc-gateway v1.16.0
35-
github.com/initia-labs/OPinit v0.2.0-beta.1
36-
github.com/initia-labs/initia v0.2.0-beta.7.0.20240307103405-3f582cc4f665
35+
github.com/initia-labs/OPinit v0.2.1
36+
github.com/initia-labs/initia v0.2.1
3737
github.com/pkg/errors v0.9.1
3838
github.com/prometheus/client_golang v1.18.0
3939
github.com/rakyll/statik v0.1.7
@@ -42,20 +42,20 @@ require (
4242
github.com/spf13/cast v1.6.0
4343
github.com/spf13/cobra v1.8.0
4444
github.com/spf13/viper v1.18.2
45-
github.com/stretchr/testify v1.8.4
46-
google.golang.org/genproto/googleapis/api v0.0.0-20231212172506-995d672761c0
47-
google.golang.org/grpc v1.61.0
48-
google.golang.org/protobuf v1.32.0
45+
github.com/stretchr/testify v1.9.0
46+
google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014
47+
google.golang.org/grpc v1.62.0
48+
google.golang.org/protobuf v1.33.0
4949
)
5050

5151
require github.com/hashicorp/go-metrics v0.5.2
5252

5353
require (
54-
cloud.google.com/go v0.110.10 // indirect
55-
cloud.google.com/go/compute v1.23.3 // indirect
54+
cloud.google.com/go v0.112.0 // indirect
55+
cloud.google.com/go/compute v1.24.0 // indirect
5656
cloud.google.com/go/compute/metadata v0.2.3 // indirect
57-
cloud.google.com/go/iam v1.1.5 // indirect
58-
cloud.google.com/go/storage v1.35.1 // indirect
57+
cloud.google.com/go/iam v1.1.6 // indirect
58+
cloud.google.com/go/storage v1.36.0 // indirect
5959
cosmossdk.io/depinject v1.0.0-alpha.4 // indirect
6060
cosmossdk.io/x/evidence v0.1.0 // indirect
6161
filippo.io/edwards25519 v1.0.0 // indirect
@@ -105,6 +105,8 @@ require (
105105
github.com/go-kit/kit v0.13.0 // indirect
106106
github.com/go-kit/log v0.2.1 // indirect
107107
github.com/go-logfmt/logfmt v0.6.0 // indirect
108+
github.com/go-logr/logr v1.4.1 // indirect
109+
github.com/go-logr/stdr v1.2.2 // indirect
108110
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
109111
github.com/gogo/googleapis v1.4.1 // indirect
110112
github.com/gogo/protobuf v1.3.3 // indirect
@@ -116,7 +118,7 @@ require (
116118
github.com/google/gofuzz v1.2.0 // indirect
117119
github.com/google/orderedcode v0.0.1 // indirect
118120
github.com/google/s2a-go v0.1.7 // indirect
119-
github.com/google/uuid v1.4.0 // indirect
121+
github.com/google/uuid v1.6.0 // indirect
120122
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
121123
github.com/googleapis/gax-go/v2 v2.12.0 // indirect
122124
github.com/gorilla/handlers v1.5.2 // indirect
@@ -141,7 +143,7 @@ require (
141143
github.com/inconshreveable/mousetrap v1.1.0 // indirect
142144
github.com/jmespath/go-jmespath v0.4.0 // indirect
143145
github.com/jmhodges/levigo v1.0.0 // indirect
144-
github.com/klauspost/compress v1.17.6 // indirect
146+
github.com/klauspost/compress v1.17.7 // indirect
145147
github.com/kr/pretty v0.3.1 // indirect
146148
github.com/kr/text v0.2.0 // indirect
147149
github.com/lib/pq v1.10.9 // indirect
@@ -184,21 +186,25 @@ require (
184186
github.com/zondax/ledger-go v0.14.3 // indirect
185187
go.etcd.io/bbolt v1.3.8 // indirect
186188
go.opencensus.io v0.24.0 // indirect
189+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 // indirect
190+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 // indirect
191+
go.opentelemetry.io/otel v1.22.0 // indirect
192+
go.opentelemetry.io/otel/metric v1.22.0 // indirect
193+
go.opentelemetry.io/otel/trace v1.22.0 // indirect
187194
go.uber.org/multierr v1.11.0 // indirect
188195
golang.org/x/crypto v0.19.0 // indirect
189-
golang.org/x/exp v0.0.0-20240213143201-ec583247a57a // indirect
196+
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 // indirect
190197
golang.org/x/net v0.21.0 // indirect
191198
golang.org/x/oauth2 v0.16.0 // indirect
192199
golang.org/x/sync v0.6.0 // indirect
193200
golang.org/x/sys v0.17.0 // indirect
194201
golang.org/x/term v0.17.0 // indirect
195202
golang.org/x/text v0.14.0 // indirect
196203
golang.org/x/time v0.5.0 // indirect
197-
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
198-
google.golang.org/api v0.153.0 // indirect
204+
google.golang.org/api v0.162.0 // indirect
199205
google.golang.org/appengine v1.6.8 // indirect
200-
google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3 // indirect
201-
google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0 // indirect
206+
google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9 // indirect
207+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240221002015-b0ce06bbee7c // indirect
202208
gopkg.in/ini.v1 v1.67.0 // indirect
203209
gopkg.in/yaml.v2 v2.4.0 // indirect
204210
gopkg.in/yaml.v3 v3.0.1 // indirect
@@ -213,7 +219,7 @@ replace (
213219
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
214220

215221
github.com/cometbft/cometbft => github.com/initia-labs/cometbft v0.0.0-20240104081544-34081fc84daf
216-
github.com/cosmos/cosmos-sdk => github.com/initia-labs/cosmos-sdk v0.0.0-20240123082052-77e8b246064a
222+
github.com/cosmos/cosmos-sdk => github.com/initia-labs/cosmos-sdk v0.0.0-20240313050640-ff14560eeb21
217223

218224
github.com/cosmos/iavl => github.com/initia-labs/iavl v0.0.0-20240208034922-5d81c449d4c0
219225

0 commit comments

Comments
 (0)