Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into feat/enable-cors
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersuweijie committed Oct 25, 2023
2 parents 8bc2b9b + de88013 commit be5969a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/price-server/price_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
func main() {
err := godotenv.Load()
if err != nil {
log.Print("Error loading .env file:", err)
log.Print("Error loading .env file: ", err)
}
ctx := context.Background()

Expand All @@ -42,7 +42,7 @@ func main() {
})
r.GET("/alliance/protocol", func(c *gin.Context) {
allianceProtocolRes, err := allianceProvider.GetProtocolsInfo(ctx)
// allianceProtocolRes.UpdateChainsInfo.ChainsInfo.ProtocolsInfo[0].ChainId = "narwhal-1"
allianceProtocolRes.UpdateChainsInfo.ChainsInfo.ProtocolsInfo[0].ChainId = "narwhal-1"
// allianceProtocolRes.UpdateChainsInfo.ChainsInfo.ProtocolsInfo[1].ChainId = "harpoon-4"
if err != nil {
c.JSON(http.StatusInternalServerError, err)
Expand Down
2 changes: 1 addition & 1 deletion config/alliance_default_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var KUJIRA_GRPC = "kujira-grpc.polkachu.com:11890"
var CARBON_GRPC = "carbon-grpc.terra.dev:443"

var AllianceDefaultConfig = AllianceConfig{
GRPCUrls: []string{MIGALOO_GRPC, KUJIRA_GRPC, CARBON_GRPC},
GRPCUrls: []string{MIGALOO_GRPC, KUJIRA_GRPC},
LSTSData: []LSTData{
// Whale
{ // Eris Protocol ampLUNA https://chainsco.pe/terra2/address/terra1ecgazyd0waaj3g7l9cmy5gulhxkps2gmxu9ghducvuypjq68mq2s5lvsct
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ go 1.20
require (
github.com/CosmWasm/wasmd v0.41.0
github.com/cosmos/cosmos-sdk v0.47.5
github.com/gin-contrib/cors v1.4.0
github.com/gin-gonic/gin v1.9.0
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1
github.com/gorilla/websocket v1.5.0
Expand Down Expand Up @@ -68,7 +69,6 @@ require (
github.com/dvsekhvalnov/jose2go v1.5.0 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/getsentry/sentry-go v0.23.0 // indirect
github.com/gin-contrib/cors v1.4.0 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-kit/kit v0.12.0 // indirect
github.com/go-kit/log v0.2.1 // indirect
Expand Down
1 change: 1 addition & 0 deletions internal/provider/alliance/alliance_querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func (a alliancesQuerierProvider) QueryAndSubmitOnChain(ctx context.Context) (st
if err != nil {
return "", fmt.Errorf("ERROR querying alliances data %w", err)
}

return a.transactionsProvider.SubmitAlliancesTransaction(ctx, res)
}

Expand Down

0 comments on commit be5969a

Please sign in to comment.