Skip to content

Commit

Permalink
Merge branch 'main' into ryan/query-currency-pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
rbajollari authored Sep 15, 2023
2 parents ec647b1 + d5ead5a commit cfe4e9a
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/price-feeder-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Release
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v5
with:
# Note, we have to pin to v0.179.0 due to newer releases enforcing
# correct semantic versioning even when '--skip-validate' is provided.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
uses: actions/checkout@v4

- name: Log in to the Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: USERNAME
password: ${{ secrets.REPO_PUSH_PAT }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: true
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ require (
github.com/justinas/alice v1.2.0
github.com/mitchellh/mapstructure v1.5.0
github.com/ojo-network/ojo v0.2.1-0.20230913163141-2afaebca31ef
github.com/rs/cors v1.9.0
github.com/rs/cors v1.10.0
github.com/rs/zerolog v1.30.0
github.com/spf13/cobra v1.7.0
github.com/spf13/viper v1.16.0
github.com/stretchr/testify v1.8.4
golang.org/x/sync v0.3.0
google.golang.org/grpc v1.58.0
google.golang.org/grpc v1.58.1
gopkg.in/yaml.v3 v3.0.1
)

Expand Down Expand Up @@ -60,6 +60,7 @@ require (
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
github.com/butuzov/ireturn v0.2.0 // indirect
github.com/butuzov/mirror v1.1.0 // indirect
github.com/ccojocar/zxcvbn-go v1.0.1 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/charithe/durationcheck v0.0.10 // indirect
Expand Down Expand Up @@ -181,7 +182,6 @@ require (
github.com/moricho/tparallel v0.3.1 // indirect
github.com/mtibben/percent v0.2.1 // indirect
github.com/nakabonne/nestif v0.3.1 // indirect
github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 // indirect
github.com/nishanths/exhaustive v0.11.0 // indirect
github.com/nishanths/predeclared v0.2.2 // indirect
github.com/nunnatsa/ginkgolinter v0.13.5 // indirect
Expand Down
74 changes: 19 additions & 55 deletions go.sum

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions oracle/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func (o *Oracle) SetPrices(ctx context.Context) error {
}

if err := g.Wait(); err != nil {
o.logger.Info().Err(err).Msg("failed to get prices from provider")
o.logger.Error().Err(err).Msg("failed to get prices from provider")
}

computedPrices, err := o.GetComputedPrices(
Expand All @@ -285,7 +285,7 @@ func (o *Oracle) SetPrices(ctx context.Context) error {

for cp := range requiredRates {
if _, ok := computedPrices[cp]; !ok {
o.logger.Warn().Str("asset", cp.String()).Msg("unable to report price for expected asset")
o.logger.Error().Str("asset", cp.String()).Msg("unable to report price for expected asset")
}
}

Expand Down
2 changes: 1 addition & 1 deletion oracle/provider/available_pairs.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func ConfirmPairAvailability(
confirmedPairs := []types.CurrencyPair{}
for _, cp := range cps {
if _, ok := availablePairs[strings.ToUpper(cp.String())]; !ok {
logger.Warn().Msg(fmt.Sprintf(
logger.Error().Msg(fmt.Sprintf(
"%s not an available pair to be subscribed to in %v, %v ignoring pair",
cp.String(),
providerName,
Expand Down
2 changes: 1 addition & 1 deletion oracle/provider/polygon.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (p *PolygonProvider) messageReceived(messageType int, _ *WebsocketConnectio

statusErr = json.Unmarshal(bz, &statusResp)
if statusResp[0].EV == polygonStatusEvent {
p.logger.Info().Str("status msg received: ", statusResp[0].Message)
p.logger.Debug().Str("status msg received: ", statusResp[0].Message)
return
}

Expand Down

0 comments on commit cfe4e9a

Please sign in to comment.