Skip to content

Commit

Permalink
Merge branch 'main' into mattverse/keplr-events
Browse files Browse the repository at this point in the history
  • Loading branch information
mattverse authored Oct 17, 2024
2 parents c2e670e + 2d938d0 commit e4639f5
Show file tree
Hide file tree
Showing 34 changed files with 1,317 additions and 239 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-broken-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1.10.0
uses: lycheeverse/lychee-action@v2.0.2
with:
args: --exclude-loopback --verbose --no-progress --max-concurrency 1 './**/*.md' './**/*.html'
env:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### State Compatible

* [#8754](https://github.com/osmosis-labs/osmosis/pull/8754) Add missing proto files for indexing
* [#8563](https://github.com/osmosis-labs/osmosis/pull/8563) Add additional queries in x/gauges
* [#8726](https://github.com/osmosis-labs/osmosis/pull/8726) fix: multiple temp directories on command executions
* [#8731](https://github.com/osmosis-labs/osmosis/pull/8731) fix: in place testnet logs
* [#8728](https://github.com/osmosis-labs/osmosis/pull/8728) fix unsupported sign-mode issue
* [#8743](https://github.com/osmosis-labs/osmosis/pull/8743) chore: bump sdk and cometbft

* [#8563](https://github.com/osmosis-labs/osmosis/pull/8755) [x/concentratedliquidity]: Fix Incorrect Event Emission
* [#8765](https://github.com/osmosis-labs/osmosis/pull/8765) fix concurrency issue in go test(x/lockup)

### State Machine Breaking

Expand Down
28 changes: 17 additions & 11 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ import (
gammtypes "github.com/osmosis-labs/osmosis/v26/x/gamm/types"

commondomain "github.com/osmosis-labs/osmosis/v26/ingest/common/domain"
commonservice "github.com/osmosis-labs/osmosis/v26/ingest/common/service"

"github.com/osmosis-labs/osmosis/osmomath"

Expand Down Expand Up @@ -339,8 +340,23 @@ func NewOsmosisApp(
ibcWasmConfig,
)

// Initialize the config object for the SQS ingester
sqsConfig := sqs.NewConfigFromOptions(appOpts)

// Initialize the config object for the indexer
indexerConfig := indexer.NewConfigFromOptions(appOpts)

var nodeStatusChecker commonservice.NodeStatusChecker
if sqsConfig.IsEnabled || indexerConfig.IsEnabled {
// Note: address can be moved to config in the future if needed.
rpcAddress, ok := appOpts.Get(rpcAddressConfigName).(string)
if !ok {
panic(fmt.Sprintf("failed to retrieve %s from config.toml", rpcAddressConfigName))
}
// Create node status checker to be used by sqs and indexer streaming services.
nodeStatusChecker = commonservice.NewNodeStatusChecker(rpcAddress)
}

streamingServices := []storetypes.ABCIListener{}

// Initialize the SQS ingester if it is enabled.
Expand Down Expand Up @@ -373,13 +389,6 @@ func NewOsmosisApp(
// Create write listeners for the SQS service.
writeListeners, storeKeyMap := getSQSServiceWriteListeners(app, appCodec, poolTracker, app.WasmKeeper)

// Note: address can be moved to config in the future if needed.
rpcAddress, ok := appOpts.Get(rpcAddressConfigName).(string)
if !ok {
panic(fmt.Sprintf("failed to retrieve %s from config.toml", rpcAddressConfigName))
}
nodeStatusChecker := sqsservice.NewNodeStatusChecker(rpcAddress)

// Create the SQS streaming service by setting up the write listeners,
// the SQS ingester, and the pool tracker.
blockUpdatesProcessUtils := &commondomain.BlockUpdateProcessUtils{
Expand All @@ -391,9 +400,6 @@ func NewOsmosisApp(
streamingServices = append(streamingServices, sqsStreamingService)
}

// Initialize the config object for the indexer
indexerConfig := indexer.NewConfigFromOptions(appOpts)

// initialize indexer if enabled
if indexerConfig.IsEnabled {
indexerPublisher := indexerConfig.Initialize()
Expand Down Expand Up @@ -433,7 +439,7 @@ func NewOsmosisApp(
StoreKeyMap: storeKeyMap,
}
poolExtractor := poolextractor.New(poolKeepers, poolTracker)
indexerStreamingService := indexerservice.New(blockUpdatesProcessUtils, blockProcessStrategyManager, indexerPublisher, storeKeyMap, poolExtractor, poolTracker, keepers, app.GetTxConfig().TxDecoder(), logger)
indexerStreamingService := indexerservice.New(blockUpdatesProcessUtils, blockProcessStrategyManager, indexerPublisher, storeKeyMap, poolExtractor, poolTracker, keepers, app.GetTxConfig().TxDecoder(), nodeStatusChecker, logger)

// Register the SQS streaming service with the app.
streamingServices = append(streamingServices, indexerStreamingService)
Expand Down
46 changes: 23 additions & 23 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/osmosis-labs/osmosis/v26
go 1.22.4

require (
cloud.google.com/go/pubsub v1.43.0
cloud.google.com/go/pubsub v1.44.0
cosmossdk.io/api v0.7.6
cosmossdk.io/client/v2 v2.0.0-beta.3
cosmossdk.io/core v0.12.1-0.20240725072823-6a2d039e1212
Expand All @@ -30,7 +30,7 @@ require (
github.com/cosmos/ibc-go/modules/capability v1.0.1
github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.4.2-0.20240730185033-ccd4dc278e72
github.com/cosmos/ibc-go/v8 v8.5.1
github.com/cosmos/rosetta v0.50.9
github.com/cosmos/rosetta v0.50.10
github.com/golang/mock v1.6.0
github.com/golang/protobuf v1.5.4
github.com/gorilla/mux v1.8.1
Expand All @@ -54,16 +54,16 @@ require (
github.com/spf13/viper v1.19.0
github.com/stretchr/testify v1.9.0
github.com/tidwall/btree v1.7.0
github.com/tidwall/gjson v1.17.3
github.com/tidwall/gjson v1.18.0
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.55.0
go.opentelemetry.io/otel v1.30.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.30.0
go.opentelemetry.io/otel/sdk v1.30.0
go.opentelemetry.io/otel v1.31.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.31.0
go.opentelemetry.io/otel/sdk v1.31.0
go.uber.org/multierr v1.11.0
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8
google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1
google.golang.org/grpc v1.66.1
google.golang.org/protobuf v1.34.2
google.golang.org/genproto/googleapis/api v0.0.0-20241007155032-5fefd90f89a9
google.golang.org/grpc v1.67.1
google.golang.org/protobuf v1.35.1
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.1
gotest.tools v2.2.0+incompatible
Expand All @@ -75,7 +75,7 @@ require (
cloud.google.com/go/auth v0.9.3 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.4 // indirect
cloud.google.com/go/compute/metadata v0.5.0 // indirect
cloud.google.com/go/iam v1.2.0 // indirect
cloud.google.com/go/iam v1.2.1 // indirect
cloud.google.com/go/storage v1.43.0 // indirect
cosmossdk.io/collections v0.4.0 // indirect
cosmossdk.io/depinject v1.0.0 // indirect
Expand Down Expand Up @@ -118,7 +118,7 @@ require (
github.com/google/flatbuffers v23.5.26+incompatible // indirect
github.com/google/s2a-go v0.1.8 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.3 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
github.com/googleapis/gax-go/v2 v2.13.0 // indirect
github.com/goware/urlx v0.3.2 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 // indirect
Expand All @@ -145,7 +145,7 @@ require (
github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/osmosis-labs/sqs v0.19.2-rc2.0.20240826173240-e5733bb3700d // indirect
github.com/rogpeppe/go-internal v1.12.0 // indirect
github.com/rogpeppe/go-internal v1.13.1 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/shamaton/msgpack/v2 v2.2.0 // indirect
Expand All @@ -156,15 +156,15 @@ require (
github.com/zimmski/go-mutesting v0.0.0-20210610104036-6d9217011a00 // indirect
github.com/zondax/ledger-go v0.14.3 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.30.0 // indirect
go.opentelemetry.io/otel/metric v1.30.0 // indirect
go.opentelemetry.io/otel/trace v1.30.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.31.0 // indirect
go.opentelemetry.io/otel/metric v1.31.0 // indirect
go.opentelemetry.io/otel/trace v1.31.0 // indirect
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
golang.org/x/oauth2 v0.23.0 // indirect
golang.org/x/time v0.6.0 // indirect
google.golang.org/api v0.196.0 // indirect
google.golang.org/api v0.197.0 // indirect
google.golang.org/genproto v0.0.0-20240903143218-8af14fe29dc1 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241007155032-5fefd90f89a9 // indirect
gotest.tools/v3 v3.5.1 // indirect
pgregory.net/rapid v1.1.0 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
Expand Down Expand Up @@ -201,7 +201,7 @@ require (
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v1.2.1 // indirect
github.com/golang/glog v1.2.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/go-cmp v0.6.0 // indirect
Expand Down Expand Up @@ -259,13 +259,13 @@ require (
github.com/zondax/hid v0.9.2 // indirect
go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/crypto v0.27.0 // indirect
golang.org/x/crypto v0.28.0 // indirect
golang.org/x/mod v0.18.0 // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/net v0.30.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/term v0.24.0 // indirect
golang.org/x/text v0.18.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/tools v0.22.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
nhooyr.io/websocket v1.8.10 // indirect
Expand Down
Loading

0 comments on commit e4639f5

Please sign in to comment.