diff --git a/app/app.go b/app/app.go index d99159e1..9d67d63f 100644 --- a/app/app.go +++ b/app/app.go @@ -21,6 +21,7 @@ import ( "github.com/rs/zerolog/log" "github.com/spf13/viper" solverConfig "github.com/sprintertech/solver-config/go/config" + sdkConfig "github.com/sprintertech/solver-sdk/pkg/config" "github.com/sprintertech/solver-sdk/pkg/pricing" "github.com/sprintertech/solver-sdk/pkg/protocols" "github.com/sprintertech/solver-sdk/pkg/protocols/erc4626" @@ -44,7 +45,6 @@ import ( "github.com/sprintertech/sprinter-signing/metrics" "github.com/sprintertech/sprinter-signing/price" - lifiConfig "github.com/sprintertech/solver-sdk/pkg/config" "github.com/sprintertech/sprinter-signing/chains/lighter" lighterMessage "github.com/sprintertech/sprinter-signing/chains/lighter/message" "github.com/sprintertech/sprinter-signing/comm" @@ -175,7 +175,8 @@ func Run() error { } usdPricer := pyth.NewClient(ctx) - err = usdPricer.Start(ctx) + err = usdPricer.Start(ctx, sdkConfig.SupportedTokens(solverConfig)) + panicOnError(err) multiPricer := aggregator.New(usdPricer) resolver := token.NewTokenResolver(solverConfig, multiPricer) priceAPI := price.NewPricerProxy(multiPricer) @@ -304,7 +305,7 @@ func Run() error { } resolver = token.NewTokenResolver(solverConfig, multiPricer) - lifiConfig, err := lifiConfig.GetSolverConfig(solverConfig, protocols.LifiEscrow, lifiConfig.PulsarSolver) + lifiConfig, err := sdkConfig.GetSolverConfig(solverConfig, protocols.LifiEscrow, sdkConfig.PulsarSolver) panicOnError(err) orderPricer := pricing.NewStandardPricer(resolver) diff --git a/go.mod b/go.mod index 2dac6187..a9897183 100644 --- a/go.mod +++ b/go.mod @@ -21,8 +21,8 @@ require ( github.com/rs/zerolog v1.25.0 github.com/spf13/cobra v1.10.2 github.com/spf13/viper v1.9.0 - github.com/sprintertech/solver-config/go v0.0.0-20260811202645-859c642937f6 - github.com/sprintertech/solver-sdk v1.1.1-0.20260821104752-6a3c113a5958 + github.com/sprintertech/solver-config/go v0.0.0-20260819115035-7b1b83250ca4 + github.com/sprintertech/solver-sdk v1.1.1-0.20260825101026-32c00a9704e6 github.com/stretchr/testify v1.11.1 github.com/sygmaprotocol/sygma-core v0.0.0-20250304150334-bd39ac4f7b82 go.opentelemetry.io/otel v1.39.0 diff --git a/go.sum b/go.sum index 7864c4fd..fd65a776 100644 --- a/go.sum +++ b/go.sum @@ -1715,8 +1715,12 @@ github.com/spf13/viper v1.9.0 h1:yR6EXjTp0y0cLN8OZg1CRZmOBdI88UcGkhgyJhu6nZk= github.com/spf13/viper v1.9.0/go.mod h1:+i6ajR7OX2XaiBkrcZJFK21htRk7eDeLg7+O6bhUPP4= github.com/sprintertech/solver-config/go v0.0.0-20260811202645-859c642937f6 h1:SiLvJC8vyMNWbQgqGdd7Z5WP2Jg7XFShXN130ryqCgM= github.com/sprintertech/solver-config/go v0.0.0-20260811202645-859c642937f6/go.mod h1:MrIGW6M815PSYKtWSeOd1Z7eiSeOIk/uA/6E2PhlQVQ= +github.com/sprintertech/solver-config/go v0.0.0-20260819115035-7b1b83250ca4 h1:ouDxcEePolYizXXKjeB61jawFmDJrBeJg7l4MSnQeck= +github.com/sprintertech/solver-config/go v0.0.0-20260819115035-7b1b83250ca4/go.mod h1:MrIGW6M815PSYKtWSeOd1Z7eiSeOIk/uA/6E2PhlQVQ= github.com/sprintertech/solver-sdk v1.1.1-0.20260821104752-6a3c113a5958 h1:++m9ZfqDmqx2ieyP76h/snKFRVhl2TUPJ7qavLz1JiU= github.com/sprintertech/solver-sdk v1.1.1-0.20260821104752-6a3c113a5958/go.mod h1:6euNIW0DgGI/RfIvpZJgnvoVcd1PmzE1T20C0dXnyrc= +github.com/sprintertech/solver-sdk v1.1.1-0.20260825101026-32c00a9704e6 h1:0bfmInjG3+ak7E65LVBVOQxArztBSZw49iNY9dpfS8I= +github.com/sprintertech/solver-sdk v1.1.1-0.20260825101026-32c00a9704e6/go.mod h1:A9fQAvneC86+z0ib2cb+yTOV84olOqcBZxomj1pe3bc= github.com/status-im/keycard-go v0.2.0/go.mod h1:wlp8ZLbsmrF6g6WjugPAx+IzoLrkdf9+mHxBEeo3Hbg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=