Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ var upgradesList = []string{
"1.2.1beta",
// 1.2.2beta
"1.2.2beta",
// 1.2.3beta
"1.2.3beta",
// 1.2.4beta
"1.2.4beta",
// 1.2.2beta-postfix
"1.2.2beta-postfix",
}

func (app App) RegisterUpgradeHandlers() {
Expand Down
7 changes: 4 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ require (
go.opentelemetry.io/otel/exporters/jaeger v1.9.0
go.opentelemetry.io/otel/sdk v1.9.0
go.opentelemetry.io/otel/trace v1.9.0
golang.org/x/exp v0.0.0-20221031165847-c99f073a8326
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c
google.golang.org/grpc v1.50.1
Expand Down Expand Up @@ -246,14 +247,14 @@ require (
gitlab.com/bosi/decorder v0.2.1 // indirect
go.etcd.io/bbolt v1.3.6 // indirect
go.opencensus.io v0.23.0 // indirect
golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect
golang.org/x/crypto v0.1.0 // indirect
golang.org/x/exp/typeparams v0.0.0-20220218215828-6cf2b201936e // indirect
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect
golang.org/x/mod v0.6.0 // indirect
golang.org/x/net v0.1.0 // indirect
golang.org/x/sys v0.1.0 // indirect
golang.org/x/term v0.1.0 // indirect
golang.org/x/text v0.4.0 // indirect
golang.org/x/tools v0.1.12 // indirect
golang.org/x/tools v0.2.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/ini.v1 v1.66.4 // indirect
honnef.co/go/tools v0.3.1 // indirect
Expand Down
13 changes: 8 additions & 5 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1507,8 +1507,9 @@ golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5y
golang.org/x/crypto v0.0.0-20211215165025-cf75a172585e/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
golang.org/x/crypto v0.0.0-20220112180741-5e0467b6c7ce/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.0.0-20220313003712-b769efc7c000/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 h1:kUhD7nTDoI3fVd9G4ORWrbV5NY0liEs/Jg2pv5f+bBA=
golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.1.0 h1:MDRAIl0xIo9Io2xV565hzXHw3zVseKrJKodhohM5CjU=
golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw=
golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
Expand All @@ -1524,6 +1525,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw=
golang.org/x/exp v0.0.0-20221031165847-c99f073a8326 h1:QfTh0HpN6hlw6D3vu8DAwC8pBIwikq0AI1evdm+FksE=
golang.org/x/exp v0.0.0-20221031165847-c99f073a8326/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
golang.org/x/exp/typeparams v0.0.0-20220218215828-6cf2b201936e h1:qyrTQ++p1afMkO4DPEeLGq/3oTsdlvdH4vqZUBWzUKM=
golang.org/x/exp/typeparams v0.0.0-20220218215828-6cf2b201936e/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk=
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs=
Expand Down Expand Up @@ -1556,8 +1559,8 @@ golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.6.0 h1:b9gGHsz9/HhJ3HF5DHQytPpuwocVTChQJK3AvoLRD5I=
golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI=
golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
Expand Down Expand Up @@ -1912,8 +1915,8 @@ golang.org/x/tools v0.1.9-0.20211228192929-ee1ca4ffc4da/go.mod h1:nABZi5QlRsZVlz
golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU=
golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
golang.org/x/tools v0.1.11-0.20220316014157-77aa08bb151a/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.2.0 h1:G6AHpWxTMGY1KyEYoAQ5WTtIekUUvDNjan3ugu60JvE=
golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand Down
3 changes: 0 additions & 3 deletions oracle/price-feeder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ This is a standalone version of [Umee's fantastic work](https://github.com/umee-

The list of current supported providers:

- [FIN](https://fin.kujira.app)
- [Binance](https://www.binance.com/en)
- [MEXC](https://www.mexc.com/)
- [Coinbase](https://www.coinbase.com/)
- [Gate](https://www.gate.io/)
- [Huobi](https://www.huobi.com/en-us/)
- [Kraken](https://www.kraken.com/en-us/)
- [Okx](https://www.okx.com/)
- [Osmosis](https://app.osmosis.zone/)

## Usage

Expand Down Expand Up @@ -76,7 +74,6 @@ quote = "USDT"
base = "ATOM"
providers = [
"kraken",
"osmosis",
]
quote = "USD"
```
Expand Down
2 changes: 1 addition & 1 deletion oracle/price-feeder/config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ base = "ATOM"
providers = [
"binance",
"kraken",
"osmosis",
"coinbase",
]
quote = "USD"

Expand Down
4 changes: 0 additions & 4 deletions oracle/price-feeder/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ const (
defaultSrvReadTimeout = 15 * time.Second
defaultProviderTimeout = 100 * time.Millisecond

ProviderFin = "fin"
ProviderKraken = "kraken"
ProviderBinance = "binance"
ProviderMexc = "mexc"
ProviderOsmosis = "osmosis"
ProviderHuobi = "huobi"
ProviderOkx = "okx"
ProviderGate = "gate"
Expand All @@ -41,11 +39,9 @@ var (
// SupportedProviders defines a lookup table of all the supported currency API
// providers.
SupportedProviders = map[string]struct{}{
ProviderFin: {},
ProviderKraken: {},
ProviderBinance: {},
ProviderMexc: {},
ProviderOsmosis: {},
ProviderOkx: {},
ProviderHuobi: {},
ProviderGate: {},
Expand Down
2 changes: 1 addition & 1 deletion oracle/price-feeder/dockerfile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ chain_denom = "uatom"
providers = [
"binance",
"kraken",
"osmosis",
"coinbase",
]
quote = "USD"
EOF
Expand Down
2 changes: 1 addition & 1 deletion oracle/price-feeder/oracle/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (r *passReader) Read(p []byte) (n int, err error) {
// Ref: https://github.com/terra-money/oracle-feeder/blob/baef2a4a02f57a2ffeaa207932b2e03d7fb0fb25/feeder/src/vote.ts#L230
func (oc OracleClient) BroadcastTx(nextBlockHeight, timeoutHeight int64, msgs ...sdk.Msg) error {
maxBlockHeight := nextBlockHeight + timeoutHeight
lastCheckHeight := nextBlockHeight - 1
lastCheckHeight := nextBlockHeight - 2

clientCtx, err := oc.CreateClientContext()
if err != nil {
Expand Down
6 changes: 0 additions & 6 deletions oracle/price-feeder/oracle/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,6 @@ func NewProvider(
providerPairs ...types.CurrencyPair,
) (provider.Provider, error) {
switch providerName {
case config.ProviderFin:
return provider.NewFinProvider(endpoint), nil

case config.ProviderBinance:
return provider.NewBinanceProvider(ctx, logger, endpoint, providerPairs...)

Expand All @@ -459,9 +456,6 @@ func NewProvider(
case config.ProviderMexc:
return provider.NewMexcProvider(ctx, logger, endpoint, providerPairs...)

case config.ProviderOsmosis:
return provider.NewOsmosisProvider(endpoint), nil

case config.ProviderHuobi:
return provider.NewHuobiProvider(ctx, logger, endpoint, providerPairs...)

Expand Down
8 changes: 4 additions & 4 deletions oracle/price-feeder/oracle/oracle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (ots *OracleTestSuite) SetupSuite() {
Base: "XBT",
ChainDenom: "uxbt",
Quote: "USDT",
Providers: []string{config.ProviderOsmosis},
Providers: []string{config.ProviderOkx},
},
{
Base: "USDC",
Expand Down Expand Up @@ -226,7 +226,7 @@ func (ots *OracleTestSuite) TestPrices() {
},
},
},
config.ProviderOsmosis: mockProvider{
config.ProviderOkx: mockProvider{
prices: map[string]provider.TickerPrice{
"XBTUSDT": {
Price: sdk.MustNewDecFromStr("3.717"),
Expand Down Expand Up @@ -279,7 +279,7 @@ func (ots *OracleTestSuite) TestPrices() {
},
},
},
config.ProviderOsmosis: mockProvider{
config.ProviderOkx: mockProvider{
prices: map[string]provider.TickerPrice{
"XBTUSDT": {
Price: sdk.MustNewDecFromStr("3.717"),
Expand Down Expand Up @@ -331,7 +331,7 @@ func (ots *OracleTestSuite) TestPrices() {
},
},
},
config.ProviderOsmosis: mockProvider{
config.ProviderOkx: mockProvider{
prices: map[string]provider.TickerPrice{
"XBTUSDT": {
Price: sdk.MustNewDecFromStr("3.717"),
Expand Down
Loading