From 475d56596ca7a4a805cb46e389bf11d381995079 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Mon, 30 Dec 2024 10:11:40 -0800 Subject: [PATCH 01/77] feat: Elys Integration --- x/oracle/keeper/elys.go | 1 + 1 file changed, 1 insertion(+) create mode 100644 x/oracle/keeper/elys.go diff --git a/x/oracle/keeper/elys.go b/x/oracle/keeper/elys.go new file mode 100644 index 00000000..b55569d4 --- /dev/null +++ b/x/oracle/keeper/elys.go @@ -0,0 +1 @@ +package keeper From 553db650082f8e39d90245aa7c3d187c7a1ea739 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Mon, 6 Jan 2025 09:14:21 -0800 Subject: [PATCH 02/77] endblocker --- proto/ojo/oracle/v1/elys.proto | 36 + proto/ojo/oracle/v1/oracle.proto | 4 + x/gasestimate/types/gasestimate.pb.go | 2 +- x/oracle/abci/endblocker.go | 23 + x/oracle/abci/endblocker_test.go | 43 + x/oracle/keeper/elys.go | 171 ++++ x/oracle/keeper/params.go | 22 + x/oracle/types/elys.pb.go | 1039 +++++++++++++++++++++++++ x/oracle/types/keys.go | 28 + x/oracle/types/oracle.pb.go | 243 ++++-- x/oracle/types/params.go | 42 + 11 files changed, 1566 insertions(+), 87 deletions(-) create mode 100644 proto/ojo/oracle/v1/elys.proto create mode 100644 x/oracle/types/elys.pb.go diff --git a/proto/ojo/oracle/v1/elys.proto b/proto/ojo/oracle/v1/elys.proto new file mode 100644 index 00000000..a1bdfa71 --- /dev/null +++ b/proto/ojo/oracle/v1/elys.proto @@ -0,0 +1,36 @@ +syntax = "proto3"; +package ojo.oracle.v1; + +import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; + +option go_package = "github.com/ojo-network/ojo/x/oracle/types"; + +option (gogoproto.goproto_getters_all) = false; + +message AssetInfo { + string denom = 1; + string display = 2; + string band_ticker = 3; + string elys_ticker = 4; + uint64 decimal = 5; +} + +message Price { + string asset = 1; + string price = 2 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false + ]; + string source = 3; + string provider = 4; + uint64 timestamp = 5; + uint64 block_height = 6; +} + + +message PriceFeeder { + string feeder = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + bool is_active = 2; +} diff --git a/proto/ojo/oracle/v1/oracle.proto b/proto/ojo/oracle/v1/oracle.proto index a47c762a..8085ea46 100644 --- a/proto/ojo/oracle/v1/oracle.proto +++ b/proto/ojo/oracle/v1/oracle.proto @@ -74,6 +74,10 @@ message Params { (gogoproto.castrepeated) = "CurrencyDeviationThresholdList", (gogoproto.nullable) = false ]; + // Price expiry in unix time for elys prices + uint64 price_expiry_time = 16; + // Lifetime of an elys price in blocks + uint64 life_time_in_blocks = 17; } // Denom - the object to hold configurations of each denom diff --git a/x/gasestimate/types/gasestimate.pb.go b/x/gasestimate/types/gasestimate.pb.go index f3976235..a4195b37 100644 --- a/x/gasestimate/types/gasestimate.pb.go +++ b/x/gasestimate/types/gasestimate.pb.go @@ -66,7 +66,7 @@ func (m *Params) XXX_DiscardUnknown() { var xxx_messageInfo_Params proto.InternalMessageInfo -// Contract defines a contract that we +// Contract defines a contract at a specific address and network that we send gasestimate messages to. type Contract struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"` diff --git a/x/oracle/abci/endblocker.go b/x/oracle/abci/endblocker.go index 00c59f4b..a56a99b8 100644 --- a/x/oracle/abci/endblocker.go +++ b/x/oracle/abci/endblocker.go @@ -73,6 +73,18 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { k.SlashAndResetMissCounters(sdkCtx) } k.PruneAllPrices(sdkCtx) + + // Prune expired elys prices + for _, price := range k.GetAllPrice(sdkCtx) { + if price.Timestamp+params.PriceExpiryTime < util.SafeInt64ToUint64(sdkCtx.BlockTime().Unix()) { + k.RemovePrice(sdkCtx, price.Asset, price.Source, price.Timestamp) + } + + if price.BlockHeight+params.LifeTimeInBlocks < uint64(sdkCtx.BlockHeight()) { + k.RemovePrice(sdkCtx, price.Asset, price.Source, price.Timestamp) + } + } + return nil } @@ -145,6 +157,17 @@ func CalcPrices(ctx sdk.Context, params types.Params, k keeper.Keeper) error { return err } + // Set elys price + elysPrice := types.Price{ + Asset: ballotDenom.Denom, + Price: exchangeRate, + Source: "ojo", + Provider: "automation", + Timestamp: util.SafeInt64ToUint64(ctx.BlockTime().Unix()), + BlockHeight: util.SafeInt64ToUint64(ctx.BlockHeight()), + } + k.SetPrice(ctx, elysPrice) + if k.IsPeriodLastBlock(ctx, params.HistoricStampPeriod) { k.AddHistoricPrice(ctx, ballotDenom.Denom, exchangeRate) } diff --git a/x/oracle/abci/endblocker_test.go b/x/oracle/abci/endblocker_test.go index b5d1a217..7f772dc4 100644 --- a/x/oracle/abci/endblocker_test.go +++ b/x/oracle/abci/endblocker_test.go @@ -1,10 +1,13 @@ package abci_test import ( + "time" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" appparams "github.com/ojo-network/ojo/app/params" + "github.com/ojo-network/ojo/util" "github.com/ojo-network/ojo/util/decmath" "github.com/ojo-network/ojo/x/oracle/abci" "github.com/ojo-network/ojo/x/oracle/types" @@ -26,7 +29,11 @@ func createVotes(hash string, val sdk.ValAddress, rates sdk.DecCoins, blockHeigh func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { app, ctx := s.app, s.ctx valAddr1, valAddr2, valAddr3 := s.keys[0].ValAddress, s.keys[1].ValAddress, s.keys[2].ValAddress + currTime := time.Now() + timeDiff := time.Second * 5 ctx = ctx.WithBlockHeight(0) + ctx = ctx.WithBlockTime(currTime) + currTime = currTime.Add(timeDiff) preVoteBlockDiff := int64(app.OracleKeeper.VotePeriod(ctx) / 2) voteBlockDiff := int64(app.OracleKeeper.VotePeriod(ctx)/2 + 1) @@ -71,6 +78,8 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { abci.EndBlocker(ctx, app.OracleKeeper) ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) + ctx = ctx.WithBlockTime(currTime) + currTime = currTime.Add(timeDiff) app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1, val1Votes) app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2, val2Votes) app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3, val3Votes) @@ -81,12 +90,21 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { rate, err := app.OracleKeeper.GetExchangeRate(ctx, denom.SymbolDenom) s.Require().NoError(err) s.Require().Equal(math.LegacyMustNewDecFromStr("1.0"), rate) + + elysPrice, found := app.OracleKeeper.GetLatestPriceFromAnySource(ctx, denom.SymbolDenom) + s.Require().True(found) + s.Require().Equal(elysPrice.Asset, denom.SymbolDenom) + s.Require().Equal(elysPrice.Price, rate) + s.Require().Equal(elysPrice.BlockHeight, util.SafeInt64ToUint64(ctx.BlockHeight())) + s.Require().Equal(elysPrice.Timestamp, util.SafeInt64ToUint64(ctx.BlockTime().Unix())) } // Test: only val2 votes (has 39% vote power). // Total voting power per denom must be bigger or equal than 40% (see SetupTest). // So if only val2 votes, we won't have any prices next block. ctx = ctx.WithBlockHeight(ctx.BlockHeight() + preVoteBlockDiff) + ctx = ctx.WithBlockTime(currTime) + currTime = currTime.Add(timeDiff) h = uint64(ctx.BlockHeight()) val2PreVotes.SubmitBlock = h @@ -94,6 +112,8 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { abci.EndBlocker(ctx, app.OracleKeeper) ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) + ctx = ctx.WithBlockTime(currTime) + currTime = currTime.Add(timeDiff) app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2, val2Votes) abci.EndBlocker(ctx, app.OracleKeeper) @@ -106,6 +126,8 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { // Test: val2 and val3 votes. // now we will have 40% of the power, so now we should have prices ctx = ctx.WithBlockHeight(ctx.BlockHeight() + preVoteBlockDiff) + ctx = ctx.WithBlockTime(currTime) + currTime = currTime.Add(timeDiff) h = uint64(ctx.BlockHeight()) val2PreVotes.SubmitBlock = h val3PreVotes.SubmitBlock = h @@ -115,6 +137,8 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { abci.EndBlocker(ctx, app.OracleKeeper) ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) + ctx = ctx.WithBlockTime(currTime) + currTime = currTime.Add(timeDiff) app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2, val2Votes) app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3, val3Votes) abci.EndBlocker(ctx, app.OracleKeeper) @@ -123,11 +147,20 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { rate, err := app.OracleKeeper.GetExchangeRate(ctx, denom.SymbolDenom) s.Require().NoError(err) s.Require().Equal(math.LegacyMustNewDecFromStr("0.5"), rate) + + elysPrice, found := app.OracleKeeper.GetLatestPriceFromAnySource(ctx, denom.SymbolDenom) + s.Require().True(found) + s.Require().Equal(elysPrice.Asset, denom.SymbolDenom) + s.Require().Equal(elysPrice.Price, rate) + s.Require().Equal(elysPrice.BlockHeight, util.SafeInt64ToUint64(ctx.BlockHeight())) + s.Require().Equal(elysPrice.Timestamp, util.SafeInt64ToUint64(ctx.BlockTime().Unix())) } // Test: val1 and val2 vote again // umee has 69.9% power, and atom has 30%, so we should have price for umee, but not for atom ctx = ctx.WithBlockHeight(ctx.BlockHeight() + preVoteBlockDiff) + ctx = ctx.WithBlockTime(currTime) + currTime = currTime.Add(timeDiff) h = uint64(ctx.BlockHeight()) val1PreVotes.SubmitBlock = h val2PreVotes.SubmitBlock = h @@ -144,6 +177,8 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { abci.EndBlocker(ctx, app.OracleKeeper) ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) + ctx = ctx.WithBlockTime(currTime) + currTime = currTime.Add(timeDiff) app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1, val1Votes) app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2, val2Votes) abci.EndBlocker(ctx, app.OracleKeeper) @@ -151,6 +186,14 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { rate, err := app.OracleKeeper.GetExchangeRate(ctx, "ojo") s.Require().NoError(err) s.Require().Equal(math.LegacyMustNewDecFromStr("1.0"), rate) + + elysPrice, found := app.OracleKeeper.GetLatestPriceFromAnySource(ctx, "ojo") + s.Require().True(found) + s.Require().Equal(elysPrice.Asset, "ojo") + s.Require().Equal(elysPrice.Price, rate) + s.Require().Equal(elysPrice.BlockHeight, util.SafeInt64ToUint64(ctx.BlockHeight())) + s.Require().Equal(elysPrice.Timestamp, util.SafeInt64ToUint64(ctx.BlockTime().Unix())) + rate, err = app.OracleKeeper.GetExchangeRate(ctx, "atom") s.Require().ErrorIs(err, types.ErrUnknownDenom.Wrap("atom")) s.Require().Equal(math.LegacyZeroDec(), rate) diff --git a/x/oracle/keeper/elys.go b/x/oracle/keeper/elys.go index b55569d4..37b670ff 100644 --- a/x/oracle/keeper/elys.go +++ b/x/oracle/keeper/elys.go @@ -1 +1,172 @@ package keeper + +import ( + "cosmossdk.io/math" + storetypes "cosmossdk.io/store/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/ojo-network/ojo/x/oracle/types" +) + +// SetPrice set a specific price in the store from its index +func (k Keeper) SetPrice(ctx sdk.Context, price types.Price) { + store := ctx.KVStore(k.storeKey) + bz := k.cdc.MustMarshal(&price) + store.Set(types.KeyPrice(price.Asset, price.Source, price.Timestamp), bz) +} + +// GetPrice returns a price from its index +func (k Keeper) GetPrice(ctx sdk.Context, asset, source string, timestamp uint64) (val types.Price, found bool) { + store := ctx.KVStore(k.storeKey) + + bz := store.Get(types.KeyPrice(asset, source, timestamp)) + if bz == nil { + return val, false + } + + k.cdc.MustUnmarshal(bz, &val) + return val, true +} + +func (k Keeper) GetLatestPriceFromAssetAndSource(ctx sdk.Context, asset, source string) (val types.Price, found bool) { + store := ctx.KVStore(k.storeKey) + iterator := storetypes.KVStoreReversePrefixIterator(store, types.KeyPriceAssetAndSource(asset, source)) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + var val types.Price + k.cdc.MustUnmarshal(iterator.Value(), &val) + return val, true + } + + return val, false +} + +func (k Keeper) GetLatestPriceFromAnySource(ctx sdk.Context, asset string) (val types.Price, found bool) { + store := ctx.KVStore(k.storeKey) + iterator := storetypes.KVStoreReversePrefixIterator(store, types.KeyPriceAsset(asset)) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + var val types.Price + k.cdc.MustUnmarshal(iterator.Value(), &val) + return val, true + } + + return val, false +} + +// RemovePrice removes a price from the store +func (k Keeper) RemovePrice(ctx sdk.Context, asset, source string, timestamp uint64) { + store := ctx.KVStore(k.storeKey) + store.Delete(types.KeyPrice(asset, source, timestamp)) +} + +// GetAllPrice returns all price +func (k Keeper) GetAllPrice(ctx sdk.Context) (list []types.Price) { + store := ctx.KVStore(k.storeKey) + iterator := storetypes.KVStorePrefixIterator(store, types.KeyPrefixPrice) + + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + var val types.Price + k.cdc.MustUnmarshal(iterator.Value(), &val) + list = append(list, val) + } + + return +} + +func (k Keeper) GetAssetPrice(ctx sdk.Context, asset string) (types.Price, bool) { + return k.GetLatestPriceFromAnySource(ctx, asset) +} + +func Pow10(decimal uint64) (value math.LegacyDec) { + value = math.LegacyNewDec(1) + for i := 0; i < int(decimal); i++ { + value = value.Mul(math.LegacyNewDec(10)) + } + return +} + +func (k Keeper) GetAssetPriceFromDenom(ctx sdk.Context, denom string) math.LegacyDec { + info, found := k.GetAssetInfo(ctx, denom) + if !found { + return math.LegacyZeroDec() + } + price, found := k.GetAssetPrice(ctx, info.Display) + if !found { + return math.LegacyZeroDec() + } + return price.Price.Quo(Pow10(info.Decimal)) +} + +// SetAssetInfo set a specific assetInfo in the store from its index +func (k Keeper) SetAssetInfo(ctx sdk.Context, assetInfo types.AssetInfo) { + store := ctx.KVStore(k.storeKey) + bz := k.cdc.MustMarshal(&assetInfo) + store.Set(types.KeyAssetInfo(assetInfo.Denom), bz) +} + +// GetAssetInfo returns a assetInfo from its index +func (k Keeper) GetAssetInfo(ctx sdk.Context, denom string) (val types.AssetInfo, found bool) { + store := ctx.KVStore(k.storeKey) + bz := store.Get(types.KeyAssetInfo(denom)) + if bz == nil { + return val, false + } + + k.cdc.MustUnmarshal(bz, &val) + return val, true +} + +// RemoveAssetInfo removes a assetInfo from the store +func (k Keeper) RemoveAssetInfo(ctx sdk.Context, denom string) { + store := ctx.KVStore(k.storeKey) + store.Delete(types.KeyAssetInfo(denom)) +} + +// GetAllAssetInfo returns all assetInfo +func (k Keeper) GetAllAssetInfo(ctx sdk.Context) (list []types.AssetInfo) { + store := ctx.KVStore(k.storeKey) + iterator := storetypes.KVStorePrefixIterator(store, []byte{}) + + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + var val types.AssetInfo + k.cdc.MustUnmarshal(iterator.Value(), &val) + list = append(list, val) + } + + return +} + +// SetPriceFeeder set a specific priceFeeder in the store from its index +func (k Keeper) SetPriceFeeder(ctx sdk.Context, priceFeeder types.PriceFeeder) { + store := ctx.KVStore(k.storeKey) + key := types.KeyPriceFeeder(priceFeeder.Feeder) + bz := k.cdc.MustMarshal(&priceFeeder) + store.Set(key, bz) +} + +// GetPriceFeeder returns a priceFeeder from its index +func (k Keeper) GetPriceFeeder(ctx sdk.Context, feeder sdk.AccAddress) (val types.PriceFeeder, found bool) { + store := ctx.KVStore(k.storeKey) + key := types.KeyPriceFeeder(feeder.String()) + + bz := store.Get(key) + if bz == nil { + return val, false + } + + k.cdc.MustUnmarshal(bz, &val) + return val, true +} + +// RemovePriceFeeder removes a priceFeeder from the store +func (k Keeper) RemovePriceFeeder(ctx sdk.Context, feeder sdk.AccAddress) { + store := ctx.KVStore(k.storeKey) + key := types.KeyPriceFeeder(feeder.String()) + store.Delete(key) +} diff --git a/x/oracle/keeper/params.go b/x/oracle/keeper/params.go index 8e46147c..7dd62ee2 100644 --- a/x/oracle/keeper/params.go +++ b/x/oracle/keeper/params.go @@ -180,6 +180,28 @@ func (k Keeper) SetMaximumMedianStamps(ctx sdk.Context, maximumMedianStamps uint k.paramSpace.Set(ctx, types.KeyMaximumMedianStamps, maximumMedianStamps) } +// PriceExpiryTime returns the expiry in unix time for elys prices. +func (k Keeper) PriceExpiryTime(ctx sdk.Context) (res uint64) { + k.paramSpace.Get(ctx, types.KeyPriceExpiryTime, &res) + return +} + +// SetPriceExpiryTime updates the expiry in unix time for elys prices. +func (k Keeper) SetPriceExpiryTime(ctx sdk.Context, priceExpiryTime uint64) { + k.paramSpace.Set(ctx, types.KeyPriceExpiryTime, priceExpiryTime) +} + +// LifeTimeInBlocks returns the life time of an elys price in blocks. +func (k Keeper) LifeTimeInBlocks(ctx sdk.Context) (res uint64) { + k.paramSpace.Get(ctx, types.KeyLifeTimeInBlocks, &res) + return +} + +// SetLifeTimeInBlocks updates the life time of an elys price in blocks. +func (k Keeper) SetLifeTimeInBlocks(ctx sdk.Context, lifeTimeInBlocks uint64) { + k.paramSpace.Set(ctx, types.KeyLifeTimeInBlocks, lifeTimeInBlocks) +} + // CurrencyPairProviders returns the current Currency Pair Providers the price feeder // will query when starting up. func (k Keeper) CurrencyPairProviders(ctx sdk.Context) (res types.CurrencyPairProvidersList) { diff --git a/x/oracle/types/elys.pb.go b/x/oracle/types/elys.pb.go new file mode 100644 index 00000000..abeef169 --- /dev/null +++ b/x/oracle/types/elys.pb.go @@ -0,0 +1,1039 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: ojo/oracle/v1/elys.proto + +package types + +import ( + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + proto "github.com/cosmos/gogoproto/proto" + _ "github.com/gogo/protobuf/gogoproto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type AssetInfo struct { + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + Display string `protobuf:"bytes,2,opt,name=display,proto3" json:"display,omitempty"` + BandTicker string `protobuf:"bytes,3,opt,name=band_ticker,json=bandTicker,proto3" json:"band_ticker,omitempty"` + ElysTicker string `protobuf:"bytes,4,opt,name=elys_ticker,json=elysTicker,proto3" json:"elys_ticker,omitempty"` + Decimal uint64 `protobuf:"varint,5,opt,name=decimal,proto3" json:"decimal,omitempty"` +} + +func (m *AssetInfo) Reset() { *m = AssetInfo{} } +func (m *AssetInfo) String() string { return proto.CompactTextString(m) } +func (*AssetInfo) ProtoMessage() {} +func (*AssetInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_9fad3fefa6783858, []int{0} +} +func (m *AssetInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AssetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AssetInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AssetInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssetInfo.Merge(m, src) +} +func (m *AssetInfo) XXX_Size() int { + return m.Size() +} +func (m *AssetInfo) XXX_DiscardUnknown() { + xxx_messageInfo_AssetInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_AssetInfo proto.InternalMessageInfo + +type Price struct { + Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` + Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price"` + Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` + Provider string `protobuf:"bytes,4,opt,name=provider,proto3" json:"provider,omitempty"` + Timestamp uint64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + BlockHeight uint64 `protobuf:"varint,6,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +} + +func (m *Price) Reset() { *m = Price{} } +func (m *Price) String() string { return proto.CompactTextString(m) } +func (*Price) ProtoMessage() {} +func (*Price) Descriptor() ([]byte, []int) { + return fileDescriptor_9fad3fefa6783858, []int{1} +} +func (m *Price) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Price) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Price.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Price) XXX_Merge(src proto.Message) { + xxx_messageInfo_Price.Merge(m, src) +} +func (m *Price) XXX_Size() int { + return m.Size() +} +func (m *Price) XXX_DiscardUnknown() { + xxx_messageInfo_Price.DiscardUnknown(m) +} + +var xxx_messageInfo_Price proto.InternalMessageInfo + +type PriceFeeder struct { + Feeder string `protobuf:"bytes,1,opt,name=feeder,proto3" json:"feeder,omitempty"` + IsActive bool `protobuf:"varint,2,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` +} + +func (m *PriceFeeder) Reset() { *m = PriceFeeder{} } +func (m *PriceFeeder) String() string { return proto.CompactTextString(m) } +func (*PriceFeeder) ProtoMessage() {} +func (*PriceFeeder) Descriptor() ([]byte, []int) { + return fileDescriptor_9fad3fefa6783858, []int{2} +} +func (m *PriceFeeder) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PriceFeeder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PriceFeeder.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PriceFeeder) XXX_Merge(src proto.Message) { + xxx_messageInfo_PriceFeeder.Merge(m, src) +} +func (m *PriceFeeder) XXX_Size() int { + return m.Size() +} +func (m *PriceFeeder) XXX_DiscardUnknown() { + xxx_messageInfo_PriceFeeder.DiscardUnknown(m) +} + +var xxx_messageInfo_PriceFeeder proto.InternalMessageInfo + +func init() { + proto.RegisterType((*AssetInfo)(nil), "ojo.oracle.v1.AssetInfo") + proto.RegisterType((*Price)(nil), "ojo.oracle.v1.Price") + proto.RegisterType((*PriceFeeder)(nil), "ojo.oracle.v1.PriceFeeder") +} + +func init() { proto.RegisterFile("ojo/oracle/v1/elys.proto", fileDescriptor_9fad3fefa6783858) } + +var fileDescriptor_9fad3fefa6783858 = []byte{ + // 441 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x92, 0x4d, 0x6e, 0xd3, 0x40, + 0x14, 0xc7, 0x6d, 0x68, 0x42, 0x32, 0x81, 0xcd, 0x28, 0x42, 0x26, 0x45, 0x4e, 0xc9, 0xaa, 0x2c, + 0x62, 0x13, 0x71, 0x82, 0x44, 0x15, 0x05, 0x89, 0x05, 0x32, 0xac, 0x10, 0x52, 0x34, 0x19, 0xbf, + 0x3a, 0x93, 0xd8, 0x7e, 0xd6, 0xcc, 0x34, 0x90, 0x5b, 0xb0, 0xe3, 0x22, 0x3d, 0x44, 0x96, 0x55, + 0x57, 0x08, 0xa4, 0x0a, 0x92, 0x8b, 0xa0, 0x99, 0xb1, 0xc3, 0xee, 0xfd, 0x3f, 0x3c, 0xfa, 0x3d, + 0xeb, 0x91, 0x00, 0x57, 0x18, 0xa3, 0x64, 0x3c, 0x87, 0x78, 0x33, 0x89, 0x21, 0xdf, 0xaa, 0xa8, + 0x92, 0xa8, 0x91, 0x3e, 0xc1, 0x15, 0x46, 0x2e, 0x89, 0x36, 0x93, 0x41, 0x3f, 0xc3, 0x0c, 0x6d, + 0x12, 0x9b, 0xc9, 0x95, 0x06, 0xcf, 0x38, 0xaa, 0x02, 0xd5, 0xdc, 0x05, 0x4e, 0xb8, 0x68, 0xf4, + 0xc3, 0x27, 0xdd, 0xa9, 0x52, 0xa0, 0xdf, 0x95, 0x57, 0x48, 0xfb, 0xa4, 0x95, 0x42, 0x89, 0x45, + 0xe0, 0x9f, 0xf9, 0xe7, 0xdd, 0xc4, 0x09, 0x1a, 0x90, 0x47, 0xa9, 0x50, 0x55, 0xce, 0xb6, 0xc1, + 0x03, 0xeb, 0x37, 0x92, 0x0e, 0x49, 0x6f, 0xc1, 0xca, 0x74, 0xae, 0x05, 0x5f, 0x83, 0x0c, 0x1e, + 0xda, 0x94, 0x18, 0xeb, 0x93, 0x75, 0x4c, 0xc1, 0xc0, 0x36, 0x85, 0x13, 0x57, 0x30, 0x56, 0x5d, + 0x30, 0x6f, 0x03, 0x17, 0x05, 0xcb, 0x83, 0xd6, 0x99, 0x7f, 0x7e, 0x92, 0x34, 0x72, 0xf4, 0xdb, + 0x27, 0xad, 0x0f, 0x52, 0x70, 0x30, 0x54, 0xcc, 0x20, 0x36, 0x54, 0x56, 0xd0, 0x4b, 0xd2, 0xaa, + 0x4c, 0xec, 0x98, 0x66, 0x93, 0xdd, 0xfd, 0xd0, 0xfb, 0x75, 0x3f, 0x3c, 0x75, 0xeb, 0xa9, 0x74, + 0x1d, 0x09, 0x8c, 0x0b, 0xa6, 0x97, 0xd1, 0x7b, 0xc8, 0x18, 0xdf, 0x5e, 0x00, 0xbf, 0xbb, 0x19, + 0x93, 0x7a, 0xfb, 0x0b, 0xe0, 0x89, 0xfb, 0x9e, 0x3e, 0x25, 0x6d, 0x85, 0xd7, 0x92, 0x43, 0xcd, + 0x5f, 0x2b, 0x3a, 0x20, 0x9d, 0x4a, 0xe2, 0x46, 0xa4, 0x47, 0xf0, 0xa3, 0xa6, 0xcf, 0x49, 0x57, + 0x8b, 0x02, 0x94, 0x66, 0x45, 0x55, 0x83, 0xff, 0x37, 0xe8, 0x0b, 0xf2, 0x78, 0x91, 0x23, 0x5f, + 0xcf, 0x97, 0x20, 0xb2, 0xa5, 0x0e, 0xda, 0xb6, 0xd0, 0xb3, 0xde, 0x5b, 0x6b, 0x8d, 0xbe, 0x90, + 0x9e, 0x5d, 0xee, 0x0d, 0x80, 0x79, 0xef, 0x15, 0x69, 0x5f, 0xd9, 0xc9, 0xed, 0x38, 0x0b, 0xee, + 0x6e, 0xc6, 0xfd, 0x1a, 0x75, 0x9a, 0xa6, 0x12, 0x94, 0xfa, 0xa8, 0xa5, 0x28, 0xb3, 0xa4, 0xee, + 0xd1, 0x53, 0xd2, 0x15, 0x6a, 0xce, 0xb8, 0x16, 0x1b, 0xf7, 0x0b, 0x3a, 0x49, 0x47, 0xa8, 0xa9, + 0xd5, 0xb3, 0xcb, 0xdd, 0xdf, 0xd0, 0xdb, 0xed, 0x43, 0xff, 0x76, 0x1f, 0xfa, 0x7f, 0xf6, 0xa1, + 0xff, 0xfd, 0x10, 0x7a, 0xb7, 0x87, 0xd0, 0xfb, 0x79, 0x08, 0xbd, 0xcf, 0x2f, 0x33, 0xa1, 0x97, + 0xd7, 0x8b, 0x88, 0x63, 0x11, 0xe3, 0x0a, 0xc7, 0x25, 0xe8, 0xaf, 0x28, 0xd7, 0x66, 0x8e, 0xbf, + 0x35, 0x67, 0xa6, 0xb7, 0x15, 0xa8, 0x45, 0xdb, 0x5e, 0xc9, 0xeb, 0x7f, 0x01, 0x00, 0x00, 0xff, + 0xff, 0x27, 0x75, 0xdb, 0xfa, 0x81, 0x02, 0x00, 0x00, +} + +func (m *AssetInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AssetInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AssetInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Decimal != 0 { + i = encodeVarintElys(dAtA, i, uint64(m.Decimal)) + i-- + dAtA[i] = 0x28 + } + if len(m.ElysTicker) > 0 { + i -= len(m.ElysTicker) + copy(dAtA[i:], m.ElysTicker) + i = encodeVarintElys(dAtA, i, uint64(len(m.ElysTicker))) + i-- + dAtA[i] = 0x22 + } + if len(m.BandTicker) > 0 { + i -= len(m.BandTicker) + copy(dAtA[i:], m.BandTicker) + i = encodeVarintElys(dAtA, i, uint64(len(m.BandTicker))) + i-- + dAtA[i] = 0x1a + } + if len(m.Display) > 0 { + i -= len(m.Display) + copy(dAtA[i:], m.Display) + i = encodeVarintElys(dAtA, i, uint64(len(m.Display))) + i-- + dAtA[i] = 0x12 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintElys(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Price) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Price) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Price) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BlockHeight != 0 { + i = encodeVarintElys(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x30 + } + if m.Timestamp != 0 { + i = encodeVarintElys(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x28 + } + if len(m.Provider) > 0 { + i -= len(m.Provider) + copy(dAtA[i:], m.Provider) + i = encodeVarintElys(dAtA, i, uint64(len(m.Provider))) + i-- + dAtA[i] = 0x22 + } + if len(m.Source) > 0 { + i -= len(m.Source) + copy(dAtA[i:], m.Source) + i = encodeVarintElys(dAtA, i, uint64(len(m.Source))) + i-- + dAtA[i] = 0x1a + } + { + size := m.Price.Size() + i -= size + if _, err := m.Price.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintElys(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Asset) > 0 { + i -= len(m.Asset) + copy(dAtA[i:], m.Asset) + i = encodeVarintElys(dAtA, i, uint64(len(m.Asset))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PriceFeeder) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PriceFeeder) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PriceFeeder) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IsActive { + i-- + if m.IsActive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.Feeder) > 0 { + i -= len(m.Feeder) + copy(dAtA[i:], m.Feeder) + i = encodeVarintElys(dAtA, i, uint64(len(m.Feeder))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintElys(dAtA []byte, offset int, v uint64) int { + offset -= sovElys(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *AssetInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovElys(uint64(l)) + } + l = len(m.Display) + if l > 0 { + n += 1 + l + sovElys(uint64(l)) + } + l = len(m.BandTicker) + if l > 0 { + n += 1 + l + sovElys(uint64(l)) + } + l = len(m.ElysTicker) + if l > 0 { + n += 1 + l + sovElys(uint64(l)) + } + if m.Decimal != 0 { + n += 1 + sovElys(uint64(m.Decimal)) + } + return n +} + +func (m *Price) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Asset) + if l > 0 { + n += 1 + l + sovElys(uint64(l)) + } + l = m.Price.Size() + n += 1 + l + sovElys(uint64(l)) + l = len(m.Source) + if l > 0 { + n += 1 + l + sovElys(uint64(l)) + } + l = len(m.Provider) + if l > 0 { + n += 1 + l + sovElys(uint64(l)) + } + if m.Timestamp != 0 { + n += 1 + sovElys(uint64(m.Timestamp)) + } + if m.BlockHeight != 0 { + n += 1 + sovElys(uint64(m.BlockHeight)) + } + return n +} + +func (m *PriceFeeder) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Feeder) + if l > 0 { + n += 1 + l + sovElys(uint64(l)) + } + if m.IsActive { + n += 2 + } + return n +} + +func sovElys(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozElys(x uint64) (n int) { + return sovElys(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *AssetInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AssetInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AssetInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthElys + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthElys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Display", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthElys + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthElys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Display = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BandTicker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthElys + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthElys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BandTicker = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ElysTicker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthElys + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthElys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ElysTicker = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Decimal", wireType) + } + m.Decimal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Decimal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipElys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthElys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Price) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Price: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Price: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthElys + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthElys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Asset = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthElys + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthElys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Price.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthElys + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthElys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Source = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Provider", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthElys + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthElys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Provider = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipElys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthElys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PriceFeeder) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PriceFeeder: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PriceFeeder: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Feeder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthElys + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthElys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Feeder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsActive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsActive = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipElys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthElys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipElys(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowElys + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowElys + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowElys + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthElys + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupElys + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthElys + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthElys = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowElys = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupElys = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/oracle/types/keys.go b/x/oracle/types/keys.go index 6a01481e..ac34289d 100644 --- a/x/oracle/types/keys.go +++ b/x/oracle/types/keys.go @@ -35,6 +35,9 @@ var ( KeyPrefixHistoricPrice = []byte{0x08} // prefix for each key to a historic price KeyPrefixValidatorRewardSet = []byte{0x09} // prefix for each key to a validator reward set KeyPrefixParamUpdatePlan = []byte{0x10} // prefix for each key to a param update plan + KeyPrefixPrice = []byte{0x11} // prefix for each key to a price + KeyPrefixPriceFeeder = []byte{0x12} // prefix for each key to a price feeder + KeyPrefixAssetInfo = []byte{0x13} // prefic for each key to a asset info ) // GetExchangeRateKey - stored by *denom* @@ -93,6 +96,31 @@ func KeyParamUpdatePlan(planHeight uint64) (key []byte) { return util.ConcatBytes(0, KeyPrefixParamUpdatePlan, util.UintWithNullPrefix(planHeight)) } +// KeyPrice - stored by *asset, source, and timestamp* +func KeyPrice(asset string, source string, timestamp uint64) (key []byte) { + return util.ConcatBytes(0, KeyPrefixPrice, []byte(asset), []byte(source), util.UintWithNullPrefix(timestamp)) +} + +// KeyPriceAsset - stored by *asset* +func KeyPriceAsset(asset string) (key []byte) { + return util.ConcatBytes(0, KeyPrefixPrice, []byte(asset)) +} + +// KeyPriceAssetAndSource - stored by *asset and source* +func KeyPriceAssetAndSource(asset string, source string) (key []byte) { + return util.ConcatBytes(0, KeyPrefixPrice, []byte(asset), []byte(source)) +} + +// KeyAssetInfo - stored by *asset* +func KeyAssetInfo(asset string) (key []byte) { + return util.ConcatBytes(0, KeyPrefixAssetInfo, []byte(asset)) +} + +// KeyPriceFeeder - stored by *address* +func KeyPriceFeeder(address string) (key []byte) { + return util.ConcatBytes(0, KeyPrefixPriceFeeder, []byte(address)) +} + // ParseDenomAndBlockFromKey returns the denom and block contained in the *key* // that has a uint64 at the end with a null prefix (length 9). func ParseDenomAndBlockFromKey(key []byte, prefix []byte) (string, uint64) { diff --git a/x/oracle/types/oracle.pb.go b/x/oracle/types/oracle.pb.go index 80d3a751..f3d9c9f6 100644 --- a/x/oracle/types/oracle.pb.go +++ b/x/oracle/types/oracle.pb.go @@ -56,6 +56,10 @@ type Params struct { // Currency Deviation Thresholds defines the deviation thresholds // for each base currency the price feeder uses upon start up. CurrencyDeviationThresholds CurrencyDeviationThresholdList `protobuf:"bytes,15,rep,name=currency_deviation_thresholds,json=currencyDeviationThresholds,proto3,castrepeated=CurrencyDeviationThresholdList" json:"currency_deviation_thresholds" yaml:"currency_deviation_thresholds"` + // Price expiry of in unix time for elys prices + PriceExpiryTime uint64 `protobuf:"varint,16,opt,name=price_expiry_time,json=priceExpiryTime,proto3" json:"price_expiry_time,omitempty"` + // Lifetime of elys price in blocks + LifeTimeInBlocks uint64 `protobuf:"varint,17,opt,name=life_time_in_blocks,json=lifeTimeInBlocks,proto3" json:"life_time_in_blocks,omitempty"` } func (m *Params) Reset() { *m = Params{} } @@ -509,92 +513,95 @@ func init() { func init() { proto.RegisterFile("ojo/oracle/v1/oracle.proto", fileDescriptor_e2b9fb194216b28f) } var fileDescriptor_e2b9fb194216b28f = []byte{ - // 1348 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xbf, 0x73, 0x1b, 0xc5, - 0x17, 0xd7, 0xc5, 0x8a, 0x63, 0x3d, 0x49, 0x76, 0xb2, 0xb6, 0x93, 0x8b, 0x9d, 0xaf, 0xce, 0xdf, - 0x23, 0x80, 0x03, 0x44, 0x22, 0x0e, 0x4c, 0x06, 0x0f, 0x14, 0xb9, 0x98, 0xd0, 0x84, 0x8c, 0xe6, - 0x0c, 0x61, 0x26, 0x05, 0x37, 0xab, 0xbb, 0x45, 0xba, 0x58, 0x77, 0x2b, 0x76, 0x4f, 0xb2, 0xd5, - 0x52, 0x31, 0x43, 0x01, 0x05, 0x05, 0x65, 0x68, 0x33, 0x54, 0xcc, 0x30, 0x43, 0x43, 0x9f, 0x19, - 0x9a, 0x94, 0x0c, 0xc5, 0x05, 0x92, 0x86, 0x5a, 0x7f, 0x01, 0xb3, 0x3f, 0x4e, 0x3a, 0x29, 0x32, - 0x84, 0x54, 0xda, 0xb7, 0x9f, 0xf7, 0xde, 0x7e, 0xf6, 0xb3, 0xbb, 0xef, 0x9e, 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, 0xdb, 0xc4, 0xc5, 0x09, 0x69, 0x32, 0x22, 0x3e, 0x41, 0xe8, 0x25, - 0x28, 0x76, 0x30, 0xef, 0x68, 0xfa, 0x2b, 0xa3, 0xd4, 0x2a, 0xab, 0x05, 0xc4, 0xac, 0xed, 0x4a, - 0x10, 0xbd, 0x02, 0x27, 0x85, 0x33, 0xd3, 0x4c, 0x4f, 0x8f, 0x52, 0xab, 0x32, 0xf9, 0xae, 0x31, - 0xdb, 0x55, 0xb0, 0xd4, 0xa4, 0xdf, 0x8a, 0xc2, 0xc4, 0x6b, 0x75, 0xa9, 0x7f, 0x20, 0x55, 0x9e, - 0xae, 0x97, 0x39, 0x54, 0x68, 0x22, 0x4d, 0x47, 0x58, 0x33, 0xbc, 0x7f, 0x35, 0xe0, 0xfc, 0x5c, - 0xde, 0x77, 0x04, 0xe9, 0x23, 0x58, 0x26, 0x7a, 0xce, 0x63, 0x38, 0x21, 0xdc, 0x34, 0xe4, 0xfd, - 0xbf, 0x50, 0x57, 0xda, 0xd5, 0xc5, 0x85, 0xa9, 0xeb, 0x86, 0xa0, 0xbe, 0x47, 0xfc, 0x1b, 0x34, - 0x8c, 0x9d, 0xab, 0x42, 0xe0, 0x07, 0x8f, 0xad, 0xd7, 0xdb, 0x61, 0xd2, 0xe9, 0xb7, 0xea, 0x3e, - 0x8d, 0x1a, 0xba, 0x81, 0x50, 0x3f, 0x97, 0x79, 0x70, 0xd0, 0x48, 0x86, 0x3d, 0xc2, 0xb3, 0x18, - 0xee, 0x56, 0x49, 0x6e, 0x71, 0xfe, 0xbc, 0x4a, 0xcc, 0xec, 0xa6, 0x0b, 0x30, 0x29, 0x53, 0xe8, - 0x3a, 0x54, 0xa7, 0xd8, 0x4b, 0xed, 0xff, 0x85, 0xbc, 0x5b, 0xc9, 0xf3, 0x40, 0x9b, 0x50, 0x92, - 0x1a, 0x7a, 0x71, 0x5f, 0xbd, 0x81, 0xa2, 0xbb, 0x24, 0x27, 0x6e, 0xf7, 0x23,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4a, 0xb3, 0x3d, 0x71, 0x4e, 0xa4, 0x5c, 0xaf, 0x3b, 0x71, 0x9b, 0x11, 0xe9, 0x0b, 0x03, - 0x56, 0x64, 0x7b, 0xfe, 0x71, 0x2f, 0x10, 0x25, 0xa9, 0x8b, 0x63, 0x84, 0xa0, 0x78, 0x40, 0x86, - 0xea, 0x41, 0x97, 0x5c, 0x39, 0x46, 0x67, 0x61, 0xb1, 0x43, 0xc2, 0x76, 0x27, 0x91, 0xcb, 0x2c, - 0xb8, 0xda, 0x42, 0x6f, 0xc3, 0x29, 0xf5, 0x26, 0xb8, 0xac, 0x34, 0xe5, 0x9d, 0xf5, 0x67, 0x6e, - 0x81, 0xe8, 0xfd, 0x9d, 0xa2, 0x38, 0x78, 0x37, 0xf3, 0x9d, 0x22, 0x61, 0x38, 0x1f, 0x3c, 0xfc, - 0xb3, 0x56, 0x78, 0xf8, 0xa4, 0x66, 0x3c, 0x7a, 0x52, 0x33, 0xfe, 0x78, 0x52, 0x33, 0xbe, 0x79, - 0x5a, 0x2b, 0x3c, 0x7a, 0x5a, 0x2b, 0xfc, 0xf6, 0xb4, 0x56, 0xb8, 0x7b, 0x29, 0x57, 0x2b, 0xe8, - 0x3d, 0x7a, 0x39, 0x26, 0xc9, 0x21, 0x65, 0x07, 0x62, 0xdc, 0x38, 0xca, 0xfe, 0xbb, 0xc8, 0x92, - 0xd1, 0x5a, 0x94, 0xff, 0x39, 0xae, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x57, 0x45, 0x01, 0x50, - 0xd6, 0x0c, 0x00, 0x00, + // 1401 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xf6, 0x36, 0x6e, 0x1a, 0x8f, 0xed, 0xfc, 0x98, 0x24, 0xed, 0x36, 0x29, 0xde, 0xb0, 0x14, + 0x48, 0x0b,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xef, 0x71, 0xe6, 0xa9, 0x97, 0x01, 0x6d, 0x17, + 0x48, 0x4b, 0x05, 0x36, 0x40, 0x49, 0x56, 0x6b, 0x14, 0x04, 0x0c, 0xf3, 0xf4, 0x15, 0x66, 0x4f, + 0x15, 0x55, 0x41, 0xf1, 0xaa, 0xf2, 0x48, 0x99, 0x3a, 0x9b, 0x93, 0xcf, 0xb1, 0x6c, 0x16, 0xdb, + 0x2d, 0x76, 0xc6, 0x11, 0x70, 0x17, 0x14, 0xc6, 0xfd, 0x25, 0x2f, 0x75, 0x5a, 0x1b, 0x26, 0xd6, + 0xb2, 0x0e, 0x1c, 0xf5, 0x09, 0x77, 0xec, 0x36, 0xb5, 0xe3, 0x5f, 0x1b, 0x60, 0x75, 0x06, 0x07, + 0xf8, 0x36, 0x38, 0x95, 0x12, 0x57, 0x4a, 0xc1, 0x61, 0x62, 0x2d, 0xea, 0x37, 0x55, 0xca, 0x25, + 0x75, 0x81, 0x37, 0xc0, 0xb2, 0xfe, 0x1c, 0x35, 0x27, 0xad, 0xd4, 0xe6, 0x30, 0xb1, 0xce, 0x4c, + 0x84, 0x8d, 0x3c, 0x6c, 0x77, 0x09, 0x4d, 0xce, 0x6a, 0x7f, 0x6b, 0x80, 0x8d, 0xe3, 0x5b, 0xc3, + 0x4b, 0xee, 0xe0, 0x2e, 0x28, 0x4c, 0x3f, 0xb7, 0x33, 0x22, 0x65, 0x9e, 0xd1, 0x63, 0xb7, 0x29, + 0x91, 0xbe, 0x34, 0xc0, 0x92, 0x7c, 0xf9, 0x7f, 0xda, 0x09, 0x44, 0x49, 0x6a, 0xa3, 0x08, 0x42, + 0x90, 0x3f, 0xc4, 0x03, 0x75, 0xa1, 0x0b, 0xae, 0xfc, 0x86, 0xa7, 0xc1, 0x7c, 0x0b, 0x93, 0x66, + 0x2b, 0x96, 0xd3, 0xcc, 0xb9, 0xda, 0x82, 0xef, 0x81, 0x53, 0xea, 0x4e, 0x70, 0x59, 0x69, 0x8a, + 0xbb, 0xeb, 0xcf, 0x9d, 0x02, 0xf1, 0xb7, 0xc2, 0xc9, 0x8b, 0x8d, 0x77, 0x53, 0xdf, 0x09, 0x12, + 0x86, 0xf3, 0xd1, 0xa3, 0x3f, 0x2b, 0xb9, 0x47, 0x4f, 0x2b, 0xc6, 0xe3, 0xa7, 0x15, 0xe3, 0x8f, + 0xa7, 0x15, 0xe3, 0x9b, 0x67, 0x95, 0xdc, 0xe3, 0x67, 0x95, 0xdc, 0x6f, 0xcf, 0x2a, 0xb9, 0xbb, + 0x17, 0x32, 0xb5, 0x82, 0xde, 0xa7, 0x3b, 0x11, 0x8e, 0x8f, 0x28, 0x3b, 0x14, 0xdf, 0xb5, 0x7e, + 0xfa, 0xb7, 0x48, 0x96, 0x8c, 0xc6, 0xbc, 0xfc, 0x3b, 0x73, 0xf9, 0x9f, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x03, 0xf0, 0x3a, 0x45, 0x31, 0x0d, 0x00, 0x00, } func (this *Params) Equal(that interface{}) bool { @@ -686,6 +693,12 @@ func (this *Params) Equal(that interface{}) bool { return false } } + if this.PriceExpiryTime != that1.PriceExpiryTime { + return false + } + if this.LifeTimeInBlocks != that1.LifeTimeInBlocks { + return false + } return true } func (this *ParamUpdatePlan) Equal(that interface{}) bool { @@ -743,6 +756,20 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.LifeTimeInBlocks != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.LifeTimeInBlocks)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if m.PriceExpiryTime != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.PriceExpiryTime)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 + } if len(m.CurrencyDeviationThresholds) > 0 { for iNdEx := len(m.CurrencyDeviationThresholds) - 1; iNdEx >= 0; iNdEx-- { { @@ -1376,6 +1403,12 @@ func (m *Params) Size() (n int) { n += 1 + l + sovOracle(uint64(l)) } } + if m.PriceExpiryTime != 0 { + n += 2 + sovOracle(uint64(m.PriceExpiryTime)) + } + if m.LifeTimeInBlocks != 0 { + n += 2 + sovOracle(uint64(m.LifeTimeInBlocks)) + } return n } @@ -2007,6 +2040,44 @@ func (m *Params) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PriceExpiryTime", wireType) + } + m.PriceExpiryTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PriceExpiryTime |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LifeTimeInBlocks", wireType) + } + m.LifeTimeInBlocks = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LifeTimeInBlocks |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipOracle(dAtA[iNdEx:]) diff --git a/x/oracle/types/params.go b/x/oracle/types/params.go index d9e1fd37..b472f5b0 100644 --- a/x/oracle/types/params.go +++ b/x/oracle/types/params.go @@ -34,6 +34,8 @@ var ( KeyMaximumMedianStamps = []byte("MaximumMedianStamps") KeyCurrencyPairProviders = []byte("CurrencyPairProviders") KeyCurrencyDeviationThresholds = []byte("CurrencyDeviationThresholds") + KeyPriceExpiryTime = []byte("PriceExpiryTime") + KeyLifeTimeInBlocks = []byte("LifeTimeInBlocks") ) // Default parameter values @@ -45,6 +47,8 @@ const ( DefaultMaximumPriceStamps = 60 // retain for 3 hours DefaultMedianStampPeriod = BlocksPerHour * 3 // window for 3 hours DefaultMaximumMedianStamps = 24 // retain for 3 days + DefaultPriceExpiryTime = 86400 // retain for 1 day + DefaultLifeTimeInBlocks = 1 // retain for 1 block ) // Default parameter values @@ -267,6 +271,8 @@ func DefaultParams() Params { RewardBands: DefaultRewardBands(), CurrencyPairProviders: DefaultCurrencyPairProviders, CurrencyDeviationThresholds: DefaultCurrencyDeviationThresholds, + PriceExpiryTime: DefaultPriceExpiryTime, + LifeTimeInBlocks: DefaultLifeTimeInBlocks, } } @@ -344,6 +350,16 @@ func (p *Params) ParamSetPairs() paramstypes.ParamSetPairs { &p.MaximumMedianStamps, validateMaximumMedianStamps, ), + paramstypes.NewParamSetPair( + KeyPriceExpiryTime, + &p.PriceExpiryTime, + validatePriceExpiryTime, + ), + paramstypes.NewParamSetPair( + KeyLifeTimeInBlocks, + &p.LifeTimeInBlocks, + validateLifeTimeInBlocks, + ), paramstypes.NewParamSetPair( KeyCurrencyPairProviders, &p.CurrencyPairProviders, @@ -621,6 +637,32 @@ func validateMaximumMedianStamps(i interface{}) error { return nil } +func validatePriceExpiryTime(i interface{}) error { + v, ok := i.(uint64) + if !ok { + return ErrInvalidParamValue.Wrapf("invalid parameter type: %T", i) + } + + if v < 1 { + return ErrInvalidParamValue.Wrap("oracle parameter PriceExpiryTime must be > 0") + } + + return nil +} + +func validateLifeTimeInBlocks(i interface{}) error { + v, ok := i.(uint64) + if !ok { + return ErrInvalidParamValue.Wrapf("invalid parameter type: %T", i) + } + + if v < 1 { + return ErrInvalidParamValue.Wrap("oracle parameter LifeTimeInBlocks must be > 0") + } + + return nil +} + func validateCurrencyPairProviders(i interface{}) error { v, ok := i.(CurrencyPairProvidersList) if !ok { From 211da5d0eaa4b7feecf79162c7328c5c6a1b3f6e Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 8 Jan 2025 10:10:37 -0500 Subject: [PATCH 03/77] genesis params --- proto/ojo/oracle/v1/genesis.proto | 4 + x/oracle/types/errors.go | 2 + x/oracle/types/genesis.pb.go | 244 +++++++++++++++++++++++++----- x/oracle/types/oracle.pb.go | 4 +- 4 files changed, 215 insertions(+), 39 deletions(-) diff --git a/proto/ojo/oracle/v1/genesis.proto b/proto/ojo/oracle/v1/genesis.proto index 36b27191..d476d3c7 100644 --- a/proto/ojo/oracle/v1/genesis.proto +++ b/proto/ojo/oracle/v1/genesis.proto @@ -3,6 +3,7 @@ package ojo.oracle.v1; import "gogoproto/gogo.proto"; import "ojo/oracle/v1/oracle.proto"; +import "ojo/oracle/v1/elys.proto"; import "cosmos/base/v1beta1/coin.proto"; option go_package = "github.com/ojo-network/ojo/x/oracle/types"; @@ -26,6 +27,9 @@ message GenesisState { repeated PriceStamp medians = 7 [ (gogoproto.nullable) = false ]; repeated PriceStamp historic_prices = 8 [ (gogoproto.nullable) = false ]; repeated PriceStamp median_deviations = 9 [ (gogoproto.nullable) = false ]; + repeated AssetInfo asset_infos = 10 [ (gogoproto.nullable) = false ]; + repeated Price prices = 11 [ (gogoproto.nullable) = false ]; + repeated PriceFeeder price_feeders = 12 [ (gogoproto.nullable) = false ]; } // FeederDelegation is the address for where oracle feeder authority are diff --git a/x/oracle/types/errors.go b/x/oracle/types/errors.go index 9a7d0062..e85e0b28 100644 --- a/x/oracle/types/errors.go +++ b/x/oracle/types/errors.go @@ -38,4 +38,6 @@ var ( ErrNonEqualInjVotesLen = errors.Register(ModuleName, 28, "number of exchange rate votes in vote extension and extended commit info are not equal") //nolint: lll ErrNonEqualInjVotesRates = errors.Register(ModuleName, 29, "injected exchange rate votes and generated exchange votes are not equal") //nolint: lll ErrNoCommitInfo = errors.Register(ModuleName, 30, "no commit info in process proposal request") + ErrNotAPriceFeeder = errors.Register(ModuleName, 31, "not a price feeder") + ErrPriceFeederNotActive = errors.Register(ModuleName, 32, "price feeder is not active") ) diff --git a/x/oracle/types/genesis.pb.go b/x/oracle/types/genesis.pb.go index 6091fc17..4d8e05a5 100644 --- a/x/oracle/types/genesis.pb.go +++ b/x/oracle/types/genesis.pb.go @@ -36,6 +36,9 @@ type GenesisState struct { Medians []PriceStamp `protobuf:"bytes,7,rep,name=medians,proto3" json:"medians"` HistoricPrices []PriceStamp `protobuf:"bytes,8,rep,name=historic_prices,json=historicPrices,proto3" json:"historic_prices"` MedianDeviations []PriceStamp `protobuf:"bytes,9,rep,name=median_deviations,json=medianDeviations,proto3" json:"median_deviations"` + AssetInfos []AssetInfo `protobuf:"bytes,10,rep,name=asset_infos,json=assetInfos,proto3" json:"asset_infos"` + Prices []Price `protobuf:"bytes,11,rep,name=prices,proto3" json:"prices"` + PriceFeeders []PriceFeeder `protobuf:"bytes,12,rep,name=price_feeders,json=priceFeeders,proto3" json:"price_feeders"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -161,43 +164,48 @@ func init() { func init() { proto.RegisterFile("ojo/oracle/v1/genesis.proto", fileDescriptor_88726d9a54067831) } var fileDescriptor_88726d9a54067831 = []byte{ - // 576 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x6e, 0xd3, 0x30, - 0x1c, 0x6f, 0xb6, 0xd1, 0x31, 0x77, 0x1d, 0x9b, 0x05, 0x52, 0x28, 0x2c, 0x1b, 0x93, 0x90, 0x86, - 0xaa, 0x25, 0xea, 0x7a, 0xe2, 0xb8, 0xae, 0x63, 0x1c, 0x40, 0x9a, 0x3a, 0xc4, 0x01, 0x09, 0x45, - 0x6e, 0xe2, 0xa6, 0xee, 0x9a, 0x38, 0xf8, 0xef, 0x95, 0xc2, 0x53, 0xf0, 0x00, 0x3c, 0x01, 0x4f, - 0xd2, 0xe3, 0x8e, 0x9c, 0xf8, 0x68, 0x5f, 0x04, 0xc5, 0x4e, 0xfa, 0x11, 0x6d, 0xa8, 0xa7, 0x46, - 0xff, 0xdf, 0x97, 0x7f, 0xd5, 0xdf, 0x46, 0x4f, 0x78, 0x8f, 0x3b, 0x5c, 0x10, 0xaf, 0x4f, 0x9d, - 0x41, 0xcd, 0x09, 0x68, 0x44, 0x81, 0x81, 0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0x57, 0xd1, 0xce, 0x80, 0xf4, 0x99, 0x4f, 0x24, 0x9f, 0x31, 0x57, 0x14, - 0x73, 0x7b, 0x0a, 0xa4, 0xe4, 0x83, 0x8f, 0xa8, 0x34, 0xb7, 0x4c, 0xb7, 0x6b, 0x8d, 0xdb, 0xb5, - 0xf8, 0x19, 0xda, 0x9c, 0x5f, 0x56, 0x95, 0xb1, 0xd6, 0x2a, 0xcd, 0x6d, 0x62, 0xe3, 0x7c, 0xf4, - 0xd7, 0x2a, 0x8c, 0xc6, 0x96, 0x71, 0x33, 0xb6, 0x8c, 0x3f, 0x63, 0xcb, 0xf8, 0x36, 0xb1, 0x0a, - 0x37, 0x13, 0xab, 0xf0, 0x73, 0x62, 0x15, 0x3e, 0xbc, 0x98, 0xbb, 0x29, 0xbc, 0xc7, 0x8f, 0x22, - 0x2a, 0x3f, 0x73, 0x71, 0x95, 0x7c, 0x3b, 0xc3, 0xec, 0x61, 0x51, 0x17, 0xa6, 0x5d, 0x54, 0xaf, - 0x46, 0xfd, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x47, 0x32, 0x61, 0xa8, 0xb5, 0x04, 0x00, 0x00, + // 644 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdb, 0x4e, 0xd4, 0x40, + 0x18, 0xde, 0x05, 0x5c, 0x64, 0x76, 0x17, 0x61, 0x82, 0x49, 0xad, 0x52, 0x90, 0xc4, 0x04, 0x43, + 0x68, 0x03, 0x5c, 0x79, 0x65, 0x38, 0x89, 0x26, 0x9a, 0x90, 0xc5, 0x78, 0x61, 0x62, 0x9a, 0xd9, + 0xf6, 0xdf, 0x32, 0xb0, 0xed, 0xd4, 0xfe, 0xc3, 0x0a, 0x3e, 0x85, 0xcf, 0xe1, 0x93, 0x70, 0xc9, + 0x25, 0x57, 0x1e, 0xe0, 0x45, 0x4c, 0x67, 0xa6, 0x7b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, 0x67, 0xef, 0xbc, 0xf8, 0x24, 0xaa, + 0xb2, 0xb7, 0x6b, 0xea, 0x8b, 0xb7, 0xf5, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x21, 0xd8, 0xec, 0x79, + 0x8b, 0x05, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -220,6 +228,48 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.PriceFeeders) > 0 { + for iNdEx := len(m.PriceFeeders) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PriceFeeders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + } + if len(m.Prices) > 0 { + for iNdEx := len(m.Prices) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Prices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + } + if len(m.AssetInfos) > 0 { + for iNdEx := len(m.AssetInfos) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AssetInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } if len(m.MedianDeviations) > 0 { for iNdEx := len(m.MedianDeviations) - 1; iNdEx >= 0; iNdEx-- { { @@ -484,6 +534,24 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } + if len(m.AssetInfos) > 0 { + for _, e := range m.AssetInfos { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.Prices) > 0 { + for _, e := range m.Prices { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.PriceFeeders) > 0 { + for _, e := range m.PriceFeeders { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } return n } @@ -860,6 +928,108 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AssetInfos", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AssetInfos = append(m.AssetInfos, AssetInfo{}) + if err := m.AssetInfos[len(m.AssetInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Prices = append(m.Prices, Price{}) + if err := m.Prices[len(m.Prices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PriceFeeders", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PriceFeeders = append(m.PriceFeeders, PriceFeeder{}) + if err := m.PriceFeeders[len(m.PriceFeeders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenesis(dAtA[iNdEx:]) diff --git a/x/oracle/types/oracle.pb.go b/x/oracle/types/oracle.pb.go index f3d9c9f6..b8800e93 100644 --- a/x/oracle/types/oracle.pb.go +++ b/x/oracle/types/oracle.pb.go @@ -56,9 +56,9 @@ type Params struct { // Currency Deviation Thresholds defines the deviation thresholds // for each base currency the price feeder uses upon start up. CurrencyDeviationThresholds CurrencyDeviationThresholdList `protobuf:"bytes,15,rep,name=currency_deviation_thresholds,json=currencyDeviationThresholds,proto3,castrepeated=CurrencyDeviationThresholdList" json:"currency_deviation_thresholds" yaml:"currency_deviation_thresholds"` - // Price expiry of in unix time for elys prices + // Price expiry in unix time for elys prices PriceExpiryTime uint64 `protobuf:"varint,16,opt,name=price_expiry_time,json=priceExpiryTime,proto3" json:"price_expiry_time,omitempty"` - // Lifetime of elys price in blocks + // Lifetime of an elys price in blocks LifeTimeInBlocks uint64 `protobuf:"varint,17,opt,name=life_time_in_blocks,json=lifeTimeInBlocks,proto3" json:"life_time_in_blocks,omitempty"` } From 77cc42204cc22784924638c1baa0fdd7b45a2fa8 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 8 Jan 2025 10:15:13 -0500 Subject: [PATCH 04/77] asset info types --- x/oracle/types/asset_info.go | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 x/oracle/types/asset_info.go diff --git a/x/oracle/types/asset_info.go b/x/oracle/types/asset_info.go new file mode 100644 index 00000000..e49d4f03 --- /dev/null +++ b/x/oracle/types/asset_info.go @@ -0,0 +1,6 @@ +package types + +var ( + BAND = "band" + ELYS = "elys" +) From 173a9e9b56346404a8957969074d0e0cd975ff4b Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 8 Jan 2025 12:37:05 -0500 Subject: [PATCH 05/77] msgs --- proto/ojo/oracle/v1/tx.proto | 102 + .../keeper/msg_server_create_asset_info.go | 39 + .../keeper/msg_server_feed_multiple_prices.go | 35 + x/oracle/keeper/msg_server_price.go | 34 + x/oracle/keeper/msg_server_price_feeder.go | 61 + x/oracle/types/errors.go | 1 + x/oracle/types/tx.pb.go | 6998 ++++++++++++----- 7 files changed, 5426 insertions(+), 1844 deletions(-) create mode 100644 x/oracle/keeper/msg_server_create_asset_info.go create mode 100644 x/oracle/keeper/msg_server_feed_multiple_prices.go create mode 100644 x/oracle/keeper/msg_server_price.go create mode 100644 x/oracle/keeper/msg_server_price_feeder.go diff --git a/proto/ojo/oracle/v1/tx.proto b/proto/ojo/oracle/v1/tx.proto index 2b0ce848..c2c23250 100644 --- a/proto/ojo/oracle/v1/tx.proto +++ b/proto/ojo/oracle/v1/tx.proto @@ -5,6 +5,7 @@ import "cosmos/msg/v1/msg.proto"; import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; import "ojo/oracle/v1/oracle.proto"; +import "ojo/oracle/v1/elys.proto"; option go_package = "github.com/ojo-network/ojo/x/oracle/types"; @@ -26,6 +27,31 @@ service Msg { rpc DelegateFeedConsent(MsgDelegateFeedConsent) returns (MsgDelegateFeedConsentResponse); + rpc FeedPrice(MsgFeedPrice) + returns (MsgFeedPriceResponse); + + rpc FeedMultiplePrices(MsgFeedMultiplePrices) + returns (MsgFeedMultiplePricesResponse); + + rpc SetPriceFeeder(MsgSetPriceFeeder) + returns (MsgSetPriceFeederResponse); + + rpc DeletePriceFeeder(MsgDeletePriceFeeder) + returns (MsgDeletePriceFeederResponse); + + // proposals + rpc RemoveAssetInfo(MsgRemoveAssetInfo) + returns (MsgRemoveAssetInfoResponse); + + rpc AddPriceFeeders(MsgAddPriceFeeders) + returns (MsgAddPriceFeedersResponse); + + rpc RemovePriceFeeders(MsgRemovePriceFeeders) + returns (MsgRemovePriceFeedersResponse); + + rpc CreateAssetInfo(MsgCreateAssetInfo) + returns (MsgCreateAssetInfoResponse); + // LegacyGovUpdateParams defines the legacy message that updates the oracle parameters. rpc LegacyGovUpdateParams(MsgLegacyGovUpdateParams) returns (MsgLegacyGovUpdateParamsResponse); @@ -105,6 +131,82 @@ message MsgDelegateFeedConsent { // type. message MsgDelegateFeedConsentResponse {} +message FeedPrice { + string asset = 1; + string price = 2 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false + ]; + string source = 3; +} +message MsgFeedPrice { + option (cosmos.msg.v1.signer) = "provider"; + string provider = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + FeedPrice feed_price = 2 [ (gogoproto.nullable) = false ]; +} + +message MsgFeedPriceResponse {} + +message MsgSetPriceFeeder { + option (cosmos.msg.v1.signer) = "feeder"; + string feeder = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + bool is_active = 2; +} + +message MsgSetPriceFeederResponse {} + +message MsgDeletePriceFeeder { + option (cosmos.msg.v1.signer) = "feeder"; + string feeder = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; +} + +message MsgDeletePriceFeederResponse {} + +message MsgFeedMultiplePrices { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + repeated FeedPrice feed_prices = 2 [ (gogoproto.nullable) = false ]; +} + +message MsgFeedMultiplePricesResponse {} + +message MsgRemoveAssetInfo { + option (cosmos.msg.v1.signer) = "authority"; + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + string denom = 2; +} + +message MsgRemoveAssetInfoResponse {} + +message MsgAddPriceFeeders { + option (cosmos.msg.v1.signer) = "authority"; + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + repeated string feeders = 2; +} + +message MsgAddPriceFeedersResponse {} + +message MsgRemovePriceFeeders { + option (cosmos.msg.v1.signer) = "authority"; + string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + repeated string feeders = 2; +} + +message MsgRemovePriceFeedersResponse {} + +message MsgCreateAssetInfo { + option (cosmos.msg.v1.signer) = "creator"; + string creator = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + string denom = 2; + string display = 3; + string band_ticker = 4; + string elys_ticker = 5; + uint64 decimal = 6; +} + +message MsgCreateAssetInfoResponse {} + // MsgLegacyGovUpdateParams defines the Msg/MsgLegacyGovUpdateParams request type. message MsgLegacyGovUpdateParams { option (gogoproto.equal) = true; diff --git a/x/oracle/keeper/msg_server_create_asset_info.go b/x/oracle/keeper/msg_server_create_asset_info.go new file mode 100644 index 00000000..b6ac837b --- /dev/null +++ b/x/oracle/keeper/msg_server_create_asset_info.go @@ -0,0 +1,39 @@ +package keeper + +import ( + "context" + + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/ojo-network/ojo/x/oracle/types" +) + +func (ms msgServer) CreateAssetInfo(goCtx context.Context, msg *types.MsgCreateAssetInfo) (*types.MsgCreateAssetInfoResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + _, found := ms.GetAssetInfo(ctx, msg.Denom) + + if found { + return nil, errors.Wrapf(types.ErrAssetWasCreated, "%s", msg.Denom) + } + + ms.Keeper.SetAssetInfo(ctx, types.AssetInfo{ + Denom: msg.Denom, + Display: msg.Display, + BandTicker: msg.BandTicker, + ElysTicker: msg.ElysTicker, + Decimal: msg.Decimal, + }) + + return &types.MsgCreateAssetInfoResponse{}, nil +} + +func (ms msgServer) RemoveAssetInfo(goCtx context.Context, msg *types.MsgRemoveAssetInfo) (*types.MsgRemoveAssetInfoResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + if ms.authority != msg.Authority { + return nil, errors.Wrapf(types.ErrNoGovAuthority, "invalid authority; expected %s, got %s", ms.authority, msg.Authority) + } + + ms.Keeper.RemoveAssetInfo(ctx, msg.Denom) + return &types.MsgRemoveAssetInfoResponse{}, nil +} diff --git a/x/oracle/keeper/msg_server_feed_multiple_prices.go b/x/oracle/keeper/msg_server_feed_multiple_prices.go new file mode 100644 index 00000000..fe0db2af --- /dev/null +++ b/x/oracle/keeper/msg_server_feed_multiple_prices.go @@ -0,0 +1,35 @@ +package keeper + +import ( + "context" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/ojo-network/ojo/x/oracle/types" +) + +func (ms msgServer) FeedMultiplePrices(goCtx context.Context, msg *types.MsgFeedMultiplePrices) (*types.MsgFeedMultiplePricesResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + creator := sdk.MustAccAddressFromBech32(msg.Creator) + feeder, found := ms.Keeper.GetPriceFeeder(ctx, creator) + if !found { + return nil, types.ErrNotAPriceFeeder + } + + if !feeder.IsActive { + return nil, types.ErrPriceFeederNotActive + } + + for _, feedPrice := range msg.FeedPrices { + price := types.Price{ + Asset: feedPrice.Asset, + Price: feedPrice.Price, + Source: feedPrice.Source, + Provider: msg.Creator, + Timestamp: uint64(ctx.BlockTime().Unix()), + BlockHeight: uint64(ctx.BlockHeight()), + } + ms.SetPrice(ctx, price) + } + + return &types.MsgFeedMultiplePricesResponse{}, nil +} diff --git a/x/oracle/keeper/msg_server_price.go b/x/oracle/keeper/msg_server_price.go new file mode 100644 index 00000000..7844b446 --- /dev/null +++ b/x/oracle/keeper/msg_server_price.go @@ -0,0 +1,34 @@ +package keeper + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/ojo-network/ojo/x/oracle/types" +) + +func (ms msgServer) FeedPrice(goCtx context.Context, msg *types.MsgFeedPrice) (*types.MsgFeedPriceResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + provider := sdk.MustAccAddressFromBech32(msg.Provider) + feeder, found := ms.Keeper.GetPriceFeeder(ctx, provider) + if !found { + return nil, types.ErrNotAPriceFeeder + } + + if !feeder.IsActive { + return nil, types.ErrPriceFeederNotActive + } + + price := types.Price{ + Asset: msg.FeedPrice.Asset, + Price: msg.FeedPrice.Price, + Source: msg.FeedPrice.Source, + Provider: msg.Provider, + Timestamp: uint64(ctx.BlockTime().Unix()), + BlockHeight: uint64(ctx.BlockHeight()), + } + + ms.SetPrice(ctx, price) + return &types.MsgFeedPriceResponse{}, nil +} diff --git a/x/oracle/keeper/msg_server_price_feeder.go b/x/oracle/keeper/msg_server_price_feeder.go new file mode 100644 index 00000000..f63b1c36 --- /dev/null +++ b/x/oracle/keeper/msg_server_price_feeder.go @@ -0,0 +1,61 @@ +package keeper + +import ( + "context" + + "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/ojo-network/ojo/x/oracle/types" +) + +func (ms msgServer) SetPriceFeeder(goCtx context.Context, msg *types.MsgSetPriceFeeder) (*types.MsgSetPriceFeederResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + feederAccount := sdk.MustAccAddressFromBech32(msg.Feeder) + _, found := ms.Keeper.GetPriceFeeder(ctx, feederAccount) + if !found { + return nil, types.ErrNotAPriceFeeder + } + ms.Keeper.SetPriceFeeder(ctx, types.PriceFeeder{ + Feeder: msg.Feeder, + IsActive: msg.IsActive, + }) + return &types.MsgSetPriceFeederResponse{}, nil +} + +func (ms msgServer) DeletePriceFeeder(goCtx context.Context, msg *types.MsgDeletePriceFeeder) (*types.MsgDeletePriceFeederResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + feederAccount := sdk.MustAccAddressFromBech32(msg.Feeder) + _, found := ms.Keeper.GetPriceFeeder(ctx, feederAccount) + if !found { + return nil, types.ErrNotAPriceFeeder + } + ms.RemovePriceFeeder(ctx, feederAccount) + return &types.MsgDeletePriceFeederResponse{}, nil +} + +func (ms msgServer) AddPriceFeeders(goCtx context.Context, msg *types.MsgAddPriceFeeders) (*types.MsgAddPriceFeedersResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + if ms.authority != msg.Authority { + return nil, errors.Wrapf(types.ErrNoGovAuthority, "invalid authority; expected %s, got %s", ms.authority, msg.Authority) + } + + for _, feeder := range msg.Feeders { + ms.Keeper.SetPriceFeeder(ctx, types.PriceFeeder{ + Feeder: feeder, + IsActive: true, + }) + } + return &types.MsgAddPriceFeedersResponse{}, nil +} + +func (ms msgServer) RemovePriceFeeders(goCtx context.Context, msg *types.MsgRemovePriceFeeders) (*types.MsgRemovePriceFeedersResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + if ms.authority != msg.Authority { + return nil, errors.Wrapf(types.ErrNoGovAuthority, "invalid authority; expected %s, got %s", ms.authority, msg.Authority) + } + + for _, feeder := range msg.Feeders { + ms.Keeper.RemovePriceFeeder(ctx, sdk.MustAccAddressFromBech32(feeder)) + } + return &types.MsgRemovePriceFeedersResponse{}, nil +} diff --git a/x/oracle/types/errors.go b/x/oracle/types/errors.go index e85e0b28..010504b7 100644 --- a/x/oracle/types/errors.go +++ b/x/oracle/types/errors.go @@ -40,4 +40,5 @@ var ( ErrNoCommitInfo = errors.Register(ModuleName, 30, "no commit info in process proposal request") ErrNotAPriceFeeder = errors.Register(ModuleName, 31, "not a price feeder") ErrPriceFeederNotActive = errors.Register(ModuleName, 32, "price feeder is not active") + ErrAssetWasCreated = errors.Register(ModuleName, 33, "asset already exists") ) diff --git a/x/oracle/types/tx.pb.go b/x/oracle/types/tx.pb.go index 95b0b353..2b0d0179 100644 --- a/x/oracle/types/tx.pb.go +++ b/x/oracle/types/tx.pb.go @@ -273,27 +273,24 @@ func (m *MsgDelegateFeedConsentResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDelegateFeedConsentResponse proto.InternalMessageInfo -// MsgLegacyGovUpdateParams defines the Msg/MsgLegacyGovUpdateParams request type. -type MsgLegacyGovUpdateParams struct { - // authority is the address of the governance account. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Keys []string `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty"` - Changes Params `protobuf:"bytes,5,opt,name=changes,proto3" json:"changes"` +type FeedPrice struct { + Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` + Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price"` + Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` } -func (m *MsgLegacyGovUpdateParams) Reset() { *m = MsgLegacyGovUpdateParams{} } -func (*MsgLegacyGovUpdateParams) ProtoMessage() {} -func (*MsgLegacyGovUpdateParams) Descriptor() ([]byte, []int) { +func (m *FeedPrice) Reset() { *m = FeedPrice{} } +func (m *FeedPrice) String() string { return proto.CompactTextString(m) } +func (*FeedPrice) ProtoMessage() {} +func (*FeedPrice) Descriptor() ([]byte, []int) { return fileDescriptor_58d45810177a43e8, []int{6} } -func (m *MsgLegacyGovUpdateParams) XXX_Unmarshal(b []byte) error { +func (m *FeedPrice) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgLegacyGovUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *FeedPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgLegacyGovUpdateParams.Marshal(b, m, deterministic) + return xxx_messageInfo_FeedPrice.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -303,34 +300,35 @@ func (m *MsgLegacyGovUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *MsgLegacyGovUpdateParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgLegacyGovUpdateParams.Merge(m, src) +func (m *FeedPrice) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeedPrice.Merge(m, src) } -func (m *MsgLegacyGovUpdateParams) XXX_Size() int { +func (m *FeedPrice) XXX_Size() int { return m.Size() } -func (m *MsgLegacyGovUpdateParams) XXX_DiscardUnknown() { - xxx_messageInfo_MsgLegacyGovUpdateParams.DiscardUnknown(m) +func (m *FeedPrice) XXX_DiscardUnknown() { + xxx_messageInfo_FeedPrice.DiscardUnknown(m) } -var xxx_messageInfo_MsgLegacyGovUpdateParams proto.InternalMessageInfo +var xxx_messageInfo_FeedPrice proto.InternalMessageInfo -// MsgLegacyGovUpdateParams defines the Msg/MsgLegacyGovUpdateParams response type. -type MsgLegacyGovUpdateParamsResponse struct { +type MsgFeedPrice struct { + Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` + FeedPrice FeedPrice `protobuf:"bytes,2,opt,name=feed_price,json=feedPrice,proto3" json:"feed_price"` } -func (m *MsgLegacyGovUpdateParamsResponse) Reset() { *m = MsgLegacyGovUpdateParamsResponse{} } -func (m *MsgLegacyGovUpdateParamsResponse) String() string { return proto.CompactTextString(m) } -func (*MsgLegacyGovUpdateParamsResponse) ProtoMessage() {} -func (*MsgLegacyGovUpdateParamsResponse) Descriptor() ([]byte, []int) { +func (m *MsgFeedPrice) Reset() { *m = MsgFeedPrice{} } +func (m *MsgFeedPrice) String() string { return proto.CompactTextString(m) } +func (*MsgFeedPrice) ProtoMessage() {} +func (*MsgFeedPrice) Descriptor() ([]byte, []int) { return fileDescriptor_58d45810177a43e8, []int{7} } -func (m *MsgLegacyGovUpdateParamsResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgFeedPrice) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgLegacyGovUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgFeedPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgLegacyGovUpdateParamsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgFeedPrice.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -340,41 +338,33 @@ func (m *MsgLegacyGovUpdateParamsResponse) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *MsgLegacyGovUpdateParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgLegacyGovUpdateParamsResponse.Merge(m, src) +func (m *MsgFeedPrice) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgFeedPrice.Merge(m, src) } -func (m *MsgLegacyGovUpdateParamsResponse) XXX_Size() int { +func (m *MsgFeedPrice) XXX_Size() int { return m.Size() } -func (m *MsgLegacyGovUpdateParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgLegacyGovUpdateParamsResponse.DiscardUnknown(m) +func (m *MsgFeedPrice) XXX_DiscardUnknown() { + xxx_messageInfo_MsgFeedPrice.DiscardUnknown(m) } -var xxx_messageInfo_MsgLegacyGovUpdateParamsResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgFeedPrice proto.InternalMessageInfo -// MsgGovUpdateParams defines the Msg/GovUpdateParams request type. -type MsgGovUpdateParams struct { - // authority is the address of the governance account. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // title of the proposal - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - // description of the proposal - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - // plan is the param update plan - Plan ParamUpdatePlan `protobuf:"bytes,4,opt,name=plan,proto3" json:"plan"` +type MsgFeedPriceResponse struct { } -func (m *MsgGovUpdateParams) Reset() { *m = MsgGovUpdateParams{} } -func (*MsgGovUpdateParams) ProtoMessage() {} -func (*MsgGovUpdateParams) Descriptor() ([]byte, []int) { +func (m *MsgFeedPriceResponse) Reset() { *m = MsgFeedPriceResponse{} } +func (m *MsgFeedPriceResponse) String() string { return proto.CompactTextString(m) } +func (*MsgFeedPriceResponse) ProtoMessage() {} +func (*MsgFeedPriceResponse) Descriptor() ([]byte, []int) { return fileDescriptor_58d45810177a43e8, []int{8} } -func (m *MsgGovUpdateParams) XXX_Unmarshal(b []byte) error { +func (m *MsgFeedPriceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgGovUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgFeedPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgGovUpdateParams.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgFeedPriceResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -384,34 +374,35 @@ func (m *MsgGovUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *MsgGovUpdateParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgGovUpdateParams.Merge(m, src) +func (m *MsgFeedPriceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgFeedPriceResponse.Merge(m, src) } -func (m *MsgGovUpdateParams) XXX_Size() int { +func (m *MsgFeedPriceResponse) XXX_Size() int { return m.Size() } -func (m *MsgGovUpdateParams) XXX_DiscardUnknown() { - xxx_messageInfo_MsgGovUpdateParams.DiscardUnknown(m) +func (m *MsgFeedPriceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgFeedPriceResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgGovUpdateParams proto.InternalMessageInfo +var xxx_messageInfo_MsgFeedPriceResponse proto.InternalMessageInfo -// MsgGovUpdateParamsResponse defines the Msg/GovUpdateParams response type. -type MsgGovUpdateParamsResponse struct { +type MsgSetPriceFeeder struct { + Feeder string `protobuf:"bytes,1,opt,name=feeder,proto3" json:"feeder,omitempty"` + IsActive bool `protobuf:"varint,2,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` } -func (m *MsgGovUpdateParamsResponse) Reset() { *m = MsgGovUpdateParamsResponse{} } -func (m *MsgGovUpdateParamsResponse) String() string { return proto.CompactTextString(m) } -func (*MsgGovUpdateParamsResponse) ProtoMessage() {} -func (*MsgGovUpdateParamsResponse) Descriptor() ([]byte, []int) { +func (m *MsgSetPriceFeeder) Reset() { *m = MsgSetPriceFeeder{} } +func (m *MsgSetPriceFeeder) String() string { return proto.CompactTextString(m) } +func (*MsgSetPriceFeeder) ProtoMessage() {} +func (*MsgSetPriceFeeder) Descriptor() ([]byte, []int) { return fileDescriptor_58d45810177a43e8, []int{9} } -func (m *MsgGovUpdateParamsResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgSetPriceFeeder) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgGovUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSetPriceFeeder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgGovUpdateParamsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSetPriceFeeder.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -421,54 +412,33 @@ func (m *MsgGovUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *MsgGovUpdateParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgGovUpdateParamsResponse.Merge(m, src) +func (m *MsgSetPriceFeeder) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetPriceFeeder.Merge(m, src) } -func (m *MsgGovUpdateParamsResponse) XXX_Size() int { +func (m *MsgSetPriceFeeder) XXX_Size() int { return m.Size() } -func (m *MsgGovUpdateParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgGovUpdateParamsResponse.DiscardUnknown(m) +func (m *MsgSetPriceFeeder) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetPriceFeeder.DiscardUnknown(m) } -var xxx_messageInfo_MsgGovUpdateParamsResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgSetPriceFeeder proto.InternalMessageInfo -// MsgGovAddDenoms defines the Msg/GovAddDenoms request type. -type MsgGovAddDenoms struct { - // authority is the address of the governance account. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // title of the proposal - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - // description of the proposal - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - // height at which the param update must be performed - Height int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` - // denom_list is the list of denoms to add to the oracle registry - DenomList DenomList `protobuf:"bytes,5,rep,name=denom_list,json=denomList,proto3,castrepeated=DenomList" json:"denom_list"` - // whether or not the assets should be mandatory - Mandatory bool `protobuf:"varint,6,opt,name=mandatory,proto3" json:"mandatory,omitempty"` - // reward_band determines what the reward_band will be for every - // asset in the proposal. If not provided, it will default. - RewardBand *cosmossdk_io_math.LegacyDec `protobuf:"bytes,7,opt,name=reward_band,json=rewardBand,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"reward_band,omitempty" yaml:"vote_threshold"` - // currency_pair_providers defines the currency provider pairs for - // each denom being added. - CurrencyPairProviders CurrencyPairProvidersList `protobuf:"bytes,8,rep,name=currency_pair_providers,json=currencyPairProviders,proto3,castrepeated=CurrencyPairProvidersList" json:"currency_pair_providers" yaml:"currency_pair_providers"` - // currency_deviation_thresholds defines the deviation thresholds - // for each denom being added. - CurrencyDeviationThresholds CurrencyDeviationThresholdList `protobuf:"bytes,9,rep,name=currency_deviation_thresholds,json=currencyDeviationThresholds,proto3,castrepeated=CurrencyDeviationThresholdList" json:"currency_deviation_thresholds" yaml:"currency_deviation_thresholds"` +type MsgSetPriceFeederResponse struct { } -func (m *MsgGovAddDenoms) Reset() { *m = MsgGovAddDenoms{} } -func (*MsgGovAddDenoms) ProtoMessage() {} -func (*MsgGovAddDenoms) Descriptor() ([]byte, []int) { +func (m *MsgSetPriceFeederResponse) Reset() { *m = MsgSetPriceFeederResponse{} } +func (m *MsgSetPriceFeederResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetPriceFeederResponse) ProtoMessage() {} +func (*MsgSetPriceFeederResponse) Descriptor() ([]byte, []int) { return fileDescriptor_58d45810177a43e8, []int{10} } -func (m *MsgGovAddDenoms) XXX_Unmarshal(b []byte) error { +func (m *MsgSetPriceFeederResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgGovAddDenoms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSetPriceFeederResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgGovAddDenoms.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSetPriceFeederResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -478,34 +448,34 @@ func (m *MsgGovAddDenoms) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } -func (m *MsgGovAddDenoms) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgGovAddDenoms.Merge(m, src) +func (m *MsgSetPriceFeederResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetPriceFeederResponse.Merge(m, src) } -func (m *MsgGovAddDenoms) XXX_Size() int { +func (m *MsgSetPriceFeederResponse) XXX_Size() int { return m.Size() } -func (m *MsgGovAddDenoms) XXX_DiscardUnknown() { - xxx_messageInfo_MsgGovAddDenoms.DiscardUnknown(m) +func (m *MsgSetPriceFeederResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetPriceFeederResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgGovAddDenoms proto.InternalMessageInfo +var xxx_messageInfo_MsgSetPriceFeederResponse proto.InternalMessageInfo -// MsgGovAddDenomResponse defines the Msg/GovAddDenomResponse response type. -type MsgGovAddDenomsResponse struct { +type MsgDeletePriceFeeder struct { + Feeder string `protobuf:"bytes,1,opt,name=feeder,proto3" json:"feeder,omitempty"` } -func (m *MsgGovAddDenomsResponse) Reset() { *m = MsgGovAddDenomsResponse{} } -func (m *MsgGovAddDenomsResponse) String() string { return proto.CompactTextString(m) } -func (*MsgGovAddDenomsResponse) ProtoMessage() {} -func (*MsgGovAddDenomsResponse) Descriptor() ([]byte, []int) { +func (m *MsgDeletePriceFeeder) Reset() { *m = MsgDeletePriceFeeder{} } +func (m *MsgDeletePriceFeeder) String() string { return proto.CompactTextString(m) } +func (*MsgDeletePriceFeeder) ProtoMessage() {} +func (*MsgDeletePriceFeeder) Descriptor() ([]byte, []int) { return fileDescriptor_58d45810177a43e8, []int{11} } -func (m *MsgGovAddDenomsResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgDeletePriceFeeder) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgGovAddDenomsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgDeletePriceFeeder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgGovAddDenomsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgDeletePriceFeeder.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -515,43 +485,33 @@ func (m *MsgGovAddDenomsResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *MsgGovAddDenomsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgGovAddDenomsResponse.Merge(m, src) +func (m *MsgDeletePriceFeeder) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeletePriceFeeder.Merge(m, src) } -func (m *MsgGovAddDenomsResponse) XXX_Size() int { +func (m *MsgDeletePriceFeeder) XXX_Size() int { return m.Size() } -func (m *MsgGovAddDenomsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgGovAddDenomsResponse.DiscardUnknown(m) +func (m *MsgDeletePriceFeeder) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeletePriceFeeder.DiscardUnknown(m) } -var xxx_messageInfo_MsgGovAddDenomsResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgDeletePriceFeeder proto.InternalMessageInfo -// MsgGovRemoveCurrencyPairProviders defines the Msg/GovRemoveCurrencyPairProviders request type. -type MsgGovRemoveCurrencyPairProviders struct { - // authority is the address of the governance account. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // title of the proposal - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - // description of the proposal - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - // height at which the param update must be performed - Height int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` - // currency_pair_providers to remove from the current CurrencyPairProvidersList - CurrencyPairProviders CurrencyPairProvidersList `protobuf:"bytes,5,rep,name=currency_pair_providers,json=currencyPairProviders,proto3,castrepeated=CurrencyPairProvidersList" json:"currency_pair_providers" yaml:"currency_pair_providers"` +type MsgDeletePriceFeederResponse struct { } -func (m *MsgGovRemoveCurrencyPairProviders) Reset() { *m = MsgGovRemoveCurrencyPairProviders{} } -func (*MsgGovRemoveCurrencyPairProviders) ProtoMessage() {} -func (*MsgGovRemoveCurrencyPairProviders) Descriptor() ([]byte, []int) { +func (m *MsgDeletePriceFeederResponse) Reset() { *m = MsgDeletePriceFeederResponse{} } +func (m *MsgDeletePriceFeederResponse) String() string { return proto.CompactTextString(m) } +func (*MsgDeletePriceFeederResponse) ProtoMessage() {} +func (*MsgDeletePriceFeederResponse) Descriptor() ([]byte, []int) { return fileDescriptor_58d45810177a43e8, []int{12} } -func (m *MsgGovRemoveCurrencyPairProviders) XXX_Unmarshal(b []byte) error { +func (m *MsgDeletePriceFeederResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgGovRemoveCurrencyPairProviders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgDeletePriceFeederResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgGovRemoveCurrencyPairProviders.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgDeletePriceFeederResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -561,38 +521,35 @@ func (m *MsgGovRemoveCurrencyPairProviders) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *MsgGovRemoveCurrencyPairProviders) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgGovRemoveCurrencyPairProviders.Merge(m, src) +func (m *MsgDeletePriceFeederResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeletePriceFeederResponse.Merge(m, src) } -func (m *MsgGovRemoveCurrencyPairProviders) XXX_Size() int { +func (m *MsgDeletePriceFeederResponse) XXX_Size() int { return m.Size() } -func (m *MsgGovRemoveCurrencyPairProviders) XXX_DiscardUnknown() { - xxx_messageInfo_MsgGovRemoveCurrencyPairProviders.DiscardUnknown(m) +func (m *MsgDeletePriceFeederResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeletePriceFeederResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgGovRemoveCurrencyPairProviders proto.InternalMessageInfo +var xxx_messageInfo_MsgDeletePriceFeederResponse proto.InternalMessageInfo -// MsgGovRemoveCurrencyPairProvidersResponse defines the Msg/GovRemoveCurrencyPairProvidersResponse response type. -type MsgGovRemoveCurrencyPairProvidersResponse struct { +type MsgFeedMultiplePrices struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + FeedPrices []FeedPrice `protobuf:"bytes,2,rep,name=feed_prices,json=feedPrices,proto3" json:"feed_prices"` } -func (m *MsgGovRemoveCurrencyPairProvidersResponse) Reset() { - *m = MsgGovRemoveCurrencyPairProvidersResponse{} -} -func (m *MsgGovRemoveCurrencyPairProvidersResponse) String() string { - return proto.CompactTextString(m) -} -func (*MsgGovRemoveCurrencyPairProvidersResponse) ProtoMessage() {} -func (*MsgGovRemoveCurrencyPairProvidersResponse) Descriptor() ([]byte, []int) { +func (m *MsgFeedMultiplePrices) Reset() { *m = MsgFeedMultiplePrices{} } +func (m *MsgFeedMultiplePrices) String() string { return proto.CompactTextString(m) } +func (*MsgFeedMultiplePrices) ProtoMessage() {} +func (*MsgFeedMultiplePrices) Descriptor() ([]byte, []int) { return fileDescriptor_58d45810177a43e8, []int{13} } -func (m *MsgGovRemoveCurrencyPairProvidersResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgFeedMultiplePrices) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgGovRemoveCurrencyPairProvidersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgFeedMultiplePrices) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgGovRemoveCurrencyPairProvidersResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgFeedMultiplePrices.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -602,45 +559,33 @@ func (m *MsgGovRemoveCurrencyPairProvidersResponse) XXX_Marshal(b []byte, determ return b[:n], nil } } -func (m *MsgGovRemoveCurrencyPairProvidersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgGovRemoveCurrencyPairProvidersResponse.Merge(m, src) +func (m *MsgFeedMultiplePrices) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgFeedMultiplePrices.Merge(m, src) } -func (m *MsgGovRemoveCurrencyPairProvidersResponse) XXX_Size() int { +func (m *MsgFeedMultiplePrices) XXX_Size() int { return m.Size() } -func (m *MsgGovRemoveCurrencyPairProvidersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgGovRemoveCurrencyPairProvidersResponse.DiscardUnknown(m) +func (m *MsgFeedMultiplePrices) XXX_DiscardUnknown() { + xxx_messageInfo_MsgFeedMultiplePrices.DiscardUnknown(m) } -var xxx_messageInfo_MsgGovRemoveCurrencyPairProvidersResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgFeedMultiplePrices proto.InternalMessageInfo -// MsgGovRemoveCurrencyDeviationThresholds defines the Msg/GovRemoveCurrencyDeviationThresholds request type. -type MsgGovRemoveCurrencyDeviationThresholds struct { - // authority is the address of the governance account. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // title of the proposal - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - // description of the proposal - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - // height at which the param update must be performed - Height int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` - // currencies to remove from the current CurrencyDeviationThresholdsList - Currencies []string `protobuf:"bytes,5,rep,name=currencies,proto3" json:"currencies,omitempty"` +type MsgFeedMultiplePricesResponse struct { } -func (m *MsgGovRemoveCurrencyDeviationThresholds) Reset() { - *m = MsgGovRemoveCurrencyDeviationThresholds{} -} -func (*MsgGovRemoveCurrencyDeviationThresholds) ProtoMessage() {} -func (*MsgGovRemoveCurrencyDeviationThresholds) Descriptor() ([]byte, []int) { +func (m *MsgFeedMultiplePricesResponse) Reset() { *m = MsgFeedMultiplePricesResponse{} } +func (m *MsgFeedMultiplePricesResponse) String() string { return proto.CompactTextString(m) } +func (*MsgFeedMultiplePricesResponse) ProtoMessage() {} +func (*MsgFeedMultiplePricesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_58d45810177a43e8, []int{14} } -func (m *MsgGovRemoveCurrencyDeviationThresholds) XXX_Unmarshal(b []byte) error { +func (m *MsgFeedMultiplePricesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgGovRemoveCurrencyDeviationThresholds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgFeedMultiplePricesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgGovRemoveCurrencyDeviationThresholds.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgFeedMultiplePricesResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -650,38 +595,35 @@ func (m *MsgGovRemoveCurrencyDeviationThresholds) XXX_Marshal(b []byte, determin return b[:n], nil } } -func (m *MsgGovRemoveCurrencyDeviationThresholds) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgGovRemoveCurrencyDeviationThresholds.Merge(m, src) +func (m *MsgFeedMultiplePricesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgFeedMultiplePricesResponse.Merge(m, src) } -func (m *MsgGovRemoveCurrencyDeviationThresholds) XXX_Size() int { +func (m *MsgFeedMultiplePricesResponse) XXX_Size() int { return m.Size() } -func (m *MsgGovRemoveCurrencyDeviationThresholds) XXX_DiscardUnknown() { - xxx_messageInfo_MsgGovRemoveCurrencyDeviationThresholds.DiscardUnknown(m) +func (m *MsgFeedMultiplePricesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgFeedMultiplePricesResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgGovRemoveCurrencyDeviationThresholds proto.InternalMessageInfo +var xxx_messageInfo_MsgFeedMultiplePricesResponse proto.InternalMessageInfo -// MsgGovRemoveCurrencyDeviationThresholdsResponse defines the Msg/GovRemoveCurrencyDeviationThresholdsResponse response type. -type MsgGovRemoveCurrencyDeviationThresholdsResponse struct { +type MsgRemoveAssetInfo struct { + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` } -func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) Reset() { - *m = MsgGovRemoveCurrencyDeviationThresholdsResponse{} -} -func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) String() string { - return proto.CompactTextString(m) -} -func (*MsgGovRemoveCurrencyDeviationThresholdsResponse) ProtoMessage() {} -func (*MsgGovRemoveCurrencyDeviationThresholdsResponse) Descriptor() ([]byte, []int) { +func (m *MsgRemoveAssetInfo) Reset() { *m = MsgRemoveAssetInfo{} } +func (m *MsgRemoveAssetInfo) String() string { return proto.CompactTextString(m) } +func (*MsgRemoveAssetInfo) ProtoMessage() {} +func (*MsgRemoveAssetInfo) Descriptor() ([]byte, []int) { return fileDescriptor_58d45810177a43e8, []int{15} } -func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgRemoveAssetInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgRemoveAssetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgGovRemoveCurrencyDeviationThresholdsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgRemoveAssetInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -691,41 +633,33 @@ func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) XXX_Marshal(b []byte, return b[:n], nil } } -func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgGovRemoveCurrencyDeviationThresholdsResponse.Merge(m, src) +func (m *MsgRemoveAssetInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemoveAssetInfo.Merge(m, src) } -func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) XXX_Size() int { +func (m *MsgRemoveAssetInfo) XXX_Size() int { return m.Size() } -func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgGovRemoveCurrencyDeviationThresholdsResponse.DiscardUnknown(m) +func (m *MsgRemoveAssetInfo) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemoveAssetInfo.DiscardUnknown(m) } -var xxx_messageInfo_MsgGovRemoveCurrencyDeviationThresholdsResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgRemoveAssetInfo proto.InternalMessageInfo -// MsgGovCancelUpdateParamPlan defines the Msg/GovCancelUpdateParamPlan request type. -type MsgGovCancelUpdateParamPlan struct { - // authority is the address of the governance account. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // title of the proposal - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - // description of the proposal - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - // height of param update plan to cancel - Height int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` +type MsgRemoveAssetInfoResponse struct { } -func (m *MsgGovCancelUpdateParamPlan) Reset() { *m = MsgGovCancelUpdateParamPlan{} } -func (*MsgGovCancelUpdateParamPlan) ProtoMessage() {} -func (*MsgGovCancelUpdateParamPlan) Descriptor() ([]byte, []int) { +func (m *MsgRemoveAssetInfoResponse) Reset() { *m = MsgRemoveAssetInfoResponse{} } +func (m *MsgRemoveAssetInfoResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRemoveAssetInfoResponse) ProtoMessage() {} +func (*MsgRemoveAssetInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptor_58d45810177a43e8, []int{16} } -func (m *MsgGovCancelUpdateParamPlan) XXX_Unmarshal(b []byte) error { +func (m *MsgRemoveAssetInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgGovCancelUpdateParamPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgRemoveAssetInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgGovCancelUpdateParamPlan.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgRemoveAssetInfoResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -735,34 +669,35 @@ func (m *MsgGovCancelUpdateParamPlan) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *MsgGovCancelUpdateParamPlan) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgGovCancelUpdateParamPlan.Merge(m, src) +func (m *MsgRemoveAssetInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemoveAssetInfoResponse.Merge(m, src) } -func (m *MsgGovCancelUpdateParamPlan) XXX_Size() int { +func (m *MsgRemoveAssetInfoResponse) XXX_Size() int { return m.Size() } -func (m *MsgGovCancelUpdateParamPlan) XXX_DiscardUnknown() { - xxx_messageInfo_MsgGovCancelUpdateParamPlan.DiscardUnknown(m) +func (m *MsgRemoveAssetInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemoveAssetInfoResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgGovCancelUpdateParamPlan proto.InternalMessageInfo +var xxx_messageInfo_MsgRemoveAssetInfoResponse proto.InternalMessageInfo -// MsgGovCancelUpdateParamPlanResponse defines the Msg/GovCancelUpdateParamPlanResponse response type. -type MsgGovCancelUpdateParamPlanResponse struct { +type MsgAddPriceFeeders struct { + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + Feeders []string `protobuf:"bytes,2,rep,name=feeders,proto3" json:"feeders,omitempty"` } -func (m *MsgGovCancelUpdateParamPlanResponse) Reset() { *m = MsgGovCancelUpdateParamPlanResponse{} } -func (m *MsgGovCancelUpdateParamPlanResponse) String() string { return proto.CompactTextString(m) } -func (*MsgGovCancelUpdateParamPlanResponse) ProtoMessage() {} -func (*MsgGovCancelUpdateParamPlanResponse) Descriptor() ([]byte, []int) { +func (m *MsgAddPriceFeeders) Reset() { *m = MsgAddPriceFeeders{} } +func (m *MsgAddPriceFeeders) String() string { return proto.CompactTextString(m) } +func (*MsgAddPriceFeeders) ProtoMessage() {} +func (*MsgAddPriceFeeders) Descriptor() ([]byte, []int) { return fileDescriptor_58d45810177a43e8, []int{17} } -func (m *MsgGovCancelUpdateParamPlanResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgAddPriceFeeders) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgGovCancelUpdateParamPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgAddPriceFeeders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgGovCancelUpdateParamPlanResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgAddPriceFeeders.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -772,1857 +707,4883 @@ func (m *MsgGovCancelUpdateParamPlanResponse) XXX_Marshal(b []byte, deterministi return b[:n], nil } } -func (m *MsgGovCancelUpdateParamPlanResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgGovCancelUpdateParamPlanResponse.Merge(m, src) +func (m *MsgAddPriceFeeders) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAddPriceFeeders.Merge(m, src) } -func (m *MsgGovCancelUpdateParamPlanResponse) XXX_Size() int { +func (m *MsgAddPriceFeeders) XXX_Size() int { return m.Size() } -func (m *MsgGovCancelUpdateParamPlanResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgGovCancelUpdateParamPlanResponse.DiscardUnknown(m) +func (m *MsgAddPriceFeeders) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAddPriceFeeders.DiscardUnknown(m) } -var xxx_messageInfo_MsgGovCancelUpdateParamPlanResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgAddPriceFeeders proto.InternalMessageInfo -func init() { - proto.RegisterType((*MsgAggregateExchangeRatePrevote)(nil), "ojo.oracle.v1.MsgAggregateExchangeRatePrevote") - proto.RegisterType((*MsgAggregateExchangeRatePrevoteResponse)(nil), "ojo.oracle.v1.MsgAggregateExchangeRatePrevoteResponse") - proto.RegisterType((*MsgAggregateExchangeRateVote)(nil), "ojo.oracle.v1.MsgAggregateExchangeRateVote") - proto.RegisterType((*MsgAggregateExchangeRateVoteResponse)(nil), "ojo.oracle.v1.MsgAggregateExchangeRateVoteResponse") - proto.RegisterType((*MsgDelegateFeedConsent)(nil), "ojo.oracle.v1.MsgDelegateFeedConsent") - proto.RegisterType((*MsgDelegateFeedConsentResponse)(nil), "ojo.oracle.v1.MsgDelegateFeedConsentResponse") - proto.RegisterType((*MsgLegacyGovUpdateParams)(nil), "ojo.oracle.v1.MsgLegacyGovUpdateParams") - proto.RegisterType((*MsgLegacyGovUpdateParamsResponse)(nil), "ojo.oracle.v1.MsgLegacyGovUpdateParamsResponse") - proto.RegisterType((*MsgGovUpdateParams)(nil), "ojo.oracle.v1.MsgGovUpdateParams") - proto.RegisterType((*MsgGovUpdateParamsResponse)(nil), "ojo.oracle.v1.MsgGovUpdateParamsResponse") - proto.RegisterType((*MsgGovAddDenoms)(nil), "ojo.oracle.v1.MsgGovAddDenoms") - proto.RegisterType((*MsgGovAddDenomsResponse)(nil), "ojo.oracle.v1.MsgGovAddDenomsResponse") - proto.RegisterType((*MsgGovRemoveCurrencyPairProviders)(nil), "ojo.oracle.v1.MsgGovRemoveCurrencyPairProviders") - proto.RegisterType((*MsgGovRemoveCurrencyPairProvidersResponse)(nil), "ojo.oracle.v1.MsgGovRemoveCurrencyPairProvidersResponse") - proto.RegisterType((*MsgGovRemoveCurrencyDeviationThresholds)(nil), "ojo.oracle.v1.MsgGovRemoveCurrencyDeviationThresholds") - proto.RegisterType((*MsgGovRemoveCurrencyDeviationThresholdsResponse)(nil), "ojo.oracle.v1.MsgGovRemoveCurrencyDeviationThresholdsResponse") - proto.RegisterType((*MsgGovCancelUpdateParamPlan)(nil), "ojo.oracle.v1.MsgGovCancelUpdateParamPlan") - proto.RegisterType((*MsgGovCancelUpdateParamPlanResponse)(nil), "ojo.oracle.v1.MsgGovCancelUpdateParamPlanResponse") +type MsgAddPriceFeedersResponse struct { } -func init() { proto.RegisterFile("ojo/oracle/v1/tx.proto", fileDescriptor_58d45810177a43e8) } - -var fileDescriptor_58d45810177a43e8 = []byte{ - // 1185 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcf, 0x6f, 0x1b, 0x45, - 0x14, 0xf6, 0xc6, 0x4e, 0x1a, 0x3f, 0x53, 0x22, 0xb6, 0xf9, 0xb1, 0xd9, 0xa4, 0x6b, 0x67, 0x9b, - 0xb6, 0x49, 0xab, 0xd8, 0x4d, 0x2a, 0xaa, 0x2a, 0xe2, 0x57, 0x9c, 0xd0, 0x5e, 0x1a, 0x14, 0x2d, - 0x90, 0x03, 0x12, 0xb2, 0x26, 0xbb, 0xc3, 0x7a, 0x13, 0x7b, 0xc7, 0xcc, 0x4c, 0xdc, 0x18, 0x89, - 0x0b, 0x07, 0xc4, 0x01, 0x24, 0x8e, 0x9c, 0x50, 0xb9, 0x56, 0x42, 0xe2, 0xd0, 0x2b, 0x07, 0x6e, - 0x39, 0xa1, 0x2a, 0x27, 0xd4, 0x83, 0x0b, 0xc9, 0x01, 0x24, 0xc4, 0x81, 0xfc, 0x05, 0x68, 0x67, - 0xd7, 0x6b, 0xc7, 0x5e, 0x3b, 0x4e, 0x85, 0xd4, 0xdc, 0x76, 0xe6, 0x7d, 0xef, 0xbd, 0xef, 0xfb, - 0x66, 0x76, 0x76, 0xb4, 0x30, 0x4e, 0xb6, 0x49, 0x8e, 0x50, 0x64, 0x96, 0x70, 0xae, 0xba, 0x98, - 0xe3, 0x7b, 0xd9, 0x0a, 0x25, 0x9c, 0xc8, 0x17, 0xc9, 0x36, 0xc9, 0xfa, 0xf3, 0xd9, 0xea, 0xa2, - 0x3a, 0x61, 0x12, 0x56, 0x26, 0x2c, 0x57, 0x66, 0xb6, 0x07, 0x2b, 0x33, 0xdb, 0xc7, 0xa9, 0x93, - 0x7e, 0xa0, 0x20, 0x46, 0x39, 0x7f, 0x10, 0x84, 0x46, 0x6d, 0x62, 0x13, 0x7f, 0xde, 0x7b, 0x0a, - 0x66, 0xd5, 0x93, 0x0d, 0x83, 0x16, 0x22, 0xa6, 0xff, 0x2a, 0x41, 0x7a, 0x9d, 0xd9, 0x2b, 0xb6, - 0x4d, 0xb1, 0x8d, 0x38, 0x7e, 0x77, 0xcf, 0x2c, 0x22, 0xd7, 0xc6, 0x06, 0xe2, 0x78, 0x83, 0xe2, - 0x2a, 0xe1, 0x58, 0xbe, 0x02, 0x89, 0x22, 0x62, 0x45, 0x45, 0xca, 0x48, 0x73, 0xc9, 0xfc, 0xc8, - 0x71, 0x3d, 0x9d, 0xaa, 0xa1, 0x72, 0x69, 0x59, 0xf7, 0x66, 0x75, 0x43, 0x04, 0xe5, 0x5b, 0x30, - 0xf4, 0x09, 0xc6, 0x16, 0xa6, 0xca, 0x80, 0x80, 0x29, 0x07, 0x4f, 0x16, 0x46, 0x03, 0x72, 0x2b, - 0x96, 0x45, 0x31, 0x63, 0xef, 0x73, 0xea, 0xb8, 0xb6, 0x11, 0xe0, 0xe4, 0xb7, 0x21, 0x59, 0x45, - 0x25, 0xc7, 0x42, 0x9c, 0x50, 0x25, 0x2e, 0x92, 0x66, 0x0e, 0x9e, 0x2c, 0x5c, 0x0e, 0x92, 0x36, - 0x1b, 0xb1, 0x93, 0xd9, 0xcd, 0x9c, 0xe5, 0x4b, 0x5f, 0x3d, 0x4a, 0xc7, 0xfe, 0x7a, 0x94, 0x8e, - 0x7d, 0xf1, 0xe7, 0x4f, 0x37, 0x82, 0xaa, 0xfa, 0x3c, 0x5c, 0x3f, 0x45, 0x8f, 0x81, 0x59, 0x85, - 0xb8, 0x0c, 0xeb, 0xdf, 0x0c, 0xc0, 0x74, 0x37, 0xec, 0x66, 0x20, 0x9c, 0xa1, 0x12, 0xef, 0x14, - 0xee, 0xcd, 0xea, 0x86, 0x08, 0xca, 0xef, 0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 0xda, 0xc9, 0x3a, 0x24, 0x57, 0x46, 0xbc, 0x98, 0xf5, 0xb7, 0xd2, 0x1a, 0x36, 0x9b, - 0x07, 0x9f, 0x77, 0xdc, 0x16, 0x78, 0x91, 0x62, 0x56, 0x24, 0x25, 0x4b, 0x37, 0xc0, 0x2f, 0x98, - 0x47, 0xae, 0x25, 0xff, 0x20, 0xc1, 0x84, 0xb9, 0x4b, 0x29, 0x76, 0xcd, 0x5a, 0xa1, 0x82, 0x1c, - 0xea, 0x7d, 0xd0, 0xaa, 0x8e, 0x85, 0x29, 0x53, 0x86, 0x85, 0xa4, 0xd9, 0x36, 0x49, 0xab, 0x01, - 0x7a, 0x03, 0x39, 0x74, 0xa3, 0x81, 0xcd, 0xaf, 0x7a, 0x12, 0x8f, 0xeb, 0x69, 0xcd, 0x6f, 0xd9, - 0xa5, 0xa4, 0xfe, 0xf8, 0x79, 0x7a, 0x32, 0xb2, 0x80, 0x30, 0x65, 0xcc, 0x8c, 0x0a, 0xc9, 0x3f, - 0x4b, 0x70, 0x39, 0x2c, 0x68, 0xe1, 0xaa, 0x83, 0xbc, 0x75, 0x69, 0x2a, 0x62, 0x4a, 0x52, 0x30, - 0x9d, 0xef, 0xc2, 0x74, 0xad, 0x91, 0xf2, 0x41, 0x23, 0x23, 0xff, 0x5e, 0x40, 0x77, 0xb6, 0x8d, - 0x6e, 0x54, 0x75, 0x8f, 0xb4, 0xd6, 0xbd, 0x96, 0x60, 0x3e, 0x65, 0x76, 0x8d, 0xf7, 0x7e, 0xff, - 0x27, 0x61, 0xa2, 0x6d, 0x7f, 0x87, 0x7b, 0xff, 0xef, 0x01, 0x98, 0xf1, 0x63, 0x06, 0x2e, 0x93, - 0x2a, 0x8e, 0xf4, 0xed, 0xdc, 0xbc, 0x0d, 0xbd, 0x36, 0xd2, 0xe0, 0xf9, 0xd8, 0x48, 0x3d, 0x17, - 0xe2, 0x26, 0xcc, 0x9f, 0x6a, 0x76, 0xb8, 0x34, 0xff, 0x48, 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- 0xe9, 0x7c, 0x2f, 0xc1, 0x6c, 0x7f, 0x47, 0x68, 0x1f, 0x2d, 0x22, 0xf2, 0xd4, 0xb7, 0x5e, 0x2c, - 0x2f, 0x24, 0xf8, 0x19, 0x28, 0x5d, 0xcf, 0xaf, 0x1b, 0x91, 0xb5, 0x23, 0xb1, 0xea, 0x52, 0xff, - 0xd8, 0x46, 0xef, 0xfc, 0xfd, 0xfd, 0x3f, 0xb4, 0xd8, 0xfe, 0xa1, 0x26, 0x3d, 0x3d, 0xd4, 0xa4, - 0xdf, 0x0f, 0x35, 0xe9, 0xdb, 0x23, 0x2d, 0xf6, 0xf4, 0x48, 0x8b, 0xfd, 0x76, 0xa4, 0xc5, 0x3e, - 0x9a, 0xb7, 0x1d, 0x5e, 0xdc, 0xdd, 0xca, 0x9a, 0xa4, 0x9c, 0x23, 0xdb, 0x64, 0xc1, 0xc5, 0xfc, - 0x21, 0xa1, 0x3b, 0xde, 0x73, 0x6e, 0xaf, 0xf1, 0x97, 0x81, 0xd7, 0x2a, 0x98, 0x6d, 0x0d, 0x89, - 0x5f, 0x0c, 0xb7, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xbb, 0xe8, 0x89, 0x05, 0xf1, 0x10, 0x00, - 0x00, +func (m *MsgAddPriceFeedersResponse) Reset() { *m = MsgAddPriceFeedersResponse{} } +func (m *MsgAddPriceFeedersResponse) String() string { return proto.CompactTextString(m) } +func (*MsgAddPriceFeedersResponse) ProtoMessage() {} +func (*MsgAddPriceFeedersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{18} } - -func (this *MsgLegacyGovUpdateParams) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*MsgLegacyGovUpdateParams) - if !ok { - that2, ok := that.(MsgLegacyGovUpdateParams) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Authority != that1.Authority { - return false - } - if this.Title != that1.Title { - return false - } - if this.Description != that1.Description { - return false - } - if len(this.Keys) != len(that1.Keys) { - return false - } - for i := range this.Keys { - if this.Keys[i] != that1.Keys[i] { - return false +func (m *MsgAddPriceFeedersResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAddPriceFeedersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAddPriceFeedersResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if !this.Changes.Equal(&that1.Changes) { - return false - } - return true } -func (this *MsgGovUpdateParams) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (m *MsgAddPriceFeedersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAddPriceFeedersResponse.Merge(m, src) +} +func (m *MsgAddPriceFeedersResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgAddPriceFeedersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAddPriceFeedersResponse.DiscardUnknown(m) +} - that1, ok := that.(*MsgGovUpdateParams) - if !ok { - that2, ok := that.(MsgGovUpdateParams) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Authority != that1.Authority { - return false - } - if this.Title != that1.Title { - return false - } - if this.Description != that1.Description { - return false - } - if !this.Plan.Equal(&that1.Plan) { - return false - } - return true +var xxx_messageInfo_MsgAddPriceFeedersResponse proto.InternalMessageInfo + +type MsgRemovePriceFeeders struct { + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + Feeders []string `protobuf:"bytes,2,rep,name=feeders,proto3" json:"feeders,omitempty"` } -func (this *MsgGovAddDenoms) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*MsgGovAddDenoms) - if !ok { - that2, ok := that.(MsgGovAddDenoms) - if ok { - that1 = &that2 - } else { - return false +func (m *MsgRemovePriceFeeders) Reset() { *m = MsgRemovePriceFeeders{} } +func (m *MsgRemovePriceFeeders) String() string { return proto.CompactTextString(m) } +func (*MsgRemovePriceFeeders) ProtoMessage() {} +func (*MsgRemovePriceFeeders) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{19} +} +func (m *MsgRemovePriceFeeders) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRemovePriceFeeders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRemovePriceFeeders.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Authority != that1.Authority { - return false - } - if this.Title != that1.Title { - return false - } - if this.Description != that1.Description { - return false - } - if this.Height != that1.Height { - return false - } - if len(this.DenomList) != len(that1.DenomList) { - return false - } - for i := range this.DenomList { - if !this.DenomList[i].Equal(&that1.DenomList[i]) { - return false +} +func (m *MsgRemovePriceFeeders) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemovePriceFeeders.Merge(m, src) +} +func (m *MsgRemovePriceFeeders) XXX_Size() int { + return m.Size() +} +func (m *MsgRemovePriceFeeders) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemovePriceFeeders.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRemovePriceFeeders proto.InternalMessageInfo + +type MsgRemovePriceFeedersResponse struct { +} + +func (m *MsgRemovePriceFeedersResponse) Reset() { *m = MsgRemovePriceFeedersResponse{} } +func (m *MsgRemovePriceFeedersResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRemovePriceFeedersResponse) ProtoMessage() {} +func (*MsgRemovePriceFeedersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{20} +} +func (m *MsgRemovePriceFeedersResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRemovePriceFeedersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRemovePriceFeedersResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if this.Mandatory != that1.Mandatory { - return false - } - if that1.RewardBand == nil { - if this.RewardBand != nil { - return false +} +func (m *MsgRemovePriceFeedersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemovePriceFeedersResponse.Merge(m, src) +} +func (m *MsgRemovePriceFeedersResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRemovePriceFeedersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemovePriceFeedersResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRemovePriceFeedersResponse proto.InternalMessageInfo + +type MsgCreateAssetInfo struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` + Display string `protobuf:"bytes,3,opt,name=display,proto3" json:"display,omitempty"` + BandTicker string `protobuf:"bytes,4,opt,name=band_ticker,json=bandTicker,proto3" json:"band_ticker,omitempty"` + ElysTicker string `protobuf:"bytes,5,opt,name=elys_ticker,json=elysTicker,proto3" json:"elys_ticker,omitempty"` + Decimal uint64 `protobuf:"varint,6,opt,name=decimal,proto3" json:"decimal,omitempty"` +} + +func (m *MsgCreateAssetInfo) Reset() { *m = MsgCreateAssetInfo{} } +func (m *MsgCreateAssetInfo) String() string { return proto.CompactTextString(m) } +func (*MsgCreateAssetInfo) ProtoMessage() {} +func (*MsgCreateAssetInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{21} +} +func (m *MsgCreateAssetInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateAssetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateAssetInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } - } else if !this.RewardBand.Equal(*that1.RewardBand) { - return false - } - if len(this.CurrencyPairProviders) != len(that1.CurrencyPairProviders) { - return false + return b[:n], nil } - for i := range this.CurrencyPairProviders { - if !this.CurrencyPairProviders[i].Equal(&that1.CurrencyPairProviders[i]) { - return false +} +func (m *MsgCreateAssetInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateAssetInfo.Merge(m, src) +} +func (m *MsgCreateAssetInfo) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateAssetInfo) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateAssetInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateAssetInfo proto.InternalMessageInfo + +type MsgCreateAssetInfoResponse struct { +} + +func (m *MsgCreateAssetInfoResponse) Reset() { *m = MsgCreateAssetInfoResponse{} } +func (m *MsgCreateAssetInfoResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateAssetInfoResponse) ProtoMessage() {} +func (*MsgCreateAssetInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{22} +} +func (m *MsgCreateAssetInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateAssetInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateAssetInfoResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if len(this.CurrencyDeviationThresholds) != len(that1.CurrencyDeviationThresholds) { - return false - } - for i := range this.CurrencyDeviationThresholds { - if !this.CurrencyDeviationThresholds[i].Equal(&that1.CurrencyDeviationThresholds[i]) { - return false +} +func (m *MsgCreateAssetInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateAssetInfoResponse.Merge(m, src) +} +func (m *MsgCreateAssetInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateAssetInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateAssetInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateAssetInfoResponse proto.InternalMessageInfo + +// MsgLegacyGovUpdateParams defines the Msg/MsgLegacyGovUpdateParams request type. +type MsgLegacyGovUpdateParams struct { + // authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Keys []string `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty"` + Changes Params `protobuf:"bytes,5,opt,name=changes,proto3" json:"changes"` +} + +func (m *MsgLegacyGovUpdateParams) Reset() { *m = MsgLegacyGovUpdateParams{} } +func (*MsgLegacyGovUpdateParams) ProtoMessage() {} +func (*MsgLegacyGovUpdateParams) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{23} +} +func (m *MsgLegacyGovUpdateParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgLegacyGovUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgLegacyGovUpdateParams.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - return true } -func (this *MsgGovRemoveCurrencyPairProviders) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*MsgGovRemoveCurrencyPairProviders) - if !ok { - that2, ok := that.(MsgGovRemoveCurrencyPairProviders) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Authority != that1.Authority { - return false - } - if this.Title != that1.Title { - return false - } - if this.Description != that1.Description { - return false - } - if this.Height != that1.Height { - return false - } - if len(this.CurrencyPairProviders) != len(that1.CurrencyPairProviders) { - return false - } - for i := range this.CurrencyPairProviders { - if !this.CurrencyPairProviders[i].Equal(&that1.CurrencyPairProviders[i]) { - return false - } - } - return true +func (m *MsgLegacyGovUpdateParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgLegacyGovUpdateParams.Merge(m, src) +} +func (m *MsgLegacyGovUpdateParams) XXX_Size() int { + return m.Size() +} +func (m *MsgLegacyGovUpdateParams) XXX_DiscardUnknown() { + xxx_messageInfo_MsgLegacyGovUpdateParams.DiscardUnknown(m) } -func (this *MsgGovRemoveCurrencyDeviationThresholds) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*MsgGovRemoveCurrencyDeviationThresholds) - if !ok { - that2, ok := that.(MsgGovRemoveCurrencyDeviationThresholds) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Authority != that1.Authority { - return false - } - if this.Title != that1.Title { - return false - } - if this.Description != that1.Description { - return false - } - if this.Height != that1.Height { - return false - } - if len(this.Currencies) != len(that1.Currencies) { - return false - } - for i := range this.Currencies { - if this.Currencies[i] != that1.Currencies[i] { - return false - } - } - return true +var xxx_messageInfo_MsgLegacyGovUpdateParams proto.InternalMessageInfo + +// MsgLegacyGovUpdateParams defines the Msg/MsgLegacyGovUpdateParams response type. +type MsgLegacyGovUpdateParamsResponse struct { } -func (this *MsgGovCancelUpdateParamPlan) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*MsgGovCancelUpdateParamPlan) - if !ok { - that2, ok := that.(MsgGovCancelUpdateParamPlan) - if ok { - that1 = &that2 - } else { - return false +func (m *MsgLegacyGovUpdateParamsResponse) Reset() { *m = MsgLegacyGovUpdateParamsResponse{} } +func (m *MsgLegacyGovUpdateParamsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgLegacyGovUpdateParamsResponse) ProtoMessage() {} +func (*MsgLegacyGovUpdateParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{24} +} +func (m *MsgLegacyGovUpdateParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgLegacyGovUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgLegacyGovUpdateParamsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Authority != that1.Authority { - return false - } - if this.Title != that1.Title { - return false - } - if this.Description != that1.Description { - return false - } - if this.Height != that1.Height { - return false - } - return true +} +func (m *MsgLegacyGovUpdateParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgLegacyGovUpdateParamsResponse.Merge(m, src) +} +func (m *MsgLegacyGovUpdateParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgLegacyGovUpdateParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgLegacyGovUpdateParamsResponse.DiscardUnknown(m) } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +var xxx_messageInfo_MsgLegacyGovUpdateParamsResponse proto.InternalMessageInfo -// MsgClient is the client API for Msg service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MsgClient interface { - // AggregateExchangeRatePrevote defines a method for submitting an aggregate - // exchange rate prevote. - AggregateExchangeRatePrevote(ctx context.Context, in *MsgAggregateExchangeRatePrevote, opts ...grpc.CallOption) (*MsgAggregateExchangeRatePrevoteResponse, error) - // AggregateExchangeRateVote defines a method for submitting an aggregate - // exchange rate vote. - AggregateExchangeRateVote(ctx context.Context, in *MsgAggregateExchangeRateVote, opts ...grpc.CallOption) (*MsgAggregateExchangeRateVoteResponse, error) - // DelegateFeedConsent defines a method for setting the feeder delegation. - DelegateFeedConsent(ctx context.Context, in *MsgDelegateFeedConsent, opts ...grpc.CallOption) (*MsgDelegateFeedConsentResponse, error) - // LegacyGovUpdateParams defines the legacy message that updates the oracle parameters. - LegacyGovUpdateParams(ctx context.Context, in *MsgLegacyGovUpdateParams, opts ...grpc.CallOption) (*MsgLegacyGovUpdateParamsResponse, error) - // GovUpdateParams updates the oracle parameters. - GovUpdateParams(ctx context.Context, in *MsgGovUpdateParams, opts ...grpc.CallOption) (*MsgGovUpdateParamsResponse, error) - // GovAddDenoms updates the oracle parameters to include a new tokens. - GovAddDenoms(ctx context.Context, in *MsgGovAddDenoms, opts ...grpc.CallOption) (*MsgGovAddDenomsResponse, error) - // GovRemoveCurrencyPairProviders updates the oracle parameters to remove a list of - // currency pair providers. - GovRemoveCurrencyPairProviders(ctx context.Context, in *MsgGovRemoveCurrencyPairProviders, opts ...grpc.CallOption) (*MsgGovRemoveCurrencyPairProvidersResponse, error) - // GovRemoveCurrencyDeviationThresholds updates the oracle parameters to remove a list - // of currency deviation thresholds. - GovRemoveCurrencyDeviationThresholds(ctx context.Context, in *MsgGovRemoveCurrencyDeviationThresholds, opts ...grpc.CallOption) (*MsgGovRemoveCurrencyDeviationThresholdsResponse, error) - // GovCancelUpdateParamPlan cancels a plan to update the oracle parameters. - GovCancelUpdateParamPlan(ctx context.Context, in *MsgGovCancelUpdateParamPlan, opts ...grpc.CallOption) (*MsgGovCancelUpdateParamPlanResponse, error) +// MsgGovUpdateParams defines the Msg/GovUpdateParams request type. +type MsgGovUpdateParams struct { + // authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // title of the proposal + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + // description of the proposal + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // plan is the param update plan + Plan ParamUpdatePlan `protobuf:"bytes,4,opt,name=plan,proto3" json:"plan"` } -type msgClient struct { - cc grpc1.ClientConn +func (m *MsgGovUpdateParams) Reset() { *m = MsgGovUpdateParams{} } +func (*MsgGovUpdateParams) ProtoMessage() {} +func (*MsgGovUpdateParams) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{25} } - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} +func (m *MsgGovUpdateParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (c *msgClient) AggregateExchangeRatePrevote(ctx context.Context, in *MsgAggregateExchangeRatePrevote, opts ...grpc.CallOption) (*MsgAggregateExchangeRatePrevoteResponse, error) { - out := new(MsgAggregateExchangeRatePrevoteResponse) - err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/AggregateExchangeRatePrevote", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgGovUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGovUpdateParams.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil } - -func (c *msgClient) AggregateExchangeRateVote(ctx context.Context, in *MsgAggregateExchangeRateVote, opts ...grpc.CallOption) (*MsgAggregateExchangeRateVoteResponse, error) { - out := new(MsgAggregateExchangeRateVoteResponse) - err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/AggregateExchangeRateVote", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *MsgGovUpdateParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGovUpdateParams.Merge(m, src) } - -func (c *msgClient) DelegateFeedConsent(ctx context.Context, in *MsgDelegateFeedConsent, opts ...grpc.CallOption) (*MsgDelegateFeedConsentResponse, error) { - out := new(MsgDelegateFeedConsentResponse) - err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/DelegateFeedConsent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *MsgGovUpdateParams) XXX_Size() int { + return m.Size() } - -func (c *msgClient) LegacyGovUpdateParams(ctx context.Context, in *MsgLegacyGovUpdateParams, opts ...grpc.CallOption) (*MsgLegacyGovUpdateParamsResponse, error) { - out := new(MsgLegacyGovUpdateParamsResponse) - err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/LegacyGovUpdateParams", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *MsgGovUpdateParams) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGovUpdateParams.DiscardUnknown(m) } -func (c *msgClient) GovUpdateParams(ctx context.Context, in *MsgGovUpdateParams, opts ...grpc.CallOption) (*MsgGovUpdateParamsResponse, error) { - out := new(MsgGovUpdateParamsResponse) - err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/GovUpdateParams", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +var xxx_messageInfo_MsgGovUpdateParams proto.InternalMessageInfo + +// MsgGovUpdateParamsResponse defines the Msg/GovUpdateParams response type. +type MsgGovUpdateParamsResponse struct { } -func (c *msgClient) GovAddDenoms(ctx context.Context, in *MsgGovAddDenoms, opts ...grpc.CallOption) (*MsgGovAddDenomsResponse, error) { - out := new(MsgGovAddDenomsResponse) - err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/GovAddDenoms", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *MsgGovUpdateParamsResponse) Reset() { *m = MsgGovUpdateParamsResponse{} } +func (m *MsgGovUpdateParamsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgGovUpdateParamsResponse) ProtoMessage() {} +func (*MsgGovUpdateParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{26} } - -func (c *msgClient) GovRemoveCurrencyPairProviders(ctx context.Context, in *MsgGovRemoveCurrencyPairProviders, opts ...grpc.CallOption) (*MsgGovRemoveCurrencyPairProvidersResponse, error) { - out := new(MsgGovRemoveCurrencyPairProvidersResponse) - err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/GovRemoveCurrencyPairProviders", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *MsgGovUpdateParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (c *msgClient) GovRemoveCurrencyDeviationThresholds(ctx context.Context, in *MsgGovRemoveCurrencyDeviationThresholds, opts ...grpc.CallOption) (*MsgGovRemoveCurrencyDeviationThresholdsResponse, error) { - out := new(MsgGovRemoveCurrencyDeviationThresholdsResponse) - err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/GovRemoveCurrencyDeviationThresholds", in, out, opts...) - if err != nil { - return nil, err +func (m *MsgGovUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGovUpdateParamsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil } - -func (c *msgClient) GovCancelUpdateParamPlan(ctx context.Context, in *MsgGovCancelUpdateParamPlan, opts ...grpc.CallOption) (*MsgGovCancelUpdateParamPlanResponse, error) { - out := new(MsgGovCancelUpdateParamPlanResponse) - err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/GovCancelUpdateParamPlan", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *MsgGovUpdateParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGovUpdateParamsResponse.Merge(m, src) } - -// MsgServer is the server API for Msg service. -type MsgServer interface { - // AggregateExchangeRatePrevote defines a method for submitting an aggregate - // exchange rate prevote. - AggregateExchangeRatePrevote(context.Context, *MsgAggregateExchangeRatePrevote) (*MsgAggregateExchangeRatePrevoteResponse, error) - // AggregateExchangeRateVote defines a method for submitting an aggregate - // exchange rate vote. - AggregateExchangeRateVote(context.Context, *MsgAggregateExchangeRateVote) (*MsgAggregateExchangeRateVoteResponse, error) - // DelegateFeedConsent defines a method for setting the feeder delegation. - DelegateFeedConsent(context.Context, *MsgDelegateFeedConsent) (*MsgDelegateFeedConsentResponse, error) - // LegacyGovUpdateParams defines the legacy message that updates the oracle parameters. - LegacyGovUpdateParams(context.Context, *MsgLegacyGovUpdateParams) (*MsgLegacyGovUpdateParamsResponse, error) - // GovUpdateParams updates the oracle parameters. - GovUpdateParams(context.Context, *MsgGovUpdateParams) (*MsgGovUpdateParamsResponse, error) - // GovAddDenoms updates the oracle parameters to include a new tokens. - GovAddDenoms(context.Context, *MsgGovAddDenoms) (*MsgGovAddDenomsResponse, error) - // GovRemoveCurrencyPairProviders updates the oracle parameters to remove a list of - // currency pair providers. - GovRemoveCurrencyPairProviders(context.Context, *MsgGovRemoveCurrencyPairProviders) (*MsgGovRemoveCurrencyPairProvidersResponse, error) - // GovRemoveCurrencyDeviationThresholds updates the oracle parameters to remove a list - // of currency deviation thresholds. - GovRemoveCurrencyDeviationThresholds(context.Context, *MsgGovRemoveCurrencyDeviationThresholds) (*MsgGovRemoveCurrencyDeviationThresholdsResponse, error) - // GovCancelUpdateParamPlan cancels a plan to update the oracle parameters. - GovCancelUpdateParamPlan(context.Context, *MsgGovCancelUpdateParamPlan) (*MsgGovCancelUpdateParamPlanResponse, error) +func (m *MsgGovUpdateParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgGovUpdateParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGovUpdateParamsResponse.DiscardUnknown(m) } -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { +var xxx_messageInfo_MsgGovUpdateParamsResponse proto.InternalMessageInfo + +// MsgGovAddDenoms defines the Msg/GovAddDenoms request type. +type MsgGovAddDenoms struct { + // authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // title of the proposal + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + // description of the proposal + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // height at which the param update must be performed + Height int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` + // denom_list is the list of denoms to add to the oracle registry + DenomList DenomList `protobuf:"bytes,5,rep,name=denom_list,json=denomList,proto3,castrepeated=DenomList" json:"denom_list"` + // whether or not the assets should be mandatory + Mandatory bool `protobuf:"varint,6,opt,name=mandatory,proto3" json:"mandatory,omitempty"` + // reward_band determines what the reward_band will be for every + // asset in the proposal. If not provided, it will default. + RewardBand *cosmossdk_io_math.LegacyDec `protobuf:"bytes,7,opt,name=reward_band,json=rewardBand,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"reward_band,omitempty" yaml:"vote_threshold"` + // currency_pair_providers defines the currency provider pairs for + // each denom being added. + CurrencyPairProviders CurrencyPairProvidersList `protobuf:"bytes,8,rep,name=currency_pair_providers,json=currencyPairProviders,proto3,castrepeated=CurrencyPairProvidersList" json:"currency_pair_providers" yaml:"currency_pair_providers"` + // currency_deviation_thresholds defines the deviation thresholds + // for each denom being added. + CurrencyDeviationThresholds CurrencyDeviationThresholdList `protobuf:"bytes,9,rep,name=currency_deviation_thresholds,json=currencyDeviationThresholds,proto3,castrepeated=CurrencyDeviationThresholdList" json:"currency_deviation_thresholds" yaml:"currency_deviation_thresholds"` } -func (*UnimplementedMsgServer) AggregateExchangeRatePrevote(ctx context.Context, req *MsgAggregateExchangeRatePrevote) (*MsgAggregateExchangeRatePrevoteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AggregateExchangeRatePrevote not implemented") +func (m *MsgGovAddDenoms) Reset() { *m = MsgGovAddDenoms{} } +func (*MsgGovAddDenoms) ProtoMessage() {} +func (*MsgGovAddDenoms) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{27} } -func (*UnimplementedMsgServer) AggregateExchangeRateVote(ctx context.Context, req *MsgAggregateExchangeRateVote) (*MsgAggregateExchangeRateVoteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AggregateExchangeRateVote not implemented") +func (m *MsgGovAddDenoms) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } -func (*UnimplementedMsgServer) DelegateFeedConsent(ctx context.Context, req *MsgDelegateFeedConsent) (*MsgDelegateFeedConsentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DelegateFeedConsent not implemented") +func (m *MsgGovAddDenoms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGovAddDenoms.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } -func (*UnimplementedMsgServer) LegacyGovUpdateParams(ctx context.Context, req *MsgLegacyGovUpdateParams) (*MsgLegacyGovUpdateParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LegacyGovUpdateParams not implemented") +func (m *MsgGovAddDenoms) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGovAddDenoms.Merge(m, src) } -func (*UnimplementedMsgServer) GovUpdateParams(ctx context.Context, req *MsgGovUpdateParams) (*MsgGovUpdateParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GovUpdateParams not implemented") +func (m *MsgGovAddDenoms) XXX_Size() int { + return m.Size() } -func (*UnimplementedMsgServer) GovAddDenoms(ctx context.Context, req *MsgGovAddDenoms) (*MsgGovAddDenomsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GovAddDenoms not implemented") +func (m *MsgGovAddDenoms) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGovAddDenoms.DiscardUnknown(m) } -func (*UnimplementedMsgServer) GovRemoveCurrencyPairProviders(ctx context.Context, req *MsgGovRemoveCurrencyPairProviders) (*MsgGovRemoveCurrencyPairProvidersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GovRemoveCurrencyPairProviders not implemented") + +var xxx_messageInfo_MsgGovAddDenoms proto.InternalMessageInfo + +// MsgGovAddDenomResponse defines the Msg/GovAddDenomResponse response type. +type MsgGovAddDenomsResponse struct { } -func (*UnimplementedMsgServer) GovRemoveCurrencyDeviationThresholds(ctx context.Context, req *MsgGovRemoveCurrencyDeviationThresholds) (*MsgGovRemoveCurrencyDeviationThresholdsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GovRemoveCurrencyDeviationThresholds not implemented") + +func (m *MsgGovAddDenomsResponse) Reset() { *m = MsgGovAddDenomsResponse{} } +func (m *MsgGovAddDenomsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgGovAddDenomsResponse) ProtoMessage() {} +func (*MsgGovAddDenomsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{28} } -func (*UnimplementedMsgServer) GovCancelUpdateParamPlan(ctx context.Context, req *MsgGovCancelUpdateParamPlan) (*MsgGovCancelUpdateParamPlanResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GovCancelUpdateParamPlan not implemented") +func (m *MsgGovAddDenomsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgGovAddDenomsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGovAddDenomsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgGovAddDenomsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGovAddDenomsResponse.Merge(m, src) +} +func (m *MsgGovAddDenomsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgGovAddDenomsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGovAddDenomsResponse.DiscardUnknown(m) } -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) +var xxx_messageInfo_MsgGovAddDenomsResponse proto.InternalMessageInfo + +// MsgGovRemoveCurrencyPairProviders defines the Msg/GovRemoveCurrencyPairProviders request type. +type MsgGovRemoveCurrencyPairProviders struct { + // authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // title of the proposal + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + // description of the proposal + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // height at which the param update must be performed + Height int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` + // currency_pair_providers to remove from the current CurrencyPairProvidersList + CurrencyPairProviders CurrencyPairProvidersList `protobuf:"bytes,5,rep,name=currency_pair_providers,json=currencyPairProviders,proto3,castrepeated=CurrencyPairProvidersList" json:"currency_pair_providers" yaml:"currency_pair_providers"` } -func _Msg_AggregateExchangeRatePrevote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAggregateExchangeRatePrevote) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).AggregateExchangeRatePrevote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ojo.oracle.v1.Msg/AggregateExchangeRatePrevote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).AggregateExchangeRatePrevote(ctx, req.(*MsgAggregateExchangeRatePrevote)) +func (m *MsgGovRemoveCurrencyPairProviders) Reset() { *m = MsgGovRemoveCurrencyPairProviders{} } +func (*MsgGovRemoveCurrencyPairProviders) ProtoMessage() {} +func (*MsgGovRemoveCurrencyPairProviders) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{29} +} +func (m *MsgGovRemoveCurrencyPairProviders) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgGovRemoveCurrencyPairProviders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGovRemoveCurrencyPairProviders.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *MsgGovRemoveCurrencyPairProviders) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGovRemoveCurrencyPairProviders.Merge(m, src) +} +func (m *MsgGovRemoveCurrencyPairProviders) XXX_Size() int { + return m.Size() +} +func (m *MsgGovRemoveCurrencyPairProviders) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGovRemoveCurrencyPairProviders.DiscardUnknown(m) } -func _Msg_AggregateExchangeRateVote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAggregateExchangeRateVote) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).AggregateExchangeRateVote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ojo.oracle.v1.Msg/AggregateExchangeRateVote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).AggregateExchangeRateVote(ctx, req.(*MsgAggregateExchangeRateVote)) - } - return interceptor(ctx, in, info, handler) +var xxx_messageInfo_MsgGovRemoveCurrencyPairProviders proto.InternalMessageInfo + +// MsgGovRemoveCurrencyPairProvidersResponse defines the Msg/GovRemoveCurrencyPairProvidersResponse response type. +type MsgGovRemoveCurrencyPairProvidersResponse struct { } -func _Msg_DelegateFeedConsent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgDelegateFeedConsent) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).DelegateFeedConsent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ojo.oracle.v1.Msg/DelegateFeedConsent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).DelegateFeedConsent(ctx, req.(*MsgDelegateFeedConsent)) +func (m *MsgGovRemoveCurrencyPairProvidersResponse) Reset() { + *m = MsgGovRemoveCurrencyPairProvidersResponse{} +} +func (m *MsgGovRemoveCurrencyPairProvidersResponse) String() string { + return proto.CompactTextString(m) +} +func (*MsgGovRemoveCurrencyPairProvidersResponse) ProtoMessage() {} +func (*MsgGovRemoveCurrencyPairProvidersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{30} +} +func (m *MsgGovRemoveCurrencyPairProvidersResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgGovRemoveCurrencyPairProvidersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGovRemoveCurrencyPairProvidersResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *MsgGovRemoveCurrencyPairProvidersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGovRemoveCurrencyPairProvidersResponse.Merge(m, src) +} +func (m *MsgGovRemoveCurrencyPairProvidersResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgGovRemoveCurrencyPairProvidersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGovRemoveCurrencyPairProvidersResponse.DiscardUnknown(m) } -func _Msg_LegacyGovUpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgLegacyGovUpdateParams) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).LegacyGovUpdateParams(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ojo.oracle.v1.Msg/LegacyGovUpdateParams", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).LegacyGovUpdateParams(ctx, req.(*MsgLegacyGovUpdateParams)) - } - return interceptor(ctx, in, info, handler) +var xxx_messageInfo_MsgGovRemoveCurrencyPairProvidersResponse proto.InternalMessageInfo + +// MsgGovRemoveCurrencyDeviationThresholds defines the Msg/GovRemoveCurrencyDeviationThresholds request type. +type MsgGovRemoveCurrencyDeviationThresholds struct { + // authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // title of the proposal + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + // description of the proposal + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // height at which the param update must be performed + Height int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` + // currencies to remove from the current CurrencyDeviationThresholdsList + Currencies []string `protobuf:"bytes,5,rep,name=currencies,proto3" json:"currencies,omitempty"` } -func _Msg_GovUpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgGovUpdateParams) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).GovUpdateParams(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ojo.oracle.v1.Msg/GovUpdateParams", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).GovUpdateParams(ctx, req.(*MsgGovUpdateParams)) +func (m *MsgGovRemoveCurrencyDeviationThresholds) Reset() { + *m = MsgGovRemoveCurrencyDeviationThresholds{} +} +func (*MsgGovRemoveCurrencyDeviationThresholds) ProtoMessage() {} +func (*MsgGovRemoveCurrencyDeviationThresholds) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{31} +} +func (m *MsgGovRemoveCurrencyDeviationThresholds) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgGovRemoveCurrencyDeviationThresholds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGovRemoveCurrencyDeviationThresholds.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *MsgGovRemoveCurrencyDeviationThresholds) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGovRemoveCurrencyDeviationThresholds.Merge(m, src) +} +func (m *MsgGovRemoveCurrencyDeviationThresholds) XXX_Size() int { + return m.Size() +} +func (m *MsgGovRemoveCurrencyDeviationThresholds) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGovRemoveCurrencyDeviationThresholds.DiscardUnknown(m) } -func _Msg_GovAddDenoms_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgGovAddDenoms) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).GovAddDenoms(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ojo.oracle.v1.Msg/GovAddDenoms", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).GovAddDenoms(ctx, req.(*MsgGovAddDenoms)) - } - return interceptor(ctx, in, info, handler) +var xxx_messageInfo_MsgGovRemoveCurrencyDeviationThresholds proto.InternalMessageInfo + +// MsgGovRemoveCurrencyDeviationThresholdsResponse defines the Msg/GovRemoveCurrencyDeviationThresholdsResponse response type. +type MsgGovRemoveCurrencyDeviationThresholdsResponse struct { } -func _Msg_GovRemoveCurrencyPairProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgGovRemoveCurrencyPairProviders) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).GovRemoveCurrencyPairProviders(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ojo.oracle.v1.Msg/GovRemoveCurrencyPairProviders", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).GovRemoveCurrencyPairProviders(ctx, req.(*MsgGovRemoveCurrencyPairProviders)) +func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) Reset() { + *m = MsgGovRemoveCurrencyDeviationThresholdsResponse{} +} +func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) String() string { + return proto.CompactTextString(m) +} +func (*MsgGovRemoveCurrencyDeviationThresholdsResponse) ProtoMessage() {} +func (*MsgGovRemoveCurrencyDeviationThresholdsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{32} +} +func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGovRemoveCurrencyDeviationThresholdsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGovRemoveCurrencyDeviationThresholdsResponse.Merge(m, src) +} +func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGovRemoveCurrencyDeviationThresholdsResponse.DiscardUnknown(m) } -func _Msg_GovRemoveCurrencyDeviationThresholds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgGovRemoveCurrencyDeviationThresholds) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).GovRemoveCurrencyDeviationThresholds(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ojo.oracle.v1.Msg/GovRemoveCurrencyDeviationThresholds", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).GovRemoveCurrencyDeviationThresholds(ctx, req.(*MsgGovRemoveCurrencyDeviationThresholds)) - } - return interceptor(ctx, in, info, handler) +var xxx_messageInfo_MsgGovRemoveCurrencyDeviationThresholdsResponse proto.InternalMessageInfo + +// MsgGovCancelUpdateParamPlan defines the Msg/GovCancelUpdateParamPlan request type. +type MsgGovCancelUpdateParamPlan struct { + // authority is the address of the governance account. + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // title of the proposal + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + // description of the proposal + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // height of param update plan to cancel + Height int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` } -func _Msg_GovCancelUpdateParamPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgGovCancelUpdateParamPlan) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).GovCancelUpdateParamPlan(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/ojo.oracle.v1.Msg/GovCancelUpdateParamPlan", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).GovCancelUpdateParamPlan(ctx, req.(*MsgGovCancelUpdateParamPlan)) +func (m *MsgGovCancelUpdateParamPlan) Reset() { *m = MsgGovCancelUpdateParamPlan{} } +func (*MsgGovCancelUpdateParamPlan) ProtoMessage() {} +func (*MsgGovCancelUpdateParamPlan) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{33} +} +func (m *MsgGovCancelUpdateParamPlan) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgGovCancelUpdateParamPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGovCancelUpdateParamPlan.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *MsgGovCancelUpdateParamPlan) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGovCancelUpdateParamPlan.Merge(m, src) +} +func (m *MsgGovCancelUpdateParamPlan) XXX_Size() int { + return m.Size() +} +func (m *MsgGovCancelUpdateParamPlan) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGovCancelUpdateParamPlan.DiscardUnknown(m) } -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "ojo.oracle.v1.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "AggregateExchangeRatePrevote", - Handler: _Msg_AggregateExchangeRatePrevote_Handler, - }, - { - MethodName: "AggregateExchangeRateVote", - Handler: _Msg_AggregateExchangeRateVote_Handler, - }, - { - MethodName: "DelegateFeedConsent", - Handler: _Msg_DelegateFeedConsent_Handler, - }, - { - MethodName: "LegacyGovUpdateParams", - Handler: _Msg_LegacyGovUpdateParams_Handler, - }, - { - MethodName: "GovUpdateParams", - Handler: _Msg_GovUpdateParams_Handler, - }, - { - MethodName: "GovAddDenoms", - Handler: _Msg_GovAddDenoms_Handler, - }, - { - MethodName: "GovRemoveCurrencyPairProviders", - Handler: _Msg_GovRemoveCurrencyPairProviders_Handler, - }, - { - MethodName: "GovRemoveCurrencyDeviationThresholds", - Handler: _Msg_GovRemoveCurrencyDeviationThresholds_Handler, - }, - { - MethodName: "GovCancelUpdateParamPlan", - Handler: _Msg_GovCancelUpdateParamPlan_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "ojo/oracle/v1/tx.proto", -} +var xxx_messageInfo_MsgGovCancelUpdateParamPlan proto.InternalMessageInfo -func (m *MsgAggregateExchangeRatePrevote) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// MsgGovCancelUpdateParamPlanResponse defines the Msg/GovCancelUpdateParamPlanResponse response type. +type MsgGovCancelUpdateParamPlanResponse struct { } -func (m *MsgAggregateExchangeRatePrevote) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *MsgGovCancelUpdateParamPlanResponse) Reset() { *m = MsgGovCancelUpdateParamPlanResponse{} } +func (m *MsgGovCancelUpdateParamPlanResponse) String() string { return proto.CompactTextString(m) } +func (*MsgGovCancelUpdateParamPlanResponse) ProtoMessage() {} +func (*MsgGovCancelUpdateParamPlanResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_58d45810177a43e8, []int{34} } - -func (m *MsgAggregateExchangeRatePrevote) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Validator) > 0 { - i -= len(m.Validator) - copy(dAtA[i:], m.Validator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Validator))) - i-- - dAtA[i] = 0x1a - } - if len(m.Feeder) > 0 { - i -= len(m.Feeder) - copy(dAtA[i:], m.Feeder) - i = encodeVarintTx(dAtA, i, uint64(len(m.Feeder))) - i-- - dAtA[i] = 0x12 - } - if len(m.Hash) > 0 { - i -= len(m.Hash) - copy(dAtA[i:], m.Hash) - i = encodeVarintTx(dAtA, i, uint64(len(m.Hash))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (m *MsgGovCancelUpdateParamPlanResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (m *MsgAggregateExchangeRatePrevoteResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *MsgGovCancelUpdateParamPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgGovCancelUpdateParamPlanResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return dAtA[:n], nil } - -func (m *MsgAggregateExchangeRatePrevoteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *MsgGovCancelUpdateParamPlanResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgGovCancelUpdateParamPlanResponse.Merge(m, src) } - -func (m *MsgAggregateExchangeRatePrevoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +func (m *MsgGovCancelUpdateParamPlanResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgGovCancelUpdateParamPlanResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgGovCancelUpdateParamPlanResponse.DiscardUnknown(m) } -func (m *MsgAggregateExchangeRateVote) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +var xxx_messageInfo_MsgGovCancelUpdateParamPlanResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgAggregateExchangeRatePrevote)(nil), "ojo.oracle.v1.MsgAggregateExchangeRatePrevote") + proto.RegisterType((*MsgAggregateExchangeRatePrevoteResponse)(nil), "ojo.oracle.v1.MsgAggregateExchangeRatePrevoteResponse") + proto.RegisterType((*MsgAggregateExchangeRateVote)(nil), "ojo.oracle.v1.MsgAggregateExchangeRateVote") + proto.RegisterType((*MsgAggregateExchangeRateVoteResponse)(nil), "ojo.oracle.v1.MsgAggregateExchangeRateVoteResponse") + proto.RegisterType((*MsgDelegateFeedConsent)(nil), "ojo.oracle.v1.MsgDelegateFeedConsent") + proto.RegisterType((*MsgDelegateFeedConsentResponse)(nil), "ojo.oracle.v1.MsgDelegateFeedConsentResponse") + proto.RegisterType((*FeedPrice)(nil), "ojo.oracle.v1.FeedPrice") + proto.RegisterType((*MsgFeedPrice)(nil), "ojo.oracle.v1.MsgFeedPrice") + proto.RegisterType((*MsgFeedPriceResponse)(nil), "ojo.oracle.v1.MsgFeedPriceResponse") + proto.RegisterType((*MsgSetPriceFeeder)(nil), "ojo.oracle.v1.MsgSetPriceFeeder") + proto.RegisterType((*MsgSetPriceFeederResponse)(nil), "ojo.oracle.v1.MsgSetPriceFeederResponse") + proto.RegisterType((*MsgDeletePriceFeeder)(nil), "ojo.oracle.v1.MsgDeletePriceFeeder") + proto.RegisterType((*MsgDeletePriceFeederResponse)(nil), "ojo.oracle.v1.MsgDeletePriceFeederResponse") + proto.RegisterType((*MsgFeedMultiplePrices)(nil), "ojo.oracle.v1.MsgFeedMultiplePrices") + proto.RegisterType((*MsgFeedMultiplePricesResponse)(nil), "ojo.oracle.v1.MsgFeedMultiplePricesResponse") + proto.RegisterType((*MsgRemoveAssetInfo)(nil), "ojo.oracle.v1.MsgRemoveAssetInfo") + proto.RegisterType((*MsgRemoveAssetInfoResponse)(nil), "ojo.oracle.v1.MsgRemoveAssetInfoResponse") + proto.RegisterType((*MsgAddPriceFeeders)(nil), "ojo.oracle.v1.MsgAddPriceFeeders") + proto.RegisterType((*MsgAddPriceFeedersResponse)(nil), "ojo.oracle.v1.MsgAddPriceFeedersResponse") + proto.RegisterType((*MsgRemovePriceFeeders)(nil), "ojo.oracle.v1.MsgRemovePriceFeeders") + proto.RegisterType((*MsgRemovePriceFeedersResponse)(nil), "ojo.oracle.v1.MsgRemovePriceFeedersResponse") + proto.RegisterType((*MsgCreateAssetInfo)(nil), "ojo.oracle.v1.MsgCreateAssetInfo") + proto.RegisterType((*MsgCreateAssetInfoResponse)(nil), "ojo.oracle.v1.MsgCreateAssetInfoResponse") + proto.RegisterType((*MsgLegacyGovUpdateParams)(nil), "ojo.oracle.v1.MsgLegacyGovUpdateParams") + proto.RegisterType((*MsgLegacyGovUpdateParamsResponse)(nil), "ojo.oracle.v1.MsgLegacyGovUpdateParamsResponse") + proto.RegisterType((*MsgGovUpdateParams)(nil), "ojo.oracle.v1.MsgGovUpdateParams") + proto.RegisterType((*MsgGovUpdateParamsResponse)(nil), "ojo.oracle.v1.MsgGovUpdateParamsResponse") + proto.RegisterType((*MsgGovAddDenoms)(nil), "ojo.oracle.v1.MsgGovAddDenoms") + proto.RegisterType((*MsgGovAddDenomsResponse)(nil), "ojo.oracle.v1.MsgGovAddDenomsResponse") + proto.RegisterType((*MsgGovRemoveCurrencyPairProviders)(nil), "ojo.oracle.v1.MsgGovRemoveCurrencyPairProviders") + proto.RegisterType((*MsgGovRemoveCurrencyPairProvidersResponse)(nil), "ojo.oracle.v1.MsgGovRemoveCurrencyPairProvidersResponse") + proto.RegisterType((*MsgGovRemoveCurrencyDeviationThresholds)(nil), "ojo.oracle.v1.MsgGovRemoveCurrencyDeviationThresholds") + proto.RegisterType((*MsgGovRemoveCurrencyDeviationThresholdsResponse)(nil), "ojo.oracle.v1.MsgGovRemoveCurrencyDeviationThresholdsResponse") + proto.RegisterType((*MsgGovCancelUpdateParamPlan)(nil), "ojo.oracle.v1.MsgGovCancelUpdateParamPlan") + proto.RegisterType((*MsgGovCancelUpdateParamPlanResponse)(nil), "ojo.oracle.v1.MsgGovCancelUpdateParamPlanResponse") } -func (m *MsgAggregateExchangeRateVote) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func init() { proto.RegisterFile("ojo/oracle/v1/tx.proto", fileDescriptor_58d45810177a43e8) } + +var fileDescriptor_58d45810177a43e8 = []byte{ + // 1684 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0xcb, 0x6f, 0x13, 0xd7, + 0x1a, 0xcf, 0x90, 0xa7, 0x3f, 0x43, 0x10, 0x43, 0x12, 0x9c, 0x49, 0xb0, 0x83, 0x13, 0x1e, 0x01, + 0x62, 0x93, 0x70, 0x2f, 0x42, 0xd6, 0xe5, 0x72, 0xf3, 0xb8, 0xa0, 0x4a, 0xb8, 0x8a, 0x86, 0xc7, + 0xa2, 0x6a, 0x65, 0x0d, 0x33, 0x87, 0xf1, 0x90, 0xf1, 0x1c, 0x77, 0xce, 0xc4, 0xe0, 0x4a, 0xdd, + 0xb0, 0xa8, 0xba, 0x68, 0xa5, 0xaa, 0xab, 0xaa, 0x8b, 0x8a, 0x6e, 0x91, 0x2a, 0x75, 0xc1, 0xb6, + 0x8b, 0xee, 0xb2, 0xaa, 0x10, 0xab, 0x0a, 0xa9, 0xa1, 0x0d, 0x8b, 0x56, 0xaa, 0xba, 0x28, 0x7f, + 0x41, 0x75, 0xce, 0x99, 0x39, 0x1e, 0x8f, 0xc7, 0x0f, 0x42, 0x45, 0xb3, 0xf3, 0x39, 0xdf, 0xef, + 0xfb, 0xbe, 0xdf, 0xf7, 0x38, 0xaf, 0x31, 0x4c, 0xe0, 0xbb, 0x38, 0x8f, 0x5d, 0x4d, 0xb7, 0x51, + 0xbe, 0xb6, 0x98, 0xf7, 0xee, 0xe7, 0xaa, 0x2e, 0xf6, 0xb0, 0x7c, 0x00, 0xdf, 0xc5, 0x39, 0x3e, + 0x9f, 0xab, 0x2d, 0x2a, 0x47, 0x74, 0x4c, 0x2a, 0x98, 0xe4, 0x2b, 0xc4, 0xa4, 0xb0, 0x0a, 0x31, + 0x39, 0x4e, 0x99, 0xe4, 0x82, 0x12, 0x1b, 0xe5, 0xf9, 0xc0, 0x17, 0x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xfe, 0x96, + 0x73, 0x07, 0xcb, 0x17, 0x20, 0xa1, 0x6d, 0x7a, 0x65, 0xec, 0x5a, 0x5e, 0xbd, 0x2b, 0xf7, 0x06, + 0x94, 0x2e, 0x1a, 0x03, 0x39, 0xb8, 0xc2, 0x97, 0x87, 0xca, 0x07, 0x85, 0x51, 0x4a, 0xa9, 0x81, + 0xca, 0x4e, 0x83, 0xd2, 0xea, 0x53, 0x30, 0xaa, 0x31, 0x46, 0xcb, 0x86, 0x11, 0x4a, 0x36, 0xd9, + 0x35, 0xa3, 0x14, 0x0c, 0xf3, 0x3a, 0xf2, 0x5c, 0x26, 0xd4, 0x60, 0xd8, 0x86, 0x55, 0xc4, 0xaf, + 0x60, 0x55, 0x67, 0x45, 0xe6, 0x9c, 0xdf, 0x30, 0x31, 0x5e, 0xc3, 0x56, 0xd7, 0x82, 0xdb, 0x8e, + 0xc4, 0x52, 0xb6, 0x4a, 0x6b, 0x1e, 0x2a, 0xe2, 0x6e, 0xda, 0x2f, 0xb6, 0x80, 0x94, 0xab, 0x61, + 0x91, 0xaa, 0xad, 0xd5, 0xfd, 0xdd, 0x2a, 0x18, 0xca, 0x19, 0x48, 0xde, 0xd6, 0x1c, 0xa3, 0xe4, + 0x59, 0xfa, 0x06, 0xf2, 0x4f, 0x21, 0x15, 0xe8, 0xd4, 0x0d, 0x36, 0x43, 0x01, 0xf4, 0xa2, 0x11, + 0x00, 0x06, 0x39, 0x80, 0x4e, 0xf9, 0x00, 0x6a, 0x1b, 0xe9, 0x56, 0x45, 0xb3, 0x53, 0x43, 0x33, + 0xd2, 0xa9, 0x01, 0x35, 0x18, 0x46, 0x3a, 0x99, 0x97, 0x27, 0x12, 0xa3, 0x48, 0xc1, 0x9f, 0x12, + 0xa4, 0x8a, 0xc4, 0xe4, 0x9b, 0xee, 0x55, 0x5c, 0xbb, 0x59, 0x35, 0xe8, 0x59, 0xaf, 0xb9, 0x5a, + 0x85, 0xbc, 0x4e, 0x37, 0x7b, 0x96, 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0xdd, + 0xf7, 0xce, 0xbc, 0x69, 0x79, 0xe5, 0xcd, 0xdb, 0x39, 0x1d, 0x57, 0xf2, 0xf8, 0x2e, 0x5e, 0x70, + 0x90, 0x77, 0x0f, 0xbb, 0x1b, 0xf4, 0x77, 0xfe, 0x7e, 0xf0, 0x57, 0x89, 0x57, 0xaf, 0x22, 0x72, + 0x7b, 0x88, 0xfd, 0x53, 0x72, 0xfe, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd5, 0xc8, 0xe9, 0x77, + 0xd2, 0x19, 0x00, 0x00, } -func (m *MsgAggregateExchangeRateVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Validator) > 0 { - i -= len(m.Validator) - copy(dAtA[i:], m.Validator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Validator))) - i-- - dAtA[i] = 0x22 +func (this *MsgLegacyGovUpdateParams) Equal(that interface{}) bool { + if that == nil { + return this == nil } - if len(m.Feeder) > 0 { - i -= len(m.Feeder) - copy(dAtA[i:], m.Feeder) - i = encodeVarintTx(dAtA, i, uint64(len(m.Feeder))) - i-- - dAtA[i] = 0x1a + + that1, ok := that.(*MsgLegacyGovUpdateParams) + if !ok { + that2, ok := that.(MsgLegacyGovUpdateParams) + if ok { + that1 = &that2 + } else { + return false + } } - if len(m.ExchangeRates) > 0 { - i -= len(m.ExchangeRates) - copy(dAtA[i:], m.ExchangeRates) - i = encodeVarintTx(dAtA, i, uint64(len(m.ExchangeRates))) - i-- - dAtA[i] = 0x12 + if that1 == nil { + return this == nil + } else if this == nil { + return false } - if len(m.Salt) > 0 { - i -= len(m.Salt) - copy(dAtA[i:], m.Salt) - i = encodeVarintTx(dAtA, i, uint64(len(m.Salt))) - i-- - dAtA[i] = 0xa + if this.Authority != that1.Authority { + return false } - return len(dAtA) - i, nil -} - -func (m *MsgAggregateExchangeRateVoteResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if this.Title != that1.Title { + return false } - return dAtA[:n], nil -} - -func (m *MsgAggregateExchangeRateVoteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgAggregateExchangeRateVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgDelegateFeedConsent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if this.Description != that1.Description { + return false } - return dAtA[:n], nil -} - -func (m *MsgDelegateFeedConsent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + if len(this.Keys) != len(that1.Keys) { + return false + } + for i := range this.Keys { + if this.Keys[i] != that1.Keys[i] { + return false + } + } + if !this.Changes.Equal(&that1.Changes) { + return false + } + return true } +func (this *MsgGovUpdateParams) Equal(that interface{}) bool { + if that == nil { + return this == nil + } -func (m *MsgDelegateFeedConsent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Delegate) > 0 { - i -= len(m.Delegate) - copy(dAtA[i:], m.Delegate) - i = encodeVarintTx(dAtA, i, uint64(len(m.Delegate))) - i-- - dAtA[i] = 0x12 + that1, ok := that.(*MsgGovUpdateParams) + if !ok { + that2, ok := that.(MsgGovUpdateParams) + if ok { + that1 = &that2 + } else { + return false + } } - if len(m.Operator) > 0 { - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) - i-- - dAtA[i] = 0xa + if that1 == nil { + return this == nil + } else if this == nil { + return false } - return len(dAtA) - i, nil -} - -func (m *MsgDelegateFeedConsentResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if this.Authority != that1.Authority { + return false } - return dAtA[:n], nil -} - -func (m *MsgDelegateFeedConsentResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgDelegateFeedConsentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgLegacyGovUpdateParams) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if this.Title != that1.Title { + return false } - return dAtA[:n], nil -} - -func (m *MsgLegacyGovUpdateParams) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + if this.Description != that1.Description { + return false + } + if !this.Plan.Equal(&that1.Plan) { + return false + } + return true } +func (this *MsgGovAddDenoms) Equal(that interface{}) bool { + if that == nil { + return this == nil + } -func (m *MsgLegacyGovUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Changes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + that1, ok := that.(*MsgGovAddDenoms) + if !ok { + that2, ok := that.(MsgGovAddDenoms) + if ok { + that1 = &that2 + } else { + return false } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0x2a - if len(m.Keys) > 0 { - for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Keys[iNdEx]) - copy(dAtA[i:], m.Keys[iNdEx]) - i = encodeVarintTx(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- - dAtA[i] = 0x22 - } + if that1 == nil { + return this == nil + } else if this == nil { + return false } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintTx(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x1a + if this.Authority != that1.Authority { + return false } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintTx(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0x12 + if this.Title != that1.Title { + return false } - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) - i-- - dAtA[i] = 0xa + if this.Description != that1.Description { + return false } - return len(dAtA) - i, nil -} - -func (m *MsgLegacyGovUpdateParamsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if this.Height != that1.Height { + return false } - return dAtA[:n], nil -} - -func (m *MsgLegacyGovUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgLegacyGovUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgGovUpdateParams) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if len(this.DenomList) != len(that1.DenomList) { + return false } - return dAtA[:n], nil -} - -func (m *MsgGovUpdateParams) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgGovUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Plan.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + for i := range this.DenomList { + if !this.DenomList[i].Equal(&that1.DenomList[i]) { + return false } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0x22 - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintTx(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x1a + if this.Mandatory != that1.Mandatory { + return false } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintTx(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0x12 + if that1.RewardBand == nil { + if this.RewardBand != nil { + return false + } + } else if !this.RewardBand.Equal(*that1.RewardBand) { + return false } - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) - i-- - dAtA[i] = 0xa + if len(this.CurrencyPairProviders) != len(that1.CurrencyPairProviders) { + return false } - return len(dAtA) - i, nil -} - -func (m *MsgGovUpdateParamsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + for i := range this.CurrencyPairProviders { + if !this.CurrencyPairProviders[i].Equal(&that1.CurrencyPairProviders[i]) { + return false + } } - return dAtA[:n], nil + if len(this.CurrencyDeviationThresholds) != len(that1.CurrencyDeviationThresholds) { + return false + } + for i := range this.CurrencyDeviationThresholds { + if !this.CurrencyDeviationThresholds[i].Equal(&that1.CurrencyDeviationThresholds[i]) { + return false + } + } + return true } - -func (m *MsgGovUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgGovUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgGovAddDenoms) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *MsgGovRemoveCurrencyPairProviders) Equal(that interface{}) bool { + if that == nil { + return this == nil } - return dAtA[:n], nil -} - -func (m *MsgGovAddDenoms) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} -func (m *MsgGovAddDenoms) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CurrencyDeviationThresholds) > 0 { - for iNdEx := len(m.CurrencyDeviationThresholds) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CurrencyDeviationThresholds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a + that1, ok := that.(*MsgGovRemoveCurrencyPairProviders) + if !ok { + that2, ok := that.(MsgGovRemoveCurrencyPairProviders) + if ok { + that1 = &that2 + } else { + return false } } - if len(m.CurrencyPairProviders) > 0 { - for iNdEx := len(m.CurrencyPairProviders) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CurrencyPairProviders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } + if that1 == nil { + return this == nil + } else if this == nil { + return false } - if m.RewardBand != nil { - { - size := m.RewardBand.Size() - i -= size - if _, err := m.RewardBand.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTx(dAtA, i, uint64(size)) + if this.Authority != that1.Authority { + return false + } + if this.Title != that1.Title { + return false + } + if this.Description != that1.Description { + return false + } + if this.Height != that1.Height { + return false + } + if len(this.CurrencyPairProviders) != len(that1.CurrencyPairProviders) { + return false + } + for i := range this.CurrencyPairProviders { + if !this.CurrencyPairProviders[i].Equal(&that1.CurrencyPairProviders[i]) { + return false } - i-- - dAtA[i] = 0x3a } - if m.Mandatory { - i-- - if m.Mandatory { - dAtA[i] = 1 + return true +} +func (this *MsgGovRemoveCurrencyDeviationThresholds) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*MsgGovRemoveCurrencyDeviationThresholds) + if !ok { + that2, ok := that.(MsgGovRemoveCurrencyDeviationThresholds) + if ok { + that1 = &that2 } else { - dAtA[i] = 0 + return false } - i-- - dAtA[i] = 0x30 } - if len(m.DenomList) > 0 { - for iNdEx := len(m.DenomList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DenomList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } + if that1 == nil { + return this == nil + } else if this == nil { + return false } - if m.Height != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Height)) - i-- - dAtA[i] = 0x20 + if this.Authority != that1.Authority { + return false } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintTx(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x1a + if this.Title != that1.Title { + return false } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintTx(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0x12 + if this.Description != that1.Description { + return false } - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) - i-- - dAtA[i] = 0xa + if this.Height != that1.Height { + return false } - return len(dAtA) - i, nil + if len(this.Currencies) != len(that1.Currencies) { + return false + } + for i := range this.Currencies { + if this.Currencies[i] != that1.Currencies[i] { + return false + } + } + return true } +func (this *MsgGovCancelUpdateParamPlan) Equal(that interface{}) bool { + if that == nil { + return this == nil + } -func (m *MsgGovAddDenomsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + that1, ok := that.(*MsgGovCancelUpdateParamPlan) + if !ok { + that2, ok := that.(MsgGovCancelUpdateParamPlan) + if ok { + that1 = &that2 + } else { + return false + } } - return dAtA[:n], nil + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Authority != that1.Authority { + return false + } + if this.Title != that1.Title { + return false + } + if this.Description != that1.Description { + return false + } + if this.Height != that1.Height { + return false + } + return true } -func (m *MsgGovAddDenomsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MsgClient interface { + // AggregateExchangeRatePrevote defines a method for submitting an aggregate + // exchange rate prevote. + AggregateExchangeRatePrevote(ctx context.Context, in *MsgAggregateExchangeRatePrevote, opts ...grpc.CallOption) (*MsgAggregateExchangeRatePrevoteResponse, error) + // AggregateExchangeRateVote defines a method for submitting an aggregate + // exchange rate vote. + AggregateExchangeRateVote(ctx context.Context, in *MsgAggregateExchangeRateVote, opts ...grpc.CallOption) (*MsgAggregateExchangeRateVoteResponse, error) + // DelegateFeedConsent defines a method for setting the feeder delegation. + DelegateFeedConsent(ctx context.Context, in *MsgDelegateFeedConsent, opts ...grpc.CallOption) (*MsgDelegateFeedConsentResponse, error) + FeedPrice(ctx context.Context, in *MsgFeedPrice, opts ...grpc.CallOption) (*MsgFeedPriceResponse, error) + FeedMultiplePrices(ctx context.Context, in *MsgFeedMultiplePrices, opts ...grpc.CallOption) (*MsgFeedMultiplePricesResponse, error) + SetPriceFeeder(ctx context.Context, in *MsgSetPriceFeeder, opts ...grpc.CallOption) (*MsgSetPriceFeederResponse, error) + DeletePriceFeeder(ctx context.Context, in *MsgDeletePriceFeeder, opts ...grpc.CallOption) (*MsgDeletePriceFeederResponse, error) + // proposals + RemoveAssetInfo(ctx context.Context, in *MsgRemoveAssetInfo, opts ...grpc.CallOption) (*MsgRemoveAssetInfoResponse, error) + AddPriceFeeders(ctx context.Context, in *MsgAddPriceFeeders, opts ...grpc.CallOption) (*MsgAddPriceFeedersResponse, error) + RemovePriceFeeders(ctx context.Context, in *MsgRemovePriceFeeders, opts ...grpc.CallOption) (*MsgRemovePriceFeedersResponse, error) + CreateAssetInfo(ctx context.Context, in *MsgCreateAssetInfo, opts ...grpc.CallOption) (*MsgCreateAssetInfoResponse, error) + // LegacyGovUpdateParams defines the legacy message that updates the oracle parameters. + LegacyGovUpdateParams(ctx context.Context, in *MsgLegacyGovUpdateParams, opts ...grpc.CallOption) (*MsgLegacyGovUpdateParamsResponse, error) + // GovUpdateParams updates the oracle parameters. + GovUpdateParams(ctx context.Context, in *MsgGovUpdateParams, opts ...grpc.CallOption) (*MsgGovUpdateParamsResponse, error) + // GovAddDenoms updates the oracle parameters to include a new tokens. + GovAddDenoms(ctx context.Context, in *MsgGovAddDenoms, opts ...grpc.CallOption) (*MsgGovAddDenomsResponse, error) + // GovRemoveCurrencyPairProviders updates the oracle parameters to remove a list of + // currency pair providers. + GovRemoveCurrencyPairProviders(ctx context.Context, in *MsgGovRemoveCurrencyPairProviders, opts ...grpc.CallOption) (*MsgGovRemoveCurrencyPairProvidersResponse, error) + // GovRemoveCurrencyDeviationThresholds updates the oracle parameters to remove a list + // of currency deviation thresholds. + GovRemoveCurrencyDeviationThresholds(ctx context.Context, in *MsgGovRemoveCurrencyDeviationThresholds, opts ...grpc.CallOption) (*MsgGovRemoveCurrencyDeviationThresholdsResponse, error) + // GovCancelUpdateParamPlan cancels a plan to update the oracle parameters. + GovCancelUpdateParamPlan(ctx context.Context, in *MsgGovCancelUpdateParamPlan, opts ...grpc.CallOption) (*MsgGovCancelUpdateParamPlanResponse, error) } -func (m *MsgGovAddDenomsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +type msgClient struct { + cc grpc1.ClientConn } -func (m *MsgGovRemoveCurrencyPairProviders) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) AggregateExchangeRatePrevote(ctx context.Context, in *MsgAggregateExchangeRatePrevote, opts ...grpc.CallOption) (*MsgAggregateExchangeRatePrevoteResponse, error) { + out := new(MsgAggregateExchangeRatePrevoteResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/AggregateExchangeRatePrevote", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *MsgGovRemoveCurrencyPairProviders) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *msgClient) AggregateExchangeRateVote(ctx context.Context, in *MsgAggregateExchangeRateVote, opts ...grpc.CallOption) (*MsgAggregateExchangeRateVoteResponse, error) { + out := new(MsgAggregateExchangeRateVoteResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/AggregateExchangeRateVote", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *MsgGovRemoveCurrencyPairProviders) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CurrencyPairProviders) > 0 { - for iNdEx := len(m.CurrencyPairProviders) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CurrencyPairProviders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if m.Height != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Height)) - i-- - dAtA[i] = 0x20 - } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintTx(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x1a - } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintTx(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0x12 - } - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) - i-- - dAtA[i] = 0xa +func (c *msgClient) DelegateFeedConsent(ctx context.Context, in *MsgDelegateFeedConsent, opts ...grpc.CallOption) (*MsgDelegateFeedConsentResponse, error) { + out := new(MsgDelegateFeedConsentResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/DelegateFeedConsent", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *MsgGovRemoveCurrencyPairProvidersResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *msgClient) FeedPrice(ctx context.Context, in *MsgFeedPrice, opts ...grpc.CallOption) (*MsgFeedPriceResponse, error) { + out := new(MsgFeedPriceResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/FeedPrice", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *MsgGovRemoveCurrencyPairProvidersResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *msgClient) FeedMultiplePrices(ctx context.Context, in *MsgFeedMultiplePrices, opts ...grpc.CallOption) (*MsgFeedMultiplePricesResponse, error) { + out := new(MsgFeedMultiplePricesResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/FeedMultiplePrices", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *MsgGovRemoveCurrencyPairProvidersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +func (c *msgClient) SetPriceFeeder(ctx context.Context, in *MsgSetPriceFeeder, opts ...grpc.CallOption) (*MsgSetPriceFeederResponse, error) { + out := new(MsgSetPriceFeederResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/SetPriceFeeder", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *MsgGovRemoveCurrencyDeviationThresholds) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *msgClient) DeletePriceFeeder(ctx context.Context, in *MsgDeletePriceFeeder, opts ...grpc.CallOption) (*MsgDeletePriceFeederResponse, error) { + out := new(MsgDeletePriceFeederResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/DeletePriceFeeder", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *MsgGovRemoveCurrencyDeviationThresholds) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *msgClient) RemoveAssetInfo(ctx context.Context, in *MsgRemoveAssetInfo, opts ...grpc.CallOption) (*MsgRemoveAssetInfoResponse, error) { + out := new(MsgRemoveAssetInfoResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/RemoveAssetInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *MsgGovRemoveCurrencyDeviationThresholds) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Currencies) > 0 { - for iNdEx := len(m.Currencies) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Currencies[iNdEx]) - copy(dAtA[i:], m.Currencies[iNdEx]) - i = encodeVarintTx(dAtA, i, uint64(len(m.Currencies[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if m.Height != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Height)) - i-- - dAtA[i] = 0x20 - } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintTx(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x1a - } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintTx(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0x12 - } - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) - i-- - dAtA[i] = 0xa +func (c *msgClient) AddPriceFeeders(ctx context.Context, in *MsgAddPriceFeeders, opts ...grpc.CallOption) (*MsgAddPriceFeedersResponse, error) { + out := new(MsgAddPriceFeedersResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/AddPriceFeeders", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *msgClient) RemovePriceFeeders(ctx context.Context, in *MsgRemovePriceFeeders, opts ...grpc.CallOption) (*MsgRemovePriceFeedersResponse, error) { + out := new(MsgRemovePriceFeedersResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/RemovePriceFeeders", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *msgClient) CreateAssetInfo(ctx context.Context, in *MsgCreateAssetInfo, opts ...grpc.CallOption) (*MsgCreateAssetInfoResponse, error) { + out := new(MsgCreateAssetInfoResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/CreateAssetInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +func (c *msgClient) LegacyGovUpdateParams(ctx context.Context, in *MsgLegacyGovUpdateParams, opts ...grpc.CallOption) (*MsgLegacyGovUpdateParamsResponse, error) { + out := new(MsgLegacyGovUpdateParamsResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/LegacyGovUpdateParams", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *MsgGovCancelUpdateParamPlan) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *msgClient) GovUpdateParams(ctx context.Context, in *MsgGovUpdateParams, opts ...grpc.CallOption) (*MsgGovUpdateParamsResponse, error) { + out := new(MsgGovUpdateParamsResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/GovUpdateParams", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *MsgGovCancelUpdateParamPlan) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *msgClient) GovAddDenoms(ctx context.Context, in *MsgGovAddDenoms, opts ...grpc.CallOption) (*MsgGovAddDenomsResponse, error) { + out := new(MsgGovAddDenomsResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/GovAddDenoms", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *MsgGovCancelUpdateParamPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Height != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Height)) - i-- - dAtA[i] = 0x20 - } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintTx(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x1a - } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintTx(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0x12 - } - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) - i-- - dAtA[i] = 0xa +func (c *msgClient) GovRemoveCurrencyPairProviders(ctx context.Context, in *MsgGovRemoveCurrencyPairProviders, opts ...grpc.CallOption) (*MsgGovRemoveCurrencyPairProvidersResponse, error) { + out := new(MsgGovRemoveCurrencyPairProvidersResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/GovRemoveCurrencyPairProviders", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *MsgGovCancelUpdateParamPlanResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *msgClient) GovRemoveCurrencyDeviationThresholds(ctx context.Context, in *MsgGovRemoveCurrencyDeviationThresholds, opts ...grpc.CallOption) (*MsgGovRemoveCurrencyDeviationThresholdsResponse, error) { + out := new(MsgGovRemoveCurrencyDeviationThresholdsResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/GovRemoveCurrencyDeviationThresholds", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *MsgGovCancelUpdateParamPlanResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *msgClient) GovCancelUpdateParamPlan(ctx context.Context, in *MsgGovCancelUpdateParamPlan, opts ...grpc.CallOption) (*MsgGovCancelUpdateParamPlanResponse, error) { + out := new(MsgGovCancelUpdateParamPlanResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Msg/GovCancelUpdateParamPlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *MsgGovCancelUpdateParamPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +// MsgServer is the server API for Msg service. +type MsgServer interface { + // AggregateExchangeRatePrevote defines a method for submitting an aggregate + // exchange rate prevote. + AggregateExchangeRatePrevote(context.Context, *MsgAggregateExchangeRatePrevote) (*MsgAggregateExchangeRatePrevoteResponse, error) + // AggregateExchangeRateVote defines a method for submitting an aggregate + // exchange rate vote. + AggregateExchangeRateVote(context.Context, *MsgAggregateExchangeRateVote) (*MsgAggregateExchangeRateVoteResponse, error) + // DelegateFeedConsent defines a method for setting the feeder delegation. + DelegateFeedConsent(context.Context, *MsgDelegateFeedConsent) (*MsgDelegateFeedConsentResponse, error) + FeedPrice(context.Context, *MsgFeedPrice) (*MsgFeedPriceResponse, error) + FeedMultiplePrices(context.Context, *MsgFeedMultiplePrices) (*MsgFeedMultiplePricesResponse, error) + SetPriceFeeder(context.Context, *MsgSetPriceFeeder) (*MsgSetPriceFeederResponse, error) + DeletePriceFeeder(context.Context, *MsgDeletePriceFeeder) (*MsgDeletePriceFeederResponse, error) + // proposals + RemoveAssetInfo(context.Context, *MsgRemoveAssetInfo) (*MsgRemoveAssetInfoResponse, error) + AddPriceFeeders(context.Context, *MsgAddPriceFeeders) (*MsgAddPriceFeedersResponse, error) + RemovePriceFeeders(context.Context, *MsgRemovePriceFeeders) (*MsgRemovePriceFeedersResponse, error) + CreateAssetInfo(context.Context, *MsgCreateAssetInfo) (*MsgCreateAssetInfoResponse, error) + // LegacyGovUpdateParams defines the legacy message that updates the oracle parameters. + LegacyGovUpdateParams(context.Context, *MsgLegacyGovUpdateParams) (*MsgLegacyGovUpdateParamsResponse, error) + // GovUpdateParams updates the oracle parameters. + GovUpdateParams(context.Context, *MsgGovUpdateParams) (*MsgGovUpdateParamsResponse, error) + // GovAddDenoms updates the oracle parameters to include a new tokens. + GovAddDenoms(context.Context, *MsgGovAddDenoms) (*MsgGovAddDenomsResponse, error) + // GovRemoveCurrencyPairProviders updates the oracle parameters to remove a list of + // currency pair providers. + GovRemoveCurrencyPairProviders(context.Context, *MsgGovRemoveCurrencyPairProviders) (*MsgGovRemoveCurrencyPairProvidersResponse, error) + // GovRemoveCurrencyDeviationThresholds updates the oracle parameters to remove a list + // of currency deviation thresholds. + GovRemoveCurrencyDeviationThresholds(context.Context, *MsgGovRemoveCurrencyDeviationThresholds) (*MsgGovRemoveCurrencyDeviationThresholdsResponse, error) + // GovCancelUpdateParamPlan cancels a plan to update the oracle parameters. + GovCancelUpdateParamPlan(context.Context, *MsgGovCancelUpdateParamPlan) (*MsgGovCancelUpdateParamPlanResponse, error) } -func encodeVarintTx(dAtA []byte, offset int, v uint64) int { - offset -= sovTx(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { } -func (m *MsgAggregateExchangeRatePrevote) Size() (n int) { - if m == nil { - return 0 + +func (*UnimplementedMsgServer) AggregateExchangeRatePrevote(ctx context.Context, req *MsgAggregateExchangeRatePrevote) (*MsgAggregateExchangeRatePrevoteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AggregateExchangeRatePrevote not implemented") +} +func (*UnimplementedMsgServer) AggregateExchangeRateVote(ctx context.Context, req *MsgAggregateExchangeRateVote) (*MsgAggregateExchangeRateVoteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AggregateExchangeRateVote not implemented") +} +func (*UnimplementedMsgServer) DelegateFeedConsent(ctx context.Context, req *MsgDelegateFeedConsent) (*MsgDelegateFeedConsentResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DelegateFeedConsent not implemented") +} +func (*UnimplementedMsgServer) FeedPrice(ctx context.Context, req *MsgFeedPrice) (*MsgFeedPriceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FeedPrice not implemented") +} +func (*UnimplementedMsgServer) FeedMultiplePrices(ctx context.Context, req *MsgFeedMultiplePrices) (*MsgFeedMultiplePricesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FeedMultiplePrices not implemented") +} +func (*UnimplementedMsgServer) SetPriceFeeder(ctx context.Context, req *MsgSetPriceFeeder) (*MsgSetPriceFeederResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetPriceFeeder not implemented") +} +func (*UnimplementedMsgServer) DeletePriceFeeder(ctx context.Context, req *MsgDeletePriceFeeder) (*MsgDeletePriceFeederResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeletePriceFeeder not implemented") +} +func (*UnimplementedMsgServer) RemoveAssetInfo(ctx context.Context, req *MsgRemoveAssetInfo) (*MsgRemoveAssetInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveAssetInfo not implemented") +} +func (*UnimplementedMsgServer) AddPriceFeeders(ctx context.Context, req *MsgAddPriceFeeders) (*MsgAddPriceFeedersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddPriceFeeders not implemented") +} +func (*UnimplementedMsgServer) RemovePriceFeeders(ctx context.Context, req *MsgRemovePriceFeeders) (*MsgRemovePriceFeedersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemovePriceFeeders not implemented") +} +func (*UnimplementedMsgServer) CreateAssetInfo(ctx context.Context, req *MsgCreateAssetInfo) (*MsgCreateAssetInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateAssetInfo not implemented") +} +func (*UnimplementedMsgServer) LegacyGovUpdateParams(ctx context.Context, req *MsgLegacyGovUpdateParams) (*MsgLegacyGovUpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LegacyGovUpdateParams not implemented") +} +func (*UnimplementedMsgServer) GovUpdateParams(ctx context.Context, req *MsgGovUpdateParams) (*MsgGovUpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GovUpdateParams not implemented") +} +func (*UnimplementedMsgServer) GovAddDenoms(ctx context.Context, req *MsgGovAddDenoms) (*MsgGovAddDenomsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GovAddDenoms not implemented") +} +func (*UnimplementedMsgServer) GovRemoveCurrencyPairProviders(ctx context.Context, req *MsgGovRemoveCurrencyPairProviders) (*MsgGovRemoveCurrencyPairProvidersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GovRemoveCurrencyPairProviders not implemented") +} +func (*UnimplementedMsgServer) GovRemoveCurrencyDeviationThresholds(ctx context.Context, req *MsgGovRemoveCurrencyDeviationThresholds) (*MsgGovRemoveCurrencyDeviationThresholdsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GovRemoveCurrencyDeviationThresholds not implemented") +} +func (*UnimplementedMsgServer) GovCancelUpdateParamPlan(ctx context.Context, req *MsgGovCancelUpdateParamPlan) (*MsgGovCancelUpdateParamPlanResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GovCancelUpdateParamPlan not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_AggregateExchangeRatePrevote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAggregateExchangeRatePrevote) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Hash) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if interceptor == nil { + return srv.(MsgServer).AggregateExchangeRatePrevote(ctx, in) } - l = len(m.Feeder) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/AggregateExchangeRatePrevote", } - l = len(m.Validator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AggregateExchangeRatePrevote(ctx, req.(*MsgAggregateExchangeRatePrevote)) } - return n + return interceptor(ctx, in, info, handler) } -func (m *MsgAggregateExchangeRatePrevoteResponse) Size() (n int) { - if m == nil { - return 0 +func _Msg_AggregateExchangeRateVote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAggregateExchangeRateVote) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - return n + if interceptor == nil { + return srv.(MsgServer).AggregateExchangeRateVote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/AggregateExchangeRateVote", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AggregateExchangeRateVote(ctx, req.(*MsgAggregateExchangeRateVote)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgAggregateExchangeRateVote) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Salt) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) +func _Msg_DelegateFeedConsent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDelegateFeedConsent) + if err := dec(in); err != nil { + return nil, err } - l = len(m.ExchangeRates) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if interceptor == nil { + return srv.(MsgServer).DelegateFeedConsent(ctx, in) } - l = len(m.Feeder) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/DelegateFeedConsent", } - l = len(m.Validator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DelegateFeedConsent(ctx, req.(*MsgDelegateFeedConsent)) } - return n + return interceptor(ctx, in, info, handler) } -func (m *MsgAggregateExchangeRateVoteResponse) Size() (n int) { - if m == nil { - return 0 +func _Msg_FeedPrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgFeedPrice) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - return n -} - -func (m *MsgDelegateFeedConsent) Size() (n int) { - if m == nil { - return 0 + if interceptor == nil { + return srv.(MsgServer).FeedPrice(ctx, in) } - var l int - _ = l - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/FeedPrice", } - l = len(m.Delegate) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).FeedPrice(ctx, req.(*MsgFeedPrice)) } - return n + return interceptor(ctx, in, info, handler) } -func (m *MsgDelegateFeedConsentResponse) Size() (n int) { - if m == nil { - return 0 +func _Msg_FeedMultiplePrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgFeedMultiplePrices) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - return n + if interceptor == nil { + return srv.(MsgServer).FeedMultiplePrices(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/FeedMultiplePrices", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).FeedMultiplePrices(ctx, req.(*MsgFeedMultiplePrices)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgLegacyGovUpdateParams) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) +func _Msg_SetPriceFeeder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetPriceFeeder) + if err := dec(in); err != nil { + return nil, err } - l = len(m.Title) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if interceptor == nil { + return srv.(MsgServer).SetPriceFeeder(ctx, in) } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/SetPriceFeeder", } - if len(m.Keys) > 0 { - for _, s := range m.Keys { - l = len(s) - n += 1 + l + sovTx(uint64(l)) - } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetPriceFeeder(ctx, req.(*MsgSetPriceFeeder)) } - l = m.Changes.Size() - n += 1 + l + sovTx(uint64(l)) - return n + return interceptor(ctx, in, info, handler) } -func (m *MsgLegacyGovUpdateParamsResponse) Size() (n int) { - if m == nil { - return 0 +func _Msg_DeletePriceFeeder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDeletePriceFeeder) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - return n + if interceptor == nil { + return srv.(MsgServer).DeletePriceFeeder(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/DeletePriceFeeder", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DeletePriceFeeder(ctx, req.(*MsgDeletePriceFeeder)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgGovUpdateParams) Size() (n int) { - if m == nil { - return 0 +func _Msg_RemoveAssetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRemoveAssetInfo) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if interceptor == nil { + return srv.(MsgServer).RemoveAssetInfo(ctx, in) } - l = len(m.Title) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/RemoveAssetInfo", } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RemoveAssetInfo(ctx, req.(*MsgRemoveAssetInfo)) } - l = m.Plan.Size() - n += 1 + l + sovTx(uint64(l)) - return n + return interceptor(ctx, in, info, handler) } -func (m *MsgGovUpdateParamsResponse) Size() (n int) { - if m == nil { - return 0 +func _Msg_AddPriceFeeders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAddPriceFeeders) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - return n + if interceptor == nil { + return srv.(MsgServer).AddPriceFeeders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/AddPriceFeeders", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AddPriceFeeders(ctx, req.(*MsgAddPriceFeeders)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgGovAddDenoms) Size() (n int) { - if m == nil { - return 0 +func _Msg_RemovePriceFeeders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRemovePriceFeeders) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if interceptor == nil { + return srv.(MsgServer).RemovePriceFeeders(ctx, in) } - l = len(m.Title) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/RemovePriceFeeders", } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RemovePriceFeeders(ctx, req.(*MsgRemovePriceFeeders)) } - if m.Height != 0 { - n += 1 + sovTx(uint64(m.Height)) + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateAssetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateAssetInfo) + if err := dec(in); err != nil { + return nil, err } - if len(m.DenomList) > 0 { - for _, e := range m.DenomList { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } + if interceptor == nil { + return srv.(MsgServer).CreateAssetInfo(ctx, in) } - if m.Mandatory { - n += 2 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/CreateAssetInfo", } - if m.RewardBand != nil { - l = m.RewardBand.Size() - n += 1 + l + sovTx(uint64(l)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateAssetInfo(ctx, req.(*MsgCreateAssetInfo)) } - if len(m.CurrencyPairProviders) > 0 { - for _, e := range m.CurrencyPairProviders { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } + return interceptor(ctx, in, info, handler) +} + +func _Msg_LegacyGovUpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgLegacyGovUpdateParams) + if err := dec(in); err != nil { + return nil, err } - if len(m.CurrencyDeviationThresholds) > 0 { - for _, e := range m.CurrencyDeviationThresholds { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } + if interceptor == nil { + return srv.(MsgServer).LegacyGovUpdateParams(ctx, in) } - return n + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/LegacyGovUpdateParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).LegacyGovUpdateParams(ctx, req.(*MsgLegacyGovUpdateParams)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgGovAddDenomsResponse) Size() (n int) { - if m == nil { - return 0 +func _Msg_GovUpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgGovUpdateParams) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - return n + if interceptor == nil { + return srv.(MsgServer).GovUpdateParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/GovUpdateParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).GovUpdateParams(ctx, req.(*MsgGovUpdateParams)) + } + return interceptor(ctx, in, info, handler) } -func (m *MsgGovRemoveCurrencyPairProviders) Size() (n int) { - if m == nil { - return 0 +func _Msg_GovAddDenoms_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgGovAddDenoms) + if err := dec(in); err != nil { + return nil, err } - var l int - _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if interceptor == nil { + return srv.(MsgServer).GovAddDenoms(ctx, in) } - l = len(m.Title) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/GovAddDenoms", } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).GovAddDenoms(ctx, req.(*MsgGovAddDenoms)) } - if m.Height != 0 { - n += 1 + sovTx(uint64(m.Height)) + return interceptor(ctx, in, info, handler) +} + +func _Msg_GovRemoveCurrencyPairProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgGovRemoveCurrencyPairProviders) + if err := dec(in); err != nil { + return nil, err } - if len(m.CurrencyPairProviders) > 0 { - for _, e := range m.CurrencyPairProviders { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) + if interceptor == nil { + return srv.(MsgServer).GovRemoveCurrencyPairProviders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/GovRemoveCurrencyPairProviders", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).GovRemoveCurrencyPairProviders(ctx, req.(*MsgGovRemoveCurrencyPairProviders)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_GovRemoveCurrencyDeviationThresholds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgGovRemoveCurrencyDeviationThresholds) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).GovRemoveCurrencyDeviationThresholds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/GovRemoveCurrencyDeviationThresholds", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).GovRemoveCurrencyDeviationThresholds(ctx, req.(*MsgGovRemoveCurrencyDeviationThresholds)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_GovCancelUpdateParamPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgGovCancelUpdateParamPlan) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).GovCancelUpdateParamPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Msg/GovCancelUpdateParamPlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).GovCancelUpdateParamPlan(ctx, req.(*MsgGovCancelUpdateParamPlan)) + } + return interceptor(ctx, in, info, handler) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "ojo.oracle.v1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AggregateExchangeRatePrevote", + Handler: _Msg_AggregateExchangeRatePrevote_Handler, + }, + { + MethodName: "AggregateExchangeRateVote", + Handler: _Msg_AggregateExchangeRateVote_Handler, + }, + { + MethodName: "DelegateFeedConsent", + Handler: _Msg_DelegateFeedConsent_Handler, + }, + { + MethodName: "FeedPrice", + Handler: _Msg_FeedPrice_Handler, + }, + { + MethodName: "FeedMultiplePrices", + Handler: _Msg_FeedMultiplePrices_Handler, + }, + { + MethodName: "SetPriceFeeder", + Handler: _Msg_SetPriceFeeder_Handler, + }, + { + MethodName: "DeletePriceFeeder", + Handler: _Msg_DeletePriceFeeder_Handler, + }, + { + MethodName: "RemoveAssetInfo", + Handler: _Msg_RemoveAssetInfo_Handler, + }, + { + MethodName: "AddPriceFeeders", + Handler: _Msg_AddPriceFeeders_Handler, + }, + { + MethodName: "RemovePriceFeeders", + Handler: _Msg_RemovePriceFeeders_Handler, + }, + { + MethodName: "CreateAssetInfo", + Handler: _Msg_CreateAssetInfo_Handler, + }, + { + MethodName: "LegacyGovUpdateParams", + Handler: _Msg_LegacyGovUpdateParams_Handler, + }, + { + MethodName: "GovUpdateParams", + Handler: _Msg_GovUpdateParams_Handler, + }, + { + MethodName: "GovAddDenoms", + Handler: _Msg_GovAddDenoms_Handler, + }, + { + MethodName: "GovRemoveCurrencyPairProviders", + Handler: _Msg_GovRemoveCurrencyPairProviders_Handler, + }, + { + MethodName: "GovRemoveCurrencyDeviationThresholds", + Handler: _Msg_GovRemoveCurrencyDeviationThresholds_Handler, + }, + { + MethodName: "GovCancelUpdateParamPlan", + Handler: _Msg_GovCancelUpdateParamPlan_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "ojo/oracle/v1/tx.proto", +} + +func (m *MsgAggregateExchangeRatePrevote) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAggregateExchangeRatePrevote) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAggregateExchangeRatePrevote) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Validator) > 0 { + i -= len(m.Validator) + copy(dAtA[i:], m.Validator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Validator))) + i-- + dAtA[i] = 0x1a + } + if len(m.Feeder) > 0 { + i -= len(m.Feeder) + copy(dAtA[i:], m.Feeder) + i = encodeVarintTx(dAtA, i, uint64(len(m.Feeder))) + i-- + dAtA[i] = 0x12 + } + if len(m.Hash) > 0 { + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) + i = encodeVarintTx(dAtA, i, uint64(len(m.Hash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgAggregateExchangeRatePrevoteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAggregateExchangeRatePrevoteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAggregateExchangeRatePrevoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgAggregateExchangeRateVote) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAggregateExchangeRateVote) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAggregateExchangeRateVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Validator) > 0 { + i -= len(m.Validator) + copy(dAtA[i:], m.Validator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Validator))) + i-- + dAtA[i] = 0x22 + } + if len(m.Feeder) > 0 { + i -= len(m.Feeder) + copy(dAtA[i:], m.Feeder) + i = encodeVarintTx(dAtA, i, uint64(len(m.Feeder))) + i-- + dAtA[i] = 0x1a + } + if len(m.ExchangeRates) > 0 { + i -= len(m.ExchangeRates) + copy(dAtA[i:], m.ExchangeRates) + i = encodeVarintTx(dAtA, i, uint64(len(m.ExchangeRates))) + i-- + dAtA[i] = 0x12 + } + if len(m.Salt) > 0 { + i -= len(m.Salt) + copy(dAtA[i:], m.Salt) + i = encodeVarintTx(dAtA, i, uint64(len(m.Salt))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgAggregateExchangeRateVoteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAggregateExchangeRateVoteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAggregateExchangeRateVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgDelegateFeedConsent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDelegateFeedConsent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDelegateFeedConsent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Delegate) > 0 { + i -= len(m.Delegate) + copy(dAtA[i:], m.Delegate) + i = encodeVarintTx(dAtA, i, uint64(len(m.Delegate))) + i-- + dAtA[i] = 0x12 + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDelegateFeedConsentResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDelegateFeedConsentResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDelegateFeedConsentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *FeedPrice) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FeedPrice) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeedPrice) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Source) > 0 { + i -= len(m.Source) + copy(dAtA[i:], m.Source) + i = encodeVarintTx(dAtA, i, uint64(len(m.Source))) + i-- + dAtA[i] = 0x1a + } + { + size := m.Price.Size() + i -= size + if _, err := m.Price.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Asset) > 0 { + i -= len(m.Asset) + copy(dAtA[i:], m.Asset) + i = encodeVarintTx(dAtA, i, uint64(len(m.Asset))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgFeedPrice) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgFeedPrice) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgFeedPrice) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.FeedPrice.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Provider) > 0 { + i -= len(m.Provider) + copy(dAtA[i:], m.Provider) + i = encodeVarintTx(dAtA, i, uint64(len(m.Provider))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgFeedPriceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgFeedPriceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgFeedPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgSetPriceFeeder) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetPriceFeeder) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetPriceFeeder) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IsActive { + i-- + if m.IsActive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.Feeder) > 0 { + i -= len(m.Feeder) + copy(dAtA[i:], m.Feeder) + i = encodeVarintTx(dAtA, i, uint64(len(m.Feeder))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetPriceFeederResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetPriceFeederResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetPriceFeederResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgDeletePriceFeeder) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDeletePriceFeeder) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDeletePriceFeeder) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Feeder) > 0 { + i -= len(m.Feeder) + copy(dAtA[i:], m.Feeder) + i = encodeVarintTx(dAtA, i, uint64(len(m.Feeder))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDeletePriceFeederResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDeletePriceFeederResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDeletePriceFeederResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgFeedMultiplePrices) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgFeedMultiplePrices) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgFeedMultiplePrices) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeedPrices) > 0 { + for iNdEx := len(m.FeedPrices) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FeedPrices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgFeedMultiplePricesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgFeedMultiplePricesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgFeedMultiplePricesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgRemoveAssetInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRemoveAssetInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRemoveAssetInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintTx(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRemoveAssetInfoResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRemoveAssetInfoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRemoveAssetInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgAddPriceFeeders) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAddPriceFeeders) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAddPriceFeeders) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Feeders) > 0 { + for iNdEx := len(m.Feeders) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Feeders[iNdEx]) + copy(dAtA[i:], m.Feeders[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Feeders[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgAddPriceFeedersResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgAddPriceFeedersResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAddPriceFeedersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgRemovePriceFeeders) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRemovePriceFeeders) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRemovePriceFeeders) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Feeders) > 0 { + for iNdEx := len(m.Feeders) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Feeders[iNdEx]) + copy(dAtA[i:], m.Feeders[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Feeders[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRemovePriceFeedersResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRemovePriceFeedersResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRemovePriceFeedersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgCreateAssetInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateAssetInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateAssetInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Decimal != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Decimal)) + i-- + dAtA[i] = 0x30 + } + if len(m.ElysTicker) > 0 { + i -= len(m.ElysTicker) + copy(dAtA[i:], m.ElysTicker) + i = encodeVarintTx(dAtA, i, uint64(len(m.ElysTicker))) + i-- + dAtA[i] = 0x2a + } + if len(m.BandTicker) > 0 { + i -= len(m.BandTicker) + copy(dAtA[i:], m.BandTicker) + i = encodeVarintTx(dAtA, i, uint64(len(m.BandTicker))) + i-- + dAtA[i] = 0x22 + } + if len(m.Display) > 0 { + i -= len(m.Display) + copy(dAtA[i:], m.Display) + i = encodeVarintTx(dAtA, i, uint64(len(m.Display))) + i-- + dAtA[i] = 0x1a + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintTx(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateAssetInfoResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateAssetInfoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateAssetInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgLegacyGovUpdateParams) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgLegacyGovUpdateParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgLegacyGovUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Changes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if len(m.Keys) > 0 { + for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Keys[iNdEx]) + copy(dAtA[i:], m.Keys[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintTx(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.Title) > 0 { + i -= len(m.Title) + copy(dAtA[i:], m.Title) + i = encodeVarintTx(dAtA, i, uint64(len(m.Title))) + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgLegacyGovUpdateParamsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgLegacyGovUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgLegacyGovUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgGovUpdateParams) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgGovUpdateParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGovUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Plan.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintTx(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.Title) > 0 { + i -= len(m.Title) + copy(dAtA[i:], m.Title) + i = encodeVarintTx(dAtA, i, uint64(len(m.Title))) + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgGovUpdateParamsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgGovUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGovUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgGovAddDenoms) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgGovAddDenoms) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGovAddDenoms) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CurrencyDeviationThresholds) > 0 { + for iNdEx := len(m.CurrencyDeviationThresholds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CurrencyDeviationThresholds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.CurrencyPairProviders) > 0 { + for iNdEx := len(m.CurrencyPairProviders) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CurrencyPairProviders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if m.RewardBand != nil { + { + size := m.RewardBand.Size() + i -= size + if _, err := m.RewardBand.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.Mandatory { + i-- + if m.Mandatory { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.DenomList) > 0 { + for iNdEx := len(m.DenomList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DenomList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.Height != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x20 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintTx(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.Title) > 0 { + i -= len(m.Title) + copy(dAtA[i:], m.Title) + i = encodeVarintTx(dAtA, i, uint64(len(m.Title))) + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgGovAddDenomsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgGovAddDenomsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGovAddDenomsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgGovRemoveCurrencyPairProviders) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgGovRemoveCurrencyPairProviders) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGovRemoveCurrencyPairProviders) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CurrencyPairProviders) > 0 { + for iNdEx := len(m.CurrencyPairProviders) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CurrencyPairProviders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.Height != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x20 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintTx(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.Title) > 0 { + i -= len(m.Title) + copy(dAtA[i:], m.Title) + i = encodeVarintTx(dAtA, i, uint64(len(m.Title))) + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgGovRemoveCurrencyPairProvidersResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgGovRemoveCurrencyPairProvidersResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGovRemoveCurrencyPairProvidersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgGovRemoveCurrencyDeviationThresholds) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgGovRemoveCurrencyDeviationThresholds) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGovRemoveCurrencyDeviationThresholds) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Currencies) > 0 { + for iNdEx := len(m.Currencies) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Currencies[iNdEx]) + copy(dAtA[i:], m.Currencies[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Currencies[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if m.Height != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x20 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintTx(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.Title) > 0 { + i -= len(m.Title) + copy(dAtA[i:], m.Title) + i = encodeVarintTx(dAtA, i, uint64(len(m.Title))) + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgGovCancelUpdateParamPlan) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgGovCancelUpdateParamPlan) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGovCancelUpdateParamPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Height != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x20 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintTx(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.Title) > 0 { + i -= len(m.Title) + copy(dAtA[i:], m.Title) + i = encodeVarintTx(dAtA, i, uint64(len(m.Title))) + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgGovCancelUpdateParamPlanResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgGovCancelUpdateParamPlanResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgGovCancelUpdateParamPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgAggregateExchangeRatePrevote) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Hash) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Feeder) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Validator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgAggregateExchangeRatePrevoteResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgAggregateExchangeRateVote) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Salt) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ExchangeRates) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Feeder) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Validator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgAggregateExchangeRateVoteResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgDelegateFeedConsent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Operator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Delegate) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgDelegateFeedConsentResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *FeedPrice) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Asset) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Price.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.Source) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgFeedPrice) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Provider) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.FeedPrice.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgFeedPriceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSetPriceFeeder) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Feeder) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.IsActive { + n += 2 + } + return n +} + +func (m *MsgSetPriceFeederResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgDeletePriceFeeder) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Feeder) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgDeletePriceFeederResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgFeedMultiplePrices) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.FeedPrices) > 0 { + for _, e := range m.FeedPrices { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgFeedMultiplePricesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgRemoveAssetInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgRemoveAssetInfoResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgAddPriceFeeders) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Feeders) > 0 { + for _, s := range m.Feeders { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgAddPriceFeedersResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgRemovePriceFeeders) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Feeders) > 0 { + for _, s := range m.Feeders { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgRemovePriceFeedersResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCreateAssetInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Display) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.BandTicker) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ElysTicker) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Decimal != 0 { + n += 1 + sovTx(uint64(m.Decimal)) + } + return n +} + +func (m *MsgCreateAssetInfoResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgLegacyGovUpdateParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Title) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Keys) > 0 { + for _, s := range m.Keys { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + l = m.Changes.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgLegacyGovUpdateParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgGovUpdateParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Title) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Plan.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgGovUpdateParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgGovAddDenoms) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Title) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Height != 0 { + n += 1 + sovTx(uint64(m.Height)) + } + if len(m.DenomList) > 0 { + for _, e := range m.DenomList { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if m.Mandatory { + n += 2 + } + if m.RewardBand != nil { + l = m.RewardBand.Size() + n += 1 + l + sovTx(uint64(l)) + } + if len(m.CurrencyPairProviders) > 0 { + for _, e := range m.CurrencyPairProviders { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.CurrencyDeviationThresholds) > 0 { + for _, e := range m.CurrencyDeviationThresholds { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgGovAddDenomsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgGovRemoveCurrencyPairProviders) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Title) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Height != 0 { + n += 1 + sovTx(uint64(m.Height)) + } + if len(m.CurrencyPairProviders) > 0 { + for _, e := range m.CurrencyPairProviders { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgGovRemoveCurrencyPairProvidersResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgGovRemoveCurrencyDeviationThresholds) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Title) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Height != 0 { + n += 1 + sovTx(uint64(m.Height)) + } + if len(m.Currencies) > 0 { + for _, s := range m.Currencies { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgGovCancelUpdateParamPlan) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Title) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Height != 0 { + n += 1 + sovTx(uint64(m.Height)) + } + return n +} + +func (m *MsgGovCancelUpdateParamPlanResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgAggregateExchangeRatePrevote) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAggregateExchangeRatePrevote: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAggregateExchangeRatePrevote: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Feeder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Feeder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Validator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAggregateExchangeRatePrevoteResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAggregateExchangeRatePrevoteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAggregateExchangeRatePrevoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAggregateExchangeRateVote) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAggregateExchangeRateVote: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAggregateExchangeRateVote: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Salt", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Salt = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExchangeRates", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExchangeRates = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Feeder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Feeder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Validator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAggregateExchangeRateVoteResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAggregateExchangeRateVoteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAggregateExchangeRateVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDelegateFeedConsent) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDelegateFeedConsent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDelegateFeedConsent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delegate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Delegate = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDelegateFeedConsentResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDelegateFeedConsentResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDelegateFeedConsentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeedPrice) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FeedPrice: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeedPrice: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Asset = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Price.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Source = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgFeedPrice) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgFeedPrice: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgFeedPrice: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Provider", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Provider = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeedPrice", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.FeedPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgFeedPriceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgFeedPriceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgFeedPriceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetPriceFeeder) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetPriceFeeder: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetPriceFeeder: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Feeder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Feeder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsActive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsActive = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetPriceFeederResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetPriceFeederResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetPriceFeederResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDeletePriceFeeder) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDeletePriceFeeder: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDeletePriceFeeder: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Feeder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Feeder = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy } } - return n -} -func (m *MsgGovRemoveCurrencyPairProvidersResponse) Size() (n int) { - if m == nil { - return 0 + if iNdEx > l { + return io.ErrUnexpectedEOF } - var l int - _ = l - return n + return nil } - -func (m *MsgGovRemoveCurrencyDeviationThresholds) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Title) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.Height != 0 { - n += 1 + sovTx(uint64(m.Height)) - } - if len(m.Currencies) > 0 { - for _, s := range m.Currencies { - l = len(s) - n += 1 + l + sovTx(uint64(l)) +func (m *MsgDeletePriceFeederResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDeletePriceFeederResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDeletePriceFeederResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy } } - return n -} - -func (m *MsgGovRemoveCurrencyDeviationThresholdsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgGovCancelUpdateParamPlan) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Title) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.Height != 0 { - n += 1 + sovTx(uint64(m.Height)) - } - return n -} -func (m *MsgGovCancelUpdateParamPlanResponse) Size() (n int) { - if m == nil { - return 0 + if iNdEx > l { + return io.ErrUnexpectedEOF } - var l int - _ = l - return n -} - -func sovTx(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozTx(x uint64) (n int) { - return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + return nil } -func (m *MsgAggregateExchangeRatePrevote) Unmarshal(dAtA []byte) error { +func (m *MsgFeedMultiplePrices) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2645,15 +5606,15 @@ func (m *MsgAggregateExchangeRatePrevote) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgAggregateExchangeRatePrevote: wiretype end group for non-group") + return fmt.Errorf("proto: MsgFeedMultiplePrices: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAggregateExchangeRatePrevote: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgFeedMultiplePrices: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2681,11 +5642,145 @@ func (m *MsgAggregateExchangeRatePrevote) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Hash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeedPrices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeedPrices = append(m.FeedPrices, FeedPrice{}) + if err := m.FeedPrices[len(m.FeedPrices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgFeedMultiplePricesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgFeedMultiplePricesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgFeedMultiplePricesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgRemoveAssetInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRemoveAssetInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRemoveAssetInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Feeder", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2713,11 +5808,11 @@ func (m *MsgAggregateExchangeRatePrevote) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Feeder = string(dAtA[iNdEx:postIndex]) + m.Authority = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2745,7 +5840,7 @@ func (m *MsgAggregateExchangeRatePrevote) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Validator = string(dAtA[iNdEx:postIndex]) + m.Denom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -2768,7 +5863,7 @@ func (m *MsgAggregateExchangeRatePrevote) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgAggregateExchangeRatePrevoteResponse) Unmarshal(dAtA []byte) error { +func (m *MsgRemoveAssetInfoResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2791,10 +5886,10 @@ func (m *MsgAggregateExchangeRatePrevoteResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgAggregateExchangeRatePrevoteResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgRemoveAssetInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAggregateExchangeRatePrevoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgRemoveAssetInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -2818,7 +5913,7 @@ func (m *MsgAggregateExchangeRatePrevoteResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgAggregateExchangeRateVote) Unmarshal(dAtA []byte) error { +func (m *MsgAddPriceFeeders) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2841,15 +5936,15 @@ func (m *MsgAggregateExchangeRateVote) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgAggregateExchangeRateVote: wiretype end group for non-group") + return fmt.Errorf("proto: MsgAddPriceFeeders: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAggregateExchangeRateVote: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgAddPriceFeeders: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Salt", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2877,11 +5972,11 @@ func (m *MsgAggregateExchangeRateVote) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Salt = string(dAtA[iNdEx:postIndex]) + m.Authority = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExchangeRates", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Feeders", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2909,11 +6004,111 @@ func (m *MsgAggregateExchangeRateVote) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ExchangeRates = string(dAtA[iNdEx:postIndex]) + m.Feeders = append(m.Feeders, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 3: + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgAddPriceFeedersResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgAddPriceFeedersResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAddPriceFeedersResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgRemovePriceFeeders) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRemovePriceFeeders: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRemovePriceFeeders: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Feeder", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2941,11 +6136,11 @@ func (m *MsgAggregateExchangeRateVote) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Feeder = string(dAtA[iNdEx:postIndex]) + m.Authority = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Feeders", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2973,7 +6168,7 @@ func (m *MsgAggregateExchangeRateVote) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Validator = string(dAtA[iNdEx:postIndex]) + m.Feeders = append(m.Feeders, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -2996,7 +6191,7 @@ func (m *MsgAggregateExchangeRateVote) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgAggregateExchangeRateVoteResponse) Unmarshal(dAtA []byte) error { +func (m *MsgRemovePriceFeedersResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3019,10 +6214,10 @@ func (m *MsgAggregateExchangeRateVoteResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgAggregateExchangeRateVoteResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgRemovePriceFeedersResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAggregateExchangeRateVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgRemovePriceFeedersResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -3046,7 +6241,7 @@ func (m *MsgAggregateExchangeRateVoteResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgDelegateFeedConsent) Unmarshal(dAtA []byte) error { +func (m *MsgCreateAssetInfo) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3069,15 +6264,15 @@ func (m *MsgDelegateFeedConsent) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgDelegateFeedConsent: wiretype end group for non-group") + return fmt.Errorf("proto: MsgCreateAssetInfo: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgDelegateFeedConsent: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgCreateAssetInfo: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3105,11 +6300,11 @@ func (m *MsgDelegateFeedConsent) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Operator = string(dAtA[iNdEx:postIndex]) + m.Creator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Delegate", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3137,8 +6332,123 @@ func (m *MsgDelegateFeedConsent) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Delegate = string(dAtA[iNdEx:postIndex]) + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Display", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Display = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BandTicker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BandTicker = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ElysTicker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ElysTicker = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Decimal", wireType) + } + m.Decimal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Decimal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -3160,7 +6470,7 @@ func (m *MsgDelegateFeedConsent) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgDelegateFeedConsentResponse) Unmarshal(dAtA []byte) error { +func (m *MsgCreateAssetInfoResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3183,10 +6493,10 @@ func (m *MsgDelegateFeedConsentResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgDelegateFeedConsentResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgCreateAssetInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgDelegateFeedConsentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgCreateAssetInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: From ec052ff8bd740121038766414f7dcb764ae10841 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 8 Jan 2025 14:59:45 -0500 Subject: [PATCH 06/77] take out gas estimate keeper in oracle --- app/app.go | 1 - x/oracle/abci/proposal.go | 107 --------------------------------- x/oracle/abci/voteextension.go | 21 ------- x/oracle/keeper/keeper.go | 33 +++++----- 4 files changed, 15 insertions(+), 147 deletions(-) diff --git a/app/app.go b/app/app.go index c69e14b3..64513892 100644 --- a/app/app.go +++ b/app/app.go @@ -429,7 +429,6 @@ func New( app.BankKeeper, app.DistrKeeper, app.StakingKeeper, - app.GasEstimateKeeper, distrtypes.ModuleName, cast.ToBool(appOpts.Get("telemetry.enabled")), authtypes.NewModuleAddress(govtypes.ModuleName).String(), diff --git a/x/oracle/abci/proposal.go b/x/oracle/abci/proposal.go index 5bc1db7c..42892d7a 100644 --- a/x/oracle/abci/proposal.go +++ b/x/oracle/abci/proposal.go @@ -73,14 +73,9 @@ func (h *ProposalHandler) PrepareProposalHandler() sdk.PrepareProposalHandler { return &cometabci.ResponsePrepareProposal{Txs: make([][]byte, 0)}, err } - medianGasEstimates, err := h.generateMedianGasEstimates(ctx, req.LocalLastCommit) - if err != nil { - return &cometabci.ResponsePrepareProposal{Txs: make([][]byte, 0)}, err - } injectedVoteExtTx := oracletypes.InjectedVoteExtensionTx{ ExchangeRateVotes: exchangeRateVotes, ExtendedCommitInfo: extendedCommitInfoBz, - GasEstimateMedians: medianGasEstimates, } bz, err := injectedVoteExtTx.Marshal() @@ -176,14 +171,6 @@ func (h *ProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHandler { if err := h.verifyExchangeRateVotes(injectedVoteExtTx.ExchangeRateVotes, exchangeRateVotes); err != nil { return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, err } - // Verify the proposer's gas estimation by computing the same median. - gasEstimateMedians, err := h.generateMedianGasEstimates(ctx, extendedCommitInfo) - if err != nil { - return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, err - } - if err := h.verifyMedianGasEstimations(injectedVoteExtTx.GasEstimateMedians, gasEstimateMedians); err != nil { - return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, err - } } h.logger.Info( @@ -266,97 +253,3 @@ func (h *ProposalHandler) verifyExchangeRateVotes( return nil } - -func (h *ProposalHandler) generateMedianGasEstimates( - ctx sdk.Context, - ci cometabci.ExtendedCommitInfo, -) ([]oracletypes.GasEstimate, error) { - gasEstimates := []oracletypes.GasEstimate{} - - for _, vote := range ci.Votes { - if vote.BlockIdFlag != cmtproto.BlockIDFlagCommit { - continue - } - - var valConsAddr sdk.ConsAddress - if err := valConsAddr.Unmarshal(vote.Validator.Address); err != nil { - h.logger.Error( - "failed to unmarshal validator consensus address", - "err", err, - ) - return gasEstimates, err - } - val, err := h.stakingKeeper.GetValidatorByConsAddr(ctx, valConsAddr) - if err != nil { - h.logger.Error( - "failed to get consensus validator from staking keeper", - "err", err, - ) - return gasEstimates, err - } - _, err = sdk.ValAddressFromBech32(val.OperatorAddress) - if err != nil { - return gasEstimates, err - } - } - - networks := []string{} - // get contracts on registry list - params := h.oracleKeeper.GasEstimateKeeper.GetParams(ctx) - for _, contract := range params.ContractRegistry { - networks = append(networks, contract.Network) - } - - for _, network := range networks { - networkEstimates := []oracletypes.GasEstimate{} - - for _, vote := range ci.Votes { - var voteExt oracletypes.OracleVoteExtension - if err := voteExt.Unmarshal(vote.VoteExtension); err != nil { - h.logger.Error( - "failed to decode vote extension", - "err", err, - ) - continue - } - - for _, estimate := range voteExt.GasEstimates { - if estimate.Network == network { - networkEstimates = append(networkEstimates, estimate) - } - } - } - - median, err := calculateMedian(networkEstimates) - if err != nil { - continue - } - gasEstimates = append(gasEstimates, median) - } - - return gasEstimates, nil -} - -func (h *ProposalHandler) verifyMedianGasEstimations( - injectedEstimates []oracletypes.GasEstimate, - generatedEstimates []oracletypes.GasEstimate, -) error { - if len(injectedEstimates) != len(generatedEstimates) { - return oracletypes.ErrNonEqualInjVotesLen - } - - for i := range injectedEstimates { - injectedEstimate := injectedEstimates[i] - generatedEstimate := generatedEstimates[i] - - if injectedEstimate.Network != generatedEstimate.Network { - return oracletypes.ErrNonEqualInjVotesRates - } - - if injectedEstimate.GasEstimation != generatedEstimate.GasEstimation { - return oracletypes.ErrNonEqualInjVotesRates - } - } - - return nil -} diff --git a/x/oracle/abci/voteextension.go b/x/oracle/abci/voteextension.go index e4da6a30..5f864cc2 100644 --- a/x/oracle/abci/voteextension.go +++ b/x/oracle/abci/voteextension.go @@ -7,7 +7,6 @@ import ( cometabci "github.com/cometbft/cometbft/abci/types" sdk "github.com/cosmos/cosmos-sdk/types" - relayerClient "github.com/ojo-network/ojo-evm/relayer/relayer/client" "github.com/ojo-network/ojo/x/oracle/keeper" "github.com/ojo-network/ojo/x/oracle/types" "github.com/ojo-network/price-feeder/oracle" @@ -82,29 +81,9 @@ func (h *VoteExtensionHandler) ExtendVoteHandler() sdk.ExtendVoteHandler { } } - gasEstimates := []types.GasEstimate{} - estimateParams := h.oracleKeeper.GasEstimateKeeper.GetParams(ctx) - for _, contract := range estimateParams.ContractRegistry { - resp, err := relayerClient.EstimateGasFee( - contract.Network, - contract.Address, - estimateParams.GasLimit, - estimateParams.GasAdjustment, - ) - if err != nil { - h.logger.Error("error estimating gas fee", "error", err) - continue - } - gasEstimates = append(gasEstimates, types.GasEstimate{ - GasEstimation: resp.Int64(), - Network: contract.Network, - }) - } - voteExt := types.OracleVoteExtension{ Height: req.Height, ExchangeRates: filteredDecCoins, - GasEstimates: gasEstimates, } bz, err := voteExt.Marshal() diff --git a/x/oracle/keeper/keeper.go b/x/oracle/keeper/keeper.go index 05a9fbc8..f9ef8f5f 100644 --- a/x/oracle/keeper/keeper.go +++ b/x/oracle/keeper/keeper.go @@ -25,11 +25,10 @@ type Keeper struct { storeKey storetypes.StoreKey paramSpace paramstypes.Subspace - accountKeeper types.AccountKeeper - bankKeeper types.BankKeeper - distrKeeper types.DistributionKeeper - StakingKeeper types.StakingKeeper - GasEstimateKeeper types.GasEstimateKeeper + accountKeeper types.AccountKeeper + bankKeeper types.BankKeeper + distrKeeper types.DistributionKeeper + StakingKeeper types.StakingKeeper PriceFeeder *pricefeeder.PriceFeeder @@ -49,7 +48,6 @@ func NewKeeper( bankKeeper types.BankKeeper, distrKeeper types.DistributionKeeper, stakingKeeper types.StakingKeeper, - gasEstimateKeeper types.GasEstimateKeeper, distrName string, telemetryEnabled bool, authority string, @@ -65,18 +63,17 @@ func NewKeeper( } return Keeper{ - cdc: cdc, - storeKey: storeKey, - paramSpace: paramspace, - accountKeeper: accountKeeper, - bankKeeper: bankKeeper, - distrKeeper: distrKeeper, - StakingKeeper: stakingKeeper, - GasEstimateKeeper: gasEstimateKeeper, - PriceFeeder: &pricefeeder.PriceFeeder{}, - distrName: distrName, - telemetryEnabled: telemetryEnabled, - authority: authority, + cdc: cdc, + storeKey: storeKey, + paramSpace: paramspace, + accountKeeper: accountKeeper, + bankKeeper: bankKeeper, + distrKeeper: distrKeeper, + StakingKeeper: stakingKeeper, + PriceFeeder: &pricefeeder.PriceFeeder{}, + distrName: distrName, + telemetryEnabled: telemetryEnabled, + authority: authority, } } From e8f43014132b311ac46ca1fdf1ae78c81895cd70 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 8 Jan 2025 15:09:02 -0500 Subject: [PATCH 07/77] take out more gas estimate stuff --- app/preblocker.go | 9 - proto/ojo/oracle/v1/abci.proto | 8 - x/oracle/abci/proposal_test.go | 13 -- x/oracle/abci/util.go | 23 -- x/oracle/types/abci.pb.go | 357 +++--------------------------- x/oracle/types/expected_keeper.go | 5 - 6 files changed, 25 insertions(+), 390 deletions(-) diff --git a/app/preblocker.go b/app/preblocker.go index 0df1c144..9e7d2221 100644 --- a/app/preblocker.go +++ b/app/preblocker.go @@ -8,8 +8,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ojo-network/ojo/x/oracle/abci" "github.com/ojo-network/ojo/x/oracle/types" - - gasestimatetypes "github.com/ojo-network/ojo/x/gasestimate/types" ) // PreBlocker is run before finalize block to update the aggregrate exchange rate votes on the oracle module @@ -60,13 +58,6 @@ func (app *App) PreBlocker(ctx sdk.Context, req *cometabci.RequestFinalizeBlock) } app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr, exchangeRateVote) } - for _, gasEstimate := range injectedVoteExtTx.GasEstimateMedians { - app.GasEstimateKeeper.SetGasEstimate(ctx, gasestimatetypes.GasEstimate{ - Network: gasEstimate.Network, - GasEstimate: gasEstimate.GasEstimation, - }) - } - app.Logger().Info("gas estimates updated", "gasestimates", injectedVoteExtTx.GasEstimateMedians) } app.Logger().Info( diff --git a/proto/ojo/oracle/v1/abci.proto b/proto/ojo/oracle/v1/abci.proto index 88605425..2272d02a 100644 --- a/proto/ojo/oracle/v1/abci.proto +++ b/proto/ojo/oracle/v1/abci.proto @@ -17,7 +17,6 @@ message OracleVoteExtension { (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false ]; - repeated GasEstimate gas_estimates = 3 [(gogoproto.nullable) = false]; } // InjectedVoteExtensionTx defines the vote extension tx injected by the prepare @@ -27,11 +26,4 @@ message InjectedVoteExtensionTx { (gogoproto.nullable) = false ]; bytes extended_commit_info = 2; - repeated GasEstimate gas_estimate_medians = 3 [(gogoproto.nullable) = false]; -} - -// GasEstimate defines a gas estimate for a given network. -message GasEstimate { - int64 gas_estimation = 1; - string network = 2; } diff --git a/x/oracle/abci/proposal_test.go b/x/oracle/abci/proposal_test.go index 1099312f..21fc3e36 100644 --- a/x/oracle/abci/proposal_test.go +++ b/x/oracle/abci/proposal_test.go @@ -21,17 +21,6 @@ import ( oracletypes "github.com/ojo-network/ojo/x/oracle/types" ) -var testGasEstimates = []oracletypes.GasEstimate{ - { - GasEstimation: 300, - Network: "Ethereum", - }, - { - GasEstimation: 100, - Network: "Arbitrum", - }, -} - func (s *IntegrationTestSuite) TestPrepareProposalHandler() { app, ctx, keys := s.app, s.ctx, s.keys @@ -183,7 +172,6 @@ func (s *IntegrationTestSuite) TestProcessProposalHandler() { injectedVoteExtTx := oracletypes.InjectedVoteExtensionTx{ ExchangeRateVotes: exchangeRateVotes, ExtendedCommitInfo: localCommitInfoBz, - GasEstimateMedians: testGasEstimates, } bz, err := injectedVoteExtTx.Marshal() s.Require().NoError(err) @@ -320,7 +308,6 @@ func buildLocalCommitInfo( voteExt := oracletypes.OracleVoteExtension{ ExchangeRates: exchangeRates, Height: ctx.BlockHeight(), - GasEstimates: testGasEstimates, } bz, err := voteExt.Marshal() if err != nil { diff --git a/x/oracle/abci/util.go b/x/oracle/abci/util.go index 74e3eced..18758237 100644 --- a/x/oracle/abci/util.go +++ b/x/oracle/abci/util.go @@ -1,11 +1,7 @@ package abci import ( - "fmt" - "sort" - sdk "github.com/cosmos/cosmos-sdk/types" - oracletypes "github.com/ojo-network/ojo/x/oracle/types" ) // VoteExtensionsEnabled determines if vote extensions are enabled for the current block. @@ -25,22 +21,3 @@ func VoteExtensionsEnabled(ctx sdk.Context) bool { return cp.Abci.VoteExtensionsEnableHeight < ctx.BlockHeight() } - -func calculateMedian(gasEstimates []oracletypes.GasEstimate) (median oracletypes.GasEstimate, err error) { - if len(gasEstimates) == 0 { - return oracletypes.GasEstimate{}, fmt.Errorf("cannot calculate median of empty slice") - } - - sort.Slice(gasEstimates, func(i, j int) bool { - return gasEstimates[i].GasEstimation < gasEstimates[j].GasEstimation - }) - - mid := len(gasEstimates) / 2 - if len(gasEstimates)%2 == 0 { - return oracletypes.GasEstimate{ - GasEstimation: (gasEstimates[mid-1].GasEstimation + gasEstimates[mid].GasEstimation) / 2, - Network: gasEstimates[mid-1].Network, // or gasEstimates[mid].Network, choose consistently - }, nil - } - return gasEstimates[mid], nil -} diff --git a/x/oracle/types/abci.pb.go b/x/oracle/types/abci.pb.go index e74a793c..d4accf5e 100644 --- a/x/oracle/types/abci.pb.go +++ b/x/oracle/types/abci.pb.go @@ -30,7 +30,6 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type OracleVoteExtension struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` ExchangeRates github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=exchange_rates,json=exchangeRates,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"exchange_rates"` - GasEstimates []GasEstimate `protobuf:"bytes,3,rep,name=gas_estimates,json=gasEstimates,proto3" json:"gas_estimates"` } func (m *OracleVoteExtension) Reset() { *m = OracleVoteExtension{} } @@ -71,7 +70,6 @@ var xxx_messageInfo_OracleVoteExtension proto.InternalMessageInfo type InjectedVoteExtensionTx struct { ExchangeRateVotes []AggregateExchangeRateVote `protobuf:"bytes,1,rep,name=exchange_rate_votes,json=exchangeRateVotes,proto3" json:"exchange_rate_votes"` ExtendedCommitInfo []byte `protobuf:"bytes,2,opt,name=extended_commit_info,json=extendedCommitInfo,proto3" json:"extended_commit_info,omitempty"` - GasEstimateMedians []GasEstimate `protobuf:"bytes,3,rep,name=gas_estimate_medians,json=gasEstimateMedians,proto3" json:"gas_estimate_medians"` } func (m *InjectedVoteExtensionTx) Reset() { *m = InjectedVoteExtensionTx{} } @@ -107,84 +105,39 @@ func (m *InjectedVoteExtensionTx) XXX_DiscardUnknown() { var xxx_messageInfo_InjectedVoteExtensionTx proto.InternalMessageInfo -// GasEstimate defines a gas estimate for a given network. -type GasEstimate struct { - GasEstimation int64 `protobuf:"varint,1,opt,name=gas_estimation,json=gasEstimation,proto3" json:"gas_estimation,omitempty"` - Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"` -} - -func (m *GasEstimate) Reset() { *m = GasEstimate{} } -func (m *GasEstimate) String() string { return proto.CompactTextString(m) } -func (*GasEstimate) ProtoMessage() {} -func (*GasEstimate) Descriptor() ([]byte, []int) { - return fileDescriptor_a17fd58ec0319b85, []int{2} -} -func (m *GasEstimate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GasEstimate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GasEstimate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GasEstimate) XXX_Merge(src proto.Message) { - xxx_messageInfo_GasEstimate.Merge(m, src) -} -func (m *GasEstimate) XXX_Size() int { - return m.Size() -} -func (m *GasEstimate) XXX_DiscardUnknown() { - xxx_messageInfo_GasEstimate.DiscardUnknown(m) -} - -var xxx_messageInfo_GasEstimate proto.InternalMessageInfo - func init() { proto.RegisterType((*OracleVoteExtension)(nil), "ojo.oracle.v1.OracleVoteExtension") proto.RegisterType((*InjectedVoteExtensionTx)(nil), "ojo.oracle.v1.InjectedVoteExtensionTx") - proto.RegisterType((*GasEstimate)(nil), "ojo.oracle.v1.GasEstimate") } func init() { proto.RegisterFile("ojo/oracle/v1/abci.proto", fileDescriptor_a17fd58ec0319b85) } var fileDescriptor_a17fd58ec0319b85 = []byte{ - // 463 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcf, 0x6e, 0xd3, 0x40, - 0x10, 0xc6, 0xe3, 0x16, 0x15, 0xb1, 0x6d, 0x2a, 0xb1, 0x8d, 0xc0, 0x8a, 0x90, 0x1b, 0x45, 0x42, - 0x0a, 0x42, 0x5d, 0x13, 0xfa, 0x04, 0xa4, 0x44, 0x55, 0x0f, 0x80, 0x64, 0x21, 0x0e, 0x1c, 0xb0, - 0xd6, 0xf6, 0x74, 0xb3, 0x29, 0xde, 0xa9, 0xbc, 0x4b, 0x30, 0x6f, 0xc1, 0x73, 0xf0, 0x24, 0x39, - 0xf6, 0xc8, 0x89, 0x3f, 0xc9, 0x9d, 0x57, 0x00, 0xed, 0xda, 0x56, 0x9c, 0x9e, 0x38, 0x79, 0x77, - 0xbf, 0x99, 0xf9, 0x7d, 0xe3, 0x19, 0xe2, 0xe3, 0x1c, 0x43, 0x2c, 0x78, 0xfa, 0x11, 0xc2, 0xc5, - 0x38, 0xe4, 0x49, 0x2a, 0xd9, 0x75, 0x81, 0x06, 0x69, 0x17, 0xe7, 0xc8, 0x2a, 0x85, 0x2d, 0xc6, - 0xfd, 0x9e, 0x40, 0x81, 0x4e, 0x09, 0xed, 0xa9, 0x0a, 0xea, 0x07, 0x29, 0xea, 0x1c, 0x75, 0x98, - 0x70, 0x6d, 0xf3, 0x13, 0x30, 0x7c, 0x1c, 0xa6, 0x28, 0x55, 0xad, 0xf7, 0xb7, 0xcb, 0xd7, 0xe5, - 0x9c, 0x36, 0xfc, 0xe3, 0x91, 0xa3, 0x37, 0xee, 0xe1, 0x1d, 0x1a, 0x98, 0x96, 0x06, 0x94, 0x96, - 0xa8, 0xe8, 0x03, 0xb2, 0x37, 0x03, 0x29, 0x66, 0xc6, 0xf7, 0x06, 0xde, 0x68, 0x37, 0xaa, 0x6f, - 0xb4, 0x24, 0x87, 0x50, 0xa6, 0x33, 0xae, 0x04, 0xc4, 0x05, 0x37, 0xa0, 0xfd, 0x9d, 0xc1, 0xee, - 0x68, 0xff, 0xf9, 0x23, 0x56, 0x99, 0x60, 0xd6, 0x04, 0xab, 0x4d, 0xb0, 0x97, 0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, 0xd5, 0x2e, 0x84, 0x4f, 0xee, 0x2a, 0x30, 0x9f, 0xb1, 0xb8, 0x72, 0x76, 0xef, 0x45, - 0xcd, 0x75, 0x72, 0xbe, 0xfc, 0x1d, 0x74, 0x96, 0xab, 0xc0, 0xbb, 0x59, 0x05, 0xde, 0xaf, 0x55, - 0xe0, 0x7d, 0x5d, 0x07, 0x9d, 0x9b, 0x75, 0xd0, 0xf9, 0xbe, 0x0e, 0x3a, 0xef, 0x9f, 0xb4, 0x46, - 0x8e, 0x73, 0x3c, 0xa9, 0xb3, 0xec, 0x39, 0x2c, 0x9b, 0xad, 0x74, 0x93, 0x4f, 0xf6, 0xdc, 0x4a, - 0x9e, 0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xff, 0x98, 0x69, 0xf4, 0x0f, 0x03, 0x00, 0x00, + // 382 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0xcf, 0x8e, 0xd3, 0x30, + 0x10, 0xc6, 0xe3, 0x5d, 0xb4, 0x87, 0xc0, 0x22, 0x91, 0x5d, 0x41, 0x54, 0x21, 0x6f, 0xb5, 0xa7, + 0x20, 0xb4, 0x36, 0x65, 0x9f, 0x80, 0x2e, 0x08, 0xf5, 0x84, 0x14, 0x21, 0x0e, 0x1c, 0x88, 0x12, + 0x67, 0xea, 0x38, 0x25, 0x9e, 0x2a, 0x36, 0x25, 0xbc, 0x05, 0x6f, 0x81, 0x04, 0x2f, 0xd2, 0x63, + 0x8f, 0x9c, 0xf8, 0xd3, 0xbe, 0x08, 0x72, 0xfe, 0x08, 0xc2, 0x29, 0x93, 0xf9, 0x3c, 0xdf, 0xfc, + 0xf4, 0x8d, 0x1f, 0x62, 0x89, 0x1c, 0xeb, 0x54, 0xbc, 0x07, 0xbe, 0x99, 0xf1, 0x34, 0x13, 0x8a, + 0xad, 0x6b, 0xb4, 0x18, 0x9c, 0x62, 0x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f, 0x83, 0xff, + 0xfa, 0x26, 0x78, 0xe2, 0x9f, 0x83, 0x5b, 0x97, 0x43, 0x9e, 0x08, 0xac, 0x2a, 0x65, 0x13, 0xa5, + 0x97, 0x18, 0x1e, 0x4d, 0x49, 0x74, 0x27, 0x0e, 0x06, 0xed, 0xa6, 0x95, 0x16, 0x7a, 0x89, 0xf3, + 0x97, 0xdb, 0xdf, 0xd4, 0xdb, 0xee, 0x29, 0xd9, 0xed, 0x29, 0xf9, 0xb5, 0xa7, 0xe4, 0xf3, 0x81, + 0x7a, 0xbb, 0x03, 0xf5, 0xbe, 0x1f, 0xa8, 0xf7, 0xf6, 0xd1, 0x3f, 0x39, 0x60, 0x89, 0x57, 0x1a, + 0xec, 0x47, 0xac, 0x57, 0xae, 0xe6, 0xcd, 0x70, 0xaa, 0x36, 0x8e, 0xec, 0xa4, 0xbd, 0xd3, 0xf5, + 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4e, 0x73, 0x9c, 0xa3, 0x24, 0x02, 0x00, 0x00, } func (m *OracleVoteExtension) Marshal() (dAtA []byte, err error) { @@ -207,20 +160,6 @@ func (m *OracleVoteExtension) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.GasEstimates) > 0 { - for iNdEx := len(m.GasEstimates) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.GasEstimates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAbci(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } if len(m.ExchangeRates) > 0 { for iNdEx := len(m.ExchangeRates) - 1; iNdEx >= 0; iNdEx-- { { @@ -263,20 +202,6 @@ func (m *InjectedVoteExtensionTx) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l - if len(m.GasEstimateMedians) > 0 { - for iNdEx := len(m.GasEstimateMedians) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.GasEstimateMedians[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintAbci(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } if len(m.ExtendedCommitInfo) > 0 { i -= len(m.ExtendedCommitInfo) copy(dAtA[i:], m.ExtendedCommitInfo) @@ -301,41 +226,6 @@ func (m *InjectedVoteExtensionTx) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *GasEstimate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GasEstimate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GasEstimate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Network) > 0 { - i -= len(m.Network) - copy(dAtA[i:], m.Network) - i = encodeVarintAbci(dAtA, i, uint64(len(m.Network))) - i-- - dAtA[i] = 0x12 - } - if m.GasEstimation != 0 { - i = encodeVarintAbci(dAtA, i, uint64(m.GasEstimation)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - func encodeVarintAbci(dAtA []byte, offset int, v uint64) int { offset -= sovAbci(v) base := offset @@ -362,12 +252,6 @@ func (m *OracleVoteExtension) Size() (n int) { n += 1 + l + sovAbci(uint64(l)) } } - if len(m.GasEstimates) > 0 { - for _, e := range m.GasEstimates { - l = e.Size() - n += 1 + l + sovAbci(uint64(l)) - } - } return n } @@ -387,28 +271,6 @@ func (m *InjectedVoteExtensionTx) Size() (n int) { if l > 0 { n += 1 + l + sovAbci(uint64(l)) } - if len(m.GasEstimateMedians) > 0 { - for _, e := range m.GasEstimateMedians { - l = e.Size() - n += 1 + l + sovAbci(uint64(l)) - } - } - return n -} - -func (m *GasEstimate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.GasEstimation != 0 { - n += 1 + sovAbci(uint64(m.GasEstimation)) - } - l = len(m.Network) - if l > 0 { - n += 1 + l + sovAbci(uint64(l)) - } return n } @@ -500,40 +362,6 @@ func (m *OracleVoteExtension) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GasEstimates", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAbci - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GasEstimates = append(m.GasEstimates, GasEstimate{}) - if err := m.GasEstimates[len(m.GasEstimates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipAbci(dAtA[iNdEx:]) @@ -652,141 +480,6 @@ func (m *InjectedVoteExtensionTx) Unmarshal(dAtA []byte) error { m.ExtendedCommitInfo = []byte{} } iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GasEstimateMedians", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAbci - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GasEstimateMedians = append(m.GasEstimateMedians, GasEstimate{}) - if err := m.GasEstimateMedians[len(m.GasEstimateMedians)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAbci(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAbci - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GasEstimate) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GasEstimate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GasEstimate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GasEstimation", wireType) - } - m.GasEstimation = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GasEstimation |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAbci - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAbci - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAbci - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Network = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipAbci(dAtA[iNdEx:]) diff --git a/x/oracle/types/expected_keeper.go b/x/oracle/types/expected_keeper.go index 9e3879ad..153aad3d 100644 --- a/x/oracle/types/expected_keeper.go +++ b/x/oracle/types/expected_keeper.go @@ -8,7 +8,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - gasestimatetypes "github.com/ojo-network/ojo/x/gasestimate/types" ) // StakingKeeper defines the expected interface contract defined by the x/staking @@ -50,7 +49,3 @@ type BankKeeper interface { GetDenomMetaData(ctx context.Context, denom string) (banktypes.Metadata, bool) SetDenomMetaData(ctx context.Context, denomMetaData banktypes.Metadata) } - -type GasEstimateKeeper interface { - GetParams(ctx sdk.Context) (params gasestimatetypes.Params) -} From eb0c1a763d59222c5533135a79afcebe52e6824d Mon Sep 17 00:00:00 2001 From: rbajollari Date: Thu, 9 Jan 2025 09:54:44 -0500 Subject: [PATCH 08/77] price queries --- proto/ojo/oracle/v1/query.proto | 29 + x/oracle/client/cli/query.go | 56 ++ x/oracle/keeper/grpc_query.go | 44 ++ x/oracle/types/query.pb.go | 951 +++++++++++++++++++++++++++++--- x/oracle/types/query.pb.gw.go | 184 ++++++ 5 files changed, 1178 insertions(+), 86 deletions(-) diff --git a/proto/ojo/oracle/v1/query.proto b/proto/ojo/oracle/v1/query.proto index 061770b6..4f497507 100644 --- a/proto/ojo/oracle/v1/query.proto +++ b/proto/ojo/oracle/v1/query.proto @@ -4,6 +4,7 @@ package ojo.oracle.v1; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "ojo/oracle/v1/oracle.proto"; +import "ojo/oracle/v1/elys.proto"; import "cosmos/base/v1beta1/coin.proto"; option go_package = "github.com/ojo-network/ojo/x/oracle/types"; @@ -97,6 +98,18 @@ service Query { option (google.api.http).get = "/ojo/oracle/v1/valdiators/validator_reward_set"; } + + // Queries a Price by asset. + rpc Price(QueryGetPriceRequest) + returns (QueryGetPriceResponse) { + option (google.api.http).get = "/elys-network/elys/oracle/price/{asset}"; + } + + // Queries a list of Price items. + rpc PriceAll(QueryAllPriceRequest) + returns (QueryAllPriceResponse) { + option (google.api.http).get = "/elys-network/elys/oracle/prices"; + } } // QueryExchangeRates is the request type for the Query/ExchangeRate RPC @@ -291,3 +304,19 @@ message QueryValidatorRewardSet {} message QueryValidatorRewardSetResponse { ValidatorRewardSet validators = 1 [(gogoproto.nullable) = false]; } + +message QueryGetPriceRequest { + string asset = 1; + string source = 2; + uint64 timestamp = 3; +} + +message QueryGetPriceResponse { + Price price = 1 [ (gogoproto.nullable) = false ]; +} + +message QueryAllPriceRequest {} + +message QueryAllPriceResponse { + repeated Price price = 1 [ (gogoproto.nullable) = false ]; +} diff --git a/x/oracle/client/cli/query.go b/x/oracle/client/cli/query.go index 9f940be3..0e5bfb94 100644 --- a/x/oracle/client/cli/query.go +++ b/x/oracle/client/cli/query.go @@ -32,6 +32,8 @@ func GetQueryCmd() *cobra.Command { GetCmdQueryFeederDelegation(), GetCmdQueryMissCounter(), GetCmdQuerySlashWindow(), + GetCmdListPrice(), + CmdShowPrice(), ) return cmd @@ -277,3 +279,57 @@ func GetCmdQuerySlashWindow() *cobra.Command { flags.AddQueryFlagsToCmd(cmd) return cmd } + +func GetCmdListPrice() *cobra.Command { + cmd := &cobra.Command{ + Use: "list-price", + Short: "list all price", + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + queryClient := types.NewQueryClient(clientCtx) + + res, err := queryClient.PriceAll(cmd.Context(), &types.QueryAllPriceRequest{}) + return cli.PrintOrErr(res, err, clientCtx) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + return cmd +} + +func CmdShowPrice() *cobra.Command { + cmd := &cobra.Command{ + Use: "show-price [asset] [source] [timestamp]", + Short: "shows a price", + Args: cobra.ExactArgs(3), + RunE: func(cmd *cobra.Command, args []string) (err error) { + clientCtx := client.GetClientContextFromCmd(cmd) + + timestamp, err := cmd.Flags().GetUint64(args[2]) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + params := &types.QueryGetPriceRequest{ + Asset: args[0], + Source: args[1], + Timestamp: timestamp, + } + + res, err := queryClient.Price(cmd.Context(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/oracle/keeper/grpc_query.go b/x/oracle/keeper/grpc_query.go index 200db541..ea5f5377 100644 --- a/x/oracle/keeper/grpc_query.go +++ b/x/oracle/keeper/grpc_query.go @@ -328,3 +328,47 @@ func (q querier) ValidatorRewardSet( Validators: validatorRewardSet, }, nil } + +func (q querier) PriceAll(goCtx context.Context, req *types.QueryAllPriceRequest) (*types.QueryAllPriceResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + prices := q.GetAllPrice(ctx) + + return &types.QueryAllPriceResponse{Price: prices}, nil +} + +func (q querier) Price(goCtx context.Context, req *types.QueryGetPriceRequest) (*types.QueryGetPriceResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + ctx := sdk.UnwrapSDKContext(goCtx) + + // if both source and timestamp are defined, use specific value + if req.Source != "" && req.Timestamp != 0 { + val, found := q.GetPrice(ctx, req.Asset, req.Source, req.Timestamp) + if !found { + return nil, status.Error(codes.NotFound, "not found") + } + return &types.QueryGetPriceResponse{Price: val}, nil + } + + // if source is specified use latest price from source + if req.Source != "" { + val, found := q.GetLatestPriceFromAssetAndSource(ctx, req.Asset, req.Source) + if !found { + return nil, status.Error(codes.NotFound, "not found") + } + return &types.QueryGetPriceResponse{Price: val}, nil + } + + // find from any source if band source does not exist + val, found := q.GetLatestPriceFromAnySource(ctx, req.Asset) + if !found { + return nil, status.Error(codes.NotFound, "not found") + } + return &types.QueryGetPriceResponse{Price: val}, nil +} diff --git a/x/oracle/types/query.pb.go b/x/oracle/types/query.pb.go index cb68bd3e..7efa1bcf 100644 --- a/x/oracle/types/query.pb.go +++ b/x/oracle/types/query.pb.go @@ -1063,6 +1063,155 @@ func (m *QueryValidatorRewardSetResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryValidatorRewardSetResponse proto.InternalMessageInfo +type QueryGetPriceRequest struct { + Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` + Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` + Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (m *QueryGetPriceRequest) Reset() { *m = QueryGetPriceRequest{} } +func (m *QueryGetPriceRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetPriceRequest) ProtoMessage() {} +func (*QueryGetPriceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{26} +} +func (m *QueryGetPriceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetPriceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGetPriceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetPriceRequest.Merge(m, src) +} +func (m *QueryGetPriceRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetPriceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetPriceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetPriceRequest proto.InternalMessageInfo + +type QueryGetPriceResponse struct { + Price Price `protobuf:"bytes,1,opt,name=price,proto3" json:"price"` +} + +func (m *QueryGetPriceResponse) Reset() { *m = QueryGetPriceResponse{} } +func (m *QueryGetPriceResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetPriceResponse) ProtoMessage() {} +func (*QueryGetPriceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{27} +} +func (m *QueryGetPriceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetPriceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGetPriceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetPriceResponse.Merge(m, src) +} +func (m *QueryGetPriceResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetPriceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetPriceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetPriceResponse proto.InternalMessageInfo + +type QueryAllPriceRequest struct { +} + +func (m *QueryAllPriceRequest) Reset() { *m = QueryAllPriceRequest{} } +func (m *QueryAllPriceRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllPriceRequest) ProtoMessage() {} +func (*QueryAllPriceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{28} +} +func (m *QueryAllPriceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllPriceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllPriceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllPriceRequest.Merge(m, src) +} +func (m *QueryAllPriceRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllPriceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllPriceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllPriceRequest proto.InternalMessageInfo + +type QueryAllPriceResponse struct { + Price []Price `protobuf:"bytes,1,rep,name=price,proto3" json:"price"` +} + +func (m *QueryAllPriceResponse) Reset() { *m = QueryAllPriceResponse{} } +func (m *QueryAllPriceResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllPriceResponse) ProtoMessage() {} +func (*QueryAllPriceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{29} +} +func (m *QueryAllPriceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllPriceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllPriceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllPriceResponse.Merge(m, src) +} +func (m *QueryAllPriceResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllPriceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllPriceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllPriceResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*QueryExchangeRates)(nil), "ojo.oracle.v1.QueryExchangeRates") proto.RegisterType((*QueryExchangeRatesResponse)(nil), "ojo.oracle.v1.QueryExchangeRatesResponse") @@ -1090,89 +1239,103 @@ func init() { proto.RegisterType((*QueryMedianDeviationsResponse)(nil), "ojo.oracle.v1.QueryMedianDeviationsResponse") proto.RegisterType((*QueryValidatorRewardSet)(nil), "ojo.oracle.v1.QueryValidatorRewardSet") proto.RegisterType((*QueryValidatorRewardSetResponse)(nil), "ojo.oracle.v1.QueryValidatorRewardSetResponse") + proto.RegisterType((*QueryGetPriceRequest)(nil), "ojo.oracle.v1.QueryGetPriceRequest") + proto.RegisterType((*QueryGetPriceResponse)(nil), "ojo.oracle.v1.QueryGetPriceResponse") + proto.RegisterType((*QueryAllPriceRequest)(nil), "ojo.oracle.v1.QueryAllPriceRequest") + proto.RegisterType((*QueryAllPriceResponse)(nil), "ojo.oracle.v1.QueryAllPriceResponse") } func init() { proto.RegisterFile("ojo/oracle/v1/query.proto", fileDescriptor_ac3bb5b34dcda556) } var fileDescriptor_ac3bb5b34dcda556 = []byte{ - // 1225 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x97, 0x5b, 0x4f, 0x1b, 0x47, - 0x14, 0xc7, 0xbd, 0x69, 0x2e, 0xcd, 0x71, 0xec, 0x38, 0x13, 0x68, 0x60, 0x01, 0x1b, 0x96, 0xa4, - 0x40, 0x09, 0xbb, 0x35, 0x44, 0x8d, 0xe8, 0x4d, 0xe5, 0xd6, 0x54, 0xbd, 0x48, 0xc4, 0xa8, 0x44, - 0xea, 0x43, 0xdd, 0xc1, 0x3b, 0x35, 0x4b, 0xec, 0x1d, 0x77, 0x67, 0x31, 0x44, 0x69, 0x54, 0x29, - 0x4f, 0x7d, 0x8c, 0x84, 0xd4, 0x97, 0x3e, 0x94, 0x4a, 0x79, 0x69, 0xd5, 0x0f, 0xc2, 0x63, 0xa4, - 0xbe, 0xf4, 0xa9, 0x17, 0xe8, 0x43, 0x3f, 0x46, 0xe5, 0x99, 0xf1, 0x78, 0x6f, 0xc6, 0x26, 0x4f, - 0xe0, 0x73, 0xce, 0x9c, 0xff, 0x6f, 0xcf, 0xec, 0xcc, 0xdf, 0x86, 0x61, 0xba, 0x43, 0x2d, 0xea, - 0xe1, 0x4a, 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0x7f, 0xb7, 0x6e, 0x5d, 0xe4, 0xbf, 0xba, 0x17, 0xfe, 0x0f, 0x00, 0x00, 0xff, - 0xff, 0x00, 0x8d, 0x37, 0xdf, 0x11, 0x10, 0x00, 0x00, + // 1392 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x98, 0xcf, 0x6f, 0x13, 0x47, + 0x14, 0xc7, 0xb3, 0x40, 0x02, 0x79, 0xc6, 0x21, 0x19, 0x12, 0x30, 0x0b, 0xd8, 0xc9, 0x00, 0x4d, + 0xd2, 0x90, 0x5d, 0x42, 0x50, 0x11, 0xfd, 0xa5, 0x86, 0x84, 0xd2, 0x9f, 0x12, 0x18, 0x15, 0xa4, + 0x1e, 0xea, 0x6e, 0xbc, 0x53, 0x67, 0x83, 0xbd, 0x63, 0x76, 0x36, 0x0e, 0x88, 0x22, 0x24, 0x7a, + 0xe9, 0x11, 0x09, 0xa9, 0x97, 0x1e, 0x4a, 0x25, 0x4e, 0x55, 0x0f, 0xfd, 0x33, 0x38, 0x22, 0xf5, + 0xd2, 0x53, 0x7f, 0x40, 0x0f, 0xfd, 0x33, 0xaa, 0x9d, 0x99, 0x1d, 0xef, 0x8f, 0x71, 0xec, 0x70, + 0xb2, 0xf7, 0xbd, 0x37, 0xef, 0x7d, 0xe6, 0xcd, 0x8f, 0xfd, 0x6a, 0xe1, 0x18, 0xdd, 0xa4, 0x36, + 0x0d, 0x9c, 0x7a, 0x93, 0xd8, 0x9d, 0x25, 0xfb, 0xce, 0x16, 0x09, 0xee, 0x59, 0xed, 0x80, 0x86, + 0x14, 0x15, 0xe9, 0x26, 0xb5, 0x84, 0xcb, 0xea, 0x2c, 0x99, 0x93, 0x0d, 0xda, 0xa0, 0xdc, 0x63, + 0x47, 0xff, 0x44, 0x90, 0x79, 0xa2, 0x41, 0x69, 0xa3, 0x49, 0x6c, 0xa7, 0xed, 0xd9, 0x8e, 0x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0x74, 0x2d, 0x95, 0x23, 0xb9, 0x81, + 0x64, 0xbe, 0xcb, 0xfb, 0xa2, 0x2d, 0x5c, 0x1d, 0x77, 0x32, 0x75, 0x70, 0x09, 0x8e, 0x68, 0x01, + 0x18, 0x7e, 0x64, 0x40, 0x59, 0xef, 0x52, 0x70, 0x5f, 0x03, 0xca, 0xc1, 0xc5, 0x27, 0xea, 0x35, + 0xe8, 0x26, 0x9c, 0x1c, 0xc4, 0x15, 0x79, 0x09, 0xa8, 0xd1, 0x37, 0x5f, 0xab, 0xcd, 0x4c, 0x5e, + 0x0a, 0xa9, 0x34, 0x6a, 0x1a, 0x5f, 0xc0, 0x58, 0x77, 0x1a, 0x89, 0x06, 0xcf, 0x0d, 0x32, 0x85, + 0x9b, 0x5d, 0xfe, 0xa2, 0x93, 0x4c, 0x8f, 0xa7, 0xe0, 0x70, 0xbe, 0x28, 0xc3, 0x1d, 0x38, 0xae, + 0x31, 0x2b, 0x98, 0x5b, 0x70, 0x28, 0x0d, 0x13, 0x37, 0x74, 0xb7, 0x34, 0x63, 0x4e, 0xba, 0x6e, + 0x11, 0x0a, 0xbc, 0xee, 0x35, 0x27, 0x70, 0x5a, 0x0c, 0x7f, 0x22, 0xe9, 0xc4, 0xa3, 0x2a, 0xbf, + 0x0c, 0x23, 0x6d, 0x6e, 0x91, 0x3d, 0x98, 0xca, 0x54, 0x15, 0xe1, 0xb2, 0x84, 0x0c, 0xc5, 0x9f, + 0xc1, 0x41, 0x71, 0x4e, 0x89, 0xeb, 0x39, 0x7e, 0x8f, 0x4b, 0x1a, 0x9d, 0x80, 0x51, 0x7f, 0xab, + 0x75, 0x23, 0x74, 0x5a, 0x6d, 0x56, 0xda, 0x33, 0x6d, 0xcc, 0x15, 0xab, 0x5d, 0x43, 0x62, 0xb1, + 0xae, 0xc3, 0x64, 0x32, 0x9b, 0x42, 0xbb, 0x04, 0xfb, 0x5b, 0xc2, 0x24, 0x3b, 0x72, 0x2c, 0xcb, + 0x16, 0x78,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c, 0x16, 0xe9, 0x91, 0xef, 0x0c, 0x18, 0xe6, 0xaf, 0x70, 0xa4, + 0x5d, 0x9e, 0x8c, 0xa8, 0x31, 0x4f, 0xef, 0x1c, 0x24, 0x61, 0x6c, 0x0e, 0x33, 0x8f, 0x66, 0xf9, + 0x17, 0x8c, 0x45, 0x9f, 0x84, 0xdb, 0x34, 0xb8, 0xcd, 0x1f, 0x62, 0x34, 0xae, 0x14, 0xec, 0xfb, + 0x5c, 0x14, 0x3d, 0x40, 0x0f, 0xe1, 0x00, 0xcf, 0xb0, 0xd2, 0x6c, 0xea, 0x39, 0x32, 0x6a, 0x45, + 0xcf, 0x91, 0x95, 0x2e, 0x78, 0x8e, 0x73, 0x60, 0x34, 0xdd, 0x87, 0x83, 0x5d, 0xbe, 0xfa, 0xfc, + 0x9f, 0xf2, 0xd0, 0xf3, 0x97, 0x65, 0xe3, 0xc5, 0xcb, 0xb2, 0xf1, 0xf7, 0xcb, 0xb2, 0xf1, 0xf8, + 0x55, 0x79, 0xe8, 0xc5, 0xab, 0xf2, 0xd0, 0x1f, 0xaf, 0xca, 0x43, 0x5f, 0xce, 0x27, 0xbe, 0x64, + 0xd0, 0x4d, 0xaa, 0x12, 0x45, 0xad, 0xbe, 0x1b, 0x67, 0xe2, 0x1f, 0x34, 0xd6, 0x47, 0xf8, 0xe7, + 0x98, 0xe5, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xf4, 0x1d, 0x2b, 0xb3, 0x44, 0x12, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1218,6 +1381,10 @@ type QueryClient interface { // earning rewards for voting on exchange rates based on their // misscounter in a given Slash Window ValidatorRewardSet(ctx context.Context, in *QueryValidatorRewardSet, opts ...grpc.CallOption) (*QueryValidatorRewardSetResponse, error) + // Queries a Price by asset. + Price(ctx context.Context, in *QueryGetPriceRequest, opts ...grpc.CallOption) (*QueryGetPriceResponse, error) + // Queries a list of Price items. + PriceAll(ctx context.Context, in *QueryAllPriceRequest, opts ...grpc.CallOption) (*QueryAllPriceResponse, error) } type queryClient struct { @@ -1345,6 +1512,24 @@ func (c *queryClient) ValidatorRewardSet(ctx context.Context, in *QueryValidator return out, nil } +func (c *queryClient) Price(ctx context.Context, in *QueryGetPriceRequest, opts ...grpc.CallOption) (*QueryGetPriceResponse, error) { + out := new(QueryGetPriceResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/Price", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) PriceAll(ctx context.Context, in *QueryAllPriceRequest, opts ...grpc.CallOption) (*QueryAllPriceResponse, error) { + out := new(QueryAllPriceResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/PriceAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // ExchangeRates returns exchange rates of all denoms, @@ -1378,6 +1563,10 @@ type QueryServer interface { // earning rewards for voting on exchange rates based on their // misscounter in a given Slash Window ValidatorRewardSet(context.Context, *QueryValidatorRewardSet) (*QueryValidatorRewardSetResponse, error) + // Queries a Price by asset. + Price(context.Context, *QueryGetPriceRequest) (*QueryGetPriceResponse, error) + // Queries a list of Price items. + PriceAll(context.Context, *QueryAllPriceRequest) (*QueryAllPriceResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1423,6 +1612,12 @@ func (*UnimplementedQueryServer) MedianDeviations(ctx context.Context, req *Quer func (*UnimplementedQueryServer) ValidatorRewardSet(ctx context.Context, req *QueryValidatorRewardSet) (*QueryValidatorRewardSetResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidatorRewardSet not implemented") } +func (*UnimplementedQueryServer) Price(ctx context.Context, req *QueryGetPriceRequest) (*QueryGetPriceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Price not implemented") +} +func (*UnimplementedQueryServer) PriceAll(ctx context.Context, req *QueryAllPriceRequest) (*QueryAllPriceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PriceAll not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -1662,6 +1857,42 @@ func _Query_ValidatorRewardSet_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _Query_Price_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetPriceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Price(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Query/Price", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Price(ctx, req.(*QueryGetPriceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_PriceAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllPriceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).PriceAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Query/PriceAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PriceAll(ctx, req.(*QueryAllPriceRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "ojo.oracle.v1.Query", HandlerType: (*QueryServer)(nil), @@ -1718,6 +1949,14 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "ValidatorRewardSet", Handler: _Query_ValidatorRewardSet_Handler, }, + { + MethodName: "Price", + Handler: _Query_Price_Handler, + }, + { + MethodName: "PriceAll", + Handler: _Query_PriceAll_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "ojo/oracle/v1/query.proto", @@ -2511,6 +2750,141 @@ func (m *QueryValidatorRewardSetResponse) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } +func (m *QueryGetPriceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGetPriceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Timestamp != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x18 + } + if len(m.Source) > 0 { + i -= len(m.Source) + copy(dAtA[i:], m.Source) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Source))) + i-- + dAtA[i] = 0x12 + } + if len(m.Asset) > 0 { + i -= len(m.Asset) + copy(dAtA[i:], m.Asset) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Asset))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryGetPriceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGetPriceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Price.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryAllPriceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllPriceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryAllPriceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllPriceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Price) > 0 { + for iNdEx := len(m.Price) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Price[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -2841,15 +3215,70 @@ func (m *QueryValidatorRewardSetResponse) Size() (n int) { return n } -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func (m *QueryGetPriceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Asset) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Source) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Timestamp != 0 { + n += 1 + sovQuery(uint64(m.Timestamp)) + } + return n } -func (m *QueryExchangeRates) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 + +func (m *QueryGetPriceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Price.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAllPriceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryAllPriceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Price) > 0 { + for _, e := range m.Price { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryExchangeRates) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 @@ -4794,6 +5223,356 @@ func (m *QueryValidatorRewardSetResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryGetPriceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryGetPriceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetPriceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Asset = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Source = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetPriceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryGetPriceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetPriceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Price.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllPriceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAllPriceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllPriceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllPriceResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAllPriceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllPriceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Price = append(m.Price, Price{}) + if err := m.Price[len(m.Price)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/oracle/types/query.pb.gw.go b/x/oracle/types/query.pb.gw.go index 8f223b35..5f38267c 100644 --- a/x/oracle/types/query.pb.gw.go +++ b/x/oracle/types/query.pb.gw.go @@ -483,6 +483,96 @@ func local_request_Query_ValidatorRewardSet_0(ctx context.Context, marshaler run } +var ( + filter_Query_Price_0 = &utilities.DoubleArray{Encoding: map[string]int{"asset": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_Query_Price_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetPriceRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["asset"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "asset") + } + + protoReq.Asset, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "asset", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Price_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Price(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Price_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetPriceRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["asset"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "asset") + } + + protoReq.Asset, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "asset", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Price_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Price(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_PriceAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllPriceRequest + var metadata runtime.ServerMetadata + + msg, err := client.PriceAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PriceAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllPriceRequest + var metadata runtime.ServerMetadata + + msg, err := server.PriceAll(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -788,6 +878,52 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_Price_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Price_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Price_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PriceAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_PriceAll_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PriceAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1089,6 +1225,46 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_Price_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Price_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Price_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PriceAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PriceAll_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PriceAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1118,6 +1294,10 @@ var ( pattern_Query_MedianDeviations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"ojo", "historacle", "v1", "denoms", "median_deviations"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_ValidatorRewardSet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"ojo", "oracle", "v1", "valdiators", "validator_reward_set"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Price_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"elys-network", "elys", "oracle", "price", "asset"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_PriceAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"elys-network", "elys", "oracle", "prices"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -1146,4 +1326,8 @@ var ( forward_Query_MedianDeviations_0 = runtime.ForwardResponseMessage forward_Query_ValidatorRewardSet_0 = runtime.ForwardResponseMessage + + forward_Query_Price_0 = runtime.ForwardResponseMessage + + forward_Query_PriceAll_0 = runtime.ForwardResponseMessage ) From 4609d25458e86f66c672201eface8f11a4f367ab Mon Sep 17 00:00:00 2001 From: rbajollari Date: Thu, 9 Jan 2025 14:26:32 -0500 Subject: [PATCH 09/77] store key name --- x/oracle/types/keys.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/oracle/types/keys.go b/x/oracle/types/keys.go index ac34289d..8b147caf 100644 --- a/x/oracle/types/keys.go +++ b/x/oracle/types/keys.go @@ -11,7 +11,7 @@ import ( const ( // ModuleName is the name of the oracle module - ModuleName = "oracle" + ModuleName = "ojooracle" // StoreKey is the string store representation StoreKey = ModuleName From da8ffb45b04593146e8b1c667dfc18c32a95ff82 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Thu, 9 Jan 2025 14:30:17 -0500 Subject: [PATCH 10/77] revert key name --- x/oracle/types/keys.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/oracle/types/keys.go b/x/oracle/types/keys.go index 8b147caf..ac34289d 100644 --- a/x/oracle/types/keys.go +++ b/x/oracle/types/keys.go @@ -11,7 +11,7 @@ import ( const ( // ModuleName is the name of the oracle module - ModuleName = "ojooracle" + ModuleName = "oracle" // StoreKey is the string store representation StoreKey = ModuleName From d8fa5142ed4f544fc6a8894df03e9fc6ce40c737 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Thu, 9 Jan 2025 21:21:17 -0500 Subject: [PATCH 11/77] service warning --- proto/buf.lock | 2 +- proto/ojo/oracle/v1/tx.proto | 2 + x/oracle/types/tx.pb.go | 210 +++++++++++++++++------------------ 3 files changed, 108 insertions(+), 106 deletions(-) diff --git a/proto/buf.lock b/proto/buf.lock index 373428d3..ab9fb72c 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -8,7 +8,7 @@ deps: - remote: buf.build owner: cosmos repository: cosmos-sdk - commit: 8cb30a2c4de74dc9bd8d260b1e75e176 + commit: 05419252bcc241ea8023acf1ed4cadc5 - remote: buf.build owner: cosmos repository: gogo-proto diff --git a/proto/ojo/oracle/v1/tx.proto b/proto/ojo/oracle/v1/tx.proto index c2c23250..e345fc29 100644 --- a/proto/ojo/oracle/v1/tx.proto +++ b/proto/ojo/oracle/v1/tx.proto @@ -13,6 +13,8 @@ option (gogoproto.goproto_getters_all) = false; // Msg defines the oracle Msg service. service Msg { + option (cosmos.msg.v1.service) = true; + // AggregateExchangeRatePrevote defines a method for submitting an aggregate // exchange rate prevote. rpc AggregateExchangeRatePrevote(MsgAggregateExchangeRatePrevote) diff --git a/x/oracle/types/tx.pb.go b/x/oracle/types/tx.pb.go index 2b0d0179..4633daec 100644 --- a/x/oracle/types/tx.pb.go +++ b/x/oracle/types/tx.pb.go @@ -1459,113 +1459,113 @@ func init() { func init() { proto.RegisterFile("ojo/oracle/v1/tx.proto", fileDescriptor_58d45810177a43e8) } var fileDescriptor_58d45810177a43e8 = []byte{ - // 1684 bytes of a gzipped FileDescriptorProto + // 1693 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0xcb, 0x6f, 0x13, 0xd7, 0x1a, 0xcf, 0x90, 0xa7, 0x3f, 0x43, 0x10, 0x43, 0x12, 0x9c, 0x49, 0xb0, 0x83, 0x13, 0x1e, 0x01, - 0x62, 0x93, 0x70, 0x2f, 0x42, 0xd6, 0xe5, 0x72, 0xf3, 0xb8, 0xa0, 0x4a, 0xb8, 0x8a, 0x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0xd1, 0xb2, 0x61, 0x84, 0x92, + 0x4d, 0x76, 0xcd, 0x28, 0x05, 0xc3, 0xbc, 0x8e, 0x3c, 0x97, 0x09, 0x35, 0x18, 0xb6, 0x61, 0x15, + 0xf1, 0x2b, 0x58, 0xd5, 0x59, 0x91, 0x39, 0xe7, 0x77, 0x4c, 0x8c, 0xd7, 0xb0, 0xd5, 0xb5, 0xe0, + 0xb6, 0x23, 0xb1, 0x94, 0xad, 0xd2, 0x9a, 0x87, 0x8a, 0xb8, 0x9b, 0xf6, 0x8b, 0x2d, 0x20, 0xe5, + 0x6a, 0x58, 0xa4, 0x6a, 0x6b, 0x75, 0x7f, 0xb7, 0x0a, 0x86, 0x72, 0x06, 0x92, 0xb7, 0x35, 0xc7, + 0x28, 0x79, 0x96, 0xbe, 0x81, 0xfc, 0x53, 0x48, 0x05, 0x3a, 0x75, 0x83, 0xcd, 0x50, 0x00, 0xbd, + 0x68, 0x04, 0x80, 0x41, 0x0e, 0xa0, 0x53, 0x3e, 0x80, 0xda, 0x46, 0xba, 0x55, 0xd1, 0xec, 0xd4, + 0xd0, 0x8c, 0x74, 0x6a, 0x40, 0x0d, 0x86, 0x91, 0x4e, 0xe6, 0xe5, 0x89, 0xc4, 0x28, 0x52, 0xf0, + 0x9b, 0x04, 0xa9, 0x22, 0x31, 0xf9, 0xa6, 0x7b, 0x15, 0xd7, 0x6e, 0x56, 0x0d, 0x7a, 0xd6, 0x6b, + 0xae, 0x56, 0x21, 0x6f, 0xd3, 0xcd, 0x9e, 0xe5, 0xd9, 0x28, 0x48, 0x06, 0x1b, 0xc8, 0x33, 0x90, + 0x34, 0x10, 0xd1, 0x5d, 0xab, 0xea, 0x59, 0xd8, 0xf1, 0x13, 0x12, 0x9e, 0x92, 0x65, 0x18, 0xd8, + 0x40, 0x75, 0x92, 0x1a, 0x60, 0x75, 0x65, 0xbf, 0xe5, 0xbf, 0xc2, 0x30, 0x3f, 0x48, 0x09, 0xcb, + 0x41, 0x72, 0x69, 0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 0x87, 0xd8, 0x1f, 0x26, 0xe7, 0x7f, + 0x0f, 0x00, 0x00, 0xff, 0xff, 0xdd, 0xef, 0xcd, 0x1d, 0xd9, 0x19, 0x00, 0x00, } func (this *MsgLegacyGovUpdateParams) Equal(that interface{}) bool { From ca9102302e316e28debc5cef80f19291e0edbced Mon Sep 17 00:00:00 2001 From: rbajollari Date: Fri, 10 Jan 2025 10:43:13 -0500 Subject: [PATCH 12/77] remove param subspace in oracle --- app/app.go | 3 +- x/oracle/keeper/elys.go | 27 ++-- x/oracle/keeper/genesis.go | 7 +- x/oracle/keeper/historic_price.go | 21 +-- x/oracle/keeper/keeper.go | 51 ++++---- x/oracle/keeper/miss_counter.go | 9 +- x/oracle/keeper/param_update_plan.go | 9 +- x/oracle/keeper/params.go | 186 +++++++++++++++++---------- x/oracle/keeper/slash.go | 5 +- x/oracle/types/params.go | 1 + 10 files changed, 181 insertions(+), 138 deletions(-) diff --git a/app/app.go b/app/app.go index 64513892..7cc17659 100644 --- a/app/app.go +++ b/app/app.go @@ -423,8 +423,7 @@ func New( app.OracleKeeper = oraclekeeper.NewKeeper( appCodec, - keys[oracletypes.ModuleName], - app.GetSubspace(oracletypes.ModuleName), + runtime.NewKVStoreService(app.keys[oracletypes.StoreKey]), app.AccountKeeper, app.BankKeeper, app.DistrKeeper, diff --git a/x/oracle/keeper/elys.go b/x/oracle/keeper/elys.go index 37b670ff..17770f6b 100644 --- a/x/oracle/keeper/elys.go +++ b/x/oracle/keeper/elys.go @@ -3,20 +3,21 @@ package keeper import ( "cosmossdk.io/math" storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ojo-network/ojo/x/oracle/types" ) // SetPrice set a specific price in the store from its index func (k Keeper) SetPrice(ctx sdk.Context, price types.Price) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := k.cdc.MustMarshal(&price) store.Set(types.KeyPrice(price.Asset, price.Source, price.Timestamp), bz) } // GetPrice returns a price from its index func (k Keeper) GetPrice(ctx sdk.Context, asset, source string, timestamp uint64) (val types.Price, found bool) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := store.Get(types.KeyPrice(asset, source, timestamp)) if bz == nil { @@ -28,7 +29,7 @@ func (k Keeper) GetPrice(ctx sdk.Context, asset, source string, timestamp uint64 } func (k Keeper) GetLatestPriceFromAssetAndSource(ctx sdk.Context, asset, source string) (val types.Price, found bool) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) iterator := storetypes.KVStoreReversePrefixIterator(store, types.KeyPriceAssetAndSource(asset, source)) defer iterator.Close() @@ -42,7 +43,7 @@ func (k Keeper) GetLatestPriceFromAssetAndSource(ctx sdk.Context, asset, source } func (k Keeper) GetLatestPriceFromAnySource(ctx sdk.Context, asset string) (val types.Price, found bool) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) iterator := storetypes.KVStoreReversePrefixIterator(store, types.KeyPriceAsset(asset)) defer iterator.Close() @@ -57,13 +58,13 @@ func (k Keeper) GetLatestPriceFromAnySource(ctx sdk.Context, asset string) (val // RemovePrice removes a price from the store func (k Keeper) RemovePrice(ctx sdk.Context, asset, source string, timestamp uint64) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store.Delete(types.KeyPrice(asset, source, timestamp)) } // GetAllPrice returns all price func (k Keeper) GetAllPrice(ctx sdk.Context) (list []types.Price) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) iterator := storetypes.KVStorePrefixIterator(store, types.KeyPrefixPrice) defer iterator.Close() @@ -103,14 +104,14 @@ func (k Keeper) GetAssetPriceFromDenom(ctx sdk.Context, denom string) math.Legac // SetAssetInfo set a specific assetInfo in the store from its index func (k Keeper) SetAssetInfo(ctx sdk.Context, assetInfo types.AssetInfo) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := k.cdc.MustMarshal(&assetInfo) store.Set(types.KeyAssetInfo(assetInfo.Denom), bz) } // GetAssetInfo returns a assetInfo from its index func (k Keeper) GetAssetInfo(ctx sdk.Context, denom string) (val types.AssetInfo, found bool) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := store.Get(types.KeyAssetInfo(denom)) if bz == nil { return val, false @@ -122,13 +123,13 @@ func (k Keeper) GetAssetInfo(ctx sdk.Context, denom string) (val types.AssetInfo // RemoveAssetInfo removes a assetInfo from the store func (k Keeper) RemoveAssetInfo(ctx sdk.Context, denom string) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store.Delete(types.KeyAssetInfo(denom)) } // GetAllAssetInfo returns all assetInfo func (k Keeper) GetAllAssetInfo(ctx sdk.Context) (list []types.AssetInfo) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) defer iterator.Close() @@ -144,7 +145,7 @@ func (k Keeper) GetAllAssetInfo(ctx sdk.Context) (list []types.AssetInfo) { // SetPriceFeeder set a specific priceFeeder in the store from its index func (k Keeper) SetPriceFeeder(ctx sdk.Context, priceFeeder types.PriceFeeder) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) key := types.KeyPriceFeeder(priceFeeder.Feeder) bz := k.cdc.MustMarshal(&priceFeeder) store.Set(key, bz) @@ -152,7 +153,7 @@ func (k Keeper) SetPriceFeeder(ctx sdk.Context, priceFeeder types.PriceFeeder) { // GetPriceFeeder returns a priceFeeder from its index func (k Keeper) GetPriceFeeder(ctx sdk.Context, feeder sdk.AccAddress) (val types.PriceFeeder, found bool) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) key := types.KeyPriceFeeder(feeder.String()) bz := store.Get(key) @@ -166,7 +167,7 @@ func (k Keeper) GetPriceFeeder(ctx sdk.Context, feeder sdk.AccAddress) (val type // RemovePriceFeeder removes a priceFeeder from the store func (k Keeper) RemovePriceFeeder(ctx sdk.Context, feeder sdk.AccAddress) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) key := types.KeyPriceFeeder(feeder.String()) store.Delete(key) } diff --git a/x/oracle/keeper/genesis.go b/x/oracle/keeper/genesis.go index ed403278..a1072ee4 100644 --- a/x/oracle/keeper/genesis.go +++ b/x/oracle/keeper/genesis.go @@ -2,6 +2,7 @@ package keeper import ( storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ojo-network/ojo/x/oracle/types" @@ -13,7 +14,7 @@ func (k Keeper) IterateAllHistoricPrices( ctx sdk.Context, handler func(types.PriceStamp) bool, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) iter := storetypes.KVStorePrefixIterator(store, types.KeyPrefixHistoricPrice) defer iter.Close() @@ -48,7 +49,7 @@ func (k Keeper) IterateAllMedianPrices( ctx sdk.Context, handler func(types.PriceStamp) bool, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) iter := storetypes.KVStorePrefixIterator(store, types.KeyPrefixMedian) defer iter.Close() @@ -84,7 +85,7 @@ func (k Keeper) IterateAllMedianDeviationPrices( ctx sdk.Context, handler func(types.PriceStamp) bool, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) iter := storetypes.KVStorePrefixIterator(store, types.KeyPrefixMedianDeviation) defer iter.Close() diff --git a/x/oracle/keeper/historic_price.go b/x/oracle/keeper/historic_price.go index 5f5e330e..2c8cd4ab 100644 --- a/x/oracle/keeper/historic_price.go +++ b/x/oracle/keeper/historic_price.go @@ -4,6 +4,7 @@ import ( "cosmossdk.io/errors" "cosmossdk.io/math" storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ojo-network/ojo/util" @@ -69,7 +70,7 @@ func (k Keeper) SetHistoricMedian( blockNum uint64, median math.LegacyDec, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := k.cdc.MustMarshal(&sdk.DecProto{Dec: median}) store.Set(types.KeyMedian(denom, blockNum), bz) } @@ -80,7 +81,7 @@ func (k Keeper) HistoricMedianDeviation( ctx sdk.Context, denom string, ) (*types.PriceStamp, error) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) blockDiff := util.SafeInt64ToUint64(ctx.BlockHeight())%k.MedianStampPeriod(ctx) + 1 blockNum := util.SafeInt64ToUint64(ctx.BlockHeight()) - blockDiff bz := store.Get(types.KeyMedianDeviation(denom, blockNum)) @@ -147,7 +148,7 @@ func (k Keeper) SetHistoricMedianDeviation( blockNum uint64, medianDeviation math.LegacyDec, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := k.cdc.MustMarshal(&sdk.DecProto{Dec: medianDeviation}) store.Set(types.KeyMedianDeviation(denom, blockNum), bz) } @@ -258,7 +259,7 @@ func (k Keeper) IterateHistoricPrices( numStamps uint, handler func(math.LegacyDec) bool, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) // make sure we have one zero byte to correctly separate denoms prefix := util.ConcatBytes(1, types.KeyPrefixHistoricPrice, []byte(denom)) @@ -283,7 +284,7 @@ func (k Keeper) IterateHistoricMedians( numStamps uint, handler func(types.PriceStamp) bool, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) // make sure we have one zero byte to correctly separate denoms prefix := util.ConcatBytes(1, types.KeyPrefixMedian, []byte(denom)) @@ -310,7 +311,7 @@ func (k Keeper) IterateHistoricDeviations( numStamps uint, handler func(types.PriceStamp) bool, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) // make sure we have one zero byte to correctly separate denoms prefix := util.ConcatBytes(1, types.KeyPrefixMedianDeviation, []byte(denom)) @@ -345,7 +346,7 @@ func (k Keeper) SetHistoricPrice( blockNum uint64, exchangeRate math.LegacyDec, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := k.cdc.MustMarshal(&sdk.DecProto{Dec: exchangeRate}) store.Set(types.KeyHistoricPrice(denom, blockNum), bz) } @@ -357,7 +358,7 @@ func (k Keeper) DeleteHistoricPrice( denom string, blockNum uint64, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store.Delete(types.KeyHistoricPrice(denom, blockNum)) } @@ -367,7 +368,7 @@ func (k Keeper) DeleteHistoricMedian( denom string, blockNum uint64, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store.Delete(types.KeyMedian(denom, blockNum)) } @@ -378,7 +379,7 @@ func (k Keeper) DeleteHistoricMedianDeviation( denom string, blockNum uint64, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store.Delete(types.KeyMedianDeviation(denom, blockNum)) } diff --git a/x/oracle/keeper/keeper.go b/x/oracle/keeper/keeper.go index f9ef8f5f..133fac9c 100644 --- a/x/oracle/keeper/keeper.go +++ b/x/oracle/keeper/keeper.go @@ -4,12 +4,13 @@ import ( "fmt" "strings" + "cosmossdk.io/core/store" "cosmossdk.io/log" "cosmossdk.io/math" storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" - paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" "github.com/ojo-network/ojo/pricefeeder" @@ -21,9 +22,8 @@ var ten = math.LegacyMustNewDecFromStr("10") // Keeper of the oracle store type Keeper struct { - cdc codec.BinaryCodec - storeKey storetypes.StoreKey - paramSpace paramstypes.Subspace + cdc codec.BinaryCodec + storeService store.KVStoreService accountKeeper types.AccountKeeper bankKeeper types.BankKeeper @@ -42,8 +42,7 @@ type Keeper struct { // NewKeeper constructs a new keeper for oracle func NewKeeper( cdc codec.BinaryCodec, - storeKey storetypes.StoreKey, - paramspace paramstypes.Subspace, + storeService store.KVStoreService, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, distrKeeper types.DistributionKeeper, @@ -57,15 +56,9 @@ func NewKeeper( panic(fmt.Sprintf("%s module account has not been set", types.ModuleName)) } - // set KeyTable if it has not already been set - if !paramspace.HasKeyTable() { - paramspace = paramspace.WithKeyTable(types.ParamKeyTable()) - } - return Keeper{ cdc: cdc, - storeKey: storeKey, - paramSpace: paramspace, + storeService: storeService, accountKeeper: accountKeeper, bankKeeper: bankKeeper, distrKeeper: distrKeeper, @@ -85,7 +78,7 @@ func (k Keeper) Logger(ctx sdk.Context) log.Logger { // GetExchangeRate gets the consensus exchange rate of USD denominated in the // denom asset from the store. func (k Keeper) GetExchangeRate(ctx sdk.Context, symbol string) (math.LegacyDec, error) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) symbol = strings.ToUpper(symbol) b := store.Get(types.GetExchangeRateKey(symbol)) if b == nil { @@ -128,7 +121,7 @@ func (k Keeper) GetExchangeRateBase(ctx sdk.Context, denom string) (math.LegacyD // SetExchangeRate sets the consensus exchange rate of USD denominated in the // denom asset to the store. func (k Keeper) SetExchangeRate(ctx sdk.Context, denom string, exchangeRate math.LegacyDec) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := k.cdc.MustMarshal(&sdk.DecProto{Dec: exchangeRate}) denom = strings.ToUpper(denom) store.Set(types.GetExchangeRateKey(denom), bz) @@ -146,7 +139,7 @@ func (k Keeper) SetExchangeRateWithEvent(ctx sdk.Context, denom string, exchange // IterateExchangeRates iterates over USD rates in the store. func (k Keeper) IterateExchangeRates(ctx sdk.Context, handler func(string, math.LegacyDec) bool) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) iter := storetypes.KVStorePrefixIterator(store, types.KeyPrefixExchangeRate) defer iter.Close() @@ -164,7 +157,7 @@ func (k Keeper) IterateExchangeRates(ctx sdk.Context, handler func(string, math. } func (k Keeper) ClearExchangeRates(ctx sdk.Context) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) iter := storetypes.KVStorePrefixIterator(store, types.KeyPrefixExchangeRate) defer iter.Close() for ; iter.Valid(); iter.Next() { @@ -184,7 +177,7 @@ func (k Keeper) GetFeederDelegation(ctx sdk.Context, vAddr sdk.ValAddress) (sdk. return nil, stakingtypes.ErrNoValidatorFound.Wrapf("validator %s is not in active set", vAddr) } - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := store.Get(types.GetFeederDelegationKey(vAddr)) if bz == nil { // no delegation, so validator itself must provide price feed @@ -196,7 +189,7 @@ func (k Keeper) GetFeederDelegation(ctx sdk.Context, vAddr sdk.ValAddress) (sdk. // SetFeederDelegation sets the account address to which the validator operator // delegated oracle vote rights. func (k Keeper) SetFeederDelegation(ctx sdk.Context, operator sdk.ValAddress, delegatedFeeder sdk.AccAddress) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store.Set(types.GetFeederDelegationKey(operator), delegatedFeeder.Bytes()) } @@ -205,7 +198,7 @@ type IterateFeederDelegationHandler func(delegator sdk.ValAddress, delegate sdk. // IterateFeederDelegations iterates over the feed delegates and performs a // callback function. func (k Keeper) IterateFeederDelegations(ctx sdk.Context, handler IterateFeederDelegationHandler) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) iter := storetypes.KVStorePrefixIterator(store, types.KeyPrefixFeederDelegation) defer iter.Close() @@ -225,7 +218,7 @@ func (k Keeper) GetAggregateExchangeRatePrevote( ctx sdk.Context, voter sdk.ValAddress, ) (types.AggregateExchangeRatePrevote, error) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := store.Get(types.GetAggregateExchangeRatePrevoteKey(voter)) if bz == nil { @@ -243,7 +236,7 @@ func (k Keeper) HasAggregateExchangeRatePrevote( ctx sdk.Context, voter sdk.ValAddress, ) bool { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) return store.Has(types.GetAggregateExchangeRatePrevoteKey(voter)) } @@ -253,7 +246,7 @@ func (k Keeper) SetAggregateExchangeRatePrevote( voter sdk.ValAddress, prevote types.AggregateExchangeRatePrevote, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := k.cdc.MustMarshal(&prevote) store.Set(types.GetAggregateExchangeRatePrevoteKey(voter), bz) @@ -261,7 +254,7 @@ func (k Keeper) SetAggregateExchangeRatePrevote( // DeleteAggregateExchangeRatePrevote deletes an oracle prevote from the store. func (k Keeper) DeleteAggregateExchangeRatePrevote(ctx sdk.Context, voter sdk.ValAddress) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store.Delete(types.GetAggregateExchangeRatePrevoteKey(voter)) } @@ -270,7 +263,7 @@ func (k Keeper) IterateAggregateExchangeRatePrevotes( ctx sdk.Context, handler func(sdk.ValAddress, types.AggregateExchangeRatePrevote) bool, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) iter := storetypes.KVStorePrefixIterator(store, types.KeyPrefixAggregateExchangeRatePrevote) defer iter.Close() @@ -292,7 +285,7 @@ func (k Keeper) GetAggregateExchangeRateVote( ctx sdk.Context, voter sdk.ValAddress, ) (types.AggregateExchangeRateVote, error) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := store.Get(types.GetAggregateExchangeRateVoteKey(voter)) if bz == nil { @@ -311,7 +304,7 @@ func (k Keeper) SetAggregateExchangeRateVote( voter sdk.ValAddress, vote types.AggregateExchangeRateVote, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := k.cdc.MustMarshal(&vote) store.Set(types.GetAggregateExchangeRateVoteKey(voter), bz) @@ -319,7 +312,7 @@ func (k Keeper) SetAggregateExchangeRateVote( // DeleteAggregateExchangeRateVote deletes an oracle prevote from the store. func (k Keeper) DeleteAggregateExchangeRateVote(ctx sdk.Context, voter sdk.ValAddress) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store.Delete(types.GetAggregateExchangeRateVoteKey(voter)) } @@ -333,7 +326,7 @@ func (k Keeper) IterateAggregateExchangeRateVotes( ctx sdk.Context, handler IterateExchangeRateVote, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) iter := storetypes.KVStorePrefixIterator(store, types.KeyPrefixAggregateExchangeRateVote) defer iter.Close() diff --git a/x/oracle/keeper/miss_counter.go b/x/oracle/keeper/miss_counter.go index 1a9b21da..c904c509 100644 --- a/x/oracle/keeper/miss_counter.go +++ b/x/oracle/keeper/miss_counter.go @@ -2,6 +2,7 @@ package keeper import ( storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" gogotypes "github.com/gogo/protobuf/types" "github.com/ojo-network/ojo/x/oracle/types" @@ -10,7 +11,7 @@ import ( // GetMissCounter retrieves the # of vote periods missed in this oracle slash // window. func (k Keeper) GetMissCounter(ctx sdk.Context, operator sdk.ValAddress) uint64 { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := store.Get(types.GetMissCounterKey(operator)) if bz == nil { @@ -27,21 +28,21 @@ func (k Keeper) GetMissCounter(ctx sdk.Context, operator sdk.ValAddress) uint64 // SetMissCounter updates the # of vote periods missed in this oracle slash // window. func (k Keeper) SetMissCounter(ctx sdk.Context, operator sdk.ValAddress, missCounter uint64) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := k.cdc.MustMarshal(&gogotypes.UInt64Value{Value: missCounter}) store.Set(types.GetMissCounterKey(operator), bz) } // DeleteMissCounter removes miss counter for the validator. func (k Keeper) DeleteMissCounter(ctx sdk.Context, operator sdk.ValAddress) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store.Delete(types.GetMissCounterKey(operator)) } // IterateMissCounters iterates over the miss counters and performs a callback // function. func (k Keeper) IterateMissCounters(ctx sdk.Context, handler func(sdk.ValAddress, uint64) bool) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) iter := storetypes.KVStorePrefixIterator(store, types.KeyPrefixMissCounter) defer iter.Close() diff --git a/x/oracle/keeper/param_update_plan.go b/x/oracle/keeper/param_update_plan.go index 29d8fad4..b5721cc4 100644 --- a/x/oracle/keeper/param_update_plan.go +++ b/x/oracle/keeper/param_update_plan.go @@ -2,6 +2,7 @@ package keeper import ( storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ojo-network/ojo/util" @@ -17,7 +18,7 @@ func (k Keeper) ScheduleParamUpdatePlan(ctx sdk.Context, plan types.ParamUpdateP return err } - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := k.cdc.MustMarshal(&plan) store.Set(types.KeyParamUpdatePlan(util.SafeInt64ToUint64(plan.Height)), bz) @@ -32,7 +33,7 @@ func (k Keeper) ClearParamUpdatePlan(ctx sdk.Context, planHeight uint64) error { return types.ErrInvalidRequest.Wrapf("No param update plan found at block height %d", planHeight) } - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store.Delete(types.KeyParamUpdatePlan(planHeight)) return nil } @@ -40,7 +41,7 @@ func (k Keeper) ClearParamUpdatePlan(ctx sdk.Context, planHeight uint64) error { // haveParamUpdatePlan will return whether a param update plan exists and the specified // plan height. func (k Keeper) haveParamUpdatePlan(ctx sdk.Context, planHeight uint64) bool { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := store.Get(types.KeyParamUpdatePlan(planHeight)) return bz != nil } @@ -60,7 +61,7 @@ func (k Keeper) IterateParamUpdatePlans( ctx sdk.Context, handler func(types.ParamUpdatePlan) bool, ) { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) iter := storetypes.KVStorePrefixIterator(store, types.KeyPrefixParamUpdatePlan) defer iter.Close() diff --git a/x/oracle/keeper/params.go b/x/oracle/keeper/params.go index 7dd62ee2..e282e544 100644 --- a/x/oracle/keeper/params.go +++ b/x/oracle/keeper/params.go @@ -7,206 +7,246 @@ import ( "github.com/ojo-network/ojo/x/oracle/types" "cosmossdk.io/math" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" ) // VotePeriod returns the number of blocks during which voting takes place. -func (k Keeper) VotePeriod(ctx sdk.Context) (res uint64) { - k.paramSpace.Get(ctx, types.KeyVotePeriod, &res) - return +func (k Keeper) VotePeriod(ctx sdk.Context) uint64 { + params := k.GetParams(ctx) + return params.VotePeriod } // SetVotePeriod updates the number of blocks during which voting takes place. func (k Keeper) SetVotePeriod(ctx sdk.Context, votePeriod uint64) { - k.paramSpace.Set(ctx, types.KeyVotePeriod, votePeriod) + params := k.GetParams(ctx) + params.VotePeriod = votePeriod + k.SetParams(ctx, params) } // VoteThreshold returns the minimum percentage of votes that must be received // for a ballot to pass. -func (k Keeper) VoteThreshold(ctx sdk.Context) (res math.LegacyDec) { - k.paramSpace.Get(ctx, types.KeyVoteThreshold, &res) - return +func (k Keeper) VoteThreshold(ctx sdk.Context) math.LegacyDec { + params := k.GetParams(ctx) + return params.VoteThreshold } // SetVoteThreshold updates the minimum percentage of votes that must be received // for a ballot to pass. func (k Keeper) SetVoteThreshold(ctx sdk.Context, voteThreshold math.LegacyDec) { - k.paramSpace.Set(ctx, types.KeyVoteThreshold, voteThreshold) + params := k.GetParams(ctx) + params.VoteThreshold = voteThreshold + k.SetParams(ctx, params) } // RewardBand returns the ratio of allowable exchange rate error that a validator // can be rewarded. -func (k Keeper) RewardBands(ctx sdk.Context) (res types.RewardBandList) { - k.paramSpace.Get(ctx, types.KeyRewardBands, &res) - return +func (k Keeper) RewardBands(ctx sdk.Context) types.RewardBandList { + params := k.GetParams(ctx) + return params.RewardBands } // VoteThreshold updates the ratio of allowable exchange rate error that a validator // can be rewarded. func (k Keeper) SetRewardBand(ctx sdk.Context, rewardBands types.RewardBandList) { - k.paramSpace.Set(ctx, types.KeyRewardBands, rewardBands) + params := k.GetParams(ctx) + params.RewardBands = rewardBands + k.SetParams(ctx, params) } // RewardDistributionWindow returns the number of vote periods during which // seigniorage reward comes in and then is distributed. -func (k Keeper) RewardDistributionWindow(ctx sdk.Context) (res uint64) { - k.paramSpace.Get(ctx, types.KeyRewardDistributionWindow, &res) - return +func (k Keeper) RewardDistributionWindow(ctx sdk.Context) uint64 { + params := k.GetParams(ctx) + return params.RewardDistributionWindow } // SetRewardDistributionWindow updates the number of vote periods during which // seigniorage reward comes in and then is distributed. func (k Keeper) SetRewardDistributionWindow(ctx sdk.Context, rewardDistributionWindow uint64) { - k.paramSpace.Set(ctx, types.KeyRewardDistributionWindow, rewardDistributionWindow) + params := k.GetParams(ctx) + params.RewardDistributionWindow = rewardDistributionWindow + k.SetParams(ctx, params) } // AcceptList returns the denom list that can be activated -func (k Keeper) AcceptList(ctx sdk.Context) (res types.DenomList) { - k.paramSpace.Get(ctx, types.KeyAcceptList, &res) - return +func (k Keeper) AcceptList(ctx sdk.Context) types.DenomList { + params := k.GetParams(ctx) + return params.AcceptList } // SetAcceptList updates the accepted list of assets supported by the x/oracle // module. func (k Keeper) SetAcceptList(ctx sdk.Context, acceptList types.DenomList) { - k.paramSpace.Set(ctx, types.KeyAcceptList, acceptList) + params := k.GetParams(ctx) + params.AcceptList = acceptList + k.SetParams(ctx, params) } // MandatoryList returns the denom list that are mandatory -func (k Keeper) MandatoryList(ctx sdk.Context) (res types.DenomList) { - k.paramSpace.Get(ctx, types.KeyMandatoryList, &res) - return +func (k Keeper) MandatoryList(ctx sdk.Context) types.DenomList { + params := k.GetParams(ctx) + return params.MandatoryList } // SetMandatoryList updates the mandatory list of assets supported by the x/oracle // module. func (k Keeper) SetMandatoryList(ctx sdk.Context, mandatoryList types.DenomList) { - k.paramSpace.Set(ctx, types.KeyMandatoryList, mandatoryList) + params := k.GetParams(ctx) + params.MandatoryList = mandatoryList + k.SetParams(ctx, params) } // SlashFraction returns the oracle voting penalty rate. -func (k Keeper) SlashFraction(ctx sdk.Context) (res math.LegacyDec) { - k.paramSpace.Get(ctx, types.KeySlashFraction, &res) - return +func (k Keeper) SlashFraction(ctx sdk.Context) math.LegacyDec { + params := k.GetParams(ctx) + return params.SlashFraction } // SetSlashFraction updates the oracle voting penalty rate. func (k Keeper) SetSlashFraction(ctx sdk.Context, slashFraction math.LegacyDec) { - k.paramSpace.Set(ctx, types.KeySlashFraction, slashFraction) + params := k.GetParams(ctx) + params.SlashFraction = slashFraction + k.SetParams(ctx, params) } // SlashWindow returns the number of total blocks in a slash window. -func (k Keeper) SlashWindow(ctx sdk.Context) (res uint64) { - k.paramSpace.Get(ctx, types.KeySlashWindow, &res) - return +func (k Keeper) SlashWindow(ctx sdk.Context) uint64 { + params := k.GetParams(ctx) + return params.SlashWindow } // SetSlashWindow updates the number of total blocks in a slash window. func (k Keeper) SetSlashWindow(ctx sdk.Context, slashWindow uint64) { - k.paramSpace.Set(ctx, types.KeySlashWindow, slashWindow) + params := k.GetParams(ctx) + params.SlashWindow = slashWindow + k.SetParams(ctx, params) } // MinValidPerWindow returns the oracle slashing threshold. -func (k Keeper) MinValidPerWindow(ctx sdk.Context) (res math.LegacyDec) { - k.paramSpace.Get(ctx, types.KeyMinValidPerWindow, &res) - return +func (k Keeper) MinValidPerWindow(ctx sdk.Context) math.LegacyDec { + params := k.GetParams(ctx) + return params.MinValidPerWindow } // MinValidPerWindow updates the oracle slashing threshold. func (k Keeper) SetMinValidPerWindow(ctx sdk.Context, minValidPerWindow math.LegacyDec) { - k.paramSpace.Set(ctx, types.KeyMinValidPerWindow, minValidPerWindow) + params := k.GetParams(ctx) + params.MinValidPerWindow = minValidPerWindow + k.SetParams(ctx, params) } // GetParams returns the total set of oracle parameters. func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) { - k.paramSpace.GetParamSet(ctx, ¶ms) - return params + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + + b := store.Get(types.KeyParams) + if b == nil { + return + } + + k.cdc.MustUnmarshal(b, ¶ms) + return } // SetParams sets the total set of oracle parameters. func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { - k.paramSpace.SetParamSet(ctx, ¶ms) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + b := k.cdc.MustMarshal(¶ms) + store.Set(types.KeyParams, b) } // HistoricStampPeriod returns the amount of blocks the oracle module waits // before recording a new historic price. -func (k Keeper) HistoricStampPeriod(ctx sdk.Context) (res uint64) { - k.paramSpace.Get(ctx, types.KeyHistoricStampPeriod, &res) - return +func (k Keeper) HistoricStampPeriod(ctx sdk.Context) uint64 { + params := k.GetParams(ctx) + return params.HistoricStampPeriod } // SetHistoricStampPeriod updates the amount of blocks the oracle module waits // before recording a new historic price. func (k Keeper) SetHistoricStampPeriod(ctx sdk.Context, historicPriceStampPeriod uint64) { - k.paramSpace.Set(ctx, types.KeyHistoricStampPeriod, historicPriceStampPeriod) + params := k.GetParams(ctx) + params.HistoricStampPeriod = historicPriceStampPeriod + k.SetParams(ctx, params) } // MedianStampPeriod returns the amount blocks the oracle module waits between // calculating a new median and standard deviation of that median. -func (k Keeper) MedianStampPeriod(ctx sdk.Context) (res uint64) { - k.paramSpace.Get(ctx, types.KeyMedianStampPeriod, &res) - return +func (k Keeper) MedianStampPeriod(ctx sdk.Context) uint64 { + params := k.GetParams(ctx) + return params.MedianStampPeriod } // SetMedianStampPeriod updates the amount blocks the oracle module waits between // calculating a new median and standard deviation of that median. func (k Keeper) SetMedianStampPeriod(ctx sdk.Context, medianStampPeriod uint64) { - k.paramSpace.Set(ctx, types.KeyMedianStampPeriod, medianStampPeriod) + params := k.GetParams(ctx) + params.MedianStampPeriod = medianStampPeriod + k.SetParams(ctx, params) } // MaximumPriceStamps returns the maximum amount of historic prices the oracle // module will hold. -func (k Keeper) MaximumPriceStamps(ctx sdk.Context) (res uint64) { - k.paramSpace.Get(ctx, types.KeyMaximumPriceStamps, &res) - return +func (k Keeper) MaximumPriceStamps(ctx sdk.Context) uint64 { + params := k.GetParams(ctx) + return params.MaximumPriceStamps } // SetMaximumPriceStamps updates the the maximum amount of historic prices the // oracle module will hold. func (k Keeper) SetMaximumPriceStamps(ctx sdk.Context, maximumPriceStamps uint64) { - k.paramSpace.Set(ctx, types.KeyMaximumPriceStamps, maximumPriceStamps) + params := k.GetParams(ctx) + params.MaximumPriceStamps = maximumPriceStamps + k.SetParams(ctx, params) } // MaximumMedianStamps returns the maximum amount of medians the oracle module will // hold. -func (k Keeper) MaximumMedianStamps(ctx sdk.Context) (res uint64) { - k.paramSpace.Get(ctx, types.KeyMaximumMedianStamps, &res) - return +func (k Keeper) MaximumMedianStamps(ctx sdk.Context) uint64 { + params := k.GetParams(ctx) + return params.MaximumMedianStamps } // SetMaximumMedianStamps updates the the maximum amount of medians the oracle module will // hold. func (k Keeper) SetMaximumMedianStamps(ctx sdk.Context, maximumMedianStamps uint64) { - k.paramSpace.Set(ctx, types.KeyMaximumMedianStamps, maximumMedianStamps) + params := k.GetParams(ctx) + params.MaximumMedianStamps = maximumMedianStamps + k.SetParams(ctx, params) } // PriceExpiryTime returns the expiry in unix time for elys prices. -func (k Keeper) PriceExpiryTime(ctx sdk.Context) (res uint64) { - k.paramSpace.Get(ctx, types.KeyPriceExpiryTime, &res) - return +func (k Keeper) PriceExpiryTime(ctx sdk.Context) uint64 { + params := k.GetParams(ctx) + return params.PriceExpiryTime } // SetPriceExpiryTime updates the expiry in unix time for elys prices. func (k Keeper) SetPriceExpiryTime(ctx sdk.Context, priceExpiryTime uint64) { - k.paramSpace.Set(ctx, types.KeyPriceExpiryTime, priceExpiryTime) + params := k.GetParams(ctx) + params.PriceExpiryTime = priceExpiryTime + k.SetParams(ctx, params) } // LifeTimeInBlocks returns the life time of an elys price in blocks. -func (k Keeper) LifeTimeInBlocks(ctx sdk.Context) (res uint64) { - k.paramSpace.Get(ctx, types.KeyLifeTimeInBlocks, &res) - return +func (k Keeper) LifeTimeInBlocks(ctx sdk.Context) uint64 { + params := k.GetParams(ctx) + return params.LifeTimeInBlocks } // SetLifeTimeInBlocks updates the life time of an elys price in blocks. func (k Keeper) SetLifeTimeInBlocks(ctx sdk.Context, lifeTimeInBlocks uint64) { - k.paramSpace.Set(ctx, types.KeyLifeTimeInBlocks, lifeTimeInBlocks) + params := k.GetParams(ctx) + params.LifeTimeInBlocks = lifeTimeInBlocks + k.SetParams(ctx, params) } // CurrencyPairProviders returns the current Currency Pair Providers the price feeder // will query when starting up. -func (k Keeper) CurrencyPairProviders(ctx sdk.Context) (res types.CurrencyPairProvidersList) { - k.paramSpace.Get(ctx, types.KeyCurrencyPairProviders, &res) - return +func (k Keeper) CurrencyPairProviders(ctx sdk.Context) types.CurrencyPairProvidersList { + params := k.GetParams(ctx) + return params.CurrencyPairProviders } // SetCurrencyPairProviders updates the current Currency Pair Providers the price feeder @@ -215,14 +255,16 @@ func (k Keeper) SetCurrencyPairProviders( ctx sdk.Context, currencyPairProviders types.CurrencyPairProvidersList, ) { - k.paramSpace.Set(ctx, types.KeyCurrencyPairProviders, currencyPairProviders) + params := k.GetParams(ctx) + params.CurrencyPairProviders = currencyPairProviders + k.SetParams(ctx, params) } // CurrencyDeviationThresholds returns the current Currency Deviation Thesholds the // price feeder will query when starting up. -func (k Keeper) CurrencyDeviationThresholds(ctx sdk.Context) (res types.CurrencyDeviationThresholdList) { - k.paramSpace.Get(ctx, types.KeyCurrencyDeviationThresholds, &res) - return +func (k Keeper) CurrencyDeviationThresholds(ctx sdk.Context) types.CurrencyDeviationThresholdList { + params := k.GetParams(ctx) + return params.CurrencyDeviationThresholds } // SetCurrencyDeviationThresholds updates the current Currency Deviation Thesholds the @@ -231,7 +273,9 @@ func (k Keeper) SetCurrencyDeviationThresholds( ctx sdk.Context, currencyDeviationThresholds types.CurrencyDeviationThresholdList, ) { - k.paramSpace.Set(ctx, types.KeyCurrencyDeviationThresholds, currencyDeviationThresholds) + params := k.GetParams(ctx) + params.CurrencyDeviationThresholds = currencyDeviationThresholds + k.SetParams(ctx, params) } func (k Keeper) GetExponent(ctx sdk.Context, denom string) (uint32, error) { diff --git a/x/oracle/keeper/slash.go b/x/oracle/keeper/slash.go index 1b5ca4e4..24c13700 100644 --- a/x/oracle/keeper/slash.go +++ b/x/oracle/keeper/slash.go @@ -2,6 +2,7 @@ package keeper import ( "cosmossdk.io/math" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ojo-network/ojo/util" @@ -88,7 +89,7 @@ func (k Keeper) SetValidatorRewardSet(ctx sdk.Context) error { validatorRewardSet.ValidatorSet = append(validatorRewardSet.ValidatorSet, addr) } - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := k.cdc.MustMarshal(&validatorRewardSet) store.Set(types.KeyValidatorRewardSet(), bz) return nil @@ -96,7 +97,7 @@ func (k Keeper) SetValidatorRewardSet(ctx sdk.Context) error { // CurrentValidatorRewardSet returns the latest ValidatorRewardSet in the store. func (k Keeper) GetValidatorRewardSet(ctx sdk.Context) types.ValidatorRewardSet { - store := ctx.KVStore(k.storeKey) + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := store.Get(types.KeyValidatorRewardSet()) if bz == nil { diff --git a/x/oracle/types/params.go b/x/oracle/types/params.go index b472f5b0..457ed32c 100644 --- a/x/oracle/types/params.go +++ b/x/oracle/types/params.go @@ -19,6 +19,7 @@ const ( // Parameter keys var ( + KeyParams = []byte("Params") KeyVotePeriod = []byte("VotePeriod") KeyVoteThreshold = []byte("VoteThreshold") KeyRewardBands = []byte("RewardBands") From c9d13e9aa254c199ef2c3993a4ce5620a78ece90 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 15 Jan 2025 13:40:42 -0500 Subject: [PATCH 13/77] elys price feeder --- app/upgrades.go | 2 +- cmd/ojod/cmd/root.go | 2 - go.mod | 112 +++---- go.sum | 524 ++++++++++++++++++++++++------- proto/ojo/oracle/v1/oracle.proto | 9 +- x/oracle/types/oracle.pb.go | 406 ++++++++++++++++++------ 6 files changed, 788 insertions(+), 267 deletions(-) diff --git a/app/upgrades.go b/app/upgrades.go index bd6737da..05828ea5 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -69,7 +69,7 @@ func (app *App) registerUpgrade0_1_4(_ upgradetypes.Plan) { ) } -//nolint: all +// nolint: all func (app *App) registerUpgrade0_2_0(upgradeInfo upgradetypes.Plan) { const planName = "v0.2.0" diff --git a/cmd/ojod/cmd/root.go b/cmd/ojod/cmd/root.go index c03c4846..de2e2c45 100644 --- a/cmd/ojod/cmd/root.go +++ b/cmd/ojod/cmd/root.go @@ -8,7 +8,6 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/config" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/keyring" "github.com/cosmos/cosmos-sdk/server" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" "github.com/cosmos/cosmos-sdk/x/auth/types" @@ -85,7 +84,6 @@ up-to-date and accurate data.`, // add keyring to autocli opts autoCliOpts := tempApp.AutoCliOpts() initClientCtx, _ = config.ReadFromClientConfig(initClientCtx) - autoCliOpts.Keyring, _ = keyring.NewAutoCLIKeyring(initClientCtx.Keyring) autoCliOpts.ClientCtx = initClientCtx if err := autoCliOpts.EnhanceRootCommand(rootCmd); err != nil { diff --git a/go.mod b/go.mod index f502e016..472e6ddc 100644 --- a/go.mod +++ b/go.mod @@ -4,28 +4,28 @@ go 1.23 require ( cosmossdk.io/api v0.7.6 - cosmossdk.io/client/v2 v2.0.0-beta.1 - cosmossdk.io/core v0.11.0 + cosmossdk.io/client/v2 v2.0.0-beta.3 + cosmossdk.io/core v0.11.1 cosmossdk.io/errors v1.0.1 - cosmossdk.io/log v1.3.1 - cosmossdk.io/math v1.3.0 - cosmossdk.io/store v1.1.0 - cosmossdk.io/tools/confix v0.1.1 - cosmossdk.io/x/circuit v0.1.0 + cosmossdk.io/log v1.4.1 + cosmossdk.io/math v1.4.0 + cosmossdk.io/store v1.1.1 + cosmossdk.io/tools/confix v0.1.2 + cosmossdk.io/x/circuit v0.1.1 cosmossdk.io/x/evidence v0.1.1 cosmossdk.io/x/feegrant v0.1.1 - cosmossdk.io/x/tx v0.13.3 - cosmossdk.io/x/upgrade v0.1.2 + cosmossdk.io/x/tx v0.13.5 + cosmossdk.io/x/upgrade v0.1.4 github.com/armon/go-metrics v0.4.1 github.com/bufbuild/buf v1.31.0 - github.com/cometbft/cometbft v0.38.7 + github.com/cometbft/cometbft v0.38.12 github.com/cosmos/cosmos-db v1.0.2 github.com/cosmos/cosmos-proto v1.0.0-beta.5 - github.com/cosmos/cosmos-sdk v0.50.6 + github.com/cosmos/cosmos-sdk v0.50.9 github.com/cosmos/go-bip39 v1.0.0 - github.com/cosmos/gogoproto v1.4.12 - github.com/cosmos/ibc-go/modules/capability v1.0.0 - github.com/cosmos/ibc-go/v8 v8.2.1 + github.com/cosmos/gogoproto v1.7.0 + github.com/cosmos/ibc-go/modules/capability v1.0.1 + github.com/cosmos/ibc-go/v8 v8.5.1 github.com/ethereum/go-ethereum v1.14.2 github.com/gogo/protobuf v1.3.3 github.com/golang/protobuf v1.5.4 @@ -35,18 +35,17 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/ojo-evm/relayer v0.0.0-20240904192312-acda927a5d24 - github.com/ojo-network/price-feeder v0.2.1-rc1 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250115011724-f46db747fbc1 github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 - github.com/spf13/cast v1.6.0 + github.com/spf13/cast v1.7.0 github.com/spf13/cobra v1.8.1 - github.com/spf13/viper v1.18.2 + github.com/spf13/viper v1.19.0 github.com/stretchr/testify v1.9.0 golang.org/x/sync v0.8.0 golang.org/x/tools v0.24.0 - google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f - google.golang.org/grpc v1.64.1 + google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 + google.golang.org/grpc v1.67.1 google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0 google.golang.org/protobuf v1.34.2 gopkg.in/yaml.v3 v3.0.1 @@ -67,12 +66,13 @@ require ( connectrpc.com/connect v1.16.1 // indirect connectrpc.com/otelconnect v0.7.0 // indirect cosmossdk.io/collections v0.4.0 // indirect - cosmossdk.io/depinject v1.0.0-alpha.4 // indirect + cosmossdk.io/depinject v1.0.0 // indirect + cosmossdk.io/simapp v0.0.0-20240118210941-3897926e722e // indirect dario.cat/mergo v1.0.0 // indirect - filippo.io/edwards25519 v1.0.0 // indirect + filippo.io/edwards25519 v1.1.0 // indirect github.com/4meepo/tagalign v1.3.4 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect - github.com/99designs/keyring v1.2.1 // indirect + github.com/99designs/keyring v1.2.2 // indirect github.com/Abirdcfly/dupword v0.0.14 // indirect github.com/Antonboom/errname v0.1.13 // indirect github.com/Antonboom/nilnil v0.1.9 // indirect @@ -84,8 +84,8 @@ require ( github.com/DataDog/zstd v1.5.5 // indirect github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 // indirect github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.0 // indirect - github.com/Masterminds/semver/v3 v3.2.1 // indirect - github.com/Microsoft/go-winio v0.6.1 // indirect + github.com/Masterminds/semver/v3 v3.3.0 // indirect + github.com/Microsoft/go-winio v0.6.2 // indirect github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 // indirect github.com/OpenPeeDeeP/depguard/v2 v2.2.0 // indirect github.com/alecthomas/go-check-sumtype v0.1.4 // indirect @@ -96,6 +96,7 @@ require ( github.com/ashanbrown/forbidigo v1.6.0 // indirect github.com/ashanbrown/makezero v1.1.1 // indirect github.com/aws/aws-sdk-go v1.44.245 // indirect + github.com/bandprotocol/bandchain-packet v0.0.2 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect @@ -105,7 +106,7 @@ require ( github.com/bombsimon/wsl/v4 v4.4.1 // indirect github.com/breml/bidichk v0.2.7 // indirect github.com/breml/errchkjson v0.3.6 // indirect - github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect + github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2 // indirect github.com/bufbuild/protocompile v0.9.0 // indirect github.com/bufbuild/protovalidate-go v0.6.2 // indirect @@ -115,29 +116,30 @@ require ( github.com/catenacyber/perfsprint v0.7.1 // indirect github.com/ccojocar/zxcvbn-go v1.0.2 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cespare/xxhash v1.1.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/charithe/durationcheck v0.0.10 // indirect github.com/chavacava/garif v0.1.0 // indirect github.com/chzyer/readline v1.5.1 // indirect github.com/ckaznocha/intrange v0.1.2 // indirect github.com/cockroachdb/apd/v2 v2.0.2 // indirect - github.com/cockroachdb/errors v1.11.1 // indirect + github.com/cockroachdb/errors v1.11.3 // indirect + github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce // indirect github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect - github.com/cockroachdb/pebble v1.1.0 // indirect + github.com/cockroachdb/pebble v1.1.1 // indirect github.com/cockroachdb/redact v1.1.5 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect - github.com/cometbft/cometbft-db v0.11.0 // indirect - github.com/containerd/continuity v0.4.1 // indirect + github.com/cometbft/cometbft-db v0.12.0 // indirect + github.com/containerd/continuity v0.4.3 // indirect github.com/containerd/stargz-snapshotter/estargz v0.15.1 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect - github.com/cosmos/iavl v1.1.2 // indirect - github.com/cosmos/ics23/go v0.10.0 // indirect + github.com/cosmos/iavl v1.2.0 // indirect + github.com/cosmos/ibc-apps/modules/ibc-hooks/v8 v8.0.0-20240904212233-8cb681e31589 // indirect + github.com/cosmos/ics23/go v0.11.0 // indirect github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect - github.com/creachadair/atomicfile v0.3.1 // indirect - github.com/creachadair/tomledit v0.0.24 // indirect + github.com/creachadair/atomicfile v0.3.3 // indirect + github.com/creachadair/tomledit v0.0.26 // indirect github.com/curioswitch/go-reassign v0.2.0 // indirect github.com/daixiang0/gci v0.13.4 // indirect github.com/danieljoos/wincred v1.2.1 // indirect @@ -145,19 +147,19 @@ require ( github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect github.com/denis-tingaikin/go-header v0.5.0 // indirect github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect - github.com/dgraph-io/badger/v2 v2.2007.4 // indirect + github.com/dgraph-io/badger/v4 v4.2.0 // indirect github.com/dgraph-io/ristretto v0.1.1 // indirect - github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect github.com/distribution/reference v0.6.0 // indirect - github.com/docker/cli v26.1.0+incompatible // indirect + github.com/docker/cli v26.1.4+incompatible // indirect github.com/docker/distribution v2.8.3+incompatible // indirect - github.com/docker/docker v26.1.0+incompatible // indirect + github.com/docker/docker v27.1.1+incompatible // indirect github.com/docker/docker-credential-helpers v0.8.1 // indirect github.com/docker/go-connections v0.5.0 // indirect github.com/docker/go-units v0.5.0 // indirect github.com/dustin/go-humanize v1.0.1 // indirect - github.com/dvsekhvalnov/jose2go v1.6.0 // indirect - github.com/emicklei/dot v1.6.1 // indirect + github.com/dvsekhvalnov/jose2go v1.7.0 // indirect + github.com/elys-network/elys v0.51.1-0.20241126164143-99bd50ba942e // indirect + github.com/emicklei/dot v1.6.2 // indirect github.com/ettle/strcase v0.2.0 // indirect github.com/fatih/color v1.17.0 // indirect github.com/fatih/structtag v1.2.0 // indirect @@ -194,7 +196,7 @@ require ( github.com/gofrs/flock v0.12.1 // indirect github.com/gofrs/uuid/v5 v5.1.0 // indirect github.com/gogo/googleapis v1.4.1 // indirect - github.com/golang/glog v1.2.0 // indirect + github.com/golang/glog v1.2.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/mock v1.6.0 // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect @@ -207,6 +209,7 @@ require ( github.com/golangci/unconvert v0.0.0-20240309020433-c5143eacb3ed // indirect github.com/google/btree v1.1.2 // indirect github.com/google/cel-go v0.20.1 // indirect + github.com/google/flatbuffers v2.0.8+incompatible // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/google/go-containerregistry v0.19.1 // indirect github.com/google/orderedcode v0.0.1 // indirect @@ -218,7 +221,7 @@ require ( github.com/googleapis/gax-go/v2 v2.13.0 // indirect github.com/gordonklaus/ineffassign v0.1.0 // indirect github.com/gorilla/handlers v1.5.2 // indirect - github.com/gorilla/websocket v1.5.1 // indirect + github.com/gorilla/websocket v1.5.3 // indirect github.com/gostaticanalysis/analysisutil v0.7.1 // indirect github.com/gostaticanalysis/comment v1.4.2 // indirect github.com/gostaticanalysis/forcetypeassert v0.1.0 // indirect @@ -234,6 +237,7 @@ require ( github.com/hashicorp/go-safetemp v1.0.0 // indirect github.com/hashicorp/go-version v1.7.0 // indirect github.com/hashicorp/golang-lru v1.0.2 // indirect + github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/hashicorp/yamux v0.1.1 // indirect github.com/hdevalence/ed25519consensus v0.1.0 // indirect @@ -255,7 +259,7 @@ require ( github.com/karamaru-alpha/copyloopvar v1.1.0 // indirect github.com/kisielk/errcheck v1.7.0 // indirect github.com/kkHAIKE/contextcheck v1.1.5 // indirect - github.com/klauspost/compress v1.17.8 // indirect + github.com/klauspost/compress v1.17.9 // indirect github.com/klauspost/pgzip v1.2.6 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect @@ -268,7 +272,6 @@ require ( github.com/leodido/go-urn v1.2.4 // indirect github.com/leonklingele/grouper v1.1.2 // indirect github.com/lib/pq v1.10.9 // indirect - github.com/libp2p/go-buffer-pool v0.1.0 // indirect github.com/linxGnu/grocksdb v1.8.14 // indirect github.com/lufeee/execinquery v1.2.1 // indirect github.com/macabu/inamedparam v0.1.3 // indirect @@ -289,6 +292,7 @@ require ( github.com/moricho/tparallel v0.3.2 // indirect github.com/morikuni/aec v1.0.0 // indirect github.com/mtibben/percent v0.2.1 // indirect + github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/nakabonne/nestif v0.3.1 // indirect github.com/nishanths/exhaustive v0.12.0 // indirect github.com/nishanths/predeclared v0.2.2 // indirect @@ -299,7 +303,7 @@ require ( github.com/onsi/ginkgo v1.16.5 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.1.0 // indirect - github.com/opencontainers/runc v1.1.12 // indirect + github.com/opencontainers/runc v1.1.14 // indirect github.com/pelletier/go-toml/v2 v2.2.2 // indirect github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect @@ -307,10 +311,10 @@ require ( github.com/pkg/profile v1.7.0 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/polyfloyd/go-errorlint v1.6.0 // indirect - github.com/prometheus/client_golang v1.19.0 // indirect + github.com/prometheus/client_golang v1.20.5 // indirect github.com/prometheus/client_model v0.6.1 // indirect - github.com/prometheus/common v0.52.2 // indirect - github.com/prometheus/procfs v0.13.0 // indirect + github.com/prometheus/common v0.55.0 // indirect + github.com/prometheus/procfs v0.15.1 // indirect github.com/quasilyte/go-ruleguard v0.4.2 // indirect github.com/quasilyte/go-ruleguard/dsl v0.3.22 // indirect github.com/quasilyte/gogrep v0.5.0 // indirect @@ -319,7 +323,7 @@ require ( github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/rivo/uniseg v0.2.0 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect - github.com/rs/cors v1.10.1 // indirect + github.com/rs/cors v1.11.1 // indirect github.com/rs/xid v1.5.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/ryancurrah/gomodguard v1.3.3 // indirect @@ -372,7 +376,7 @@ require ( gitlab.com/bosi/decorder v0.4.2 // indirect go-simpler.org/musttag v0.12.2 // indirect go-simpler.org/sloglint v0.7.2 // indirect - go.etcd.io/bbolt v1.3.8 // indirect + go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.51.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.51.0 // indirect @@ -388,16 +392,16 @@ require ( golang.org/x/crypto v0.26.0 // indirect golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect golang.org/x/exp/typeparams v0.0.0-20240314144324-c7f7c6466f7f // indirect - golang.org/x/mod v0.20.0 // indirect + golang.org/x/mod v0.21.0 // indirect golang.org/x/net v0.28.0 // indirect golang.org/x/oauth2 v0.22.0 // indirect - golang.org/x/sys v0.23.0 // indirect + golang.org/x/sys v0.24.0 // indirect golang.org/x/term v0.23.0 // indirect golang.org/x/text v0.17.0 // indirect golang.org/x/time v0.6.0 // indirect google.golang.org/api v0.192.0 // indirect google.golang.org/genproto v0.0.0-20240730163845-b1a4ccb954bf // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect honnef.co/go/tools v0.5.1 // indirect diff --git a/go.sum b/go.sum index 24b5f2ca..50e3ca66 100644 --- a/go.sum +++ b/go.sum @@ -106,6 +106,7 @@ cloud.google.com/go/domains v0.6.0/go.mod h1:T9Rz3GasrpYk6mEGHh4rymIhjlnIuB4ofT1 cloud.google.com/go/domains v0.7.0/go.mod h1:PtZeqS1xjnXuRPKE/88Iru/LdfoRyEHYA9nFQf4UKpg= cloud.google.com/go/edgecontainer v0.1.0/go.mod h1:WgkZ9tp10bFxqO8BLPqv2LlfmQF1X8lZqwW4r1BTajk= cloud.google.com/go/edgecontainer v0.2.0/go.mod h1:RTmLijy+lGpQ7BXuTDa4C4ssxyXT34NIuHIgKuP4s5w= +cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk= cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg= cloud.google.com/go/gaming v1.5.0/go.mod h1:ol7rGcxP/qHTRQE/RO4bxkXq+Fix0j6D4LFPzYTIrDM= @@ -198,45 +199,49 @@ connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc= cosmossdk.io/api v0.7.6 h1:PC20PcXy1xYKH2KU4RMurVoFjjKkCgYRbVAD4PdqUuY= cosmossdk.io/api v0.7.6/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= -cosmossdk.io/client/v2 v2.0.0-beta.1 h1:XkHh1lhrLYIT9zKl7cIOXUXg2hdhtjTPBUfqERNA1/Q= -cosmossdk.io/client/v2 v2.0.0-beta.1/go.mod h1:JEUSu9moNZQ4kU3ir1DKD5eU4bllmAexrGWjmb9k8qU= +cosmossdk.io/client/v2 v2.0.0-beta.3 h1:+TTuH0DwQYsUq2JFAl3fDZzKq5gQG7nt3dAattkjFDU= +cosmossdk.io/client/v2 v2.0.0-beta.3/go.mod h1:CZcL41HpJPOOayTCO28j8weNBQprG+SRiKX39votypo= cosmossdk.io/collections v0.4.0 h1:PFmwj2W8szgpD5nOd8GWH6AbYNi1f2J6akWXJ7P5t9s= cosmossdk.io/collections v0.4.0/go.mod h1:oa5lUING2dP+gdDquow+QjlF45eL1t4TJDypgGd+tv0= -cosmossdk.io/core v0.11.0 h1:vtIafqUi+1ZNAE/oxLOQQ7Oek2n4S48SWLG8h/+wdbo= -cosmossdk.io/core v0.11.0/go.mod h1:LaTtayWBSoacF5xNzoF8tmLhehqlA9z1SWiPuNC6X1w= -cosmossdk.io/depinject v1.0.0-alpha.4 h1:PLNp8ZYAMPTUKyG9IK2hsbciDWqna2z1Wsl98okJopc= -cosmossdk.io/depinject v1.0.0-alpha.4/go.mod h1:HeDk7IkR5ckZ3lMGs/o91AVUc7E596vMaOmslGFM3yU= +cosmossdk.io/core v0.11.1 h1:h9WfBey7NAiFfIcUhDVNS503I2P2HdZLebJlUIs8LPA= +cosmossdk.io/core v0.11.1/go.mod h1:OJzxcdC+RPrgGF8NJZR2uoQr56tc7gfBKhiKeDO7hH0= +cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050= +cosmossdk.io/depinject v1.0.0/go.mod h1:zxK/h3HgHoA/eJVtiSsoaRaRA2D5U4cJ5thIG4ssbB8= cosmossdk.io/errors v1.0.1 h1:bzu+Kcr0kS/1DuPBtUFdWjzLqyUuCiyHjyJB6srBV/0= cosmossdk.io/errors v1.0.1/go.mod h1:MeelVSZThMi4bEakzhhhE/CKqVv3nOJDA25bIqRDu/U= -cosmossdk.io/log v1.3.1 h1:UZx8nWIkfbbNEWusZqzAx3ZGvu54TZacWib3EzUYmGI= -cosmossdk.io/log v1.3.1/go.mod h1:2/dIomt8mKdk6vl3OWJcPk2be3pGOS8OQaLUM/3/tCM= -cosmossdk.io/math v1.3.0 h1:RC+jryuKeytIiictDslBP9i1fhkVm6ZDmZEoNP316zE= -cosmossdk.io/math v1.3.0/go.mod h1:vnRTxewy+M7BtXBNFybkuhSH4WfedVAAnERHgVFhp3k= -cosmossdk.io/store v1.1.0 h1:LnKwgYMc9BInn9PhpTFEQVbL9UK475G2H911CGGnWHk= -cosmossdk.io/store v1.1.0/go.mod h1:oZfW/4Fc/zYqu3JmQcQdUJ3fqu5vnYTn3LZFFy8P8ng= -cosmossdk.io/tools/confix v0.1.1 h1:aexyRv9+y15veH3Qw16lxQwo+ki7r2I+g0yNTEFEQM8= -cosmossdk.io/tools/confix v0.1.1/go.mod h1:nQVvP1tHsGXS83PonPVWJtSbddIqyjEw99L4M3rPJyQ= -cosmossdk.io/x/circuit v0.1.0 h1:IAej8aRYeuOMritczqTlljbUVHq1E85CpBqaCTwYgXs= -cosmossdk.io/x/circuit v0.1.0/go.mod h1:YDzblVE8+E+urPYQq5kq5foRY/IzhXovSYXb4nwd39w= +cosmossdk.io/log v1.4.1 h1:wKdjfDRbDyZRuWa8M+9nuvpVYxrEOwbD/CA8hvhU8QM= +cosmossdk.io/log v1.4.1/go.mod h1:k08v0Pyq+gCP6phvdI6RCGhLf/r425UT6Rk/m+o74rU= +cosmossdk.io/math v1.4.0 h1:XbgExXFnXmF/CccPPEto40gOO7FpWu9yWNAZPN3nkNQ= +cosmossdk.io/math v1.4.0/go.mod h1:O5PkD4apz2jZs4zqFdTr16e1dcaQCc5z6lkEnrrppuk= +cosmossdk.io/simapp v0.0.0-20240118210941-3897926e722e h1:prrEM8wTWf6Rv0XchutuUtWfWlQHG4G3OylkTYgPlNk= +cosmossdk.io/simapp v0.0.0-20240118210941-3897926e722e/go.mod h1:MoWto/xnPVt23TgkMEp5Rssw9Z7sV7VUQb8j5/y+fXY= +cosmossdk.io/store v1.1.1 h1:NA3PioJtWDVU7cHHeyvdva5J/ggyLDkyH0hGHl2804Y= +cosmossdk.io/store v1.1.1/go.mod h1:8DwVTz83/2PSI366FERGbWSH7hL6sB7HbYp8bqksNwM= +cosmossdk.io/tools/confix v0.1.2 h1:2hoM1oFCNisd0ltSAAZw2i4ponARPmlhuNu3yy0VwI4= +cosmossdk.io/tools/confix v0.1.2/go.mod h1:7XfcbK9sC/KNgVGxgLM0BrFbVcR/+6Dg7MFfpx7duYo= +cosmossdk.io/x/circuit v0.1.1 h1:KPJCnLChWrxD4jLwUiuQaf5mFD/1m7Omyo7oooefBVQ= +cosmossdk.io/x/circuit v0.1.1/go.mod h1:B6f/urRuQH8gjt4eLIXfZJucrbreuYrKh5CSjaOxr+Q= cosmossdk.io/x/evidence v0.1.1 h1:Ks+BLTa3uftFpElLTDp9L76t2b58htjVbSZ86aoK/E4= cosmossdk.io/x/evidence v0.1.1/go.mod h1:OoDsWlbtuyqS70LY51aX8FBTvguQqvFrt78qL7UzeNc= cosmossdk.io/x/feegrant v0.1.1 h1:EKFWOeo/pup0yF0svDisWWKAA9Zags6Zd0P3nRvVvw8= cosmossdk.io/x/feegrant v0.1.1/go.mod h1:2GjVVxX6G2fta8LWj7pC/ytHjryA6MHAJroBWHFNiEQ= -cosmossdk.io/x/tx v0.13.3 h1:Ha4mNaHmxBc6RMun9aKuqul8yHiL78EKJQ8g23Zf73g= -cosmossdk.io/x/tx v0.13.3/go.mod h1:I8xaHv0rhUdIvIdptKIqzYy27+n2+zBVaxO6fscFhys= -cosmossdk.io/x/upgrade v0.1.2 h1:O2FGb0mVSXl7P6BQm9uV3hRVKom1zBLDGhd4G8jysJg= -cosmossdk.io/x/upgrade v0.1.2/go.mod h1:P+e4/ZNd8km7lTAX5hC2pXz/042YDcB7gzKTHuY53nc= +cosmossdk.io/x/tx v0.13.5 h1:FdnU+MdmFWn1pTsbfU0OCf2u6mJ8cqc1H4OMG418MLw= +cosmossdk.io/x/tx v0.13.5/go.mod h1:V6DImnwJMTq5qFjeGWpXNiT/fjgE4HtmclRmTqRVM3w= +cosmossdk.io/x/upgrade v0.1.4 h1:/BWJim24QHoXde8Bc64/2BSEB6W4eTydq0X/2f8+g38= +cosmossdk.io/x/upgrade v0.1.4/go.mod h1:9v0Aj+fs97O+Ztw+tG3/tp5JSlrmT7IcFhAebQHmOPo= dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek= -filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= +filippo.io/edwards25519 v1.0.0-beta.2/go.mod h1:X+pm78QAUPtFLi1z9PYIlS/bdDnvbCOGKtZ+ACWEf7o= +filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= +filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= github.com/4meepo/tagalign v1.3.4 h1:P51VcvBnf04YkHzjfclN6BbsopfJR5rxs1n+5zHt+w8= github.com/4meepo/tagalign v1.3.4/go.mod h1:M+pnkHH2vG8+qhE5bVc/zeP7HS/j910Fwa9TUSyZVI0= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= -github.com/99designs/keyring v1.2.1 h1:tYLp1ULvO7i3fI5vE21ReQuj99QFSs7lGm0xWyJo87o= -github.com/99designs/keyring v1.2.1/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA= +github.com/99designs/keyring v1.1.6/go.mod h1:16e0ds7LGQQcT59QqkTg72Hh5ShM51Byv5PEmW6uoRU= +github.com/99designs/keyring v1.2.2 h1:pZd3neh/EmUzWONb35LxQfvuY7kiSXAq3HQd97+XBn0= +github.com/99designs/keyring v1.2.2/go.mod h1:wes/FrByc8j7lFOAGLGSNEg8f/PaI3cgTBqhFkHUrPk= github.com/Abirdcfly/dupword v0.0.14 h1:3U4ulkc8EUo+CaT105/GJ1BQwtgyj6+VaBVbAX11Ba8= github.com/Abirdcfly/dupword v0.0.14/go.mod h1:VKDAbxdY8YbKUByLGg8EETzYSuC4crm9WwI6Y3S0cLI= github.com/Antonboom/errname v0.1.13 h1:JHICqsewj/fNckzrfVSe+T33svwQxmjC+1ntDsHOVvM= @@ -245,16 +250,32 @@ github.com/Antonboom/nilnil v0.1.9 h1:eKFMejSxPSA9eLSensFmjW2XTgTwJMjZ8hUHtV4s/S github.com/Antonboom/nilnil v0.1.9/go.mod h1:iGe2rYwCq5/Me1khrysB4nwI7swQvjclR8/YRPl5ihQ= github.com/Antonboom/testifylint v1.4.3 h1:ohMt6AHuHgttaQ1xb6SSnxCeK4/rnK7KKzbvs7DmEck= github.com/Antonboom/testifylint v1.4.3/go.mod h1:+8Q9+AOLsz5ZiQiiYujJKs9mNz398+M6UgslP4qgJLA= +github.com/Azure/azure-pipeline-go v0.2.1/go.mod h1:UGSo8XybXnIGZ3epmeBw7Jdz+HiUVpqIlpz/HKHylF4= +github.com/Azure/azure-pipeline-go v0.2.2/go.mod h1:4rQ/NZncSvGqNkkOsNpOU1tgoNuIlp9AfUH5G1tvCHc= +github.com/Azure/azure-storage-blob-go v0.7.0/go.mod h1:f9YQKtsG1nMisotuTPpO0tjNuEjKRYAcJU8/ydDI++4= github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= +github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= +github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0= +github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc= +github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA= +github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g= +github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= +github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= +github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM= +github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= +github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c h1:pxW6RcqyfI9/kWtOwnv/G+AzdKuy2ZrqINhenH4HyNs= github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4= github.com/Crocmagnon/fatcontext v0.4.0 h1:4ykozu23YHA0JB6+thiuEv7iT6xq995qS1vcuWZq0tg= github.com/Crocmagnon/fatcontext v0.4.0/go.mod h1:ZtWrXkgyfsYPzS6K3O88va6t2GEglG93vnII/F94WC0= github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= +github.com/DataDog/zstd v1.4.1/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= +github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= github.com/DataDog/zstd v1.5.5 h1:oWf5W7GtOLgp6bciQYDmhHHjdhYkALu6S/5Ni9ZgSvQ= github.com/DataDog/zstd v1.5.5/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 h1:sHglBQTwgx+rWPdisA5ynNEsoARbiCBOyGcJM4/OzsM= @@ -262,22 +283,26 @@ github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24/go.mod h1:4UJr5H github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.0 h1:/fTUt5vmbkAcMBt4YQiuC23cV0kEsN1MVMNqeOW43cU= github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.0/go.mod h1:ONJg5sxcbsdQQ4pOW8TGdTidT2TMAUy/2Xhr8mrYaao= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= -github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0= -github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= -github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= -github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= +github.com/Masterminds/semver/v3 v3.3.0 h1:B8LGeaivUe71a5qox1ICM/JLl0NqZSW5CHyL+hmvYS0= +github.com/Masterminds/semver/v3 v3.3.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= +github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= +github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= -github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/OpenPeeDeeP/depguard/v2 v2.2.0 h1:vDfG60vDtIuf0MEOhmLlLLSzqaRM8EMcgJPdp74zmpA= github.com/OpenPeeDeeP/depguard/v2 v2.2.0/go.mod h1:CIzddKRvLBC4Au5aYP/i3nyaWQ+ClszLIuVocRiCYFQ= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= +github.com/VictoriaMetrics/fastcache v1.5.7/go.mod h1:ptDBkNMQI4RtmVo8VS/XwRY6RoTu1dAWCbrk+6WsEM8= github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= +github.com/Workiva/go-datastructures v1.0.52/go.mod h1:Z+F2Rca0qCsVYDS8z7bAGm8f3UkzuWYS/oBZz5a7VVA= +github.com/Zilliqa/gozilliqa-sdk v1.2.1-0.20201201074141-dd0ecada1be6/go.mod h1:eSYp2T6f0apnuW8TzhV3f6Aff2SE8Dwio++U4ha4yEM= github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= +github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= github.com/alecthomas/assert/v2 v2.2.2 h1:Z/iVC0xZfWTaFNE6bA3z07T86hd45Xe2eLt6WVy2bbk= github.com/alecthomas/assert/v2 v2.2.2/go.mod h1:pXcQ2Asjp247dahGEmsZ6ru0UVwnkhktn7S0bBDLxvQ= @@ -296,14 +321,17 @@ github.com/alexkohler/prealloc v1.0.0 h1:Hbq0/3fJPQhNkN0dR95AVrr6R7tou91y0uHG5pO github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE= github.com/alingse/asasalint v0.0.11 h1:SFwnQXJ49Kx/1GghOFz1XGqHYKp21Kq1nHad/0WQRnw= github.com/alingse/asasalint v0.0.11/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqrSP7t/cW5+I= +github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/antlr4-go/antlr/v4 v4.13.0 h1:lxCg3LAv+EUK6t1i0y1V6/SLeUi0eKEKdhQAlS8TVTI= github.com/antlr4-go/antlr/v4 v4.13.0/go.mod h1:pfChB/xh/Unjila75QW7+VU4TSnWnnk9UTnmpPaOR2g= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/aristanetworks/goarista v0.0.0-20170210015632-ea17b1a17847/go.mod h1:D/tb0zPVXnP7fmsLZjtdUhSsumbK/ij54UXjjVgMGxQ= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-metrics v0.3.9/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= @@ -313,11 +341,14 @@ github.com/ashanbrown/forbidigo v1.6.0/go.mod h1:Y8j9jy9ZYAEHXdu723cUlraTqbzjKF1 github.com/ashanbrown/makezero v1.1.1 h1:iCQ87C0V0vSyO+M9E/FZYbu65auqH0lnsOkf5FcB28s= github.com/ashanbrown/makezero v1.1.1/go.mod h1:i1bJLCRSCHOcOa9Y6MyF2FTfMZMFdHvxKHxgO5Z1axI= github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= +github.com/aws/aws-sdk-go v1.25.48/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= github.com/aws/aws-sdk-go v1.44.245 h1:KtY2s4q31/kn33AdV63R5t77mdxsI7rq3YT7Mgo805M= github.com/aws/aws-sdk-go v1.44.245/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= +github.com/bandprotocol/bandchain-packet v0.0.2 h1:FySqsXp6sIh0kHiNBrkvt5CRmsrqTN2Bd26U7cebKxg= +github.com/bandprotocol/bandchain-packet v0.0.2/go.mod h1:pk/wJxznWERdDVU2WWpzt8Tr0WvDSkT66JDYVdIECAo= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= @@ -330,6 +361,8 @@ github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2 github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bits-and-blooms/bitset v1.10.0 h1:ePXTeiPEazB5+opbv5fr8umg2R/1NlzgDsyepwsSr88= github.com/bits-and-blooms/bitset v1.10.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= +github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= +github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= github.com/bkielbasa/cyclop v1.2.1 h1:AeF71HZDob1P2/pRm1so9cd1alZnrpyc4q2uP2l0gJY= github.com/bkielbasa/cyclop v1.2.1/go.mod h1:K/dT/M0FPAiYjBgQGau7tz+3TMh4FWAEqlMhzFWCrgM= github.com/blizzy78/varnamelen v0.8.0 h1:oqSblyuQvFsW1hbBHh1zfwrKe3kcSj0rnXkKzsQ089M= @@ -340,12 +373,32 @@ github.com/breml/bidichk v0.2.7 h1:dAkKQPLl/Qrk7hnP6P+E0xOodrq8Us7+U0o4UBOAlQY= github.com/breml/bidichk v0.2.7/go.mod h1:YodjipAGI9fGcYM7II6wFvGhdMYsC5pHDlGzqvEW3tQ= github.com/breml/errchkjson v0.3.6 h1:VLhVkqSBH96AvXEyclMR37rZslRrY2kcyq+31HCsVrA= github.com/breml/errchkjson v0.3.6/go.mod h1:jhSDoFheAF2RSDOlCfhHO9KqhZgAYLyvHe7bRCX8f/U= -github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= -github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= -github.com/btcsuite/btcd/btcutil v1.1.3 h1:xfbtw8lwpp0G6NwSHb+UE67ryTFHJAiNuipusjXSohQ= -github.com/btcsuite/btcd/btcutil v1.1.3/go.mod h1:UR7dsSJzJUfMmFiiLlIrMq1lS9jh9EdCV7FStZSnpi0= +github.com/btcsuite/btcd v0.0.0-20171128150713-2e60448ffcc6/go.mod h1:Dmm/EzmjnCiweXmzRIAiUWCInVmPgjkzgv5k4tVyXiQ= +github.com/btcsuite/btcd v0.0.0-20190115013929-ed77733ec07d/go.mod h1:d3C0AkH6BRcvO8T0UEPu53cnw4IbV63x1bEjildYhO0= +github.com/btcsuite/btcd v0.0.0-20190315201642-aa6e0f35703c/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= +github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= +github.com/btcsuite/btcd v0.21.0-beta/go.mod h1:ZSWyehm27aAuS9bvkATT+Xte3hjHZ+MRgMY/8NJ7K94= +github.com/btcsuite/btcd v0.22.0-beta h1:LTDpDKUM5EeOFBPM8IXpinEcmZ6FWfNZbE3lfrfdnWo= +github.com/btcsuite/btcd v0.22.0-beta/go.mod h1:9n5ntfhhHQBIhUvlhDvD3Qg6fRUj4jkN0VB8L8svzOA= +github.com/btcsuite/btcd/btcec/v2 v2.3.4 h1:3EJjcN70HCu/mwqlUsGK8GcNVyLVxFDlWurTXGPFfiQ= +github.com/btcsuite/btcd/btcec/v2 v2.3.4/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= +github.com/btcsuite/btcd/btcutil v1.1.6 h1:zFL2+c3Lb9gEgqKNzowKUPQNb8jV7v5Oaodi/AYFd6c= +github.com/btcsuite/btcd/btcutil v1.1.6/go.mod h1:9dFymx8HpuLqBnsPELrImQeTQfKBQqzqGbbV3jK55aE= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2 h1:KdUfX2zKommPRa+PD0sWZUyXe9w277ABlgELO7H04IM= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= +github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= +github.com/btcsuite/btcutil v0.0.0-20180706230648-ab6388e0c60a/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= +github.com/btcsuite/btcutil v0.0.0-20190207003914-4c204d697803/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= +github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= +github.com/btcsuite/btcutil v1.0.2/go.mod h1:j9HUFwoQRsZL3V4n+qG+CUnEGHOarIxfC3Le2Yhbcts= +github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce/go.mod h1:0DVlHczLPewLcPGEIeUEzfOJhqGPQ0mJJRDBtD307+o= +github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= +github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= +github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I= +github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= +github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= +github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= +github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= github.com/bufbuild/buf v1.31.0 h1:YHLGIr8bjcLaTCIw0+/bCAvJLiR8u46QTwKvn7miSEg= github.com/bufbuild/buf v1.31.0/go.mod h1:LlxpG2LF33f1Ixw29BTt0pyLriLzg3rXY1K9XQVHSio= github.com/bufbuild/protocompile v0.9.0 h1:DI8qLG5PEO0Mu1Oj51YFPqtx6I3qYXUAhJVJ/IzAVl0= @@ -369,7 +422,7 @@ github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInq github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= +github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= @@ -397,6 +450,7 @@ github.com/ckaznocha/intrange v0.1.2 h1:3Y4JAxcMntgb/wABQ6e8Q8leMd26JbX2790lIss9 github.com/ckaznocha/intrange v0.1.2/go.mod h1:RWffCw/vKBwHeOEwWdCikAtY0q4gGt8VhJZEEA5n+RE= github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cloudflare/cloudflare-go v0.10.2-0.20190916151808-a80f83b9add9/go.mod h1:1MxXX1Ux4x6mqPmjkUgTP1CdXIBXKX7T+Jk9Gxrmx+U= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= @@ -411,66 +465,92 @@ github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOG github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f h1:otljaYPt5hWxV3MUfO5dFPFiOXg9CyG5/kCfayTqsJ4= github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= -github.com/cockroachdb/errors v1.11.1 h1:xSEW75zKaKCWzR3OfxXUxgrk/NtT4G1MiOv5lWZazG8= -github.com/cockroachdb/errors v1.11.1/go.mod h1:8MUxA3Gi6b25tYlFEBGLf+D8aISL+M4MIpiWMSNRfxw= +github.com/cockroachdb/errors v1.11.3 h1:5bA+k2Y6r+oz/6Z/RFlNeVCesGARKuC6YymtcDrbC/I= +github.com/cockroachdb/errors v1.11.3/go.mod h1:m4UIW4CDjx+R5cybPsNrRbreomiFqt8o1h1wUVazSd8= +github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce h1:giXvy4KSc/6g/esnpM7Geqxka4WSqI1SZc7sMJFd3y4= +github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce/go.mod h1:9/y3cnZ5GKakj/H4y9r9GTjCvAFta7KLgSHPJJYc52M= github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= -github.com/cockroachdb/pebble v1.1.0 h1:pcFh8CdCIt2kmEpK0OIatq67Ln9uGDYY3d5XnE0LJG4= -github.com/cockroachdb/pebble v1.1.0/go.mod h1:sEHm5NOXxyiAoKWhoFxT8xMgd/f3RA6qUqQ1BXKrh2E= +github.com/cockroachdb/pebble v1.1.1 h1:XnKU22oiCLy2Xn8vp1re67cXg4SAasg/WDt1NtcRFaw= +github.com/cockroachdb/pebble v1.1.1/go.mod h1:4exszw1r40423ZsmkG/09AFEG83I0uDgfujJdbL6kYU= github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/cometbft/cometbft v0.38.7 h1:ULhIOJ9+LgSy6nLekhq9ae3juX3NnQUMMPyVdhZV6Hk= -github.com/cometbft/cometbft v0.38.7/go.mod h1:HIyf811dFMI73IE0F7RrnY/Fr+d1+HuJAgtkEpQjCMY= -github.com/cometbft/cometbft-db v0.11.0 h1:M3Lscmpogx5NTbb1EGyGDaFRdsoLWrUWimFEyf7jej8= -github.com/cometbft/cometbft-db v0.11.0/go.mod h1:GDPJAC/iFHNjmZZPN8V8C1yr/eyityhi2W1hz2MGKSc= -github.com/containerd/continuity v0.4.1 h1:wQnVrjIyQ8vhU2sgOiL5T07jo+ouqc2bnKsv5/EqGhU= -github.com/containerd/continuity v0.4.1/go.mod h1:F6PTNCKepoxEaXLQp3wDAjygEnImnZ/7o4JzpodfroQ= +github.com/coinbase/rosetta-sdk-go v0.6.10/go.mod h1:J/JFMsfcePrjJZkwQFLh+hJErkAmdm9Iyy3D5Y0LfXo= +github.com/cometbft/cometbft v0.38.12 h1:OWsLZN2KcSSFe8bet9xCn07VwhBnavPea3VyPnNq1bg= +github.com/cometbft/cometbft v0.38.12/go.mod h1:GPHp3/pehPqgX1930HmK1BpBLZPxB75v/dZg8Viwy+o= +github.com/cometbft/cometbft-db v0.12.0 h1:v77/z0VyfSU7k682IzZeZPFZrQAKiQwkqGN0QzAjMi0= +github.com/cometbft/cometbft-db v0.12.0/go.mod h1:aX2NbCrjNVd2ZajYxt1BsiFf/Z+TQ2MN0VxdicheYuw= +github.com/confio/ics23/go v0.0.0-20200817220745-f173e6211efb/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= +github.com/confio/ics23/go v0.6.3/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= +github.com/confio/ics23/go v0.6.6/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= +github.com/containerd/continuity v0.4.3 h1:6HVkalIp+2u1ZLH1J/pYX2oBVXlJZvh1X1A7bEZ9Su8= +github.com/containerd/continuity v0.4.3/go.mod h1:F6PTNCKepoxEaXLQp3wDAjygEnImnZ/7o4JzpodfroQ= github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I= github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo= github.com/containerd/stargz-snapshotter/estargz v0.15.1 h1:eXJjw9RbkLFgioVaTG+G/ZW/0kEe2oEKCdS/ZxIyoCU= github.com/containerd/stargz-snapshotter/estargz v0.15.1/go.mod h1:gr2RNwukQ/S9Nv33Lt6UC7xEx58C+LHRdoqbEKjz1Kk= +github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= github.com/cosmos/cosmos-db v1.0.2 h1:hwMjozuY1OlJs/uh6vddqnk9j7VamLv+0DBlbEXbAKs= github.com/cosmos/cosmos-db v1.0.2/go.mod h1:Z8IXcFJ9PqKK6BIsVOB3QXtkKoqUOp1vRvPT39kOXEA= github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= -github.com/cosmos/cosmos-sdk v0.50.6 h1:efR3MsvMHX5sxS3be+hOobGk87IzlZbSpsI2x/Vw3hk= -github.com/cosmos/cosmos-sdk v0.50.6/go.mod h1:lVkRY6cdMJ0fG3gp8y4hFrsKZqF4z7y0M2UXFb9Yt40= +github.com/cosmos/cosmos-sdk v0.43.0/go.mod h1:ctcrTEAhei9s8O3KSNvL0dxe+fVQGp07QyRb/7H9JYE= +github.com/cosmos/cosmos-sdk v0.50.9 h1:gt2usjz0H0qW6KwAxWw7ZJ3XU8uDwmhN+hYG3nTLeSg= +github.com/cosmos/cosmos-sdk v0.50.9/go.mod h1:TMH6wpoYBcg7Cp5BEg8fneLr+8XloNQkf2MRNF9V6JE= +github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ4GUkT+tbFI= github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU= -github.com/cosmos/gogoproto v1.4.12 h1:vB6Lbe/rtnYGjQuFxkPiPYiCybqFT8QvLipDZP8JpFE= -github.com/cosmos/gogoproto v1.4.12/go.mod h1:LnZob1bXRdUoqMMtwYlcR3wjiElmlC+FkjaZRv1/eLY= -github.com/cosmos/iavl v1.1.2 h1:zL9FK7C4L/P4IF1Dm5fIwz0WXCnn7Bp1M2FxH0ayM7Y= -github.com/cosmos/iavl v1.1.2/go.mod h1:jLeUvm6bGT1YutCaL2fIar/8vGUE8cPZvh/gXEWDaDM= -github.com/cosmos/ibc-go/modules/capability v1.0.0 h1:r/l++byFtn7jHYa09zlAdSeevo8ci1mVZNO9+V0xsLE= -github.com/cosmos/ibc-go/modules/capability v1.0.0/go.mod h1:D81ZxzjZAe0ZO5ambnvn1qedsFQ8lOwtqicG6liLBco= -github.com/cosmos/ibc-go/v8 v8.2.1 h1:MTsnZZjxvGD4Fv5pYyx5UkELafSX0rlPt6IfsE2BpTQ= -github.com/cosmos/ibc-go/v8 v8.2.1/go.mod h1:wj3qx75iC/XNnsMqbPDCIGs0G6Y3E/lo3bdqCyoCy+8= -github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= -github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= +github.com/cosmos/gogoproto v1.7.0 h1:79USr0oyXAbxg3rspGh/m4SWNyoz/GLaAh0QlCe2fro= +github.com/cosmos/gogoproto v1.7.0/go.mod h1:yWChEv5IUEYURQasfyBW5ffkMHR/90hiHgbNgrtp4j0= +github.com/cosmos/iavl v0.15.0-rc3.0.20201009144442-230e9bdf52cd/go.mod h1:3xOIaNNX19p0QrX0VqWa6voPRoJRGGYtny+DH8NEPvE= +github.com/cosmos/iavl v0.15.0-rc5/go.mod h1:WqoPL9yPTQ85QBMT45OOUzPxG/U/JcJoN7uMjgxke/I= +github.com/cosmos/iavl v0.15.3/go.mod h1:OLjQiAQ4fGD2KDZooyJG9yz+p2ao2IAYSbke8mVvSA4= +github.com/cosmos/iavl v0.16.0/go.mod h1:2A8O/Jz9YwtjqXMO0CjnnbTYEEaovE8jWcwrakH3PoE= +github.com/cosmos/iavl v1.2.0 h1:kVxTmjTh4k0Dh1VNL046v6BXqKziqMDzxo93oh3kOfM= +github.com/cosmos/iavl v1.2.0/go.mod h1:HidWWLVAtODJqFD6Hbne2Y0q3SdxByJepHUOeoH4LiI= +github.com/cosmos/ibc-apps/modules/ibc-hooks/v8 v8.0.0-20240904212233-8cb681e31589 h1:07Phc7T7T+xsrAg3wArlSxjye5usg4ECUwEN2cD+fsA= +github.com/cosmos/ibc-apps/modules/ibc-hooks/v8 v8.0.0-20240904212233-8cb681e31589/go.mod h1:9+Z14xz3Y+5uEn5i1CvLcDN1aTthEhYUdI7pphySkY8= +github.com/cosmos/ibc-go v1.0.0/go.mod h1:2wHKQUa+BLJMEyN635KrHfmTTwSNHBtXcqdY8JWGuXA= +github.com/cosmos/ibc-go/modules/capability v1.0.1 h1:ibwhrpJ3SftEEZRxCRkH0fQZ9svjthrX2+oXdZvzgGI= +github.com/cosmos/ibc-go/modules/capability v1.0.1/go.mod h1:rquyOV262nGJplkumH+/LeYs04P3eV8oB7ZM4Ygqk4E= +github.com/cosmos/ibc-go/v8 v8.5.1 h1:3JleEMKBjRKa3FeTKt4fjg22za/qygLBo7mDkoYTNBs= +github.com/cosmos/ibc-go/v8 v8.5.1/go.mod h1:P5hkAvq0Qbg0h18uLxDVA9q1kOJ0l36htMsskiNwXbo= +github.com/cosmos/ics23/go v0.11.0 h1:jk5skjT0TqX5e5QJbEnwXIS2yI2vnmLOgpQPeM5RtnU= +github.com/cosmos/ics23/go v0.11.0/go.mod h1:A8OjxPE67hHST4Icw94hOxxFEJMBG031xIGF/JHNIY0= +github.com/cosmos/ledger-cosmos-go v0.11.1/go.mod h1:J8//BsAGTo3OC/vDLjMRFLW6q0WAaXvHnVc7ZmE8iUY= github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= +github.com/cosmos/ledger-go v0.9.2/go.mod h1:oZJ2hHAZROdlHiwTg4t7kP+GKIIkBT+o6c9QWFanOyI= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/creachadair/atomicfile v0.3.1 h1:yQORkHjSYySh/tv5th1dkKcn02NEW5JleB84sjt+W4Q= -github.com/creachadair/atomicfile v0.3.1/go.mod h1:mwfrkRxFKwpNAflYZzytbSwxvbK6fdGRRlp0KEQc0qU= -github.com/creachadair/tomledit v0.0.24 h1:5Xjr25R2esu1rKCbQEmjZYlrhFkDspoAbAKb6QKQDhQ= -github.com/creachadair/tomledit v0.0.24/go.mod h1:9qHbShRWQzSCcn617cMzg4eab1vbLCOjOshAWSzWr8U= +github.com/creachadair/atomicfile v0.3.3 h1:yJlDq8qk9QmD/6ol+jq1X4bcoLNVdYq95+owOnauziE= +github.com/creachadair/atomicfile v0.3.3/go.mod h1:X1r9P4wigJlGkYJO1HXZREdkVn+b1yHrsBBMLSj7tak= +github.com/creachadair/mtest v0.0.0-20231015022703-31f2ea539dce h1:BFjvg2Oq88/2DOcUFu1ScIwKUn7KJYYvLr6AeuCJD54= +github.com/creachadair/mtest v0.0.0-20231015022703-31f2ea539dce/go.mod h1:okn1ft6DY+qjPmnvYynyq7ufIQKJ2x2qwOCJZecei1k= +github.com/creachadair/tomledit v0.0.26 h1:MoDdgHIHZ5PctBVsAZDjxdxreWUEa9ObPKTRkk5PPwA= +github.com/creachadair/tomledit v0.0.26/go.mod h1:SJi1OxKpMyR141tq1lzsbPtIg3j8TeVPM/ZftfieD7o= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= @@ -479,55 +559,72 @@ github.com/curioswitch/go-reassign v0.2.0 h1:G9UZyOcpk/d7Gd6mqYgd8XYWFMw/znxwGDU github.com/curioswitch/go-reassign v0.2.0/go.mod h1:x6OpXuWvgfQaMGks2BZybTngWjT84hqJfKoO8Tt/Roc= github.com/daixiang0/gci v0.13.4 h1:61UGkmpoAcxHM2hhNkZEf5SzwQtWJXTSws7jaPyqwlw= github.com/daixiang0/gci v0.13.4/go.mod h1:12etP2OniiIdP4q+kjUGrC/rUagga7ODbqsom5Eo5Yk= +github.com/danieljoos/wincred v1.0.2/go.mod h1:SnuYRW9lp1oJrZX/dXJqr0cPK5gYXqx3EJbmjhLdK9U= github.com/danieljoos/wincred v1.2.1 h1:dl9cBrupW8+r5250DYkYxocLeZ1Y4vB1kxgtjxw8GQs= github.com/danieljoos/wincred v1.2.1/go.mod h1:uGaFL9fDn3OLTvzCGulzE+SzjEe5NGlh5FdCcyfPwps= +github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/deckarep/golang-set v0.0.0-20180603214616-504e848d77ea/go.mod h1:93vsz/8Wt4joVM7c2AVqh+YRMiUSc14yDtF28KmMOgQ= github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= +github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= github.com/denis-tingaikin/go-header v0.5.0 h1:SRdnP5ZKvcO9KKRP1KJrhFR3RrlGuD+42t4429eC9k8= github.com/denis-tingaikin/go-header v0.5.0/go.mod h1:mMenU5bWrok6Wl2UsZjy+1okegmwQ3UgWl4V1D8gjlY= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= -github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= -github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN/Uz0X0VPruTIhk= +github.com/dgraph-io/badger/v2 v2.2007.1/go.mod h1:26P/7fbL4kUZVEVKLAKXkBXKOydDmM2p1e+NhhnBCAE= +github.com/dgraph-io/badger/v2 v2.2007.2/go.mod h1:26P/7fbL4kUZVEVKLAKXkBXKOydDmM2p1e+NhhnBCAE= +github.com/dgraph-io/badger/v4 v4.2.0 h1:kJrlajbXXL9DFTNuhhu9yCx7JJa4qpYWxtE8BzuWsEs= +github.com/dgraph-io/badger/v4 v4.2.0/go.mod h1:qfCqhPoWDFJRx1gp5QwwyGo8xk1lbHUxvK9nK0OGAak= github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= +github.com/dgraph-io/ristretto v0.0.3/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk= github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= -github.com/docker/cli v26.1.0+incompatible h1:+nwRy8Ocd8cYNQ60mozDDICICD8aoFGtlPXifX/UQ3Y= -github.com/docker/cli v26.1.0+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= +github.com/dlclark/regexp2 v1.2.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= +github.com/docker/cli v26.1.4+incompatible h1:I8PHdc0MtxEADqYJZvhBrW9bo8gawKwwenxRM7/rLu8= +github.com/docker/cli v26.1.4+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk= github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/docker v26.1.0+incompatible h1:W1G9MPNbskA6VZWL7b3ZljTh0pXI68FpINx0GKaOdaM= -github.com/docker/docker v26.1.0+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker v27.1.1+incompatible h1:hO/M4MtV36kzKldqnA37IWhebRA+LnqqcqDja6kVaKY= +github.com/docker/docker v27.1.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker-credential-helpers v0.8.1 h1:j/eKUktUltBtMzKqmfLB0PAgqYyMHOp5vfsD1807oKo= github.com/docker/docker-credential-helpers v0.8.1/go.mod h1:P3ci7E3lwkZg6XiHdRKft1KckHiO9a2rNtyFbZ/ry9M= github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c= github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/dop251/goja v0.0.0-20200721192441-a695b0cdd498/go.mod h1:Mw6PkjjMXWbTj+nnj4s3QPXq1jaT0s5pC0iFD4+BOAA= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= -github.com/dvsekhvalnov/jose2go v1.6.0 h1:Y9gnSnP4qEI0+/uQkHvFXeD2PLPJeXEL+ySMEA2EjTY= -github.com/dvsekhvalnov/jose2go v1.6.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= +github.com/dvsekhvalnov/jose2go v0.0.0-20200901110807-248326c1351b/go.mod h1:7BvyPhdbLxMXIYTFPLsyJRFMsKmOZnQmzh6Gb+uquuM= +github.com/dvsekhvalnov/jose2go v1.7.0 h1:bnQc8+GMnidJZA8zc6lLEAb4xNrIqHwO+9TzqvtQZPo= +github.com/dvsekhvalnov/jose2go v1.7.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= +github.com/dvyukov/go-fuzz v0.0.0-20200318091601-be3528f3a813/go.mod h1:11Gm+ccJnvAhCNLlf5+cS9KjtbaD5I5zaZpFMsTHWTw= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/edsrzf/mmap-go v0.0.0-20160512033002-935e0e8a636c/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= -github.com/emicklei/dot v1.6.1 h1:ujpDlBkkwgWUY+qPId5IwapRW/xEoligRSYjioR6DFI= -github.com/emicklei/dot v1.6.1/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= +github.com/elys-network/elys v0.51.1-0.20241126164143-99bd50ba942e h1:lbUdhoZYxp5Q0tYGmnj0HTw+9TXUrWFfow52Jo0fx/0= +github.com/elys-network/elys v0.51.1-0.20241126164143-99bd50ba942e/go.mod h1:vZBFu/AoxShUfC/swiMqVNkIbxHJgPpI79XJPnAyFDQ= +github.com/emicklei/dot v1.6.2 h1:08GN+DD79cy/tzN6uLCT84+2Wk9u+wvqP+Hkx/dIR8A= +github.com/emicklei/dot v1.6.2/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= +github.com/enigmampc/btcutil v1.0.3-0.20200723161021-e2fb6adb2a25/go.mod h1:hTr8+TLQmkUkgcuh3mcr5fjrT9c64ZzsBCdCEC6UppY= github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= @@ -539,13 +636,19 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.m github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A= -github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew= +github.com/envoyproxy/protoc-gen-validate v1.1.0 h1:tntQDh69XqOCOZsDz0lVJQez/2L6Uu2PdjCQwWCJ3bM= +github.com/envoyproxy/protoc-gen-validate v1.1.0/go.mod h1:sXRDRVmzEbkM7CVcM06s9shE/m23dg3wzjl0UWqJ2q4= +github.com/ethereum/go-ethereum v1.9.25/go.mod h1:vMkFiYLHI4tgPw4k2j4MHKoovchFE8plZ0M9VMk4/oM= github.com/ethereum/go-ethereum v1.14.2 h1:3ketymsXTLiXmtnCrXab/EUsV+X8KhwUqv572TriDaU= github.com/ethereum/go-ethereum v1.14.2/go.mod h1:1STrq471D0BQbCX9He0hUj4bHxX2k6mt5nOQJhDNOJ8= github.com/ettle/strcase v0.2.0 h1:fGNiVF21fHXpX1niBgk0aROov1LagYsOwV/xqKDKR/Q= github.com/ettle/strcase v0.2.0/go.mod h1:DajmHElDSaX76ITe3/VHVyMin4LWSJN5Z909Wp+ED1A= +github.com/facebookgo/ensure v0.0.0-20160127193407-b4ab57deab51/go.mod h1:Yg+htXGokKKdzcwhuNDwVvN+uBxDGXJ7G/VN1d8fa64= +github.com/facebookgo/stack v0.0.0-20160209184415-751773369052/go.mod h1:UbMTZqLaRiH3MsBH8va0n7s1pQYcu3uTb8G4tygF4Zg= +github.com/facebookgo/subset v0.0.0-20150612182917-8dac2c3c4870/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0= +github.com/fatih/color v1.3.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= @@ -554,10 +657,12 @@ github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4 github.com/felixge/fgprof v0.9.3/go.mod h1:RdbpDgzqYVh/T9fPELJyV7EYJuHB55UTEULNun8eiPw= github.com/felixge/fgprof v0.9.4 h1:ocDNwMFlnA0NU0zSB3I52xkO4sFXk80VK9lXjLClu88= github.com/felixge/fgprof v0.9.4/go.mod h1:yKl+ERSa++RYOs32d8K6WEXCB4uXdLls4ZaZPpayhMM= +github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/firefart/nonamedreturns v1.0.5 h1:tM+Me2ZaXs8tfdDw3X6DOX++wMCOqzYUho6tUTYIdRA= github.com/firefart/nonamedreturns v1.0.5/go.mod h1:gHJjDqhGM4WyPt639SOZs+G89Ko7QKH5R5BhnO6xJhw= +github.com/fjl/memsize v0.0.0-20180418122429-ca190fb6ffbc/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= @@ -572,6 +677,7 @@ github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo= github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU= github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA= +github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff/go.mod h1:x7DCsMOv1taUwEWCzT4cmDeAkigA5/QCwUodaVOe8Ww= github.com/getsentry/sentry-go v0.27.0 h1:Pv98CIbtB3LkMWmXi4Joa5OOcwbmnX88sF5qbK3r3Ps= github.com/getsentry/sentry-go v0.27.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= @@ -610,6 +716,7 @@ github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8= github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= @@ -624,6 +731,7 @@ github.com/go-playground/validator/v10 v10.15.0 h1:nDU5XeOKtB3GEa+uB7GNYwhVKsgjA github.com/go-playground/validator/v10 v10.15.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= github.com/go-quicktest/qt v1.101.0 h1:O1K29Txy5P2OK0dGo59b7b0LR6wKfIhttaAhHUyn7eI= github.com/go-quicktest/qt v1.101.0/go.mod h1:14Bz/f7NwaXPtdYEgzsx46kqSxVwTbzVZsDC26tQJow= +github.com/go-sourcemap/sourcemap v2.1.2+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-sql-driver/mysql v1.7.1 h1:lUIinVbN1DY0xBg0eMOzmmtGoHwWBbvnWubQUrtU8EI= github.com/go-sql-driver/mysql v1.7.1/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI= @@ -675,14 +783,16 @@ github.com/gofrs/flock v0.12.1 h1:MTLVXXHf8ekldpJk3AKicLij9MdwOWkZ+a/jHHZby9E= github.com/gofrs/flock v0.12.1/go.mod h1:9zxTsyu5xtJ9DK+1tFZyibEV7y3uwDxPPfbxeeHCoD0= github.com/gofrs/uuid/v5 v5.1.0 h1:S5rqVKIigghZTCBKPCw0Y+bXkn26K3TB5mvQq2Ix8dk= github.com/gofrs/uuid/v5 v5.1.0/go.mod h1:CDOjlDMVAtN56jqyRUZh58JT31Tiw7/oQyEXZV+9bD8= +github.com/gogo/gateway v1.1.0/go.mod h1:S7rR8FRQyG3QFESeSv4l2WnsyzlCLG0CzBbUUo/mbic= github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= github.com/gogo/googleapis v1.4.1 h1:1Yx4Myt7BxzvUr5ldGSbwYiZG6t9wGBZ+8/fX3Wvtq0= github.com/gogo/googleapis v1.4.1/go.mod h1:2lpHqI5OcWCtVElxXnPt+s8oJvMpySlOyM6xDCrzib4= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= -github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= +github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -719,6 +829,8 @@ github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiu github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.3-0.20201103224600-674baa8c7fc3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb h1:PBC98N2aIaM3XXiurYmW7fx4GZkL8feAMVq7nEjURHk= @@ -745,6 +857,8 @@ github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= github.com/google/cel-go v0.20.1 h1:nDx9r8S3L4pE61eDdt8igGj8rf5kjYR3ILxWIpWNi84= github.com/google/cel-go v0.20.1/go.mod h1:kWcIzTsPX0zmQ+H3TirHstLLf9ep5QTsZBN9u4dOYLg= +github.com/google/flatbuffers v2.0.8+incompatible h1:ivUb1cGomAB101ZM1T0nOiWz9pSrTMoa9+EiY7igmkM= +github.com/google/flatbuffers v2.0.8+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -766,6 +880,7 @@ github.com/google/go-containerregistry v0.19.1 h1:yMQ62Al6/V0Z7CqIrrS1iYoA5/oQCm github.com/google/go-containerregistry v0.19.1/go.mod h1:YCMFNQeeXeLF+dnhhWkqDItx/JSkH01j1Kis4PsjzFI= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/gofuzz v1.1.1-0.20200604201612-c04b05f3adfa/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= @@ -801,6 +916,7 @@ github.com/google/s2a-go v0.1.8/go.mod h1:6iNWHTpQ+nfNRN5E00MSdfDwVesa8hhS32PhPO github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= @@ -823,19 +939,25 @@ github.com/googleapis/gax-go/v2 v2.13.0 h1:yitjD5f7jQHhyDsnhKEBU52NdvvdSeGzlAnDP github.com/googleapis/gax-go/v2 v2.13.0/go.mod h1:Z/fvTZXF8/uw7Xu5GuslPw+bplx6SS338j1Is2S+B7A= github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gordonklaus/ineffassign v0.0.0-20200309095847-7953dde2c7bf/go.mod h1:cuNKsD1zp2v6XfE/orVX2QE1LC+i254ceGcVeDT3pTU= github.com/gordonklaus/ineffassign v0.1.0 h1:y2Gd/9I7MdY1oEIt+n+rowjBNDcLQq3RsH5hwJd0f9s= github.com/gordonklaus/ineffassign v0.1.0/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= +github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= github.com/gorilla/handlers v1.5.2 h1:cLTUSsNkgcwhgRqvCNmdbRWG0A3N4F+M2nWKdScwyEE= github.com/gorilla/handlers v1.5.2/go.mod h1:dX+xVpaxdSw+q0Qek8SSsl3dfMk3jNddUkMzo0GtH0w= github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= +github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.1-0.20190629185528-ae1634f6a989/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= -github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg= +github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gostaticanalysis/analysisutil v0.7.1 h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk= github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= github.com/gostaticanalysis/comment v1.4.1/go.mod h1:ih6ZxzTHLdadaiSnF5WY3dxUoXfXAlTaRzuaNDlSado= @@ -848,19 +970,31 @@ github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= github.com/gostaticanalysis/testutil v0.4.0 h1:nhdCmubdmDF6VEatUNjgUZBJKWRqugoISdUv3PPQgHY= github.com/gostaticanalysis/testutil v0.4.0/go.mod h1:bLIoPefWXrRi/ssLFWX1dx7Repi5x3CuviD3dgAZaBU= +github.com/graph-gophers/graphql-go v0.0.0-20191115155744-f33e81362277/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-middleware v1.2.1/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= +github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.8.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/grpc-ecosystem/grpc-gateway v1.14.7/go.mod h1:oYZKL012gGh6LMyg/xA7Q2yq6j8bu0wa+9w14EEthWU= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 h1:/c3QmbOGMGTOumP2iT/rCwB7b0QDGLKzqOmktBjT+Is= github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1/go.mod h1:5SN9VR2LTsRFsrEC6FHgRbTWrTHu6tqPeKxEQv15giM= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= +github.com/gtank/merlin v0.1.1-0.20191105220539-8318aed1a79f/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= +github.com/gtank/merlin v0.1.1/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= +github.com/gtank/ristretto255 v0.1.2/go.mod h1:Ph5OpO6c7xKUGROZfWVLiJf9icMDwUeIvY4OmlYW69o= +github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= +github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= @@ -898,8 +1032,11 @@ github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09 github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= +github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= @@ -908,10 +1045,12 @@ github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2p github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= +github.com/hdevalence/ed25519consensus v0.0.0-20210204194344-59a8610d2b87/go.mod h1:XGsKKeXxeRr95aEOgipvluMPlgjr7dGlk9ZTWOjcUcg= github.com/hdevalence/ed25519consensus v0.1.0 h1:jtBwzzcHuTmFrQN6xQZn6CQEO/V9f7HsjsjeEZ6auqU= github.com/hdevalence/ed25519consensus v0.1.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= +github.com/holiman/uint256 v1.1.1/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= github.com/holiman/uint256 v1.2.4 h1:jUc4Nk8fm9jZabQuqr2JzednajVmBpC+oiTiXZJEApU= github.com/holiman/uint256 v1.2.4/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= @@ -920,22 +1059,31 @@ github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0Jr github.com/huandu/skiplist v1.2.0 h1:gox56QD77HzSC0w+Ws3MH3iie755GBJU1OER3h5VsYw= github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= +github.com/huin/goupnp v1.0.0/go.mod h1:n9v9KO1tAxYH82qOn+UTIFQDmx5n1Zxd/ClZDMX7Bnc= +github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o= github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= github.com/ianlancetaylor/demangle v0.0.0-20230524184225-eabc099b10ab/go.mod h1:gx7rwoVhcfuVKG5uya9Hs3Sxj7EIvldVofAWIUtGouw= +github.com/improbable-eng/grpc-web v0.14.0/go.mod h1:6hRR09jOEG81ADP5wCQju1z71g6OL4eEvELdran/3cs= github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/influxdata/influxdb v1.2.3-0.20180221223340-01288bdb0883/go.mod h1:qZna6X/4elxqT3yI9iZYdZrWWdeFOOprn86kgg4+IzY= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= +github.com/jackpal/go-nat-pmp v1.0.2-0.20160603034137-1fa385a6f458/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= github.com/jdx/go-netrc v1.0.0 h1:QbLMLyCZGj0NA8glAhxUpf1zDg6cxnWgMBbjq40W0gQ= github.com/jdx/go-netrc v1.0.0/go.mod h1:Gh9eFQJnoTNIRHXl2j5bJXA1u84hQWJWgGh569zF3v8= +github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e/go.mod h1:G1CVv03EnqU1wYL2dFwXxW2An0az9JTl/ZsqXQeBlkU= +github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jgautheron/goconst v1.7.1 h1:VpdAG7Ca7yvvJk5n8dMwQhfEZJh95kl/Hl9S1OI5Jkk= github.com/jgautheron/goconst v1.7.1/go.mod h1:aAosetZ5zaeC/2EfMeRswtxUFBpe2Hr7HzkgX4fanO4= +github.com/jhump/protoreflect v1.8.2/go.mod h1:7GcYQDdMU/O/BBrl/cX6PNHpXh6cenjd8pneu5yW7Tg= github.com/jhump/protoreflect v1.15.6 h1:WMYJbw2Wo+KOWwZFvgY0jMoVHM6i4XIvRs2RcBj5VmI= github.com/jhump/protoreflect v1.15.6/go.mod h1:jCHoyYQIJnaabEYnbGwyo9hUqfyUMTbJw/tAut5t97E= github.com/jingyugao/rowserrcheck v1.1.1 h1:zibz55j/MJtLsjP1OF4bSdgXxwL1b+Vn7Tjzq7gFzUs= @@ -954,42 +1102,50 @@ github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+ github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= +github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= +github.com/julienschmidt/httprouter v1.1.1-0.20170430222011-975b5c4c7c21/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/julz/importas v0.1.0 h1:F78HnrsjY3cR7j0etXy5+TU1Zuy7Xt08X/1aJnH5xXY= github.com/julz/importas v0.1.0/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSXO0DV0= github.com/justinas/alice v1.2.0 h1:+MHSA/vccVCF4Uq37S42jwlkvI2Xzl7zTPCN5BnZNVo= github.com/justinas/alice v1.2.0/go.mod h1:fN5HRH/reO/zrUflLfTN43t3vXvKzvZIENsNEe7i7qA= +github.com/karalabe/usb v0.0.0-20190919080040-51dc0efba356/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= github.com/karamaru-alpha/copyloopvar v1.1.0 h1:x7gNyKcC2vRBO1H2Mks5u1VxQtYvFiym7fCjIP8RPos= github.com/karamaru-alpha/copyloopvar v1.1.0/go.mod h1:u7CIfztblY0jZLOQZgH3oYsJzpC2A7S6u/lfgSXHy0k= +github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/errcheck v1.7.0 h1:+SbscKmWJ5mOK/bO1zS60F5I9WwZDWOfRsC4RwfwRV0= github.com/kisielk/errcheck v1.7.0/go.mod h1:1kLL+jV4e+CFfueBmI1dSK2ADDyQnlrnrY/FqKluHJQ= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/kkHAIKE/contextcheck v1.1.5 h1:CdnJh63tcDe53vG+RebdpdXJTc9atMgGqdx8LXxiilg= github.com/kkHAIKE/contextcheck v1.1.5/go.mod h1:O930cpht4xb1YQpK+1+AgoM3mFsvxr7uyFptcnWTYUA= +github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= +github.com/kkdai/bstream v1.0.0/go.mod h1:FDnDOHt5Yx4p3FaHcioFT0QjDOtgUpvjeZqAs+NVZZA= github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= -github.com/klauspost/compress v1.17.8 h1:YcnTYrq7MikUT7k0Yb5eceMmALQPYBW/Xltxn0NAMnU= -github.com/klauspost/compress v1.17.8/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= +github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= +github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/pgzip v1.2.6 h1:8RXeL5crjEUFnR2/Sn6GJNWtSQ3Dk8pq4CL3jvdDyjU= github.com/klauspost/pgzip v1.2.6/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= @@ -1000,6 +1156,8 @@ github.com/kulti/thelper v0.6.3 h1:ElhKf+AlItIu+xGnI990no4cE2+XaSu1ULymV2Yulxs= github.com/kulti/thelper v0.6.3/go.mod h1:DsqKShOvP40epevkFrvIwkCMNYxMeTNjdWL4dqWHZ6I= github.com/kunwardeep/paralleltest v1.0.10 h1:wrodoaKYzS2mdNVnc4/w31YaXFtsc21PCTdvWJ/lDDs= github.com/kunwardeep/paralleltest v1.0.10/go.mod h1:2C7s65hONVqY7Q5Efj5aLzRCNLjw2h4eMc9EcypGjcY= +github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= +github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/kyoh86/exportloopref v0.1.11 h1:1Z0bcmTypkL3Q4k+IDHMWTcnCliEZcaPiIe0/ymEyhQ= github.com/kyoh86/exportloopref v0.1.11/go.mod h1:qkV4UF1zGl6EkF1ox8L5t9SwyeBAZ3qLMd6up458uqA= github.com/lasiar/canonicalheader v1.1.1 h1:wC+dY9ZfiqiPwAexUApFush/csSPXeIi4QqyxXmng8I= @@ -1016,18 +1174,20 @@ github.com/leonklingele/grouper v1.1.2 h1:o1ARBDLOmmasUaNDesWqWCIFH3u7hoFlM84Yrj github.com/leonklingele/grouper v1.1.2/go.mod h1:6D0M/HVkhs2yRKRFZUoGjeDy7EZTfFBE9gl4kjmIGkA= github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= -github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= +github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= github.com/linxGnu/grocksdb v1.8.14 h1:HTgyYalNwBSG/1qCQUIott44wU5b2Y9Kr3z7SK5OfGQ= github.com/linxGnu/grocksdb v1.8.14/go.mod h1:QYiYypR2d4v63Wj1adOOfzglnoII0gLj3PNh4fZkcFA= +github.com/lucasjones/reggen v0.0.0-20180717132126-cdb49ff09d77/go.mod h1:5ELEyG+X8f+meRWHuqUOewBOhvHkl7M76pdGEansxW4= github.com/lufeee/execinquery v1.2.1 h1:hf0Ems4SHcUGBxpGN7Jz78z1ppVkP/837ZlETPCEtOM= github.com/lufeee/execinquery v1.2.1/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/macabu/inamedparam v0.1.3 h1:2tk/phHkMlEL/1GNe/Yf6kkR/hkcUdAEY3L0hjYV1Mk= github.com/macabu/inamedparam v0.1.3/go.mod h1:93FLICAIk/quk7eaPPQvbzihUdn/QkGDwIZEoLtpH6I= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= @@ -1042,19 +1202,26 @@ github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26/go.mod h1:1BELzlh859 github.com/matryer/is v1.4.0 h1:sosSmIWwkYITGrxZ25ULNDeKiMNzFSr4V/eqBQP0PeE= github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.0/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= +github.com/mattn/go-ieproxy v0.0.0-20190610004146-91bb50d98149/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc= +github.com/mattn/go-ieproxy v0.0.0-20190702010315-6dee0af9227d/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.5-0.20180830101745-3fb116b82035/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.13/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU= @@ -1065,6 +1232,8 @@ github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517/go.mod h1:KQ7+USdGKfp github.com/mgechev/revive v1.3.9 h1:18Y3R4a2USSBF+QZKFQwVkBROUda7uoBlkEuBD+YD1A= github.com/mgechev/revive v1.3.9/go.mod h1:+uxEIr5UH0TjXWHTno3xh4u7eg6jDpXKzQccA9UGhHU= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM= +github.com/minio/highwayhash v1.0.1/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= @@ -1078,6 +1247,8 @@ github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS4 github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0= @@ -1097,12 +1268,16 @@ github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76/go.mod h1:x5OoJHDHqxHS801UIuhqGl6QdSAEJvtausosHSdazIo= github.com/nakabonne/nestif v0.3.1 h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U= github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE= +github.com/naoina/go-stringutil v0.1.0/go.mod h1:XJ2SJL9jCtBh+P9q5btrd/Ylo8XwT/h1USek5+NqSA0= +github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416/go.mod h1:NBIhNtsFMo3G2szEBne+bO4gS192HuIYRqfvOWb4i1E= github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= @@ -1110,9 +1285,11 @@ github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzE github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= +github.com/neilotoole/errgroup v0.1.5/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nishanths/exhaustive v0.12.0 h1:vIY9sALmw6T/yxiASewa4TQcFsVYZQQRUQJhKRf3Swg= github.com/nishanths/exhaustive v0.12.0/go.mod h1:mEZ95wPIZW+x8kC4TgC+9YCUgiST7ecevsVDTgc2obs= +github.com/nishanths/predeclared v0.0.0-20200524104333-86fad755b4d3/go.mod h1:nt3d53pc1VYcphSCIaYAJtnPYnr3Zyn8fMq2wvPGPso= github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk= github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c= github.com/nunnatsa/ginkgolinter v0.16.2 h1:8iLqHIZvN4fTLDC0Ke9tbSZVcyVHoBs0HIbnVSxfHJk= @@ -1122,15 +1299,16 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/ojo-evm/relayer v0.0.0-20240904192312-acda927a5d24 h1:t0E41HkLJJmyh8rCwNjGQPoHfQSH4QHDTg51UawFKyA= -github.com/ojo-network/ojo-evm/relayer v0.0.0-20240904192312-acda927a5d24/go.mod h1:dW6/pQ+hNtC6955jQUR1cUJrGWcQ6fNEjeSLJCJPz3A= -github.com/ojo-network/price-feeder v0.2.1-rc1 h1:m9vgR9DYuXhM5f2DQX/wewihzkPVAVdVjZgtr/gB6bs= -github.com/ojo-network/price-feeder v0.2.1-rc1/go.mod h1:CSdgh7XiOMLGQwRW8OqbL5FlkE5Mc3+fDZEMRN8JkYY= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250115011724-f46db747fbc1 h1:sMV16uQ34lV56ImmShF944DXlUNMsXe47g9EbZganA8= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250115011724-f46db747fbc1/go.mod h1:+hQSa6N3/NrW+hvu/pPufaGcuvHK475FvbAnmqJwXtk= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/olekukonko/tablewriter v0.0.2-0.20190409134802-7e037d187b0c/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -1141,6 +1319,7 @@ github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= github.com/onsi/ginkgo/v2 v2.20.0 h1:PE84V2mHqoT1sglvHc8ZdQtPcwmvvt29WLEEO3xmdZw= github.com/onsi/ginkgo/v2 v2.20.0/go.mod h1:lG9ey2Z29hR41WMVthyJBGUBcBhGOtoPF2VFMvBXFCI= +github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= @@ -1151,8 +1330,8 @@ github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8 github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug= github.com/opencontainers/image-spec v1.1.0/go.mod h1:W4s4sFTMaBeK1BQLXbG4AdM2szdn85PY75RI83NrTrM= -github.com/opencontainers/runc v1.1.12 h1:BOIssBaW1La0/qbNZHXOOa71dZfZEQOzW7dqQf3phss= -github.com/opencontainers/runc v1.1.12/go.mod h1:S+lQwSfncpBha7XTy/5lBwWgm5+y5Ma/O44Ekby9FK8= +github.com/opencontainers/runc v1.1.14 h1:rgSuzbmgz5DUJjeSnw337TxDbRuqjs6iqQck/2weR6w= +github.com/opencontainers/runc v1.1.14/go.mod h1:E4C2z+7BxR7GHXp0hAY53mek+x49X1LjPNeMTfRGvOA= github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= @@ -1167,21 +1346,26 @@ github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnh github.com/ory/dockertest/v3 v3.10.0 h1:4K3z2VMe8Woe++invjaTB7VRyQXQy5UY+loujO4aNE4= github.com/ory/dockertest/v3 v3.10.0/go.mod h1:nr57ZbRWMqfsdGdFNLHz5jjNdDb7VVFnzAeW1n5N1Lg= github.com/otiai10/copy v1.2.0/go.mod h1:rrF5dJ5F0t/EWSYODDu4j9/vEeYHMkc8jt0zJChqQWw= +github.com/otiai10/copy v1.6.0/go.mod h1:XWfuS3CrI0R6IE0FbgHsEazaXO8G0LpMp9o8tos0x4E= github.com/otiai10/copy v1.14.0 h1:dCI/t1iTdYGtkvCuBG2BgR6KZa83PTclw4U5n2wAllU= github.com/otiai10/copy v1.14.0/go.mod h1:ECfuL02W+/FkTWZWgQqXPWZgW9oeKCSQ5qVfSc4qc4w= github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs= github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo= github.com/otiai10/mint v1.3.1/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= +github.com/otiai10/mint v1.3.2/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pborman/uuid v0.0.0-20170112150404-1b00554d8222/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= +github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7/go.mod h1:CRroGNssyjTd/qIG2FyxByd2S8JEAZXBl4qUrZf8GS0= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 h1:jik8PHtAIsPlCRJjJzl4udgEf7hawInF9texMeO2jrU= github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= @@ -1199,6 +1383,7 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= github.com/pkg/profile v1.7.0 h1:hnbDkaNWPCLMO9wGLdBFTIZvzDrDfBM2072E1S9gJkA= github.com/pkg/profile v1.7.0/go.mod h1:8Uer0jas47ZQMJ7VD+OHknK4YDY07LPUC6dEvqDjvNo= +github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -1209,12 +1394,15 @@ github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4 github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= +github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.19.0 h1:ygXvpU1AoN1MhdzckN+PyD9QJOSD4x7kmXYlnfbA6JU= -github.com/prometheus/client_golang v1.19.0/go.mod h1:ZRM9uEAypZakd+q/x7+gmsvXdURP+DABIEIjnmDdp+k= +github.com/prometheus/client_golang v1.8.0/go.mod h1:O9VU6huf47PktckDQfMTX0Y8tY0/7TSWwj+ITvv0TnM= +github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.20.5 h1:cxppBPuYhUnsO6yo/aoRol4L7q7UFfdm+bR9r+8l63Y= +github.com/prometheus/client_golang v1.20.5/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= @@ -1223,22 +1411,32 @@ github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6T github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= +github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= +github.com/prometheus/common v0.14.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= -github.com/prometheus/common v0.52.2 h1:LW8Vk7BccEdONfrJBDffQGRtpSzi5CQaRZGtboOO2ck= -github.com/prometheus/common v0.52.2/go.mod h1:lrWtQx+iDfn2mbH5GUzlH9TSHyfZpHkSiG1W7y3sF2Q= +github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= +github.com/prometheus/common v0.29.0/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= +github.com/prometheus/common v0.55.0 h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G1dc= +github.com/prometheus/common v0.55.0/go.mod h1:2SECS4xJG1kd8XF9IcM1gMX6510RAEL65zxzNImwdc8= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.2.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.13.0 h1:GqzLlQyfsPbaEHaQkO7tbDlriv/4o5Hudv6OXHGKX7o= -github.com/prometheus/procfs v0.13.0/go.mod h1:cd4PFCR54QLnGKPaKGA6l+cfuNXtht43ZKY6tow0Y1g= +github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= +github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= +github.com/prometheus/tsdb v0.6.2-0.20190402121629-4f204dcbc150/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= +github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/quasilyte/go-ruleguard v0.4.2 h1:htXcXDK6/rO12kiTHKfHuqR4kr3Y4M0J0rOL6CH/BYs= github.com/quasilyte/go-ruleguard v0.4.2/go.mod h1:GJLgqsLeo4qgavUoL8JeGFNS7qcisx3awV/w9eWTmNI= github.com/quasilyte/go-ruleguard/dsl v0.3.22 h1:wd8zkOhSNr+I+8Qeciml08ivDt1pSXe60+5DqOpCjPE= @@ -1249,24 +1447,32 @@ github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 h1:TCg2WBOl github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 h1:M8mH9eK4OUR4lu7Gd+PU1fV2/qnDNfzT635KRSObncs= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= +github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/regen-network/cosmos-proto v0.3.1/go.mod h1:jO0sVX6a1B36nmE8C9xBFXpNwWejXC7QqCOnH3O0+YM= github.com/regen-network/protobuf v1.3.3-alpha.regen.1 h1:OHEc+q5iIAXpqiqFKeLpu5NwTIkVXUs48vFMwzqpqY4= github.com/regen-network/protobuf v1.3.3-alpha.regen.1/go.mod h1:2DjTFR1HhMQhiWC5sZ4OhQ3+NtdbZ6oBDKQwq5Ou+FI= github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= +github.com/rjeczalik/notify v0.9.1/go.mod h1:rKwnCoCGeuQnwBtTSPL9Dad03Vh2n40ePRrjvIXnJho= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= +github.com/rs/cors v0.0.0-20160617231935-a62a804a8a00/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= -github.com/rs/cors v1.10.1 h1:L0uuZVXIKlI1SShY2nhFfo44TYvDPQ1w4oFkUJNfhyo= -github.com/rs/cors v1.10.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= +github.com/rs/cors v1.11.1 h1:eU3gRzXLRK57F5rKMGMZURNdIG4EoAmX8k94r9wXWHA= +github.com/rs/cors v1.11.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= +github.com/rs/xhandler v0.0.0-20160618193221-ed27b6fd6521/go.mod h1:RvLn4FgxWubrpZHtQLnOf6EwhN2hEMusxZOhcW9H3UQ= +github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= github.com/rs/xid v1.5.0 h1:mKX4bl4iPYJtEIxp6CYiUuLQ/8DYMoz0PUdtGgMFRVc= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.23.0/go.mod h1:6c7hFfxPOy7TacJc4Fcdi24/J0NKYGzjG8FWRI916Qo= github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8= github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= @@ -1287,6 +1493,8 @@ github.com/sanposhiho/wastedassign/v2 v2.0.7 h1:J+6nrY4VW+gC9xFzUc+XjPD3g3wF3je/ github.com/sanposhiho/wastedassign/v2 v2.0.7/go.mod h1:KyZ0MWTwxxBmfwn33zh3k1dmsbF2ud9pAAGfoLfjhtI= github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 h1:lZUw3E0/J3roVtGQ+SCrUrg3ON6NgVqpn3+iol9aGu4= github.com/santhosh-tekuri/jsonschema/v5 v5.3.1/go.mod h1:uToXkOrWAZ6/Oc07xWQrPOhJotwFIyu2bBVN41fcDUY= +github.com/sasha-s/go-deadlock v0.2.0/go.mod h1:StQn567HiB1fF2yJ44N9au7wOhrPS3iZqiDbRupzT10= +github.com/sasha-s/go-deadlock v0.2.1-0.20190427202633-1595213edefa/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= github.com/sashamelentyev/interfacebloat v1.1.0 h1:xdRdJp0irL086OyW1H/RTZTr1h/tMEOsumirXcOJqAw= @@ -1296,8 +1504,10 @@ github.com/sashamelentyev/usestdlibvars v1.27.0/go.mod h1:9nl0jgOfHKWNFS43Ojw0i7 github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/securego/gosec/v2 v2.20.1-0.20240822074752-ab3f6c1c83a0 h1:VqD4JMoqwuuCz8GZlBDsIDyE6K4YUsWJpbNtuOWHoFk= github.com/securego/gosec/v2 v2.20.1-0.20240822074752-ab3f6c1c83a0/go.mod h1:iyeMMRw8QEmueUSZ2VqmkQMiDyDcobfPnG00CV/NWdE= +github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KRMzBtS3oedY= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c h1:W65qqJCIOVP4jpqPQ0YvHYKwcMEMVWIzWC5iNQQfBTU= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c/go.mod h1:/PevMnwAxekIXwN8qQyfc5gl2NlkB3CQlkizAbOkeBs= +github.com/shirou/gopsutil v2.20.5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= @@ -1313,6 +1523,7 @@ github.com/sivchari/tenv v1.10.0 h1:g/hzMA+dBCKqGXgW8AV/1xIWhAvDrx0zFKNR48NFMg0= github.com/sivchari/tenv v1.10.0/go.mod h1:tdY24masnVoZFxYrHv/nD6Tc8FbkEtAQEEziXpyMgqY= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= +github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa/go.mod h1:oJyF+mSPHbB5mVY2iO9KV3pTt/QbIkGaO8gQ2WrDbP4= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/sonatard/noctx v0.0.2 h1:L7Dz4De2zDQhW8S0t+KUjY0MAQJd6SgVwhzNIc4ok00= github.com/sonatard/noctx v0.0.2/go.mod h1:kzFz+CzWSjQ2OzIm46uJZoXuBpa2+0y3T36U18dWqIo= @@ -1322,30 +1533,42 @@ github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIK github.com/sourcegraph/go-diff v0.7.0 h1:9uLlrd5T46OXs5qpp8L/MTltk0zikUGi0sNNyCpA8G0= github.com/sourcegraph/go-diff v0.7.0/go.mod h1:iBszgVvyxdc8SFZ7gm69go2KDdt3ag071iBaWPF6cjs= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= -github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= +github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.7.0 h1:ntdiHjuueXFgm5nzDRdOS4yfT43P5Fnud6DH50rz/7w= +github.com/spf13/cast v1.7.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= +github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= +github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI= +github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= -github.com/spf13/viper v1.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ= -github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= +github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= +github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/spf13/viper v1.7.1/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/spf13/viper v1.8.0/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns= +github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI= +github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+Ntkg= github.com/ssgreg/nlreturn/v2 v2.2.1 h1:X4XDI7jstt3ySqGU86YGAURbxw3oTDPK9sPEi6YEwQ0= github.com/ssgreg/nlreturn/v2 v2.2.1/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I= +github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q= github.com/stbenjam/no-sprintf-host-port v0.1.1 h1:tYugd/yrm1O0dV+ThCbaKZh195Dfm07ysF0U6JQXczc= github.com/stbenjam/no-sprintf-host-port v0.1.1/go.mod h1:TLhvtIvONRzdmkFiio4O8LHsN9N74I+PhRquPsxpL0I= +github.com/steakknife/bloomfilter v0.0.0-20180922174646-6819c0d2a570/go.mod h1:8OR4w3TdeIHIh1g6EMY5p0gVNOovcWC+1vpc7naMuAw= +github.com/steakknife/hamming v0.0.0-20180906055917-c99c65617cd3/go.mod h1:hpGUWaI9xL8pRQCTXQgocU38Qw1g0Us7n5PxxTwTCYU= github.com/stoewer/go-strcase v1.3.0 h1:g0eASXYtp+yvN9fK8sH94oCIk0fau9uV1/ZdJ0AVEzs= github.com/stoewer/go-strcase v1.3.0/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8wodgtPmh1xo= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= @@ -1353,6 +1576,7 @@ github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3 github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= 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= +github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= @@ -1371,14 +1595,26 @@ github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= github.com/tdakkota/asciicheck v0.2.0 h1:o8jvnUANo0qXtnslk2d3nMKTFNlOnJjRrNcj0j9qkHM= github.com/tdakkota/asciicheck v0.2.0/go.mod h1:Qb7Y9EgjCLJGup51gDHFzbI08/gbGhL/UVhYIPWG2rg= +github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c/go.mod h1:ahpPrc7HpcfEWDQRZEmnXMzHY03mLDYMCxeDzy46i+8= +github.com/tendermint/btcd v0.1.1/go.mod h1:DC6/m53jtQzr/NFmMNEu0rxf18/ktVoVtMrnDD5pN+U= +github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15/go.mod h1:z4YtwM70uOnk8h0pjJYlj3zdYwi9l03By6iAIF5j/Pk= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= +github.com/tendermint/tendermint v0.34.0-rc4/go.mod h1:yotsojf2C1QBOw4dZrTcxbyxmPUrT4hNuOQWX9XUwB4= +github.com/tendermint/tendermint v0.34.0-rc6/go.mod h1:ugzyZO5foutZImv0Iyx/gOFCX6mjJTgbLHTwi17VDVg= +github.com/tendermint/tendermint v0.34.0/go.mod h1:Aj3PIipBFSNO21r+Lq3TtzQ+uKESxkbA3yo/INM4QwQ= +github.com/tendermint/tendermint v0.34.10/go.mod h1:aeHL7alPh4uTBIJQ8mgFEE8VwJLXI1VD3rVOmH2Mcy0= +github.com/tendermint/tendermint v0.34.11/go.mod h1:aeHL7alPh4uTBIJQ8mgFEE8VwJLXI1VD3rVOmH2Mcy0= +github.com/tendermint/tm-db v0.6.2/go.mod h1:GYtQ67SUvATOcoY8/+x6ylk8Qo02BQyLrAs+yAcLvGI= +github.com/tendermint/tm-db v0.6.3/go.mod h1:lfA1dL9/Y/Y8wwyPp2NMLyn5P5Ptr/gvDFNWtrCWSf8= +github.com/tendermint/tm-db v0.6.4/go.mod h1:dptYhIpJ2M5kUuenLr+Yyf3zQOv1SgBZcl8/BmWlMBw= github.com/tenntenn/modver v1.0.1 h1:2klLppGhDgzJrScMpkj9Ujy3rXPUspSjAcev9tSEBgA= github.com/tenntenn/modver v1.0.1/go.mod h1:bePIyQPb7UeioSRkw3Q0XeMhYZSMx9B8ePqg6SAMGH0= github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3 h1:f+jULpRQGxTSkNYKJ51yaw6ChIqO+Je8UqsTKN/cDag= @@ -1387,16 +1623,24 @@ github.com/tetafro/godot v1.4.16 h1:4ChfhveiNLk4NveAZ9Pu2AN8QZ2nkUGFuadM9lrr5D0= github.com/tetafro/godot v1.4.16/go.mod h1:2oVxTBSftRTh4+MVfUaUXR6bn2GDXCaMcOG4Dk3rfio= github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= +github.com/tidwall/gjson v1.6.7/go.mod h1:zeFuBCIqD4sN/gmqBzZ4j7Jd6UcA2Fc56x7QFsv+8fI= +github.com/tidwall/match v1.0.3/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= +github.com/tidwall/pretty v1.0.2/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= +github.com/tidwall/sjson v1.1.4/go.mod h1:wXpKXu8CtDjKAZ+3DrKY5ROCorDFahq8l0tey/Lx1fg= github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966 h1:quvGphlmUVU+nhpFa4gg4yJyTRJ13reZMDHrKwYw53M= github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966/go.mod h1:27bSVNWSBOHm+qRp1T9qzaIpsWEP6TbUnei/43HK+PQ= github.com/timonwong/loggercheck v0.9.4 h1:HKKhqrjcVj8sxL7K77beXh0adEm6DLjV/QOGeMXEVi4= github.com/timonwong/loggercheck v0.9.4/go.mod h1:caz4zlPcgvpEkXgVnAJGowHAMW2NwHaNlpS8xDbVhTg= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tomarrell/wrapcheck/v2 v2.9.0 h1:801U2YCAjLhdN8zhZ/7tdjB3EnAoRlJHt/s+9hijLQ4= github.com/tomarrell/wrapcheck/v2 v2.9.0/go.mod h1:g9vNIyhb5/9TQgumxQyOEqDHsmGYcGsVMOx/xGkqdMo= github.com/tommy-muehle/go-mnd/v2 v2.5.1 h1:NowYhSdyE/1zwK9QCLeRb6USWdoif80Ie+v+yU8u1Zw= github.com/tommy-muehle/go-mnd/v2 v2.5.1/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr8TnZn9lwVDlgzw= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= +github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= +github.com/tyler-smith/go-bip39 v1.0.2/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= +github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= @@ -1416,6 +1660,9 @@ github.com/uudashr/gocognit v1.1.3 h1:l+a111VcDbKfynh+airAy/DJQKaXh2m9vkoysMPSZy github.com/uudashr/gocognit v1.1.3/go.mod h1:aKH8/e8xbTRBwjbCkwZ8qt4l2EpKXl31KMHgSS+lZ2U= github.com/vbatts/tar-split v0.11.5 h1:3bHCTIheBm1qFTcgh9oPu+nNBtX+XJIupG/vacinCts= github.com/vbatts/tar-split v0.11.5/go.mod h1:yZbwRsSeGjusneWgA781EKej9HF8vme8okylkAeNKLk= +github.com/vmihailenco/msgpack/v5 v5.1.4/go.mod h1:C5gboKD0TJPqWDTVTtrQNfRbiBwHZGo8UTqP/9/XvLI= +github.com/vmihailenco/tagparser v0.1.2/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= +github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208/go.mod h1:IotVbo4F+mw0EzQ08zFqg7pK3FebNXpaMsRy2RT+Ees= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= @@ -1429,6 +1676,7 @@ github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= github.com/yagipy/maintidx v1.0.0 h1:h5NvIsCz+nRDapQ0exNv4aJ0yXSI0420omVANTv3GJM= github.com/yagipy/maintidx v1.0.0/go.mod h1:0qNf/I/CCZXSMhsRsrEPDZ+DkekpKLXAJfsTACwgXLk= +github.com/ybbus/jsonrpc v2.1.2+incompatible/go.mod h1:XJrh1eMSzdIYFbM08flv0wp5G35eRniyeGut1z+LSiE= github.com/yeya24/promlinter v0.3.0 h1:JVDbMp08lVCP7Y6NP3qHroGAO6z2yGKQtS5JsjqtoFs= github.com/yeya24/promlinter v0.3.0/go.mod h1:cDfJQQYv9uYciW60QT0eeHlFodotkYZlL+YcPQN+mW4= github.com/ykadowak/zerologlint v0.1.5 h1:Gy/fMz1dFQN9JZTPjv1hxEk+sRWm05row04Yoolgdiw= @@ -1440,6 +1688,7 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/zondax/hid v0.9.0/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= github.com/zondax/hid v0.9.2 h1:WCJFnEDMiqGF64nlZz28E9qLVZ0KSJ7xpc5DLEyma2U= github.com/zondax/hid v0.9.2/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= github.com/zondax/ledger-go v0.14.3 h1:wEpJt2CEcBJ428md/5MgSLsXLBos98sBOyxNmCjfUCw= @@ -1452,10 +1701,15 @@ go-simpler.org/musttag v0.12.2 h1:J7lRc2ysXOq7eM8rwaTYnNrHd5JwjppzB6mScysB2Cs= go-simpler.org/musttag v0.12.2/go.mod h1:uN1DVIasMTQKk6XSik7yrJoEysGtR2GRqvWnI9S7TYM= go-simpler.org/sloglint v0.7.2 h1:Wc9Em/Zeuu7JYpl+oKoYOsQSy2X560aVueCW/m6IijY= go-simpler.org/sloglint v0.7.2/go.mod h1:US+9C80ppl7VsThQclkM7BkCHQAzuz8kHLsW3ppuluo= +go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.8 h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA= -go.etcd.io/bbolt v1.3.8/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= +go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= +go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 h1:qxen9oVGzDdIRP6ejyAJc760RwW4SnVDiTYTzwnXuxo= +go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5/go.mod h1:eW0HG9/oHQhvRCvb1/pIXW4cOvtDqeQK+XSi3TnwaXY= go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= +go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= +go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= +go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= @@ -1507,19 +1761,32 @@ go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN8 go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= +go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= +golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190909091759-094676da4a83/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201117144127-c1f2f97bffc9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= +golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= @@ -1527,6 +1794,7 @@ golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn5 golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56/go.mod h1:JhuoJpWY28nO4Vef9tZUw9qufEGTyX1+7lmHxV5q5G4= golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= @@ -1557,10 +1825,12 @@ golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPI golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mobile v0.0.0-20200801112145-973feb4309de/go.mod h1:skQtrUTUwhdJvXM/2KKJzY8pDgNr9I/FOMqDVRPBUS4= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191209134235-331c550502dd/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= @@ -1572,11 +1842,13 @@ golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91 golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0= -golang.org/x/mod v0.20.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0= +golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= +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-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1588,12 +1860,14 @@ golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191002035440-2ec189313ef0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -1611,6 +1885,7 @@ golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81R golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= @@ -1620,6 +1895,7 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= @@ -1650,6 +1926,7 @@ golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= @@ -1702,6 +1979,7 @@ golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1732,8 +2010,11 @@ golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200824131525-c12d262b63d8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1745,9 +2026,11 @@ golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1788,8 +2071,9 @@ golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.23.0 h1:YfKFowiIMvtgl1UERQoTPPToxltDeZfbj4H7dVUCwmM= -golang.org/x/sys v0.23.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= +golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -1840,6 +2124,7 @@ golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -1848,6 +2133,7 @@ golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117012304-6edc0a871e69/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= @@ -1864,8 +2150,10 @@ golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWc golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200522201501-cb1345f3a375/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200717024301-6ddee64345a6/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200724022722-7017fd6b1305/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= @@ -1928,6 +2216,7 @@ google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34q google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= +google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8= google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= @@ -2001,6 +2290,8 @@ google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201111145450-ac7456db90a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201119123407-9b1e624d6bc4/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= @@ -2074,12 +2365,13 @@ google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= google.golang.org/genproto v0.0.0-20240730163845-b1a4ccb954bf h1:OqdXDEakZCVtDiZTjcxfwbHPCT11ycCEsTKesBVKvyY= google.golang.org/genproto v0.0.0-20240730163845-b1a4ccb954bf/go.mod h1:mCr1K1c8kX+1iSBREvU3Juo11CB+QOEWxbRS01wWl5M= -google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f h1:b1Ln/PG8orm0SsBbHZWke8dDp2lrCD4jSmfglFpTZbk= -google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f/go.mod h1:AHT0dDg3SoMOgZGnZk29b5xTbPHMoEC8qthmBLJCpys= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf h1:liao9UHurZLtiEwBgT9LMOnKYsHze6eA6w1KQCMVN2Q= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY= +google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 h1:wKguEg1hsxI2/L3hUYrpo1RVi48K+uTyzKqprwLXsb8= +google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142/go.mod h1:d6be+8HhtEtucleCbxpPW9PA9XwISACu8nvpPqF0BVo= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 h1:e7S5W7MGGLaSu8j3YjdezkZ+m1/Nm0uRVRMEMGk26Xs= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.19.1/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= @@ -2119,8 +2411,8 @@ google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.64.1 h1:LKtvyfbX3UGVPFcGqJ9ItpVWW6oN/2XqTxfAnwRRXiA= -google.golang.org/grpc v1.64.1/go.mod h1:hiQF4LFZelK2WKaP6W0L92zGHtiQdZxk8CrSdvyjeP0= +google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= +google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0 h1:rNBFJjBCOgVr9pWD7rs/knKL4FRTKgpZmsRfV214zcA= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0/go.mod h1:Dk1tviKTvMCz5tvh7t+fh94dhmQVHuCt2OzJB3CTW9Y= @@ -2134,6 +2426,7 @@ google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2 google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.25.1-0.20200805231151-a709e31e5d12/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= @@ -2146,6 +2439,7 @@ gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLks gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= @@ -2154,11 +2448,16 @@ gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qS gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= +gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c= +gopkg.in/olebedev/go-duktape.v3 v3.0.0-20200619000410-60c24ae608a6/go.mod h1:uAJfkITjFhyEEuUfm7bsmCZRbW5WRq8s9EY8HZ6hCns= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/urfave/cli.v1 v1.20.0/go.mod h1:vuBzUtMdQeixQj8LVd+/98pzhxNGQoyuPBlsXHOQNO0= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= @@ -2174,6 +2473,7 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= gotest.tools/v3 v3.5.1 h1:EENdUnS3pdur5nybKYIh2Vfgc8IUNBjxDPSjtiJcOzU= gotest.tools/v3 v3.5.1/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU= honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/proto/ojo/oracle/v1/oracle.proto b/proto/ojo/oracle/v1/oracle.proto index 8085ea46..3792ba7e 100644 --- a/proto/ojo/oracle/v1/oracle.proto +++ b/proto/ojo/oracle/v1/oracle.proto @@ -157,8 +157,13 @@ message CurrencyPairProviders { string base_denom = 1 [ (gogoproto.moretags) = "yaml:\"base_denom\"" ]; string quote_denom = 2 [ (gogoproto.moretags) = "yaml:\"quote_denom\"" ]; - repeated PairAddressProvider pair_address = 3 [ (gogoproto.moretags) = "yaml:\"pair_address\"", (gogoproto.nullable) = false ]; - repeated string providers = 4 [ (gogoproto.moretags) = "yaml:\"providers\"" ]; + string base_proxy_denom = 3 [ (gogoproto.moretags) = "yaml:\"base_proxy_denom\"" ]; + string quote_proxy_denom = 4 [ (gogoproto.moretags) = "yaml:\"quote_proxy_denom\"" ]; + uint64 pool_id = 5 [ (gogoproto.moretags) = "yaml:\"pool_id\"" ]; + string extern_liquidity_provider = 6 [ (gogoproto.moretags) = "yaml:\"extern_liquidity_provider\"" ]; + string crypto_compare_exchange = 7 [ (gogoproto.moretags) = "yaml:\"crypto_compare_exchange\"" ]; + repeated PairAddressProvider pair_address = 8 [ (gogoproto.moretags) = "yaml:\"pair_address\"", (gogoproto.nullable) = false ]; + repeated string providers = 9 [ (gogoproto.moretags) = "yaml:\"providers\"" ]; } // PairAddressProvider defines the uniswap pair address and provider diff --git a/x/oracle/types/oracle.pb.go b/x/oracle/types/oracle.pb.go index b8800e93..ce41fae9 100644 --- a/x/oracle/types/oracle.pb.go +++ b/x/oracle/types/oracle.pb.go @@ -336,10 +336,15 @@ var xxx_messageInfo_ValidatorRewardSet proto.InternalMessageInfo // CurrencyPairProviders defines a list of currency providers for the // currency pair defined by base and quote. type CurrencyPairProviders struct { - BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty" yaml:"base_denom"` - QuoteDenom string `protobuf:"bytes,2,opt,name=quote_denom,json=quoteDenom,proto3" json:"quote_denom,omitempty" yaml:"quote_denom"` - PairAddress []PairAddressProvider `protobuf:"bytes,3,rep,name=pair_address,json=pairAddress,proto3" json:"pair_address" yaml:"pair_address"` - Providers []string `protobuf:"bytes,4,rep,name=providers,proto3" json:"providers,omitempty" yaml:"providers"` + BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty" yaml:"base_denom"` + QuoteDenom string `protobuf:"bytes,2,opt,name=quote_denom,json=quoteDenom,proto3" json:"quote_denom,omitempty" yaml:"quote_denom"` + BaseProxyDenom string `protobuf:"bytes,3,opt,name=base_proxy_denom,json=baseProxyDenom,proto3" json:"base_proxy_denom,omitempty" yaml:"base_proxy_denom"` + QuoteProxyDenom string `protobuf:"bytes,4,opt,name=quote_proxy_denom,json=quoteProxyDenom,proto3" json:"quote_proxy_denom,omitempty" yaml:"quote_proxy_denom"` + PoolId uint64 `protobuf:"varint,5,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty" yaml:"pool_id"` + ExternLiquidityProvider string `protobuf:"bytes,6,opt,name=extern_liquidity_provider,json=externLiquidityProvider,proto3" json:"extern_liquidity_provider,omitempty" yaml:"extern_liquidity_provider"` + CryptoCompareExchange string `protobuf:"bytes,7,opt,name=crypto_compare_exchange,json=cryptoCompareExchange,proto3" json:"crypto_compare_exchange,omitempty" yaml:"crypto_compare_exchange"` + PairAddress []PairAddressProvider `protobuf:"bytes,8,rep,name=pair_address,json=pairAddress,proto3" json:"pair_address" yaml:"pair_address"` + Providers []string `protobuf:"bytes,9,rep,name=providers,proto3" json:"providers,omitempty" yaml:"providers"` } func (m *CurrencyPairProviders) Reset() { *m = CurrencyPairProviders{} } @@ -513,95 +518,105 @@ func init() { func init() { proto.RegisterFile("ojo/oracle/v1/oracle.proto", fileDescriptor_e2b9fb194216b28f) } var fileDescriptor_e2b9fb194216b28f = []byte{ - // 1401 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xcf, 0x6f, 0x1b, 0x45, - 0x14, 0xf6, 0x36, 0x6e, 0x1a, 0x8f, 0xed, 0xfc, 0x98, 0x24, 0xed, 0x36, 0x29, 0xde, 0xb0, 0x14, - 0x48, 0x0b, 0xb1, 0x69, 0x0a, 0xaa, 0x88, 0xe0, 0xd0, 0x6d, 0x5a, 0x84, 0x54, 0x2a, 0x6b, 0x53, - 0x8a, 0xd4, 0x03, 0xab, 0xf1, 0xee, 0xd4, 0x9e, 0xc6, 0xbb, 0x63, 0x66, 0xd6, 0x8e, 0x7d, 0xe5, - 0x84, 0xc4, 0x85, 0x03, 0x07, 0x8e, 0xe5, 0x5a, 0x71, 0x42, 0x42, 0xe2, 0xc2, 0xbd, 0x12, 0x97, - 0x1e, 0x11, 0x87, 0x2d, 0xb4, 0x17, 0xc4, 0xd1, 0x7f, 0x01, 0x9a, 0x1f, 0x6b, 0xaf, 0x5d, 0x07, - 0x4a, 0x4f, 0xde, 0x37, 0xdf, 0x7b, 0x6f, 0xbe, 0xf9, 0x66, 0xe6, 0xbd, 0x31, 0xd8, 0xa0, 0xf7, - 0x69, 0x8d, 0x32, 0xe4, 0xb7, 0x71, 0xad, 0x77, 0x49, 0x7f, 0x55, 0x3b, 0x8c, 0xc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 0x12, 0xbe, 0xf0, 0x2f, 0xc2, 0x5f, 0xd4, - 0xc2, 0x6b, 0x31, 0x26, 0x23, 0xa7, 0xb4, 0x2f, 0x8f, 0x50, 0x29, 0xff, 0x2e, 0x58, 0x6f, 0x11, - 0x1e, 0x53, 0x46, 0x7c, 0x8f, 0xc7, 0x28, 0xec, 0xa4, 0x17, 0x0b, 0x08, 0x89, 0xdc, 0xd5, 0x14, - 0x3c, 0x10, 0x98, 0xbe, 0x49, 0x55, 0xb0, 0x1a, 0xe2, 0x80, 0xa0, 0x68, 0x32, 0xa2, 0x28, 0x23, - 0x56, 0x14, 0x94, 0xf5, 0x7f, 0x07, 0xac, 0x85, 0xa8, 0x4f, 0xc2, 0x6e, 0xe8, 0x75, 0x18, 0xf1, - 0xb1, 0x0a, 0xe3, 0x66, 0x49, 0x06, 0x40, 0x8d, 0xd5, 0x05, 0x24, 0xc3, 0xb8, 0x60, 0x95, 0x46, - 0x64, 0x67, 0xe2, 0x66, 0x59, 0xb1, 0xd2, 0xe0, 0x27, 0xe3, 0xa9, 0x38, 0xfc, 0xde, 0x00, 0x67, - 0xfc, 0x2e, 0x63, 0x38, 0xf2, 0x07, 0x5e, 0x07, 0x11, 0xe6, 0x75, 0x18, 0xed, 0x91, 0x00, 0x33, - 0x6e, 0x2e, 0x4a, 0xf1, 0xce, 0x4f, 0x89, 0x77, 0x4d, 0x7b, 0xd7, 0x11, 0x61, 0xf5, 0xd4, 0xd7, - 0xb9, 0xa6, 0xc5, 0xac, 0x28, 0x31, 0x8f, 0x49, 0x29, 0x54, 0x3d, 0x3b, 0x33, 0x81, 0x54, 0x79, - 0xdd, 0x9f, 0x05, 0xc1, 0x5f, 0x0c, 0xf0, 0xca, 0x28, 0x61, 0x80, 0x7b, 0x04, 0xc9, 0x5b, 0x38, - 0xaa, 0x27, 0xdc, 0x5c, 0x92, 0x4c, 0x2f, 0x1c, 0xc3, 0x74, 0x3f, 0x0d, 0x19, 0x55, 0x1c, 0xe7, - 0x96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 0x8c, 0x2b, - 0x20, 0xbc, 0x0a, 0xca, 0x13, 0xec, 0xa5, 0xf6, 0xff, 0x41, 0xde, 0x2d, 0x65, 0x79, 0xc0, 0x4d, - 0x50, 0x90, 0x1a, 0x7a, 0x51, 0x57, 0xdd, 0x81, 0xbc, 0xbb, 0x20, 0x07, 0x6e, 0x75, 0x43, 0xfb, - 0x00, 0x40, 0xd9, 0x71, 0x44, 0x23, 0x50, 0x07, 0xf6, 0x00, 0xc7, 0xf0, 0x43, 0x50, 0xee, 0xa5, - 0xa3, 0x1e, 0xc7, 0xb1, 0x94, 0xac, 0xe0, 0x98, 0xc3, 0xc4, 0x5a, 0xd3, 0x2b, 0xc8, 0xc2, 0xb6, - 0x5b, 0x1a, 0xd9, 0x07, 0x38, 0xb6, 0x7f, 0x38, 0x01, 0xd6, 0x67, 0x96, 0xc4, 0x97, 0xbc, 0xc8, - 0x57, 0x40, 0xf1, 0x8b, 0xae, 0x78, 0x6f, 0x65, 0xef, 0x71, 0xe6, 0xa9, 0x97, 0x01, 0x6d, 0x17, - 0x48, 0x4b, 0x05, 0x36, 0x40, 0x49, 0x56, 0x6b, 0x14, 0x04, 0x0c, 0xf3, 0xf4, 0x15, 0x66, 0x4f, - 0x15, 0x55, 0x41, 0xf1, 0xaa, 0xf2, 0x48, 0x99, 0x3a, 0x9b, 0x93, 0xcf, 0xb1, 0x6c, 0x16, 0xdb, - 0x2d, 0x76, 0xc6, 0x11, 0x70, 0x17, 0x14, 0xc6, 0xfd, 0x25, 0x2f, 0x75, 0x5a, 0x1b, 0x26, 0xd6, - 0xb2, 0x0e, 0x1c, 0xf5, 0x09, 0x77, 0xec, 0x36, 0xb5, 0xe3, 0x5f, 0x1b, 0x60, 0x75, 0x06, 0x07, - 0xf8, 0x36, 0x38, 0x95, 0x12, 0x57, 0x4a, 0xc1, 0x61, 0x62, 0x2d, 0xea, 0x37, 0x55, 0xca, 0x25, - 0x75, 0x81, 0x37, 0xc0, 0xb2, 0xfe, 0x1c, 0x35, 0x27, 0xad, 0xd4, 0xe6, 0x30, 0xb1, 0xce, 0x4c, - 0x84, 0x8d, 0x3c, 0x6c, 0x77, 0x09, 0x4d, 0xce, 0x6a, 0x7f, 0x6b, 0x80, 0x8d, 0xe3, 0x5b, 0xc3, - 0x4b, 0xee, 0xe0, 0x2e, 0x28, 0x4c, 0x3f, 0xb7, 0x33, 0x22, 0x65, 0x9e, 0xd1, 0x63, 0xb7, 0x29, - 0x91, 0xbe, 0x34, 0xc0, 0x92, 0x7c, 0xf9, 0x7f, 0xda, 0x09, 0x44, 0x49, 0x6a, 0xa3, 0x08, 0x42, - 0x90, 0x3f, 0xc4, 0x03, 0x75, 0xa1, 0x0b, 0xae, 0xfc, 0x86, 0xa7, 0xc1, 0x7c, 0x0b, 0x93, 0x66, - 0x2b, 0x96, 0xd3, 0xcc, 0xb9, 0xda, 0x82, 0xef, 0x81, 0x53, 0xea, 0x4e, 0x70, 0x59, 0x69, 0x8a, - 0xbb, 0xeb, 0xcf, 0x9d, 0x02, 0xf1, 0xb7, 0xc2, 0xc9, 0x8b, 0x8d, 0x77, 0x53, 0xdf, 0x09, 0x12, - 0x86, 0xf3, 0xd1, 0xa3, 0x3f, 0x2b, 0xb9, 0x47, 0x4f, 0x2b, 0xc6, 0xe3, 0xa7, 0x15, 0xe3, 0x8f, - 0xa7, 0x15, 0xe3, 0x9b, 0x67, 0x95, 0xdc, 0xe3, 0x67, 0x95, 0xdc, 0x6f, 0xcf, 0x2a, 0xb9, 0xbb, - 0x17, 0x32, 0xb5, 0x82, 0xde, 0xa7, 0x3b, 0x11, 0x8e, 0x8f, 0x28, 0x3b, 0x14, 0xdf, 0xb5, 0x7e, - 0xfa, 0xb7, 0x48, 0x96, 0x8c, 0xc6, 0xbc, 0xfc, 0x3b, 0x73, 0xf9, 0x9f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x03, 0xf0, 0x3a, 0x45, 0x31, 0x0d, 0x00, 0x00, + // 1553 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xbd, 0x6f, 0x1b, 0xc9, + 0x15, 0xe7, 0x5a, 0x9f, 0x1c, 0x92, 0xfa, 0x18, 0x49, 0xd6, 0x4a, 0x72, 0xb8, 0xca, 0xc6, 0x49, + 0x64, 0x3b, 0x22, 0x63, 0x39, 0x81, 0x11, 0x21, 0x29, 0xbc, 0x92, 0x9d, 0x18, 0x70, 0x0c, 0x62, + 0xe5, 0x38, 0x80, 0x8b, 0x6c, 0x86, 0xbb, 0x63, 0x72, 0x2c, 0xee, 0xce, 0x7a, 0x66, 0x29, 0x91, + 0x6d, 0xaa, 0x00, 0x69, 0x52, 0xa4, 0x48, 0xe9, 0x74, 0x81, 0xcb, 0x00, 0x01, 0xae, 0xb9, 0xde, + 0xc0, 0x35, 0x2e, 0x0f, 0x57, 0xac, 0xef, 0xec, 0xe6, 0x70, 0x25, 0xff, 0x82, 0xc3, 0x7c, 0x2c, + 0xb9, 0xa4, 0xa9, 0x3b, 0x9f, 0x2b, 0xee, 0xcc, 0xef, 0xbd, 0x37, 0xbf, 0xf9, 0xcd, 0xbc, 0xf7, + 0x86, 0x60, 0x9b, 0x3e, 0xa3, 0x75, 0xca, 0x90, 0xdf, 0xc1, 0xf5, 0xb3, 0x9b, 0xfa, 0xab, 0x16, + 0x33, 0x9a, 0x50, 0x58, 0xa1, 0xcf, 0x68, 0x4d, 0xcf, 0x9c, 0xdd, 0xdc, 0x5e, 0x6f, 0xd1, 0x16, + 0x95, 0x48, 0x5d, 0x7c, 0x29, 0xa3, 0xed, 0xaa, 0x4f, 0x79, 0x48, 0x79, 0xbd, 0x89, 0xb8, 0x88, + 0xd0, 0xc4, 0x09, 0xba, 0x59, 0xf7, 0x29, 0x89, 0x14, 0x6e, 0x7f, 0x53, 0x02, 0xf3, 0x0d, 0xc4, + 0x50, 0xc8, 0xe1, 0x6d, 0x50, 0x3a, 0xa3, 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xc1, 0xbf, 0x80, 0x12, + 0xf2, 0x7d, 0x1c, 0x27, 0x5e, 0x87, 0xf0, 0xc4, 0x9c, 0x93, 0x1b, 0x5a, 0x9f, 0xd8, 0xd0, 0x31, + 0x8e, 0x68, 0xe8, 0xfc, 0x5c, 0xef, 0x45, 0x9f, 0x44, 0xce, 0x4d, 0x6c, 0xa5, 0x28, 0x8d, 0xe4, + 0x2e, 0x80, 0x82, 0xc4, 0xb7, 0x38, 0x16, 0xde, 0x41, 0xbc, 0xed, 0x3d, 0x65, 0xc8, 0x17, 0xeb, + 0x9a, 0xf3, 0x1f, 0x71, 0x2c, 0xe3, 0x21, 0x6c, 0xb7, 0x22, 0x27, 0xee, 0xe9, 0x31, 0x3c, 0x04, + 0x65, 0x65, 0xa1, 0xb5, 0x59, 0x90, 0xda, 0x6c, 0x8e, 0x74, 0xcf, 0xa3, 0xb6, 0x5b, 0x92, 0x43, + 0x2d, 0x00, 0x07, 0xeb, 0x21, 0x89, 0xbc, 0x33, 0xd4, 0x21, 0x81, 0xb8, 0x58, 0x59, 0x8c, 0x45, + 0x49, 0xd3, 0xf9, 0x30, 0x9a, 0x3b, 0x6a, 0x99, 0x69, 0x81, 0x6c, 0x77, 0x35, 0x24, 0xd1, 0x63, + 0x31, 0xdb, 0xc0, 0x4c, 0x2f, 0xda, 0x02, 0x4b, 0x21, 0x8a, 0x02, 0x94, 0x50, 0xd6, 0x57, 0xc2, + 0x17, 0xbf, 0x43, 0xf8, 0xeb, 0x5a, 0x78, 0x2d, 0xc6, 0xb8, 0xe7, 0x84, 0xf6, 0x95, 0x21, 0x2a, + 0xe5, 0x3f, 0x00, 0x1b, 0x6d, 0xc2, 0x13, 0xca, 0x88, 0xef, 0xf1, 0x04, 0x85, 0x71, 0x96, 0x58, + 0x40, 0x48, 0xe4, 0xae, 0x65, 0xe0, 0x89, 0xc0, 0x74, 0x26, 0xd5, 0xc0, 0x5a, 0x88, 0x03, 0x82, + 0xa2, 0x71, 0x8f, 0x92, 0xf4, 0x58, 0x55, 0x50, 0xde, 0xfe, 0x97, 0x60, 0x3d, 0x44, 0x3d, 0x12, + 0x76, 0x43, 0x2f, 0x66, 0xc4, 0xc7, 0xca, 0x8d, 0x9b, 0x65, 0xe9, 0x00, 0x35, 0xd6, 0x10, 0x90, + 0x74, 0xe3, 0x82, 0x55, 0xe6, 0x91, 0x5f, 0x89, 0x9b, 0x15, 0xc5, 0x4a, 0x83, 0x7f, 0x1c, 0x2d, + 0xc5, 0xe1, 0x7f, 0x0c, 0xb0, 0xe9, 0x77, 0x19, 0xc3, 0x91, 0xdf, 0xf7, 0x62, 0x44, 0x98, 0x17, + 0x33, 0x7a, 0x46, 0x02, 0xcc, 0xb8, 0xb9, 0x24, 0xc5, 0xbb, 0x3a, 0x21, 0xde, 0x91, 0xb6, 0x6e, + 0x20, 0xc2, 0x1a, 0x99, 0xad, 0x73, 0xa4, 0xc5, 0xac, 0x2a, 0x31, 0x2f, 0x08, 0x29, 0x54, 0xdd, + 0x9a, 0x1a, 0x40, 0xaa, 0xbc, 0xe1, 0x4f, 0x83, 0xe0, 0xa7, 0x06, 0xf8, 0xd1, 0x30, 0x60, 0x80, + 0xcf, 0x08, 0x92, 0x59, 0x38, 0xac, 0x27, 0xdc, 0x5c, 0x96, 0x4c, 0xaf, 0x5d, 0xc0, 0xf4, 0x38, + 0x73, 0x19, 0x56, 0x1c, 0xe7, 0xa1, 0xa6, 0x7b, 0x75, 0x82, 0xee, 0xb4, 0xe8, 0x82, 0x74, 0xf5, + 0xe2, 0x58, 0x92, 0xf9, 0x8e, 0x7f, 0x21, 0xce, 0xe1, 0x75, 0xb0, 0xaa, 0x4e, 0x10, 0xf7, 0x62, + 0xc2, 0xfa, 0x5e, 0x42, 0x42, 0x6c, 0xae, 0xc8, 0x33, 0x59, 0x96, 0xc0, 0x5d, 0x39, 0xff, 0x88, + 0x84, 0x18, 0xee, 0x83, 0xb5, 0x0e, 0x79, 0x8a, 0xa5, 0x8d, 0x47, 0x22, 0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+ 0x1d, 0x3b, 0xd7, 0xff, 0xa6, 0x1b, 0xda, 0xee, 0x86, 0x42, 0x8e, 0x14, 0x90, 0xe5, 0x1f, 0x6c, + 0x82, 0xb2, 0xec, 0x94, 0x28, 0x08, 0x18, 0xe6, 0xdc, 0x5c, 0x94, 0x59, 0x67, 0x4f, 0x34, 0x34, + 0x71, 0x3d, 0xee, 0x28, 0x8b, 0x8c, 0x95, 0xb3, 0x33, 0xfe, 0x14, 0xce, 0x47, 0xb1, 0xdd, 0x52, + 0x3c, 0xf2, 0x80, 0x07, 0xa0, 0x38, 0xea, 0xed, 0x45, 0x79, 0x47, 0xd7, 0x07, 0xa9, 0xb5, 0xa2, + 0x1d, 0x87, 0x3d, 0xda, 0x1d, 0x99, 0x4d, 0x64, 0xdb, 0x3f, 0x0c, 0xb0, 0x36, 0x85, 0x03, 0xfc, + 0x05, 0x58, 0xc8, 0x88, 0xab, 0x5b, 0x9a, 0x3b, 0xa8, 0x21, 0x97, 0xcc, 0x04, 0xde, 0x03, 0x2b, + 0xfa, 0x73, 0x74, 0x40, 0x97, 0x26, 0xef, 0xd9, 0xa4, 0x85, 0xed, 0x2e, 0xa3, 0xf1, 0x55, 0xed, + 0x7f, 0x19, 0x60, 0xfb, 0xe2, 0xb6, 0xfc, 0x91, 0xd9, 0x73, 0x00, 0x8a, 0x93, 0x7f, 0x75, 0x72, + 0x22, 0xe5, 0xfe, 0xc2, 0x8c, 0xcc, 0x26, 0x44, 0xfa, 0x9b, 0x01, 0x96, 0xe5, 0xbf, 0xae, 0x3f, + 0xc5, 0x81, 0x68, 0x07, 0x1d, 0x14, 0x41, 0x08, 0x66, 0x4f, 0x71, 0x5f, 0x15, 0xd3, 0xa2, 0x2b, + 0xbf, 0xe1, 0x65, 0x30, 0xdf, 0xc6, 0xa4, 0xd5, 0x4e, 0xe4, 0x32, 0x33, 0xae, 0x1e, 0xc1, 0x5f, + 0x83, 0x05, 0x75, 0x29, 0xb8, 0xcc, 0xbe, 0xd2, 0xc1, 0xc6, 0x7b, 0xb7, 0x40, 0xfc, 0xa5, 0x73, + 0x66, 0xc5, 0xc1, 0xbb, 0x99, 0xed, 0x18, 0x09, 0xc3, 0xf9, 0xfd, 0xab, 0xaf, 0xaa, 0x85, 0x57, + 0x6f, 0xab, 0xc6, 0xeb, 0xb7, 0x55, 0xe3, 0xcb, 0xb7, 0x55, 0xe3, 0x9f, 0xef, 0xaa, 0x85, 0xd7, + 0xef, 0xaa, 0x85, 0xcf, 0xdf, 0x55, 0x0b, 0x4f, 0xae, 0xe5, 0xea, 0x34, 0x7d, 0x46, 0xf7, 0x23, + 0x9c, 0x9c, 0x53, 0x76, 0x2a, 0xbe, 0xeb, 0xbd, 0xec, 0x2f, 0xa9, 0x2c, 0xd7, 0xcd, 0x79, 0xf9, + 0x57, 0xf2, 0xd6, 0xb7, 0x01, 0x00, 0x00, 0xff, 0xff, 0x24, 0xd9, 0x28, 0x59, 0xad, 0x0e, 0x00, + 0x00, } func (this *Params) Equal(that interface{}) bool { @@ -1174,7 +1189,7 @@ func (m *CurrencyPairProviders) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Providers[iNdEx]) i = encodeVarintOracle(dAtA, i, uint64(len(m.Providers[iNdEx]))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x4a } } if len(m.PairAddress) > 0 { @@ -1188,9 +1203,42 @@ func (m *CurrencyPairProviders) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintOracle(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a + dAtA[i] = 0x42 } } + if len(m.CryptoCompareExchange) > 0 { + i -= len(m.CryptoCompareExchange) + copy(dAtA[i:], m.CryptoCompareExchange) + i = encodeVarintOracle(dAtA, i, uint64(len(m.CryptoCompareExchange))) + i-- + dAtA[i] = 0x3a + } + if len(m.ExternLiquidityProvider) > 0 { + i -= len(m.ExternLiquidityProvider) + copy(dAtA[i:], m.ExternLiquidityProvider) + i = encodeVarintOracle(dAtA, i, uint64(len(m.ExternLiquidityProvider))) + i-- + dAtA[i] = 0x32 + } + if m.PoolId != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.PoolId)) + i-- + dAtA[i] = 0x28 + } + if len(m.QuoteProxyDenom) > 0 { + i -= len(m.QuoteProxyDenom) + copy(dAtA[i:], m.QuoteProxyDenom) + i = encodeVarintOracle(dAtA, i, uint64(len(m.QuoteProxyDenom))) + i-- + dAtA[i] = 0x22 + } + if len(m.BaseProxyDenom) > 0 { + i -= len(m.BaseProxyDenom) + copy(dAtA[i:], m.BaseProxyDenom) + i = encodeVarintOracle(dAtA, i, uint64(len(m.BaseProxyDenom))) + i-- + dAtA[i] = 0x1a + } if len(m.QuoteDenom) > 0 { i -= len(m.QuoteDenom) copy(dAtA[i:], m.QuoteDenom) @@ -1531,6 +1579,25 @@ func (m *CurrencyPairProviders) Size() (n int) { if l > 0 { n += 1 + l + sovOracle(uint64(l)) } + l = len(m.BaseProxyDenom) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + l = len(m.QuoteProxyDenom) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + if m.PoolId != 0 { + n += 1 + sovOracle(uint64(m.PoolId)) + } + l = len(m.ExternLiquidityProvider) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } + l = len(m.CryptoCompareExchange) + if l > 0 { + n += 1 + l + sovOracle(uint64(l)) + } if len(m.PairAddress) > 0 { for _, e := range m.PairAddress { l = e.Size() @@ -2878,6 +2945,153 @@ func (m *CurrencyPairProviders) Unmarshal(dAtA []byte) error { m.QuoteDenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseProxyDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BaseProxyDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QuoteProxyDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.QuoteProxyDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PoolId", wireType) + } + m.PoolId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PoolId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternLiquidityProvider", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExternLiquidityProvider = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CryptoCompareExchange", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOracle + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOracle + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CryptoCompareExchange = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PairAddress", wireType) } @@ -2911,7 +3125,7 @@ func (m *CurrencyPairProviders) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 4: + case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Providers", wireType) } From 30eaea868d185c093089bafa7c949cae18131a25 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Thu, 16 Jan 2025 17:05:10 -0500 Subject: [PATCH 14/77] external liquidity in vote extensions --- app/upgrades.go | 2 +- go.mod | 2 +- go.sum | 4 +- proto/ojo/oracle/v1/abci.proto | 31 +- x/oracle/abci/proposal.go | 85 +++++ x/oracle/abci/voteextension.go | 27 +- x/oracle/types/abci.pb.go | 643 +++++++++++++++++++++++++++++++-- x/oracle/types/asset.go | 12 + x/oracle/types/params.go | 99 +++++ 9 files changed, 869 insertions(+), 36 deletions(-) diff --git a/app/upgrades.go b/app/upgrades.go index 05828ea5..bd6737da 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -69,7 +69,7 @@ func (app *App) registerUpgrade0_1_4(_ upgradetypes.Plan) { ) } -// nolint: all +//nolint: all func (app *App) registerUpgrade0_2_0(upgradeInfo upgradetypes.Plan) { const planName = "v0.2.0" diff --git a/go.mod b/go.mod index 472e6ddc..3ea7d5d8 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250115011724-f46db747fbc1 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250115184516-62dd1f5d2498 github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.0 diff --git a/go.sum b/go.sum index 50e3ca66..46458ba7 100644 --- a/go.sum +++ b/go.sum @@ -1299,8 +1299,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250115011724-f46db747fbc1 h1:sMV16uQ34lV56ImmShF944DXlUNMsXe47g9EbZganA8= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250115011724-f46db747fbc1/go.mod h1:+hQSa6N3/NrW+hvu/pPufaGcuvHK475FvbAnmqJwXtk= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250115184516-62dd1f5d2498 h1:5oEqY7QelSVvHz/gl2H2/L5rXEDxcEe9+MobASBYUyA= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250115184516-62dd1f5d2498/go.mod h1:tNVvSZ/AvxvDqVctmun0K81unu4hEOSa0821xdbFiQQ= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= diff --git a/proto/ojo/oracle/v1/abci.proto b/proto/ojo/oracle/v1/abci.proto index 2272d02a..ffcc376e 100644 --- a/proto/ojo/oracle/v1/abci.proto +++ b/proto/ojo/oracle/v1/abci.proto @@ -4,6 +4,7 @@ package ojo.oracle.v1; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; import "ojo/oracle/v1/oracle.proto"; +import "cosmos_proto/cosmos.proto"; option go_package = "github.com/ojo-network/ojo/x/oracle/types"; @@ -17,6 +18,9 @@ message OracleVoteExtension { (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false ]; + repeated ExternalLiquidity external_liquidity = 3 [ + (gogoproto.nullable) = false + ]; } // InjectedVoteExtensionTx defines the vote extension tx injected by the prepare @@ -25,5 +29,30 @@ message InjectedVoteExtensionTx { repeated AggregateExchangeRateVote exchange_rate_votes = 1[ (gogoproto.nullable) = false ]; - bytes extended_commit_info = 2; + repeated ExternalLiquidity external_liquidity = 2 [ + (gogoproto.nullable) = false + ]; + bytes extended_commit_info = 3; +} + +message AssetAmountDepth { + string asset = 1; + string amount = 2 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false + ]; + string depth = 3 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false + ]; +} + +// ExternalLiquidity defines price, volume, and time information for an exchange +// rate. +message ExternalLiquidity { + uint64 pool_id = 1; + repeated AssetAmountDepth amount_depth_info = 2 + [ (gogoproto.nullable) = false ]; } diff --git a/x/oracle/abci/proposal.go b/x/oracle/abci/proposal.go index 42892d7a..fff6e3e5 100644 --- a/x/oracle/abci/proposal.go +++ b/x/oracle/abci/proposal.go @@ -68,6 +68,10 @@ func (h *ProposalHandler) PrepareProposalHandler() sdk.PrepareProposalHandler { if err != nil { return &cometabci.ResponsePrepareProposal{Txs: make([][]byte, 0)}, err } + externalLiquidty, err := h.generateExternalLiquidity(ctx, req.LocalLastCommit) + if err != nil { + return &cometabci.ResponsePrepareProposal{Txs: make([][]byte, 0)}, err + } extendedCommitInfoBz, err := req.LocalLastCommit.Marshal() if err != nil { return &cometabci.ResponsePrepareProposal{Txs: make([][]byte, 0)}, err @@ -75,6 +79,7 @@ func (h *ProposalHandler) PrepareProposalHandler() sdk.PrepareProposalHandler { injectedVoteExtTx := oracletypes.InjectedVoteExtensionTx{ ExchangeRateVotes: exchangeRateVotes, + ExternalLiquidity: externalLiquidty, ExtendedCommitInfo: extendedCommitInfoBz, } @@ -171,6 +176,15 @@ func (h *ProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHandler { if err := h.verifyExchangeRateVotes(injectedVoteExtTx.ExchangeRateVotes, exchangeRateVotes); err != nil { return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, err } + + // Verify the proposer's external liquidity by computing the same. + externalLiquidity, err := h.generateExternalLiquidity(ctx, extendedCommitInfo) + if err != nil { + return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, err + } + if err := h.verifyExternalLiquidity(injectedVoteExtTx.ExternalLiquidity, externalLiquidity); err != nil { + return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, err + } } h.logger.Info( @@ -253,3 +267,74 @@ func (h *ProposalHandler) verifyExchangeRateVotes( return nil } + +func (h *ProposalHandler) generateExternalLiquidity( + ctx sdk.Context, + ci cometabci.ExtendedCommitInfo, +) (externalLiquidityList []oracletypes.ExternalLiquidity, err error) { + for _, vote := range ci.Votes { + if vote.BlockIdFlag != cmtproto.BlockIDFlagCommit { + continue + } + + var voteExt oracletypes.OracleVoteExtension + if err := voteExt.Unmarshal(vote.VoteExtension); err != nil { + h.logger.Error( + "failed to decode vote extension", + "err", err, + ) + return nil, err + } + + var valConsAddr sdk.ConsAddress + if err := valConsAddr.Unmarshal(vote.Validator.Address); err != nil { + h.logger.Error( + "failed to unmarshal validator consensus address", + "err", err, + ) + return nil, err + } + val, err := h.stakingKeeper.GetValidatorByConsAddr(ctx, valConsAddr) + if err != nil { + h.logger.Error( + "failed to get consensus validator from staking keeper", + "err", err, + ) + return nil, err + } + _, err = sdk.ValAddressFromBech32(val.OperatorAddress) + if err != nil { + return nil, err + } + + externalLiquidityList = append(externalLiquidityList, voteExt.ExternalLiquidity...) + } + + return externalLiquidityList, nil +} + +func (h *ProposalHandler) verifyExternalLiquidity( + injectedExternalLiquidityList []oracletypes.ExternalLiquidity, + generatedExternalLiquidityList []oracletypes.ExternalLiquidity, +) error { + if len(injectedExternalLiquidityList) != len(generatedExternalLiquidityList) { + return oracletypes.ErrNonEqualInjVotesLen + } + + for i := range injectedExternalLiquidityList { + injectedExternalLiquidity := injectedExternalLiquidityList[i] + generatedExternalLiquidity := generatedExternalLiquidityList[i] + + if injectedExternalLiquidity.PoolId != generatedExternalLiquidity.PoolId { + return oracletypes.ErrNonEqualInjVotesRates + } + + if len(injectedExternalLiquidity.AmountDepthInfo) != len(generatedExternalLiquidity.AmountDepthInfo) || + injectedExternalLiquidity.AmountDepthInfo[0] != generatedExternalLiquidity.AmountDepthInfo[0] || + injectedExternalLiquidity.AmountDepthInfo[1] != generatedExternalLiquidity.AmountDepthInfo[1] { + return oracletypes.ErrNonEqualInjVotesRates + } + } + + return nil +} diff --git a/x/oracle/abci/voteextension.go b/x/oracle/abci/voteextension.go index 5f864cc2..2e3f272a 100644 --- a/x/oracle/abci/voteextension.go +++ b/x/oracle/abci/voteextension.go @@ -81,9 +81,32 @@ func (h *VoteExtensionHandler) ExtendVoteHandler() sdk.ExtendVoteHandler { } } + externalLiquidityMsg := []types.ExternalLiquidity{} + externalLiquidity := h.oracleKeeper.PriceFeeder.Oracle.GetExternalLiquidity() + + for _, el := range externalLiquidity { + amountDepthInfo := []types.AssetAmountDepth{ + { + Asset: el.BaseAsset, + Amount: el.BaseAmount, + Depth: el.BaseDepth, + }, + { + Asset: el.QuoteAsset, + Amount: el.QuoteAmount, + Depth: el.QuoteDepth, + }, + } + externalLiquidityMsg = append(externalLiquidityMsg, types.ExternalLiquidity{ + PoolId: el.PoolId, + AmountDepthInfo: amountDepthInfo, + }) + } + voteExt := types.OracleVoteExtension{ - Height: req.Height, - ExchangeRates: filteredDecCoins, + Height: req.Height, + ExchangeRates: filteredDecCoins, + ExternalLiquidity: externalLiquidityMsg, } bz, err := voteExt.Marshal() diff --git a/x/oracle/types/abci.pb.go b/x/oracle/types/abci.pb.go index d4accf5e..dc83504c 100644 --- a/x/oracle/types/abci.pb.go +++ b/x/oracle/types/abci.pb.go @@ -4,7 +4,9 @@ package types import ( + cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" + _ "github.com/cosmos/cosmos-proto" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" proto "github.com/cosmos/gogoproto/proto" @@ -28,8 +30,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // OracleVoteExtension defines the vote extension structure used by the oracle // module. type OracleVoteExtension struct { - Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` - ExchangeRates github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=exchange_rates,json=exchangeRates,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"exchange_rates"` + Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + ExchangeRates github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=exchange_rates,json=exchangeRates,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"exchange_rates"` + ExternalLiquidity []ExternalLiquidity `protobuf:"bytes,3,rep,name=external_liquidity,json=externalLiquidity,proto3" json:"external_liquidity"` } func (m *OracleVoteExtension) Reset() { *m = OracleVoteExtension{} } @@ -69,7 +72,8 @@ var xxx_messageInfo_OracleVoteExtension proto.InternalMessageInfo // proposal handler. type InjectedVoteExtensionTx struct { ExchangeRateVotes []AggregateExchangeRateVote `protobuf:"bytes,1,rep,name=exchange_rate_votes,json=exchangeRateVotes,proto3" json:"exchange_rate_votes"` - ExtendedCommitInfo []byte `protobuf:"bytes,2,opt,name=extended_commit_info,json=extendedCommitInfo,proto3" json:"extended_commit_info,omitempty"` + ExternalLiquidity []ExternalLiquidity `protobuf:"bytes,2,rep,name=external_liquidity,json=externalLiquidity,proto3" json:"external_liquidity"` + ExtendedCommitInfo []byte `protobuf:"bytes,3,opt,name=extended_commit_info,json=extendedCommitInfo,proto3" json:"extended_commit_info,omitempty"` } func (m *InjectedVoteExtensionTx) Reset() { *m = InjectedVoteExtensionTx{} } @@ -105,39 +109,132 @@ func (m *InjectedVoteExtensionTx) XXX_DiscardUnknown() { var xxx_messageInfo_InjectedVoteExtensionTx proto.InternalMessageInfo +type AssetAmountDepth struct { + Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` + Amount cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=amount,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"amount"` + Depth cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=depth,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"depth"` +} + +func (m *AssetAmountDepth) Reset() { *m = AssetAmountDepth{} } +func (m *AssetAmountDepth) String() string { return proto.CompactTextString(m) } +func (*AssetAmountDepth) ProtoMessage() {} +func (*AssetAmountDepth) Descriptor() ([]byte, []int) { + return fileDescriptor_a17fd58ec0319b85, []int{2} +} +func (m *AssetAmountDepth) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AssetAmountDepth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AssetAmountDepth.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AssetAmountDepth) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssetAmountDepth.Merge(m, src) +} +func (m *AssetAmountDepth) XXX_Size() int { + return m.Size() +} +func (m *AssetAmountDepth) XXX_DiscardUnknown() { + xxx_messageInfo_AssetAmountDepth.DiscardUnknown(m) +} + +var xxx_messageInfo_AssetAmountDepth proto.InternalMessageInfo + +// ExternalLiquidity defines price, volume, and time information for an exchange +// rate. +type ExternalLiquidity struct { + PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` + AmountDepthInfo []AssetAmountDepth `protobuf:"bytes,2,rep,name=amount_depth_info,json=amountDepthInfo,proto3" json:"amount_depth_info"` +} + +func (m *ExternalLiquidity) Reset() { *m = ExternalLiquidity{} } +func (m *ExternalLiquidity) String() string { return proto.CompactTextString(m) } +func (*ExternalLiquidity) ProtoMessage() {} +func (*ExternalLiquidity) Descriptor() ([]byte, []int) { + return fileDescriptor_a17fd58ec0319b85, []int{3} +} +func (m *ExternalLiquidity) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExternalLiquidity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExternalLiquidity.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ExternalLiquidity) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExternalLiquidity.Merge(m, src) +} +func (m *ExternalLiquidity) XXX_Size() int { + return m.Size() +} +func (m *ExternalLiquidity) XXX_DiscardUnknown() { + xxx_messageInfo_ExternalLiquidity.DiscardUnknown(m) +} + +var xxx_messageInfo_ExternalLiquidity proto.InternalMessageInfo + func init() { proto.RegisterType((*OracleVoteExtension)(nil), "ojo.oracle.v1.OracleVoteExtension") proto.RegisterType((*InjectedVoteExtensionTx)(nil), "ojo.oracle.v1.InjectedVoteExtensionTx") + proto.RegisterType((*AssetAmountDepth)(nil), "ojo.oracle.v1.AssetAmountDepth") + proto.RegisterType((*ExternalLiquidity)(nil), "ojo.oracle.v1.ExternalLiquidity") } func init() { proto.RegisterFile("ojo/oracle/v1/abci.proto", fileDescriptor_a17fd58ec0319b85) } var fileDescriptor_a17fd58ec0319b85 = []byte{ - // 382 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0xcf, 0x8e, 0xd3, 0x30, - 0x10, 0xc6, 0xe3, 0x5d, 0xb4, 0x87, 0xc0, 0x22, 0x91, 0x5d, 0x41, 0x54, 0x21, 0x6f, 0xb5, 0xa7, - 0x20, 0xb4, 0x36, 0x65, 0x9f, 0x80, 0x2e, 0x08, 0xf5, 0x84, 0x14, 0x21, 0x0e, 0x1c, 0x88, 0x12, - 0x67, 0xea, 0x38, 0x25, 0x9e, 0x2a, 0x36, 0x25, 0xbc, 0x05, 0x6f, 0x81, 0x04, 0x2f, 0xd2, 0x63, - 0x8f, 0x9c, 0xf8, 0xd3, 0xbe, 0x08, 0x72, 0xfe, 0x08, 0xc2, 0x29, 0x93, 0xf9, 0x3c, 0xdf, 0xfc, - 0xf4, 0x8d, 0x1f, 0x62, 0x89, 0x1c, 0xeb, 0x54, 0xbc, 0x07, 0xbe, 0x99, 0xf1, 0x34, 0x13, 0x8a, - 0xad, 0x6b, 0xb4, 0x18, 0x9c, 0x62, 0x89, 0xac, 0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xff, - 0xfa, 0x26, 0x78, 0xe2, 0x9f, 0x83, 0x5b, 0x97, 0x43, 0x9e, 0x08, 0xac, 0x2a, 0x65, 0x13, 0xa5, - 0x97, 0x18, 0x1e, 0x4d, 0x49, 0x74, 0x27, 0x0e, 0x06, 0xed, 0xa6, 0x95, 0x16, 0x7a, 0x89, 0xf3, - 0x97, 0xdb, 0xdf, 0xd4, 0xdb, 0xee, 0x29, 0xd9, 0xed, 0x29, 0xf9, 0xb5, 0xa7, 0xe4, 0xf3, 0x81, - 0x7a, 0xbb, 0x03, 0xf5, 0xbe, 0x1f, 0xa8, 0xf7, 0xf6, 0xd1, 0x3f, 0x39, 0x60, 0x89, 0x57, 0x1a, - 0xec, 0x47, 0xac, 0x57, 0xae, 0xe6, 0xcd, 0x70, 0xaa, 0x36, 0x8e, 0xec, 0xa4, 0xbd, 0xd3, 0xf5, - 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4e, 0x73, 0x9c, 0xa3, 0x24, 0x02, 0x00, 0x00, + // 573 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0xc1, 0x6e, 0xd3, 0x4c, + 0x10, 0x8e, 0x93, 0x36, 0xbf, 0xfe, 0x85, 0x02, 0xdd, 0x56, 0xd4, 0x14, 0xe4, 0x44, 0x39, 0x05, + 0xa1, 0xda, 0x84, 0x3e, 0x41, 0xd3, 0x54, 0x55, 0xa4, 0x4a, 0x08, 0x0b, 0x38, 0x70, 0xc0, 0xda, + 0xac, 0xb7, 0xf6, 0xa6, 0xf1, 0x4e, 0xb0, 0x37, 0xc1, 0x39, 0x21, 0xf1, 0x04, 0x3c, 0x07, 0x67, + 0x8e, 0x3c, 0x40, 0x8e, 0x15, 0x27, 0xc4, 0xa1, 0x40, 0xf2, 0x1e, 0x08, 0xed, 0xae, 0xa3, 0x90, + 0x20, 0x2e, 0x70, 0xb2, 0x67, 0xbe,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6d, 0x86, 0x6a, 0x92, 0x16, 0xf6, 0x57, 0x4c, 0xa6, 0xbf, 0xf1, 0x06, 0x6d, + 0xff, 0x66, 0x0f, 0xde, 0x43, 0xff, 0x0d, 0x01, 0x06, 0x01, 0x0f, 0xf5, 0x02, 0x1b, 0x7e, 0x55, + 0x85, 0xdd, 0x10, 0x3f, 0x41, 0xdb, 0x46, 0x40, 0xa0, 0xbb, 0x8d, 0x37, 0xc6, 0xf4, 0xda, 0xfa, + 0x37, 0x5d, 0xf3, 0xa4, 0xf0, 0xfc, 0x26, 0x59, 0xa6, 0x94, 0x7f, 0xed, 0xd3, 0xe9, 0x77, 0xa7, + 0x34, 0x9d, 0x39, 0xd6, 0xe5, 0xcc, 0xb1, 0xbe, 0xcd, 0x1c, 0xeb, 0xdd, 0xdc, 0x29, 0x5d, 0xce, + 0x9d, 0xd2, 0xe7, 0xb9, 0x53, 0x7a, 0x71, 0xff, 0x97, 0xab, 0x87, 0x3e, 0x1c, 0x08, 0x26, 0x5f, + 0x43, 0x7a, 0xa1, 0xde, 0xbd, 0x7c, 0xf1, 0xcf, 0xea, 0xe3, 0xef, 0x55, 0xf5, 0x5f, 0x79, 0xf8, + 0x33, 0x00, 0x00, 0xff, 0xff, 0xa9, 0xc7, 0x9e, 0xbe, 0x2d, 0x04, 0x00, 0x00, } func (m *OracleVoteExtension) Marshal() (dAtA []byte, err error) { @@ -160,6 +257,20 @@ func (m *OracleVoteExtension) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.ExternalLiquidity) > 0 { + for iNdEx := len(m.ExternalLiquidity) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ExternalLiquidity[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAbci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } if len(m.ExchangeRates) > 0 { for iNdEx := len(m.ExchangeRates) - 1; iNdEx >= 0; iNdEx-- { { @@ -207,7 +318,21 @@ func (m *InjectedVoteExtensionTx) MarshalToSizedBuffer(dAtA []byte) (int, error) copy(dAtA[i:], m.ExtendedCommitInfo) i = encodeVarintAbci(dAtA, i, uint64(len(m.ExtendedCommitInfo))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a + } + if len(m.ExternalLiquidity) > 0 { + for iNdEx := len(m.ExternalLiquidity) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ExternalLiquidity[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAbci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } } if len(m.ExchangeRateVotes) > 0 { for iNdEx := len(m.ExchangeRateVotes) - 1; iNdEx >= 0; iNdEx-- { @@ -226,6 +351,98 @@ func (m *InjectedVoteExtensionTx) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } +func (m *AssetAmountDepth) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AssetAmountDepth) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AssetAmountDepth) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Depth.Size() + i -= size + if _, err := m.Depth.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintAbci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintAbci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Asset) > 0 { + i -= len(m.Asset) + copy(dAtA[i:], m.Asset) + i = encodeVarintAbci(dAtA, i, uint64(len(m.Asset))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ExternalLiquidity) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ExternalLiquidity) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExternalLiquidity) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AmountDepthInfo) > 0 { + for iNdEx := len(m.AmountDepthInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AmountDepthInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAbci(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.PoolId != 0 { + i = encodeVarintAbci(dAtA, i, uint64(m.PoolId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func encodeVarintAbci(dAtA []byte, offset int, v uint64) int { offset -= sovAbci(v) base := offset @@ -252,6 +469,12 @@ func (m *OracleVoteExtension) Size() (n int) { n += 1 + l + sovAbci(uint64(l)) } } + if len(m.ExternalLiquidity) > 0 { + for _, e := range m.ExternalLiquidity { + l = e.Size() + n += 1 + l + sovAbci(uint64(l)) + } + } return n } @@ -267,6 +490,12 @@ func (m *InjectedVoteExtensionTx) Size() (n int) { n += 1 + l + sovAbci(uint64(l)) } } + if len(m.ExternalLiquidity) > 0 { + for _, e := range m.ExternalLiquidity { + l = e.Size() + n += 1 + l + sovAbci(uint64(l)) + } + } l = len(m.ExtendedCommitInfo) if l > 0 { n += 1 + l + sovAbci(uint64(l)) @@ -274,6 +503,41 @@ func (m *InjectedVoteExtensionTx) Size() (n int) { return n } +func (m *AssetAmountDepth) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Asset) + if l > 0 { + n += 1 + l + sovAbci(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovAbci(uint64(l)) + l = m.Depth.Size() + n += 1 + l + sovAbci(uint64(l)) + return n +} + +func (m *ExternalLiquidity) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PoolId != 0 { + n += 1 + sovAbci(uint64(m.PoolId)) + } + if len(m.AmountDepthInfo) > 0 { + for _, e := range m.AmountDepthInfo { + l = e.Size() + n += 1 + l + sovAbci(uint64(l)) + } + } + return n +} + func sovAbci(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -362,6 +626,40 @@ func (m *OracleVoteExtension) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalLiquidity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAbci + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExternalLiquidity = append(m.ExternalLiquidity, ExternalLiquidity{}) + if err := m.ExternalLiquidity[len(m.ExternalLiquidity)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipAbci(dAtA[iNdEx:]) @@ -447,6 +745,40 @@ func (m *InjectedVoteExtensionTx) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalLiquidity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAbci + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExternalLiquidity = append(m.ExternalLiquidity, ExternalLiquidity{}) + if err := m.ExternalLiquidity[len(m.ExternalLiquidity)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ExtendedCommitInfo", wireType) } @@ -501,6 +833,259 @@ func (m *InjectedVoteExtensionTx) Unmarshal(dAtA []byte) error { } return nil } +func (m *AssetAmountDepth) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AssetAmountDepth: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AssetAmountDepth: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Asset = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Depth", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAbci + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Depth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAbci(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAbci + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ExternalLiquidity) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ExternalLiquidity: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExternalLiquidity: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PoolId", wireType) + } + m.PoolId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PoolId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountDepthInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAbci + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAbci + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAbci + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AmountDepthInfo = append(m.AmountDepthInfo, AssetAmountDepth{}) + if err := m.AmountDepthInfo[len(m.AmountDepthInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAbci(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAbci + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipAbci(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/oracle/types/asset.go b/x/oracle/types/asset.go index 54587b50..dd8a6d6d 100644 --- a/x/oracle/types/asset.go +++ b/x/oracle/types/asset.go @@ -23,7 +23,19 @@ const ( USDTDenom string = "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9" USDTSymbol string = "USDT" USDTExponent = uint32(18) + USDCDenom string = "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9" + USDCSymbol string = "USDC" + USDCExponent = uint32(18) USDSymbol string = "USD" + AKTDenom string = "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9" + AKTSymbol string = "AKT" + AKTExponent = uint32(6) + TIADenom string = "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9" + TIASymbol string = "TIA" + TIAExponent = uint32(6) + AXLDenom string = "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9" + AXLSymbol string = "AXL" + AXLExponent = uint32(6) BlocksPerMinute = uint64(10) BlocksPerHour = BlocksPerMinute * 60 BlocksPerDay = BlocksPerHour * 24 diff --git a/x/oracle/types/params.go b/x/oracle/types/params.go index 457ed32c..3a31fd22 100644 --- a/x/oracle/types/params.go +++ b/x/oracle/types/params.go @@ -82,6 +82,21 @@ var ( SymbolDenom: EthereumSymbol, Exponent: EthereumExponent, }, + { + BaseDenom: AKTDenom, + SymbolDenom: AKTSymbol, + Exponent: AKTExponent, + }, + { + BaseDenom: TIADenom, + SymbolDenom: TIASymbol, + Exponent: TIAExponent, + }, + { + BaseDenom: AXLDenom, + SymbolDenom: AXLSymbol, + Exponent: AXLExponent, + }, } DefaultMandatoryList = DenomList{ { @@ -104,6 +119,21 @@ var ( SymbolDenom: EthereumSymbol, Exponent: EthereumExponent, }, + { + BaseDenom: AKTDenom, + SymbolDenom: AKTSymbol, + Exponent: AKTExponent, + }, + { + BaseDenom: TIADenom, + SymbolDenom: TIASymbol, + Exponent: TIAExponent, + }, + { + BaseDenom: AXLDenom, + SymbolDenom: AXLSymbol, + Exponent: AXLExponent, + }, } DefaultSlashFraction = math.LegacyNewDecWithPrec(1, 4) // 0.01% DefaultMinValidPerWindow = math.LegacyNewDecWithPrec(5, 2) // 5% @@ -134,14 +164,26 @@ var ( "kraken", }, }, + CurrencyPairProviders{ + BaseDenom: USDCSymbol, + QuoteDenom: USDSymbol, + Providers: []string{ + "kraken", + }, + }, CurrencyPairProviders{ BaseDenom: AtomSymbol, QuoteDenom: USDTSymbol, Providers: []string{ + "binance", "okx", "bitget", "gate", }, + BaseProxyDenom: AtomSymbol, + QuoteProxyDenom: USDCSymbol, + ExternLiquidityProvider: "binance", + PoolId: 1, }, CurrencyPairProviders{ BaseDenom: BitcoinSymbol, @@ -174,6 +216,39 @@ var ( "bitget", }, }, + CurrencyPairProviders{ + BaseDenom: AKTSymbol, + QuoteDenom: USDTSymbol, + Providers: []string{ + "gate", + }, + BaseProxyDenom: AKTSymbol, + QuoteProxyDenom: USDCSymbol, + ExternLiquidityProvider: "gate", + PoolId: 3, + }, + CurrencyPairProviders{ + BaseDenom: TIASymbol, + QuoteDenom: USDTSymbol, + Providers: []string{ + "binance", + "gate", + "crypto", + }, + BaseProxyDenom: TIASymbol, + QuoteProxyDenom: USDCSymbol, + ExternLiquidityProvider: "binance", + PoolId: 2, + }, + CurrencyPairProviders{ + BaseDenom: AXLSymbol, + QuoteDenom: USDTSymbol, + Providers: []string{ + "binance", + }, + BaseProxyDenom: AXLSymbol, + QuoteProxyDenom: USDCSymbol, + }, } DefaultCurrencyDeviationThresholds = CurrencyDeviationThresholdList{ @@ -197,6 +272,18 @@ var ( BaseDenom: EthereumSymbol, Threshold: "2", }, + CurrencyDeviationThreshold{ + BaseDenom: AKTSymbol, + Threshold: "2", + }, + CurrencyDeviationThreshold{ + BaseDenom: TIASymbol, + Threshold: "2", + }, + CurrencyDeviationThreshold{ + BaseDenom: AXLSymbol, + Threshold: "2", + }, } ) @@ -228,6 +315,18 @@ func DefaultRewardBands() RewardBandList { SymbolDenom: EthereumSymbol, RewardBand: defaultRewardBand, }, + { + SymbolDenom: AKTSymbol, + RewardBand: defaultRewardBand, + }, + { + SymbolDenom: TIASymbol, + RewardBand: defaultRewardBand, + }, + { + SymbolDenom: AXLSymbol, + RewardBand: defaultRewardBand, + }, } } From 4171c061d44acf50b1f73c3a929d5e80a438730e Mon Sep 17 00:00:00 2001 From: rbajollari Date: Fri, 17 Jan 2025 17:46:23 -0500 Subject: [PATCH 15/77] elys pool types --- proto/ojo/oracle/v1/elys.proto | 28 ++ x/oracle/keeper/elys.go | 92 +++- x/oracle/types/elys.pb.go | 792 +++++++++++++++++++++++++++++++-- x/oracle/types/keys.go | 14 +- 4 files changed, 895 insertions(+), 31 deletions(-) diff --git a/proto/ojo/oracle/v1/elys.proto b/proto/ojo/oracle/v1/elys.proto index a1bdfa71..a5240fd0 100644 --- a/proto/ojo/oracle/v1/elys.proto +++ b/proto/ojo/oracle/v1/elys.proto @@ -3,6 +3,7 @@ package ojo.oracle.v1; import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; +import "cosmos/base/v1beta1/coin.proto"; option go_package = "github.com/ojo-network/ojo/x/oracle/types"; @@ -34,3 +35,30 @@ message PriceFeeder { string feeder = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; bool is_active = 2; } + +message Pool { + uint64 pool_id = 1; + repeated PoolAsset pool_assets = 2 [ (gogoproto.nullable) = false ]; +} + +message PoolAsset { + cosmos.base.v1beta1.Coin token = 1 [ (gogoproto.nullable) = false ]; + string weight = 2 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false + ]; + string external_liquidity_ratio = 3 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false + ]; +} + +message AccountedPool { + uint64 pool_id = 1; + repeated cosmos.base.v1beta1.Coin total_tokens = 2 + [ (gogoproto.nullable) = false ]; + repeated cosmos.base.v1beta1.Coin non_amm_pool_tokens = 3 + [ (gogoproto.nullable) = false ]; +} diff --git a/x/oracle/keeper/elys.go b/x/oracle/keeper/elys.go index 17770f6b..76ba3bfd 100644 --- a/x/oracle/keeper/elys.go +++ b/x/oracle/keeper/elys.go @@ -130,7 +130,7 @@ func (k Keeper) RemoveAssetInfo(ctx sdk.Context, denom string) { // GetAllAssetInfo returns all assetInfo func (k Keeper) GetAllAssetInfo(ctx sdk.Context) (list []types.AssetInfo) { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - iterator := storetypes.KVStorePrefixIterator(store, []byte{}) + iterator := storetypes.KVStorePrefixIterator(store, types.KeyPrefixAssetInfo) defer iterator.Close() @@ -171,3 +171,93 @@ func (k Keeper) RemovePriceFeeder(ctx sdk.Context, feeder sdk.AccAddress) { key := types.KeyPriceFeeder(feeder.String()) store.Delete(key) } + +// SetPool sets a pool in the store from its index. +func (k Keeper) SetPool(ctx sdk.Context, pool types.Pool) { + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + key := types.KeyPool(pool.PoolId) + bz := k.cdc.MustMarshal(&pool) + store.Set(key, bz) +} + +// GetPool returns a pool from its index +func (k Keeper) GetPool(ctx sdk.Context, poolId uint64) (val types.Pool, found bool) { + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + key := types.KeyPool(poolId) + + bz := store.Get(key) + if bz == nil { + return val, false + } + + k.cdc.MustUnmarshal(bz, &val) + return val, true +} + +// RemovePool removes a pool from the store +func (k Keeper) RemovePool(ctx sdk.Context, poolId uint64) { + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + key := types.KeyPool(poolId) + store.Delete(key) +} + +// GetAllPool returns all pool +func (k Keeper) GetAllPool(ctx sdk.Context) (list []types.Pool) { + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + iterator := storetypes.KVStorePrefixIterator(store, types.KeyPrefixPool) + + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + var val types.Pool + k.cdc.MustUnmarshal(iterator.Value(), &val) + list = append(list, val) + } + + return +} + +// SetAccountedPool sets a accounted pool in the store from its index. +func (k Keeper) SetAccountedPool(ctx sdk.Context, accountedPool types.AccountedPool) { + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + key := types.KeyAccountedPool(accountedPool.PoolId) + bz := k.cdc.MustMarshal(&accountedPool) + store.Set(key, bz) +} + +// GetAccountedPool returns a accounted pool from its index +func (k Keeper) GetAccountedPool(ctx sdk.Context, poolId uint64) (val types.AccountedPool, found bool) { + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + key := types.KeyAccountedPool(poolId) + + bz := store.Get(key) + if bz == nil { + return val, false + } + + k.cdc.MustUnmarshal(bz, &val) + return val, true +} + +// RemoveAccountedPool removes a accounted pool from the store +func (k Keeper) RemoveAccountedPool(ctx sdk.Context, poolId uint64) { + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + key := types.KeyAccountedPool(poolId) + store.Delete(key) +} + +// GetAllAccountedPool returns all accounted pool +func (k Keeper) GetAllAccountedPool(ctx sdk.Context) (list []types.AccountedPool) { + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + iterator := storetypes.KVStorePrefixIterator(store, types.KeyPrefixAccountedPool) + + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + var val types.AccountedPool + k.cdc.MustUnmarshal(iterator.Value(), &val) + list = append(list, val) + } + + return +} diff --git a/x/oracle/types/elys.pb.go b/x/oracle/types/elys.pb.go index abeef169..28c206ef 100644 --- a/x/oracle/types/elys.pb.go +++ b/x/oracle/types/elys.pb.go @@ -7,6 +7,7 @@ import ( cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" _ "github.com/cosmos/cosmos-proto" + types "github.com/cosmos/cosmos-sdk/types" proto "github.com/cosmos/gogoproto/proto" _ "github.com/gogo/protobuf/gogoproto" io "io" @@ -146,44 +147,178 @@ func (m *PriceFeeder) XXX_DiscardUnknown() { var xxx_messageInfo_PriceFeeder proto.InternalMessageInfo +type Pool struct { + PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` + PoolAssets []PoolAsset `protobuf:"bytes,2,rep,name=pool_assets,json=poolAssets,proto3" json:"pool_assets"` +} + +func (m *Pool) Reset() { *m = Pool{} } +func (m *Pool) String() string { return proto.CompactTextString(m) } +func (*Pool) ProtoMessage() {} +func (*Pool) Descriptor() ([]byte, []int) { + return fileDescriptor_9fad3fefa6783858, []int{3} +} +func (m *Pool) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Pool.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Pool) XXX_Merge(src proto.Message) { + xxx_messageInfo_Pool.Merge(m, src) +} +func (m *Pool) XXX_Size() int { + return m.Size() +} +func (m *Pool) XXX_DiscardUnknown() { + xxx_messageInfo_Pool.DiscardUnknown(m) +} + +var xxx_messageInfo_Pool proto.InternalMessageInfo + +type PoolAsset struct { + Token types.Coin `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` + Weight cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=weight,proto3,customtype=cosmossdk.io/math.Int" json:"weight"` + ExternalLiquidityRatio cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=external_liquidity_ratio,json=externalLiquidityRatio,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"external_liquidity_ratio"` +} + +func (m *PoolAsset) Reset() { *m = PoolAsset{} } +func (m *PoolAsset) String() string { return proto.CompactTextString(m) } +func (*PoolAsset) ProtoMessage() {} +func (*PoolAsset) Descriptor() ([]byte, []int) { + return fileDescriptor_9fad3fefa6783858, []int{4} +} +func (m *PoolAsset) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PoolAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PoolAsset.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PoolAsset) XXX_Merge(src proto.Message) { + xxx_messageInfo_PoolAsset.Merge(m, src) +} +func (m *PoolAsset) XXX_Size() int { + return m.Size() +} +func (m *PoolAsset) XXX_DiscardUnknown() { + xxx_messageInfo_PoolAsset.DiscardUnknown(m) +} + +var xxx_messageInfo_PoolAsset proto.InternalMessageInfo + +type AccountedPool struct { + PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` + TotalTokens []types.Coin `protobuf:"bytes,2,rep,name=total_tokens,json=totalTokens,proto3" json:"total_tokens"` + NonAmmPoolTokens []types.Coin `protobuf:"bytes,3,rep,name=non_amm_pool_tokens,json=nonAmmPoolTokens,proto3" json:"non_amm_pool_tokens"` +} + +func (m *AccountedPool) Reset() { *m = AccountedPool{} } +func (m *AccountedPool) String() string { return proto.CompactTextString(m) } +func (*AccountedPool) ProtoMessage() {} +func (*AccountedPool) Descriptor() ([]byte, []int) { + return fileDescriptor_9fad3fefa6783858, []int{5} +} +func (m *AccountedPool) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AccountedPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AccountedPool.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AccountedPool) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccountedPool.Merge(m, src) +} +func (m *AccountedPool) XXX_Size() int { + return m.Size() +} +func (m *AccountedPool) XXX_DiscardUnknown() { + xxx_messageInfo_AccountedPool.DiscardUnknown(m) +} + +var xxx_messageInfo_AccountedPool proto.InternalMessageInfo + func init() { proto.RegisterType((*AssetInfo)(nil), "ojo.oracle.v1.AssetInfo") proto.RegisterType((*Price)(nil), "ojo.oracle.v1.Price") proto.RegisterType((*PriceFeeder)(nil), "ojo.oracle.v1.PriceFeeder") + proto.RegisterType((*Pool)(nil), "ojo.oracle.v1.Pool") + proto.RegisterType((*PoolAsset)(nil), "ojo.oracle.v1.PoolAsset") + proto.RegisterType((*AccountedPool)(nil), "ojo.oracle.v1.AccountedPool") } func init() { proto.RegisterFile("ojo/oracle/v1/elys.proto", fileDescriptor_9fad3fefa6783858) } var fileDescriptor_9fad3fefa6783858 = []byte{ - // 441 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x92, 0x4d, 0x6e, 0xd3, 0x40, - 0x14, 0xc7, 0x6d, 0x68, 0x42, 0x32, 0x81, 0xcd, 0x28, 0x42, 0x26, 0x45, 0x4e, 0xc9, 0xaa, 0x2c, - 0x62, 0x13, 0x71, 0x82, 0x44, 0x15, 0x05, 0x89, 0x05, 0x32, 0xac, 0x10, 0x52, 0x34, 0x19, 0xbf, - 0x3a, 0x93, 0xd8, 0x7e, 0xd6, 0xcc, 0x34, 0x90, 0x5b, 0xb0, 0xe3, 0x22, 0x3d, 0x44, 0x96, 0x55, - 0x57, 0x08, 0xa4, 0x0a, 0x92, 0x8b, 0xa0, 0x99, 0xb1, 0xc3, 0xee, 0xfd, 0x3f, 0x3c, 0xfa, 0x3d, - 0xeb, 0x91, 0x00, 0x57, 0x18, 0xa3, 0x64, 0x3c, 0x87, 0x78, 0x33, 0x89, 0x21, 0xdf, 0xaa, 0xa8, - 0x92, 0xa8, 0x91, 0x3e, 0xc1, 0x15, 0x46, 0x2e, 0x89, 0x36, 0x93, 0x41, 0x3f, 0xc3, 0x0c, 0x6d, - 0x12, 0x9b, 0xc9, 0x95, 0x06, 0xcf, 0x38, 0xaa, 0x02, 0xd5, 0xdc, 0x05, 0x4e, 0xb8, 0x68, 0xf4, - 0xc3, 0x27, 0xdd, 0xa9, 0x52, 0xa0, 0xdf, 0x95, 0x57, 0x48, 0xfb, 0xa4, 0x95, 0x42, 0x89, 0x45, - 0xe0, 0x9f, 0xf9, 0xe7, 0xdd, 0xc4, 0x09, 0x1a, 0x90, 0x47, 0xa9, 0x50, 0x55, 0xce, 0xb6, 0xc1, - 0x03, 0xeb, 0x37, 0x92, 0x0e, 0x49, 0x6f, 0xc1, 0xca, 0x74, 0xae, 0x05, 0x5f, 0x83, 0x0c, 0x1e, - 0xda, 0x94, 0x18, 0xeb, 0x93, 0x75, 0x4c, 0xc1, 0xc0, 0x36, 0x85, 0x13, 0x57, 0x30, 0x56, 0x5d, - 0x30, 0x6f, 0x03, 0x17, 0x05, 0xcb, 0x83, 0xd6, 0x99, 0x7f, 0x7e, 0x92, 0x34, 0x72, 0xf4, 0xdb, - 0x27, 0xad, 0x0f, 0x52, 0x70, 0x30, 0x54, 0xcc, 0x20, 0x36, 0x54, 0x56, 0xd0, 0x4b, 0xd2, 0xaa, - 0x4c, 0xec, 0x98, 0x66, 0x93, 0xdd, 0xfd, 0xd0, 0xfb, 0x75, 0x3f, 0x3c, 0x75, 0xeb, 0xa9, 0x74, - 0x1d, 0x09, 0x8c, 0x0b, 0xa6, 0x97, 0xd1, 0x7b, 0xc8, 0x18, 0xdf, 0x5e, 0x00, 0xbf, 0xbb, 0x19, - 0x93, 0x7a, 0xfb, 0x0b, 0xe0, 0x89, 0xfb, 0x9e, 0x3e, 0x25, 0x6d, 0x85, 0xd7, 0x92, 0x43, 0xcd, - 0x5f, 0x2b, 0x3a, 0x20, 0x9d, 0x4a, 0xe2, 0x46, 0xa4, 0x47, 0xf0, 0xa3, 0xa6, 0xcf, 0x49, 0x57, - 0x8b, 0x02, 0x94, 0x66, 0x45, 0x55, 0x83, 0xff, 0x37, 0xe8, 0x0b, 0xf2, 0x78, 0x91, 0x23, 0x5f, - 0xcf, 0x97, 0x20, 0xb2, 0xa5, 0x0e, 0xda, 0xb6, 0xd0, 0xb3, 0xde, 0x5b, 0x6b, 0x8d, 0xbe, 0x90, - 0x9e, 0x5d, 0xee, 0x0d, 0x80, 0x79, 0xef, 0x15, 0x69, 0x5f, 0xd9, 0xc9, 0xed, 0x38, 0x0b, 0xee, - 0x6e, 0xc6, 0xfd, 0x1a, 0x75, 0x9a, 0xa6, 0x12, 0x94, 0xfa, 0xa8, 0xa5, 0x28, 0xb3, 0xa4, 0xee, - 0xd1, 0x53, 0xd2, 0x15, 0x6a, 0xce, 0xb8, 0x16, 0x1b, 0xf7, 0x0b, 0x3a, 0x49, 0x47, 0xa8, 0xa9, - 0xd5, 0xb3, 0xcb, 0xdd, 0xdf, 0xd0, 0xdb, 0xed, 0x43, 0xff, 0x76, 0x1f, 0xfa, 0x7f, 0xf6, 0xa1, - 0xff, 0xfd, 0x10, 0x7a, 0xb7, 0x87, 0xd0, 0xfb, 0x79, 0x08, 0xbd, 0xcf, 0x2f, 0x33, 0xa1, 0x97, - 0xd7, 0x8b, 0x88, 0x63, 0x11, 0xe3, 0x0a, 0xc7, 0x25, 0xe8, 0xaf, 0x28, 0xd7, 0x66, 0x8e, 0xbf, - 0x35, 0x67, 0xa6, 0xb7, 0x15, 0xa8, 0x45, 0xdb, 0x5e, 0xc9, 0xeb, 0x7f, 0x01, 0x00, 0x00, 0xff, - 0xff, 0x27, 0x75, 0xdb, 0xfa, 0x81, 0x02, 0x00, 0x00, + // 673 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xdf, 0x4e, 0x13, 0x4d, + 0x14, 0xef, 0x42, 0x5b, 0xe8, 0x14, 0x92, 0x2f, 0xf3, 0xf1, 0xf1, 0x2d, 0x60, 0x16, 0xec, 0x15, + 0xc6, 0xb0, 0x6b, 0x31, 0x5e, 0x9b, 0x16, 0x22, 0x36, 0x21, 0x86, 0xac, 0x5c, 0x19, 0x93, 0x75, + 0x3a, 0x3b, 0xb4, 0x43, 0x77, 0xe7, 0xac, 0x3b, 0xd3, 0x42, 0xdf, 0xc2, 0x3b, 0x5f, 0x84, 0x4b, + 0x1f, 0x80, 0x4b, 0xc2, 0x95, 0xd1, 0x84, 0x28, 0xbc, 0x82, 0x0f, 0x60, 0x66, 0x66, 0x17, 0x35, + 0x26, 0x6a, 0xbc, 0x9b, 0xdf, 0xf9, 0x9d, 0xf3, 0xdb, 0xdf, 0xf9, 0x93, 0x45, 0x2e, 0x1c, 0x43, + 0x00, 0x39, 0xa1, 0x09, 0x0b, 0x26, 0xed, 0x80, 0x25, 0x53, 0xe9, 0x67, 0x39, 0x28, 0xc0, 0x8b, + 0x70, 0x0c, 0xbe, 0x65, 0xfc, 0x49, 0x7b, 0x75, 0x69, 0x00, 0x03, 0x30, 0x4c, 0xa0, 0x5f, 0x36, + 0x69, 0x75, 0x85, 0x82, 0x4c, 0x41, 0x46, 0x96, 0xb0, 0xa0, 0xa0, 0x3c, 0x8b, 0x82, 0x3e, 0x91, + 0x5a, 0xba, 0xcf, 0x14, 0x69, 0x07, 0x14, 0xb8, 0xb0, 0x7c, 0xeb, 0xad, 0x83, 0x1a, 0x1d, 0x29, + 0x99, 0xea, 0x89, 0x23, 0xc0, 0x4b, 0xa8, 0x16, 0x33, 0x01, 0xa9, 0xeb, 0x6c, 0x38, 0x9b, 0x8d, + 0xd0, 0x02, 0xec, 0xa2, 0xb9, 0x98, 0xcb, 0x2c, 0x21, 0x53, 0x77, 0xc6, 0xc4,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0xd7, 0x23, 0xee, 0xa2, 0x05, 0x05, 0x8a, + 0x24, 0x91, 0xe9, 0xb5, 0x9c, 0xf1, 0x6f, 0x47, 0xd3, 0x34, 0x45, 0x87, 0xa6, 0x06, 0x3f, 0x43, + 0xff, 0x0a, 0x10, 0x11, 0x49, 0xd3, 0xc8, 0x7c, 0xa4, 0x90, 0x9a, 0xfd, 0x33, 0xa9, 0x7f, 0x04, + 0x88, 0x4e, 0x9a, 0x6a, 0x9b, 0x56, 0xaf, 0xbb, 0x77, 0xfe, 0xd9, 0xab, 0x9c, 0x5f, 0x7b, 0xce, + 0xc5, 0xb5, 0xe7, 0x7c, 0xba, 0xf6, 0x9c, 0x37, 0x37, 0x5e, 0xe5, 0xe2, 0xc6, 0xab, 0xbc, 0xbf, + 0xf1, 0x2a, 0x2f, 0xee, 0x0d, 0xb8, 0x1a, 0x8e, 0xfb, 0x3e, 0x85, 0x34, 0x80, 0x63, 0xd8, 0x12, + 0x4c, 0x9d, 0x40, 0x3e, 0xd2, 0xef, 0xe0, 0xb4, 0xfc, 0x3d, 0xa9, 0x69, 0xc6, 0x64, 0xbf, 0x6e, + 0xfe, 0x1e, 0x0f, 0xbf, 0x06, 0x00, 0x00, 0xff, 0xff, 0xf1, 0xd1, 0xe2, 0xc1, 0xb9, 0x04, 0x00, + 0x00, } func (m *AssetInfo) Marshal() (dAtA []byte, err error) { @@ -346,6 +481,157 @@ func (m *PriceFeeder) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *Pool) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Pool) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PoolAssets) > 0 { + for iNdEx := len(m.PoolAssets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PoolAssets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintElys(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.PoolId != 0 { + i = encodeVarintElys(dAtA, i, uint64(m.PoolId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *PoolAsset) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PoolAsset) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PoolAsset) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.ExternalLiquidityRatio.Size() + i -= size + if _, err := m.ExternalLiquidityRatio.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintElys(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.Weight.Size() + i -= size + if _, err := m.Weight.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintElys(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.Token.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintElys(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *AccountedPool) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AccountedPool) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AccountedPool) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NonAmmPoolTokens) > 0 { + for iNdEx := len(m.NonAmmPoolTokens) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NonAmmPoolTokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintElys(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.TotalTokens) > 0 { + for iNdEx := len(m.TotalTokens) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TotalTokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintElys(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.PoolId != 0 { + i = encodeVarintElys(dAtA, i, uint64(m.PoolId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func encodeVarintElys(dAtA []byte, offset int, v uint64) int { offset -= sovElys(v) base := offset @@ -430,6 +716,63 @@ func (m *PriceFeeder) Size() (n int) { return n } +func (m *Pool) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PoolId != 0 { + n += 1 + sovElys(uint64(m.PoolId)) + } + if len(m.PoolAssets) > 0 { + for _, e := range m.PoolAssets { + l = e.Size() + n += 1 + l + sovElys(uint64(l)) + } + } + return n +} + +func (m *PoolAsset) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Token.Size() + n += 1 + l + sovElys(uint64(l)) + l = m.Weight.Size() + n += 1 + l + sovElys(uint64(l)) + l = m.ExternalLiquidityRatio.Size() + n += 1 + l + sovElys(uint64(l)) + return n +} + +func (m *AccountedPool) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PoolId != 0 { + n += 1 + sovElys(uint64(m.PoolId)) + } + if len(m.TotalTokens) > 0 { + for _, e := range m.TotalTokens { + l = e.Size() + n += 1 + l + sovElys(uint64(l)) + } + } + if len(m.NonAmmPoolTokens) > 0 { + for _, e := range m.NonAmmPoolTokens { + l = e.Size() + n += 1 + l + sovElys(uint64(l)) + } + } + return n +} + func sovElys(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -953,6 +1296,397 @@ func (m *PriceFeeder) Unmarshal(dAtA []byte) error { } return nil } +func (m *Pool) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Pool: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Pool: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PoolId", wireType) + } + m.PoolId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PoolId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PoolAssets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthElys + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthElys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PoolAssets = append(m.PoolAssets, PoolAsset{}) + if err := m.PoolAssets[len(m.PoolAssets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipElys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthElys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PoolAsset) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PoolAsset: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PoolAsset: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthElys + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthElys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Token.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthElys + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthElys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Weight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalLiquidityRatio", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthElys + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthElys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ExternalLiquidityRatio.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipElys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthElys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AccountedPool) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AccountedPool: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AccountedPool: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PoolId", wireType) + } + m.PoolId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PoolId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalTokens", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthElys + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthElys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TotalTokens = append(m.TotalTokens, types.Coin{}) + if err := m.TotalTokens[len(m.TotalTokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NonAmmPoolTokens", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthElys + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthElys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NonAmmPoolTokens = append(m.NonAmmPoolTokens, types.Coin{}) + if err := m.NonAmmPoolTokens[len(m.NonAmmPoolTokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipElys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthElys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipElys(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/oracle/types/keys.go b/x/oracle/types/keys.go index ac34289d..58bae377 100644 --- a/x/oracle/types/keys.go +++ b/x/oracle/types/keys.go @@ -37,7 +37,9 @@ var ( KeyPrefixParamUpdatePlan = []byte{0x10} // prefix for each key to a param update plan KeyPrefixPrice = []byte{0x11} // prefix for each key to a price KeyPrefixPriceFeeder = []byte{0x12} // prefix for each key to a price feeder - KeyPrefixAssetInfo = []byte{0x13} // prefic for each key to a asset info + KeyPrefixAssetInfo = []byte{0x13} // prefix for each key to a asset info + KeyPrefixPool = []byte{0x14} // prefix for each key to a pool + KeyPrefixAccountedPool = []byte{0x15} // prefix for each key to an accounted pool ) // GetExchangeRateKey - stored by *denom* @@ -121,6 +123,16 @@ func KeyPriceFeeder(address string) (key []byte) { return util.ConcatBytes(0, KeyPrefixPriceFeeder, []byte(address)) } +// KeyPool - stored by *poolId* +func KeyPool(poolId uint64) (key []byte) { + return util.ConcatBytes(0, KeyPrefixPool, util.UintWithNullPrefix(poolId)) +} + +// KeyAccountedPool - stored by *poolId* +func KeyAccountedPool(poolId uint64) (key []byte) { + return util.ConcatBytes(0, KeyPrefixAccountedPool, util.UintWithNullPrefix(poolId)) +} + // ParseDenomAndBlockFromKey returns the denom and block contained in the *key* // that has a uint64 at the end with a null prefix (length 9). func ParseDenomAndBlockFromKey(key []byte, prefix []byte) (string, uint64) { From fbf273862777fe289682776aa247f05f290aa1f7 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Fri, 17 Jan 2025 18:33:17 -0500 Subject: [PATCH 16/77] pools in price feeder in endblocker --- go.mod | 2 +- go.sum | 2 ++ x/oracle/abci/endblocker.go | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 3ea7d5d8..d0a9afe8 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250115184516-62dd1f5d2498 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250117232754-30acbe5395e4 github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.0 diff --git a/go.sum b/go.sum index 46458ba7..80e60b1a 100644 --- a/go.sum +++ b/go.sum @@ -1301,6 +1301,8 @@ github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dl github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250115184516-62dd1f5d2498 h1:5oEqY7QelSVvHz/gl2H2/L5rXEDxcEe9+MobASBYUyA= github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250115184516-62dd1f5d2498/go.mod h1:tNVvSZ/AvxvDqVctmun0K81unu4hEOSa0821xdbFiQQ= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250117232754-30acbe5395e4 h1:Z4XnPHiRCtgL5XdS8zqTvnwDYrQ5O4/1AMPU7XVYF6g= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250117232754-30acbe5395e4/go.mod h1:QcTohaAoGK0kPOzCWa50KevNRRNqi2mVa66nGiWWqUI= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= diff --git a/x/oracle/abci/endblocker.go b/x/oracle/abci/endblocker.go index a56a99b8..dfd022e3 100644 --- a/x/oracle/abci/endblocker.go +++ b/x/oracle/abci/endblocker.go @@ -55,6 +55,21 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { // Update price feeder oracle with latest params. k.PriceFeeder.Oracle.ParamCache.UpdateParamCache(sdkCtx.BlockHeight(), k.GetParams(sdkCtx), nil) + ammPools := k.GetAllPool(sdkCtx) + ammPoolsMap := make(map[uint64]types.Pool) + for _, pool := range ammPools { + ammPoolsMap[pool.PoolId] = pool + } + + accountedPools := k.GetAllAccountedPool(sdkCtx) + accountedPoolsMap := make(map[uint64]types.AccountedPool) + for _, accountedPool := range accountedPools { + accountedPoolsMap[accountedPool.PoolId] = accountedPool + } + + k.PriceFeeder.Oracle.AmmPools = ammPoolsMap + k.PriceFeeder.Oracle.AccountedPools = accountedPoolsMap + // Execute price feeder oracle tick. if err := k.PriceFeeder.Oracle.TickClientless(ctx); err != nil { sdkCtx.Logger().Error("Error in Oracle Keeper price feeder clientless tick", "err", err) From 60e45937a8b529469fb6fa47d50d6f22984a5d11 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Sun, 19 Jan 2025 21:31:45 -0500 Subject: [PATCH 17/77] ValidateVoteExtensions commented out --- x/oracle/abci/proposal.go | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/x/oracle/abci/proposal.go b/x/oracle/abci/proposal.go index fff6e3e5..089f9972 100644 --- a/x/oracle/abci/proposal.go +++ b/x/oracle/abci/proposal.go @@ -7,7 +7,7 @@ import ( "cosmossdk.io/log" cometabci "github.com/cometbft/cometbft/abci/types" cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/baseapp" + //"github.com/cosmos/cosmos-sdk/baseapp" sdk "github.com/cosmos/cosmos-sdk/types" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" @@ -46,10 +46,10 @@ func (h *ProposalHandler) PrepareProposalHandler() sdk.PrepareProposalHandler { return nil, err } - err := baseapp.ValidateVoteExtensions(ctx, h.stakingKeeper, req.Height, ctx.ChainID(), req.LocalLastCommit) - if err != nil { - return &cometabci.ResponsePrepareProposal{Txs: make([][]byte, 0)}, err - } + // err := baseapp.ValidateVoteExtensions(ctx, h.stakingKeeper, req.Height, ctx.ChainID(), req.LocalLastCommit) + // if err != nil { + // return &cometabci.ResponsePrepareProposal{Txs: make([][]byte, 0)}, err + // } if req.Txs == nil { err := fmt.Errorf("prepare proposal received a request with nil Txs") @@ -156,16 +156,16 @@ func (h *ProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHandler { return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, err } - err := baseapp.ValidateVoteExtensions( - ctx, - h.stakingKeeper, - req.Height, - ctx.ChainID(), - extendedCommitInfo, - ) - if err != nil { - return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, err - } + // err := baseapp.ValidateVoteExtensions( + // ctx, + // h.stakingKeeper, + // req.Height, + // ctx.ChainID(), + // extendedCommitInfo, + // ) + // if err != nil { + // return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, err + // } // Verify the proposer's oracle exchange rate votes by computing the same // calculation and comparing the results. From 82221bf8ac83c6ca9ba646924e3a2ceb8d3a14b8 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Sun, 19 Jan 2025 21:58:01 -0500 Subject: [PATCH 18/77] uncomment ValidateVoteExtensions --- x/oracle/abci/proposal.go | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/x/oracle/abci/proposal.go b/x/oracle/abci/proposal.go index 089f9972..fff6e3e5 100644 --- a/x/oracle/abci/proposal.go +++ b/x/oracle/abci/proposal.go @@ -7,7 +7,7 @@ import ( "cosmossdk.io/log" cometabci "github.com/cometbft/cometbft/abci/types" cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" - //"github.com/cosmos/cosmos-sdk/baseapp" + "github.com/cosmos/cosmos-sdk/baseapp" sdk "github.com/cosmos/cosmos-sdk/types" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" @@ -46,10 +46,10 @@ func (h *ProposalHandler) PrepareProposalHandler() sdk.PrepareProposalHandler { return nil, err } - // err := baseapp.ValidateVoteExtensions(ctx, h.stakingKeeper, req.Height, ctx.ChainID(), req.LocalLastCommit) - // if err != nil { - // return &cometabci.ResponsePrepareProposal{Txs: make([][]byte, 0)}, err - // } + err := baseapp.ValidateVoteExtensions(ctx, h.stakingKeeper, req.Height, ctx.ChainID(), req.LocalLastCommit) + if err != nil { + return &cometabci.ResponsePrepareProposal{Txs: make([][]byte, 0)}, err + } if req.Txs == nil { err := fmt.Errorf("prepare proposal received a request with nil Txs") @@ -156,16 +156,16 @@ func (h *ProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHandler { return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, err } - // err := baseapp.ValidateVoteExtensions( - // ctx, - // h.stakingKeeper, - // req.Height, - // ctx.ChainID(), - // extendedCommitInfo, - // ) - // if err != nil { - // return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, err - // } + err := baseapp.ValidateVoteExtensions( + ctx, + h.stakingKeeper, + req.Height, + ctx.ChainID(), + extendedCommitInfo, + ) + if err != nil { + return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, err + } // Verify the proposer's oracle exchange rate votes by computing the same // calculation and comparing the results. From e7735c72009bcada695788d238900830eb0f761e Mon Sep 17 00:00:00 2001 From: rbajollari Date: Mon, 20 Jan 2025 10:21:55 -0500 Subject: [PATCH 19/77] unit tests --- x/oracle/types/currency_pair_providers_test.go | 4 ++-- x/oracle/types/msgs_test.go | 2 +- x/oracle/types/params_test.go | 13 ++++++++----- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/x/oracle/types/currency_pair_providers_test.go b/x/oracle/types/currency_pair_providers_test.go index ae5c7fe4..9c612d65 100644 --- a/x/oracle/types/currency_pair_providers_test.go +++ b/x/oracle/types/currency_pair_providers_test.go @@ -23,14 +23,14 @@ func TestCurrencyPairProvidersString(t *testing.T) { require.Equal( t, cpp.String(), - "base_denom: RETH\nquote_denom: WETH\npair_address:\n - address: address\n address_provider: eth-uniswap\nproviders:\n - eth-uniswap\n", + "base_denom: RETH\nquote_denom: WETH\nbase_proxy_denom: \"\"\nquote_proxy_denom: \"\"\npool_id: 0\nextern_liquidity_provider: \"\"\ncrypto_compare_exchange: \"\"\npair_address:\n - address: address\n address_provider: eth-uniswap\nproviders:\n - eth-uniswap\n", ) cppl := CurrencyPairProvidersList{cpp} require.Equal( t, cppl.String(), - "base_denom: RETH\nquote_denom: WETH\npair_address:\n - address: address\n address_provider: eth-uniswap\nproviders:\n - eth-uniswap", + "base_denom: RETH\nquote_denom: WETH\nbase_proxy_denom: \"\"\nquote_proxy_denom: \"\"\npool_id: 0\nextern_liquidity_provider: \"\"\ncrypto_compare_exchange: \"\"\npair_address:\n - address: address\n address_provider: eth-uniswap\nproviders:\n - eth-uniswap", ) } diff --git a/x/oracle/types/msgs_test.go b/x/oracle/types/msgs_test.go index f247ea79..db1438b6 100644 --- a/x/oracle/types/msgs_test.go +++ b/x/oracle/types/msgs_test.go @@ -90,7 +90,7 @@ func TestMsgAggregateExchangeRateVote(t *testing.T) { validSalt := "0cf33fb528b388660c3a42c3f3250e983395290b75fef255050fb5bc48a6025f" saltWithColon := "0cf33fb528b388660c3a42c3f3250e983395290b75fef255050fb5bc48a6025:" msgInvalidSalt := "invalid salt length; must be 64" - msgInvalidOverflowValue := "out of range; bitLen:" + msgInvalidOverflowValue := "overflow: invalid exchange rate" msgInvalidHexString := "salt must be a valid hex string: invalid salt format" msgInvalidUnknownRequest := "must provide at least one oracle exchange rate: invalid request" msgInvalidFeederAddr := "invalid feeder address (empty address string is not allowed): invalid address" diff --git a/x/oracle/types/params_test.go b/x/oracle/types/params_test.go index a05f0a19..fc2f2664 100644 --- a/x/oracle/types/params_test.go +++ b/x/oracle/types/params_test.go @@ -304,10 +304,13 @@ func TestAddDefaultRB(t *testing.T) { p := DefaultRewardBands() p.AddDefault("foo") require.Equal(t, p.String(), - "symbol_denom: OJO\nreward_band: \"0.020000000000000000\"\n\n"+ - "symbol_denom: ATOM\nreward_band: \"0.020000000000000000\"\n\n"+ - "symbol_denom: USDT\nreward_band: \"0.020000000000000000\"\n\n"+ - "symbol_denom: BTC\nreward_band: \"0.020000000000000000\"\n\n"+ - "symbol_denom: ETH\nreward_band: \"0.020000000000000000\"\n\n"+ + "symbol_denom: OJO\nreward_band: \"0.020000000000000000\"\n\n" + + "symbol_denom: ATOM\nreward_band: \"0.020000000000000000\"\n\n" + + "symbol_denom: USDT\nreward_band: \"0.020000000000000000\"\n\n" + + "symbol_denom: BTC\nreward_band: \"0.020000000000000000\"\n\n" + + "symbol_denom: ETH\nreward_band: \"0.020000000000000000\"\n\n" + + "symbol_denom: AKT\nreward_band: \"0.020000000000000000\"\n\n" + + "symbol_denom: TIA\nreward_band: \"0.020000000000000000\"\n\n" + + "symbol_denom: AXL\nreward_band: \"0.020000000000000000\"\n\n" + "symbol_denom: foo\nreward_band: \"0.020000000000000000\"") } From e83aed7833aee3745de6eaaec0701126f7b849eb Mon Sep 17 00:00:00 2001 From: rbajollari Date: Mon, 20 Jan 2025 12:06:28 -0500 Subject: [PATCH 20/77] lint issues --- util/int_convert.go | 7 ++++ x/oracle/abci/endblocker.go | 2 +- x/oracle/keeper/elys.go | 19 +++++------ x/oracle/keeper/grpc_query.go | 5 ++- .../keeper/msg_server_create_asset_info.go | 10 ++++-- .../keeper/msg_server_feed_multiple_prices.go | 11 +++++-- x/oracle/keeper/msg_server_price.go | 5 +-- x/oracle/keeper/msg_server_price_feeder.go | 32 +++++++++++++++---- x/oracle/types/params_test.go | 16 +++++----- 9 files changed, 75 insertions(+), 32 deletions(-) diff --git a/util/int_convert.go b/util/int_convert.go index d822c28b..65045b0e 100644 --- a/util/int_convert.go +++ b/util/int_convert.go @@ -43,3 +43,10 @@ func SafeUint64ToInt64(i uint64) int64 { } return int64(i) } + +func SafeUint64ToInt(i uint64) int { + if i > math.MaxInt { + return math.MaxInt + } + return int(i) +} diff --git a/x/oracle/abci/endblocker.go b/x/oracle/abci/endblocker.go index dfd022e3..c6bbbf0a 100644 --- a/x/oracle/abci/endblocker.go +++ b/x/oracle/abci/endblocker.go @@ -95,7 +95,7 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { k.RemovePrice(sdkCtx, price.Asset, price.Source, price.Timestamp) } - if price.BlockHeight+params.LifeTimeInBlocks < uint64(sdkCtx.BlockHeight()) { + if price.BlockHeight+params.LifeTimeInBlocks < util.SafeInt64ToUint64(sdkCtx.BlockHeight()) { k.RemovePrice(sdkCtx, price.Asset, price.Source, price.Timestamp) } } diff --git a/x/oracle/keeper/elys.go b/x/oracle/keeper/elys.go index 76ba3bfd..96ba94b8 100644 --- a/x/oracle/keeper/elys.go +++ b/x/oracle/keeper/elys.go @@ -5,6 +5,7 @@ import ( storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/ojo-network/ojo/util" "github.com/ojo-network/ojo/x/oracle/types" ) @@ -84,7 +85,7 @@ func (k Keeper) GetAssetPrice(ctx sdk.Context, asset string) (types.Price, bool) func Pow10(decimal uint64) (value math.LegacyDec) { value = math.LegacyNewDec(1) - for i := 0; i < int(decimal); i++ { + for i := 0; i < util.SafeUint64ToInt(decimal); i++ { value = value.Mul(math.LegacyNewDec(10)) } return @@ -181,9 +182,9 @@ func (k Keeper) SetPool(ctx sdk.Context, pool types.Pool) { } // GetPool returns a pool from its index -func (k Keeper) GetPool(ctx sdk.Context, poolId uint64) (val types.Pool, found bool) { +func (k Keeper) GetPool(ctx sdk.Context, poolID uint64) (val types.Pool, found bool) { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - key := types.KeyPool(poolId) + key := types.KeyPool(poolID) bz := store.Get(key) if bz == nil { @@ -195,9 +196,9 @@ func (k Keeper) GetPool(ctx sdk.Context, poolId uint64) (val types.Pool, found b } // RemovePool removes a pool from the store -func (k Keeper) RemovePool(ctx sdk.Context, poolId uint64) { +func (k Keeper) RemovePool(ctx sdk.Context, poolID uint64) { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - key := types.KeyPool(poolId) + key := types.KeyPool(poolID) store.Delete(key) } @@ -226,9 +227,9 @@ func (k Keeper) SetAccountedPool(ctx sdk.Context, accountedPool types.AccountedP } // GetAccountedPool returns a accounted pool from its index -func (k Keeper) GetAccountedPool(ctx sdk.Context, poolId uint64) (val types.AccountedPool, found bool) { +func (k Keeper) GetAccountedPool(ctx sdk.Context, poolID uint64) (val types.AccountedPool, found bool) { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - key := types.KeyAccountedPool(poolId) + key := types.KeyAccountedPool(poolID) bz := store.Get(key) if bz == nil { @@ -240,9 +241,9 @@ func (k Keeper) GetAccountedPool(ctx sdk.Context, poolId uint64) (val types.Acco } // RemoveAccountedPool removes a accounted pool from the store -func (k Keeper) RemoveAccountedPool(ctx sdk.Context, poolId uint64) { +func (k Keeper) RemoveAccountedPool(ctx sdk.Context, poolID uint64) { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - key := types.KeyAccountedPool(poolId) + key := types.KeyAccountedPool(poolID) store.Delete(key) } diff --git a/x/oracle/keeper/grpc_query.go b/x/oracle/keeper/grpc_query.go index ea5f5377..bc6127ff 100644 --- a/x/oracle/keeper/grpc_query.go +++ b/x/oracle/keeper/grpc_query.go @@ -329,7 +329,10 @@ func (q querier) ValidatorRewardSet( }, nil } -func (q querier) PriceAll(goCtx context.Context, req *types.QueryAllPriceRequest) (*types.QueryAllPriceResponse, error) { +func (q querier) PriceAll( + goCtx context.Context, + req *types.QueryAllPriceRequest, +) (*types.QueryAllPriceResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } diff --git a/x/oracle/keeper/msg_server_create_asset_info.go b/x/oracle/keeper/msg_server_create_asset_info.go index b6ac837b..4ce6cf00 100644 --- a/x/oracle/keeper/msg_server_create_asset_info.go +++ b/x/oracle/keeper/msg_server_create_asset_info.go @@ -8,7 +8,10 @@ import ( "github.com/ojo-network/ojo/x/oracle/types" ) -func (ms msgServer) CreateAssetInfo(goCtx context.Context, msg *types.MsgCreateAssetInfo) (*types.MsgCreateAssetInfoResponse, error) { +func (ms msgServer) CreateAssetInfo( + goCtx context.Context, + msg *types.MsgCreateAssetInfo, +) (*types.MsgCreateAssetInfoResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) _, found := ms.GetAssetInfo(ctx, msg.Denom) @@ -28,7 +31,10 @@ func (ms msgServer) CreateAssetInfo(goCtx context.Context, msg *types.MsgCreateA return &types.MsgCreateAssetInfoResponse{}, nil } -func (ms msgServer) RemoveAssetInfo(goCtx context.Context, msg *types.MsgRemoveAssetInfo) (*types.MsgRemoveAssetInfoResponse, error) { +func (ms msgServer) RemoveAssetInfo( + goCtx context.Context, + msg *types.MsgRemoveAssetInfo, +) (*types.MsgRemoveAssetInfoResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) if ms.authority != msg.Authority { return nil, errors.Wrapf(types.ErrNoGovAuthority, "invalid authority; expected %s, got %s", ms.authority, msg.Authority) diff --git a/x/oracle/keeper/msg_server_feed_multiple_prices.go b/x/oracle/keeper/msg_server_feed_multiple_prices.go index fe0db2af..f3782971 100644 --- a/x/oracle/keeper/msg_server_feed_multiple_prices.go +++ b/x/oracle/keeper/msg_server_feed_multiple_prices.go @@ -2,11 +2,16 @@ package keeper import ( "context" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/ojo-network/ojo/util" "github.com/ojo-network/ojo/x/oracle/types" ) -func (ms msgServer) FeedMultiplePrices(goCtx context.Context, msg *types.MsgFeedMultiplePrices) (*types.MsgFeedMultiplePricesResponse, error) { +func (ms msgServer) FeedMultiplePrices( + goCtx context.Context, + msg *types.MsgFeedMultiplePrices, +) (*types.MsgFeedMultiplePricesResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) creator := sdk.MustAccAddressFromBech32(msg.Creator) @@ -25,8 +30,8 @@ func (ms msgServer) FeedMultiplePrices(goCtx context.Context, msg *types.MsgFeed Price: feedPrice.Price, Source: feedPrice.Source, Provider: msg.Creator, - Timestamp: uint64(ctx.BlockTime().Unix()), - BlockHeight: uint64(ctx.BlockHeight()), + Timestamp: util.SafeInt64ToUint64(ctx.BlockTime().Unix()), + BlockHeight: util.SafeInt64ToUint64(ctx.BlockHeight()), } ms.SetPrice(ctx, price) } diff --git a/x/oracle/keeper/msg_server_price.go b/x/oracle/keeper/msg_server_price.go index 7844b446..2dee3808 100644 --- a/x/oracle/keeper/msg_server_price.go +++ b/x/oracle/keeper/msg_server_price.go @@ -4,6 +4,7 @@ import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/ojo-network/ojo/util" "github.com/ojo-network/ojo/x/oracle/types" ) @@ -25,8 +26,8 @@ func (ms msgServer) FeedPrice(goCtx context.Context, msg *types.MsgFeedPrice) (* Price: msg.FeedPrice.Price, Source: msg.FeedPrice.Source, Provider: msg.Provider, - Timestamp: uint64(ctx.BlockTime().Unix()), - BlockHeight: uint64(ctx.BlockHeight()), + Timestamp: util.SafeInt64ToUint64(ctx.BlockTime().Unix()), + BlockHeight: util.SafeInt64ToUint64(ctx.BlockHeight()), } ms.SetPrice(ctx, price) diff --git a/x/oracle/keeper/msg_server_price_feeder.go b/x/oracle/keeper/msg_server_price_feeder.go index f63b1c36..4e9f5c70 100644 --- a/x/oracle/keeper/msg_server_price_feeder.go +++ b/x/oracle/keeper/msg_server_price_feeder.go @@ -8,7 +8,10 @@ import ( "github.com/ojo-network/ojo/x/oracle/types" ) -func (ms msgServer) SetPriceFeeder(goCtx context.Context, msg *types.MsgSetPriceFeeder) (*types.MsgSetPriceFeederResponse, error) { +func (ms msgServer) SetPriceFeeder( + goCtx context.Context, + msg *types.MsgSetPriceFeeder, +) (*types.MsgSetPriceFeederResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) feederAccount := sdk.MustAccAddressFromBech32(msg.Feeder) _, found := ms.Keeper.GetPriceFeeder(ctx, feederAccount) @@ -22,7 +25,10 @@ func (ms msgServer) SetPriceFeeder(goCtx context.Context, msg *types.MsgSetPrice return &types.MsgSetPriceFeederResponse{}, nil } -func (ms msgServer) DeletePriceFeeder(goCtx context.Context, msg *types.MsgDeletePriceFeeder) (*types.MsgDeletePriceFeederResponse, error) { +func (ms msgServer) DeletePriceFeeder( + goCtx context.Context, + msg *types.MsgDeletePriceFeeder, +) (*types.MsgDeletePriceFeederResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) feederAccount := sdk.MustAccAddressFromBech32(msg.Feeder) _, found := ms.Keeper.GetPriceFeeder(ctx, feederAccount) @@ -33,10 +39,17 @@ func (ms msgServer) DeletePriceFeeder(goCtx context.Context, msg *types.MsgDelet return &types.MsgDeletePriceFeederResponse{}, nil } -func (ms msgServer) AddPriceFeeders(goCtx context.Context, msg *types.MsgAddPriceFeeders) (*types.MsgAddPriceFeedersResponse, error) { +func (ms msgServer) AddPriceFeeders( + goCtx context.Context, + msg *types.MsgAddPriceFeeders, +) (*types.MsgAddPriceFeedersResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) if ms.authority != msg.Authority { - return nil, errors.Wrapf(types.ErrNoGovAuthority, "invalid authority; expected %s, got %s", ms.authority, msg.Authority) + return nil, errors.Wrapf( + types.ErrNoGovAuthority, + "invalid authority; expected %s, got %s", + ms.authority, msg.Authority, + ) } for _, feeder := range msg.Feeders { @@ -48,10 +61,17 @@ func (ms msgServer) AddPriceFeeders(goCtx context.Context, msg *types.MsgAddPric return &types.MsgAddPriceFeedersResponse{}, nil } -func (ms msgServer) RemovePriceFeeders(goCtx context.Context, msg *types.MsgRemovePriceFeeders) (*types.MsgRemovePriceFeedersResponse, error) { +func (ms msgServer) RemovePriceFeeders( + goCtx context.Context, + msg *types.MsgRemovePriceFeeders, +) (*types.MsgRemovePriceFeedersResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) if ms.authority != msg.Authority { - return nil, errors.Wrapf(types.ErrNoGovAuthority, "invalid authority; expected %s, got %s", ms.authority, msg.Authority) + return nil, errors.Wrapf( + types.ErrNoGovAuthority, + "invalid authority; expected %s, got %s", + ms.authority, msg.Authority, + ) } for _, feeder := range msg.Feeders { diff --git a/x/oracle/types/params_test.go b/x/oracle/types/params_test.go index fc2f2664..49de046d 100644 --- a/x/oracle/types/params_test.go +++ b/x/oracle/types/params_test.go @@ -304,13 +304,13 @@ func TestAddDefaultRB(t *testing.T) { p := DefaultRewardBands() p.AddDefault("foo") require.Equal(t, p.String(), - "symbol_denom: OJO\nreward_band: \"0.020000000000000000\"\n\n" + - "symbol_denom: ATOM\nreward_band: \"0.020000000000000000\"\n\n" + - "symbol_denom: USDT\nreward_band: \"0.020000000000000000\"\n\n" + - "symbol_denom: BTC\nreward_band: \"0.020000000000000000\"\n\n" + - "symbol_denom: ETH\nreward_band: \"0.020000000000000000\"\n\n" + - "symbol_denom: AKT\nreward_band: \"0.020000000000000000\"\n\n" + - "symbol_denom: TIA\nreward_band: \"0.020000000000000000\"\n\n" + - "symbol_denom: AXL\nreward_band: \"0.020000000000000000\"\n\n" + + "symbol_denom: OJO\nreward_band: \"0.020000000000000000\"\n\n"+ + "symbol_denom: ATOM\nreward_band: \"0.020000000000000000\"\n\n"+ + "symbol_denom: USDT\nreward_band: \"0.020000000000000000\"\n\n"+ + "symbol_denom: BTC\nreward_band: \"0.020000000000000000\"\n\n"+ + "symbol_denom: ETH\nreward_band: \"0.020000000000000000\"\n\n"+ + "symbol_denom: AKT\nreward_band: \"0.020000000000000000\"\n\n"+ + "symbol_denom: TIA\nreward_band: \"0.020000000000000000\"\n\n"+ + "symbol_denom: AXL\nreward_band: \"0.020000000000000000\"\n\n"+ "symbol_denom: foo\nreward_band: \"0.020000000000000000\"") } From f5cfe5f42977c00ac99f7b8a86c5476a9b4a41ce Mon Sep 17 00:00:00 2001 From: rbajollari Date: Mon, 20 Jan 2025 12:27:50 -0500 Subject: [PATCH 21/77] more lint --- x/oracle/keeper/msg_server_create_asset_info.go | 6 +++++- x/oracle/types/keys.go | 12 ++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/x/oracle/keeper/msg_server_create_asset_info.go b/x/oracle/keeper/msg_server_create_asset_info.go index 4ce6cf00..40b1179c 100644 --- a/x/oracle/keeper/msg_server_create_asset_info.go +++ b/x/oracle/keeper/msg_server_create_asset_info.go @@ -37,7 +37,11 @@ func (ms msgServer) RemoveAssetInfo( ) (*types.MsgRemoveAssetInfoResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) if ms.authority != msg.Authority { - return nil, errors.Wrapf(types.ErrNoGovAuthority, "invalid authority; expected %s, got %s", ms.authority, msg.Authority) + return nil, errors.Wrapf( + types.ErrNoGovAuthority, + "invalid authority; expected %s, got %s", + ms.authority, msg.Authority, + ) } ms.Keeper.RemoveAssetInfo(ctx, msg.Denom) diff --git a/x/oracle/types/keys.go b/x/oracle/types/keys.go index 58bae377..a3bcae60 100644 --- a/x/oracle/types/keys.go +++ b/x/oracle/types/keys.go @@ -123,14 +123,14 @@ func KeyPriceFeeder(address string) (key []byte) { return util.ConcatBytes(0, KeyPrefixPriceFeeder, []byte(address)) } -// KeyPool - stored by *poolId* -func KeyPool(poolId uint64) (key []byte) { - return util.ConcatBytes(0, KeyPrefixPool, util.UintWithNullPrefix(poolId)) +// KeyPool - stored by *poolID* +func KeyPool(poolID uint64) (key []byte) { + return util.ConcatBytes(0, KeyPrefixPool, util.UintWithNullPrefix(poolID)) } -// KeyAccountedPool - stored by *poolId* -func KeyAccountedPool(poolId uint64) (key []byte) { - return util.ConcatBytes(0, KeyPrefixAccountedPool, util.UintWithNullPrefix(poolId)) +// KeyAccountedPool - stored by *poolID* +func KeyAccountedPool(poolID uint64) (key []byte) { + return util.ConcatBytes(0, KeyPrefixAccountedPool, util.UintWithNullPrefix(poolID)) } // ParseDenomAndBlockFromKey returns the denom and block contained in the *key* From 5f969905c45a6b5e45212a1fce1c770169601435 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Mon, 20 Jan 2025 20:15:58 -0500 Subject: [PATCH 22/77] remove staking keeper from proposal handler --- x/oracle/abci/proposal.go | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/x/oracle/abci/proposal.go b/x/oracle/abci/proposal.go index fff6e3e5..735faa7b 100644 --- a/x/oracle/abci/proposal.go +++ b/x/oracle/abci/proposal.go @@ -9,7 +9,6 @@ import ( cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/cosmos-sdk/baseapp" sdk "github.com/cosmos/cosmos-sdk/types" - stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" oraclekeeper "github.com/ojo-network/ojo/x/oracle/keeper" oracletypes "github.com/ojo-network/ojo/x/oracle/types" @@ -18,18 +17,18 @@ import ( type ProposalHandler struct { logger log.Logger oracleKeeper oraclekeeper.Keeper - stakingKeeper *stakingkeeper.Keeper + valStore baseapp.ValidatorStore } func NewProposalHandler( logger log.Logger, oracleKeeper oraclekeeper.Keeper, - stakingKeeper *stakingkeeper.Keeper, + valStore baseapp.ValidatorStore, ) *ProposalHandler { return &ProposalHandler{ logger: logger, oracleKeeper: oracleKeeper, - stakingKeeper: stakingKeeper, + valStore: valStore, } } @@ -46,7 +45,7 @@ func (h *ProposalHandler) PrepareProposalHandler() sdk.PrepareProposalHandler { return nil, err } - err := baseapp.ValidateVoteExtensions(ctx, h.stakingKeeper, req.Height, ctx.ChainID(), req.LocalLastCommit) + err := baseapp.ValidateVoteExtensions(ctx, h.valStore, req.Height, ctx.ChainID(), req.LocalLastCommit) if err != nil { return &cometabci.ResponsePrepareProposal{Txs: make([][]byte, 0)}, err } @@ -158,7 +157,7 @@ func (h *ProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHandler { err := baseapp.ValidateVoteExtensions( ctx, - h.stakingKeeper, + h.valStore, req.Height, ctx.ChainID(), extendedCommitInfo, @@ -223,15 +222,7 @@ func (h *ProposalHandler) generateExchangeRateVotes( ) return nil, err } - val, err := h.stakingKeeper.GetValidatorByConsAddr(ctx, valConsAddr) - if err != nil { - h.logger.Error( - "failed to get consensus validator from staking keeper", - "err", err, - ) - return nil, err - } - valAddr, err := sdk.ValAddressFromBech32(val.OperatorAddress) + valAddr, err := sdk.ValAddressFromBech32(valConsAddr.String()) if err != nil { return nil, err } @@ -294,15 +285,7 @@ func (h *ProposalHandler) generateExternalLiquidity( ) return nil, err } - val, err := h.stakingKeeper.GetValidatorByConsAddr(ctx, valConsAddr) - if err != nil { - h.logger.Error( - "failed to get consensus validator from staking keeper", - "err", err, - ) - return nil, err - } - _, err = sdk.ValAddressFromBech32(val.OperatorAddress) + _, err := sdk.ValAddressFromBech32(valConsAddr.String()) if err != nil { return nil, err } From fb3c8ddf1d2e6010cc4646bf4698b835c86b5a21 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Mon, 20 Jan 2025 20:58:53 -0500 Subject: [PATCH 23/77] fromhex --- x/oracle/abci/proposal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/oracle/abci/proposal.go b/x/oracle/abci/proposal.go index 735faa7b..0b4e8077 100644 --- a/x/oracle/abci/proposal.go +++ b/x/oracle/abci/proposal.go @@ -222,7 +222,7 @@ func (h *ProposalHandler) generateExchangeRateVotes( ) return nil, err } - valAddr, err := sdk.ValAddressFromBech32(valConsAddr.String()) + valAddr, err := sdk.ValAddressFromHex(valConsAddr.String()) if err != nil { return nil, err } @@ -285,7 +285,7 @@ func (h *ProposalHandler) generateExternalLiquidity( ) return nil, err } - _, err := sdk.ValAddressFromBech32(valConsAddr.String()) + _, err := sdk.ValAddressFromHex(valConsAddr.String()) if err != nil { return nil, err } From 7b99a861f7055ad92eebe0eed410ea823947ffbd Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 21 Jan 2025 10:22:47 -0500 Subject: [PATCH 24/77] valaddr to string --- x/oracle/abci/proposal.go | 22 +++++++--------------- x/oracle/keeper/grpc_query_test.go | 2 +- x/oracle/keeper/msg_server.go | 2 +- x/oracle/types/vote.go | 4 ++-- x/oracle/types/vote_test.go | 2 +- 5 files changed, 12 insertions(+), 20 deletions(-) diff --git a/x/oracle/abci/proposal.go b/x/oracle/abci/proposal.go index 0b4e8077..e2888e50 100644 --- a/x/oracle/abci/proposal.go +++ b/x/oracle/abci/proposal.go @@ -15,9 +15,9 @@ import ( ) type ProposalHandler struct { - logger log.Logger - oracleKeeper oraclekeeper.Keeper - valStore baseapp.ValidatorStore + logger log.Logger + oracleKeeper oraclekeeper.Keeper + valStore baseapp.ValidatorStore } func NewProposalHandler( @@ -26,9 +26,9 @@ func NewProposalHandler( valStore baseapp.ValidatorStore, ) *ProposalHandler { return &ProposalHandler{ - logger: logger, - oracleKeeper: oracleKeeper, - valStore: valStore, + logger: logger, + oracleKeeper: oracleKeeper, + valStore: valStore, } } @@ -222,12 +222,8 @@ func (h *ProposalHandler) generateExchangeRateVotes( ) return nil, err } - valAddr, err := sdk.ValAddressFromHex(valConsAddr.String()) - if err != nil { - return nil, err - } - exchangeRateVote := oracletypes.NewAggregateExchangeRateVote(voteExt.ExchangeRates, valAddr) + exchangeRateVote := oracletypes.NewAggregateExchangeRateVote(voteExt.ExchangeRates, valConsAddr.String()) votes = append(votes, exchangeRateVote) } @@ -285,10 +281,6 @@ func (h *ProposalHandler) generateExternalLiquidity( ) return nil, err } - _, err := sdk.ValAddressFromHex(valConsAddr.String()) - if err != nil { - return nil, err - } externalLiquidityList = append(externalLiquidityList, voteExt.ExternalLiquidity...) } diff --git a/x/oracle/keeper/grpc_query_test.go b/x/oracle/keeper/grpc_query_test.go index bdd7c1d7..d93832c4 100644 --- a/x/oracle/keeper/grpc_query_test.go +++ b/x/oracle/keeper/grpc_query_test.go @@ -196,7 +196,7 @@ func (s *IntegrationTestSuite) TestQuerier_AggregatePrevotesAppendVotes() { func (s *IntegrationTestSuite) TestQuerier_AggregateVotesAppendVotes() { s.app.OracleKeeper.SetAggregateExchangeRateVote(s.ctx, valAddr, types.NewAggregateExchangeRateVote( types.DefaultGenesisState().ExchangeRates, - valAddr, + valAddr.String(), )) _, err := s.queryClient.AggregateVotes(s.ctx.Context(), &types.QueryAggregateVotes{}) diff --git a/x/oracle/keeper/msg_server.go b/x/oracle/keeper/msg_server.go index 88124269..1a19ed88 100644 --- a/x/oracle/keeper/msg_server.go +++ b/x/oracle/keeper/msg_server.go @@ -112,7 +112,7 @@ func (ms msgServer) AggregateExchangeRateVote( } // Move aggregate prevote to aggregate vote with given exchange rates - ms.SetAggregateExchangeRateVote(ctx, valAddr, types.NewAggregateExchangeRateVote(filteredDecCoins, valAddr)) + ms.SetAggregateExchangeRateVote(ctx, valAddr, types.NewAggregateExchangeRateVote(filteredDecCoins, valAddr.String())) ms.DeleteAggregateExchangeRatePrevote(ctx, valAddr) return &types.MsgAggregateExchangeRateVoteResponse{}, nil diff --git a/x/oracle/types/vote.go b/x/oracle/types/vote.go index 505342e7..390392bb 100644 --- a/x/oracle/types/vote.go +++ b/x/oracle/types/vote.go @@ -29,11 +29,11 @@ func (v AggregateExchangeRatePrevote) String() string { func NewAggregateExchangeRateVote( decCoins sdk.DecCoins, - voter sdk.ValAddress, + voter string, ) AggregateExchangeRateVote { return AggregateExchangeRateVote{ ExchangeRates: decCoins, - Voter: voter.String(), + Voter: voter, } } diff --git a/x/oracle/types/vote_test.go b/x/oracle/types/vote_test.go index 67e31006..6bc7b181 100644 --- a/x/oracle/types/vote_test.go +++ b/x/oracle/types/vote_test.go @@ -33,7 +33,7 @@ func TestAggregateExchangeRateVoteString(t *testing.T) { sdk.DecCoins{ sdk.NewDecCoinFromDec(types.OjoDenom, math.LegacyOneDec()), }, - sdk.ValAddress(sdk.AccAddress([]byte("addr1_______________"))), + sdk.ValAddress(sdk.AccAddress([]byte("addr1_______________"))).String(), ) require.Equal(t, "exchangerates:\n - denom: uojo\n amount: \"1.000000000000000000\"\nvoter: ojovaloper1v9jxgu33ta047h6lta047h6lta047h6ludnc0y\n", aggregateExchangeRatePreVote.String()) From 70ef5bc9ff83e32f248cc576248004c796af7c17 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 21 Jan 2025 12:50:06 -0500 Subject: [PATCH 25/77] logs --- x/oracle/abci/proposal.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/x/oracle/abci/proposal.go b/x/oracle/abci/proposal.go index e2888e50..580a98cd 100644 --- a/x/oracle/abci/proposal.go +++ b/x/oracle/abci/proposal.go @@ -248,6 +248,10 @@ func (h *ProposalHandler) verifyExchangeRateVotes( generatedVote := generatedVotes[i] if injectedVote.Voter != generatedVote.Voter || !injectedVote.ExchangeRates.Equal(generatedVote.ExchangeRates) { + h.logger.Info("injected voter %s", injectedVote.Voter) + h.logger.Info("generated voter %s", generatedVote.Voter) + h.logger.Info("injected voter %+v", injectedVote.ExchangeRates) + h.logger.Info("injected voter %+v", generatedVote.ExchangeRates) return oracletypes.ErrNonEqualInjVotesRates } } @@ -301,12 +305,16 @@ func (h *ProposalHandler) verifyExternalLiquidity( generatedExternalLiquidity := generatedExternalLiquidityList[i] if injectedExternalLiquidity.PoolId != generatedExternalLiquidity.PoolId { + h.logger.Info("injected PoolId %d", injectedExternalLiquidity.PoolId) + h.logger.Info("generated PoolId %d", generatedExternalLiquidity.PoolId) return oracletypes.ErrNonEqualInjVotesRates } if len(injectedExternalLiquidity.AmountDepthInfo) != len(generatedExternalLiquidity.AmountDepthInfo) || injectedExternalLiquidity.AmountDepthInfo[0] != generatedExternalLiquidity.AmountDepthInfo[0] || injectedExternalLiquidity.AmountDepthInfo[1] != generatedExternalLiquidity.AmountDepthInfo[1] { + h.logger.Info("injected ExternalLiquidity AmountDepthInfo %+v", injectedExternalLiquidity.AmountDepthInfo) + h.logger.Info("generated ExternalLiquidity AmountDepthInfo %+v", generatedExternalLiquidity.AmountDepthInfo) return oracletypes.ErrNonEqualInjVotesRates } } From b523cff405d02824365ce816e3ec5416cb92c832 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 21 Jan 2025 12:57:36 -0500 Subject: [PATCH 26/77] fix logs --- x/oracle/abci/proposal.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/x/oracle/abci/proposal.go b/x/oracle/abci/proposal.go index 580a98cd..9e7bb3b4 100644 --- a/x/oracle/abci/proposal.go +++ b/x/oracle/abci/proposal.go @@ -248,10 +248,10 @@ func (h *ProposalHandler) verifyExchangeRateVotes( generatedVote := generatedVotes[i] if injectedVote.Voter != generatedVote.Voter || !injectedVote.ExchangeRates.Equal(generatedVote.ExchangeRates) { - h.logger.Info("injected voter %s", injectedVote.Voter) - h.logger.Info("generated voter %s", generatedVote.Voter) - h.logger.Info("injected voter %+v", injectedVote.ExchangeRates) - h.logger.Info("injected voter %+v", generatedVote.ExchangeRates) + h.logger.Info("injected", "voter %s", injectedVote.Voter) + h.logger.Info("generated", "voter %s", generatedVote.Voter) + h.logger.Info("injected", "voter %+v", injectedVote.ExchangeRates) + h.logger.Info("injected", "voter %+v", generatedVote.ExchangeRates) return oracletypes.ErrNonEqualInjVotesRates } } @@ -305,16 +305,16 @@ func (h *ProposalHandler) verifyExternalLiquidity( generatedExternalLiquidity := generatedExternalLiquidityList[i] if injectedExternalLiquidity.PoolId != generatedExternalLiquidity.PoolId { - h.logger.Info("injected PoolId %d", injectedExternalLiquidity.PoolId) - h.logger.Info("generated PoolId %d", generatedExternalLiquidity.PoolId) + h.logger.Info("injected", "PoolId %d", injectedExternalLiquidity.PoolId) + h.logger.Info("generated", "PoolId %d", generatedExternalLiquidity.PoolId) return oracletypes.ErrNonEqualInjVotesRates } if len(injectedExternalLiquidity.AmountDepthInfo) != len(generatedExternalLiquidity.AmountDepthInfo) || injectedExternalLiquidity.AmountDepthInfo[0] != generatedExternalLiquidity.AmountDepthInfo[0] || injectedExternalLiquidity.AmountDepthInfo[1] != generatedExternalLiquidity.AmountDepthInfo[1] { - h.logger.Info("injected ExternalLiquidity AmountDepthInfo %+v", injectedExternalLiquidity.AmountDepthInfo) - h.logger.Info("generated ExternalLiquidity AmountDepthInfo %+v", generatedExternalLiquidity.AmountDepthInfo) + h.logger.Info("injected ExternalLiquidity", "AmountDepthInfo %+v", injectedExternalLiquidity.AmountDepthInfo) + h.logger.Info("generated ExternalLiquidity", "AmountDepthInfo %+v", generatedExternalLiquidity.AmountDepthInfo) return oracletypes.ErrNonEqualInjVotesRates } } From 47372e695fe3578e372a3d79f881b40c6e494171 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 21 Jan 2025 13:23:40 -0500 Subject: [PATCH 27/77] verifyAmountDepthInfo --- x/oracle/abci/proposal.go | 39 ++++++++++++++++++++++++++++++--------- x/oracle/types/errors.go | 11 +++++++---- 2 files changed, 37 insertions(+), 13 deletions(-) diff --git a/x/oracle/abci/proposal.go b/x/oracle/abci/proposal.go index 9e7bb3b4..d97d6d44 100644 --- a/x/oracle/abci/proposal.go +++ b/x/oracle/abci/proposal.go @@ -305,19 +305,40 @@ func (h *ProposalHandler) verifyExternalLiquidity( generatedExternalLiquidity := generatedExternalLiquidityList[i] if injectedExternalLiquidity.PoolId != generatedExternalLiquidity.PoolId { - h.logger.Info("injected", "PoolId %d", injectedExternalLiquidity.PoolId) - h.logger.Info("generated", "PoolId %d", generatedExternalLiquidity.PoolId) - return oracletypes.ErrNonEqualInjVotesRates + return oracletypes.ErrNonEqualInjPoolID } - if len(injectedExternalLiquidity.AmountDepthInfo) != len(generatedExternalLiquidity.AmountDepthInfo) || - injectedExternalLiquidity.AmountDepthInfo[0] != generatedExternalLiquidity.AmountDepthInfo[0] || - injectedExternalLiquidity.AmountDepthInfo[1] != generatedExternalLiquidity.AmountDepthInfo[1] { - h.logger.Info("injected ExternalLiquidity", "AmountDepthInfo %+v", injectedExternalLiquidity.AmountDepthInfo) - h.logger.Info("generated ExternalLiquidity", "AmountDepthInfo %+v", generatedExternalLiquidity.AmountDepthInfo) - return oracletypes.ErrNonEqualInjVotesRates + if err := verifyAmountDepthInfo( + injectedExternalLiquidity.AmountDepthInfo, + generatedExternalLiquidity.AmountDepthInfo, + ); err != nil { + return err } } return nil } + +func verifyAmountDepthInfo( + injectedAmountDepthInfo []oracletypes.AssetAmountDepth, + generatedAmountDepthInfo []oracletypes.AssetAmountDepth, +) error { + if len(injectedAmountDepthInfo) != 2 { + return oracletypes.ErrInvalidAssetDepthLen + } + + if len(injectedAmountDepthInfo) != len(generatedAmountDepthInfo) { + return oracletypes.ErrInvalidAssetDepthLen + } + + if injectedAmountDepthInfo[0].Asset != generatedAmountDepthInfo[0].Asset || + injectedAmountDepthInfo[1].Asset != generatedAmountDepthInfo[1].Asset || + !injectedAmountDepthInfo[0].Amount.Equal(generatedAmountDepthInfo[0].Amount) || + !injectedAmountDepthInfo[1].Amount.Equal(generatedAmountDepthInfo[1].Amount) || + !injectedAmountDepthInfo[0].Depth.Equal(generatedAmountDepthInfo[0].Depth) || + !injectedAmountDepthInfo[1].Depth.Equal(generatedAmountDepthInfo[1].Depth) { + return oracletypes.ErrNonEqualAssetDepth + } + + return nil +} diff --git a/x/oracle/types/errors.go b/x/oracle/types/errors.go index 010504b7..63baf757 100644 --- a/x/oracle/types/errors.go +++ b/x/oracle/types/errors.go @@ -37,8 +37,11 @@ var ( ErrEncodeInjVoteExt = errors.Register(ModuleName, 27, "failed to encode injected vote extension tx") ErrNonEqualInjVotesLen = errors.Register(ModuleName, 28, "number of exchange rate votes in vote extension and extended commit info are not equal") //nolint: lll ErrNonEqualInjVotesRates = errors.Register(ModuleName, 29, "injected exchange rate votes and generated exchange votes are not equal") //nolint: lll - ErrNoCommitInfo = errors.Register(ModuleName, 30, "no commit info in process proposal request") - ErrNotAPriceFeeder = errors.Register(ModuleName, 31, "not a price feeder") - ErrPriceFeederNotActive = errors.Register(ModuleName, 32, "price feeder is not active") - ErrAssetWasCreated = errors.Register(ModuleName, 33, "asset already exists") + ErrNonEqualInjPoolID = errors.Register(ModuleName, 30, "pool ids in injected and generated external liquidity asset deoth info are not equal") //nolint: lll + ErrInvalidAssetDepthLen = errors.Register(ModuleName, 31, "invalid asset depth info length") + ErrNonEqualAssetDepth = errors.Register(ModuleName, 32, "injected asset deoth info and generated asset deoth info are not equal") + ErrNoCommitInfo = errors.Register(ModuleName, 33, "no commit info in process proposal request") + ErrNotAPriceFeeder = errors.Register(ModuleName, 34, "not a price feeder") + ErrPriceFeederNotActive = errors.Register(ModuleName, 35, "price feeder is not active") + ErrAssetWasCreated = errors.Register(ModuleName, 36, "asset already exists") ) From 59dfa304799b31763c091b7da99ff8e9cc3cc3f6 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 21 Jan 2025 13:51:14 -0500 Subject: [PATCH 28/77] valaddr to string --- app/preblocker.go | 2 +- x/oracle/abci/endblocker.go | 2 +- x/oracle/abci/endblocker_test.go | 36 ++++++++++++------------ x/oracle/genesis.go | 4 +-- x/oracle/keeper/ballot.go | 4 +-- x/oracle/keeper/ballot_test.go | 10 +++---- x/oracle/keeper/grpc_query.go | 4 +-- x/oracle/keeper/grpc_query_test.go | 4 +-- x/oracle/keeper/keeper.go | 12 ++++---- x/oracle/keeper/keeper_test.go | 10 +++---- x/oracle/keeper/msg_server.go | 2 +- x/oracle/keeper/msg_server_test.go | 4 +-- x/oracle/types/ballot.go | 8 +++--- x/oracle/types/ballot_test.go | 44 +++++++++++++++--------------- x/oracle/types/keys.go | 5 ++-- x/oracle/types/keys_test.go | 2 +- 16 files changed, 76 insertions(+), 77 deletions(-) diff --git a/app/preblocker.go b/app/preblocker.go index 9e7d2221..c0492cc0 100644 --- a/app/preblocker.go +++ b/app/preblocker.go @@ -56,7 +56,7 @@ func (app *App) PreBlocker(ctx sdk.Context, req *cometabci.RequestFinalizeBlock) app.Logger().Error("failed to get voter address", "err", err) continue } - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr, exchangeRateVote) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr.String(), exchangeRateVote) } } diff --git a/x/oracle/abci/endblocker.go b/x/oracle/abci/endblocker.go index c6bbbf0a..12d8ef4a 100644 --- a/x/oracle/abci/endblocker.go +++ b/x/oracle/abci/endblocker.go @@ -254,7 +254,7 @@ func Tally( tallyVote.ExchangeRate.LTE(weightedMedian.Add(rewardSpread))) || !tallyVote.ExchangeRate.IsPositive() { - key := tallyVote.Voter.String() + key := tallyVote.Voter claim := validatorClaimMap[key] if incrementWin { diff --git a/x/oracle/abci/endblocker_test.go b/x/oracle/abci/endblocker_test.go index 7f772dc4..a07470e0 100644 --- a/x/oracle/abci/endblocker_test.go +++ b/x/oracle/abci/endblocker_test.go @@ -80,9 +80,9 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) ctx = ctx.WithBlockTime(currTime) currTime = currTime.Add(timeDiff) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1, val1Votes) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2, val2Votes) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3, val3Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1.String(), val1Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2.String(), val2Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3.String(), val3Votes) err := abci.EndBlocker(ctx, app.OracleKeeper) s.Require().NoError(err) @@ -114,7 +114,7 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) ctx = ctx.WithBlockTime(currTime) currTime = currTime.Add(timeDiff) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2, val2Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2.String(), val2Votes) abci.EndBlocker(ctx, app.OracleKeeper) for _, denom := range app.OracleKeeper.AcceptList(ctx) { @@ -139,8 +139,8 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) ctx = ctx.WithBlockTime(currTime) currTime = currTime.Add(timeDiff) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2, val2Votes) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3, val3Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2.String(), val2Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3.String(), val3Votes) abci.EndBlocker(ctx, app.OracleKeeper) for _, denom := range app.OracleKeeper.AcceptList(ctx) { @@ -179,8 +179,8 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) ctx = ctx.WithBlockTime(currTime) currTime = currTime.Add(timeDiff) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1, val1Votes) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2, val2Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1.String(), val1Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2.String(), val2Votes) abci.EndBlocker(ctx, app.OracleKeeper) rate, err := app.OracleKeeper.GetExchangeRate(ctx, "ojo") @@ -255,9 +255,9 @@ func (s *IntegrationTestSuite) TestEndBlockerValidatorRewards() { abci.EndBlocker(ctx, app.OracleKeeper) ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1, val1Votes) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2, val2Votes) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3, val3Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1.String(), val1Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2.String(), val2Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3.String(), val3Votes) abci.EndBlocker(ctx, app.OracleKeeper) currRewards1, err := app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr1) @@ -314,9 +314,9 @@ func (s *IntegrationTestSuite) TestEndBlockerValidatorRewards() { abci.EndBlocker(ctx, app.OracleKeeper) ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1, val1Votes) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2, val2Votes) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3, val3Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1.String(), val1Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2.String(), val2Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3.String(), val3Votes) abci.EndBlocker(ctx, app.OracleKeeper) currRewards1, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr1) @@ -346,9 +346,9 @@ func (s *IntegrationTestSuite) TestEndBlockerValidatorRewards() { abci.EndBlocker(ctx, app.OracleKeeper) ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1, val1Votes) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2, val2Votes) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3, val3Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1.String(), val1Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2.String(), val2Votes) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3.String(), val3Votes) abci.EndBlocker(ctx, app.OracleKeeper) currRewards1, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr1) @@ -415,7 +415,7 @@ func (s *IntegrationTestSuite) TestEndblockerHistoracle() { ExchangeRates: decCoins, Voter: valAddr1.String(), } - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1, vote) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1.String(), vote) abci.EndBlocker(ctx, app.OracleKeeper) } diff --git a/x/oracle/genesis.go b/x/oracle/genesis.go index 7734e6bf..a189e4be 100644 --- a/x/oracle/genesis.go +++ b/x/oracle/genesis.go @@ -55,7 +55,7 @@ func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, genState types.GenesisSt panic(err) } - keeper.SetAggregateExchangeRateVote(ctx, valAddr, av) + keeper.SetAggregateExchangeRateVote(ctx, valAddr.String(), av) } for _, hp := range genState.HistoricPrices { @@ -130,7 +130,7 @@ func ExportGenesis(ctx sdk.Context, keeper keeper.Keeper) *types.GenesisState { aggregateExchangeRateVotes := []types.AggregateExchangeRateVote{} keeper.IterateAggregateExchangeRateVotes( ctx, - func(_ sdk.ValAddress, aggregateVote types.AggregateExchangeRateVote) bool { + func(_ string, aggregateVote types.AggregateExchangeRateVote) bool { aggregateExchangeRateVotes = append(aggregateExchangeRateVotes, aggregateVote) return false }, diff --git a/x/oracle/keeper/ballot.go b/x/oracle/keeper/ballot.go index bc0b3365..89606d47 100644 --- a/x/oracle/keeper/ballot.go +++ b/x/oracle/keeper/ballot.go @@ -18,7 +18,7 @@ func (k Keeper) OrganizeBallotByDenom( votes := map[string]types.ExchangeRateBallot{} // collect aggregate votes - aggregateHandler := func(voterAddr sdk.ValAddress, vote types.AggregateExchangeRateVote) bool { + aggregateHandler := func(voterAddr string, vote types.AggregateExchangeRateVote) bool { // organize ballot only for the active validators claim, ok := validatorClaimMap[vote.Voter] if ok { @@ -60,7 +60,7 @@ func (k Keeper) ClearBallots(ctx sdk.Context, votePeriod uint64) { // clear all aggregate votes k.IterateAggregateExchangeRateVotes( ctx, - func(voterAddr sdk.ValAddress, _ types.AggregateExchangeRateVote) bool { + func(voterAddr string, _ types.AggregateExchangeRateVote) bool { k.DeleteAggregateExchangeRateVote(ctx, voterAddr) return false }, diff --git a/x/oracle/keeper/ballot_test.go b/x/oracle/keeper/ballot_test.go index eb0b163d..389b8696 100644 --- a/x/oracle/keeper/ballot_test.go +++ b/x/oracle/keeper/ballot_test.go @@ -17,7 +17,7 @@ func (s *IntegrationTestSuite) TestBallot_OrganizeBallotByDenom() { require.Empty(res) s.app.OracleKeeper.SetAggregateExchangeRateVote( - s.ctx, valAddr, types.AggregateExchangeRateVote{ + s.ctx, valAddr.String(), types.AggregateExchangeRateVote{ ExchangeRates: sdk.DecCoins{ sdk.DecCoin{ Denom: "OJO", @@ -37,7 +37,7 @@ func (s *IntegrationTestSuite) TestBallot_OrganizeBallotByDenom() { res = s.app.OracleKeeper.OrganizeBallotByDenom(s.ctx, claimMap) require.Equal([]types.BallotDenom{ { - Ballot: types.ExchangeRateBallot{types.NewVoteForTally(math.LegacyOneDec(), "OJO", valAddr, 1)}, + Ballot: types.ExchangeRateBallot{types.NewVoteForTally(math.LegacyOneDec(), "OJO", valAddr.String(), 1)}, Denom: "OJO", }, }, res) @@ -63,14 +63,14 @@ func (s *IntegrationTestSuite) TestBallot_ClearBallots() { ExchangeRates: decCoins, Voter: addr.String(), } - s.app.OracleKeeper.SetAggregateExchangeRateVote(s.ctx, valAddr, vote) - voteRes, err := s.app.OracleKeeper.GetAggregateExchangeRateVote(s.ctx, valAddr) + s.app.OracleKeeper.SetAggregateExchangeRateVote(s.ctx, valAddr.String(), vote) + voteRes, err := s.app.OracleKeeper.GetAggregateExchangeRateVote(s.ctx, valAddr.String()) s.Require().NoError(err) s.Require().Equal(voteRes, vote) s.app.OracleKeeper.ClearBallots(s.ctx, 0) _, err = s.app.OracleKeeper.GetAggregateExchangeRatePrevote(s.ctx, valAddr) s.Require().Error(err) - _, err = s.app.OracleKeeper.GetAggregateExchangeRateVote(s.ctx, valAddr) + _, err = s.app.OracleKeeper.GetAggregateExchangeRateVote(s.ctx, valAddr.String()) s.Require().Error(err) } diff --git a/x/oracle/keeper/grpc_query.go b/x/oracle/keeper/grpc_query.go index bc6127ff..0c4f2050 100644 --- a/x/oracle/keeper/grpc_query.go +++ b/x/oracle/keeper/grpc_query.go @@ -220,7 +220,7 @@ func (q querier) AggregateVote( ctx := sdk.UnwrapSDKContext(goCtx) - vote, err := q.GetAggregateExchangeRateVote(ctx, valAddr) + vote, err := q.GetAggregateExchangeRateVote(ctx, valAddr.String()) if err != nil { return nil, err } @@ -242,7 +242,7 @@ func (q querier) AggregateVotes( ctx := sdk.UnwrapSDKContext(goCtx) var votes []types.AggregateExchangeRateVote - q.IterateAggregateExchangeRateVotes(ctx, func(_ sdk.ValAddress, vote types.AggregateExchangeRateVote) bool { + q.IterateAggregateExchangeRateVotes(ctx, func(_ string, vote types.AggregateExchangeRateVote) bool { votes = append(votes, vote) return false }) diff --git a/x/oracle/keeper/grpc_query_test.go b/x/oracle/keeper/grpc_query_test.go index d93832c4..254a5405 100644 --- a/x/oracle/keeper/grpc_query_test.go +++ b/x/oracle/keeper/grpc_query_test.go @@ -126,7 +126,7 @@ func (s *IntegrationTestSuite) TestQuerier_AggregateVote() { ExchangeRates: decCoins, Voter: addr.String(), } - s.app.OracleKeeper.SetAggregateExchangeRateVote(s.ctx, valAddr, vote) + s.app.OracleKeeper.SetAggregateExchangeRateVote(s.ctx, valAddr.String(), vote) res, err := s.queryClient.AggregateVote(s.ctx.Context(), &types.QueryAggregateVote{ ValidatorAddr: valAddr.String(), @@ -194,7 +194,7 @@ func (s *IntegrationTestSuite) TestQuerier_AggregatePrevotesAppendVotes() { } func (s *IntegrationTestSuite) TestQuerier_AggregateVotesAppendVotes() { - s.app.OracleKeeper.SetAggregateExchangeRateVote(s.ctx, valAddr, types.NewAggregateExchangeRateVote( + s.app.OracleKeeper.SetAggregateExchangeRateVote(s.ctx, valAddr.String(), types.NewAggregateExchangeRateVote( types.DefaultGenesisState().ExchangeRates, valAddr.String(), )) diff --git a/x/oracle/keeper/keeper.go b/x/oracle/keeper/keeper.go index 133fac9c..88f9150b 100644 --- a/x/oracle/keeper/keeper.go +++ b/x/oracle/keeper/keeper.go @@ -283,13 +283,13 @@ func (k Keeper) IterateAggregateExchangeRatePrevotes( // GetAggregateExchangeRateVote retrieves an oracle prevote from the store. func (k Keeper) GetAggregateExchangeRateVote( ctx sdk.Context, - voter sdk.ValAddress, + voter string, ) (types.AggregateExchangeRateVote, error) { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := store.Get(types.GetAggregateExchangeRateVoteKey(voter)) if bz == nil { - return types.AggregateExchangeRateVote{}, types.ErrNoAggregateVote.Wrap(voter.String()) + return types.AggregateExchangeRateVote{}, types.ErrNoAggregateVote.Wrap(voter) } var aggregateVote types.AggregateExchangeRateVote @@ -301,7 +301,7 @@ func (k Keeper) GetAggregateExchangeRateVote( // SetAggregateExchangeRateVote adds an oracle aggregate prevote to the store. func (k Keeper) SetAggregateExchangeRateVote( ctx sdk.Context, - voter sdk.ValAddress, + voter string, vote types.AggregateExchangeRateVote, ) { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) @@ -311,13 +311,13 @@ func (k Keeper) SetAggregateExchangeRateVote( } // DeleteAggregateExchangeRateVote deletes an oracle prevote from the store. -func (k Keeper) DeleteAggregateExchangeRateVote(ctx sdk.Context, voter sdk.ValAddress) { +func (k Keeper) DeleteAggregateExchangeRateVote(ctx sdk.Context, voter string) { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store.Delete(types.GetAggregateExchangeRateVoteKey(voter)) } type IterateExchangeRateVote = func( - voterAddr sdk.ValAddress, + voterAddr string, aggregateVote types.AggregateExchangeRateVote, ) (stop bool) @@ -332,7 +332,7 @@ func (k Keeper) IterateAggregateExchangeRateVotes( defer iter.Close() for ; iter.Valid(); iter.Next() { - voterAddr := sdk.ValAddress(iter.Key()[2:]) + voterAddr := string(iter.Key()[2:]) var aggregateVote types.AggregateExchangeRateVote k.cdc.MustUnmarshal(iter.Value(), &aggregateVote) diff --git a/x/oracle/keeper/keeper_test.go b/x/oracle/keeper/keeper_test.go index 1784e8cd..e24030f8 100644 --- a/x/oracle/keeper/keeper_test.go +++ b/x/oracle/keeper/keeper_test.go @@ -183,21 +183,21 @@ func (s *IntegrationTestSuite) TestAggregateExchangeRateVote() { ExchangeRates: decCoins, Voter: addr.String(), } - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr, vote) + app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr.String(), vote) - _, err := app.OracleKeeper.GetAggregateExchangeRateVote(ctx, valAddr) + _, err := app.OracleKeeper.GetAggregateExchangeRateVote(ctx, valAddr.String()) s.Require().NoError(err) - app.OracleKeeper.DeleteAggregateExchangeRateVote(ctx, valAddr) + app.OracleKeeper.DeleteAggregateExchangeRateVote(ctx, valAddr.String()) - _, err = app.OracleKeeper.GetAggregateExchangeRateVote(ctx, valAddr) + _, err = app.OracleKeeper.GetAggregateExchangeRateVote(ctx, valAddr.String()) s.Require().Error(err) } func (s *IntegrationTestSuite) TestAggregateExchangeRateVoteError() { app, ctx := s.app, s.ctx - _, err := app.OracleKeeper.GetAggregateExchangeRateVote(ctx, valAddr) + _, err := app.OracleKeeper.GetAggregateExchangeRateVote(ctx, valAddr.String()) s.Require().Errorf(err, types.ErrNoAggregateVote.Error()) } diff --git a/x/oracle/keeper/msg_server.go b/x/oracle/keeper/msg_server.go index 1a19ed88..0da92b21 100644 --- a/x/oracle/keeper/msg_server.go +++ b/x/oracle/keeper/msg_server.go @@ -112,7 +112,7 @@ func (ms msgServer) AggregateExchangeRateVote( } // Move aggregate prevote to aggregate vote with given exchange rates - ms.SetAggregateExchangeRateVote(ctx, valAddr, types.NewAggregateExchangeRateVote(filteredDecCoins, valAddr.String())) + ms.SetAggregateExchangeRateVote(ctx, valAddr.String(), types.NewAggregateExchangeRateVote(filteredDecCoins, valAddr.String())) ms.DeleteAggregateExchangeRatePrevote(ctx, valAddr) return &types.MsgAggregateExchangeRateVoteResponse{}, nil diff --git a/x/oracle/keeper/msg_server_test.go b/x/oracle/keeper/msg_server_test.go index a38e3cad..380945ca 100644 --- a/x/oracle/keeper/msg_server_test.go +++ b/x/oracle/keeper/msg_server_test.go @@ -120,7 +120,7 @@ func (s *IntegrationTestSuite) TestMsgServer_AggregateExchangeRateVote() { )) _, err = s.msgServer.AggregateExchangeRateVote(sdk.WrapSDKContext(ctx), voteMsg) s.Require().NoError(err) - vote, err := s.app.OracleKeeper.GetAggregateExchangeRateVote(ctx, valAddr) + vote, err := s.app.OracleKeeper.GetAggregateExchangeRateVote(ctx, valAddr.String()) s.Require().Nil(err) for _, v := range vote.ExchangeRates { s.Require().Contains(acceptListFlat, v.Denom) @@ -135,7 +135,7 @@ func (s *IntegrationTestSuite) TestMsgServer_AggregateExchangeRateVote() { )) _, err = s.msgServer.AggregateExchangeRateVote(sdk.WrapSDKContext(ctx), voteMsgInvalidRate) s.Require().NoError(err) - vote, err = s.app.OracleKeeper.GetAggregateExchangeRateVote(ctx, valAddr) + vote, err = s.app.OracleKeeper.GetAggregateExchangeRateVote(ctx, valAddr.String()) s.Require().NoError(err) for _, v := range vote.ExchangeRates { s.Require().Contains(acceptListFlat, v.Denom) diff --git a/x/oracle/types/ballot.go b/x/oracle/types/ballot.go index ffc9c457..ab28e21c 100644 --- a/x/oracle/types/ballot.go +++ b/x/oracle/types/ballot.go @@ -12,12 +12,12 @@ import ( type VoteForTally struct { Denom string ExchangeRate math.LegacyDec - Voter sdk.ValAddress + Voter string Power int64 } // NewVoteForTally returns a new VoteForTally instance. -func NewVoteForTally(rate math.LegacyDec, denom string, voter sdk.ValAddress, power int64) VoteForTally { +func NewVoteForTally(rate math.LegacyDec, denom string, voter string, power int64) VoteForTally { return VoteForTally{ ExchangeRate: rate, Denom: denom, @@ -34,7 +34,7 @@ func (pb ExchangeRateBallot) ToMap() map[string]math.LegacyDec { exchangeRateMap := make(map[string]math.LegacyDec) for _, vote := range pb { if vote.ExchangeRate.IsPositive() { - exchangeRateMap[vote.Voter.String()] = vote.ExchangeRate + exchangeRateMap[vote.Voter] = vote.ExchangeRate } } @@ -119,7 +119,7 @@ func (pb ExchangeRateBallot) Less(i, j int) bool { return true } if pb[i].ExchangeRate.Equal(pb[j].ExchangeRate) { - return bytes.Compare(pb[i].Voter, pb[j].Voter) < 0 + return bytes.Compare([]byte(pb[i].Voter), []byte(pb[j].Voter)) < 0 } return false } diff --git a/x/oracle/types/ballot_test.go b/x/oracle/types/ballot_test.go index f2d3e529..61f277e7 100644 --- a/x/oracle/types/ballot_test.go +++ b/x/oracle/types/ballot_test.go @@ -21,19 +21,19 @@ func TestToMap(t *testing.T) { }{ []VoteForTally{ { - Voter: sdk.ValAddress(secp256k1.GenPrivKey().PubKey().Address()), + Voter: sdk.ValAddress(secp256k1.GenPrivKey().PubKey().Address()).String(), Denom: OjoDenom, ExchangeRate: sdkmath.LegacyNewDec(1600), Power: 100, }, { - Voter: sdk.ValAddress(secp256k1.GenPrivKey().PubKey().Address()), + Voter: sdk.ValAddress(secp256k1.GenPrivKey().PubKey().Address()).String(), Denom: OjoDenom, ExchangeRate: sdkmath.LegacyZeroDec(), Power: 100, }, { - Voter: sdk.ValAddress(secp256k1.GenPrivKey().PubKey().Address()), + Voter: sdk.ValAddress(secp256k1.GenPrivKey().PubKey().Address()).String(), Denom: OjoDenom, ExchangeRate: sdkmath.LegacyNewDec(1500), Power: 100, @@ -46,7 +46,7 @@ func TestToMap(t *testing.T) { mapData := pb.ToMap() for i, vote := range tests.votes { - exchangeRate, ok := mapData[vote.Voter.String()] + exchangeRate, ok := mapData[vote.Voter] if tests.isValid[i] { require.True(t, ok) require.Equal(t, exchangeRate, vote.ExchangeRate) @@ -81,7 +81,7 @@ func TestPBPower(t *testing.T) { vote := NewVoteForTally( sdkmath.LegacyZeroDec(), OjoDenom, - valAccAddrs[i], + valAccAddrs[i].String(), power, ) @@ -99,7 +99,7 @@ func TestPBPower(t *testing.T) { fakeVote := NewVoteForTally( sdkmath.LegacyOneDec(), OjoDenom, - faceValAddr, + faceValAddr.String(), 0, ) @@ -170,7 +170,7 @@ func TestPBWeightedMedian(t *testing.T) { vote := NewVoteForTally( sdkmath.LegacyNewDec(int64(input)), OjoDenom, - valAddr, + valAddr.String(), power, ) @@ -253,7 +253,7 @@ func TestPBStandardDeviation(t *testing.T) { vote := NewVoteForTally( input, OjoDenom, - valAddr, + valAddr.String(), power, ) @@ -273,19 +273,19 @@ func TestPBStandardDeviation_Overflow(t *testing.T) { NewVoteForTally( sdkmath.LegacyOneDec(), OjoSymbol, - valAddr, + valAddr.String(), 2, ), NewVoteForTally( sdkmath.LegacyNewDec(1234), OjoSymbol, - valAddr, + valAddr.String(), 2, ), NewVoteForTally( overflowRate, OjoSymbol, - valAddr, + valAddr.String(), 1, ), } @@ -303,13 +303,13 @@ func TestBallotMapToSlice(t *testing.T) { NewVoteForTally( sdkmath.LegacyNewDec(1234), OjoSymbol, - valAddress[0], + valAddress[0].String(), 2, ), NewVoteForTally( sdkmath.LegacyNewDec(12345), OjoSymbol, - valAddress[0], + valAddress[0].String(), 1, ), } @@ -328,13 +328,13 @@ func TestExchangeRateBallotSwap(t *testing.T) { NewVoteForTally( sdkmath.LegacyNewDec(1234), OjoSymbol, - valAddress[0], + valAddress[0].String(), 2, ), NewVoteForTally( sdkmath.LegacyNewDec(12345), OjoSymbol, - valAddress[1], + valAddress[1].String(), 1, ), } @@ -354,13 +354,13 @@ func TestStandardDeviationUnsorted(t *testing.T) { NewVoteForTally( sdkmath.LegacyNewDec(1234), OjoSymbol, - valAddress[0], + valAddress[0].String(), 2, ), NewVoteForTally( sdkmath.LegacyNewDec(12), OjoSymbol, - valAddress[0], + valAddress[0].String(), 1, ), } @@ -388,11 +388,11 @@ func TestClaimMapToSlices(t *testing.T) { } func TestExchangeRateBallotSort(t *testing.T) { - v1 := VoteForTally{ExchangeRate: sdkmath.LegacyMustNewDecFromStr("0.2"), Voter: sdk.ValAddress{0, 1}} - v1Cpy := VoteForTally{ExchangeRate: sdkmath.LegacyMustNewDecFromStr("0.2"), Voter: sdk.ValAddress{0, 1}} - v2 := VoteForTally{ExchangeRate: sdkmath.LegacyMustNewDecFromStr("0.1"), Voter: sdk.ValAddress{0, 1, 1}} - v3 := VoteForTally{ExchangeRate: sdkmath.LegacyMustNewDecFromStr("0.1"), Voter: sdk.ValAddress{0, 1}} - v4 := VoteForTally{ExchangeRate: sdkmath.LegacyMustNewDecFromStr("0.5"), Voter: sdk.ValAddress{1}} + v1 := VoteForTally{ExchangeRate: sdkmath.LegacyMustNewDecFromStr("0.2"), Voter: sdk.ValAddress{0, 1}.String()} + v1Cpy := VoteForTally{ExchangeRate: sdkmath.LegacyMustNewDecFromStr("0.2"), Voter: sdk.ValAddress{0, 1}.String()} + v2 := VoteForTally{ExchangeRate: sdkmath.LegacyMustNewDecFromStr("0.1"), Voter: sdk.ValAddress{0, 1, 1}.String()} + v3 := VoteForTally{ExchangeRate: sdkmath.LegacyMustNewDecFromStr("0.1"), Voter: sdk.ValAddress{0, 1}.String()} + v4 := VoteForTally{ExchangeRate: sdkmath.LegacyMustNewDecFromStr("0.5"), Voter: sdk.ValAddress{1}.String()} tcs := []struct { got ExchangeRateBallot diff --git a/x/oracle/types/keys.go b/x/oracle/types/keys.go index a3bcae60..9dd9be91 100644 --- a/x/oracle/types/keys.go +++ b/x/oracle/types/keys.go @@ -68,9 +68,8 @@ func GetAggregateExchangeRatePrevoteKey(v sdk.ValAddress) (key []byte) { } // GetAggregateExchangeRateVoteKey - stored by *Validator* address -func GetAggregateExchangeRateVoteKey(v sdk.ValAddress) (key []byte) { - key = append(key, KeyPrefixAggregateExchangeRateVote...) - return append(key, address.MustLengthPrefix(v)...) +func GetAggregateExchangeRateVoteKey(v string) (key []byte) { + return util.ConcatBytes(0, KeyPrefixAggregateExchangeRateVote, []byte(v)) } // KeyMedian - stored by *denom* diff --git a/x/oracle/types/keys_test.go b/x/oracle/types/keys_test.go index a9d7bf2a..05b9f4ab 100644 --- a/x/oracle/types/keys_test.go +++ b/x/oracle/types/keys_test.go @@ -103,7 +103,7 @@ func TestGetAggregateExchangeRateVoteKey(t *testing.T) { } for i, testCase := range testCases { - actualKey := types.GetAggregateExchangeRateVoteKey(testCase.val) + actualKey := types.GetAggregateExchangeRateVoteKey(testCase.val.String()) require.Equalf(t, testCase.expectedKey, actualKey, "test %d - expected key: %s should be the same as actual key: %s", i, testCase.expectedKey, actualKey) } } From 62c8567c9dc053a60b7f6628e938e7b838d3306c Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 21 Jan 2025 18:53:35 -0500 Subject: [PATCH 29/77] remove slashing and rewards --- util/metrics/metrics.go | 5 +- x/oracle/abci/endblocker.go | 79 +++++++++++++--------------- x/oracle/genesis.go | 6 +-- x/oracle/keeper/ballot_test.go | 2 +- x/oracle/keeper/end_blocker.go | 2 +- x/oracle/keeper/grpc_query.go | 19 +++---- x/oracle/keeper/grpc_query_test.go | 28 +++++----- x/oracle/keeper/migrations.go | 16 +++--- x/oracle/keeper/miss_counter.go | 10 ++-- x/oracle/keeper/miss_counter_test.go | 16 +++--- x/oracle/keeper/reward.go | 2 + x/oracle/keeper/reward_test.go | 16 +++--- x/oracle/keeper/reward_unit_test.go | 2 + x/oracle/keeper/slash.go | 4 +- x/oracle/keeper/slash_test.go | 2 + x/oracle/types/ballot.go | 11 ++-- x/oracle/types/ballot_test.go | 6 +-- x/oracle/types/keys.go | 5 +- x/oracle/types/keys_test.go | 2 +- 19 files changed, 118 insertions(+), 115 deletions(-) diff --git a/util/metrics/metrics.go b/util/metrics/metrics.go index 18e8e689..17f7f53a 100644 --- a/util/metrics/metrics.go +++ b/util/metrics/metrics.go @@ -3,7 +3,6 @@ package metrics import ( "cosmossdk.io/math" "github.com/armon/go-metrics" - sdk "github.com/cosmos/cosmos-sdk/types" ) const ( @@ -14,11 +13,11 @@ const ( ) // RecordMissCounter records the miss counter gauge for a validator -func RecordMissCounter(operator sdk.ValAddress, missCounter uint64) { +func RecordMissCounter(operator string, missCounter uint64) { metrics.SetGaugeWithLabels( []string{missCounterLabel}, float32(missCounter), - []metrics.Label{{Name: "address", Value: operator.String()}}, + []metrics.Label{{Name: "address", Value: operator}}, ) } diff --git a/x/oracle/abci/endblocker.go b/x/oracle/abci/endblocker.go index 12d8ef4a..c61729c2 100644 --- a/x/oracle/abci/endblocker.go +++ b/x/oracle/abci/endblocker.go @@ -42,13 +42,13 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { }() } - // Set all current active validators into the ValidatorRewardSet at - // the beginning of a new Slash Window. - if k.IsPeriodLastBlock(sdkCtx, params.SlashWindow+1) { - if err := k.SetValidatorRewardSet(sdkCtx); err != nil { - return err - } - } + // // Set all current active validators into the ValidatorRewardSet at + // // the beginning of a new Slash Window. + // if k.IsPeriodLastBlock(sdkCtx, params.SlashWindow+1) { + // if err := k.SetValidatorRewardSet(sdkCtx); err != nil { + // return err + // } + // } if k.IsPeriodLastBlock(sdkCtx, params.VotePeriod) { if k.PriceFeeder.Oracle != nil && k.PriceFeeder.AppConfig.Enable { @@ -82,11 +82,11 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { } } - // Slash oracle providers who missed voting over the threshold and reset - // miss counters of all validators at the last block of slash window. - if k.IsPeriodLastBlock(sdkCtx, params.SlashWindow) { - k.SlashAndResetMissCounters(sdkCtx) - } + // // Slash oracle providers who missed voting over the threshold and reset + // // miss counters of all validators at the last block of slash window. + // if k.IsPeriodLastBlock(sdkCtx, params.SlashWindow) { + // k.SlashAndResetMissCounters(sdkCtx) + // } k.PruneAllPrices(sdkCtx) // Prune expired elys prices @@ -114,14 +114,9 @@ func CalcPrices(ctx sdk.Context, params types.Params, k keeper.Keeper) error { return err } for _, v := range vals { - addrString := v.GetOperator() - addr, err := sdk.ValAddressFromBech32(addrString) - if err != nil { - return err - } power := v.GetConsensusPower(powerReduction) totalBondedPower += power - validatorClaimMap[addrString] = types.NewClaim(power, 0, 0, addr) + validatorClaimMap[v.GetOperator()] = types.NewClaim(power, 0, 0, v.GetOperator()) } // voteTargets defines the symbol (ticker) denoms that we require votes on @@ -195,30 +190,30 @@ func CalcPrices(ctx sdk.Context, params types.Params, k keeper.Keeper) error { } } - // Get the validators which can earn rewards in this Slash Window. - validatorRewardSet := k.GetValidatorRewardSet(ctx) - - // update miss counting & slashing - voteTargetsLen := len(params.MandatoryList) - claimSlice, rewardSlice := types.ClaimMapToSlices(validatorClaimMap, validatorRewardSet.ValidatorSet) - for _, claim := range claimSlice { - misses := util.SafeIntToUint64(voteTargetsLen - int(claim.MandatoryWinCount)) - if misses == 0 { - continue - } - - // Increase miss counter - k.SetMissCounter(ctx, claim.Recipient, k.GetMissCounter(ctx, claim.Recipient)+misses) - } - - // Distribute rewards to ballot winners - k.RewardBallotWinners( - ctx, - util.SafeUint64ToInt64(params.VotePeriod), - util.SafeUint64ToInt64(params.RewardDistributionWindow), - voteTargetDenoms, - rewardSlice, - ) + // // Get the validators which can earn rewards in this Slash Window. + // validatorRewardSet := k.GetValidatorRewardSet(ctx) + + // // update miss counting & slashing + // voteTargetsLen := len(params.MandatoryList) + // claimSlice, rewardSlice := types.ClaimMapToSlices(validatorClaimMap, validatorRewardSet.ValidatorSet) + // for _, claim := range claimSlice { + // misses := util.SafeIntToUint64(voteTargetsLen - int(claim.MandatoryWinCount)) + // if misses == 0 { + // continue + // } + + // // Increase miss counter + // k.SetMissCounter(ctx, claim.Recipient, k.GetMissCounter(ctx, claim.Recipient)+misses) + // } + + // // Distribute rewards to ballot winners + // k.RewardBallotWinners( + // ctx, + // util.SafeUint64ToInt64(params.VotePeriod), + // util.SafeUint64ToInt64(params.RewardDistributionWindow), + // voteTargetDenoms, + // rewardSlice, + // ) // Clear the ballot k.ClearBallots(ctx, params.VotePeriod) diff --git a/x/oracle/genesis.go b/x/oracle/genesis.go index a189e4be..274c87a4 100644 --- a/x/oracle/genesis.go +++ b/x/oracle/genesis.go @@ -37,7 +37,7 @@ func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, genState types.GenesisSt panic(err) } - keeper.SetMissCounter(ctx, operator, mc.MissCounter) + keeper.SetMissCounter(ctx, operator.String(), mc.MissCounter) } for _, ap := range genState.AggregateExchangeRatePrevotes { @@ -109,9 +109,9 @@ func ExportGenesis(ctx sdk.Context, keeper keeper.Keeper) *types.GenesisState { }) missCounters := []types.MissCounter{} - keeper.IterateMissCounters(ctx, func(operator sdk.ValAddress, missCounter uint64) (stop bool) { + keeper.IterateMissCounters(ctx, func(operator string, missCounter uint64) (stop bool) { missCounters = append(missCounters, types.MissCounter{ - ValidatorAddress: operator.String(), + ValidatorAddress: operator, MissCounter: missCounter, }) diff --git a/x/oracle/keeper/ballot_test.go b/x/oracle/keeper/ballot_test.go index 389b8696..c771ab5e 100644 --- a/x/oracle/keeper/ballot_test.go +++ b/x/oracle/keeper/ballot_test.go @@ -32,7 +32,7 @@ func (s *IntegrationTestSuite) TestBallot_OrganizeBallotByDenom() { Power: 1, Weight: 1, MandatoryWinCount: 1, - Recipient: valAddr, + Recipient: valAddr.String(), } res = s.app.OracleKeeper.OrganizeBallotByDenom(s.ctx, claimMap) require.Equal([]types.BallotDenom{ diff --git a/x/oracle/keeper/end_blocker.go b/x/oracle/keeper/end_blocker.go index f99707c2..d92b32ff 100644 --- a/x/oracle/keeper/end_blocker.go +++ b/x/oracle/keeper/end_blocker.go @@ -39,7 +39,7 @@ func (k *Keeper) RecordEndBlockMetrics(ctx sdk.Context) { return } - k.IterateMissCounters(ctx, func(operator sdk.ValAddress, missCounter uint64) bool { + k.IterateMissCounters(ctx, func(operator string, missCounter uint64) bool { metrics.RecordMissCounter(operator, missCounter) return false }) diff --git a/x/oracle/keeper/grpc_query.go b/x/oracle/keeper/grpc_query.go index 0c4f2050..5c84f800 100644 --- a/x/oracle/keeper/grpc_query.go +++ b/x/oracle/keeper/grpc_query.go @@ -134,7 +134,7 @@ func (q querier) MissCounter( ctx := sdk.UnwrapSDKContext(goCtx) return &types.QueryMissCounterResponse{ - MissCounter: q.GetMissCounter(ctx, valAddr), + MissCounter: q.GetMissCounter(ctx, valAddr.String()), }, nil } @@ -316,17 +316,18 @@ func (q querier) ValidatorRewardSet( goCtx context.Context, req *types.QueryValidatorRewardSet, ) (*types.QueryValidatorRewardSetResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "empty request") - } + // if req == nil { + // return nil, status.Error(codes.InvalidArgument, "empty request") + // } - ctx := sdk.UnwrapSDKContext(goCtx) + // ctx := sdk.UnwrapSDKContext(goCtx) - validatorRewardSet := q.GetValidatorRewardSet(ctx) + // validatorRewardSet := q.GetValidatorRewardSet(ctx) - return &types.QueryValidatorRewardSetResponse{ - Validators: validatorRewardSet, - }, nil + // return &types.QueryValidatorRewardSetResponse{ + // Validators: validatorRewardSet, + // }, nil + return &types.QueryValidatorRewardSetResponse{}, nil } func (q querier) PriceAll( diff --git a/x/oracle/keeper/grpc_query_test.go b/x/oracle/keeper/grpc_query_test.go index 254a5405..aab9ab4d 100644 --- a/x/oracle/keeper/grpc_query_test.go +++ b/x/oracle/keeper/grpc_query_test.go @@ -71,7 +71,7 @@ func (s *IntegrationTestSuite) TestQuerier_MissCounter() { s.Require().NoError(err) s.Require().Equal(res.MissCounter, uint64(0)) - s.app.OracleKeeper.SetMissCounter(s.ctx, valAddr, missCounter) + s.app.OracleKeeper.SetMissCounter(s.ctx, valAddr.String(), missCounter) res, err = s.queryClient.MissCounter(s.ctx.Context(), &types.QueryMissCounter{ ValidatorAddr: valAddr.String(), @@ -290,22 +290,22 @@ func (s *IntegrationTestSuite) TestQuerier_MedianDeviations() { s.Require().Equal(res.MedianDeviations, expected) } -func (s *IntegrationTestSuite) TestQuerier_ValidatorRewardSet() { - app, ctx := s.app, s.ctx - originalBlockHeight := ctx.BlockHeight() +// func (s *IntegrationTestSuite) TestQuerier_ValidatorRewardSet() { +// app, ctx := s.app, s.ctx +// originalBlockHeight := ctx.BlockHeight() - slashWindowBlock := int64(app.OracleKeeper.SlashWindow(ctx)) - ctx = ctx.WithBlockHeight(slashWindowBlock) - err := app.OracleKeeper.SetValidatorRewardSet(ctx) - s.Require().NoError(err) +// slashWindowBlock := int64(app.OracleKeeper.SlashWindow(ctx)) +// ctx = ctx.WithBlockHeight(slashWindowBlock) +// err := app.OracleKeeper.SetValidatorRewardSet(ctx) +// s.Require().NoError(err) - ctx = ctx.WithBlockHeight(slashWindowBlock + 20) - valRewardSetResp, err := s.queryClient.ValidatorRewardSet(ctx.Context(), &types.QueryValidatorRewardSet{}) - s.Require().NoError(err) - s.Require().Equal(3, len(valRewardSetResp.Validators.ValidatorSet)) +// ctx = ctx.WithBlockHeight(slashWindowBlock + 20) +// valRewardSetResp, err := s.queryClient.ValidatorRewardSet(ctx.Context(), &types.QueryValidatorRewardSet{}) +// s.Require().NoError(err) +// s.Require().Equal(3, len(valRewardSetResp.Validators.ValidatorSet)) - ctx = ctx.WithBlockHeight(originalBlockHeight) -} +// ctx = ctx.WithBlockHeight(originalBlockHeight) +// } func (s *IntegrationTestSuite) TestEmptyRequest() { q := keeper.NewQuerier(keeper.Keeper{}) diff --git a/x/oracle/keeper/migrations.go b/x/oracle/keeper/migrations.go index fe6c4af8..5b749d00 100644 --- a/x/oracle/keeper/migrations.go +++ b/x/oracle/keeper/migrations.go @@ -15,14 +15,14 @@ func NewMigrator(keeper *Keeper) Migrator { return Migrator{keeper: keeper} } -// MigrateValidatorSet fixes the validator set being stored as map -// causing non determinism by storing it as a list. -func (m Migrator) MigrateValidatorSet(ctx sdk.Context) error { - if err := m.keeper.SetValidatorRewardSet(ctx); err != nil { - return err - } - return nil -} +// // MigrateValidatorSet fixes the validator set being stored as map +// // causing non determinism by storing it as a list. +// func (m Migrator) MigrateValidatorSet(ctx sdk.Context) error { +// if err := m.keeper.SetValidatorRewardSet(ctx); err != nil { +// return err +// } +// return nil +// } // MigrateCurrencyPairProviders adds the price feeder // currency pair provider list. diff --git a/x/oracle/keeper/miss_counter.go b/x/oracle/keeper/miss_counter.go index c904c509..3937778e 100644 --- a/x/oracle/keeper/miss_counter.go +++ b/x/oracle/keeper/miss_counter.go @@ -10,7 +10,7 @@ import ( // GetMissCounter retrieves the # of vote periods missed in this oracle slash // window. -func (k Keeper) GetMissCounter(ctx sdk.Context, operator sdk.ValAddress) uint64 { +func (k Keeper) GetMissCounter(ctx sdk.Context, operator string) uint64 { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := store.Get(types.GetMissCounterKey(operator)) @@ -27,28 +27,28 @@ func (k Keeper) GetMissCounter(ctx sdk.Context, operator sdk.ValAddress) uint64 // SetMissCounter updates the # of vote periods missed in this oracle slash // window. -func (k Keeper) SetMissCounter(ctx sdk.Context, operator sdk.ValAddress, missCounter uint64) { +func (k Keeper) SetMissCounter(ctx sdk.Context, operator string, missCounter uint64) { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := k.cdc.MustMarshal(&gogotypes.UInt64Value{Value: missCounter}) store.Set(types.GetMissCounterKey(operator), bz) } // DeleteMissCounter removes miss counter for the validator. -func (k Keeper) DeleteMissCounter(ctx sdk.Context, operator sdk.ValAddress) { +func (k Keeper) DeleteMissCounter(ctx sdk.Context, operator string) { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store.Delete(types.GetMissCounterKey(operator)) } // IterateMissCounters iterates over the miss counters and performs a callback // function. -func (k Keeper) IterateMissCounters(ctx sdk.Context, handler func(sdk.ValAddress, uint64) bool) { +func (k Keeper) IterateMissCounters(ctx sdk.Context, handler func(string, uint64) bool) { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) iter := storetypes.KVStorePrefixIterator(store, types.KeyPrefixMissCounter) defer iter.Close() for ; iter.Valid(); iter.Next() { - operator := sdk.ValAddress(iter.Key()[2:]) + operator := string(iter.Key()[2:]) var missCounter gogotypes.UInt64Value k.cdc.MustUnmarshal(iter.Value(), &missCounter) diff --git a/x/oracle/keeper/miss_counter_test.go b/x/oracle/keeper/miss_counter_test.go index 9198d08b..f9d7136b 100644 --- a/x/oracle/keeper/miss_counter_test.go +++ b/x/oracle/keeper/miss_counter_test.go @@ -12,12 +12,12 @@ func (s *IntegrationTestSuite) TestMissCounter() { app, ctx := s.app, s.ctx missCounter := uint64(rand.Intn(100)) - s.Require().Equal(app.OracleKeeper.GetMissCounter(ctx, valAddr), uint64(0)) - app.OracleKeeper.SetMissCounter(ctx, valAddr, missCounter) - s.Require().Equal(app.OracleKeeper.GetMissCounter(ctx, valAddr), missCounter) + s.Require().Equal(app.OracleKeeper.GetMissCounter(ctx, valAddr.String()), uint64(0)) + app.OracleKeeper.SetMissCounter(ctx, valAddr.String(), missCounter) + s.Require().Equal(app.OracleKeeper.GetMissCounter(ctx, valAddr.String()), missCounter) - app.OracleKeeper.DeleteMissCounter(ctx, valAddr) - s.Require().Equal(app.OracleKeeper.GetMissCounter(ctx, valAddr), uint64(0)) + app.OracleKeeper.DeleteMissCounter(ctx, valAddr.String()) + s.Require().Equal(app.OracleKeeper.GetMissCounter(ctx, valAddr.String()), uint64(0)) } func (s *IntegrationTestSuite) TestIterateMissCounters() { @@ -29,13 +29,13 @@ func (s *IntegrationTestSuite) TestIterateMissCounters() { for _, mc := range missCounters { operator, _ := sdk.ValAddressFromBech32(mc.ValidatorAddress) - keeper.SetMissCounter(ctx, operator, mc.MissCounter) + keeper.SetMissCounter(ctx, operator.String(), mc.MissCounter) } newCounters := []types.MissCounter{} - keeper.IterateMissCounters(ctx, func(operator sdk.ValAddress, missCounter uint64) (stop bool) { + keeper.IterateMissCounters(ctx, func(operator string, missCounter uint64) (stop bool) { newCounters = append(newCounters, types.MissCounter{ - ValidatorAddress: operator.String(), + ValidatorAddress: operator, MissCounter: missCounter, }) diff --git a/x/oracle/keeper/reward.go b/x/oracle/keeper/reward.go index fb3bd6ea..002534f7 100644 --- a/x/oracle/keeper/reward.go +++ b/x/oracle/keeper/reward.go @@ -1,5 +1,6 @@ package keeper +/* import ( "fmt" @@ -114,3 +115,4 @@ func (k Keeper) RewardBallotWinners( panic(fmt.Errorf("failed to send coins to distribution module %w", err)) } } +*/ diff --git a/x/oracle/keeper/reward_test.go b/x/oracle/keeper/reward_test.go index cfdfc51a..deeabf42 100644 --- a/x/oracle/keeper/reward_test.go +++ b/x/oracle/keeper/reward_test.go @@ -1,5 +1,6 @@ package keeper_test +/* import ( "fmt" "math" @@ -16,8 +17,8 @@ func (s *IntegrationTestSuite) TestRewardBallotWinners() { // Add claim pools claims := []types.Claim{ - types.NewClaim(10, 0, 0, valAddr), - types.NewClaim(20, 0, 0, valAddr2), + types.NewClaim(10, 0, 0, valAddr.String()), + types.NewClaim(20, 0, 0, valAddr2.String()), } missCounters := []types.MissCounter{ @@ -27,7 +28,7 @@ func (s *IntegrationTestSuite) TestRewardBallotWinners() { for _, mc := range missCounters { operator, _ := sdk.ValAddressFromBech32(mc.ValidatorAddress) - app.OracleKeeper.SetMissCounter(ctx, operator, mc.MissCounter) + app.OracleKeeper.SetMissCounter(ctx, operator.String(), mc.MissCounter) } // Prepare reward pool @@ -73,8 +74,8 @@ func (s *IntegrationTestSuite) TestRewardBallotWinnersZeroMissCounters() { // Add claim pools claims := []types.Claim{ - types.NewClaim(10, 0, 0, valAddr), - types.NewClaim(20, 0, 0, valAddr2), + types.NewClaim(10, 0, 0, valAddr.String()), + types.NewClaim(20, 0, 0, valAddr2.String()), } // Prepare reward pool @@ -109,8 +110,8 @@ func (s *IntegrationTestSuite) TestRewardBallotWinnersZeroVoteTargets() { // Add claim pools claims := []types.Claim{ - types.NewClaim(10, 0, 0, valAddr), - types.NewClaim(20, 0, 0, valAddr2), + types.NewClaim(10, 0, 0, valAddr.String()), + types.NewClaim(20, 0, 0, valAddr2.String()), } app.OracleKeeper.RewardBallotWinners(ctx, (int64)(app.OracleKeeper.VotePeriod(ctx)), (int64)(app.OracleKeeper.RewardDistributionWindow(ctx)), []string{}, claims) @@ -143,3 +144,4 @@ func (s *IntegrationTestSuite) TestRewardBallotWinnersZeroClaims() { s.Require().Equal(sdkmath.LegacyZeroDec().TruncateInt(), outstandingRewardsVal1.AmountOf(types.OjoDenom)) s.Require().Equal(sdkmath.LegacyZeroDec().TruncateInt(), outstandingRewardsVal2.AmountOf(types.OjoDenom)) } +*/ diff --git a/x/oracle/keeper/reward_unit_test.go b/x/oracle/keeper/reward_unit_test.go index ca9d58e9..cf343b9a 100644 --- a/x/oracle/keeper/reward_unit_test.go +++ b/x/oracle/keeper/reward_unit_test.go @@ -1,5 +1,6 @@ package keeper +/* import ( "testing" @@ -22,3 +23,4 @@ func TestPrependOjoIfUnique(t *testing.T) { require.Equal(tc.out, prependOjoIfUnique(tc.in), i) } } +*/ diff --git a/x/oracle/keeper/slash.go b/x/oracle/keeper/slash.go index 24c13700..5cbd6998 100644 --- a/x/oracle/keeper/slash.go +++ b/x/oracle/keeper/slash.go @@ -1,5 +1,6 @@ package keeper +/* import ( "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/runtime" @@ -25,7 +26,7 @@ func (k Keeper) SlashAndResetMissCounters(ctx sdk.Context) { powerReduction = k.StakingKeeper.PowerReduction(ctx) ) - k.IterateMissCounters(ctx, func(operator sdk.ValAddress, missCounter uint64) bool { + k.IterateMissCounters(ctx, func(operator string, missCounter uint64) bool { validVotes := math.NewInt(possibleWinsPerSlashWindow - util.SafeUint64ToInt64(missCounter)) validVoteRate := math.LegacyNewDecFromInt(validVotes).QuoInt64(possibleWinsPerSlashWindow) @@ -109,3 +110,4 @@ func (k Keeper) GetValidatorRewardSet(ctx sdk.Context) types.ValidatorRewardSet return rewardSet } +*/ diff --git a/x/oracle/keeper/slash_test.go b/x/oracle/keeper/slash_test.go index 5cf6937f..e53f2e5c 100644 --- a/x/oracle/keeper/slash_test.go +++ b/x/oracle/keeper/slash_test.go @@ -1,5 +1,6 @@ package keeper_test +/* import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" @@ -139,3 +140,4 @@ func (s *IntegrationTestSuite) TestPossibleWinsPerSlashWindow() { }) } } +*/ diff --git a/x/oracle/types/ballot.go b/x/oracle/types/ballot.go index ab28e21c..2d65d282 100644 --- a/x/oracle/types/ballot.go +++ b/x/oracle/types/ballot.go @@ -5,7 +5,6 @@ import ( "sort" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" ) // VoteForTally is a convenience wrapper to reduce redundant lookup cost. @@ -157,11 +156,11 @@ type Claim struct { Power int64 Weight int64 MandatoryWinCount int64 - Recipient sdk.ValAddress + Recipient string } // NewClaim generates a Claim instance. -func NewClaim(power, weight, mandatoryWinCount int64, recipient sdk.ValAddress) Claim { +func NewClaim(power, weight, mandatoryWinCount int64, recipient string) Claim { return Claim{ Power: power, Weight: weight, @@ -180,7 +179,7 @@ func ClaimMapToSlices(claims map[string]Claim, rewardSet []string) ([]Claim, []C i := 0 j := 0 for _, claim := range claims { - if _, ok := rewardMap[claim.Recipient.String()]; ok { + if _, ok := rewardMap[claim.Recipient]; ok { r[j] = Claim{ Power: claim.Power, Weight: claim.Weight, @@ -198,10 +197,10 @@ func ClaimMapToSlices(claims map[string]Claim, rewardSet []string) ([]Claim, []C i++ } sort.Slice(c, func(i, j int) bool { - return c[i].Recipient.String() < c[j].Recipient.String() + return c[i].Recipient < c[j].Recipient }) sort.Slice(r, func(i, j int) bool { - return r[i].Recipient.String() < r[j].Recipient.String() + return r[i].Recipient < r[j].Recipient }) return c, r } diff --git a/x/oracle/types/ballot_test.go b/x/oracle/types/ballot_test.go index 61f277e7..69772b2e 100644 --- a/x/oracle/types/ballot_test.go +++ b/x/oracle/types/ballot_test.go @@ -372,15 +372,15 @@ func TestStandardDeviationUnsorted(t *testing.T) { func TestClaimMapToSlices(t *testing.T) { valAddresses := GenerateRandomValAddr(2) - claim1 := NewClaim(10, 1, 4, valAddresses[0]) - claim2 := NewClaim(10, 1, 4, valAddresses[1]) + claim1 := NewClaim(10, 1, 4, valAddresses[0].String()) + claim2 := NewClaim(10, 1, 4, valAddresses[1].String()) claimSlice, rewardSlice := ClaimMapToSlices( map[string]Claim{ "testClaim": claim1, "anotherClaim": claim2, }, []string{ - claim1.Recipient.String(), + claim1.Recipient, }, ) require.Contains(t, claimSlice, claim1, claim2) diff --git a/x/oracle/types/keys.go b/x/oracle/types/keys.go index 9dd9be91..f521b131 100644 --- a/x/oracle/types/keys.go +++ b/x/oracle/types/keys.go @@ -56,9 +56,8 @@ func GetFeederDelegationKey(v sdk.ValAddress) (key []byte) { } // GetMissCounterKey - stored by *Validator* address -func GetMissCounterKey(v sdk.ValAddress) (key []byte) { - key = append(key, KeyPrefixMissCounter...) - return append(key, address.MustLengthPrefix(v)...) +func GetMissCounterKey(v string) (key []byte) { + return util.ConcatBytes(0, KeyPrefixMissCounter, []byte(v)) } // GetAggregateExchangeRatePrevoteKey - stored by *Validator* address diff --git a/x/oracle/types/keys_test.go b/x/oracle/types/keys_test.go index 05b9f4ab..7dcc6d6a 100644 --- a/x/oracle/types/keys_test.go +++ b/x/oracle/types/keys_test.go @@ -67,7 +67,7 @@ func TestGetMissCounterKey(t *testing.T) { } for i, testCase := range testCases { - actualKey := types.GetMissCounterKey(testCase.val) + actualKey := types.GetMissCounterKey(testCase.val.String()) require.Equalf(t, testCase.expectedKey, actualKey, "test %d - expected key: %s should be the same as actual key: %s", i, testCase.expectedKey, actualKey) } } From 96c9128a74800951126cb701245ec2a420410d44 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 21 Jan 2025 19:29:46 -0500 Subject: [PATCH 30/77] calc price logs --- x/oracle/abci/endblocker.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x/oracle/abci/endblocker.go b/x/oracle/abci/endblocker.go index c61729c2..22613738 100644 --- a/x/oracle/abci/endblocker.go +++ b/x/oracle/abci/endblocker.go @@ -113,12 +113,14 @@ func CalcPrices(ctx sdk.Context, params types.Params, k keeper.Keeper) error { if err != nil { return err } + k.Logger(ctx).Info("vals", "vals", vals) for _, v := range vals { power := v.GetConsensusPower(powerReduction) + k.Logger(ctx).Info("power", "power", power) totalBondedPower += power validatorClaimMap[v.GetOperator()] = types.NewClaim(power, 0, 0, v.GetOperator()) } - + k.Logger(ctx).Info("totalBondedPower", "totalBondedPower", totalBondedPower) // voteTargets defines the symbol (ticker) denoms that we require votes on voteTargetDenoms := make([]string, 0) for _, v := range params.AcceptList { From 3937ff870a681bd037ae434d9b3ed1d14b95c876 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 21 Jan 2025 20:08:37 -0500 Subject: [PATCH 31/77] get rid of logs --- app/upgrades.go | 34 +++++++++++++++++----------------- x/oracle/abci/endblocker.go | 5 ++--- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/app/upgrades.go b/app/upgrades.go index bd6737da..a6bf818a 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -36,7 +36,7 @@ func (app App) RegisterUpgradeHandlers() { panic(err) } - app.registerUpgrade0_1_4(upgradeInfo) + // app.registerUpgrade0_1_4(upgradeInfo) app.registerUpgrade0_2_0(upgradeInfo) app.registerUpgrade0_2_1(upgradeInfo) app.registerUpgrade0_2_2(upgradeInfo) @@ -52,22 +52,22 @@ func (app App) RegisterUpgradeHandlers() { app.registerUpgrade0_5_1(upgradeInfo) } -// performs upgrade from v0.1.3 to v0.1.4 -func (app *App) registerUpgrade0_1_4(_ upgradetypes.Plan) { - const planName = "v0.1.4" - app.UpgradeKeeper.SetUpgradeHandler(planName, - func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { - sdkCtx := sdk.UnwrapSDKContext(ctx) - sdkCtx.Logger().Info("Upgrade handler execution", "name", planName) - upgrader := oraclekeeper.NewMigrator(&app.OracleKeeper) - err := upgrader.MigrateValidatorSet(sdkCtx) - if err != nil { - panic(err) - } - return app.mm.RunMigrations(ctx, app.configurator, fromVM) - }, - ) -} +// // performs upgrade from v0.1.3 to v0.1.4 +// func (app *App) registerUpgrade0_1_4(_ upgradetypes.Plan) { +// const planName = "v0.1.4" +// app.UpgradeKeeper.SetUpgradeHandler(planName, +// func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { +// sdkCtx := sdk.UnwrapSDKContext(ctx) +// sdkCtx.Logger().Info("Upgrade handler execution", "name", planName) +// upgrader := oraclekeeper.NewMigrator(&app.OracleKeeper) +// err := upgrader.MigrateValidatorSet(sdkCtx) +// if err != nil { +// panic(err) +// } +// return app.mm.RunMigrations(ctx, app.configurator, fromVM) +// }, +// ) +// } //nolint: all func (app *App) registerUpgrade0_2_0(upgradeInfo upgradetypes.Plan) { diff --git a/x/oracle/abci/endblocker.go b/x/oracle/abci/endblocker.go index 22613738..4c8b0dd0 100644 --- a/x/oracle/abci/endblocker.go +++ b/x/oracle/abci/endblocker.go @@ -113,14 +113,13 @@ func CalcPrices(ctx sdk.Context, params types.Params, k keeper.Keeper) error { if err != nil { return err } - k.Logger(ctx).Info("vals", "vals", vals) + for _, v := range vals { power := v.GetConsensusPower(powerReduction) - k.Logger(ctx).Info("power", "power", power) totalBondedPower += power validatorClaimMap[v.GetOperator()] = types.NewClaim(power, 0, 0, v.GetOperator()) } - k.Logger(ctx).Info("totalBondedPower", "totalBondedPower", totalBondedPower) + // voteTargets defines the symbol (ticker) denoms that we require votes on voteTargetDenoms := make([]string, 0) for _, v := range params.AcceptList { From 1a1f1de6662156e2a2457a67bd1690540f328444 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 22 Jan 2025 15:00:01 -0500 Subject: [PATCH 32/77] pf commit --- go.mod | 2 +- go.sum | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index d0a9afe8..7973dbdd 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250117232754-30acbe5395e4 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250122194622-5fa8373e2abd github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.0 diff --git a/go.sum b/go.sum index 80e60b1a..02cf4066 100644 --- a/go.sum +++ b/go.sum @@ -1303,6 +1303,10 @@ github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250115184516-62dd1f5d2498 h1: github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250115184516-62dd1f5d2498/go.mod h1:tNVvSZ/AvxvDqVctmun0K81unu4hEOSa0821xdbFiQQ= github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250117232754-30acbe5395e4 h1:Z4XnPHiRCtgL5XdS8zqTvnwDYrQ5O4/1AMPU7XVYF6g= github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250117232754-30acbe5395e4/go.mod h1:QcTohaAoGK0kPOzCWa50KevNRRNqi2mVa66nGiWWqUI= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250122181659-b0eeeeeada2b h1:GIPJwESmOi3LdRTvN08wo4+lp00AY4XFG5KHavQuBFw= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250122181659-b0eeeeeada2b/go.mod h1:QcTohaAoGK0kPOzCWa50KevNRRNqi2mVa66nGiWWqUI= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250122194622-5fa8373e2abd h1:zMJyVECBoOPxu/JTJl9eFJzUAm3zGqlorn8SoevssVI= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250122194622-5fa8373e2abd/go.mod h1:QcTohaAoGK0kPOzCWa50KevNRRNqi2mVa66nGiWWqUI= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= From 4fc4959e79e98a88b8ccf09a761643fe1a9dfc21 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Thu, 23 Jan 2025 10:40:45 -0500 Subject: [PATCH 33/77] pf commit --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 7973dbdd..2bde24c9 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250122194622-5fa8373e2abd + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250123153921-6283f6221230 github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.0 diff --git a/go.sum b/go.sum index 02cf4066..2a0202e2 100644 --- a/go.sum +++ b/go.sum @@ -1307,6 +1307,8 @@ github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250122181659-b0eeeeeada2b h1: github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250122181659-b0eeeeeada2b/go.mod h1:QcTohaAoGK0kPOzCWa50KevNRRNqi2mVa66nGiWWqUI= github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250122194622-5fa8373e2abd h1:zMJyVECBoOPxu/JTJl9eFJzUAm3zGqlorn8SoevssVI= github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250122194622-5fa8373e2abd/go.mod h1:QcTohaAoGK0kPOzCWa50KevNRRNqi2mVa66nGiWWqUI= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250123153921-6283f6221230 h1:Aj2zHQZXZOYk7ChasEt+Xf80RpNQZiuSQBl2mPPn6aI= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250123153921-6283f6221230/go.mod h1:QcTohaAoGK0kPOzCWa50KevNRRNqi2mVa66nGiWWqUI= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= From 084d1c9a89c857ccd9c0279107c3517a775fe4bc Mon Sep 17 00:00:00 2001 From: rbajollari Date: Fri, 24 Jan 2025 15:28:35 -0500 Subject: [PATCH 34/77] linting --- go.mod | 6 +- go.sum | 328 +-------------------------------- pricefeeder/pricefeeder.go | 2 +- x/oracle/abci/endblocker.go | 12 +- x/oracle/abci/proposal.go | 4 +- x/oracle/abci/voteextension.go | 4 +- x/oracle/keeper/msg_server.go | 6 +- x/oracle/types/errors.go | 2 +- 8 files changed, 20 insertions(+), 344 deletions(-) diff --git a/go.mod b/go.mod index 2bde24c9..ea54486b 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250123153921-6283f6221230 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250124012327-caf66a7b2f71 github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.0 @@ -67,7 +67,6 @@ require ( connectrpc.com/otelconnect v0.7.0 // indirect cosmossdk.io/collections v0.4.0 // indirect cosmossdk.io/depinject v1.0.0 // indirect - cosmossdk.io/simapp v0.0.0-20240118210941-3897926e722e // indirect dario.cat/mergo v1.0.0 // indirect filippo.io/edwards25519 v1.1.0 // indirect github.com/4meepo/tagalign v1.3.4 // indirect @@ -96,7 +95,6 @@ require ( github.com/ashanbrown/forbidigo v1.6.0 // indirect github.com/ashanbrown/makezero v1.1.1 // indirect github.com/aws/aws-sdk-go v1.44.245 // indirect - github.com/bandprotocol/bandchain-packet v0.0.2 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect @@ -134,7 +132,6 @@ require ( github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/iavl v1.2.0 // indirect - github.com/cosmos/ibc-apps/modules/ibc-hooks/v8 v8.0.0-20240904212233-8cb681e31589 // indirect github.com/cosmos/ics23/go v0.11.0 // indirect github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect @@ -158,7 +155,6 @@ require ( github.com/docker/go-units v0.5.0 // indirect github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.7.0 // indirect - github.com/elys-network/elys v0.51.1-0.20241126164143-99bd50ba942e // indirect github.com/emicklei/dot v1.6.2 // indirect github.com/ettle/strcase v0.2.0 // indirect github.com/fatih/color v1.17.0 // indirect diff --git a/go.sum b/go.sum index 2a0202e2..8352fcf5 100644 --- a/go.sum +++ b/go.sum @@ -106,7 +106,6 @@ cloud.google.com/go/domains v0.6.0/go.mod h1:T9Rz3GasrpYk6mEGHh4rymIhjlnIuB4ofT1 cloud.google.com/go/domains v0.7.0/go.mod h1:PtZeqS1xjnXuRPKE/88Iru/LdfoRyEHYA9nFQf4UKpg= cloud.google.com/go/edgecontainer v0.1.0/go.mod h1:WgkZ9tp10bFxqO8BLPqv2LlfmQF1X8lZqwW4r1BTajk= cloud.google.com/go/edgecontainer v0.2.0/go.mod h1:RTmLijy+lGpQ7BXuTDa4C4ssxyXT34NIuHIgKuP4s5w= -cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk= cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg= cloud.google.com/go/gaming v1.5.0/go.mod h1:ol7rGcxP/qHTRQE/RO4bxkXq+Fix0j6D4LFPzYTIrDM= @@ -213,8 +212,6 @@ cosmossdk.io/log v1.4.1 h1:wKdjfDRbDyZRuWa8M+9nuvpVYxrEOwbD/CA8hvhU8QM= cosmossdk.io/log v1.4.1/go.mod h1:k08v0Pyq+gCP6phvdI6RCGhLf/r425UT6Rk/m+o74rU= cosmossdk.io/math v1.4.0 h1:XbgExXFnXmF/CccPPEto40gOO7FpWu9yWNAZPN3nkNQ= cosmossdk.io/math v1.4.0/go.mod h1:O5PkD4apz2jZs4zqFdTr16e1dcaQCc5z6lkEnrrppuk= -cosmossdk.io/simapp v0.0.0-20240118210941-3897926e722e h1:prrEM8wTWf6Rv0XchutuUtWfWlQHG4G3OylkTYgPlNk= -cosmossdk.io/simapp v0.0.0-20240118210941-3897926e722e/go.mod h1:MoWto/xnPVt23TgkMEp5Rssw9Z7sV7VUQb8j5/y+fXY= cosmossdk.io/store v1.1.1 h1:NA3PioJtWDVU7cHHeyvdva5J/ggyLDkyH0hGHl2804Y= cosmossdk.io/store v1.1.1/go.mod h1:8DwVTz83/2PSI366FERGbWSH7hL6sB7HbYp8bqksNwM= cosmossdk.io/tools/confix v0.1.2 h1:2hoM1oFCNisd0ltSAAZw2i4ponARPmlhuNu3yy0VwI4= @@ -232,14 +229,12 @@ cosmossdk.io/x/upgrade v0.1.4/go.mod h1:9v0Aj+fs97O+Ztw+tG3/tp5JSlrmT7IcFhAebQHm dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -filippo.io/edwards25519 v1.0.0-beta.2/go.mod h1:X+pm78QAUPtFLi1z9PYIlS/bdDnvbCOGKtZ+ACWEf7o= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= github.com/4meepo/tagalign v1.3.4 h1:P51VcvBnf04YkHzjfclN6BbsopfJR5rxs1n+5zHt+w8= github.com/4meepo/tagalign v1.3.4/go.mod h1:M+pnkHH2vG8+qhE5bVc/zeP7HS/j910Fwa9TUSyZVI0= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= -github.com/99designs/keyring v1.1.6/go.mod h1:16e0ds7LGQQcT59QqkTg72Hh5ShM51Byv5PEmW6uoRU= github.com/99designs/keyring v1.2.2 h1:pZd3neh/EmUzWONb35LxQfvuY7kiSXAq3HQd97+XBn0= github.com/99designs/keyring v1.2.2/go.mod h1:wes/FrByc8j7lFOAGLGSNEg8f/PaI3cgTBqhFkHUrPk= github.com/Abirdcfly/dupword v0.0.14 h1:3U4ulkc8EUo+CaT105/GJ1BQwtgyj6+VaBVbAX11Ba8= @@ -250,32 +245,16 @@ github.com/Antonboom/nilnil v0.1.9 h1:eKFMejSxPSA9eLSensFmjW2XTgTwJMjZ8hUHtV4s/S github.com/Antonboom/nilnil v0.1.9/go.mod h1:iGe2rYwCq5/Me1khrysB4nwI7swQvjclR8/YRPl5ihQ= github.com/Antonboom/testifylint v1.4.3 h1:ohMt6AHuHgttaQ1xb6SSnxCeK4/rnK7KKzbvs7DmEck= github.com/Antonboom/testifylint v1.4.3/go.mod h1:+8Q9+AOLsz5ZiQiiYujJKs9mNz398+M6UgslP4qgJLA= -github.com/Azure/azure-pipeline-go v0.2.1/go.mod h1:UGSo8XybXnIGZ3epmeBw7Jdz+HiUVpqIlpz/HKHylF4= -github.com/Azure/azure-pipeline-go v0.2.2/go.mod h1:4rQ/NZncSvGqNkkOsNpOU1tgoNuIlp9AfUH5G1tvCHc= -github.com/Azure/azure-storage-blob-go v0.7.0/go.mod h1:f9YQKtsG1nMisotuTPpO0tjNuEjKRYAcJU8/ydDI++4= github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= -github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= -github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0= -github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc= -github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA= -github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g= -github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= -github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= -github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM= -github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= -github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c h1:pxW6RcqyfI9/kWtOwnv/G+AzdKuy2ZrqINhenH4HyNs= github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4= github.com/Crocmagnon/fatcontext v0.4.0 h1:4ykozu23YHA0JB6+thiuEv7iT6xq995qS1vcuWZq0tg= github.com/Crocmagnon/fatcontext v0.4.0/go.mod h1:ZtWrXkgyfsYPzS6K3O88va6t2GEglG93vnII/F94WC0= github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/DataDog/zstd v1.4.1/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= -github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= github.com/DataDog/zstd v1.5.5 h1:oWf5W7GtOLgp6bciQYDmhHHjdhYkALu6S/5Ni9ZgSvQ= github.com/DataDog/zstd v1.5.5/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 h1:sHglBQTwgx+rWPdisA5ynNEsoARbiCBOyGcJM4/OzsM= @@ -294,15 +273,10 @@ github.com/OpenPeeDeeP/depguard/v2 v2.2.0 h1:vDfG60vDtIuf0MEOhmLlLLSzqaRM8EMcgJP github.com/OpenPeeDeeP/depguard/v2 v2.2.0/go.mod h1:CIzddKRvLBC4Au5aYP/i3nyaWQ+ClszLIuVocRiCYFQ= github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= -github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= -github.com/VictoriaMetrics/fastcache v1.5.7/go.mod h1:ptDBkNMQI4RtmVo8VS/XwRY6RoTu1dAWCbrk+6WsEM8= github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= -github.com/Workiva/go-datastructures v1.0.52/go.mod h1:Z+F2Rca0qCsVYDS8z7bAGm8f3UkzuWYS/oBZz5a7VVA= -github.com/Zilliqa/gozilliqa-sdk v1.2.1-0.20201201074141-dd0ecada1be6/go.mod h1:eSYp2T6f0apnuW8TzhV3f6Aff2SE8Dwio++U4ha4yEM= github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= -github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= github.com/alecthomas/assert/v2 v2.2.2 h1:Z/iVC0xZfWTaFNE6bA3z07T86hd45Xe2eLt6WVy2bbk= github.com/alecthomas/assert/v2 v2.2.2/go.mod h1:pXcQ2Asjp247dahGEmsZ6ru0UVwnkhktn7S0bBDLxvQ= @@ -321,17 +295,13 @@ github.com/alexkohler/prealloc v1.0.0 h1:Hbq0/3fJPQhNkN0dR95AVrr6R7tou91y0uHG5pO github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE= github.com/alingse/asasalint v0.0.11 h1:SFwnQXJ49Kx/1GghOFz1XGqHYKp21Kq1nHad/0WQRnw= github.com/alingse/asasalint v0.0.11/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqrSP7t/cW5+I= -github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/antlr4-go/antlr/v4 v4.13.0 h1:lxCg3LAv+EUK6t1i0y1V6/SLeUi0eKEKdhQAlS8TVTI= github.com/antlr4-go/antlr/v4 v4.13.0/go.mod h1:pfChB/xh/Unjila75QW7+VU4TSnWnnk9UTnmpPaOR2g= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/aristanetworks/goarista v0.0.0-20170210015632-ea17b1a17847/go.mod h1:D/tb0zPVXnP7fmsLZjtdUhSsumbK/ij54UXjjVgMGxQ= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= -github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-metrics v0.3.9/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= @@ -341,14 +311,11 @@ github.com/ashanbrown/forbidigo v1.6.0/go.mod h1:Y8j9jy9ZYAEHXdu723cUlraTqbzjKF1 github.com/ashanbrown/makezero v1.1.1 h1:iCQ87C0V0vSyO+M9E/FZYbu65auqH0lnsOkf5FcB28s= github.com/ashanbrown/makezero v1.1.1/go.mod h1:i1bJLCRSCHOcOa9Y6MyF2FTfMZMFdHvxKHxgO5Z1axI= github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= -github.com/aws/aws-sdk-go v1.25.48/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= github.com/aws/aws-sdk-go v1.44.245 h1:KtY2s4q31/kn33AdV63R5t77mdxsI7rq3YT7Mgo805M= github.com/aws/aws-sdk-go v1.44.245/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= -github.com/bandprotocol/bandchain-packet v0.0.2 h1:FySqsXp6sIh0kHiNBrkvt5CRmsrqTN2Bd26U7cebKxg= -github.com/bandprotocol/bandchain-packet v0.0.2/go.mod h1:pk/wJxznWERdDVU2WWpzt8Tr0WvDSkT66JDYVdIECAo= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= @@ -361,8 +328,6 @@ github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2 github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bits-and-blooms/bitset v1.10.0 h1:ePXTeiPEazB5+opbv5fr8umg2R/1NlzgDsyepwsSr88= github.com/bits-and-blooms/bitset v1.10.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= -github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= -github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= github.com/bkielbasa/cyclop v1.2.1 h1:AeF71HZDob1P2/pRm1so9cd1alZnrpyc4q2uP2l0gJY= github.com/bkielbasa/cyclop v1.2.1/go.mod h1:K/dT/M0FPAiYjBgQGau7tz+3TMh4FWAEqlMhzFWCrgM= github.com/blizzy78/varnamelen v0.8.0 h1:oqSblyuQvFsW1hbBHh1zfwrKe3kcSj0rnXkKzsQ089M= @@ -373,32 +338,12 @@ github.com/breml/bidichk v0.2.7 h1:dAkKQPLl/Qrk7hnP6P+E0xOodrq8Us7+U0o4UBOAlQY= github.com/breml/bidichk v0.2.7/go.mod h1:YodjipAGI9fGcYM7II6wFvGhdMYsC5pHDlGzqvEW3tQ= github.com/breml/errchkjson v0.3.6 h1:VLhVkqSBH96AvXEyclMR37rZslRrY2kcyq+31HCsVrA= github.com/breml/errchkjson v0.3.6/go.mod h1:jhSDoFheAF2RSDOlCfhHO9KqhZgAYLyvHe7bRCX8f/U= -github.com/btcsuite/btcd v0.0.0-20171128150713-2e60448ffcc6/go.mod h1:Dmm/EzmjnCiweXmzRIAiUWCInVmPgjkzgv5k4tVyXiQ= -github.com/btcsuite/btcd v0.0.0-20190115013929-ed77733ec07d/go.mod h1:d3C0AkH6BRcvO8T0UEPu53cnw4IbV63x1bEjildYhO0= -github.com/btcsuite/btcd v0.0.0-20190315201642-aa6e0f35703c/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= -github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= -github.com/btcsuite/btcd v0.21.0-beta/go.mod h1:ZSWyehm27aAuS9bvkATT+Xte3hjHZ+MRgMY/8NJ7K94= -github.com/btcsuite/btcd v0.22.0-beta h1:LTDpDKUM5EeOFBPM8IXpinEcmZ6FWfNZbE3lfrfdnWo= -github.com/btcsuite/btcd v0.22.0-beta/go.mod h1:9n5ntfhhHQBIhUvlhDvD3Qg6fRUj4jkN0VB8L8svzOA= github.com/btcsuite/btcd/btcec/v2 v2.3.4 h1:3EJjcN70HCu/mwqlUsGK8GcNVyLVxFDlWurTXGPFfiQ= github.com/btcsuite/btcd/btcec/v2 v2.3.4/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= github.com/btcsuite/btcd/btcutil v1.1.6 h1:zFL2+c3Lb9gEgqKNzowKUPQNb8jV7v5Oaodi/AYFd6c= github.com/btcsuite/btcd/btcutil v1.1.6/go.mod h1:9dFymx8HpuLqBnsPELrImQeTQfKBQqzqGbbV3jK55aE= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2 h1:KdUfX2zKommPRa+PD0sWZUyXe9w277ABlgELO7H04IM= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= -github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= -github.com/btcsuite/btcutil v0.0.0-20180706230648-ab6388e0c60a/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= -github.com/btcsuite/btcutil v0.0.0-20190207003914-4c204d697803/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= -github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= -github.com/btcsuite/btcutil v1.0.2/go.mod h1:j9HUFwoQRsZL3V4n+qG+CUnEGHOarIxfC3Le2Yhbcts= -github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce/go.mod h1:0DVlHczLPewLcPGEIeUEzfOJhqGPQ0mJJRDBtD307+o= -github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= -github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= -github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I= -github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= -github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= -github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= -github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= github.com/bufbuild/buf v1.31.0 h1:YHLGIr8bjcLaTCIw0+/bCAvJLiR8u46QTwKvn7miSEg= github.com/bufbuild/buf v1.31.0/go.mod h1:LlxpG2LF33f1Ixw29BTt0pyLriLzg3rXY1K9XQVHSio= github.com/bufbuild/protocompile v0.9.0 h1:DI8qLG5PEO0Mu1Oj51YFPqtx6I3qYXUAhJVJ/IzAVl0= @@ -422,7 +367,6 @@ github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInq github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= @@ -450,7 +394,6 @@ github.com/ckaznocha/intrange v0.1.2 h1:3Y4JAxcMntgb/wABQ6e8Q8leMd26JbX2790lIss9 github.com/ckaznocha/intrange v0.1.2/go.mod h1:RWffCw/vKBwHeOEwWdCikAtY0q4gGt8VhJZEEA5n+RE= github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cloudflare/cloudflare-go v0.10.2-0.20190916151808-a80f83b9add9/go.mod h1:1MxXX1Ux4x6mqPmjkUgTP1CdXIBXKX7T+Jk9Gxrmx+U= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= @@ -478,42 +421,28 @@ github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/coinbase/rosetta-sdk-go v0.6.10/go.mod h1:J/JFMsfcePrjJZkwQFLh+hJErkAmdm9Iyy3D5Y0LfXo= github.com/cometbft/cometbft v0.38.12 h1:OWsLZN2KcSSFe8bet9xCn07VwhBnavPea3VyPnNq1bg= github.com/cometbft/cometbft v0.38.12/go.mod h1:GPHp3/pehPqgX1930HmK1BpBLZPxB75v/dZg8Viwy+o= github.com/cometbft/cometbft-db v0.12.0 h1:v77/z0VyfSU7k682IzZeZPFZrQAKiQwkqGN0QzAjMi0= github.com/cometbft/cometbft-db v0.12.0/go.mod h1:aX2NbCrjNVd2ZajYxt1BsiFf/Z+TQ2MN0VxdicheYuw= -github.com/confio/ics23/go v0.0.0-20200817220745-f173e6211efb/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= -github.com/confio/ics23/go v0.6.3/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= -github.com/confio/ics23/go v0.6.6/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= github.com/containerd/continuity v0.4.3 h1:6HVkalIp+2u1ZLH1J/pYX2oBVXlJZvh1X1A7bEZ9Su8= github.com/containerd/continuity v0.4.3/go.mod h1:F6PTNCKepoxEaXLQp3wDAjygEnImnZ/7o4JzpodfroQ= github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I= github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo= github.com/containerd/stargz-snapshotter/estargz v0.15.1 h1:eXJjw9RbkLFgioVaTG+G/ZW/0kEe2oEKCdS/ZxIyoCU= github.com/containerd/stargz-snapshotter/estargz v0.15.1/go.mod h1:gr2RNwukQ/S9Nv33Lt6UC7xEx58C+LHRdoqbEKjz1Kk= -github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= -github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= github.com/cosmos/cosmos-db v1.0.2 h1:hwMjozuY1OlJs/uh6vddqnk9j7VamLv+0DBlbEXbAKs= github.com/cosmos/cosmos-db v1.0.2/go.mod h1:Z8IXcFJ9PqKK6BIsVOB3QXtkKoqUOp1vRvPT39kOXEA= github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= -github.com/cosmos/cosmos-sdk v0.43.0/go.mod h1:ctcrTEAhei9s8O3KSNvL0dxe+fVQGp07QyRb/7H9JYE= github.com/cosmos/cosmos-sdk v0.50.9 h1:gt2usjz0H0qW6KwAxWw7ZJ3XU8uDwmhN+hYG3nTLeSg= github.com/cosmos/cosmos-sdk v0.50.9/go.mod h1:TMH6wpoYBcg7Cp5BEg8fneLr+8XloNQkf2MRNF9V6JE= -github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= @@ -521,28 +450,17 @@ github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU= github.com/cosmos/gogoproto v1.7.0 h1:79USr0oyXAbxg3rspGh/m4SWNyoz/GLaAh0QlCe2fro= github.com/cosmos/gogoproto v1.7.0/go.mod h1:yWChEv5IUEYURQasfyBW5ffkMHR/90hiHgbNgrtp4j0= -github.com/cosmos/iavl v0.15.0-rc3.0.20201009144442-230e9bdf52cd/go.mod h1:3xOIaNNX19p0QrX0VqWa6voPRoJRGGYtny+DH8NEPvE= -github.com/cosmos/iavl v0.15.0-rc5/go.mod h1:WqoPL9yPTQ85QBMT45OOUzPxG/U/JcJoN7uMjgxke/I= -github.com/cosmos/iavl v0.15.3/go.mod h1:OLjQiAQ4fGD2KDZooyJG9yz+p2ao2IAYSbke8mVvSA4= -github.com/cosmos/iavl v0.16.0/go.mod h1:2A8O/Jz9YwtjqXMO0CjnnbTYEEaovE8jWcwrakH3PoE= github.com/cosmos/iavl v1.2.0 h1:kVxTmjTh4k0Dh1VNL046v6BXqKziqMDzxo93oh3kOfM= github.com/cosmos/iavl v1.2.0/go.mod h1:HidWWLVAtODJqFD6Hbne2Y0q3SdxByJepHUOeoH4LiI= -github.com/cosmos/ibc-apps/modules/ibc-hooks/v8 v8.0.0-20240904212233-8cb681e31589 h1:07Phc7T7T+xsrAg3wArlSxjye5usg4ECUwEN2cD+fsA= -github.com/cosmos/ibc-apps/modules/ibc-hooks/v8 v8.0.0-20240904212233-8cb681e31589/go.mod h1:9+Z14xz3Y+5uEn5i1CvLcDN1aTthEhYUdI7pphySkY8= -github.com/cosmos/ibc-go v1.0.0/go.mod h1:2wHKQUa+BLJMEyN635KrHfmTTwSNHBtXcqdY8JWGuXA= github.com/cosmos/ibc-go/modules/capability v1.0.1 h1:ibwhrpJ3SftEEZRxCRkH0fQZ9svjthrX2+oXdZvzgGI= github.com/cosmos/ibc-go/modules/capability v1.0.1/go.mod h1:rquyOV262nGJplkumH+/LeYs04P3eV8oB7ZM4Ygqk4E= github.com/cosmos/ibc-go/v8 v8.5.1 h1:3JleEMKBjRKa3FeTKt4fjg22za/qygLBo7mDkoYTNBs= github.com/cosmos/ibc-go/v8 v8.5.1/go.mod h1:P5hkAvq0Qbg0h18uLxDVA9q1kOJ0l36htMsskiNwXbo= github.com/cosmos/ics23/go v0.11.0 h1:jk5skjT0TqX5e5QJbEnwXIS2yI2vnmLOgpQPeM5RtnU= github.com/cosmos/ics23/go v0.11.0/go.mod h1:A8OjxPE67hHST4Icw94hOxxFEJMBG031xIGF/JHNIY0= -github.com/cosmos/ledger-cosmos-go v0.11.1/go.mod h1:J8//BsAGTo3OC/vDLjMRFLW6q0WAaXvHnVc7ZmE8iUY= github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= -github.com/cosmos/ledger-go v0.9.2/go.mod h1:oZJ2hHAZROdlHiwTg4t7kP+GKIIkBT+o6c9QWFanOyI= -github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creachadair/atomicfile v0.3.3 h1:yJlDq8qk9QmD/6ol+jq1X4bcoLNVdYq95+owOnauziE= @@ -559,45 +477,34 @@ github.com/curioswitch/go-reassign v0.2.0 h1:G9UZyOcpk/d7Gd6mqYgd8XYWFMw/znxwGDU github.com/curioswitch/go-reassign v0.2.0/go.mod h1:x6OpXuWvgfQaMGks2BZybTngWjT84hqJfKoO8Tt/Roc= github.com/daixiang0/gci v0.13.4 h1:61UGkmpoAcxHM2hhNkZEf5SzwQtWJXTSws7jaPyqwlw= github.com/daixiang0/gci v0.13.4/go.mod h1:12etP2OniiIdP4q+kjUGrC/rUagga7ODbqsom5Eo5Yk= -github.com/danieljoos/wincred v1.0.2/go.mod h1:SnuYRW9lp1oJrZX/dXJqr0cPK5gYXqx3EJbmjhLdK9U= github.com/danieljoos/wincred v1.2.1 h1:dl9cBrupW8+r5250DYkYxocLeZ1Y4vB1kxgtjxw8GQs= github.com/danieljoos/wincred v1.2.1/go.mod h1:uGaFL9fDn3OLTvzCGulzE+SzjEe5NGlh5FdCcyfPwps= -github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/deckarep/golang-set v0.0.0-20180603214616-504e848d77ea/go.mod h1:93vsz/8Wt4joVM7c2AVqh+YRMiUSc14yDtF28KmMOgQ= github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= -github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= github.com/denis-tingaikin/go-header v0.5.0 h1:SRdnP5ZKvcO9KKRP1KJrhFR3RrlGuD+42t4429eC9k8= github.com/denis-tingaikin/go-header v0.5.0/go.mod h1:mMenU5bWrok6Wl2UsZjy+1okegmwQ3UgWl4V1D8gjlY= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= -github.com/dgraph-io/badger/v2 v2.2007.1/go.mod h1:26P/7fbL4kUZVEVKLAKXkBXKOydDmM2p1e+NhhnBCAE= -github.com/dgraph-io/badger/v2 v2.2007.2/go.mod h1:26P/7fbL4kUZVEVKLAKXkBXKOydDmM2p1e+NhhnBCAE= github.com/dgraph-io/badger/v4 v4.2.0 h1:kJrlajbXXL9DFTNuhhu9yCx7JJa4qpYWxtE8BzuWsEs= github.com/dgraph-io/badger/v4 v4.2.0/go.mod h1:qfCqhPoWDFJRx1gp5QwwyGo8xk1lbHUxvK9nK0OGAak= -github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= -github.com/dgraph-io/ristretto v0.0.3/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= -github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk= github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= -github.com/dlclark/regexp2 v1.2.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= github.com/docker/cli v26.1.4+incompatible h1:I8PHdc0MtxEADqYJZvhBrW9bo8gawKwwenxRM7/rLu8= github.com/docker/cli v26.1.4+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk= github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker v27.1.1+incompatible h1:hO/M4MtV36kzKldqnA37IWhebRA+LnqqcqDja6kVaKY= github.com/docker/docker v27.1.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker-credential-helpers v0.8.1 h1:j/eKUktUltBtMzKqmfLB0PAgqYyMHOp5vfsD1807oKo= @@ -606,25 +513,18 @@ github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/dop251/goja v0.0.0-20200721192441-a695b0cdd498/go.mod h1:Mw6PkjjMXWbTj+nnj4s3QPXq1jaT0s5pC0iFD4+BOAA= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= -github.com/dvsekhvalnov/jose2go v0.0.0-20200901110807-248326c1351b/go.mod h1:7BvyPhdbLxMXIYTFPLsyJRFMsKmOZnQmzh6Gb+uquuM= github.com/dvsekhvalnov/jose2go v1.7.0 h1:bnQc8+GMnidJZA8zc6lLEAb4xNrIqHwO+9TzqvtQZPo= github.com/dvsekhvalnov/jose2go v1.7.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= -github.com/dvyukov/go-fuzz v0.0.0-20200318091601-be3528f3a813/go.mod h1:11Gm+ccJnvAhCNLlf5+cS9KjtbaD5I5zaZpFMsTHWTw= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= -github.com/edsrzf/mmap-go v0.0.0-20160512033002-935e0e8a636c/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= -github.com/elys-network/elys v0.51.1-0.20241126164143-99bd50ba942e h1:lbUdhoZYxp5Q0tYGmnj0HTw+9TXUrWFfow52Jo0fx/0= -github.com/elys-network/elys v0.51.1-0.20241126164143-99bd50ba942e/go.mod h1:vZBFu/AoxShUfC/swiMqVNkIbxHJgPpI79XJPnAyFDQ= github.com/emicklei/dot v1.6.2 h1:08GN+DD79cy/tzN6uLCT84+2Wk9u+wvqP+Hkx/dIR8A= github.com/emicklei/dot v1.6.2/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= -github.com/enigmampc/btcutil v1.0.3-0.20200723161021-e2fb6adb2a25/go.mod h1:hTr8+TLQmkUkgcuh3mcr5fjrT9c64ZzsBCdCEC6UppY= github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= @@ -638,17 +538,11 @@ github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go. github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v1.1.0 h1:tntQDh69XqOCOZsDz0lVJQez/2L6Uu2PdjCQwWCJ3bM= github.com/envoyproxy/protoc-gen-validate v1.1.0/go.mod h1:sXRDRVmzEbkM7CVcM06s9shE/m23dg3wzjl0UWqJ2q4= -github.com/ethereum/go-ethereum v1.9.25/go.mod h1:vMkFiYLHI4tgPw4k2j4MHKoovchFE8plZ0M9VMk4/oM= github.com/ethereum/go-ethereum v1.14.2 h1:3ketymsXTLiXmtnCrXab/EUsV+X8KhwUqv572TriDaU= github.com/ethereum/go-ethereum v1.14.2/go.mod h1:1STrq471D0BQbCX9He0hUj4bHxX2k6mt5nOQJhDNOJ8= github.com/ettle/strcase v0.2.0 h1:fGNiVF21fHXpX1niBgk0aROov1LagYsOwV/xqKDKR/Q= github.com/ettle/strcase v0.2.0/go.mod h1:DajmHElDSaX76ITe3/VHVyMin4LWSJN5Z909Wp+ED1A= -github.com/facebookgo/ensure v0.0.0-20160127193407-b4ab57deab51/go.mod h1:Yg+htXGokKKdzcwhuNDwVvN+uBxDGXJ7G/VN1d8fa64= -github.com/facebookgo/stack v0.0.0-20160209184415-751773369052/go.mod h1:UbMTZqLaRiH3MsBH8va0n7s1pQYcu3uTb8G4tygF4Zg= -github.com/facebookgo/subset v0.0.0-20150612182917-8dac2c3c4870/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0= -github.com/fatih/color v1.3.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= @@ -657,12 +551,10 @@ github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4 github.com/felixge/fgprof v0.9.3/go.mod h1:RdbpDgzqYVh/T9fPELJyV7EYJuHB55UTEULNun8eiPw= github.com/felixge/fgprof v0.9.4 h1:ocDNwMFlnA0NU0zSB3I52xkO4sFXk80VK9lXjLClu88= github.com/felixge/fgprof v0.9.4/go.mod h1:yKl+ERSa++RYOs32d8K6WEXCB4uXdLls4ZaZPpayhMM= -github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/firefart/nonamedreturns v1.0.5 h1:tM+Me2ZaXs8tfdDw3X6DOX++wMCOqzYUho6tUTYIdRA= github.com/firefart/nonamedreturns v1.0.5/go.mod h1:gHJjDqhGM4WyPt639SOZs+G89Ko7QKH5R5BhnO6xJhw= -github.com/fjl/memsize v0.0.0-20180418122429-ca190fb6ffbc/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= @@ -677,7 +569,6 @@ github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo= github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU= github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA= -github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff/go.mod h1:x7DCsMOv1taUwEWCzT4cmDeAkigA5/QCwUodaVOe8Ww= github.com/getsentry/sentry-go v0.27.0 h1:Pv98CIbtB3LkMWmXi4Joa5OOcwbmnX88sF5qbK3r3Ps= github.com/getsentry/sentry-go v0.27.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= @@ -716,7 +607,6 @@ github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8= github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= @@ -731,7 +621,6 @@ github.com/go-playground/validator/v10 v10.15.0 h1:nDU5XeOKtB3GEa+uB7GNYwhVKsgjA github.com/go-playground/validator/v10 v10.15.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= github.com/go-quicktest/qt v1.101.0 h1:O1K29Txy5P2OK0dGo59b7b0LR6wKfIhttaAhHUyn7eI= github.com/go-quicktest/qt v1.101.0/go.mod h1:14Bz/f7NwaXPtdYEgzsx46kqSxVwTbzVZsDC26tQJow= -github.com/go-sourcemap/sourcemap v2.1.2+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-sql-driver/mysql v1.7.1 h1:lUIinVbN1DY0xBg0eMOzmmtGoHwWBbvnWubQUrtU8EI= github.com/go-sql-driver/mysql v1.7.1/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI= @@ -783,7 +672,6 @@ github.com/gofrs/flock v0.12.1 h1:MTLVXXHf8ekldpJk3AKicLij9MdwOWkZ+a/jHHZby9E= github.com/gofrs/flock v0.12.1/go.mod h1:9zxTsyu5xtJ9DK+1tFZyibEV7y3uwDxPPfbxeeHCoD0= github.com/gofrs/uuid/v5 v5.1.0 h1:S5rqVKIigghZTCBKPCw0Y+bXkn26K3TB5mvQq2Ix8dk= github.com/gofrs/uuid/v5 v5.1.0/go.mod h1:CDOjlDMVAtN56jqyRUZh58JT31Tiw7/oQyEXZV+9bD8= -github.com/gogo/gateway v1.1.0/go.mod h1:S7rR8FRQyG3QFESeSv4l2WnsyzlCLG0CzBbUUo/mbic= github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= github.com/gogo/googleapis v1.4.1 h1:1Yx4Myt7BxzvUr5ldGSbwYiZG6t9wGBZ+8/fX3Wvtq0= @@ -792,7 +680,6 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfU github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -829,8 +716,6 @@ github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiu github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.3-0.20201103224600-674baa8c7fc3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb h1:PBC98N2aIaM3XXiurYmW7fx4GZkL8feAMVq7nEjURHk= @@ -880,7 +765,6 @@ github.com/google/go-containerregistry v0.19.1 h1:yMQ62Al6/V0Z7CqIrrS1iYoA5/oQCm github.com/google/go-containerregistry v0.19.1/go.mod h1:YCMFNQeeXeLF+dnhhWkqDItx/JSkH01j1Kis4PsjzFI= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/gofuzz v1.1.1-0.20200604201612-c04b05f3adfa/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= @@ -916,7 +800,6 @@ github.com/google/s2a-go v0.1.8/go.mod h1:6iNWHTpQ+nfNRN5E00MSdfDwVesa8hhS32PhPO github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= @@ -939,23 +822,17 @@ github.com/googleapis/gax-go/v2 v2.13.0 h1:yitjD5f7jQHhyDsnhKEBU52NdvvdSeGzlAnDP github.com/googleapis/gax-go/v2 v2.13.0/go.mod h1:Z/fvTZXF8/uw7Xu5GuslPw+bplx6SS338j1Is2S+B7A= github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gordonklaus/ineffassign v0.0.0-20200309095847-7953dde2c7bf/go.mod h1:cuNKsD1zp2v6XfE/orVX2QE1LC+i254ceGcVeDT3pTU= github.com/gordonklaus/ineffassign v0.1.0 h1:y2Gd/9I7MdY1oEIt+n+rowjBNDcLQq3RsH5hwJd0f9s= github.com/gordonklaus/ineffassign v0.1.0/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= -github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= github.com/gorilla/handlers v1.5.2 h1:cLTUSsNkgcwhgRqvCNmdbRWG0A3N4F+M2nWKdScwyEE= github.com/gorilla/handlers v1.5.2/go.mod h1:dX+xVpaxdSw+q0Qek8SSsl3dfMk3jNddUkMzo0GtH0w= github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.1-0.20190629185528-ae1634f6a989/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg= github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gostaticanalysis/analysisutil v0.7.1 h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk= @@ -970,31 +847,19 @@ github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= github.com/gostaticanalysis/testutil v0.4.0 h1:nhdCmubdmDF6VEatUNjgUZBJKWRqugoISdUv3PPQgHY= github.com/gostaticanalysis/testutil v0.4.0/go.mod h1:bLIoPefWXrRi/ssLFWX1dx7Repi5x3CuviD3dgAZaBU= -github.com/graph-gophers/graphql-go v0.0.0-20191115155744-f33e81362277/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-middleware v1.2.1/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= -github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.8.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.14.7/go.mod h1:oYZKL012gGh6LMyg/xA7Q2yq6j8bu0wa+9w14EEthWU= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 h1:/c3QmbOGMGTOumP2iT/rCwB7b0QDGLKzqOmktBjT+Is= github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1/go.mod h1:5SN9VR2LTsRFsrEC6FHgRbTWrTHu6tqPeKxEQv15giM= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= -github.com/gtank/merlin v0.1.1-0.20191105220539-8318aed1a79f/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= -github.com/gtank/merlin v0.1.1/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= -github.com/gtank/ristretto255 v0.1.2/go.mod h1:Ph5OpO6c7xKUGROZfWVLiJf9icMDwUeIvY4OmlYW69o= -github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= -github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= @@ -1032,7 +897,6 @@ github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09 github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= @@ -1045,12 +909,10 @@ github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2p github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= -github.com/hdevalence/ed25519consensus v0.0.0-20210204194344-59a8610d2b87/go.mod h1:XGsKKeXxeRr95aEOgipvluMPlgjr7dGlk9ZTWOjcUcg= github.com/hdevalence/ed25519consensus v0.1.0 h1:jtBwzzcHuTmFrQN6xQZn6CQEO/V9f7HsjsjeEZ6auqU= github.com/hdevalence/ed25519consensus v0.1.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= -github.com/holiman/uint256 v1.1.1/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= github.com/holiman/uint256 v1.2.4 h1:jUc4Nk8fm9jZabQuqr2JzednajVmBpC+oiTiXZJEApU= github.com/holiman/uint256 v1.2.4/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= @@ -1059,31 +921,22 @@ github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0Jr github.com/huandu/skiplist v1.2.0 h1:gox56QD77HzSC0w+Ws3MH3iie755GBJU1OER3h5VsYw= github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= -github.com/huin/goupnp v1.0.0/go.mod h1:n9v9KO1tAxYH82qOn+UTIFQDmx5n1Zxd/ClZDMX7Bnc= -github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o= github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= github.com/ianlancetaylor/demangle v0.0.0-20230524184225-eabc099b10ab/go.mod h1:gx7rwoVhcfuVKG5uya9Hs3Sxj7EIvldVofAWIUtGouw= -github.com/improbable-eng/grpc-web v0.14.0/go.mod h1:6hRR09jOEG81ADP5wCQju1z71g6OL4eEvELdran/3cs= github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/influxdata/influxdb v1.2.3-0.20180221223340-01288bdb0883/go.mod h1:qZna6X/4elxqT3yI9iZYdZrWWdeFOOprn86kgg4+IzY= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= -github.com/jackpal/go-nat-pmp v1.0.2-0.20160603034137-1fa385a6f458/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= github.com/jdx/go-netrc v1.0.0 h1:QbLMLyCZGj0NA8glAhxUpf1zDg6cxnWgMBbjq40W0gQ= github.com/jdx/go-netrc v1.0.0/go.mod h1:Gh9eFQJnoTNIRHXl2j5bJXA1u84hQWJWgGh569zF3v8= -github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e/go.mod h1:G1CVv03EnqU1wYL2dFwXxW2An0az9JTl/ZsqXQeBlkU= -github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jgautheron/goconst v1.7.1 h1:VpdAG7Ca7yvvJk5n8dMwQhfEZJh95kl/Hl9S1OI5Jkk= github.com/jgautheron/goconst v1.7.1/go.mod h1:aAosetZ5zaeC/2EfMeRswtxUFBpe2Hr7HzkgX4fanO4= -github.com/jhump/protoreflect v1.8.2/go.mod h1:7GcYQDdMU/O/BBrl/cX6PNHpXh6cenjd8pneu5yW7Tg= github.com/jhump/protoreflect v1.15.6 h1:WMYJbw2Wo+KOWwZFvgY0jMoVHM6i4XIvRs2RcBj5VmI= github.com/jhump/protoreflect v1.15.6/go.mod h1:jCHoyYQIJnaabEYnbGwyo9hUqfyUMTbJw/tAut5t97E= github.com/jingyugao/rowserrcheck v1.1.1 h1:zibz55j/MJtLsjP1OF4bSdgXxwL1b+Vn7Tjzq7gFzUs= @@ -1102,37 +955,30 @@ github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+ github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= -github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/julienschmidt/httprouter v1.1.1-0.20170430222011-975b5c4c7c21/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/julz/importas v0.1.0 h1:F78HnrsjY3cR7j0etXy5+TU1Zuy7Xt08X/1aJnH5xXY= github.com/julz/importas v0.1.0/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSXO0DV0= github.com/justinas/alice v1.2.0 h1:+MHSA/vccVCF4Uq37S42jwlkvI2Xzl7zTPCN5BnZNVo= github.com/justinas/alice v1.2.0/go.mod h1:fN5HRH/reO/zrUflLfTN43t3vXvKzvZIENsNEe7i7qA= -github.com/karalabe/usb v0.0.0-20190919080040-51dc0efba356/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= github.com/karamaru-alpha/copyloopvar v1.1.0 h1:x7gNyKcC2vRBO1H2Mks5u1VxQtYvFiym7fCjIP8RPos= github.com/karamaru-alpha/copyloopvar v1.1.0/go.mod h1:u7CIfztblY0jZLOQZgH3oYsJzpC2A7S6u/lfgSXHy0k= -github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/errcheck v1.7.0 h1:+SbscKmWJ5mOK/bO1zS60F5I9WwZDWOfRsC4RwfwRV0= github.com/kisielk/errcheck v1.7.0/go.mod h1:1kLL+jV4e+CFfueBmI1dSK2ADDyQnlrnrY/FqKluHJQ= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/kkHAIKE/contextcheck v1.1.5 h1:CdnJh63tcDe53vG+RebdpdXJTc9atMgGqdx8LXxiilg= github.com/kkHAIKE/contextcheck v1.1.5/go.mod h1:O930cpht4xb1YQpK+1+AgoM3mFsvxr7uyFptcnWTYUA= -github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= -github.com/kkdai/bstream v1.0.0/go.mod h1:FDnDOHt5Yx4p3FaHcioFT0QjDOtgUpvjeZqAs+NVZZA= github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= @@ -1142,10 +988,8 @@ github.com/klauspost/pgzip v1.2.6 h1:8RXeL5crjEUFnR2/Sn6GJNWtSQ3Dk8pq4CL3jvdDyjU github.com/klauspost/pgzip v1.2.6/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= @@ -1174,20 +1018,15 @@ github.com/leonklingele/grouper v1.1.2 h1:o1ARBDLOmmasUaNDesWqWCIFH3u7hoFlM84Yrj github.com/leonklingele/grouper v1.1.2/go.mod h1:6D0M/HVkhs2yRKRFZUoGjeDy7EZTfFBE9gl4kjmIGkA= github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= github.com/linxGnu/grocksdb v1.8.14 h1:HTgyYalNwBSG/1qCQUIott44wU5b2Y9Kr3z7SK5OfGQ= github.com/linxGnu/grocksdb v1.8.14/go.mod h1:QYiYypR2d4v63Wj1adOOfzglnoII0gLj3PNh4fZkcFA= -github.com/lucasjones/reggen v0.0.0-20180717132126-cdb49ff09d77/go.mod h1:5ELEyG+X8f+meRWHuqUOewBOhvHkl7M76pdGEansxW4= github.com/lufeee/execinquery v1.2.1 h1:hf0Ems4SHcUGBxpGN7Jz78z1ppVkP/837ZlETPCEtOM= github.com/lufeee/execinquery v1.2.1/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/macabu/inamedparam v0.1.3 h1:2tk/phHkMlEL/1GNe/Yf6kkR/hkcUdAEY3L0hjYV1Mk= github.com/macabu/inamedparam v0.1.3/go.mod h1:93FLICAIk/quk7eaPPQvbzihUdn/QkGDwIZEoLtpH6I= -github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= @@ -1202,26 +1041,19 @@ github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26/go.mod h1:1BELzlh859 github.com/matryer/is v1.4.0 h1:sosSmIWwkYITGrxZ25ULNDeKiMNzFSr4V/eqBQP0PeE= github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.0/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -github.com/mattn/go-ieproxy v0.0.0-20190610004146-91bb50d98149/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc= -github.com/mattn/go-ieproxy v0.0.0-20190702010315-6dee0af9227d/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.5-0.20180830101745-3fb116b82035/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-isatty v0.0.13/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU= @@ -1232,8 +1064,6 @@ github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517/go.mod h1:KQ7+USdGKfp github.com/mgechev/revive v1.3.9 h1:18Y3R4a2USSBF+QZKFQwVkBROUda7uoBlkEuBD+YD1A= github.com/mgechev/revive v1.3.9/go.mod h1:+uxEIr5UH0TjXWHTno3xh4u7eg6jDpXKzQccA9UGhHU= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM= -github.com/minio/highwayhash v1.0.1/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= @@ -1247,8 +1077,6 @@ github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS4 github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0= @@ -1276,8 +1104,6 @@ github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRW github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76/go.mod h1:x5OoJHDHqxHS801UIuhqGl6QdSAEJvtausosHSdazIo= github.com/nakabonne/nestif v0.3.1 h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U= github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE= -github.com/naoina/go-stringutil v0.1.0/go.mod h1:XJ2SJL9jCtBh+P9q5btrd/Ylo8XwT/h1USek5+NqSA0= -github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416/go.mod h1:NBIhNtsFMo3G2szEBne+bO4gS192HuIYRqfvOWb4i1E= github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= @@ -1285,11 +1111,9 @@ github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzE github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= -github.com/neilotoole/errgroup v0.1.5/go.mod h1:Q2nLGf+594h0CLBs/Mbg6qOr7GtqDK7C2S41udRnToE= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nishanths/exhaustive v0.12.0 h1:vIY9sALmw6T/yxiASewa4TQcFsVYZQQRUQJhKRf3Swg= github.com/nishanths/exhaustive v0.12.0/go.mod h1:mEZ95wPIZW+x8kC4TgC+9YCUgiST7ecevsVDTgc2obs= -github.com/nishanths/predeclared v0.0.0-20200524104333-86fad755b4d3/go.mod h1:nt3d53pc1VYcphSCIaYAJtnPYnr3Zyn8fMq2wvPGPso= github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk= github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c= github.com/nunnatsa/ginkgolinter v0.16.2 h1:8iLqHIZvN4fTLDC0Ke9tbSZVcyVHoBs0HIbnVSxfHJk= @@ -1299,24 +1123,13 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250115184516-62dd1f5d2498 h1:5oEqY7QelSVvHz/gl2H2/L5rXEDxcEe9+MobASBYUyA= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250115184516-62dd1f5d2498/go.mod h1:tNVvSZ/AvxvDqVctmun0K81unu4hEOSa0821xdbFiQQ= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250117232754-30acbe5395e4 h1:Z4XnPHiRCtgL5XdS8zqTvnwDYrQ5O4/1AMPU7XVYF6g= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250117232754-30acbe5395e4/go.mod h1:QcTohaAoGK0kPOzCWa50KevNRRNqi2mVa66nGiWWqUI= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250122181659-b0eeeeeada2b h1:GIPJwESmOi3LdRTvN08wo4+lp00AY4XFG5KHavQuBFw= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250122181659-b0eeeeeada2b/go.mod h1:QcTohaAoGK0kPOzCWa50KevNRRNqi2mVa66nGiWWqUI= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250122194622-5fa8373e2abd h1:zMJyVECBoOPxu/JTJl9eFJzUAm3zGqlorn8SoevssVI= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250122194622-5fa8373e2abd/go.mod h1:QcTohaAoGK0kPOzCWa50KevNRRNqi2mVa66nGiWWqUI= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250123153921-6283f6221230 h1:Aj2zHQZXZOYk7ChasEt+Xf80RpNQZiuSQBl2mPPn6aI= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250123153921-6283f6221230/go.mod h1:QcTohaAoGK0kPOzCWa50KevNRRNqi2mVa66nGiWWqUI= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250124012327-caf66a7b2f71 h1:Fo5veh++igXfFtU/xA7eAWadTqDfS7eeCHBsP4TZifU= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250124012327-caf66a7b2f71/go.mod h1:QcTohaAoGK0kPOzCWa50KevNRRNqi2mVa66nGiWWqUI= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/olekukonko/tablewriter v0.0.2-0.20190409134802-7e037d187b0c/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -1327,7 +1140,6 @@ github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= github.com/onsi/ginkgo/v2 v2.20.0 h1:PE84V2mHqoT1sglvHc8ZdQtPcwmvvt29WLEEO3xmdZw= github.com/onsi/ginkgo/v2 v2.20.0/go.mod h1:lG9ey2Z29hR41WMVthyJBGUBcBhGOtoPF2VFMvBXFCI= -github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= @@ -1354,26 +1166,20 @@ github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnh github.com/ory/dockertest/v3 v3.10.0 h1:4K3z2VMe8Woe++invjaTB7VRyQXQy5UY+loujO4aNE4= github.com/ory/dockertest/v3 v3.10.0/go.mod h1:nr57ZbRWMqfsdGdFNLHz5jjNdDb7VVFnzAeW1n5N1Lg= github.com/otiai10/copy v1.2.0/go.mod h1:rrF5dJ5F0t/EWSYODDu4j9/vEeYHMkc8jt0zJChqQWw= -github.com/otiai10/copy v1.6.0/go.mod h1:XWfuS3CrI0R6IE0FbgHsEazaXO8G0LpMp9o8tos0x4E= github.com/otiai10/copy v1.14.0 h1:dCI/t1iTdYGtkvCuBG2BgR6KZa83PTclw4U5n2wAllU= github.com/otiai10/copy v1.14.0/go.mod h1:ECfuL02W+/FkTWZWgQqXPWZgW9oeKCSQ5qVfSc4qc4w= github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs= github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo= github.com/otiai10/mint v1.3.1/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= -github.com/otiai10/mint v1.3.2/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pborman/uuid v0.0.0-20170112150404-1b00554d8222/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= -github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= -github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7/go.mod h1:CRroGNssyjTd/qIG2FyxByd2S8JEAZXBl4qUrZf8GS0= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 h1:jik8PHtAIsPlCRJjJzl4udgEf7hawInF9texMeO2jrU= github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= @@ -1391,7 +1197,6 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= github.com/pkg/profile v1.7.0 h1:hnbDkaNWPCLMO9wGLdBFTIZvzDrDfBM2072E1S9gJkA= github.com/pkg/profile v1.7.0/go.mod h1:8Uer0jas47ZQMJ7VD+OHknK4YDY07LPUC6dEvqDjvNo= -github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -1402,13 +1207,10 @@ github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4 github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= -github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.8.0/go.mod h1:O9VU6huf47PktckDQfMTX0Y8tY0/7TSWwj+ITvv0TnM= -github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= github.com/prometheus/client_golang v1.20.5 h1:cxppBPuYhUnsO6yo/aoRol4L7q7UFfdm+bR9r+8l63Y= github.com/prometheus/client_golang v1.20.5/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= @@ -1419,32 +1221,22 @@ github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6T github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= -github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.14.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= -github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.29.0/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= github.com/prometheus/common v0.55.0 h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G1dc= github.com/prometheus/common v0.55.0/go.mod h1:2SECS4xJG1kd8XF9IcM1gMX6510RAEL65zxzNImwdc8= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.2.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= -github.com/prometheus/tsdb v0.6.2-0.20190402121629-4f204dcbc150/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/quasilyte/go-ruleguard v0.4.2 h1:htXcXDK6/rO12kiTHKfHuqR4kr3Y4M0J0rOL6CH/BYs= github.com/quasilyte/go-ruleguard v0.4.2/go.mod h1:GJLgqsLeo4qgavUoL8JeGFNS7qcisx3awV/w9eWTmNI= github.com/quasilyte/go-ruleguard/dsl v0.3.22 h1:wd8zkOhSNr+I+8Qeciml08ivDt1pSXe60+5DqOpCjPE= @@ -1455,35 +1247,26 @@ github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 h1:TCg2WBOl github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 h1:M8mH9eK4OUR4lu7Gd+PU1fV2/qnDNfzT635KRSObncs= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= -github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/regen-network/cosmos-proto v0.3.1/go.mod h1:jO0sVX6a1B36nmE8C9xBFXpNwWejXC7QqCOnH3O0+YM= github.com/regen-network/protobuf v1.3.3-alpha.regen.1 h1:OHEc+q5iIAXpqiqFKeLpu5NwTIkVXUs48vFMwzqpqY4= github.com/regen-network/protobuf v1.3.3-alpha.regen.1/go.mod h1:2DjTFR1HhMQhiWC5sZ4OhQ3+NtdbZ6oBDKQwq5Ou+FI= github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/rjeczalik/notify v0.9.1/go.mod h1:rKwnCoCGeuQnwBtTSPL9Dad03Vh2n40ePRrjvIXnJho= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= -github.com/rs/cors v0.0.0-20160617231935-a62a804a8a00/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.11.1 h1:eU3gRzXLRK57F5rKMGMZURNdIG4EoAmX8k94r9wXWHA= github.com/rs/cors v1.11.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= -github.com/rs/xhandler v0.0.0-20160618193221-ed27b6fd6521/go.mod h1:RvLn4FgxWubrpZHtQLnOf6EwhN2hEMusxZOhcW9H3UQ= -github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= github.com/rs/xid v1.5.0 h1:mKX4bl4iPYJtEIxp6CYiUuLQ/8DYMoz0PUdtGgMFRVc= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= -github.com/rs/zerolog v1.23.0/go.mod h1:6c7hFfxPOy7TacJc4Fcdi24/J0NKYGzjG8FWRI916Qo= github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8= github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= -github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -1501,8 +1284,6 @@ github.com/sanposhiho/wastedassign/v2 v2.0.7 h1:J+6nrY4VW+gC9xFzUc+XjPD3g3wF3je/ github.com/sanposhiho/wastedassign/v2 v2.0.7/go.mod h1:KyZ0MWTwxxBmfwn33zh3k1dmsbF2ud9pAAGfoLfjhtI= github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 h1:lZUw3E0/J3roVtGQ+SCrUrg3ON6NgVqpn3+iol9aGu4= github.com/santhosh-tekuri/jsonschema/v5 v5.3.1/go.mod h1:uToXkOrWAZ6/Oc07xWQrPOhJotwFIyu2bBVN41fcDUY= -github.com/sasha-s/go-deadlock v0.2.0/go.mod h1:StQn567HiB1fF2yJ44N9au7wOhrPS3iZqiDbRupzT10= -github.com/sasha-s/go-deadlock v0.2.1-0.20190427202633-1595213edefa/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= github.com/sashamelentyev/interfacebloat v1.1.0 h1:xdRdJp0irL086OyW1H/RTZTr1h/tMEOsumirXcOJqAw= @@ -1512,10 +1293,8 @@ github.com/sashamelentyev/usestdlibvars v1.27.0/go.mod h1:9nl0jgOfHKWNFS43Ojw0i7 github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/securego/gosec/v2 v2.20.1-0.20240822074752-ab3f6c1c83a0 h1:VqD4JMoqwuuCz8GZlBDsIDyE6K4YUsWJpbNtuOWHoFk= github.com/securego/gosec/v2 v2.20.1-0.20240822074752-ab3f6c1c83a0/go.mod h1:iyeMMRw8QEmueUSZ2VqmkQMiDyDcobfPnG00CV/NWdE= -github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KRMzBtS3oedY= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c h1:W65qqJCIOVP4jpqPQ0YvHYKwcMEMVWIzWC5iNQQfBTU= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c/go.mod h1:/PevMnwAxekIXwN8qQyfc5gl2NlkB3CQlkizAbOkeBs= -github.com/shirou/gopsutil v2.20.5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= @@ -1531,7 +1310,6 @@ github.com/sivchari/tenv v1.10.0 h1:g/hzMA+dBCKqGXgW8AV/1xIWhAvDrx0zFKNR48NFMg0= github.com/sivchari/tenv v1.10.0/go.mod h1:tdY24masnVoZFxYrHv/nD6Tc8FbkEtAQEEziXpyMgqY= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa/go.mod h1:oJyF+mSPHbB5mVY2iO9KV3pTt/QbIkGaO8gQ2WrDbP4= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/sonatard/noctx v0.0.2 h1:L7Dz4De2zDQhW8S0t+KUjY0MAQJd6SgVwhzNIc4ok00= github.com/sonatard/noctx v0.0.2/go.mod h1:kzFz+CzWSjQ2OzIm46uJZoXuBpa2+0y3T36U18dWqIo= @@ -1541,42 +1319,22 @@ github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIK github.com/sourcegraph/go-diff v0.7.0 h1:9uLlrd5T46OXs5qpp8L/MTltk0zikUGi0sNNyCpA8G0= github.com/sourcegraph/go-diff v0.7.0/go.mod h1:iBszgVvyxdc8SFZ7gm69go2KDdt3ag071iBaWPF6cjs= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= -github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.7.0 h1:ntdiHjuueXFgm5nzDRdOS4yfT43P5Fnud6DH50rz/7w= github.com/spf13/cast v1.7.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= -github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= -github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= -github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI= -github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= -github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= -github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= -github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= -github.com/spf13/viper v1.7.1/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= -github.com/spf13/viper v1.8.0/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns= github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI= github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+Ntkg= github.com/ssgreg/nlreturn/v2 v2.2.1 h1:X4XDI7jstt3ySqGU86YGAURbxw3oTDPK9sPEi6YEwQ0= github.com/ssgreg/nlreturn/v2 v2.2.1/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I= -github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q= github.com/stbenjam/no-sprintf-host-port v0.1.1 h1:tYugd/yrm1O0dV+ThCbaKZh195Dfm07ysF0U6JQXczc= github.com/stbenjam/no-sprintf-host-port v0.1.1/go.mod h1:TLhvtIvONRzdmkFiio4O8LHsN9N74I+PhRquPsxpL0I= -github.com/steakknife/bloomfilter v0.0.0-20180922174646-6819c0d2a570/go.mod h1:8OR4w3TdeIHIh1g6EMY5p0gVNOovcWC+1vpc7naMuAw= -github.com/steakknife/hamming v0.0.0-20180906055917-c99c65617cd3/go.mod h1:hpGUWaI9xL8pRQCTXQgocU38Qw1g0Us7n5PxxTwTCYU= github.com/stoewer/go-strcase v1.3.0 h1:g0eASXYtp+yvN9fK8sH94oCIk0fau9uV1/ZdJ0AVEzs= github.com/stoewer/go-strcase v1.3.0/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8wodgtPmh1xo= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= @@ -1584,7 +1342,6 @@ github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3 github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= 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= -github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= @@ -1603,26 +1360,14 @@ github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= github.com/tdakkota/asciicheck v0.2.0 h1:o8jvnUANo0qXtnslk2d3nMKTFNlOnJjRrNcj0j9qkHM= github.com/tdakkota/asciicheck v0.2.0/go.mod h1:Qb7Y9EgjCLJGup51gDHFzbI08/gbGhL/UVhYIPWG2rg= -github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c/go.mod h1:ahpPrc7HpcfEWDQRZEmnXMzHY03mLDYMCxeDzy46i+8= -github.com/tendermint/btcd v0.1.1/go.mod h1:DC6/m53jtQzr/NFmMNEu0rxf18/ktVoVtMrnDD5pN+U= -github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15/go.mod h1:z4YtwM70uOnk8h0pjJYlj3zdYwi9l03By6iAIF5j/Pk= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= -github.com/tendermint/tendermint v0.34.0-rc4/go.mod h1:yotsojf2C1QBOw4dZrTcxbyxmPUrT4hNuOQWX9XUwB4= -github.com/tendermint/tendermint v0.34.0-rc6/go.mod h1:ugzyZO5foutZImv0Iyx/gOFCX6mjJTgbLHTwi17VDVg= -github.com/tendermint/tendermint v0.34.0/go.mod h1:Aj3PIipBFSNO21r+Lq3TtzQ+uKESxkbA3yo/INM4QwQ= -github.com/tendermint/tendermint v0.34.10/go.mod h1:aeHL7alPh4uTBIJQ8mgFEE8VwJLXI1VD3rVOmH2Mcy0= -github.com/tendermint/tendermint v0.34.11/go.mod h1:aeHL7alPh4uTBIJQ8mgFEE8VwJLXI1VD3rVOmH2Mcy0= -github.com/tendermint/tm-db v0.6.2/go.mod h1:GYtQ67SUvATOcoY8/+x6ylk8Qo02BQyLrAs+yAcLvGI= -github.com/tendermint/tm-db v0.6.3/go.mod h1:lfA1dL9/Y/Y8wwyPp2NMLyn5P5Ptr/gvDFNWtrCWSf8= -github.com/tendermint/tm-db v0.6.4/go.mod h1:dptYhIpJ2M5kUuenLr+Yyf3zQOv1SgBZcl8/BmWlMBw= github.com/tenntenn/modver v1.0.1 h1:2klLppGhDgzJrScMpkj9Ujy3rXPUspSjAcev9tSEBgA= github.com/tenntenn/modver v1.0.1/go.mod h1:bePIyQPb7UeioSRkw3Q0XeMhYZSMx9B8ePqg6SAMGH0= github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3 h1:f+jULpRQGxTSkNYKJ51yaw6ChIqO+Je8UqsTKN/cDag= @@ -1631,27 +1376,18 @@ github.com/tetafro/godot v1.4.16 h1:4ChfhveiNLk4NveAZ9Pu2AN8QZ2nkUGFuadM9lrr5D0= github.com/tetafro/godot v1.4.16/go.mod h1:2oVxTBSftRTh4+MVfUaUXR6bn2GDXCaMcOG4Dk3rfio= github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= -github.com/tidwall/gjson v1.6.7/go.mod h1:zeFuBCIqD4sN/gmqBzZ4j7Jd6UcA2Fc56x7QFsv+8fI= -github.com/tidwall/match v1.0.3/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= -github.com/tidwall/pretty v1.0.2/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= -github.com/tidwall/sjson v1.1.4/go.mod h1:wXpKXu8CtDjKAZ+3DrKY5ROCorDFahq8l0tey/Lx1fg= github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966 h1:quvGphlmUVU+nhpFa4gg4yJyTRJ13reZMDHrKwYw53M= github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966/go.mod h1:27bSVNWSBOHm+qRp1T9qzaIpsWEP6TbUnei/43HK+PQ= github.com/timonwong/loggercheck v0.9.4 h1:HKKhqrjcVj8sxL7K77beXh0adEm6DLjV/QOGeMXEVi4= github.com/timonwong/loggercheck v0.9.4/go.mod h1:caz4zlPcgvpEkXgVnAJGowHAMW2NwHaNlpS8xDbVhTg= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tomarrell/wrapcheck/v2 v2.9.0 h1:801U2YCAjLhdN8zhZ/7tdjB3EnAoRlJHt/s+9hijLQ4= github.com/tomarrell/wrapcheck/v2 v2.9.0/go.mod h1:g9vNIyhb5/9TQgumxQyOEqDHsmGYcGsVMOx/xGkqdMo= github.com/tommy-muehle/go-mnd/v2 v2.5.1 h1:NowYhSdyE/1zwK9QCLeRb6USWdoif80Ie+v+yU8u1Zw= github.com/tommy-muehle/go-mnd/v2 v2.5.1/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr8TnZn9lwVDlgzw= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= -github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= -github.com/tyler-smith/go-bip39 v1.0.2/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= -github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= -github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= @@ -1668,9 +1404,6 @@ github.com/uudashr/gocognit v1.1.3 h1:l+a111VcDbKfynh+airAy/DJQKaXh2m9vkoysMPSZy github.com/uudashr/gocognit v1.1.3/go.mod h1:aKH8/e8xbTRBwjbCkwZ8qt4l2EpKXl31KMHgSS+lZ2U= github.com/vbatts/tar-split v0.11.5 h1:3bHCTIheBm1qFTcgh9oPu+nNBtX+XJIupG/vacinCts= github.com/vbatts/tar-split v0.11.5/go.mod h1:yZbwRsSeGjusneWgA781EKej9HF8vme8okylkAeNKLk= -github.com/vmihailenco/msgpack/v5 v5.1.4/go.mod h1:C5gboKD0TJPqWDTVTtrQNfRbiBwHZGo8UTqP/9/XvLI= -github.com/vmihailenco/tagparser v0.1.2/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= -github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208/go.mod h1:IotVbo4F+mw0EzQ08zFqg7pK3FebNXpaMsRy2RT+Ees= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= @@ -1681,10 +1414,8 @@ github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQ github.com/xen0n/gosmopolitan v1.2.2 h1:/p2KTnMzwRexIW8GlKawsTWOxn7UHA+jCMF/V8HHtvU= github.com/xen0n/gosmopolitan v1.2.2/go.mod h1:7XX7Mj61uLYrj0qmeN0zi7XDon9JRAEhYQqAPLVNTeg= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= -github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= github.com/yagipy/maintidx v1.0.0 h1:h5NvIsCz+nRDapQ0exNv4aJ0yXSI0420omVANTv3GJM= github.com/yagipy/maintidx v1.0.0/go.mod h1:0qNf/I/CCZXSMhsRsrEPDZ+DkekpKLXAJfsTACwgXLk= -github.com/ybbus/jsonrpc v2.1.2+incompatible/go.mod h1:XJrh1eMSzdIYFbM08flv0wp5G35eRniyeGut1z+LSiE= github.com/yeya24/promlinter v0.3.0 h1:JVDbMp08lVCP7Y6NP3qHroGAO6z2yGKQtS5JsjqtoFs= github.com/yeya24/promlinter v0.3.0/go.mod h1:cDfJQQYv9uYciW60QT0eeHlFodotkYZlL+YcPQN+mW4= github.com/ykadowak/zerologlint v0.1.5 h1:Gy/fMz1dFQN9JZTPjv1hxEk+sRWm05row04Yoolgdiw= @@ -1696,7 +1427,6 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/zondax/hid v0.9.0/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= github.com/zondax/hid v0.9.2 h1:WCJFnEDMiqGF64nlZz28E9qLVZ0KSJ7xpc5DLEyma2U= github.com/zondax/hid v0.9.2/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= github.com/zondax/ledger-go v0.14.3 h1:wEpJt2CEcBJ428md/5MgSLsXLBos98sBOyxNmCjfUCw= @@ -1709,15 +1439,10 @@ go-simpler.org/musttag v0.12.2 h1:J7lRc2ysXOq7eM8rwaTYnNrHd5JwjppzB6mScysB2Cs= go-simpler.org/musttag v0.12.2/go.mod h1:uN1DVIasMTQKk6XSik7yrJoEysGtR2GRqvWnI9S7TYM= go-simpler.org/sloglint v0.7.2 h1:Wc9Em/Zeuu7JYpl+oKoYOsQSy2X560aVueCW/m6IijY= go-simpler.org/sloglint v0.7.2/go.mod h1:US+9C80ppl7VsThQclkM7BkCHQAzuz8kHLsW3ppuluo= -go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 h1:qxen9oVGzDdIRP6ejyAJc760RwW4SnVDiTYTzwnXuxo= go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5/go.mod h1:eW0HG9/oHQhvRCvb1/pIXW4cOvtDqeQK+XSi3TnwaXY= go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= -go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= -go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= @@ -1769,32 +1494,18 @@ go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN8 go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= -go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= -golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190909091759-094676da4a83/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201117144127-c1f2f97bffc9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= -golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= @@ -1802,7 +1513,6 @@ golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn5 golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56/go.mod h1:JhuoJpWY28nO4Vef9tZUw9qufEGTyX1+7lmHxV5q5G4= golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= @@ -1833,12 +1543,10 @@ golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPI golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mobile v0.0.0-20200801112145-973feb4309de/go.mod h1:skQtrUTUwhdJvXM/2KKJzY8pDgNr9I/FOMqDVRPBUS4= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191209134235-331c550502dd/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= @@ -1852,11 +1560,9 @@ golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0= golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= -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-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1868,14 +1574,12 @@ golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191002035440-2ec189313ef0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -1893,7 +1597,6 @@ golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81R golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= @@ -1903,7 +1606,6 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= @@ -1934,7 +1636,6 @@ golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= @@ -1976,7 +1677,6 @@ golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1986,8 +1686,6 @@ golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -2018,11 +1716,8 @@ golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200824131525-c12d262b63d8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -2034,11 +1729,9 @@ golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -2081,7 +1774,6 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -2132,7 +1824,6 @@ golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -2141,7 +1832,6 @@ golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117012304-6edc0a871e69/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= @@ -2158,10 +1848,8 @@ golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWc golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200522201501-cb1345f3a375/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200717024301-6ddee64345a6/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200724022722-7017fd6b1305/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= @@ -2224,7 +1912,6 @@ google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34q google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= -google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8= google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= @@ -2298,8 +1985,6 @@ google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201111145450-ac7456db90a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201119123407-9b1e624d6bc4/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= @@ -2379,7 +2064,6 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 h1: google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.19.1/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= @@ -2434,7 +2118,6 @@ google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2 google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.25.1-0.20200805231151-a709e31e5d12/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= @@ -2447,7 +2130,6 @@ gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLks gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= @@ -2456,16 +2138,11 @@ gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qS gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= -gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c= -gopkg.in/olebedev/go-duktape.v3 v3.0.0-20200619000410-60c24ae608a6/go.mod h1:uAJfkITjFhyEEuUfm7bsmCZRbW5WRq8s9EY8HZ6hCns= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/urfave/cli.v1 v1.20.0/go.mod h1:vuBzUtMdQeixQj8LVd+/98pzhxNGQoyuPBlsXHOQNO0= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= @@ -2481,7 +2158,6 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= gotest.tools/v3 v3.5.1 h1:EENdUnS3pdur5nybKYIh2Vfgc8IUNBjxDPSjtiJcOzU= gotest.tools/v3 v3.5.1/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU= honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/pricefeeder/pricefeeder.go b/pricefeeder/pricefeeder.go index 517af572..c5738e3e 100644 --- a/pricefeeder/pricefeeder.go +++ b/pricefeeder/pricefeeder.go @@ -30,7 +30,7 @@ type PriceFeeder struct { AppConfig AppConfig } -func (pf *PriceFeeder) Start(currentBlockHeight int64, oracleParams types.Params) error { +func (pf *PriceFeeder) Start(oracleParams types.Params) error { logWriter := zerolog.ConsoleWriter{Out: os.Stderr} logLevel, err := zerolog.ParseLevel(pf.AppConfig.LogLevel) if err != nil { diff --git a/x/oracle/abci/endblocker.go b/x/oracle/abci/endblocker.go index 4c8b0dd0..5cd11ef4 100644 --- a/x/oracle/abci/endblocker.go +++ b/x/oracle/abci/endblocker.go @@ -35,7 +35,7 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { // Start price feeder if it hasn't been started, and it is enabled. if k.PriceFeeder.Oracle == nil && k.PriceFeeder.AppConfig.Enable { go func() { - err := k.PriceFeeder.Start(sdkCtx.BlockHeight(), params) + err := k.PriceFeeder.Start(params) if err != nil { sdkCtx.Logger().Error("Error starting Oracle Keeper price feeder", "err", err) } @@ -120,11 +120,11 @@ func CalcPrices(ctx sdk.Context, params types.Params, k keeper.Keeper) error { validatorClaimMap[v.GetOperator()] = types.NewClaim(power, 0, 0, v.GetOperator()) } - // voteTargets defines the symbol (ticker) denoms that we require votes on - voteTargetDenoms := make([]string, 0) - for _, v := range params.AcceptList { - voteTargetDenoms = append(voteTargetDenoms, v.BaseDenom) - } + // // voteTargets defines the symbol (ticker) denoms that we require votes on + // voteTargetDenoms := make([]string, 0) + // for _, v := range params.AcceptList { + // voteTargetDenoms = append(voteTargetDenoms, v.BaseDenom) + // } k.ClearExchangeRates(ctx) diff --git a/x/oracle/abci/proposal.go b/x/oracle/abci/proposal.go index d97d6d44..9063e9d1 100644 --- a/x/oracle/abci/proposal.go +++ b/x/oracle/abci/proposal.go @@ -197,7 +197,7 @@ func (h *ProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHandler { } func (h *ProposalHandler) generateExchangeRateVotes( - ctx sdk.Context, + _ sdk.Context, ci cometabci.ExtendedCommitInfo, ) (votes []oracletypes.AggregateExchangeRateVote, err error) { for _, vote := range ci.Votes { @@ -260,7 +260,7 @@ func (h *ProposalHandler) verifyExchangeRateVotes( } func (h *ProposalHandler) generateExternalLiquidity( - ctx sdk.Context, + _ sdk.Context, ci cometabci.ExtendedCommitInfo, ) (externalLiquidityList []oracletypes.ExternalLiquidity, err error) { for _, vote := range ci.Votes { diff --git a/x/oracle/abci/voteextension.go b/x/oracle/abci/voteextension.go index 2e3f272a..4db26b78 100644 --- a/x/oracle/abci/voteextension.go +++ b/x/oracle/abci/voteextension.go @@ -98,7 +98,7 @@ func (h *VoteExtensionHandler) ExtendVoteHandler() sdk.ExtendVoteHandler { }, } externalLiquidityMsg = append(externalLiquidityMsg, types.ExternalLiquidity{ - PoolId: el.PoolId, + PoolId: el.PoolID, AmountDepthInfo: amountDepthInfo, }) } @@ -130,7 +130,7 @@ func (h *VoteExtensionHandler) ExtendVoteHandler() sdk.ExtendVoteHandler { // VerifyVoteExtensionHandler validates the OracleVoteExtension created by the ExtendVoteHandler. It // verifies that the vote extension can unmarshal correctly and is for the correct height. func (h *VoteExtensionHandler) VerifyVoteExtensionHandler() sdk.VerifyVoteExtensionHandler { - return func(ctx sdk.Context, req *cometabci.RequestVerifyVoteExtension) ( + return func(_ sdk.Context, req *cometabci.RequestVerifyVoteExtension) ( *cometabci.ResponseVerifyVoteExtension, error, ) { diff --git a/x/oracle/keeper/msg_server.go b/x/oracle/keeper/msg_server.go index 0da92b21..b0d9a4d7 100644 --- a/x/oracle/keeper/msg_server.go +++ b/x/oracle/keeper/msg_server.go @@ -112,7 +112,11 @@ func (ms msgServer) AggregateExchangeRateVote( } // Move aggregate prevote to aggregate vote with given exchange rates - ms.SetAggregateExchangeRateVote(ctx, valAddr.String(), types.NewAggregateExchangeRateVote(filteredDecCoins, valAddr.String())) + ms.SetAggregateExchangeRateVote( + ctx, + valAddr.String(), + types.NewAggregateExchangeRateVote(filteredDecCoins, valAddr.String()), + ) ms.DeleteAggregateExchangeRatePrevote(ctx, valAddr) return &types.MsgAggregateExchangeRateVoteResponse{}, nil diff --git a/x/oracle/types/errors.go b/x/oracle/types/errors.go index 63baf757..47b64037 100644 --- a/x/oracle/types/errors.go +++ b/x/oracle/types/errors.go @@ -39,7 +39,7 @@ var ( ErrNonEqualInjVotesRates = errors.Register(ModuleName, 29, "injected exchange rate votes and generated exchange votes are not equal") //nolint: lll ErrNonEqualInjPoolID = errors.Register(ModuleName, 30, "pool ids in injected and generated external liquidity asset deoth info are not equal") //nolint: lll ErrInvalidAssetDepthLen = errors.Register(ModuleName, 31, "invalid asset depth info length") - ErrNonEqualAssetDepth = errors.Register(ModuleName, 32, "injected asset deoth info and generated asset deoth info are not equal") + ErrNonEqualAssetDepth = errors.Register(ModuleName, 32, "injected asset deoth info and generated asset deoth info are not equal") //nolint: lll ErrNoCommitInfo = errors.Register(ModuleName, 33, "no commit info in process proposal request") ErrNotAPriceFeeder = errors.Register(ModuleName, 34, "not a price feeder") ErrPriceFeederNotActive = errors.Register(ModuleName, 35, "price feeder is not active") From c1f1cc382b5f6f1e4ed11ba0dcc734c8d8d3bda9 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Fri, 24 Jan 2025 15:49:09 -0500 Subject: [PATCH 35/77] buf lint --- proto/ojo/oracle/v1/abci.proto | 1 + proto/ojo/oracle/v1/elys.proto | 7 +++++- proto/ojo/oracle/v1/query.proto | 4 +++ proto/ojo/oracle/v1/tx.proto | 37 ++++++++++++++++++++++++++-- x/oracle/types/abci.pb.go | 1 + x/oracle/types/elys.pb.go | 6 +++++ x/oracle/types/query.pb.go | 4 +++ x/oracle/types/tx.pb.go | 43 +++++++++++++++++++++++++++++++-- 8 files changed, 98 insertions(+), 5 deletions(-) diff --git a/proto/ojo/oracle/v1/abci.proto b/proto/ojo/oracle/v1/abci.proto index ffcc376e..1f054eea 100644 --- a/proto/ojo/oracle/v1/abci.proto +++ b/proto/ojo/oracle/v1/abci.proto @@ -35,6 +35,7 @@ message InjectedVoteExtensionTx { bytes extended_commit_info = 3; } +// Elys Asset Amount Depth message AssetAmountDepth { string asset = 1; string amount = 2 [ diff --git a/proto/ojo/oracle/v1/elys.proto b/proto/ojo/oracle/v1/elys.proto index a5240fd0..6b280316 100644 --- a/proto/ojo/oracle/v1/elys.proto +++ b/proto/ojo/oracle/v1/elys.proto @@ -9,6 +9,7 @@ option go_package = "github.com/ojo-network/ojo/x/oracle/types"; option (gogoproto.goproto_getters_all) = false; +// Elys AssetInfo message AssetInfo { string denom = 1; string display = 2; @@ -17,6 +18,7 @@ message AssetInfo { uint64 decimal = 5; } +// Elys Price message Price { string asset = 1; string price = 2 [ @@ -30,17 +32,19 @@ message Price { uint64 block_height = 6; } - +// Elys PriceFeeder message PriceFeeder { string feeder = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; bool is_active = 2; } +// Elys Pool message Pool { uint64 pool_id = 1; repeated PoolAsset pool_assets = 2 [ (gogoproto.nullable) = false ]; } +// Elys PoolAsset message PoolAsset { cosmos.base.v1beta1.Coin token = 1 [ (gogoproto.nullable) = false ]; string weight = 2 [ @@ -55,6 +59,7 @@ message PoolAsset { ]; } +// Elys AccountedPool message AccountedPool { uint64 pool_id = 1; repeated cosmos.base.v1beta1.Coin total_tokens = 2 diff --git a/proto/ojo/oracle/v1/query.proto b/proto/ojo/oracle/v1/query.proto index 4f497507..b8a862e1 100644 --- a/proto/ojo/oracle/v1/query.proto +++ b/proto/ojo/oracle/v1/query.proto @@ -305,18 +305,22 @@ message QueryValidatorRewardSetResponse { ValidatorRewardSet validators = 1 [(gogoproto.nullable) = false]; } +// QueryGetPriceRequest is the request type for the Query/GetPriceRequest RPC method. message QueryGetPriceRequest { string asset = 1; string source = 2; uint64 timestamp = 3; } +// QueryGetPriceResponse is the response type for the Query/GetPriceRequest RPC method. message QueryGetPriceResponse { Price price = 1 [ (gogoproto.nullable) = false ]; } +// QueryAllPriceRequest is the request type for the Query/AllPriceRequest RPC method. message QueryAllPriceRequest {} +// QueryAllPriceResponse is the response type for the Query/AllPriceRequest RPC method. message QueryAllPriceResponse { repeated Price price = 1 [ (gogoproto.nullable) = false ]; } diff --git a/proto/ojo/oracle/v1/tx.proto b/proto/ojo/oracle/v1/tx.proto index e345fc29..27207592 100644 --- a/proto/ojo/oracle/v1/tx.proto +++ b/proto/ojo/oracle/v1/tx.proto @@ -14,7 +14,7 @@ option (gogoproto.goproto_getters_all) = false; // Msg defines the oracle Msg service. service Msg { option (cosmos.msg.v1.service) = true; - + // AggregateExchangeRatePrevote defines a method for submitting an aggregate // exchange rate prevote. rpc AggregateExchangeRatePrevote(MsgAggregateExchangeRatePrevote) @@ -29,28 +29,35 @@ service Msg { rpc DelegateFeedConsent(MsgDelegateFeedConsent) returns (MsgDelegateFeedConsentResponse); + // FeedPrice defines a method for setting and elys price. rpc FeedPrice(MsgFeedPrice) returns (MsgFeedPriceResponse); + // FeedMultiplePrices defines a method for setting multiple elys prices. rpc FeedMultiplePrices(MsgFeedMultiplePrices) returns (MsgFeedMultiplePricesResponse); + // SetPriceFeeder defines a method for setting an elys price feeder. rpc SetPriceFeeder(MsgSetPriceFeeder) returns (MsgSetPriceFeederResponse); + // DeletePriceFeeder defines a method for deleting an elys price feeder. rpc DeletePriceFeeder(MsgDeletePriceFeeder) returns (MsgDeletePriceFeederResponse); - // proposals + // RemoveAssetInfo defines a method for removing an elys asset info. rpc RemoveAssetInfo(MsgRemoveAssetInfo) returns (MsgRemoveAssetInfoResponse); + // AddPriceFeeders defines a method for adding elys price feeders. rpc AddPriceFeeders(MsgAddPriceFeeders) returns (MsgAddPriceFeedersResponse); + // RemovePriceFeeders defines a method for removing elys price feeders. rpc RemovePriceFeeders(MsgRemovePriceFeeders) returns (MsgRemovePriceFeedersResponse); + // CreateAssetInfo defines a method for creating elys asset infos. rpc CreateAssetInfo(MsgCreateAssetInfo) returns (MsgCreateAssetInfoResponse); @@ -133,6 +140,7 @@ message MsgDelegateFeedConsent { // type. message MsgDelegateFeedConsentResponse {} +// FeedPrice defines a feed price object for feeding an elys price. message FeedPrice { string asset = 1; string price = 2 [ @@ -142,61 +150,84 @@ message FeedPrice { ]; string source = 3; } + +// MsgFeedPrice defines a message to feed an elys price. message MsgFeedPrice { option (cosmos.msg.v1.signer) = "provider"; string provider = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; FeedPrice feed_price = 2 [ (gogoproto.nullable) = false ]; } +// MsgFeedPriceResponse defines the Msg/FeedPrice response +// type. message MsgFeedPriceResponse {} +// MsgSetPriceFeeder defines a message to set an elys price feeder. message MsgSetPriceFeeder { option (cosmos.msg.v1.signer) = "feeder"; string feeder = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; bool is_active = 2; } +// MsgSetPriceFeederResponse defines the Msg/SetPriceFeederResponse response +// type. message MsgSetPriceFeederResponse {} +// MsgDeletePriceFeeder defines a message to delete an elys price feeder. message MsgDeletePriceFeeder { option (cosmos.msg.v1.signer) = "feeder"; string feeder = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; } +// MsgDeletePriceFeederResponse defines the Msg/DeleteFeederResponse response +// type. message MsgDeletePriceFeederResponse {} +// MsgFeedMultiplePrices defines a message to feed multiple elys prices. message MsgFeedMultiplePrices { option (cosmos.msg.v1.signer) = "creator"; string creator = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; repeated FeedPrice feed_prices = 2 [ (gogoproto.nullable) = false ]; } +// MsgFeedMultiplePricesResponse defines the Msg/FeedMultiplePrices response +// type. message MsgFeedMultiplePricesResponse {} +// MsgRemoveAssetInfo represents a message to remove an elys asset info. message MsgRemoveAssetInfo { option (cosmos.msg.v1.signer) = "authority"; string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; string denom = 2; } +// MsgRemoveAssetInfo defines the Msg/RemoveAssetInfo response +// type. message MsgRemoveAssetInfoResponse {} +// MsgAddPriceFeeders represents a message to add elys price feeders. message MsgAddPriceFeeders { option (cosmos.msg.v1.signer) = "authority"; string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; repeated string feeders = 2; } +// MsgAddPriceFeedersResponse defines the Msg/AddPriceFeeders response +// type. message MsgAddPriceFeedersResponse {} +// MsgRemovePriceFeeders represents a message to remove elys price feeders. message MsgRemovePriceFeeders { option (cosmos.msg.v1.signer) = "authority"; string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; repeated string feeders = 2; } +// MsgRemovePriceFeedersResponse defines the Msg/RemovePriceFeeders response +// type. message MsgRemovePriceFeedersResponse {} +// MsgCreateAssetInfo represents a message to create elys asset info. message MsgCreateAssetInfo { option (cosmos.msg.v1.signer) = "creator"; string creator = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; @@ -207,6 +238,8 @@ message MsgCreateAssetInfo { uint64 decimal = 6; } +// MsgCreateAssetInfoResponse defines the Msg/CreateAssetInfo response +// type. message MsgCreateAssetInfoResponse {} // MsgLegacyGovUpdateParams defines the Msg/MsgLegacyGovUpdateParams request type. diff --git a/x/oracle/types/abci.pb.go b/x/oracle/types/abci.pb.go index dc83504c..701b6523 100644 --- a/x/oracle/types/abci.pb.go +++ b/x/oracle/types/abci.pb.go @@ -109,6 +109,7 @@ func (m *InjectedVoteExtensionTx) XXX_DiscardUnknown() { var xxx_messageInfo_InjectedVoteExtensionTx proto.InternalMessageInfo +// Elys Asset Amount Depth type AssetAmountDepth struct { Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` Amount cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=amount,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"amount"` diff --git a/x/oracle/types/elys.pb.go b/x/oracle/types/elys.pb.go index 28c206ef..538f72a3 100644 --- a/x/oracle/types/elys.pb.go +++ b/x/oracle/types/elys.pb.go @@ -26,6 +26,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// Elys AssetInfo type AssetInfo struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` Display string `protobuf:"bytes,2,opt,name=display,proto3" json:"display,omitempty"` @@ -67,6 +68,7 @@ func (m *AssetInfo) XXX_DiscardUnknown() { var xxx_messageInfo_AssetInfo proto.InternalMessageInfo +// Elys Price type Price struct { Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price"` @@ -109,6 +111,7 @@ func (m *Price) XXX_DiscardUnknown() { var xxx_messageInfo_Price proto.InternalMessageInfo +// Elys PriceFeeder type PriceFeeder struct { Feeder string `protobuf:"bytes,1,opt,name=feeder,proto3" json:"feeder,omitempty"` IsActive bool `protobuf:"varint,2,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` @@ -147,6 +150,7 @@ func (m *PriceFeeder) XXX_DiscardUnknown() { var xxx_messageInfo_PriceFeeder proto.InternalMessageInfo +// Elys Pool type Pool struct { PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` PoolAssets []PoolAsset `protobuf:"bytes,2,rep,name=pool_assets,json=poolAssets,proto3" json:"pool_assets"` @@ -185,6 +189,7 @@ func (m *Pool) XXX_DiscardUnknown() { var xxx_messageInfo_Pool proto.InternalMessageInfo +// Elys PoolAsset type PoolAsset struct { Token types.Coin `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` Weight cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=weight,proto3,customtype=cosmossdk.io/math.Int" json:"weight"` @@ -224,6 +229,7 @@ func (m *PoolAsset) XXX_DiscardUnknown() { var xxx_messageInfo_PoolAsset proto.InternalMessageInfo +// Elys AccountedPool type AccountedPool struct { PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` TotalTokens []types.Coin `protobuf:"bytes,2,rep,name=total_tokens,json=totalTokens,proto3" json:"total_tokens"` diff --git a/x/oracle/types/query.pb.go b/x/oracle/types/query.pb.go index 7efa1bcf..8922668d 100644 --- a/x/oracle/types/query.pb.go +++ b/x/oracle/types/query.pb.go @@ -1063,6 +1063,7 @@ func (m *QueryValidatorRewardSetResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryValidatorRewardSetResponse proto.InternalMessageInfo +// QueryGetPriceRequest is the request type for the Query/GetPriceRequest RPC method. type QueryGetPriceRequest struct { Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` @@ -1102,6 +1103,7 @@ func (m *QueryGetPriceRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryGetPriceRequest proto.InternalMessageInfo +// QueryGetPriceResponse is the response type for the Query/GetPriceRequest RPC method. type QueryGetPriceResponse struct { Price Price `protobuf:"bytes,1,opt,name=price,proto3" json:"price"` } @@ -1139,6 +1141,7 @@ func (m *QueryGetPriceResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryGetPriceResponse proto.InternalMessageInfo +// QueryAllPriceRequest is the request type for the Query/AllPriceRequest RPC method. type QueryAllPriceRequest struct { } @@ -1175,6 +1178,7 @@ func (m *QueryAllPriceRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryAllPriceRequest proto.InternalMessageInfo +// QueryAllPriceResponse is the response type for the Query/AllPriceRequest RPC method. type QueryAllPriceResponse struct { Price []Price `protobuf:"bytes,1,rep,name=price,proto3" json:"price"` } diff --git a/x/oracle/types/tx.pb.go b/x/oracle/types/tx.pb.go index 4633daec..9f9af2b6 100644 --- a/x/oracle/types/tx.pb.go +++ b/x/oracle/types/tx.pb.go @@ -273,6 +273,7 @@ func (m *MsgDelegateFeedConsentResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDelegateFeedConsentResponse proto.InternalMessageInfo +// FeedPrice defines a feed price object for feeding an elys price. type FeedPrice struct { Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price"` @@ -312,6 +313,7 @@ func (m *FeedPrice) XXX_DiscardUnknown() { var xxx_messageInfo_FeedPrice proto.InternalMessageInfo +// MsgFeedPrice defines a message to feed an elys price. type MsgFeedPrice struct { Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` FeedPrice FeedPrice `protobuf:"bytes,2,opt,name=feed_price,json=feedPrice,proto3" json:"feed_price"` @@ -350,6 +352,8 @@ func (m *MsgFeedPrice) XXX_DiscardUnknown() { var xxx_messageInfo_MsgFeedPrice proto.InternalMessageInfo +// MsgFeedPriceResponse defines the Msg/FeedPrice response +// type. type MsgFeedPriceResponse struct { } @@ -386,6 +390,7 @@ func (m *MsgFeedPriceResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgFeedPriceResponse proto.InternalMessageInfo +// MsgSetPriceFeeder defines a message to set an elys price feeder. type MsgSetPriceFeeder struct { Feeder string `protobuf:"bytes,1,opt,name=feeder,proto3" json:"feeder,omitempty"` IsActive bool `protobuf:"varint,2,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` @@ -424,6 +429,8 @@ func (m *MsgSetPriceFeeder) XXX_DiscardUnknown() { var xxx_messageInfo_MsgSetPriceFeeder proto.InternalMessageInfo +// MsgSetPriceFeederResponse defines the Msg/SetPriceFeederResponse response +// type. type MsgSetPriceFeederResponse struct { } @@ -460,6 +467,7 @@ func (m *MsgSetPriceFeederResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgSetPriceFeederResponse proto.InternalMessageInfo +// MsgDeletePriceFeeder defines a message to delete an elys price feeder. type MsgDeletePriceFeeder struct { Feeder string `protobuf:"bytes,1,opt,name=feeder,proto3" json:"feeder,omitempty"` } @@ -497,6 +505,8 @@ func (m *MsgDeletePriceFeeder) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDeletePriceFeeder proto.InternalMessageInfo +// MsgDeletePriceFeederResponse defines the Msg/DeleteFeederResponse response +// type. type MsgDeletePriceFeederResponse struct { } @@ -533,6 +543,7 @@ func (m *MsgDeletePriceFeederResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDeletePriceFeederResponse proto.InternalMessageInfo +// MsgFeedMultiplePrices defines a message to feed multiple elys prices. type MsgFeedMultiplePrices struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` FeedPrices []FeedPrice `protobuf:"bytes,2,rep,name=feed_prices,json=feedPrices,proto3" json:"feed_prices"` @@ -571,6 +582,8 @@ func (m *MsgFeedMultiplePrices) XXX_DiscardUnknown() { var xxx_messageInfo_MsgFeedMultiplePrices proto.InternalMessageInfo +// MsgFeedMultiplePricesResponse defines the Msg/FeedMultiplePrices response +// type. type MsgFeedMultiplePricesResponse struct { } @@ -607,6 +620,7 @@ func (m *MsgFeedMultiplePricesResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgFeedMultiplePricesResponse proto.InternalMessageInfo +// MsgRemoveAssetInfo represents a message to remove an elys asset info. type MsgRemoveAssetInfo struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` @@ -645,6 +659,8 @@ func (m *MsgRemoveAssetInfo) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRemoveAssetInfo proto.InternalMessageInfo +// MsgRemoveAssetInfo defines the Msg/RemoveAssetInfo response +// type. type MsgRemoveAssetInfoResponse struct { } @@ -681,6 +697,7 @@ func (m *MsgRemoveAssetInfoResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRemoveAssetInfoResponse proto.InternalMessageInfo +// MsgAddPriceFeeders represents a message to add elys price feeders. type MsgAddPriceFeeders struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Feeders []string `protobuf:"bytes,2,rep,name=feeders,proto3" json:"feeders,omitempty"` @@ -719,6 +736,8 @@ func (m *MsgAddPriceFeeders) XXX_DiscardUnknown() { var xxx_messageInfo_MsgAddPriceFeeders proto.InternalMessageInfo +// MsgAddPriceFeedersResponse defines the Msg/AddPriceFeeders response +// type. type MsgAddPriceFeedersResponse struct { } @@ -755,6 +774,7 @@ func (m *MsgAddPriceFeedersResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgAddPriceFeedersResponse proto.InternalMessageInfo +// MsgRemovePriceFeeders represents a message to remove elys price feeders. type MsgRemovePriceFeeders struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Feeders []string `protobuf:"bytes,2,rep,name=feeders,proto3" json:"feeders,omitempty"` @@ -793,6 +813,8 @@ func (m *MsgRemovePriceFeeders) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRemovePriceFeeders proto.InternalMessageInfo +// MsgRemovePriceFeedersResponse defines the Msg/RemovePriceFeeders response +// type. type MsgRemovePriceFeedersResponse struct { } @@ -829,6 +851,7 @@ func (m *MsgRemovePriceFeedersResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRemovePriceFeedersResponse proto.InternalMessageInfo +// MsgCreateAssetInfo represents a message to create elys asset info. type MsgCreateAssetInfo struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` @@ -871,6 +894,8 @@ func (m *MsgCreateAssetInfo) XXX_DiscardUnknown() { var xxx_messageInfo_MsgCreateAssetInfo proto.InternalMessageInfo +// MsgCreateAssetInfoResponse defines the Msg/CreateAssetInfo response +// type. type MsgCreateAssetInfoResponse struct { } @@ -1845,14 +1870,21 @@ type MsgClient interface { AggregateExchangeRateVote(ctx context.Context, in *MsgAggregateExchangeRateVote, opts ...grpc.CallOption) (*MsgAggregateExchangeRateVoteResponse, error) // DelegateFeedConsent defines a method for setting the feeder delegation. DelegateFeedConsent(ctx context.Context, in *MsgDelegateFeedConsent, opts ...grpc.CallOption) (*MsgDelegateFeedConsentResponse, error) + // FeedPrice defines a method for setting and elys price. FeedPrice(ctx context.Context, in *MsgFeedPrice, opts ...grpc.CallOption) (*MsgFeedPriceResponse, error) + // FeedMultiplePrices defines a method for setting multiple elys prices. FeedMultiplePrices(ctx context.Context, in *MsgFeedMultiplePrices, opts ...grpc.CallOption) (*MsgFeedMultiplePricesResponse, error) + // SetPriceFeeder defines a method for setting an elys price feeder. SetPriceFeeder(ctx context.Context, in *MsgSetPriceFeeder, opts ...grpc.CallOption) (*MsgSetPriceFeederResponse, error) + // DeletePriceFeeder defines a method for deleting an elys price feeder. DeletePriceFeeder(ctx context.Context, in *MsgDeletePriceFeeder, opts ...grpc.CallOption) (*MsgDeletePriceFeederResponse, error) - // proposals + // RemoveAssetInfo defines a method for removing an elys asset info. RemoveAssetInfo(ctx context.Context, in *MsgRemoveAssetInfo, opts ...grpc.CallOption) (*MsgRemoveAssetInfoResponse, error) + // AddPriceFeeders defines a method for adding elys price feeders. AddPriceFeeders(ctx context.Context, in *MsgAddPriceFeeders, opts ...grpc.CallOption) (*MsgAddPriceFeedersResponse, error) + // RemovePriceFeeders defines a method for removing elys price feeders. RemovePriceFeeders(ctx context.Context, in *MsgRemovePriceFeeders, opts ...grpc.CallOption) (*MsgRemovePriceFeedersResponse, error) + // CreateAssetInfo defines a method for creating elys asset infos. CreateAssetInfo(ctx context.Context, in *MsgCreateAssetInfo, opts ...grpc.CallOption) (*MsgCreateAssetInfoResponse, error) // LegacyGovUpdateParams defines the legacy message that updates the oracle parameters. LegacyGovUpdateParams(ctx context.Context, in *MsgLegacyGovUpdateParams, opts ...grpc.CallOption) (*MsgLegacyGovUpdateParamsResponse, error) @@ -2041,14 +2073,21 @@ type MsgServer interface { AggregateExchangeRateVote(context.Context, *MsgAggregateExchangeRateVote) (*MsgAggregateExchangeRateVoteResponse, error) // DelegateFeedConsent defines a method for setting the feeder delegation. DelegateFeedConsent(context.Context, *MsgDelegateFeedConsent) (*MsgDelegateFeedConsentResponse, error) + // FeedPrice defines a method for setting and elys price. FeedPrice(context.Context, *MsgFeedPrice) (*MsgFeedPriceResponse, error) + // FeedMultiplePrices defines a method for setting multiple elys prices. FeedMultiplePrices(context.Context, *MsgFeedMultiplePrices) (*MsgFeedMultiplePricesResponse, error) + // SetPriceFeeder defines a method for setting an elys price feeder. SetPriceFeeder(context.Context, *MsgSetPriceFeeder) (*MsgSetPriceFeederResponse, error) + // DeletePriceFeeder defines a method for deleting an elys price feeder. DeletePriceFeeder(context.Context, *MsgDeletePriceFeeder) (*MsgDeletePriceFeederResponse, error) - // proposals + // RemoveAssetInfo defines a method for removing an elys asset info. RemoveAssetInfo(context.Context, *MsgRemoveAssetInfo) (*MsgRemoveAssetInfoResponse, error) + // AddPriceFeeders defines a method for adding elys price feeders. AddPriceFeeders(context.Context, *MsgAddPriceFeeders) (*MsgAddPriceFeedersResponse, error) + // RemovePriceFeeders defines a method for removing elys price feeders. RemovePriceFeeders(context.Context, *MsgRemovePriceFeeders) (*MsgRemovePriceFeedersResponse, error) + // CreateAssetInfo defines a method for creating elys asset infos. CreateAssetInfo(context.Context, *MsgCreateAssetInfo) (*MsgCreateAssetInfoResponse, error) // LegacyGovUpdateParams defines the legacy message that updates the oracle parameters. LegacyGovUpdateParams(context.Context, *MsgLegacyGovUpdateParams) (*MsgLegacyGovUpdateParamsResponse, error) From 3689817670ec2edc247c4b75cda4a222a1a36905 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Fri, 24 Jan 2025 15:57:01 -0500 Subject: [PATCH 36/77] more buf lint --- proto/ojo/oracle/v1/query.proto | 24 +- x/oracle/client/cli/query.go | 4 +- x/oracle/keeper/grpc_query.go | 14 +- x/oracle/types/query.pb.go | 387 ++++++++++++++++---------------- x/oracle/types/query.pb.gw.go | 8 +- 5 files changed, 219 insertions(+), 218 deletions(-) diff --git a/proto/ojo/oracle/v1/query.proto b/proto/ojo/oracle/v1/query.proto index b8a862e1..421d137e 100644 --- a/proto/ojo/oracle/v1/query.proto +++ b/proto/ojo/oracle/v1/query.proto @@ -100,14 +100,14 @@ service Query { } // Queries a Price by asset. - rpc Price(QueryGetPriceRequest) - returns (QueryGetPriceResponse) { + rpc Price(QueryPriceRequest) + returns (QueryPriceResponse) { option (google.api.http).get = "/elys-network/elys/oracle/price/{asset}"; } // Queries a list of Price items. - rpc PriceAll(QueryAllPriceRequest) - returns (QueryAllPriceResponse) { + rpc PriceAll(QueryPriceAllRequest) + returns (QueryPriceAllResponse) { option (google.api.http).get = "/elys-network/elys/oracle/prices"; } } @@ -305,22 +305,22 @@ message QueryValidatorRewardSetResponse { ValidatorRewardSet validators = 1 [(gogoproto.nullable) = false]; } -// QueryGetPriceRequest is the request type for the Query/GetPriceRequest RPC method. -message QueryGetPriceRequest { +// QueryPriceRequest is the request type for the Query/PriceRequest RPC method. +message QueryPriceRequest { string asset = 1; string source = 2; uint64 timestamp = 3; } -// QueryGetPriceResponse is the response type for the Query/GetPriceRequest RPC method. -message QueryGetPriceResponse { +// QueryPriceResponse is the response type for the Query/PriceRequest RPC method. +message QueryPriceResponse { Price price = 1 [ (gogoproto.nullable) = false ]; } -// QueryAllPriceRequest is the request type for the Query/AllPriceRequest RPC method. -message QueryAllPriceRequest {} +// QueryPriceAllRequest is the request type for the Query/PriceAllRequest RPC method. +message QueryPriceAllRequest {} -// QueryAllPriceResponse is the response type for the Query/AllPriceRequest RPC method. -message QueryAllPriceResponse { +// QueryPriceAllResponse is the response type for the Query/AllPriceRequest RPC method. +message QueryPriceAllResponse { repeated Price price = 1 [ (gogoproto.nullable) = false ]; } diff --git a/x/oracle/client/cli/query.go b/x/oracle/client/cli/query.go index 0e5bfb94..0b71ab31 100644 --- a/x/oracle/client/cli/query.go +++ b/x/oracle/client/cli/query.go @@ -291,7 +291,7 @@ func GetCmdListPrice() *cobra.Command { } queryClient := types.NewQueryClient(clientCtx) - res, err := queryClient.PriceAll(cmd.Context(), &types.QueryAllPriceRequest{}) + res, err := queryClient.PriceAll(cmd.Context(), &types.QueryPriceAllRequest{}) return cli.PrintOrErr(res, err, clientCtx) }, } @@ -314,7 +314,7 @@ func CmdShowPrice() *cobra.Command { } queryClient := types.NewQueryClient(clientCtx) - params := &types.QueryGetPriceRequest{ + params := &types.QueryPriceRequest{ Asset: args[0], Source: args[1], Timestamp: timestamp, diff --git a/x/oracle/keeper/grpc_query.go b/x/oracle/keeper/grpc_query.go index 5c84f800..00d467ad 100644 --- a/x/oracle/keeper/grpc_query.go +++ b/x/oracle/keeper/grpc_query.go @@ -332,8 +332,8 @@ func (q querier) ValidatorRewardSet( func (q querier) PriceAll( goCtx context.Context, - req *types.QueryAllPriceRequest, -) (*types.QueryAllPriceResponse, error) { + req *types.QueryPriceAllRequest, +) (*types.QueryPriceAllResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -342,10 +342,10 @@ func (q querier) PriceAll( prices := q.GetAllPrice(ctx) - return &types.QueryAllPriceResponse{Price: prices}, nil + return &types.QueryPriceAllResponse{Price: prices}, nil } -func (q querier) Price(goCtx context.Context, req *types.QueryGetPriceRequest) (*types.QueryGetPriceResponse, error) { +func (q querier) Price(goCtx context.Context, req *types.QueryPriceRequest) (*types.QueryPriceResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -357,7 +357,7 @@ func (q querier) Price(goCtx context.Context, req *types.QueryGetPriceRequest) ( if !found { return nil, status.Error(codes.NotFound, "not found") } - return &types.QueryGetPriceResponse{Price: val}, nil + return &types.QueryPriceResponse{Price: val}, nil } // if source is specified use latest price from source @@ -366,7 +366,7 @@ func (q querier) Price(goCtx context.Context, req *types.QueryGetPriceRequest) ( if !found { return nil, status.Error(codes.NotFound, "not found") } - return &types.QueryGetPriceResponse{Price: val}, nil + return &types.QueryPriceResponse{Price: val}, nil } // find from any source if band source does not exist @@ -374,5 +374,5 @@ func (q querier) Price(goCtx context.Context, req *types.QueryGetPriceRequest) ( if !found { return nil, status.Error(codes.NotFound, "not found") } - return &types.QueryGetPriceResponse{Price: val}, nil + return &types.QueryPriceResponse{Price: val}, nil } diff --git a/x/oracle/types/query.pb.go b/x/oracle/types/query.pb.go index 8922668d..ed2f40ea 100644 --- a/x/oracle/types/query.pb.go +++ b/x/oracle/types/query.pb.go @@ -1063,25 +1063,25 @@ func (m *QueryValidatorRewardSetResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryValidatorRewardSetResponse proto.InternalMessageInfo -// QueryGetPriceRequest is the request type for the Query/GetPriceRequest RPC method. -type QueryGetPriceRequest struct { +// QueryPriceRequest is the request type for the Query/PriceRequest RPC method. +type QueryPriceRequest struct { Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func (m *QueryGetPriceRequest) Reset() { *m = QueryGetPriceRequest{} } -func (m *QueryGetPriceRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetPriceRequest) ProtoMessage() {} -func (*QueryGetPriceRequest) Descriptor() ([]byte, []int) { +func (m *QueryPriceRequest) Reset() { *m = QueryPriceRequest{} } +func (m *QueryPriceRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPriceRequest) ProtoMessage() {} +func (*QueryPriceRequest) Descriptor() ([]byte, []int) { return fileDescriptor_ac3bb5b34dcda556, []int{26} } -func (m *QueryGetPriceRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryPriceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetPriceRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPriceRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1091,35 +1091,35 @@ func (m *QueryGetPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *QueryGetPriceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetPriceRequest.Merge(m, src) +func (m *QueryPriceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPriceRequest.Merge(m, src) } -func (m *QueryGetPriceRequest) XXX_Size() int { +func (m *QueryPriceRequest) XXX_Size() int { return m.Size() } -func (m *QueryGetPriceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetPriceRequest.DiscardUnknown(m) +func (m *QueryPriceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPriceRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetPriceRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryPriceRequest proto.InternalMessageInfo -// QueryGetPriceResponse is the response type for the Query/GetPriceRequest RPC method. -type QueryGetPriceResponse struct { +// QueryPriceResponse is the response type for the Query/PriceRequest RPC method. +type QueryPriceResponse struct { Price Price `protobuf:"bytes,1,opt,name=price,proto3" json:"price"` } -func (m *QueryGetPriceResponse) Reset() { *m = QueryGetPriceResponse{} } -func (m *QueryGetPriceResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetPriceResponse) ProtoMessage() {} -func (*QueryGetPriceResponse) Descriptor() ([]byte, []int) { +func (m *QueryPriceResponse) Reset() { *m = QueryPriceResponse{} } +func (m *QueryPriceResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPriceResponse) ProtoMessage() {} +func (*QueryPriceResponse) Descriptor() ([]byte, []int) { return fileDescriptor_ac3bb5b34dcda556, []int{27} } -func (m *QueryGetPriceResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryPriceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetPriceResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPriceResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1129,34 +1129,34 @@ func (m *QueryGetPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *QueryGetPriceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetPriceResponse.Merge(m, src) +func (m *QueryPriceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPriceResponse.Merge(m, src) } -func (m *QueryGetPriceResponse) XXX_Size() int { +func (m *QueryPriceResponse) XXX_Size() int { return m.Size() } -func (m *QueryGetPriceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetPriceResponse.DiscardUnknown(m) +func (m *QueryPriceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPriceResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetPriceResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryPriceResponse proto.InternalMessageInfo -// QueryAllPriceRequest is the request type for the Query/AllPriceRequest RPC method. -type QueryAllPriceRequest struct { +// QueryPriceAllRequest is the request type for the Query/PriceAllRequest RPC method. +type QueryPriceAllRequest struct { } -func (m *QueryAllPriceRequest) Reset() { *m = QueryAllPriceRequest{} } -func (m *QueryAllPriceRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllPriceRequest) ProtoMessage() {} -func (*QueryAllPriceRequest) Descriptor() ([]byte, []int) { +func (m *QueryPriceAllRequest) Reset() { *m = QueryPriceAllRequest{} } +func (m *QueryPriceAllRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPriceAllRequest) ProtoMessage() {} +func (*QueryPriceAllRequest) Descriptor() ([]byte, []int) { return fileDescriptor_ac3bb5b34dcda556, []int{28} } -func (m *QueryAllPriceRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryPriceAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPriceAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllPriceRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPriceAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1166,35 +1166,35 @@ func (m *QueryAllPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *QueryAllPriceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllPriceRequest.Merge(m, src) +func (m *QueryPriceAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPriceAllRequest.Merge(m, src) } -func (m *QueryAllPriceRequest) XXX_Size() int { +func (m *QueryPriceAllRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllPriceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllPriceRequest.DiscardUnknown(m) +func (m *QueryPriceAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPriceAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllPriceRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryPriceAllRequest proto.InternalMessageInfo -// QueryAllPriceResponse is the response type for the Query/AllPriceRequest RPC method. -type QueryAllPriceResponse struct { +// QueryPriceAllResponse is the response type for the Query/AllPriceRequest RPC method. +type QueryPriceAllResponse struct { Price []Price `protobuf:"bytes,1,rep,name=price,proto3" json:"price"` } -func (m *QueryAllPriceResponse) Reset() { *m = QueryAllPriceResponse{} } -func (m *QueryAllPriceResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllPriceResponse) ProtoMessage() {} -func (*QueryAllPriceResponse) Descriptor() ([]byte, []int) { +func (m *QueryPriceAllResponse) Reset() { *m = QueryPriceAllResponse{} } +func (m *QueryPriceAllResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPriceAllResponse) ProtoMessage() {} +func (*QueryPriceAllResponse) Descriptor() ([]byte, []int) { return fileDescriptor_ac3bb5b34dcda556, []int{29} } -func (m *QueryAllPriceResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryPriceAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPriceAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllPriceResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPriceAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1204,17 +1204,17 @@ func (m *QueryAllPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *QueryAllPriceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllPriceResponse.Merge(m, src) +func (m *QueryPriceAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPriceAllResponse.Merge(m, src) } -func (m *QueryAllPriceResponse) XXX_Size() int { +func (m *QueryPriceAllResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllPriceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllPriceResponse.DiscardUnknown(m) +func (m *QueryPriceAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPriceAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllPriceResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryPriceAllResponse proto.InternalMessageInfo func init() { proto.RegisterType((*QueryExchangeRates)(nil), "ojo.oracle.v1.QueryExchangeRates") @@ -1243,103 +1243,104 @@ func init() { proto.RegisterType((*QueryMedianDeviationsResponse)(nil), "ojo.oracle.v1.QueryMedianDeviationsResponse") proto.RegisterType((*QueryValidatorRewardSet)(nil), "ojo.oracle.v1.QueryValidatorRewardSet") proto.RegisterType((*QueryValidatorRewardSetResponse)(nil), "ojo.oracle.v1.QueryValidatorRewardSetResponse") - proto.RegisterType((*QueryGetPriceRequest)(nil), "ojo.oracle.v1.QueryGetPriceRequest") - proto.RegisterType((*QueryGetPriceResponse)(nil), "ojo.oracle.v1.QueryGetPriceResponse") - proto.RegisterType((*QueryAllPriceRequest)(nil), "ojo.oracle.v1.QueryAllPriceRequest") - proto.RegisterType((*QueryAllPriceResponse)(nil), "ojo.oracle.v1.QueryAllPriceResponse") + proto.RegisterType((*QueryPriceRequest)(nil), "ojo.oracle.v1.QueryPriceRequest") + proto.RegisterType((*QueryPriceResponse)(nil), "ojo.oracle.v1.QueryPriceResponse") + proto.RegisterType((*QueryPriceAllRequest)(nil), "ojo.oracle.v1.QueryPriceAllRequest") + proto.RegisterType((*QueryPriceAllResponse)(nil), "ojo.oracle.v1.QueryPriceAllResponse") } func init() { proto.RegisterFile("ojo/oracle/v1/query.proto", fileDescriptor_ac3bb5b34dcda556) } var fileDescriptor_ac3bb5b34dcda556 = []byte{ - // 1392 bytes of a gzipped FileDescriptorProto + // 1393 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x98, 0xcf, 0x6f, 0x13, 0x47, - 0x14, 0xc7, 0xb3, 0x40, 0x02, 0x79, 0xc6, 0x21, 0x19, 0x12, 0x30, 0x0b, 0xd8, 0xc9, 0x00, 0x4d, - 0xd2, 0x90, 0x5d, 0x42, 0x50, 0x11, 0xfd, 0xa5, 0x86, 0x84, 0xd2, 0x9f, 0x12, 0x18, 0x15, 0xa4, - 0x1e, 0xea, 0x6e, 0xbc, 0x53, 0x67, 0x83, 0xbd, 0x63, 0x76, 0x36, 0x0e, 0x88, 0x22, 0x24, 0x7a, - 0xe9, 0x11, 0x09, 0xa9, 0x97, 0x1e, 0x4a, 0x25, 0x4e, 0x55, 0x0f, 0xfd, 0x33, 0x38, 0x22, 0xf5, - 0xd2, 0x53, 0x7f, 0x40, 0x0f, 0xfd, 0x33, 0xaa, 0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 0x37, 0x42, 0xc4, 0xcd, 0xe8, 0xb3, 0xbb, 0x54, 0x48, 0x0a, 0x93, 0x53, 0x2c, 0xa2, + 0x79, 0xfe, 0xd1, 0x62, 0xd9, 0x25, 0xfe, 0x36, 0xf5, 0xee, 0xf2, 0x8b, 0x90, 0x89, 0x5b, 0x04, + 0xf3, 0x21, 0xb7, 0x42, 0x3b, 0xe8, 0x11, 0x1c, 0x0a, 0x0d, 0x07, 0x9a, 0xeb, 0xab, 0xdf, 0xb3, + 0x29, 0xfa, 0x99, 0xdd, 0x8b, 0x24, 0xc7, 0x02, 0xe7, 0xc0, 0x68, 0x66, 0x00, 0x07, 0xbb, 0x72, + 0xfd, 0xc5, 0x3f, 0xa5, 0xdc, 0x8b, 0x57, 0x25, 0xed, 0xe5, 0xab, 0x92, 0xf6, 0xf7, 0xab, 0x92, + 0xf6, 0xe4, 0x75, 0x29, 0xf7, 0xf2, 0x75, 0x29, 0xf7, 0xc7, 0xeb, 0x52, 0xee, 0xab, 0xc5, 0xc8, + 0xc7, 0x0b, 0xba, 0x45, 0x95, 0x50, 0x30, 0xe3, 0xfb, 0xa1, 0x12, 0xff, 0x86, 0xb1, 0x31, 0xca, + 0xbf, 0xc0, 0xac, 0xfc, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xd7, 0x37, 0x3d, 0x0f, 0x37, 0x12, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1386,9 +1387,9 @@ type QueryClient interface { // misscounter in a given Slash Window ValidatorRewardSet(ctx context.Context, in *QueryValidatorRewardSet, opts ...grpc.CallOption) (*QueryValidatorRewardSetResponse, error) // Queries a Price by asset. - Price(ctx context.Context, in *QueryGetPriceRequest, opts ...grpc.CallOption) (*QueryGetPriceResponse, error) + Price(ctx context.Context, in *QueryPriceRequest, opts ...grpc.CallOption) (*QueryPriceResponse, error) // Queries a list of Price items. - PriceAll(ctx context.Context, in *QueryAllPriceRequest, opts ...grpc.CallOption) (*QueryAllPriceResponse, error) + PriceAll(ctx context.Context, in *QueryPriceAllRequest, opts ...grpc.CallOption) (*QueryPriceAllResponse, error) } type queryClient struct { @@ -1516,8 +1517,8 @@ func (c *queryClient) ValidatorRewardSet(ctx context.Context, in *QueryValidator return out, nil } -func (c *queryClient) Price(ctx context.Context, in *QueryGetPriceRequest, opts ...grpc.CallOption) (*QueryGetPriceResponse, error) { - out := new(QueryGetPriceResponse) +func (c *queryClient) Price(ctx context.Context, in *QueryPriceRequest, opts ...grpc.CallOption) (*QueryPriceResponse, error) { + out := new(QueryPriceResponse) err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/Price", in, out, opts...) if err != nil { return nil, err @@ -1525,8 +1526,8 @@ func (c *queryClient) Price(ctx context.Context, in *QueryGetPriceRequest, opts return out, nil } -func (c *queryClient) PriceAll(ctx context.Context, in *QueryAllPriceRequest, opts ...grpc.CallOption) (*QueryAllPriceResponse, error) { - out := new(QueryAllPriceResponse) +func (c *queryClient) PriceAll(ctx context.Context, in *QueryPriceAllRequest, opts ...grpc.CallOption) (*QueryPriceAllResponse, error) { + out := new(QueryPriceAllResponse) err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/PriceAll", in, out, opts...) if err != nil { return nil, err @@ -1568,9 +1569,9 @@ type QueryServer interface { // misscounter in a given Slash Window ValidatorRewardSet(context.Context, *QueryValidatorRewardSet) (*QueryValidatorRewardSetResponse, error) // Queries a Price by asset. - Price(context.Context, *QueryGetPriceRequest) (*QueryGetPriceResponse, error) + Price(context.Context, *QueryPriceRequest) (*QueryPriceResponse, error) // Queries a list of Price items. - PriceAll(context.Context, *QueryAllPriceRequest) (*QueryAllPriceResponse, error) + PriceAll(context.Context, *QueryPriceAllRequest) (*QueryPriceAllResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1616,10 +1617,10 @@ func (*UnimplementedQueryServer) MedianDeviations(ctx context.Context, req *Quer func (*UnimplementedQueryServer) ValidatorRewardSet(ctx context.Context, req *QueryValidatorRewardSet) (*QueryValidatorRewardSetResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidatorRewardSet not implemented") } -func (*UnimplementedQueryServer) Price(ctx context.Context, req *QueryGetPriceRequest) (*QueryGetPriceResponse, error) { +func (*UnimplementedQueryServer) Price(ctx context.Context, req *QueryPriceRequest) (*QueryPriceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Price not implemented") } -func (*UnimplementedQueryServer) PriceAll(ctx context.Context, req *QueryAllPriceRequest) (*QueryAllPriceResponse, error) { +func (*UnimplementedQueryServer) PriceAll(ctx context.Context, req *QueryPriceAllRequest) (*QueryPriceAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PriceAll not implemented") } @@ -1862,7 +1863,7 @@ func _Query_ValidatorRewardSet_Handler(srv interface{}, ctx context.Context, dec } func _Query_Price_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetPriceRequest) + in := new(QueryPriceRequest) if err := dec(in); err != nil { return nil, err } @@ -1874,13 +1875,13 @@ func _Query_Price_Handler(srv interface{}, ctx context.Context, dec func(interfa FullMethod: "/ojo.oracle.v1.Query/Price", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Price(ctx, req.(*QueryGetPriceRequest)) + return srv.(QueryServer).Price(ctx, req.(*QueryPriceRequest)) } return interceptor(ctx, in, info, handler) } func _Query_PriceAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllPriceRequest) + in := new(QueryPriceAllRequest) if err := dec(in); err != nil { return nil, err } @@ -1892,7 +1893,7 @@ func _Query_PriceAll_Handler(srv interface{}, ctx context.Context, dec func(inte FullMethod: "/ojo.oracle.v1.Query/PriceAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PriceAll(ctx, req.(*QueryAllPriceRequest)) + return srv.(QueryServer).PriceAll(ctx, req.(*QueryPriceAllRequest)) } return interceptor(ctx, in, info, handler) } @@ -2754,7 +2755,7 @@ func (m *QueryValidatorRewardSetResponse) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } -func (m *QueryGetPriceRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryPriceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2764,12 +2765,12 @@ func (m *QueryGetPriceRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetPriceRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPriceRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2796,7 +2797,7 @@ func (m *QueryGetPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryGetPriceResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryPriceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2806,12 +2807,12 @@ func (m *QueryGetPriceResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetPriceResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPriceResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2829,7 +2830,7 @@ func (m *QueryGetPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryAllPriceRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryPriceAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2839,12 +2840,12 @@ func (m *QueryAllPriceRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllPriceRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPriceAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPriceAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2852,7 +2853,7 @@ func (m *QueryAllPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryAllPriceResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryPriceAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2862,12 +2863,12 @@ func (m *QueryAllPriceResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllPriceResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPriceAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPriceAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3219,7 +3220,7 @@ func (m *QueryValidatorRewardSetResponse) Size() (n int) { return n } -func (m *QueryGetPriceRequest) Size() (n int) { +func (m *QueryPriceRequest) Size() (n int) { if m == nil { return 0 } @@ -3239,7 +3240,7 @@ func (m *QueryGetPriceRequest) Size() (n int) { return n } -func (m *QueryGetPriceResponse) Size() (n int) { +func (m *QueryPriceResponse) Size() (n int) { if m == nil { return 0 } @@ -3250,7 +3251,7 @@ func (m *QueryGetPriceResponse) Size() (n int) { return n } -func (m *QueryAllPriceRequest) Size() (n int) { +func (m *QueryPriceAllRequest) Size() (n int) { if m == nil { return 0 } @@ -3259,7 +3260,7 @@ func (m *QueryAllPriceRequest) Size() (n int) { return n } -func (m *QueryAllPriceResponse) Size() (n int) { +func (m *QueryPriceAllResponse) Size() (n int) { if m == nil { return 0 } @@ -5227,7 +5228,7 @@ func (m *QueryValidatorRewardSetResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetPriceRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPriceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5250,10 +5251,10 @@ func (m *QueryGetPriceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetPriceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPriceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetPriceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPriceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5360,7 +5361,7 @@ func (m *QueryGetPriceRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetPriceResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPriceResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5383,10 +5384,10 @@ func (m *QueryGetPriceResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetPriceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPriceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetPriceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPriceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5443,7 +5444,7 @@ func (m *QueryGetPriceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllPriceRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPriceAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5466,10 +5467,10 @@ func (m *QueryAllPriceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllPriceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPriceAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllPriceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPriceAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -5493,7 +5494,7 @@ func (m *QueryAllPriceRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllPriceResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPriceAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5516,10 +5517,10 @@ func (m *QueryAllPriceResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllPriceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPriceAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllPriceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPriceAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/oracle/types/query.pb.gw.go b/x/oracle/types/query.pb.gw.go index 5f38267c..e541aefc 100644 --- a/x/oracle/types/query.pb.gw.go +++ b/x/oracle/types/query.pb.gw.go @@ -488,7 +488,7 @@ var ( ) func request_Query_Price_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetPriceRequest + var protoReq QueryPriceRequest var metadata runtime.ServerMetadata var ( @@ -522,7 +522,7 @@ func request_Query_Price_0(ctx context.Context, marshaler runtime.Marshaler, cli } func local_request_Query_Price_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetPriceRequest + var protoReq QueryPriceRequest var metadata runtime.ServerMetadata var ( @@ -556,7 +556,7 @@ func local_request_Query_Price_0(ctx context.Context, marshaler runtime.Marshale } func request_Query_PriceAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllPriceRequest + var protoReq QueryPriceAllRequest var metadata runtime.ServerMetadata msg, err := client.PriceAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -565,7 +565,7 @@ func request_Query_PriceAll_0(ctx context.Context, marshaler runtime.Marshaler, } func local_request_Query_PriceAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllPriceRequest + var protoReq QueryPriceAllRequest var metadata runtime.ServerMetadata msg, err := server.PriceAll(ctx, &protoReq) From 979cb0751fc3d293b0c90abf8c01d68d9dc88a50 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Sun, 26 Jan 2025 13:02:02 -0600 Subject: [PATCH 37/77] fix test --- proto/ojo/oracle/v1/tx.proto | 1 - x/oracle/abci/endblocker_test.go | 326 +++++++++++++-------------- x/oracle/abci/proposal_test.go | 14 +- x/oracle/keeper/ballot_test.go | 4 +- x/oracle/keeper/keeper.go | 2 +- x/oracle/keeper/miss_counter.go | 2 +- x/oracle/keeper/miss_counter_test.go | 4 +- x/oracle/types/keys_test.go | 4 +- x/oracle/types/tx.pb.go | 192 ++++++++-------- 9 files changed, 276 insertions(+), 273 deletions(-) diff --git a/proto/ojo/oracle/v1/tx.proto b/proto/ojo/oracle/v1/tx.proto index 27207592..0d83d7f2 100644 --- a/proto/ojo/oracle/v1/tx.proto +++ b/proto/ojo/oracle/v1/tx.proto @@ -5,7 +5,6 @@ import "cosmos/msg/v1/msg.proto"; import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; import "ojo/oracle/v1/oracle.proto"; -import "ojo/oracle/v1/elys.proto"; option go_package = "github.com/ojo-network/ojo/x/oracle/types"; diff --git a/x/oracle/abci/endblocker_test.go b/x/oracle/abci/endblocker_test.go index a07470e0..cba618ad 100644 --- a/x/oracle/abci/endblocker_test.go +++ b/x/oracle/abci/endblocker_test.go @@ -6,7 +6,7 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - appparams "github.com/ojo-network/ojo/app/params" + // appparams "github.com/ojo-network/ojo/app/params" "github.com/ojo-network/ojo/util" "github.com/ojo-network/ojo/util/decmath" "github.com/ojo-network/ojo/x/oracle/abci" @@ -199,168 +199,168 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { s.Require().Equal(math.LegacyZeroDec(), rate) } -func (s *IntegrationTestSuite) TestEndBlockerValidatorRewards() { - app, ctx := s.app, s.ctx - valAddr1, valAddr2, valAddr3 := s.keys[0].ValAddress, s.keys[1].ValAddress, s.keys[2].ValAddress - preVoteBlockDiff := int64(app.OracleKeeper.VotePeriod(ctx) / 2) - voteBlockDiff := int64(app.OracleKeeper.VotePeriod(ctx)/2 + 1) - - // start test in new slash window - ctx = ctx.WithBlockHeight(int64(app.OracleKeeper.SlashWindow(ctx))) - abci.EndBlocker(ctx, app.OracleKeeper) - - denomList := types.DenomList{ - { - BaseDenom: appparams.BondDenom, - SymbolDenom: appparams.DisplayDenom, - Exponent: uint32(6), - }, - { - BaseDenom: "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9", - SymbolDenom: "atom", - Exponent: uint32(6), - }, - } - app.OracleKeeper.SetAcceptList(ctx, denomList) - app.OracleKeeper.SetMandatoryList(ctx, denomList) - - var ( - val1DecCoins sdk.DecCoins - val2DecCoins sdk.DecCoins - val3DecCoins sdk.DecCoins - ) - for _, denom := range app.OracleKeeper.AcceptList(ctx) { - val1DecCoins = append(val1DecCoins, sdk.DecCoin{ - Denom: denom.SymbolDenom, - Amount: math.LegacyMustNewDecFromStr("0.6"), - }) - val2DecCoins = append(val2DecCoins, sdk.DecCoin{ - Denom: denom.SymbolDenom, - Amount: math.LegacyMustNewDecFromStr("0.6"), - }) - val3DecCoins = append(val3DecCoins, sdk.DecCoin{ - Denom: denom.SymbolDenom, - Amount: math.LegacyMustNewDecFromStr("0.6"), - }) - } - - h := uint64(ctx.BlockHeight()) - val1PreVotes, val1Votes := createVotes("hash1", valAddr1, val1DecCoins, h) - val2PreVotes, val2Votes := createVotes("hash2", valAddr2, val2DecCoins, h) - val3PreVotes, val3Votes := createVotes("hash3", valAddr3, val3DecCoins, h) - // validator 1, 2, and 3 vote on both currencies so all have 0 misses - app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr1, val1PreVotes) - app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr2, val2PreVotes) - app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr3, val3PreVotes) - abci.EndBlocker(ctx, app.OracleKeeper) - - ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1.String(), val1Votes) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2.String(), val2Votes) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3.String(), val3Votes) - abci.EndBlocker(ctx, app.OracleKeeper) - - currRewards1, err := app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr1) - s.Require().NoError(err) - currRewards2, err := app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr2) - s.Require().NoError(err) - currRewards3, err := app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr3) - s.Require().NoError(err) - s.Require().Equal(sdk.NewInt64DecCoin("uojo", 141), currRewards1.Rewards[0]) - s.Require().Equal(sdk.NewInt64DecCoin("uojo", 141), currRewards2.Rewards[0]) - s.Require().Equal(sdk.NewInt64DecCoin("uojo", 141), currRewards3.Rewards[0]) - - // update prevotes' block - ctx = ctx.WithBlockHeight(ctx.BlockHeight() + preVoteBlockDiff) - val1PreVotes.SubmitBlock = uint64(ctx.BlockHeight()) - val2PreVotes.SubmitBlock = uint64(ctx.BlockHeight()) - val3PreVotes.SubmitBlock = uint64(ctx.BlockHeight()) - - // validator 1 and 3 votes on both currencies to end up with 0 misses - // validator 2 votes on 1 currency to end up with 1 misses - val1DecCoins = sdk.DecCoins{ - sdk.DecCoin{ - Denom: "ojo", - Amount: math.LegacyMustNewDecFromStr("0.6"), - }, - sdk.DecCoin{ - Denom: "atom", - Amount: math.LegacyMustNewDecFromStr("0.6"), - }, - } - val2DecCoins = sdk.DecCoins{ - sdk.DecCoin{ - Denom: "ojo", - Amount: math.LegacyMustNewDecFromStr("0.6"), - }, - } - val3DecCoins = sdk.DecCoins{ - sdk.DecCoin{ - Denom: "ojo", - Amount: math.LegacyMustNewDecFromStr("0.6"), - }, - sdk.DecCoin{ - Denom: "atom", - Amount: math.LegacyMustNewDecFromStr("0.6"), - }, - } - val1Votes.ExchangeRates = val1DecCoins - val2Votes.ExchangeRates = val2DecCoins - val3Votes.ExchangeRates = val3DecCoins - - app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr1, val1PreVotes) - app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr2, val2PreVotes) - app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr3, val3PreVotes) - abci.EndBlocker(ctx, app.OracleKeeper) - - ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1.String(), val1Votes) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2.String(), val2Votes) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3.String(), val3Votes) - abci.EndBlocker(ctx, app.OracleKeeper) - - currRewards1, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr1) - s.Require().NoError(err) - currRewards2, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr2) - s.Require().NoError(err) - currRewards3, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr3) - s.Require().NoError(err) - s.Require().Equal(sdk.NewInt64DecCoin("uojo", 235), currRewards1.Rewards[0]) - s.Require().Equal(sdk.NewInt64DecCoin("uojo", 232), currRewards2.Rewards[0]) - s.Require().Equal(sdk.NewInt64DecCoin("uojo", 235), currRewards3.Rewards[0]) - - // update prevotes' block - ctx = ctx.WithBlockHeight(ctx.BlockHeight() + preVoteBlockDiff) - val1PreVotes.SubmitBlock = uint64(ctx.BlockHeight()) - val2PreVotes.SubmitBlock = uint64(ctx.BlockHeight()) - - // validator 1, 2, and 3 miss both currencies so validator 1 and 3 has 2 misses and - // validator 2 has 3 misses - val1Votes.ExchangeRates = sdk.DecCoins{} - val2Votes.ExchangeRates = sdk.DecCoins{} - val3Votes.ExchangeRates = sdk.DecCoins{} - - app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr1, val1PreVotes) - app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr2, val2PreVotes) - app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr3, val3PreVotes) - abci.EndBlocker(ctx, app.OracleKeeper) - - ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1.String(), val1Votes) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2.String(), val2Votes) - app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3.String(), val3Votes) - abci.EndBlocker(ctx, app.OracleKeeper) - - currRewards1, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr1) - s.Require().NoError(err) - currRewards2, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr2) - s.Require().NoError(err) - currRewards3, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr3) - s.Require().NoError(err) - s.Require().Equal(sdk.NewInt64DecCoin("uojo", 329), currRewards1.Rewards[0]) - s.Require().Equal(sdk.NewInt64DecCoin("uojo", 320), currRewards2.Rewards[0]) - s.Require().Equal(sdk.NewInt64DecCoin("uojo", 329), currRewards3.Rewards[0]) -} +// func (s *IntegrationTestSuite) TestEndBlockerValidatorRewards() { +// app, ctx := s.app, s.ctx +// valAddr1, valAddr2, valAddr3 := s.keys[0].ValAddress, s.keys[1].ValAddress, s.keys[2].ValAddress +// preVoteBlockDiff := int64(app.OracleKeeper.VotePeriod(ctx) / 2) +// voteBlockDiff := int64(app.OracleKeeper.VotePeriod(ctx)/2 + 1) + +// // start test in new slash window +// ctx = ctx.WithBlockHeight(int64(app.OracleKeeper.SlashWindow(ctx))) +// abci.EndBlocker(ctx, app.OracleKeeper) + +// denomList := types.DenomList{ +// { +// BaseDenom: appparams.BondDenom, +// SymbolDenom: appparams.DisplayDenom, +// Exponent: uint32(6), +// }, +// { +// BaseDenom: "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9", +// SymbolDenom: "atom", +// Exponent: uint32(6), +// }, +// } +// app.OracleKeeper.SetAcceptList(ctx, denomList) +// app.OracleKeeper.SetMandatoryList(ctx, denomList) + +// var ( +// val1DecCoins sdk.DecCoins +// val2DecCoins sdk.DecCoins +// val3DecCoins sdk.DecCoins +// ) +// for _, denom := range app.OracleKeeper.AcceptList(ctx) { +// val1DecCoins = append(val1DecCoins, sdk.DecCoin{ +// Denom: denom.SymbolDenom, +// Amount: math.LegacyMustNewDecFromStr("0.6"), +// }) +// val2DecCoins = append(val2DecCoins, sdk.DecCoin{ +// Denom: denom.SymbolDenom, +// Amount: math.LegacyMustNewDecFromStr("0.6"), +// }) +// val3DecCoins = append(val3DecCoins, sdk.DecCoin{ +// Denom: denom.SymbolDenom, +// Amount: math.LegacyMustNewDecFromStr("0.6"), +// }) +// } + +// h := uint64(ctx.BlockHeight()) +// val1PreVotes, val1Votes := createVotes("hash1", valAddr1, val1DecCoins, h) +// val2PreVotes, val2Votes := createVotes("hash2", valAddr2, val2DecCoins, h) +// val3PreVotes, val3Votes := createVotes("hash3", valAddr3, val3DecCoins, h) +// // validator 1, 2, and 3 vote on both currencies so all have 0 misses +// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr1, val1PreVotes) +// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr2, val2PreVotes) +// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr3, val3PreVotes) +// abci.EndBlocker(ctx, app.OracleKeeper) + +// ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) +// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1.String(), val1Votes) +// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2.String(), val2Votes) +// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3.String(), val3Votes) +// abci.EndBlocker(ctx, app.OracleKeeper) + +// currRewards1, err := app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr1) +// s.Require().NoError(err) +// currRewards2, err := app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr2) +// s.Require().NoError(err) +// currRewards3, err := app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr3) +// s.Require().NoError(err) +// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 141), currRewards1.Rewards[0]) +// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 141), currRewards2.Rewards[0]) +// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 141), currRewards3.Rewards[0]) + +// // update prevotes' block +// ctx = ctx.WithBlockHeight(ctx.BlockHeight() + preVoteBlockDiff) +// val1PreVotes.SubmitBlock = uint64(ctx.BlockHeight()) +// val2PreVotes.SubmitBlock = uint64(ctx.BlockHeight()) +// val3PreVotes.SubmitBlock = uint64(ctx.BlockHeight()) + +// // validator 1 and 3 votes on both currencies to end up with 0 misses +// // validator 2 votes on 1 currency to end up with 1 misses +// val1DecCoins = sdk.DecCoins{ +// sdk.DecCoin{ +// Denom: "ojo", +// Amount: math.LegacyMustNewDecFromStr("0.6"), +// }, +// sdk.DecCoin{ +// Denom: "atom", +// Amount: math.LegacyMustNewDecFromStr("0.6"), +// }, +// } +// val2DecCoins = sdk.DecCoins{ +// sdk.DecCoin{ +// Denom: "ojo", +// Amount: math.LegacyMustNewDecFromStr("0.6"), +// }, +// } +// val3DecCoins = sdk.DecCoins{ +// sdk.DecCoin{ +// Denom: "ojo", +// Amount: math.LegacyMustNewDecFromStr("0.6"), +// }, +// sdk.DecCoin{ +// Denom: "atom", +// Amount: math.LegacyMustNewDecFromStr("0.6"), +// }, +// } +// val1Votes.ExchangeRates = val1DecCoins +// val2Votes.ExchangeRates = val2DecCoins +// val3Votes.ExchangeRates = val3DecCoins + +// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr1, val1PreVotes) +// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr2, val2PreVotes) +// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr3, val3PreVotes) +// abci.EndBlocker(ctx, app.OracleKeeper) + +// ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) +// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1.String(), val1Votes) +// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2.String(), val2Votes) +// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3.String(), val3Votes) +// abci.EndBlocker(ctx, app.OracleKeeper) + +// currRewards1, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr1) +// s.Require().NoError(err) +// currRewards2, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr2) +// s.Require().NoError(err) +// currRewards3, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr3) +// s.Require().NoError(err) +// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 235), currRewards1.Rewards[0]) +// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 232), currRewards2.Rewards[0]) +// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 235), currRewards3.Rewards[0]) + +// // update prevotes' block +// ctx = ctx.WithBlockHeight(ctx.BlockHeight() + preVoteBlockDiff) +// val1PreVotes.SubmitBlock = uint64(ctx.BlockHeight()) +// val2PreVotes.SubmitBlock = uint64(ctx.BlockHeight()) + +// // validator 1, 2, and 3 miss both currencies so validator 1 and 3 has 2 misses and +// // validator 2 has 3 misses +// val1Votes.ExchangeRates = sdk.DecCoins{} +// val2Votes.ExchangeRates = sdk.DecCoins{} +// val3Votes.ExchangeRates = sdk.DecCoins{} + +// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr1, val1PreVotes) +// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr2, val2PreVotes) +// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr3, val3PreVotes) +// abci.EndBlocker(ctx, app.OracleKeeper) + +// ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) +// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1.String(), val1Votes) +// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2.String(), val2Votes) +// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3.String(), val3Votes) +// abci.EndBlocker(ctx, app.OracleKeeper) + +// currRewards1, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr1) +// s.Require().NoError(err) +// currRewards2, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr2) +// s.Require().NoError(err) +// currRewards3, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr3) +// s.Require().NoError(err) +// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 329), currRewards1.Rewards[0]) +// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 320), currRewards2.Rewards[0]) +// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 329), currRewards3.Rewards[0]) +// } var exchangeRates = map[string][]math.LegacyDec{ "ATOM": { diff --git a/x/oracle/abci/proposal_test.go b/x/oracle/abci/proposal_test.go index 21fc3e36..85b52c5f 100644 --- a/x/oracle/abci/proposal_test.go +++ b/x/oracle/abci/proposal_test.go @@ -113,9 +113,15 @@ func (s *IntegrationTestSuite) TestPrepareProposalHandler() { return valKeys[i].ValAddress.String() < valKeys[j].ValAddress.String() }) s.Require().Equal(exchangeRates, injectedVoteExtTx.ExchangeRateVotes[0].ExchangeRates) - s.Require().Equal(valKeys[0].ValAddress.String(), injectedVoteExtTx.ExchangeRateVotes[0].Voter) + s.Require().Equal( + sdk.ConsAddress(valKeys[0].PubKey.Address()).String(), + injectedVoteExtTx.ExchangeRateVotes[0].Voter, + ) s.Require().Equal(exchangeRates, injectedVoteExtTx.ExchangeRateVotes[1].ExchangeRates) - s.Require().Equal(valKeys[1].ValAddress.String(), injectedVoteExtTx.ExchangeRateVotes[1].Voter) + s.Require().Equal( + sdk.ConsAddress(valKeys[1].PubKey.Address()).String(), + injectedVoteExtTx.ExchangeRateVotes[1].Voter, + ) } }) } @@ -160,11 +166,11 @@ func (s *IntegrationTestSuite) TestProcessProposalHandler() { exchangeRateVotes := []oracletypes.AggregateExchangeRateVote{ { ExchangeRates: exchangeRates, - Voter: valKeys[0].ValAddress.String(), + Voter: sdk.ConsAddress(valKeys[0].PubKey.Address()).String(), }, { ExchangeRates: exchangeRates, - Voter: valKeys[1].ValAddress.String(), + Voter: sdk.ConsAddress(valKeys[1].PubKey.Address()).String(), }, } localCommitInfoBz, err := localCommitInfo.Marshal() diff --git a/x/oracle/keeper/ballot_test.go b/x/oracle/keeper/ballot_test.go index c771ab5e..d72ae799 100644 --- a/x/oracle/keeper/ballot_test.go +++ b/x/oracle/keeper/ballot_test.go @@ -46,7 +46,7 @@ func (s *IntegrationTestSuite) TestBallot_OrganizeBallotByDenom() { func (s *IntegrationTestSuite) TestBallot_ClearBallots() { prevote := types.AggregateExchangeRatePrevote{ Hash: "hash", - Voter: addr.String(), + Voter: valAddr.String(), SubmitBlock: 0, } s.app.OracleKeeper.SetAggregateExchangeRatePrevote(s.ctx, valAddr, prevote) @@ -61,7 +61,7 @@ func (s *IntegrationTestSuite) TestBallot_ClearBallots() { }) vote := types.AggregateExchangeRateVote{ ExchangeRates: decCoins, - Voter: addr.String(), + Voter: valAddr.String(), } s.app.OracleKeeper.SetAggregateExchangeRateVote(s.ctx, valAddr.String(), vote) voteRes, err := s.app.OracleKeeper.GetAggregateExchangeRateVote(s.ctx, valAddr.String()) diff --git a/x/oracle/keeper/keeper.go b/x/oracle/keeper/keeper.go index 88f9150b..362bd6cf 100644 --- a/x/oracle/keeper/keeper.go +++ b/x/oracle/keeper/keeper.go @@ -332,7 +332,7 @@ func (k Keeper) IterateAggregateExchangeRateVotes( defer iter.Close() for ; iter.Valid(); iter.Next() { - voterAddr := string(iter.Key()[2:]) + voterAddr := string(iter.Key()[1:]) var aggregateVote types.AggregateExchangeRateVote k.cdc.MustUnmarshal(iter.Value(), &aggregateVote) diff --git a/x/oracle/keeper/miss_counter.go b/x/oracle/keeper/miss_counter.go index 3937778e..5caa96c4 100644 --- a/x/oracle/keeper/miss_counter.go +++ b/x/oracle/keeper/miss_counter.go @@ -48,7 +48,7 @@ func (k Keeper) IterateMissCounters(ctx sdk.Context, handler func(string, uint64 defer iter.Close() for ; iter.Valid(); iter.Next() { - operator := string(iter.Key()[2:]) + operator := string(iter.Key()[1:]) var missCounter gogotypes.UInt64Value k.cdc.MustUnmarshal(iter.Value(), &missCounter) diff --git a/x/oracle/keeper/miss_counter_test.go b/x/oracle/keeper/miss_counter_test.go index f9d7136b..df1b0803 100644 --- a/x/oracle/keeper/miss_counter_test.go +++ b/x/oracle/keeper/miss_counter_test.go @@ -42,9 +42,7 @@ func (s *IntegrationTestSuite) TestIterateMissCounters() { return false }) - // Validator in integration test will incurr misses so expected amount of validators with miss counters - // is 1 more than what we manually set in this unit test. - require.Equal(s.T(), len(missCounters)+1, len(newCounters)) + require.Equal(s.T(), len(missCounters), len(newCounters)) FOUND: for _, oldCounter := range missCounters { diff --git a/x/oracle/types/keys_test.go b/x/oracle/types/keys_test.go index 7dcc6d6a..c937c7ad 100644 --- a/x/oracle/types/keys_test.go +++ b/x/oracle/types/keys_test.go @@ -62,7 +62,7 @@ func TestGetMissCounterKey(t *testing.T) { }{ { val: []byte("addr________________"), - expectedKey: []byte{0x3, 0x14, 0x61, 0x64, 0x64, 0x72, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f}, + expectedKey: []byte{0x3, 0x6f, 0x6a, 0x6f, 0x76, 0x61, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x31, 0x76, 0x39, 0x6a, 0x78, 0x67, 0x75, 0x6a, 0x6c, 0x74, 0x61, 0x30, 0x34, 0x37, 0x68, 0x36, 0x6c, 0x74, 0x61, 0x30, 0x34, 0x37, 0x68, 0x36, 0x6c, 0x74, 0x61, 0x30, 0x34, 0x37, 0x68, 0x36, 0x6c, 0x38, 0x64, 0x67, 0x38, 0x6d, 0x66}, }, } @@ -98,7 +98,7 @@ func TestGetAggregateExchangeRateVoteKey(t *testing.T) { }{ { val: []byte("addr________________"), - expectedKey: []byte{0x5, 0x14, 0x61, 0x64, 0x64, 0x72, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f, 0x5f}, + expectedKey: []byte{0x5, 0x6f, 0x6a, 0x6f, 0x76, 0x61, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x31, 0x76, 0x39, 0x6a, 0x78, 0x67, 0x75, 0x6a, 0x6c, 0x74, 0x61, 0x30, 0x34, 0x37, 0x68, 0x36, 0x6c, 0x74, 0x61, 0x30, 0x34, 0x37, 0x68, 0x36, 0x6c, 0x74, 0x61, 0x30, 0x34, 0x37, 0x68, 0x36, 0x6c, 0x38, 0x64, 0x67, 0x38, 0x6d, 0x66}, }, } diff --git a/x/oracle/types/tx.pb.go b/x/oracle/types/tx.pb.go index 9f9af2b6..cdf3c865 100644 --- a/x/oracle/types/tx.pb.go +++ b/x/oracle/types/tx.pb.go @@ -1484,7 +1484,7 @@ func init() { func init() { proto.RegisterFile("ojo/oracle/v1/tx.proto", fileDescriptor_58d45810177a43e8) } var fileDescriptor_58d45810177a43e8 = []byte{ - // 1693 bytes of a gzipped FileDescriptorProto + // 1687 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0xcb, 0x6f, 0x13, 0xd7, 0x1a, 0xcf, 0x90, 0xa7, 0x3f, 0x43, 0x10, 0x43, 0x12, 0x9c, 0x49, 0xb0, 0x83, 0x13, 0x1e, 0x01, 0x62, 0x93, 0x70, 0x2f, 0x42, 0xd6, 0xe5, 0x72, 0xf3, 0xb8, 0xa0, 0x2b, 0xe1, 0xab, 0x68, 0x78, @@ -1496,101 +1496,101 @@ var fileDescriptor_58d45810177a43e8 = []byte{ 0xdb, 0x28, 0x5f, 0x5b, 0xcc, 0x7b, 0xf7, 0x73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x19, 0x48, 0xc7, 0xd3, 0x15, 0x11, 0x3d, + 0x90, 0x20, 0x41, 0xe7, 0xd7, 0x5d, 0x4b, 0x47, 0xf2, 0x18, 0x0c, 0x6a, 0x84, 0x20, 0xbf, 0xee, + 0x2a, 0x1f, 0xc8, 0x57, 0x61, 0xb0, 0x4a, 0xc5, 0x3e, 0xb1, 0xc5, 0xad, 0xed, 0x4c, 0xdf, 0xf3, + 0xed, 0xcc, 0x14, 0x27, 0x47, 0x8c, 0x8d, 0x9c, 0x85, 0xf3, 0x15, 0xcd, 0x2b, 0xe7, 0xae, 0x21, + 0x53, 0xd3, 0xeb, 0x6b, 0x48, 0x7f, 0xf6, 0x64, 0x01, 0x7c, 0xee, 0x6b, 0x48, 0x57, 0xb9, 0xbe, + 0x3c, 0x01, 0x43, 0x04, 0x6f, 0xba, 0x3a, 0xe2, 0xe5, 0x56, 0xfd, 0x51, 0xf6, 0x33, 0x09, 0xf6, + 0x17, 0x89, 0xd9, 0xe0, 0xf1, 0x17, 0x18, 0xa9, 0xba, 0xb8, 0x66, 0xd1, 0xce, 0x90, 0xba, 0x74, + 0x86, 0x40, 0xca, 0x97, 0x00, 0x68, 0x3d, 0x4b, 0x0d, 0xb2, 0xc9, 0xa5, 0x54, 0xae, 0x69, 0x6f, + 0xc9, 0x09, 0x1f, 0x2b, 0x03, 0x34, 0x0c, 0x35, 0x71, 0x27, 0x98, 0x28, 0x1c, 0x60, 0xb9, 0x0b, + 0xac, 0x65, 0x27, 0x60, 0x2c, 0xcc, 0x49, 0x64, 0x0c, 0xc3, 0xa1, 0x22, 0x31, 0xaf, 0x23, 0x8f, + 0x4d, 0x5f, 0xe1, 0x6d, 0xd9, 0x68, 0x64, 0xa9, 0xc7, 0x46, 0x9e, 0x82, 0x84, 0x45, 0x4a, 0x9a, + 0xee, 0x59, 0x35, 0xce, 0x75, 0x44, 0x1d, 0xb1, 0xc8, 0x32, 0x1b, 0x17, 0x92, 0xe1, 0xe6, 0x9c, + 0x82, 0xc9, 0x16, 0x87, 0x82, 0xcd, 0x4d, 0xc6, 0x92, 0x56, 0x98, 0xae, 0xf2, 0xb7, 0x20, 0xd4, + 0xec, 0x33, 0xcd, 0xf6, 0x87, 0x16, 0xb3, 0xc2, 0xed, 0x17, 0x12, 0x8c, 0xfb, 0xd9, 0x29, 0x6e, + 0xda, 0x9e, 0x55, 0xb5, 0x39, 0x8c, 0xc8, 0x4b, 0x30, 0xac, 0xbb, 0x28, 0xb4, 0x0c, 0xda, 0x7b, + 0x0e, 0x80, 0xf2, 0x65, 0x48, 0x36, 0x0a, 0x47, 0x77, 0x91, 0xfe, 0x1e, 0x2a, 0x07, 0xa2, 0x72, + 0xa4, 0xb0, 0x9f, 0x72, 0x0f, 0xcc, 0x65, 0x33, 0x70, 0x34, 0x96, 0x9b, 0x60, 0xef, 0x82, 0x5c, + 0x24, 0xa6, 0x8a, 0x2a, 0xb8, 0x86, 0x96, 0x69, 0x8b, 0xff, 0xcb, 0xb9, 0x83, 0xe5, 0x0b, 0x90, + 0xd0, 0x36, 0xbd, 0x32, 0x76, 0x2d, 0xaf, 0xde, 0x95, 0x7b, 0x03, 0x4a, 0x17, 0x8d, 0x81, 0x1c, + 0x5c, 0xe1, 0xcb, 0x43, 0xe5, 0x83, 0xc2, 0x28, 0xa5, 0xd4, 0x40, 0x65, 0xa7, 0x41, 0x69, 0xf5, + 0x29, 0x18, 0xd5, 0x18, 0xa3, 0x65, 0xc3, 0x08, 0x25, 0x9b, 0xec, 0x9a, 0x51, 0x0a, 0x86, 0x79, + 0x1d, 0x79, 0x2e, 0x13, 0x6a, 0x30, 0x6c, 0xc3, 0x2a, 0xe2, 0x57, 0xb0, 0xaa, 0xb3, 0x22, 0x73, + 0xce, 0xef, 0x98, 0x18, 0xaf, 0x61, 0xab, 0x6b, 0xc1, 0x6d, 0x47, 0x62, 0x29, 0x5b, 0xa5, 0x35, + 0x0f, 0x15, 0x71, 0x37, 0xed, 0x17, 0x5b, 0x40, 0xca, 0xd5, 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0xab, 0x2a, 0xe4, 0xca, 0x89, 0xce, 0x72, 0x61, 0xf7, 0x63, 0x09, 0xd2, 0x5d, 0x6e, + 0x56, 0xe7, 0x62, 0x4d, 0x75, 0xd0, 0x50, 0x2e, 0xbe, 0xa9, 0x86, 0xa0, 0xf3, 0xa5, 0x04, 0x73, + 0xbd, 0xdd, 0x26, 0x7a, 0x70, 0x11, 0xa3, 0xa7, 0xfc, 0x7d, 0x77, 0x7a, 0x82, 0xe0, 0x7b, 0x90, + 0x6a, 0x7b, 0x94, 0x9f, 0x8e, 0xb5, 0x1d, 0x8b, 0x55, 0x96, 0x7a, 0xc7, 0x06, 0xbe, 0x95, 0xc1, + 0x0f, 0x5e, 0x3d, 0x3e, 0x2d, 0xad, 0x5c, 0xdd, 0xfa, 0x31, 0xdd, 0xb7, 0xb5, 0x93, 0x96, 0x9e, + 0xee, 0xa4, 0xa5, 0x1f, 0x76, 0xd2, 0xd2, 0xa7, 0x2f, 0xd3, 0x7d, 0x4f, 0x5f, 0xa6, 0xfb, 0xbe, + 0x7f, 0x99, 0xee, 0xfb, 0xcf, 0xbc, 0x69, 0x79, 0xe5, 0xcd, 0xdb, 0x39, 0x1d, 0x57, 0xf2, 0xf8, + 0x2e, 0x5e, 0x70, 0x90, 0x77, 0x0f, 0xbb, 0x1b, 0xf4, 0x77, 0xfe, 0x7e, 0xf0, 0x9f, 0x89, 0x57, + 0xaf, 0x22, 0x72, 0x7b, 0x88, 0xfd, 0x61, 0x72, 0xfe, 0xf7, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2a, + 0x17, 0x53, 0x15, 0xbf, 0x19, 0x00, 0x00, } func (this *MsgLegacyGovUpdateParams) Equal(that interface{}) bool { From 4bde213cb1aaa35a647786256f87e3c4ca7183b4 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Mon, 27 Jan 2025 10:53:31 -0600 Subject: [PATCH 38/77] upgrade pf commit --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index ea54486b..7226e5c4 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250124012327-caf66a7b2f71 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250127165022-ceed35279aa3 github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.0 diff --git a/go.sum b/go.sum index 8352fcf5..12d9d6d8 100644 --- a/go.sum +++ b/go.sum @@ -1123,8 +1123,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250124012327-caf66a7b2f71 h1:Fo5veh++igXfFtU/xA7eAWadTqDfS7eeCHBsP4TZifU= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250124012327-caf66a7b2f71/go.mod h1:QcTohaAoGK0kPOzCWa50KevNRRNqi2mVa66nGiWWqUI= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250127165022-ceed35279aa3 h1:OekVZPqod1wpjAiDBwbGeDn6DOiaJxLNnAb1DKRI/tk= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250127165022-ceed35279aa3/go.mod h1:r7ldVgJgNlCsGlRvlbLZPubk2rt0IHx8+rvi5JSh7A0= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= From f38eb8570f045111a23547f5136f549f6d09b464 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 29 Jan 2025 15:20:36 -0500 Subject: [PATCH 39/77] dont return error on GetBondedValidatorsByPower --- x/oracle/abci/endblocker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x/oracle/abci/endblocker.go b/x/oracle/abci/endblocker.go index 5cd11ef4..89befc9a 100644 --- a/x/oracle/abci/endblocker.go +++ b/x/oracle/abci/endblocker.go @@ -111,7 +111,8 @@ func CalcPrices(ctx sdk.Context, params types.Params, k keeper.Keeper) error { var totalBondedPower int64 vals, err := k.StakingKeeper.GetBondedValidatorsByPower(ctx) if err != nil { - return err + ctx.Logger().Warn("Failed to get validator set in oracle endblocker", "err", err) + return nil } for _, v := range vals { From 308e60c7c36a14970bc126353b3a30e38348c9c6 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Fri, 31 Jan 2025 12:13:12 -0500 Subject: [PATCH 40/77] pool queries --- proto/ojo/oracle/v1/elys.proto | 2 - proto/ojo/oracle/v1/query.proto | 56 + x/oracle/client/cli/query.go | 131 ++ x/oracle/keeper/grpc_query.go | 53 + x/oracle/types/elys.pb.go | 145 +- x/oracle/types/query.pb.go | 2404 ++++++++++++++++++++++++------- x/oracle/types/query.pb.gw.go | 332 +++++ 7 files changed, 2510 insertions(+), 613 deletions(-) diff --git a/proto/ojo/oracle/v1/elys.proto b/proto/ojo/oracle/v1/elys.proto index 6b280316..91cd85f8 100644 --- a/proto/ojo/oracle/v1/elys.proto +++ b/proto/ojo/oracle/v1/elys.proto @@ -64,6 +64,4 @@ message AccountedPool { uint64 pool_id = 1; repeated cosmos.base.v1beta1.Coin total_tokens = 2 [ (gogoproto.nullable) = false ]; - repeated cosmos.base.v1beta1.Coin non_amm_pool_tokens = 3 - [ (gogoproto.nullable) = false ]; } diff --git a/proto/ojo/oracle/v1/query.proto b/proto/ojo/oracle/v1/query.proto index 421d137e..eb06ae40 100644 --- a/proto/ojo/oracle/v1/query.proto +++ b/proto/ojo/oracle/v1/query.proto @@ -110,6 +110,30 @@ service Query { returns (QueryPriceAllResponse) { option (google.api.http).get = "/elys-network/elys/oracle/prices"; } + + // Queries a Pool. + rpc Pool(QueryGetPoolRequest) returns (QueryGetPoolResponse) { + option (google.api.http).get = "/elys-network/elys/amm/pool/{pool_id}"; + } + + // Queries a list of Pool items. + rpc PoolAll(QueryAllPoolRequest) returns (QueryAllPoolResponse) { + option (google.api.http).get = "/elys-network/elys/amm/pool"; + } + + // Queries an AccountedPool. + rpc AccountedPool(QueryGetAccountedPoolRequest) + returns (QueryGetAccountedPoolResponse) { + option (google.api.http).get = + "/elys-network/elys/accountedpool/accounted_pool/{pool_id}"; + } + + // Queries a list of AccountedPool items. + rpc AccountedPoolAll(QueryAllAccountedPoolRequest) + returns (QueryAllAccountedPoolResponse) { + option (google.api.http).get = + "/elys-network/elys/accountedpool/accounted_pool"; + } } // QueryExchangeRates is the request type for the Query/ExchangeRate RPC @@ -324,3 +348,35 @@ message QueryPriceAllRequest {} message QueryPriceAllResponse { repeated Price price = 1 [ (gogoproto.nullable) = false ]; } + +// QueryGetPoolRequest is the request type for the Query/GetPoolRequest RPC method. +message QueryGetPoolRequest { uint64 pool_id = 1; } + +// QueryGetPoolResponse is the response type for the Query/GetPoolResponse RPC method. +message QueryGetPoolResponse { + Pool pool = 1 [ (gogoproto.nullable) = false ]; +} + +// QueryAllPoolRequest is the request type for the Query/AllPoolRequest RPC method. +message QueryAllPoolRequest {} + +// QueryAllPoolResponse is the response type for the Query/AllPoolResponse RPC method. +message QueryAllPoolResponse { + repeated Pool pool = 1 [ (gogoproto.nullable) = false ]; +} + +// QueryGetAccountedPoolRequest is the request type for the Query/GetAccountedPoolRequest RPC method. +message QueryGetAccountedPoolRequest { uint64 pool_id = 1; } + +// QueryGetAccountedPoolResponse is the response type for the Query/GetAccountedPoolResponse RPC method. +message QueryGetAccountedPoolResponse { + AccountedPool accounted_pool = 1 [ (gogoproto.nullable) = false ]; +} + +// QueryAllAccountedPoolRequest is the request type for the Query/AllAccountedPoolRequest RPC method. +message QueryAllAccountedPoolRequest {} + +// QueryAllAccountedPoolResponse is the response type for the Query/AllAccountedPoolResponse RPC method. +message QueryAllAccountedPoolResponse { + repeated AccountedPool accounted_pool = 1 [ (gogoproto.nullable) = false ]; +} diff --git a/x/oracle/client/cli/query.go b/x/oracle/client/cli/query.go index 0b71ab31..8c2e6e3a 100644 --- a/x/oracle/client/cli/query.go +++ b/x/oracle/client/cli/query.go @@ -2,11 +2,13 @@ package cli import ( "fmt" + "strconv" "strings" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/spf13/cast" "github.com/spf13/cobra" "github.com/ojo-network/ojo/util/cli" @@ -34,6 +36,10 @@ func GetQueryCmd() *cobra.Command { GetCmdQuerySlashWindow(), GetCmdListPrice(), CmdShowPrice(), + CmdListPool(), + CmdShowPool(), + CmdListAccountedPool(), + CmdShowAccountedPool(), ) return cmd @@ -333,3 +339,128 @@ func CmdShowPrice() *cobra.Command { return cmd } + +func CmdListPool() *cobra.Command { + cmd := &cobra.Command{ + Use: "list-pool", + Short: "list all pool", + Example: "elysd query amm list-pool", + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx := client.GetClientContextFromCmd(cmd) + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryAllPoolRequest{} + + res, err := queryClient.PoolAll(cmd.Context(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddPaginationFlagsToCmd(cmd, cmd.Use) + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} + +func CmdShowPool() *cobra.Command { + cmd := &cobra.Command{ + Use: "show-pool [pool-id]", + Short: "shows a pool", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) (err error) { + clientCtx := client.GetClientContextFromCmd(cmd) + + queryClient := types.NewQueryClient(clientCtx) + + argPoolId, err := cast.ToUint64E(args[0]) + if err != nil { + return err + } + + params := &types.QueryGetPoolRequest{ + PoolId: argPoolId, + } + + res, err := queryClient.Pool(cmd.Context(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} + +func CmdListAccountedPool() *cobra.Command { + cmd := &cobra.Command{ + Use: "list-accounted-pool", + Short: "list all accounted pools", + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryAllAccountedPoolRequest{} + + res, err := queryClient.AccountedPoolAll(cmd.Context(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddPaginationFlagsToCmd(cmd, cmd.Use) + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} + +func CmdShowAccountedPool() *cobra.Command { + cmd := &cobra.Command{ + Use: "show-accounted-pool [index]", + Short: "shows a accounted-pool", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) (err error) { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + + poolId, err := strconv.ParseUint(args[0], 10, 64) + if err != nil { + return err + } + + params := &types.QueryGetAccountedPoolRequest{ + PoolId: poolId, + } + + res, err := queryClient.AccountedPool(cmd.Context(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/oracle/keeper/grpc_query.go b/x/oracle/keeper/grpc_query.go index 00d467ad..a6924517 100644 --- a/x/oracle/keeper/grpc_query.go +++ b/x/oracle/keeper/grpc_query.go @@ -376,3 +376,56 @@ func (q querier) Price(goCtx context.Context, req *types.QueryPriceRequest) (*ty } return &types.QueryPriceResponse{Price: val}, nil } +func (q querier) AccountedPoolAll(goCtx context.Context, req *types.QueryAllAccountedPoolRequest) (*types.QueryAllAccountedPoolResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + accountedPools := q.GetAllAccountedPool(ctx) + + return &types.QueryAllAccountedPoolResponse{AccountedPool: accountedPools}, nil +} + +func (q querier) AccountedPool(goCtx context.Context, req *types.QueryGetAccountedPoolRequest) (*types.QueryGetAccountedPoolResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + ctx := sdk.UnwrapSDKContext(goCtx) + + val, found := q.GetAccountedPool(ctx, req.PoolId) + if !found { + return nil, status.Error(codes.NotFound, "not found") + } + + return &types.QueryGetAccountedPoolResponse{AccountedPool: val}, nil +} + +func (q querier) Pool(goCtx context.Context, req *types.QueryGetPoolRequest) (*types.QueryGetPoolResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + ctx := sdk.UnwrapSDKContext(goCtx) + + pool, found := q.GetPool(ctx, req.PoolId) + if !found { + return nil, status.Error(codes.NotFound, "not found") + } + + return &types.QueryGetPoolResponse{ + Pool: pool, + }, nil +} + +func (q querier) PoolAll(goCtx context.Context, req *types.QueryAllPoolRequest) (*types.QueryAllPoolResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + pools := q.GetAllPool(ctx) + + return &types.QueryAllPoolResponse{Pool: pools}, nil +} diff --git a/x/oracle/types/elys.pb.go b/x/oracle/types/elys.pb.go index 538f72a3..9d1e7d69 100644 --- a/x/oracle/types/elys.pb.go +++ b/x/oracle/types/elys.pb.go @@ -231,9 +231,8 @@ var xxx_messageInfo_PoolAsset proto.InternalMessageInfo // Elys AccountedPool type AccountedPool struct { - PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` - TotalTokens []types.Coin `protobuf:"bytes,2,rep,name=total_tokens,json=totalTokens,proto3" json:"total_tokens"` - NonAmmPoolTokens []types.Coin `protobuf:"bytes,3,rep,name=non_amm_pool_tokens,json=nonAmmPoolTokens,proto3" json:"non_amm_pool_tokens"` + PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` + TotalTokens []types.Coin `protobuf:"bytes,2,rep,name=total_tokens,json=totalTokens,proto3" json:"total_tokens"` } func (m *AccountedPool) Reset() { *m = AccountedPool{} } @@ -281,50 +280,48 @@ func init() { func init() { proto.RegisterFile("ojo/oracle/v1/elys.proto", fileDescriptor_9fad3fefa6783858) } var fileDescriptor_9fad3fefa6783858 = []byte{ - // 673 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xdf, 0x4e, 0x13, 0x4d, - 0x14, 0xef, 0x42, 0x5b, 0xe8, 0x14, 0x92, 0x2f, 0xf3, 0xf1, 0xf1, 0x2d, 0x60, 0x16, 0xec, 0x15, - 0xc6, 0xb0, 0x6b, 0x31, 0x5e, 0x9b, 0x16, 0x22, 0x36, 0x21, 0x86, 0xac, 0x5c, 0x19, 0x93, 0x75, - 0x3a, 0x3b, 0xb4, 0x43, 0x77, 0xe7, 0xac, 0x3b, 0xd3, 0x42, 0xdf, 0xc2, 0x3b, 0x5f, 0x84, 0x4b, - 0x1f, 0x80, 0x4b, 0xc2, 0x95, 0xd1, 0x84, 0x28, 0xbc, 0x82, 0x0f, 0x60, 0x66, 0x66, 0x17, 0x35, - 0x26, 0x6a, 0xbc, 0x9b, 0xdf, 0xf9, 0x9d, 0xf3, 0xdb, 0xdf, 0xf9, 0x93, 0x45, 0x2e, 0x1c, 0x43, - 0x00, 0x39, 0xa1, 0x09, 0x0b, 0x26, 0xed, 0x80, 0x25, 0x53, 0xe9, 0x67, 0x39, 0x28, 0xc0, 0x8b, - 0x70, 0x0c, 0xbe, 0x65, 0xfc, 0x49, 0x7b, 0x75, 0x69, 0x00, 0x03, 0x30, 0x4c, 0xa0, 0x5f, 0x36, - 0x69, 0x75, 0x85, 0x82, 0x4c, 0x41, 0x46, 0x96, 0xb0, 0xa0, 0xa0, 0x3c, 0x8b, 0x82, 0x3e, 0x91, - 0x5a, 0xba, 0xcf, 0x14, 0x69, 0x07, 0x14, 0xb8, 0xb0, 0x7c, 0xeb, 0xad, 0x83, 0x1a, 0x1d, 0x29, - 0x99, 0xea, 0x89, 0x23, 0xc0, 0x4b, 0xa8, 0x16, 0x33, 0x01, 0xa9, 0xeb, 0x6c, 0x38, 0x9b, 0x8d, - 0xd0, 0x02, 0xec, 0xa2, 0xb9, 0x98, 0xcb, 0x2c, 0x21, 0x53, 0x77, 0xc6, 0xc4, 0x4b, 0x88, 0xd7, - 0x51, 0xb3, 0x4f, 0x44, 0x1c, 0x29, 0x4e, 0x47, 0x2c, 0x77, 0x67, 0x0d, 0x8b, 0x74, 0xe8, 0xd0, - 0x44, 0x74, 0x82, 0x6e, 0xa6, 0x4c, 0xa8, 0xda, 0x04, 0x1d, 0x2a, 0x12, 0xb4, 0x36, 0xa3, 0x3c, - 0x25, 0x89, 0x5b, 0xdb, 0x70, 0x36, 0xab, 0x61, 0x09, 0x5b, 0x1f, 0x1d, 0x54, 0x3b, 0xc8, 0x39, - 0x65, 0xda, 0x15, 0xd1, 0x16, 0x4b, 0x57, 0x06, 0xe0, 0x3d, 0x54, 0xcb, 0x34, 0x6d, 0x3d, 0x75, - 0xdb, 0xe7, 0x57, 0xeb, 0x95, 0x0f, 0x57, 0xeb, 0x6b, 0xb6, 0x61, 0x19, 0x8f, 0x7c, 0x0e, 0x41, - 0x4a,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 0x80, 0x63, 0xd8, 0x12, - 0x4c, 0x9d, 0x40, 0x3e, 0xd2, 0xef, 0xe0, 0xb4, 0xfc, 0x3d, 0xa9, 0x69, 0xc6, 0x64, 0xbf, 0x6e, - 0xfe, 0x1e, 0x0f, 0xbf, 0x06, 0x00, 0x00, 0xff, 0xff, 0xf1, 0xd1, 0xe2, 0xc1, 0xb9, 0x04, 0x00, - 0x00, + // 643 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcd, 0x4e, 0xdb, 0x4c, + 0x14, 0x8d, 0x21, 0x09, 0x64, 0x0c, 0x9b, 0x11, 0x1f, 0x9f, 0x81, 0xca, 0xd0, 0xac, 0xa8, 0x2a, + 0xec, 0x86, 0xaa, 0xeb, 0x2a, 0x01, 0x95, 0x46, 0x62, 0x81, 0x5c, 0x56, 0x55, 0x25, 0x77, 0x32, + 0x1e, 0x92, 0x21, 0xb6, 0xaf, 0xeb, 0x99, 0x04, 0xf2, 0x16, 0xdd, 0xf5, 0x45, 0x78, 0x08, 0x96, + 0x88, 0x55, 0xd5, 0x4a, 0xa8, 0x85, 0x57, 0xe8, 0x03, 0x54, 0xf3, 0x63, 0xda, 0xaa, 0x52, 0x2b, + 0x75, 0x37, 0xe7, 0x9e, 0x7b, 0x4f, 0xce, 0xfd, 0x89, 0x91, 0x07, 0xa7, 0x10, 0x42, 0x49, 0x68, + 0xca, 0xc2, 0x69, 0x27, 0x64, 0xe9, 0x4c, 0x04, 0x45, 0x09, 0x12, 0xf0, 0x32, 0x9c, 0x42, 0x60, + 0x98, 0x60, 0xda, 0x59, 0x5f, 0x19, 0xc2, 0x10, 0x34, 0x13, 0xaa, 0x97, 0x49, 0x5a, 0x5f, 0xa3, + 0x20, 0x32, 0x10, 0xb1, 0x21, 0x0c, 0xb0, 0x94, 0x6f, 0x50, 0x38, 0x20, 0x42, 0x49, 0x0f, 0x98, + 0x24, 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 0x97, 0xac, 0xcc, + 0x49, 0x1a, 0xa7, 0xfc, 0xdd, 0x84, 0x27, 0x5c, 0xce, 0xe2, 0x92, 0x48, 0x0e, 0x66, 0xa1, 0xff, + 0x72, 0x1a, 0xab, 0x95, 0xe4, 0x61, 0xa5, 0x18, 0x29, 0xc1, 0x76, 0x8a, 0x96, 0xbb, 0x94, 0xc2, + 0x24, 0x97, 0x2c, 0xf9, 0xf3, 0x84, 0x7b, 0x68, 0x49, 0x82, 0x24, 0x69, 0xac, 0x5b, 0xad, 0x46, + 0xfc, 0xd7, 0xc9, 0xb8, 0xba, 0xe8, 0x58, 0xd7, 0xf4, 0x0e, 0x2e, 0xbf, 0xfa, 0xb5, 0xcb, 0x5b, + 0xdf, 0xb9, 0xba, 0xf5, 0x9d, 0x2f, 0xb7, 0xbe, 0xf3, 0xfe, 0xce, 0xaf, 0x5d, 0xdd, 0xf9, 0xb5, + 0x8f, 0x77, 0x7e, 0xed, 0xf5, 0xa3, 0x21, 0x97, 0xa3, 0xc9, 0x20, 0xa0, 0x90, 0x85, 0x70, 0x0a, + 0x3b, 0x39, 0x93, 0x67, 0x50, 0x8e, 0xd5, 0x3b, 0x3c, 0xaf, 0xbe, 0x26, 0x72, 0x56, 0x30, 0x31, + 0x68, 0xea, 0x3f, 0xfb, 0xd3, 0xef, 0x01, 0x00, 0x00, 0xff, 0xff, 0x15, 0xaa, 0x84, 0x47, 0x68, + 0x04, 0x00, 0x00, } func (m *AssetInfo) Marshal() (dAtA []byte, err error) { @@ -602,20 +599,6 @@ func (m *AccountedPool) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.NonAmmPoolTokens) > 0 { - for iNdEx := len(m.NonAmmPoolTokens) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.NonAmmPoolTokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintElys(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } if len(m.TotalTokens) > 0 { for iNdEx := len(m.TotalTokens) - 1; iNdEx >= 0; iNdEx-- { { @@ -770,12 +753,6 @@ func (m *AccountedPool) Size() (n int) { n += 1 + l + sovElys(uint64(l)) } } - if len(m.NonAmmPoolTokens) > 0 { - for _, e := range m.NonAmmPoolTokens { - l = e.Size() - n += 1 + l + sovElys(uint64(l)) - } - } return n } @@ -1638,40 +1615,6 @@ func (m *AccountedPool) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NonAmmPoolTokens", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowElys - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthElys - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthElys - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NonAmmPoolTokens = append(m.NonAmmPoolTokens, types.Coin{}) - if err := m.NonAmmPoolTokens[len(m.NonAmmPoolTokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipElys(dAtA[iNdEx:]) diff --git a/x/oracle/types/query.pb.go b/x/oracle/types/query.pb.go index ed2f40ea..086ff82c 100644 --- a/x/oracle/types/query.pb.go +++ b/x/oracle/types/query.pb.go @@ -1216,6 +1216,308 @@ func (m *QueryPriceAllResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryPriceAllResponse proto.InternalMessageInfo +// QueryGetPoolRequest is the request type for the Query/GetPoolRequest RPC method. +type QueryGetPoolRequest struct { + PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` +} + +func (m *QueryGetPoolRequest) Reset() { *m = QueryGetPoolRequest{} } +func (m *QueryGetPoolRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetPoolRequest) ProtoMessage() {} +func (*QueryGetPoolRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{30} +} +func (m *QueryGetPoolRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetPoolRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGetPoolRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetPoolRequest.Merge(m, src) +} +func (m *QueryGetPoolRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetPoolRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetPoolRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetPoolRequest proto.InternalMessageInfo + +// QueryGetPoolResponse is the response type for the Query/GetPoolResponse RPC method. +type QueryGetPoolResponse struct { + Pool Pool `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool"` +} + +func (m *QueryGetPoolResponse) Reset() { *m = QueryGetPoolResponse{} } +func (m *QueryGetPoolResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetPoolResponse) ProtoMessage() {} +func (*QueryGetPoolResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{31} +} +func (m *QueryGetPoolResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetPoolResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGetPoolResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetPoolResponse.Merge(m, src) +} +func (m *QueryGetPoolResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetPoolResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetPoolResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetPoolResponse proto.InternalMessageInfo + +// QueryAllPoolRequest is the request type for the Query/AllPoolRequest RPC method. +type QueryAllPoolRequest struct { +} + +func (m *QueryAllPoolRequest) Reset() { *m = QueryAllPoolRequest{} } +func (m *QueryAllPoolRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllPoolRequest) ProtoMessage() {} +func (*QueryAllPoolRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{32} +} +func (m *QueryAllPoolRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllPoolRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllPoolRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllPoolRequest.Merge(m, src) +} +func (m *QueryAllPoolRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllPoolRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllPoolRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllPoolRequest proto.InternalMessageInfo + +// QueryAllPoolResponse is the response type for the Query/AllPoolResponse RPC method. +type QueryAllPoolResponse struct { + Pool []Pool `protobuf:"bytes,1,rep,name=pool,proto3" json:"pool"` +} + +func (m *QueryAllPoolResponse) Reset() { *m = QueryAllPoolResponse{} } +func (m *QueryAllPoolResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllPoolResponse) ProtoMessage() {} +func (*QueryAllPoolResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{33} +} +func (m *QueryAllPoolResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllPoolResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllPoolResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllPoolResponse.Merge(m, src) +} +func (m *QueryAllPoolResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllPoolResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllPoolResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllPoolResponse proto.InternalMessageInfo + +// QueryGetAccountedPoolRequest is the request type for the Query/GetAccountedPoolRequest RPC method. +type QueryGetAccountedPoolRequest struct { + PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` +} + +func (m *QueryGetAccountedPoolRequest) Reset() { *m = QueryGetAccountedPoolRequest{} } +func (m *QueryGetAccountedPoolRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetAccountedPoolRequest) ProtoMessage() {} +func (*QueryGetAccountedPoolRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{34} +} +func (m *QueryGetAccountedPoolRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetAccountedPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetAccountedPoolRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGetAccountedPoolRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetAccountedPoolRequest.Merge(m, src) +} +func (m *QueryGetAccountedPoolRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetAccountedPoolRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetAccountedPoolRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetAccountedPoolRequest proto.InternalMessageInfo + +// QueryGetAccountedPoolResponse is the response type for the Query/GetAccountedPoolResponse RPC method. +type QueryGetAccountedPoolResponse struct { + AccountedPool AccountedPool `protobuf:"bytes,1,opt,name=accounted_pool,json=accountedPool,proto3" json:"accounted_pool"` +} + +func (m *QueryGetAccountedPoolResponse) Reset() { *m = QueryGetAccountedPoolResponse{} } +func (m *QueryGetAccountedPoolResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetAccountedPoolResponse) ProtoMessage() {} +func (*QueryGetAccountedPoolResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{35} +} +func (m *QueryGetAccountedPoolResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetAccountedPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetAccountedPoolResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryGetAccountedPoolResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetAccountedPoolResponse.Merge(m, src) +} +func (m *QueryGetAccountedPoolResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetAccountedPoolResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetAccountedPoolResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetAccountedPoolResponse proto.InternalMessageInfo + +// QueryAllAccountedPoolRequest is the request type for the Query/AllAccountedPoolRequest RPC method. +type QueryAllAccountedPoolRequest struct { +} + +func (m *QueryAllAccountedPoolRequest) Reset() { *m = QueryAllAccountedPoolRequest{} } +func (m *QueryAllAccountedPoolRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllAccountedPoolRequest) ProtoMessage() {} +func (*QueryAllAccountedPoolRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{36} +} +func (m *QueryAllAccountedPoolRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllAccountedPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllAccountedPoolRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllAccountedPoolRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllAccountedPoolRequest.Merge(m, src) +} +func (m *QueryAllAccountedPoolRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllAccountedPoolRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllAccountedPoolRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllAccountedPoolRequest proto.InternalMessageInfo + +// QueryAllAccountedPoolResponse is the response type for the Query/AllAccountedPoolResponse RPC method. +type QueryAllAccountedPoolResponse struct { + AccountedPool []AccountedPool `protobuf:"bytes,1,rep,name=accounted_pool,json=accountedPool,proto3" json:"accounted_pool"` +} + +func (m *QueryAllAccountedPoolResponse) Reset() { *m = QueryAllAccountedPoolResponse{} } +func (m *QueryAllAccountedPoolResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllAccountedPoolResponse) ProtoMessage() {} +func (*QueryAllAccountedPoolResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{37} +} +func (m *QueryAllAccountedPoolResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllAccountedPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllAccountedPoolResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllAccountedPoolResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllAccountedPoolResponse.Merge(m, src) +} +func (m *QueryAllAccountedPoolResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllAccountedPoolResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllAccountedPoolResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllAccountedPoolResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*QueryExchangeRates)(nil), "ojo.oracle.v1.QueryExchangeRates") proto.RegisterType((*QueryExchangeRatesResponse)(nil), "ojo.oracle.v1.QueryExchangeRatesResponse") @@ -1247,100 +1549,122 @@ func init() { proto.RegisterType((*QueryPriceResponse)(nil), "ojo.oracle.v1.QueryPriceResponse") proto.RegisterType((*QueryPriceAllRequest)(nil), "ojo.oracle.v1.QueryPriceAllRequest") proto.RegisterType((*QueryPriceAllResponse)(nil), "ojo.oracle.v1.QueryPriceAllResponse") + proto.RegisterType((*QueryGetPoolRequest)(nil), "ojo.oracle.v1.QueryGetPoolRequest") + proto.RegisterType((*QueryGetPoolResponse)(nil), "ojo.oracle.v1.QueryGetPoolResponse") + proto.RegisterType((*QueryAllPoolRequest)(nil), "ojo.oracle.v1.QueryAllPoolRequest") + proto.RegisterType((*QueryAllPoolResponse)(nil), "ojo.oracle.v1.QueryAllPoolResponse") + proto.RegisterType((*QueryGetAccountedPoolRequest)(nil), "ojo.oracle.v1.QueryGetAccountedPoolRequest") + proto.RegisterType((*QueryGetAccountedPoolResponse)(nil), "ojo.oracle.v1.QueryGetAccountedPoolResponse") + proto.RegisterType((*QueryAllAccountedPoolRequest)(nil), "ojo.oracle.v1.QueryAllAccountedPoolRequest") + proto.RegisterType((*QueryAllAccountedPoolResponse)(nil), "ojo.oracle.v1.QueryAllAccountedPoolResponse") } func init() { proto.RegisterFile("ojo/oracle/v1/query.proto", fileDescriptor_ac3bb5b34dcda556) } var fileDescriptor_ac3bb5b34dcda556 = []byte{ - // 1393 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x98, 0xcf, 0x6f, 0x13, 0x47, - 0x14, 0xc7, 0xbd, 0x40, 0x02, 0x79, 0xc6, 0x21, 0x19, 0x12, 0x30, 0x0b, 0xd8, 0xc9, 0x04, 0x9a, - 0xa4, 0x21, 0xbb, 0x98, 0xa0, 0x22, 0xfa, 0x4b, 0x0d, 0x09, 0xd0, 0x9f, 0x12, 0x18, 0x15, 0xa4, - 0x1e, 0xea, 0x6e, 0xbc, 0x53, 0x67, 0x83, 0xbd, 0x63, 0x76, 0xd6, 0x0e, 0x88, 0x46, 0x48, 0x9c, - 0x7a, 0x44, 0x42, 0xea, 0xa5, 0x87, 0x52, 0x89, 0x4b, 0xab, 0xfe, 0x21, 0x1c, 0x91, 0x7a, 0xe9, - 0xa9, 0x3f, 0xa0, 0x87, 0xfe, 0x19, 0xd5, 0xce, 0xcc, 0x8e, 0xf7, 0x97, 0x63, 0x87, 0x53, 0xb2, - 0xef, 0xbd, 0xf9, 0xbe, 0xcf, 0xbe, 0x9d, 0x59, 0x7f, 0xb5, 0x70, 0x82, 0x6e, 0x51, 0x93, 0x7a, - 0x56, 0xbd, 0x49, 0xcc, 0x6e, 0xc5, 0xbc, 0xd7, 0x21, 0xde, 0x03, 0xa3, 0xed, 0x51, 0x9f, 0xa2, - 0x02, 0xdd, 0xa2, 0x86, 0x48, 0x19, 0xdd, 0x8a, 0x3e, 0xd5, 0xa0, 0x0d, 0xca, 0x33, 0x66, 0xf0, - 0x9f, 0x28, 0xd2, 0x4f, 0x35, 0x28, 0x6d, 0x34, 0x89, 0x69, 0xb5, 0x1d, 0xd3, 0x72, 0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xbb, 0xd8, 0xe3, 0xcb, 0x6b, 0x81, 0x19, 0xd9, 0x81, 0x11, 0xfe, 0x0b, 0x8e, - 0x66, 0x32, 0x37, 0x42, 0xc4, 0xcd, 0xe8, 0xb3, 0xbb, 0x54, 0x48, 0x0a, 0x93, 0x53, 0x2c, 0xa2, - 0x79, 0xfe, 0xd1, 0x62, 0xd9, 0x25, 0xfe, 0x36, 0xf5, 0xee, 0xf2, 0x8b, 0x90, 0x89, 0x5b, 0x04, - 0xf3, 0x21, 0xb7, 0x42, 0x3b, 0xe8, 0x11, 0x1c, 0x0a, 0x0d, 0x07, 0x9a, 0xeb, 0xab, 0xdf, 0xb3, - 0x29, 0xfa, 0x99, 0xdd, 0x8b, 0x24, 0xc7, 0x02, 0xe7, 0xc0, 0x68, 0x66, 0x00, 0x07, 0xbb, 0x72, - 0xfd, 0xc5, 0x3f, 0xa5, 0xdc, 0x8b, 0x57, 0x25, 0xed, 0xe5, 0xab, 0x92, 0xf6, 0xf7, 0xab, 0x92, - 0xf6, 0xe4, 0x75, 0x29, 0xf7, 0xf2, 0x75, 0x29, 0xf7, 0xc7, 0xeb, 0x52, 0xee, 0xab, 0xc5, 0xc8, - 0xc7, 0x0b, 0xba, 0x45, 0x95, 0x50, 0x30, 0xe3, 0xfb, 0xa1, 0x12, 0xff, 0x86, 0xb1, 0x31, 0xca, - 0xbf, 0xc0, 0xac, 0xfc, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xd7, 0x37, 0x3d, 0x0f, 0x37, 0x12, 0x00, - 0x00, + // 1627 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x98, 0xcf, 0x6f, 0x14, 0x47, + 0x16, 0xc7, 0xdd, 0xf8, 0x17, 0x7e, 0xc3, 0x18, 0xbb, 0xb0, 0xc1, 0x34, 0x66, 0x6c, 0x97, 0x61, + 0x6d, 0xaf, 0xf1, 0x34, 0xc6, 0x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, 0xbb, 0x24, + 0xc0, 0x3b, 0x30, 0xd5, 0xc6, 0x25, 0x51, 0x6e, 0x01, 0xc8, 0xf3, 0x1f, 0xbf, 0xbe, 0x99, 0x14, + 0x44, 0x76, 0xb9, 0x80, 0x51, 0x96, 0xe2, 0x32, 0x8c, 0x46, 0x47, 0x23, 0x24, 0x2e, 0x91, 0x87, + 0xbb, 0x84, 0x05, 0x61, 0xa7, 0x6c, 0xc6, 0x48, 0x10, 0x77, 0x8a, 0x3f, 0xa0, 0xd3, 0x30, 0xc0, + 0xe8, 0xae, 0x5f, 0x21, 0xfc, 0x85, 0x0e, 0x95, 0xc4, 0x53, 0xf8, 0xae, 0x03, 0xb7, 0x46, 0x58, + 0xb8, 0xdd, 0x89, 0x5e, 0x3e, 0x44, 0x5b, 0x06, 0x7c, 0x53, 0xdc, 0x6a, 0x51, 0x40, 0xf0, 0x5f, + 0x86, 0xfe, 0x46, 0x68, 0x10, 0xe8, 0x63, 0xba, 0xfe, 0x09, 0xda, 0x28, 0x10, 0x9f, 0x16, 0x27, + 0x85, 0xbb, 0x56, 0x3d, 0x4f, 0xb0, 0xe2, 0xdb, 0xe2, 0x75, 0xb7, 0xec, 0xd9, 0x12, 0xbd, 0xdd, + 0x95, 0x28, 0x8a, 0x6b, 0x72, 0x8b, 0x04, 0x9b, 0x94, 0xc6, 0x15, 0xd0, 0x19, 0x18, 0x6c, 0x50, + 0xea, 0x95, 0x5d, 0x47, 0x7c, 0x22, 0x06, 0xc2, 0xc7, 0xdb, 0x0e, 0xde, 0x10, 0x48, 0x32, 0x5e, + 0x54, 0x5e, 0x82, 0xbe, 0x30, 0x42, 0xec, 0xed, 0x54, 0xba, 0x30, 0xa5, 0x9e, 0xa8, 0xcb, 0xc3, + 0x5a, 0xb3, 0xc3, 0xf3, 0x94, 0xb2, 0x32, 0xbb, 0x34, 0x67, 0xb2, 0xf7, 0x76, 0x93, 0xfd, 0x1a, + 0x4c, 0xc6, 0x90, 0xab, 0x95, 0xe8, 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0xf5, 0x08, 0x29, 0x7d, 0xab, 0x7c, 0xa8, + 0xda, 0x23, 0xa0, 0xef, 0xc3, 0xb9, 0xaa, 0xca, 0x36, 0xb4, 0xd8, 0x66, 0x7b, 0x3a, 0x3d, 0xa9, + 0xbf, 0x41, 0xed, 0x84, 0xae, 0x32, 0x64, 0x35, 0x44, 0xf1, 0x0a, 0xde, 0x99, 0xa4, 0x06, 0x55, + 0x1a, 0xf5, 0x4d, 0xf8, 0x61, 0x55, 0x93, 0x87, 0x2d, 0x5b, 0x6c, 0xd3, 0x8e, 0xee, 0x91, 0xdb, + 0xe9, 0x61, 0x45, 0x7f, 0x1c, 0x0d, 0xf9, 0xc6, 0xad, 0x57, 0xbf, 0x16, 0x7a, 0x5e, 0xbd, 0x29, + 0x18, 0xaf, 0xdf, 0x14, 0x8c, 0x5f, 0xde, 0x14, 0x8c, 0x67, 0x6f, 0x0b, 0x3d, 0xaf, 0xdf, 0x16, + 0x7a, 0x7e, 0x7c, 0x5b, 0xe8, 0xf9, 0x70, 0x41, 0xf9, 0x51, 0x94, 0xee, 0x50, 0x99, 0x37, 0xbc, + 0xb5, 0x8f, 0xe2, 0xb3, 0xc9, 0x7f, 0x1b, 0xdd, 0x1a, 0xe0, 0xbf, 0xec, 0xae, 0xfc, 0x19, 0x00, + 0x00, 0xff, 0xff, 0xdc, 0x44, 0x51, 0xc6, 0x8f, 0x16, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1390,6 +1714,14 @@ type QueryClient interface { Price(ctx context.Context, in *QueryPriceRequest, opts ...grpc.CallOption) (*QueryPriceResponse, error) // Queries a list of Price items. PriceAll(ctx context.Context, in *QueryPriceAllRequest, opts ...grpc.CallOption) (*QueryPriceAllResponse, error) + // Queries a Pool. + Pool(ctx context.Context, in *QueryGetPoolRequest, opts ...grpc.CallOption) (*QueryGetPoolResponse, error) + // Queries a list of Pool items. + PoolAll(ctx context.Context, in *QueryAllPoolRequest, opts ...grpc.CallOption) (*QueryAllPoolResponse, error) + // Queries an AccountedPool. + AccountedPool(ctx context.Context, in *QueryGetAccountedPoolRequest, opts ...grpc.CallOption) (*QueryGetAccountedPoolResponse, error) + // Queries a list of AccountedPool items. + AccountedPoolAll(ctx context.Context, in *QueryAllAccountedPoolRequest, opts ...grpc.CallOption) (*QueryAllAccountedPoolResponse, error) } type queryClient struct { @@ -1535,6 +1867,42 @@ func (c *queryClient) PriceAll(ctx context.Context, in *QueryPriceAllRequest, op return out, nil } +func (c *queryClient) Pool(ctx context.Context, in *QueryGetPoolRequest, opts ...grpc.CallOption) (*QueryGetPoolResponse, error) { + out := new(QueryGetPoolResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/Pool", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) PoolAll(ctx context.Context, in *QueryAllPoolRequest, opts ...grpc.CallOption) (*QueryAllPoolResponse, error) { + out := new(QueryAllPoolResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/PoolAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) AccountedPool(ctx context.Context, in *QueryGetAccountedPoolRequest, opts ...grpc.CallOption) (*QueryGetAccountedPoolResponse, error) { + out := new(QueryGetAccountedPoolResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/AccountedPool", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) AccountedPoolAll(ctx context.Context, in *QueryAllAccountedPoolRequest, opts ...grpc.CallOption) (*QueryAllAccountedPoolResponse, error) { + out := new(QueryAllAccountedPoolResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/AccountedPoolAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // ExchangeRates returns exchange rates of all denoms, @@ -1572,6 +1940,14 @@ type QueryServer interface { Price(context.Context, *QueryPriceRequest) (*QueryPriceResponse, error) // Queries a list of Price items. PriceAll(context.Context, *QueryPriceAllRequest) (*QueryPriceAllResponse, error) + // Queries a Pool. + Pool(context.Context, *QueryGetPoolRequest) (*QueryGetPoolResponse, error) + // Queries a list of Pool items. + PoolAll(context.Context, *QueryAllPoolRequest) (*QueryAllPoolResponse, error) + // Queries an AccountedPool. + AccountedPool(context.Context, *QueryGetAccountedPoolRequest) (*QueryGetAccountedPoolResponse, error) + // Queries a list of AccountedPool items. + AccountedPoolAll(context.Context, *QueryAllAccountedPoolRequest) (*QueryAllAccountedPoolResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1623,6 +1999,18 @@ func (*UnimplementedQueryServer) Price(ctx context.Context, req *QueryPriceReque func (*UnimplementedQueryServer) PriceAll(ctx context.Context, req *QueryPriceAllRequest) (*QueryPriceAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PriceAll not implemented") } +func (*UnimplementedQueryServer) Pool(ctx context.Context, req *QueryGetPoolRequest) (*QueryGetPoolResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Pool not implemented") +} +func (*UnimplementedQueryServer) PoolAll(ctx context.Context, req *QueryAllPoolRequest) (*QueryAllPoolResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PoolAll not implemented") +} +func (*UnimplementedQueryServer) AccountedPool(ctx context.Context, req *QueryGetAccountedPoolRequest) (*QueryGetAccountedPoolResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AccountedPool not implemented") +} +func (*UnimplementedQueryServer) AccountedPoolAll(ctx context.Context, req *QueryAllAccountedPoolRequest) (*QueryAllAccountedPoolResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AccountedPoolAll not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -1898,6 +2286,78 @@ func _Query_PriceAll_Handler(srv interface{}, ctx context.Context, dec func(inte return interceptor(ctx, in, info, handler) } +func _Query_Pool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetPoolRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Pool(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Query/Pool", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Pool(ctx, req.(*QueryGetPoolRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_PoolAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllPoolRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).PoolAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Query/PoolAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PoolAll(ctx, req.(*QueryAllPoolRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_AccountedPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetAccountedPoolRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AccountedPool(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Query/AccountedPool", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AccountedPool(ctx, req.(*QueryGetAccountedPoolRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_AccountedPoolAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllAccountedPoolRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AccountedPoolAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Query/AccountedPoolAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AccountedPoolAll(ctx, req.(*QueryAllAccountedPoolRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "ojo.oracle.v1.Query", HandlerType: (*QueryServer)(nil), @@ -1962,6 +2422,22 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "PriceAll", Handler: _Query_PriceAll_Handler, }, + { + MethodName: "Pool", + Handler: _Query_Pool_Handler, + }, + { + MethodName: "PoolAll", + Handler: _Query_PoolAll_Handler, + }, + { + MethodName: "AccountedPool", + Handler: _Query_AccountedPool_Handler, + }, + { + MethodName: "AccountedPoolAll", + Handler: _Query_AccountedPoolAll_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "ojo/oracle/v1/query.proto", @@ -2890,6 +3366,248 @@ func (m *QueryPriceAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *QueryGetPoolRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGetPoolRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PoolId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.PoolId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryGetPoolResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGetPoolResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Pool.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryAllPoolRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllPoolRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryAllPoolResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllPoolResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Pool) > 0 { + for iNdEx := len(m.Pool) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Pool[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryGetAccountedPoolRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGetAccountedPoolRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetAccountedPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PoolId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.PoolId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryGetAccountedPoolResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryGetAccountedPoolResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetAccountedPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.AccountedPool.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryAllAccountedPoolRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllAccountedPoolRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllAccountedPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryAllAccountedPoolResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllAccountedPoolResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllAccountedPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AccountedPool) > 0 { + for iNdEx := len(m.AccountedPool) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AccountedPool[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -3275,46 +3993,684 @@ func (m *QueryPriceAllResponse) Size() (n int) { return n } -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 +func (m *QueryGetPoolRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PoolId != 0 { + n += 1 + sovQuery(uint64(m.PoolId)) + } + return n } -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + +func (m *QueryGetPoolResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Pool.Size() + n += 1 + l + sovQuery(uint64(l)) + return n } -func (m *QueryExchangeRates) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryExchangeRates: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryExchangeRates: illegal tag %d (wire type %d)", fieldNum, wire) + +func (m *QueryAllPoolRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryAllPoolResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Pool) > 0 { + for _, e := range m.Pool { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryGetAccountedPoolRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PoolId != 0 { + n += 1 + sovQuery(uint64(m.PoolId)) + } + return n +} + +func (m *QueryGetAccountedPoolResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.AccountedPool.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAllAccountedPoolRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryAllAccountedPoolResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.AccountedPool) > 0 { + for _, e := range m.AccountedPool { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryExchangeRates) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryExchangeRates: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryExchangeRates: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryExchangeRatesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryExchangeRatesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryExchangeRatesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExchangeRates", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExchangeRates = append(m.ExchangeRates, types.DecCoin{}) + if err := m.ExchangeRates[len(m.ExchangeRates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryActiveExchangeRates) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryActiveExchangeRates: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryActiveExchangeRates: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryActiveExchangeRatesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryActiveExchangeRatesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryActiveExchangeRatesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveRates", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ActiveRates = append(m.ActiveRates, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryFeederDelegation) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryFeederDelegation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryFeederDelegation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValidatorAddr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryFeederDelegationResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryFeederDelegationResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryFeederDelegationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeederAddr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeederAddr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryMissCounter) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryMissCounter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryMissCounter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValidatorAddr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryMissCounterResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryMissCounterResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryMissCounterResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MissCounter", wireType) } - var stringLen uint64 + m.MissCounter = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3324,24 +4680,11 @@ func (m *QueryExchangeRates) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.MissCounter |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3363,7 +4706,7 @@ func (m *QueryExchangeRates) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryExchangeRatesResponse) Unmarshal(dAtA []byte) error { +func (m *QuerySlashWindow) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3386,46 +4729,12 @@ func (m *QueryExchangeRatesResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryExchangeRatesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QuerySlashWindow: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryExchangeRatesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QuerySlashWindow: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExchangeRates", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExchangeRates = append(m.ExchangeRates, types.DecCoin{}) - if err := m.ExchangeRates[len(m.ExchangeRates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3447,7 +4756,7 @@ func (m *QueryExchangeRatesResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryActiveExchangeRates) Unmarshal(dAtA []byte) error { +func (m *QuerySlashWindowResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3470,12 +4779,31 @@ func (m *QueryActiveExchangeRates) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryActiveExchangeRates: wiretype end group for non-group") + return fmt.Errorf("proto: QuerySlashWindowResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryActiveExchangeRates: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QuerySlashWindowResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WindowProgress", wireType) + } + m.WindowProgress = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.WindowProgress |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3497,7 +4825,7 @@ func (m *QueryActiveExchangeRates) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryActiveExchangeRatesResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAggregatePrevote) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3520,15 +4848,15 @@ func (m *QueryActiveExchangeRatesResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryActiveExchangeRatesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAggregatePrevote: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryActiveExchangeRatesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAggregatePrevote: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveRates", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddr", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3556,7 +4884,7 @@ func (m *QueryActiveExchangeRatesResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ActiveRates = append(m.ActiveRates, string(dAtA[iNdEx:postIndex])) + m.ValidatorAddr = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -3579,7 +4907,7 @@ func (m *QueryActiveExchangeRatesResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryFeederDelegation) Unmarshal(dAtA []byte) error { +func (m *QueryAggregatePrevoteResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3602,17 +4930,17 @@ func (m *QueryFeederDelegation) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryFeederDelegation: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAggregatePrevoteResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryFeederDelegation: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAggregatePrevoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddr", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AggregatePrevote", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3622,23 +4950,24 @@ func (m *QueryFeederDelegation) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.ValidatorAddr = string(dAtA[iNdEx:postIndex]) + if err := m.AggregatePrevote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -3661,7 +4990,7 @@ func (m *QueryFeederDelegation) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryFeederDelegationResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAggregatePrevotes) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3684,17 +5013,67 @@ func (m *QueryFeederDelegationResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryFeederDelegationResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAggregatePrevotes: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryFeederDelegationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAggregatePrevotes: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAggregatePrevotesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAggregatePrevotesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAggregatePrevotesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FeederAddr", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AggregatePrevotes", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3704,23 +5083,25 @@ func (m *QueryFeederDelegationResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.FeederAddr = string(dAtA[iNdEx:postIndex]) + m.AggregatePrevotes = append(m.AggregatePrevotes, AggregateExchangeRatePrevote{}) + if err := m.AggregatePrevotes[len(m.AggregatePrevotes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -3743,7 +5124,7 @@ func (m *QueryFeederDelegationResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryMissCounter) Unmarshal(dAtA []byte) error { +func (m *QueryAggregateVote) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3766,10 +5147,10 @@ func (m *QueryMissCounter) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryMissCounter: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAggregateVote: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryMissCounter: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAggregateVote: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3825,7 +5206,7 @@ func (m *QueryMissCounter) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryMissCounterResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAggregateVoteResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3848,17 +5229,17 @@ func (m *QueryMissCounterResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryMissCounterResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAggregateVoteResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryMissCounterResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAggregateVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MissCounter", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AggregateVote", wireType) } - m.MissCounter = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3868,11 +5249,25 @@ func (m *QueryMissCounterResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MissCounter |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AggregateVote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -3894,7 +5289,7 @@ func (m *QueryMissCounterResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QuerySlashWindow) Unmarshal(dAtA []byte) error { +func (m *QueryAggregateVotes) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3917,10 +5312,10 @@ func (m *QuerySlashWindow) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QuerySlashWindow: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAggregateVotes: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QuerySlashWindow: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAggregateVotes: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -3944,7 +5339,7 @@ func (m *QuerySlashWindow) Unmarshal(dAtA []byte) error { } return nil } -func (m *QuerySlashWindowResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAggregateVotesResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3967,17 +5362,17 @@ func (m *QuerySlashWindowResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QuerySlashWindowResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAggregateVotesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QuerySlashWindowResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAggregateVotesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WindowProgress", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AggregateVotes", wireType) } - m.WindowProgress = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -3987,11 +5382,26 @@ func (m *QuerySlashWindowResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WindowProgress |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AggregateVotes = append(m.AggregateVotes, AggregateExchangeRateVote{}) + if err := m.AggregateVotes[len(m.AggregateVotes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4013,7 +5423,7 @@ func (m *QuerySlashWindowResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAggregatePrevote) Unmarshal(dAtA []byte) error { +func (m *QueryParams) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4036,44 +5446,12 @@ func (m *QueryAggregatePrevote) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAggregatePrevote: wiretype end group for non-group") + return fmt.Errorf("proto: QueryParams: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAggregatePrevote: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryParams: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddr", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ValidatorAddr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4095,7 +5473,7 @@ func (m *QueryAggregatePrevote) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAggregatePrevoteResponse) Unmarshal(dAtA []byte) error { +func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4118,15 +5496,15 @@ func (m *QueryAggregatePrevoteResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAggregatePrevoteResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAggregatePrevoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregatePrevote", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4153,7 +5531,7 @@ func (m *QueryAggregatePrevoteResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.AggregatePrevote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4178,7 +5556,7 @@ func (m *QueryAggregatePrevoteResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAggregatePrevotes) Unmarshal(dAtA []byte) error { +func (m *QueryMedians) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4201,12 +5579,63 @@ func (m *QueryAggregatePrevotes) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAggregatePrevotes: wiretype end group for non-group") + return fmt.Errorf("proto: QueryMedians: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAggregatePrevotes: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryMedians: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumStamps", wireType) + } + m.NumStamps = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumStamps |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4228,7 +5657,7 @@ func (m *QueryAggregatePrevotes) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAggregatePrevotesResponse) Unmarshal(dAtA []byte) error { +func (m *QueryMediansResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4251,15 +5680,15 @@ func (m *QueryAggregatePrevotesResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAggregatePrevotesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryMediansResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAggregatePrevotesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryMediansResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregatePrevotes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Medians", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4286,8 +5715,8 @@ func (m *QueryAggregatePrevotesResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AggregatePrevotes = append(m.AggregatePrevotes, AggregateExchangeRatePrevote{}) - if err := m.AggregatePrevotes[len(m.AggregatePrevotes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Medians = append(m.Medians, PriceStamp{}) + if err := m.Medians[len(m.Medians)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4312,7 +5741,7 @@ func (m *QueryAggregatePrevotesResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAggregateVote) Unmarshal(dAtA []byte) error { +func (m *QueryMedianDeviations) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4335,15 +5764,15 @@ func (m *QueryAggregateVote) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAggregateVote: wiretype end group for non-group") + return fmt.Errorf("proto: QueryMedianDeviations: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAggregateVote: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryMedianDeviations: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddr", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4371,7 +5800,7 @@ func (m *QueryAggregateVote) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ValidatorAddr = string(dAtA[iNdEx:postIndex]) + m.Denom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -4394,7 +5823,7 @@ func (m *QueryAggregateVote) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAggregateVoteResponse) Unmarshal(dAtA []byte) error { +func (m *QueryMedianDeviationsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4417,15 +5846,15 @@ func (m *QueryAggregateVoteResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAggregateVoteResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryMedianDeviationsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAggregateVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryMedianDeviationsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregateVote", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MedianDeviations", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4452,7 +5881,8 @@ func (m *QueryAggregateVoteResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.AggregateVote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.MedianDeviations = append(m.MedianDeviations, PriceStamp{}) + if err := m.MedianDeviations[len(m.MedianDeviations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4477,7 +5907,7 @@ func (m *QueryAggregateVoteResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAggregateVotes) Unmarshal(dAtA []byte) error { +func (m *QueryValidatorRewardSet) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4500,10 +5930,10 @@ func (m *QueryAggregateVotes) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAggregateVotes: wiretype end group for non-group") + return fmt.Errorf("proto: QueryValidatorRewardSet: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAggregateVotes: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryValidatorRewardSet: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -4527,7 +5957,7 @@ func (m *QueryAggregateVotes) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAggregateVotesResponse) Unmarshal(dAtA []byte) error { +func (m *QueryValidatorRewardSetResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4550,15 +5980,15 @@ func (m *QueryAggregateVotesResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAggregateVotesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryValidatorRewardSetResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAggregateVotesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryValidatorRewardSetResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregateVotes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4585,8 +6015,7 @@ func (m *QueryAggregateVotesResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AggregateVotes = append(m.AggregateVotes, AggregateExchangeRateVote{}) - if err := m.AggregateVotes[len(m.AggregateVotes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Validators.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4599,47 +6028,130 @@ func (m *QueryAggregateVotesResponse) Unmarshal(dAtA []byte) error { if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } - if (iNdEx + skippy) > l { + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryPriceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryPriceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryPriceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Asset = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParams) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + m.Source = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4661,7 +6173,7 @@ func (m *QueryParams) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPriceResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4684,15 +6196,15 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPriceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPriceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4719,7 +6231,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Price.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4744,7 +6256,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryMedians) Unmarshal(dAtA []byte) error { +func (m *QueryPriceAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4767,63 +6279,12 @@ func (m *QueryMedians) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryMedians: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPriceAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryMedians: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPriceAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumStamps", wireType) - } - m.NumStamps = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumStamps |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4845,7 +6306,7 @@ func (m *QueryMedians) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryMediansResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPriceAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4868,15 +6329,15 @@ func (m *QueryMediansResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryMediansResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPriceAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryMediansResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPriceAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Medians", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4903,8 +6364,8 @@ func (m *QueryMediansResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Medians = append(m.Medians, PriceStamp{}) - if err := m.Medians[len(m.Medians)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Price = append(m.Price, Price{}) + if err := m.Price[len(m.Price)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4929,7 +6390,7 @@ func (m *QueryMediansResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryMedianDeviations) Unmarshal(dAtA []byte) error { +func (m *QueryGetPoolRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4952,17 +6413,17 @@ func (m *QueryMedianDeviations) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryMedianDeviations: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetPoolRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryMedianDeviations: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetPoolRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PoolId", wireType) } - var stringLen uint64 + m.PoolId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4972,24 +6433,11 @@ func (m *QueryMedianDeviations) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.PoolId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -5011,7 +6459,7 @@ func (m *QueryMedianDeviations) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryMedianDeviationsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGetPoolResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5034,15 +6482,15 @@ func (m *QueryMedianDeviationsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryMedianDeviationsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetPoolResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryMedianDeviationsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetPoolResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MedianDeviations", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5069,8 +6517,7 @@ func (m *QueryMedianDeviationsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.MedianDeviations = append(m.MedianDeviations, PriceStamp{}) - if err := m.MedianDeviations[len(m.MedianDeviations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Pool.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5095,7 +6542,7 @@ func (m *QueryMedianDeviationsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryValidatorRewardSet) Unmarshal(dAtA []byte) error { +func (m *QueryAllPoolRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5118,10 +6565,10 @@ func (m *QueryValidatorRewardSet) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryValidatorRewardSet: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllPoolRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryValidatorRewardSet: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllPoolRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -5145,7 +6592,7 @@ func (m *QueryValidatorRewardSet) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryValidatorRewardSetResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllPoolResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5168,15 +6615,15 @@ func (m *QueryValidatorRewardSetResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryValidatorRewardSetResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllPoolResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryValidatorRewardSetResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllPoolResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5203,7 +6650,8 @@ func (m *QueryValidatorRewardSetResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Validators.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Pool = append(m.Pool, Pool{}) + if err := m.Pool[len(m.Pool)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5228,7 +6676,7 @@ func (m *QueryValidatorRewardSetResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPriceRequest) Unmarshal(dAtA []byte) error { +func (m *QueryGetAccountedPoolRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5251,81 +6699,17 @@ func (m *QueryPriceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPriceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetAccountedPoolRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPriceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetAccountedPoolRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Asset = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Source = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PoolId", wireType) } - m.Timestamp = 0 + m.PoolId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5335,7 +6719,7 @@ func (m *QueryPriceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Timestamp |= uint64(b&0x7F) << shift + m.PoolId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5361,7 +6745,7 @@ func (m *QueryPriceRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPriceResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGetAccountedPoolResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5384,15 +6768,15 @@ func (m *QueryPriceResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPriceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGetAccountedPoolResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPriceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGetAccountedPoolResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AccountedPool", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5419,7 +6803,7 @@ func (m *QueryPriceResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Price.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AccountedPool.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5444,7 +6828,7 @@ func (m *QueryPriceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPriceAllRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAllAccountedPoolRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5467,10 +6851,10 @@ func (m *QueryPriceAllRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPriceAllRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllAccountedPoolRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPriceAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllAccountedPoolRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -5494,7 +6878,7 @@ func (m *QueryPriceAllRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPriceAllResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllAccountedPoolResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5517,15 +6901,15 @@ func (m *QueryPriceAllResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPriceAllResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllAccountedPoolResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPriceAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllAccountedPoolResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AccountedPool", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5552,8 +6936,8 @@ func (m *QueryPriceAllResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Price = append(m.Price, Price{}) - if err := m.Price[len(m.Price)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.AccountedPool = append(m.AccountedPool, AccountedPool{}) + if err := m.AccountedPool[len(m.AccountedPool)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/oracle/types/query.pb.gw.go b/x/oracle/types/query.pb.gw.go index e541aefc..4aaa32b0 100644 --- a/x/oracle/types/query.pb.gw.go +++ b/x/oracle/types/query.pb.gw.go @@ -573,6 +573,150 @@ func local_request_Query_PriceAll_0(ctx context.Context, marshaler runtime.Marsh } +func request_Query_Pool_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetPoolRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pool_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pool_id") + } + + protoReq.PoolId, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pool_id", err) + } + + msg, err := client.Pool(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Pool_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetPoolRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pool_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pool_id") + } + + protoReq.PoolId, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pool_id", err) + } + + msg, err := server.Pool(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_PoolAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllPoolRequest + var metadata runtime.ServerMetadata + + msg, err := client.PoolAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PoolAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllPoolRequest + var metadata runtime.ServerMetadata + + msg, err := server.PoolAll(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_AccountedPool_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetAccountedPoolRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pool_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pool_id") + } + + protoReq.PoolId, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pool_id", err) + } + + msg, err := client.AccountedPool(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_AccountedPool_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGetAccountedPoolRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["pool_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "pool_id") + } + + protoReq.PoolId, err = runtime.Uint64(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pool_id", err) + } + + msg, err := server.AccountedPool(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_AccountedPoolAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllAccountedPoolRequest + var metadata runtime.ServerMetadata + + msg, err := client.AccountedPoolAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_AccountedPoolAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllAccountedPoolRequest + var metadata runtime.ServerMetadata + + msg, err := server.AccountedPoolAll(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -924,6 +1068,98 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_Pool_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Pool_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Pool_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PoolAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_PoolAll_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PoolAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_AccountedPool_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_AccountedPool_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AccountedPool_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_AccountedPoolAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_AccountedPoolAll_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AccountedPoolAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1265,6 +1501,86 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_Pool_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Pool_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Pool_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PoolAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PoolAll_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PoolAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_AccountedPool_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_AccountedPool_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AccountedPool_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_AccountedPoolAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_AccountedPoolAll_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AccountedPoolAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1298,6 +1614,14 @@ var ( pattern_Query_Price_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"elys-network", "elys", "oracle", "price", "asset"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_PriceAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"elys-network", "elys", "oracle", "prices"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_Pool_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"elys-network", "elys", "amm", "pool", "pool_id"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_PoolAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"elys-network", "elys", "amm", "pool"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_AccountedPool_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"elys-network", "elys", "accountedpool", "accounted_pool", "pool_id"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_AccountedPoolAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"elys-network", "elys", "accountedpool", "accounted_pool"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -1330,4 +1654,12 @@ var ( forward_Query_Price_0 = runtime.ForwardResponseMessage forward_Query_PriceAll_0 = runtime.ForwardResponseMessage + + forward_Query_Pool_0 = runtime.ForwardResponseMessage + + forward_Query_PoolAll_0 = runtime.ForwardResponseMessage + + forward_Query_AccountedPool_0 = runtime.ForwardResponseMessage + + forward_Query_AccountedPoolAll_0 = runtime.ForwardResponseMessage ) From 30e9756672daa73259448b73b90b48998948e7dc Mon Sep 17 00:00:00 2001 From: rbajollari Date: Fri, 31 Jan 2025 12:15:43 -0500 Subject: [PATCH 41/77] pf commit --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 7226e5c4..27de7d58 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250127165022-ceed35279aa3 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250131171434-cb01b78d379d github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.0 diff --git a/go.sum b/go.sum index 12d9d6d8..aa16bfbe 100644 --- a/go.sum +++ b/go.sum @@ -1123,8 +1123,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250127165022-ceed35279aa3 h1:OekVZPqod1wpjAiDBwbGeDn6DOiaJxLNnAb1DKRI/tk= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250127165022-ceed35279aa3/go.mod h1:r7ldVgJgNlCsGlRvlbLZPubk2rt0IHx8+rvi5JSh7A0= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250131171434-cb01b78d379d h1:iRsCl444wJu82y1pKuLP4tJ3mGL6dd7MgqSevcnl2aQ= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250131171434-cb01b78d379d/go.mod h1:XmWWdgM48Z9IN77S8XRE7y3qQ/zoFhdFFWfI98nwbro= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= From d43eb8f8f00c6ccb72ca7bced70af50d20605f15 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Fri, 31 Jan 2025 13:23:32 -0500 Subject: [PATCH 42/77] lint --- proto/ojo/oracle/v1/query.proto | 44 +-- x/oracle/client/cli/query.go | 16 +- x/oracle/keeper/grpc_query.go | 51 +-- x/oracle/types/query.pb.go | 630 ++++++++++++++++---------------- x/oracle/types/query.pb.gw.go | 16 +- 5 files changed, 382 insertions(+), 375 deletions(-) diff --git a/proto/ojo/oracle/v1/query.proto b/proto/ojo/oracle/v1/query.proto index eb06ae40..26972dca 100644 --- a/proto/ojo/oracle/v1/query.proto +++ b/proto/ojo/oracle/v1/query.proto @@ -112,25 +112,25 @@ service Query { } // Queries a Pool. - rpc Pool(QueryGetPoolRequest) returns (QueryGetPoolResponse) { + rpc Pool(QueryPoolRequest) returns (QueryPoolResponse) { option (google.api.http).get = "/elys-network/elys/amm/pool/{pool_id}"; } // Queries a list of Pool items. - rpc PoolAll(QueryAllPoolRequest) returns (QueryAllPoolResponse) { + rpc PoolAll(QueryPoolAllRequest) returns (QueryPoolAllResponse) { option (google.api.http).get = "/elys-network/elys/amm/pool"; } // Queries an AccountedPool. - rpc AccountedPool(QueryGetAccountedPoolRequest) - returns (QueryGetAccountedPoolResponse) { + rpc AccountedPool(QueryAccountedPoolRequest) + returns (QueryAccountedPoolResponse) { option (google.api.http).get = "/elys-network/elys/accountedpool/accounted_pool/{pool_id}"; } // Queries a list of AccountedPool items. - rpc AccountedPoolAll(QueryAllAccountedPoolRequest) - returns (QueryAllAccountedPoolResponse) { + rpc AccountedPoolAll(QueryAccountedPoolAllRequest) + returns (QueryAccountedPoolAllResponse) { option (google.api.http).get = "/elys-network/elys/accountedpool/accounted_pool"; } @@ -349,34 +349,34 @@ message QueryPriceAllResponse { repeated Price price = 1 [ (gogoproto.nullable) = false ]; } -// QueryGetPoolRequest is the request type for the Query/GetPoolRequest RPC method. -message QueryGetPoolRequest { uint64 pool_id = 1; } +// QueryPoolRequest is the request type for the Query/PoolRequest RPC method. +message QueryPoolRequest { uint64 pool_id = 1; } -// QueryGetPoolResponse is the response type for the Query/GetPoolResponse RPC method. -message QueryGetPoolResponse { +// QueryPoolResponse is the response type for the Query/PoolResponse RPC method. +message QueryPoolResponse { Pool pool = 1 [ (gogoproto.nullable) = false ]; } -// QueryAllPoolRequest is the request type for the Query/AllPoolRequest RPC method. -message QueryAllPoolRequest {} +// QueryPoolAllRequest is the request type for the Query/PoolAllRequest RPC method. +message QueryPoolAllRequest {} -// QueryAllPoolResponse is the response type for the Query/AllPoolResponse RPC method. -message QueryAllPoolResponse { +// QueryPoolAllResponse is the response type for the Query/PoolAllResponse RPC method. +message QueryPoolAllResponse { repeated Pool pool = 1 [ (gogoproto.nullable) = false ]; } -// QueryGetAccountedPoolRequest is the request type for the Query/GetAccountedPoolRequest RPC method. -message QueryGetAccountedPoolRequest { uint64 pool_id = 1; } +// QueryAccountedPoolRequest is the request type for the Query/AccountedPoolRequest RPC method. +message QueryAccountedPoolRequest { uint64 pool_id = 1; } -// QueryGetAccountedPoolResponse is the response type for the Query/GetAccountedPoolResponse RPC method. -message QueryGetAccountedPoolResponse { +// QueryAccountedPoolResponse is the response type for the Query/AccountedPoolResponse RPC method. +message QueryAccountedPoolResponse { AccountedPool accounted_pool = 1 [ (gogoproto.nullable) = false ]; } -// QueryAllAccountedPoolRequest is the request type for the Query/AllAccountedPoolRequest RPC method. -message QueryAllAccountedPoolRequest {} +// QueryAccountedPoolAllRequest is the request type for the Query/AccountedPoolAllRequest RPC method. +message QueryAccountedPoolAllRequest {} -// QueryAllAccountedPoolResponse is the response type for the Query/AllAccountedPoolResponse RPC method. -message QueryAllAccountedPoolResponse { +// QueryAccountedPoolAllResponse is the response type for the Query/AccountedPoolAllResponse RPC method. +message QueryAccountedPoolAllResponse { repeated AccountedPool accounted_pool = 1 [ (gogoproto.nullable) = false ]; } diff --git a/x/oracle/client/cli/query.go b/x/oracle/client/cli/query.go index 8c2e6e3a..c2a8600a 100644 --- a/x/oracle/client/cli/query.go +++ b/x/oracle/client/cli/query.go @@ -350,7 +350,7 @@ func CmdListPool() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) - params := &types.QueryAllPoolRequest{} + params := &types.QueryPoolAllRequest{} res, err := queryClient.PoolAll(cmd.Context(), params) if err != nil { @@ -377,13 +377,13 @@ func CmdShowPool() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) - argPoolId, err := cast.ToUint64E(args[0]) + argPoolID, err := cast.ToUint64E(args[0]) if err != nil { return err } - params := &types.QueryGetPoolRequest{ - PoolId: argPoolId, + params := &types.QueryPoolRequest{ + PoolId: argPoolID, } res, err := queryClient.Pool(cmd.Context(), params) @@ -412,7 +412,7 @@ func CmdListAccountedPool() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) - params := &types.QueryAllAccountedPoolRequest{} + params := &types.QueryAccountedPoolAllRequest{} res, err := queryClient.AccountedPoolAll(cmd.Context(), params) if err != nil { @@ -442,13 +442,13 @@ func CmdShowAccountedPool() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) - poolId, err := strconv.ParseUint(args[0], 10, 64) + poolID, err := strconv.ParseUint(args[0], 10, 64) if err != nil { return err } - params := &types.QueryGetAccountedPoolRequest{ - PoolId: poolId, + params := &types.QueryAccountedPoolRequest{ + PoolId: poolID, } res, err := queryClient.AccountedPool(cmd.Context(), params) diff --git a/x/oracle/keeper/grpc_query.go b/x/oracle/keeper/grpc_query.go index a6924517..d550ceb4 100644 --- a/x/oracle/keeper/grpc_query.go +++ b/x/oracle/keeper/grpc_query.go @@ -376,56 +376,63 @@ func (q querier) Price(goCtx context.Context, req *types.QueryPriceRequest) (*ty } return &types.QueryPriceResponse{Price: val}, nil } -func (q querier) AccountedPoolAll(goCtx context.Context, req *types.QueryAllAccountedPoolRequest) (*types.QueryAllAccountedPoolResponse, error) { + +func (q querier) Pool(goCtx context.Context, req *types.QueryPoolRequest) (*types.QueryPoolResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } - ctx := sdk.UnwrapSDKContext(goCtx) - accountedPools := q.GetAllAccountedPool(ctx) + pool, found := q.GetPool(ctx, req.PoolId) + if !found { + return nil, status.Error(codes.NotFound, "not found") + } - return &types.QueryAllAccountedPoolResponse{AccountedPool: accountedPools}, nil + return &types.QueryPoolResponse{ + Pool: pool, + }, nil } -func (q querier) AccountedPool(goCtx context.Context, req *types.QueryGetAccountedPoolRequest) (*types.QueryGetAccountedPoolResponse, error) { +func (q querier) PoolAll(goCtx context.Context, req *types.QueryPoolAllRequest) (*types.QueryPoolAllResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } + ctx := sdk.UnwrapSDKContext(goCtx) - val, found := q.GetAccountedPool(ctx, req.PoolId) - if !found { - return nil, status.Error(codes.NotFound, "not found") - } + pools := q.GetAllPool(ctx) - return &types.QueryGetAccountedPoolResponse{AccountedPool: val}, nil + return &types.QueryPoolAllResponse{Pool: pools}, nil } -func (q querier) Pool(goCtx context.Context, req *types.QueryGetPoolRequest) (*types.QueryGetPoolResponse, error) { +func (q querier) AccountedPoolAll( + goCtx context.Context, + req *types.QueryAccountedPoolAllRequest, +) (*types.QueryAccountedPoolAllResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } + ctx := sdk.UnwrapSDKContext(goCtx) - pool, found := q.GetPool(ctx, req.PoolId) - if !found { - return nil, status.Error(codes.NotFound, "not found") - } + accountedPools := q.GetAllAccountedPool(ctx) - return &types.QueryGetPoolResponse{ - Pool: pool, - }, nil + return &types.QueryAccountedPoolAllResponse{AccountedPool: accountedPools}, nil } -func (q querier) PoolAll(goCtx context.Context, req *types.QueryAllPoolRequest) (*types.QueryAllPoolResponse, error) { +func (q querier) AccountedPool( + goCtx context.Context, + req *types.QueryAccountedPoolRequest, +) (*types.QueryAccountedPoolResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } - ctx := sdk.UnwrapSDKContext(goCtx) - pools := q.GetAllPool(ctx) + val, found := q.GetAccountedPool(ctx, req.PoolId) + if !found { + return nil, status.Error(codes.NotFound, "not found") + } - return &types.QueryAllPoolResponse{Pool: pools}, nil + return &types.QueryAccountedPoolResponse{AccountedPool: val}, nil } diff --git a/x/oracle/types/query.pb.go b/x/oracle/types/query.pb.go index 086ff82c..713de97f 100644 --- a/x/oracle/types/query.pb.go +++ b/x/oracle/types/query.pb.go @@ -1216,23 +1216,23 @@ func (m *QueryPriceAllResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryPriceAllResponse proto.InternalMessageInfo -// QueryGetPoolRequest is the request type for the Query/GetPoolRequest RPC method. -type QueryGetPoolRequest struct { +// QueryPoolRequest is the request type for the Query/PoolRequest RPC method. +type QueryPoolRequest struct { PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` } -func (m *QueryGetPoolRequest) Reset() { *m = QueryGetPoolRequest{} } -func (m *QueryGetPoolRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetPoolRequest) ProtoMessage() {} -func (*QueryGetPoolRequest) Descriptor() ([]byte, []int) { +func (m *QueryPoolRequest) Reset() { *m = QueryPoolRequest{} } +func (m *QueryPoolRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPoolRequest) ProtoMessage() {} +func (*QueryPoolRequest) Descriptor() ([]byte, []int) { return fileDescriptor_ac3bb5b34dcda556, []int{30} } -func (m *QueryGetPoolRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryPoolRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetPoolRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPoolRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1242,35 +1242,35 @@ func (m *QueryGetPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *QueryGetPoolRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetPoolRequest.Merge(m, src) +func (m *QueryPoolRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPoolRequest.Merge(m, src) } -func (m *QueryGetPoolRequest) XXX_Size() int { +func (m *QueryPoolRequest) XXX_Size() int { return m.Size() } -func (m *QueryGetPoolRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetPoolRequest.DiscardUnknown(m) +func (m *QueryPoolRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPoolRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetPoolRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryPoolRequest proto.InternalMessageInfo -// QueryGetPoolResponse is the response type for the Query/GetPoolResponse RPC method. -type QueryGetPoolResponse struct { +// QueryPoolResponse is the response type for the Query/PoolResponse RPC method. +type QueryPoolResponse struct { Pool Pool `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool"` } -func (m *QueryGetPoolResponse) Reset() { *m = QueryGetPoolResponse{} } -func (m *QueryGetPoolResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetPoolResponse) ProtoMessage() {} -func (*QueryGetPoolResponse) Descriptor() ([]byte, []int) { +func (m *QueryPoolResponse) Reset() { *m = QueryPoolResponse{} } +func (m *QueryPoolResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPoolResponse) ProtoMessage() {} +func (*QueryPoolResponse) Descriptor() ([]byte, []int) { return fileDescriptor_ac3bb5b34dcda556, []int{31} } -func (m *QueryGetPoolResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryPoolResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetPoolResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPoolResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1280,34 +1280,34 @@ func (m *QueryGetPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *QueryGetPoolResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetPoolResponse.Merge(m, src) +func (m *QueryPoolResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPoolResponse.Merge(m, src) } -func (m *QueryGetPoolResponse) XXX_Size() int { +func (m *QueryPoolResponse) XXX_Size() int { return m.Size() } -func (m *QueryGetPoolResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetPoolResponse.DiscardUnknown(m) +func (m *QueryPoolResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPoolResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetPoolResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryPoolResponse proto.InternalMessageInfo -// QueryAllPoolRequest is the request type for the Query/AllPoolRequest RPC method. -type QueryAllPoolRequest struct { +// QueryPoolAllRequest is the request type for the Query/PoolAllRequest RPC method. +type QueryPoolAllRequest struct { } -func (m *QueryAllPoolRequest) Reset() { *m = QueryAllPoolRequest{} } -func (m *QueryAllPoolRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllPoolRequest) ProtoMessage() {} -func (*QueryAllPoolRequest) Descriptor() ([]byte, []int) { +func (m *QueryPoolAllRequest) Reset() { *m = QueryPoolAllRequest{} } +func (m *QueryPoolAllRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPoolAllRequest) ProtoMessage() {} +func (*QueryPoolAllRequest) Descriptor() ([]byte, []int) { return fileDescriptor_ac3bb5b34dcda556, []int{32} } -func (m *QueryAllPoolRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryPoolAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPoolAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllPoolRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPoolAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1317,35 +1317,35 @@ func (m *QueryAllPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *QueryAllPoolRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllPoolRequest.Merge(m, src) +func (m *QueryPoolAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPoolAllRequest.Merge(m, src) } -func (m *QueryAllPoolRequest) XXX_Size() int { +func (m *QueryPoolAllRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllPoolRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllPoolRequest.DiscardUnknown(m) +func (m *QueryPoolAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPoolAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllPoolRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryPoolAllRequest proto.InternalMessageInfo -// QueryAllPoolResponse is the response type for the Query/AllPoolResponse RPC method. -type QueryAllPoolResponse struct { +// QueryPoolAllResponse is the response type for the Query/PoolAllResponse RPC method. +type QueryPoolAllResponse struct { Pool []Pool `protobuf:"bytes,1,rep,name=pool,proto3" json:"pool"` } -func (m *QueryAllPoolResponse) Reset() { *m = QueryAllPoolResponse{} } -func (m *QueryAllPoolResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllPoolResponse) ProtoMessage() {} -func (*QueryAllPoolResponse) Descriptor() ([]byte, []int) { +func (m *QueryPoolAllResponse) Reset() { *m = QueryPoolAllResponse{} } +func (m *QueryPoolAllResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPoolAllResponse) ProtoMessage() {} +func (*QueryPoolAllResponse) Descriptor() ([]byte, []int) { return fileDescriptor_ac3bb5b34dcda556, []int{33} } -func (m *QueryAllPoolResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryPoolAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPoolAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllPoolResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPoolAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1355,35 +1355,35 @@ func (m *QueryAllPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *QueryAllPoolResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllPoolResponse.Merge(m, src) +func (m *QueryPoolAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPoolAllResponse.Merge(m, src) } -func (m *QueryAllPoolResponse) XXX_Size() int { +func (m *QueryPoolAllResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllPoolResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllPoolResponse.DiscardUnknown(m) +func (m *QueryPoolAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPoolAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllPoolResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryPoolAllResponse proto.InternalMessageInfo -// QueryGetAccountedPoolRequest is the request type for the Query/GetAccountedPoolRequest RPC method. -type QueryGetAccountedPoolRequest struct { +// QueryAccountedPoolRequest is the request type for the Query/AccountedPoolRequest RPC method. +type QueryAccountedPoolRequest struct { PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` } -func (m *QueryGetAccountedPoolRequest) Reset() { *m = QueryGetAccountedPoolRequest{} } -func (m *QueryGetAccountedPoolRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetAccountedPoolRequest) ProtoMessage() {} -func (*QueryGetAccountedPoolRequest) Descriptor() ([]byte, []int) { +func (m *QueryAccountedPoolRequest) Reset() { *m = QueryAccountedPoolRequest{} } +func (m *QueryAccountedPoolRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAccountedPoolRequest) ProtoMessage() {} +func (*QueryAccountedPoolRequest) Descriptor() ([]byte, []int) { return fileDescriptor_ac3bb5b34dcda556, []int{34} } -func (m *QueryGetAccountedPoolRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAccountedPoolRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetAccountedPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAccountedPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetAccountedPoolRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAccountedPoolRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1393,35 +1393,35 @@ func (m *QueryGetAccountedPoolRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryGetAccountedPoolRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetAccountedPoolRequest.Merge(m, src) +func (m *QueryAccountedPoolRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAccountedPoolRequest.Merge(m, src) } -func (m *QueryGetAccountedPoolRequest) XXX_Size() int { +func (m *QueryAccountedPoolRequest) XXX_Size() int { return m.Size() } -func (m *QueryGetAccountedPoolRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetAccountedPoolRequest.DiscardUnknown(m) +func (m *QueryAccountedPoolRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAccountedPoolRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetAccountedPoolRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAccountedPoolRequest proto.InternalMessageInfo -// QueryGetAccountedPoolResponse is the response type for the Query/GetAccountedPoolResponse RPC method. -type QueryGetAccountedPoolResponse struct { +// QueryAccountedPoolResponse is the response type for the Query/AccountedPoolResponse RPC method. +type QueryAccountedPoolResponse struct { AccountedPool AccountedPool `protobuf:"bytes,1,opt,name=accounted_pool,json=accountedPool,proto3" json:"accounted_pool"` } -func (m *QueryGetAccountedPoolResponse) Reset() { *m = QueryGetAccountedPoolResponse{} } -func (m *QueryGetAccountedPoolResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetAccountedPoolResponse) ProtoMessage() {} -func (*QueryGetAccountedPoolResponse) Descriptor() ([]byte, []int) { +func (m *QueryAccountedPoolResponse) Reset() { *m = QueryAccountedPoolResponse{} } +func (m *QueryAccountedPoolResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAccountedPoolResponse) ProtoMessage() {} +func (*QueryAccountedPoolResponse) Descriptor() ([]byte, []int) { return fileDescriptor_ac3bb5b34dcda556, []int{35} } -func (m *QueryGetAccountedPoolResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryAccountedPoolResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetAccountedPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAccountedPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetAccountedPoolResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAccountedPoolResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1431,34 +1431,34 @@ func (m *QueryGetAccountedPoolResponse) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *QueryGetAccountedPoolResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetAccountedPoolResponse.Merge(m, src) +func (m *QueryAccountedPoolResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAccountedPoolResponse.Merge(m, src) } -func (m *QueryGetAccountedPoolResponse) XXX_Size() int { +func (m *QueryAccountedPoolResponse) XXX_Size() int { return m.Size() } -func (m *QueryGetAccountedPoolResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetAccountedPoolResponse.DiscardUnknown(m) +func (m *QueryAccountedPoolResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAccountedPoolResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetAccountedPoolResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryAccountedPoolResponse proto.InternalMessageInfo -// QueryAllAccountedPoolRequest is the request type for the Query/AllAccountedPoolRequest RPC method. -type QueryAllAccountedPoolRequest struct { +// QueryAccountedPoolAllRequest is the request type for the Query/AccountedPoolAllRequest RPC method. +type QueryAccountedPoolAllRequest struct { } -func (m *QueryAllAccountedPoolRequest) Reset() { *m = QueryAllAccountedPoolRequest{} } -func (m *QueryAllAccountedPoolRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllAccountedPoolRequest) ProtoMessage() {} -func (*QueryAllAccountedPoolRequest) Descriptor() ([]byte, []int) { +func (m *QueryAccountedPoolAllRequest) Reset() { *m = QueryAccountedPoolAllRequest{} } +func (m *QueryAccountedPoolAllRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAccountedPoolAllRequest) ProtoMessage() {} +func (*QueryAccountedPoolAllRequest) Descriptor() ([]byte, []int) { return fileDescriptor_ac3bb5b34dcda556, []int{36} } -func (m *QueryAllAccountedPoolRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAccountedPoolAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllAccountedPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAccountedPoolAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllAccountedPoolRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAccountedPoolAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1468,35 +1468,35 @@ func (m *QueryAllAccountedPoolRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryAllAccountedPoolRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllAccountedPoolRequest.Merge(m, src) +func (m *QueryAccountedPoolAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAccountedPoolAllRequest.Merge(m, src) } -func (m *QueryAllAccountedPoolRequest) XXX_Size() int { +func (m *QueryAccountedPoolAllRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllAccountedPoolRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllAccountedPoolRequest.DiscardUnknown(m) +func (m *QueryAccountedPoolAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAccountedPoolAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllAccountedPoolRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAccountedPoolAllRequest proto.InternalMessageInfo -// QueryAllAccountedPoolResponse is the response type for the Query/AllAccountedPoolResponse RPC method. -type QueryAllAccountedPoolResponse struct { +// QueryAccountedPoolAllResponse is the response type for the Query/AccountedPoolAllResponse RPC method. +type QueryAccountedPoolAllResponse struct { AccountedPool []AccountedPool `protobuf:"bytes,1,rep,name=accounted_pool,json=accountedPool,proto3" json:"accounted_pool"` } -func (m *QueryAllAccountedPoolResponse) Reset() { *m = QueryAllAccountedPoolResponse{} } -func (m *QueryAllAccountedPoolResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllAccountedPoolResponse) ProtoMessage() {} -func (*QueryAllAccountedPoolResponse) Descriptor() ([]byte, []int) { +func (m *QueryAccountedPoolAllResponse) Reset() { *m = QueryAccountedPoolAllResponse{} } +func (m *QueryAccountedPoolAllResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAccountedPoolAllResponse) ProtoMessage() {} +func (*QueryAccountedPoolAllResponse) Descriptor() ([]byte, []int) { return fileDescriptor_ac3bb5b34dcda556, []int{37} } -func (m *QueryAllAccountedPoolResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryAccountedPoolAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllAccountedPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAccountedPoolAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllAccountedPoolResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAccountedPoolAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1506,17 +1506,17 @@ func (m *QueryAllAccountedPoolResponse) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *QueryAllAccountedPoolResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllAccountedPoolResponse.Merge(m, src) +func (m *QueryAccountedPoolAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAccountedPoolAllResponse.Merge(m, src) } -func (m *QueryAllAccountedPoolResponse) XXX_Size() int { +func (m *QueryAccountedPoolAllResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllAccountedPoolResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllAccountedPoolResponse.DiscardUnknown(m) +func (m *QueryAccountedPoolAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAccountedPoolAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllAccountedPoolResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryAccountedPoolAllResponse proto.InternalMessageInfo func init() { proto.RegisterType((*QueryExchangeRates)(nil), "ojo.oracle.v1.QueryExchangeRates") @@ -1549,122 +1549,122 @@ func init() { proto.RegisterType((*QueryPriceResponse)(nil), "ojo.oracle.v1.QueryPriceResponse") proto.RegisterType((*QueryPriceAllRequest)(nil), "ojo.oracle.v1.QueryPriceAllRequest") proto.RegisterType((*QueryPriceAllResponse)(nil), "ojo.oracle.v1.QueryPriceAllResponse") - proto.RegisterType((*QueryGetPoolRequest)(nil), "ojo.oracle.v1.QueryGetPoolRequest") - proto.RegisterType((*QueryGetPoolResponse)(nil), "ojo.oracle.v1.QueryGetPoolResponse") - proto.RegisterType((*QueryAllPoolRequest)(nil), "ojo.oracle.v1.QueryAllPoolRequest") - proto.RegisterType((*QueryAllPoolResponse)(nil), "ojo.oracle.v1.QueryAllPoolResponse") - proto.RegisterType((*QueryGetAccountedPoolRequest)(nil), "ojo.oracle.v1.QueryGetAccountedPoolRequest") - proto.RegisterType((*QueryGetAccountedPoolResponse)(nil), "ojo.oracle.v1.QueryGetAccountedPoolResponse") - proto.RegisterType((*QueryAllAccountedPoolRequest)(nil), "ojo.oracle.v1.QueryAllAccountedPoolRequest") - proto.RegisterType((*QueryAllAccountedPoolResponse)(nil), "ojo.oracle.v1.QueryAllAccountedPoolResponse") + proto.RegisterType((*QueryPoolRequest)(nil), "ojo.oracle.v1.QueryPoolRequest") + proto.RegisterType((*QueryPoolResponse)(nil), "ojo.oracle.v1.QueryPoolResponse") + proto.RegisterType((*QueryPoolAllRequest)(nil), "ojo.oracle.v1.QueryPoolAllRequest") + proto.RegisterType((*QueryPoolAllResponse)(nil), "ojo.oracle.v1.QueryPoolAllResponse") + proto.RegisterType((*QueryAccountedPoolRequest)(nil), "ojo.oracle.v1.QueryAccountedPoolRequest") + proto.RegisterType((*QueryAccountedPoolResponse)(nil), "ojo.oracle.v1.QueryAccountedPoolResponse") + proto.RegisterType((*QueryAccountedPoolAllRequest)(nil), "ojo.oracle.v1.QueryAccountedPoolAllRequest") + proto.RegisterType((*QueryAccountedPoolAllResponse)(nil), "ojo.oracle.v1.QueryAccountedPoolAllResponse") } func init() { proto.RegisterFile("ojo/oracle/v1/query.proto", fileDescriptor_ac3bb5b34dcda556) } var fileDescriptor_ac3bb5b34dcda556 = []byte{ - // 1627 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x98, 0xcf, 0x6f, 0x14, 0x47, - 0x16, 0xc7, 0xdd, 0xf8, 0x17, 0x7e, 0xc3, 0x18, 0xbb, 0xb0, 0xc1, 0x34, 0x66, 0x6c, 0x97, 0x61, - 0x6d, 0xaf, 0xf1, 0x34, 0xc6, 0x68, 0x11, 0xfb, 0x4b, 0x6b, 0x6c, 0xc3, 0xb2, 0x9b, 0x48, 0x66, - 0x50, 0x40, 0xca, 0x21, 0x93, 0xf6, 0x74, 0x65, 0xdc, 0xa6, 0x67, 0x6a, 0xe8, 0x6a, 0x8f, 0x41, - 0x8e, 0x83, 0xc4, 0x29, 0x47, 0x24, 0xa4, 0x5c, 0x72, 0x08, 0x91, 0x50, 0x0e, 0x51, 0xf2, 0x7f, - 0x70, 0x44, 0xca, 0x25, 0xa7, 0xfc, 0x80, 0x1c, 0xf2, 0x3f, 0xe4, 0x12, 0x75, 0x75, 0x75, 0x4d, - 0x75, 0x77, 0x8d, 0x67, 0xcc, 0xc9, 0xee, 0xf7, 0x5e, 0xbd, 0xf7, 0xa9, 0xd7, 0x55, 0xaf, 0xbf, - 0x1a, 0x38, 0x4b, 0x77, 0xa8, 0x45, 0x7d, 0xbb, 0xe2, 0x11, 0xab, 0xb9, 0x6c, 0x3d, 0xdc, 0x25, - 0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5b, 0xe8, 0xf9, 0x70, 0x41, 0xf9, 0x51, 0x94, 0xee, 0x50, 0x99, 0x37, 0xbc, - 0xb5, 0x8f, 0xe2, 0xb3, 0xc9, 0x7f, 0x1b, 0xdd, 0x1a, 0xe0, 0xbf, 0xec, 0xae, 0xfc, 0x19, 0x00, - 0x00, 0xff, 0xff, 0xdc, 0x44, 0x51, 0xc6, 0x8f, 0x16, 0x00, 0x00, + // 1624 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x98, 0x4b, 0x6f, 0x14, 0xc7, + 0x16, 0xc7, 0xdd, 0xf8, 0x85, 0xcf, 0x30, 0xc6, 0x2e, 0x6c, 0xb0, 0x1b, 0x33, 0xb6, 0xcb, 0x70, + 0x6d, 0x5f, 0xe3, 0x69, 0x8c, 0xd1, 0x45, 0xdc, 0x7b, 0x13, 0xc5, 0x2f, 0x08, 0x79, 0x48, 0x66, + 0x50, 0x40, 0xca, 0x22, 0x93, 0xf6, 0x74, 0x65, 0xdc, 0x66, 0x66, 0x6a, 0xe8, 0x6a, 0x8f, 0x8d, + 0x1c, 0x0b, 0x89, 0x55, 0x96, 0x48, 0x48, 0xd9, 0x64, 0x11, 0x22, 0xa1, 0x44, 0x8a, 0xf2, 0x41, + 0x58, 0x22, 0x65, 0x93, 0x55, 0x1e, 0x90, 0x45, 0x76, 0xf9, 0x0a, 0x51, 0x57, 0x55, 0xf7, 0x54, + 0x77, 0xd7, 0x78, 0xc6, 0xac, 0xec, 0x3e, 0xe7, 0xd4, 0x39, 0xbf, 0x3a, 0x5d, 0x75, 0xfa, 0xaf, + 0x81, 0x71, 0xba, 0x43, 0x2d, 0xea, 0xd9, 0xa5, 0x0a, 0xb1, 0x1a, 0x4b, 0xd6, 0xc3, 0x5d, 0xe2, + 0x3d, 0xca, 0xd7, 0x3d, 0xea, 0x53, 0x94, 0xa5, 0x3b, 0x34, 0x2f, 0x5c, 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d5, 0x15, 0xd6, 0x04, 0x9a, 0x56, + 0x87, 0x81, 0x11, 0xe7, 0x32, 0xe7, 0x5c, 0x44, 0x0b, 0x7a, 0x4e, 0x29, 0x4f, 0xe3, 0xb8, 0xe8, + 0x3b, 0x03, 0x86, 0x52, 0x82, 0xf4, 0xa2, 0xae, 0x74, 0x32, 0xca, 0xbc, 0xdc, 0x49, 0x54, 0x44, + 0x77, 0x83, 0xd3, 0x2d, 0xa3, 0xa5, 0x04, 0x5d, 0x73, 0xb0, 0x59, 0x07, 0x71, 0xd5, 0x70, 0x68, + 0x09, 0xc1, 0x8a, 0x9e, 0x1a, 0x90, 0x51, 0x85, 0xea, 0xa4, 0xae, 0xb0, 0x12, 0x60, 0xce, 0xb6, + 0x09, 0x88, 0xa0, 0xae, 0x73, 0xa8, 0x25, 0x64, 0x1d, 0x03, 0x2a, 0x90, 0xb0, 0xe8, 0x4b, 0xc8, + 0x28, 0x12, 0x55, 0x4f, 0xa4, 0x04, 0xe8, 0x89, 0x34, 0x22, 0x17, 0xcf, 0x70, 0xa2, 0x0b, 0xe8, + 0x7c, 0x82, 0x88, 0x05, 0xb1, 0x45, 0x21, 0x74, 0xd1, 0x4f, 0x06, 0x0c, 0xa5, 0xc4, 0xad, 0xf6, + 0xa5, 0x25, 0xa3, 0xf4, 0x2f, 0xad, 0x95, 0xbc, 0xc5, 0xeb, 0x9c, 0xe6, 0x5d, 0xf4, 0xff, 0x63, + 0xf4, 0x27, 0x25, 0x39, 0xd1, 0xb7, 0x06, 0x0c, 0xa7, 0x54, 0x2a, 0xba, 0xd4, 0x09, 0x09, 0x33, + 0x17, 0x3b, 0x0a, 0x6b, 0x7b, 0x59, 0x15, 0xe2, 0xb4, 0x26, 0x46, 0xcf, 0x0d, 0xc8, 0xc6, 0x35, + 0xec, 0xf4, 0x91, 0x65, 0x83, 0x10, 0xfd, 0x08, 0xd1, 0x4a, 0x58, 0xbc, 0xc2, 0xa9, 0xfe, 0x87, + 0x6e, 0xa4, 0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, 0xfb, 0xe1, + 0x79, 0xe4, 0xbf, 0x81, 0x6e, 0xf5, 0xf1, 0x5f, 0x70, 0x97, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, + 0x12, 0xba, 0xa3, 0x83, 0x77, 0x16, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1715,13 +1715,13 @@ type QueryClient interface { // Queries a list of Price items. PriceAll(ctx context.Context, in *QueryPriceAllRequest, opts ...grpc.CallOption) (*QueryPriceAllResponse, error) // Queries a Pool. - Pool(ctx context.Context, in *QueryGetPoolRequest, opts ...grpc.CallOption) (*QueryGetPoolResponse, error) + Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error) // Queries a list of Pool items. - PoolAll(ctx context.Context, in *QueryAllPoolRequest, opts ...grpc.CallOption) (*QueryAllPoolResponse, error) + PoolAll(ctx context.Context, in *QueryPoolAllRequest, opts ...grpc.CallOption) (*QueryPoolAllResponse, error) // Queries an AccountedPool. - AccountedPool(ctx context.Context, in *QueryGetAccountedPoolRequest, opts ...grpc.CallOption) (*QueryGetAccountedPoolResponse, error) + AccountedPool(ctx context.Context, in *QueryAccountedPoolRequest, opts ...grpc.CallOption) (*QueryAccountedPoolResponse, error) // Queries a list of AccountedPool items. - AccountedPoolAll(ctx context.Context, in *QueryAllAccountedPoolRequest, opts ...grpc.CallOption) (*QueryAllAccountedPoolResponse, error) + AccountedPoolAll(ctx context.Context, in *QueryAccountedPoolAllRequest, opts ...grpc.CallOption) (*QueryAccountedPoolAllResponse, error) } type queryClient struct { @@ -1867,8 +1867,8 @@ func (c *queryClient) PriceAll(ctx context.Context, in *QueryPriceAllRequest, op return out, nil } -func (c *queryClient) Pool(ctx context.Context, in *QueryGetPoolRequest, opts ...grpc.CallOption) (*QueryGetPoolResponse, error) { - out := new(QueryGetPoolResponse) +func (c *queryClient) Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error) { + out := new(QueryPoolResponse) err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/Pool", in, out, opts...) if err != nil { return nil, err @@ -1876,8 +1876,8 @@ func (c *queryClient) Pool(ctx context.Context, in *QueryGetPoolRequest, opts .. return out, nil } -func (c *queryClient) PoolAll(ctx context.Context, in *QueryAllPoolRequest, opts ...grpc.CallOption) (*QueryAllPoolResponse, error) { - out := new(QueryAllPoolResponse) +func (c *queryClient) PoolAll(ctx context.Context, in *QueryPoolAllRequest, opts ...grpc.CallOption) (*QueryPoolAllResponse, error) { + out := new(QueryPoolAllResponse) err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/PoolAll", in, out, opts...) if err != nil { return nil, err @@ -1885,8 +1885,8 @@ func (c *queryClient) PoolAll(ctx context.Context, in *QueryAllPoolRequest, opts return out, nil } -func (c *queryClient) AccountedPool(ctx context.Context, in *QueryGetAccountedPoolRequest, opts ...grpc.CallOption) (*QueryGetAccountedPoolResponse, error) { - out := new(QueryGetAccountedPoolResponse) +func (c *queryClient) AccountedPool(ctx context.Context, in *QueryAccountedPoolRequest, opts ...grpc.CallOption) (*QueryAccountedPoolResponse, error) { + out := new(QueryAccountedPoolResponse) err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/AccountedPool", in, out, opts...) if err != nil { return nil, err @@ -1894,8 +1894,8 @@ func (c *queryClient) AccountedPool(ctx context.Context, in *QueryGetAccountedPo return out, nil } -func (c *queryClient) AccountedPoolAll(ctx context.Context, in *QueryAllAccountedPoolRequest, opts ...grpc.CallOption) (*QueryAllAccountedPoolResponse, error) { - out := new(QueryAllAccountedPoolResponse) +func (c *queryClient) AccountedPoolAll(ctx context.Context, in *QueryAccountedPoolAllRequest, opts ...grpc.CallOption) (*QueryAccountedPoolAllResponse, error) { + out := new(QueryAccountedPoolAllResponse) err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/AccountedPoolAll", in, out, opts...) if err != nil { return nil, err @@ -1941,13 +1941,13 @@ type QueryServer interface { // Queries a list of Price items. PriceAll(context.Context, *QueryPriceAllRequest) (*QueryPriceAllResponse, error) // Queries a Pool. - Pool(context.Context, *QueryGetPoolRequest) (*QueryGetPoolResponse, error) + Pool(context.Context, *QueryPoolRequest) (*QueryPoolResponse, error) // Queries a list of Pool items. - PoolAll(context.Context, *QueryAllPoolRequest) (*QueryAllPoolResponse, error) + PoolAll(context.Context, *QueryPoolAllRequest) (*QueryPoolAllResponse, error) // Queries an AccountedPool. - AccountedPool(context.Context, *QueryGetAccountedPoolRequest) (*QueryGetAccountedPoolResponse, error) + AccountedPool(context.Context, *QueryAccountedPoolRequest) (*QueryAccountedPoolResponse, error) // Queries a list of AccountedPool items. - AccountedPoolAll(context.Context, *QueryAllAccountedPoolRequest) (*QueryAllAccountedPoolResponse, error) + AccountedPoolAll(context.Context, *QueryAccountedPoolAllRequest) (*QueryAccountedPoolAllResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1999,16 +1999,16 @@ func (*UnimplementedQueryServer) Price(ctx context.Context, req *QueryPriceReque func (*UnimplementedQueryServer) PriceAll(ctx context.Context, req *QueryPriceAllRequest) (*QueryPriceAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PriceAll not implemented") } -func (*UnimplementedQueryServer) Pool(ctx context.Context, req *QueryGetPoolRequest) (*QueryGetPoolResponse, error) { +func (*UnimplementedQueryServer) Pool(ctx context.Context, req *QueryPoolRequest) (*QueryPoolResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Pool not implemented") } -func (*UnimplementedQueryServer) PoolAll(ctx context.Context, req *QueryAllPoolRequest) (*QueryAllPoolResponse, error) { +func (*UnimplementedQueryServer) PoolAll(ctx context.Context, req *QueryPoolAllRequest) (*QueryPoolAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PoolAll not implemented") } -func (*UnimplementedQueryServer) AccountedPool(ctx context.Context, req *QueryGetAccountedPoolRequest) (*QueryGetAccountedPoolResponse, error) { +func (*UnimplementedQueryServer) AccountedPool(ctx context.Context, req *QueryAccountedPoolRequest) (*QueryAccountedPoolResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AccountedPool not implemented") } -func (*UnimplementedQueryServer) AccountedPoolAll(ctx context.Context, req *QueryAllAccountedPoolRequest) (*QueryAllAccountedPoolResponse, error) { +func (*UnimplementedQueryServer) AccountedPoolAll(ctx context.Context, req *QueryAccountedPoolAllRequest) (*QueryAccountedPoolAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AccountedPoolAll not implemented") } @@ -2287,7 +2287,7 @@ func _Query_PriceAll_Handler(srv interface{}, ctx context.Context, dec func(inte } func _Query_Pool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetPoolRequest) + in := new(QueryPoolRequest) if err := dec(in); err != nil { return nil, err } @@ -2299,13 +2299,13 @@ func _Query_Pool_Handler(srv interface{}, ctx context.Context, dec func(interfac FullMethod: "/ojo.oracle.v1.Query/Pool", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Pool(ctx, req.(*QueryGetPoolRequest)) + return srv.(QueryServer).Pool(ctx, req.(*QueryPoolRequest)) } return interceptor(ctx, in, info, handler) } func _Query_PoolAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllPoolRequest) + in := new(QueryPoolAllRequest) if err := dec(in); err != nil { return nil, err } @@ -2317,13 +2317,13 @@ func _Query_PoolAll_Handler(srv interface{}, ctx context.Context, dec func(inter FullMethod: "/ojo.oracle.v1.Query/PoolAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PoolAll(ctx, req.(*QueryAllPoolRequest)) + return srv.(QueryServer).PoolAll(ctx, req.(*QueryPoolAllRequest)) } return interceptor(ctx, in, info, handler) } func _Query_AccountedPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetAccountedPoolRequest) + in := new(QueryAccountedPoolRequest) if err := dec(in); err != nil { return nil, err } @@ -2335,13 +2335,13 @@ func _Query_AccountedPool_Handler(srv interface{}, ctx context.Context, dec func FullMethod: "/ojo.oracle.v1.Query/AccountedPool", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AccountedPool(ctx, req.(*QueryGetAccountedPoolRequest)) + return srv.(QueryServer).AccountedPool(ctx, req.(*QueryAccountedPoolRequest)) } return interceptor(ctx, in, info, handler) } func _Query_AccountedPoolAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllAccountedPoolRequest) + in := new(QueryAccountedPoolAllRequest) if err := dec(in); err != nil { return nil, err } @@ -2353,7 +2353,7 @@ func _Query_AccountedPoolAll_Handler(srv interface{}, ctx context.Context, dec f FullMethod: "/ojo.oracle.v1.Query/AccountedPoolAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AccountedPoolAll(ctx, req.(*QueryAllAccountedPoolRequest)) + return srv.(QueryServer).AccountedPoolAll(ctx, req.(*QueryAccountedPoolAllRequest)) } return interceptor(ctx, in, info, handler) } @@ -3366,7 +3366,7 @@ func (m *QueryPriceAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryGetPoolRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryPoolRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3376,12 +3376,12 @@ func (m *QueryGetPoolRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetPoolRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPoolRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3394,7 +3394,7 @@ func (m *QueryGetPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryGetPoolResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryPoolResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3404,12 +3404,12 @@ func (m *QueryGetPoolResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetPoolResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPoolResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3427,7 +3427,7 @@ func (m *QueryGetPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryAllPoolRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryPoolAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3437,12 +3437,12 @@ func (m *QueryAllPoolRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllPoolRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPoolAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPoolAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3450,7 +3450,7 @@ func (m *QueryAllPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryAllPoolResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryPoolAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3460,12 +3460,12 @@ func (m *QueryAllPoolResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllPoolResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPoolAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPoolAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3487,7 +3487,7 @@ func (m *QueryAllPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryGetAccountedPoolRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAccountedPoolRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3497,12 +3497,12 @@ func (m *QueryGetAccountedPoolRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetAccountedPoolRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAccountedPoolRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetAccountedPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAccountedPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3515,7 +3515,7 @@ func (m *QueryGetAccountedPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *QueryGetAccountedPoolResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAccountedPoolResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3525,12 +3525,12 @@ func (m *QueryGetAccountedPoolResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetAccountedPoolResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAccountedPoolResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetAccountedPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAccountedPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3548,7 +3548,7 @@ func (m *QueryGetAccountedPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *QueryAllAccountedPoolRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAccountedPoolAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3558,12 +3558,12 @@ func (m *QueryAllAccountedPoolRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllAccountedPoolRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAccountedPoolAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllAccountedPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAccountedPoolAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3571,7 +3571,7 @@ func (m *QueryAllAccountedPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *QueryAllAccountedPoolResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAccountedPoolAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3581,12 +3581,12 @@ func (m *QueryAllAccountedPoolResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllAccountedPoolResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAccountedPoolAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllAccountedPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAccountedPoolAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3993,7 +3993,7 @@ func (m *QueryPriceAllResponse) Size() (n int) { return n } -func (m *QueryGetPoolRequest) Size() (n int) { +func (m *QueryPoolRequest) Size() (n int) { if m == nil { return 0 } @@ -4005,7 +4005,7 @@ func (m *QueryGetPoolRequest) Size() (n int) { return n } -func (m *QueryGetPoolResponse) Size() (n int) { +func (m *QueryPoolResponse) Size() (n int) { if m == nil { return 0 } @@ -4016,7 +4016,7 @@ func (m *QueryGetPoolResponse) Size() (n int) { return n } -func (m *QueryAllPoolRequest) Size() (n int) { +func (m *QueryPoolAllRequest) Size() (n int) { if m == nil { return 0 } @@ -4025,7 +4025,7 @@ func (m *QueryAllPoolRequest) Size() (n int) { return n } -func (m *QueryAllPoolResponse) Size() (n int) { +func (m *QueryPoolAllResponse) Size() (n int) { if m == nil { return 0 } @@ -4040,7 +4040,7 @@ func (m *QueryAllPoolResponse) Size() (n int) { return n } -func (m *QueryGetAccountedPoolRequest) Size() (n int) { +func (m *QueryAccountedPoolRequest) Size() (n int) { if m == nil { return 0 } @@ -4052,7 +4052,7 @@ func (m *QueryGetAccountedPoolRequest) Size() (n int) { return n } -func (m *QueryGetAccountedPoolResponse) Size() (n int) { +func (m *QueryAccountedPoolResponse) Size() (n int) { if m == nil { return 0 } @@ -4063,7 +4063,7 @@ func (m *QueryGetAccountedPoolResponse) Size() (n int) { return n } -func (m *QueryAllAccountedPoolRequest) Size() (n int) { +func (m *QueryAccountedPoolAllRequest) Size() (n int) { if m == nil { return 0 } @@ -4072,7 +4072,7 @@ func (m *QueryAllAccountedPoolRequest) Size() (n int) { return n } -func (m *QueryAllAccountedPoolResponse) Size() (n int) { +func (m *QueryAccountedPoolAllResponse) Size() (n int) { if m == nil { return 0 } @@ -6390,7 +6390,7 @@ func (m *QueryPriceAllResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetPoolRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPoolRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6413,10 +6413,10 @@ func (m *QueryGetPoolRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetPoolRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPoolRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetPoolRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPoolRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6459,7 +6459,7 @@ func (m *QueryGetPoolRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetPoolResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPoolResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6482,10 +6482,10 @@ func (m *QueryGetPoolResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetPoolResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPoolResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetPoolResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPoolResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6542,7 +6542,7 @@ func (m *QueryGetPoolResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllPoolRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPoolAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6565,10 +6565,10 @@ func (m *QueryAllPoolRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllPoolRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPoolAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllPoolRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPoolAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -6592,7 +6592,7 @@ func (m *QueryAllPoolRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllPoolResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPoolAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6615,10 +6615,10 @@ func (m *QueryAllPoolResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllPoolResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPoolAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllPoolResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPoolAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6676,7 +6676,7 @@ func (m *QueryAllPoolResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetAccountedPoolRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAccountedPoolRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6699,10 +6699,10 @@ func (m *QueryGetAccountedPoolRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetAccountedPoolRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAccountedPoolRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetAccountedPoolRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAccountedPoolRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6745,7 +6745,7 @@ func (m *QueryGetAccountedPoolRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetAccountedPoolResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAccountedPoolResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6768,10 +6768,10 @@ func (m *QueryGetAccountedPoolResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetAccountedPoolResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAccountedPoolResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetAccountedPoolResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAccountedPoolResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6828,7 +6828,7 @@ func (m *QueryGetAccountedPoolResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllAccountedPoolRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAccountedPoolAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6851,10 +6851,10 @@ func (m *QueryAllAccountedPoolRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllAccountedPoolRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAccountedPoolAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllAccountedPoolRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAccountedPoolAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -6878,7 +6878,7 @@ func (m *QueryAllAccountedPoolRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllAccountedPoolResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAccountedPoolAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6901,10 +6901,10 @@ func (m *QueryAllAccountedPoolResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllAccountedPoolResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAccountedPoolAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllAccountedPoolResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAccountedPoolAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/oracle/types/query.pb.gw.go b/x/oracle/types/query.pb.gw.go index 4aaa32b0..bd47e3ab 100644 --- a/x/oracle/types/query.pb.gw.go +++ b/x/oracle/types/query.pb.gw.go @@ -574,7 +574,7 @@ func local_request_Query_PriceAll_0(ctx context.Context, marshaler runtime.Marsh } func request_Query_Pool_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetPoolRequest + var protoReq QueryPoolRequest var metadata runtime.ServerMetadata var ( @@ -601,7 +601,7 @@ func request_Query_Pool_0(ctx context.Context, marshaler runtime.Marshaler, clie } func local_request_Query_Pool_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetPoolRequest + var protoReq QueryPoolRequest var metadata runtime.ServerMetadata var ( @@ -628,7 +628,7 @@ func local_request_Query_Pool_0(ctx context.Context, marshaler runtime.Marshaler } func request_Query_PoolAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllPoolRequest + var protoReq QueryPoolAllRequest var metadata runtime.ServerMetadata msg, err := client.PoolAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -637,7 +637,7 @@ func request_Query_PoolAll_0(ctx context.Context, marshaler runtime.Marshaler, c } func local_request_Query_PoolAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllPoolRequest + var protoReq QueryPoolAllRequest var metadata runtime.ServerMetadata msg, err := server.PoolAll(ctx, &protoReq) @@ -646,7 +646,7 @@ func local_request_Query_PoolAll_0(ctx context.Context, marshaler runtime.Marsha } func request_Query_AccountedPool_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetAccountedPoolRequest + var protoReq QueryAccountedPoolRequest var metadata runtime.ServerMetadata var ( @@ -673,7 +673,7 @@ func request_Query_AccountedPool_0(ctx context.Context, marshaler runtime.Marsha } func local_request_Query_AccountedPool_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetAccountedPoolRequest + var protoReq QueryAccountedPoolRequest var metadata runtime.ServerMetadata var ( @@ -700,7 +700,7 @@ func local_request_Query_AccountedPool_0(ctx context.Context, marshaler runtime. } func request_Query_AccountedPoolAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllAccountedPoolRequest + var protoReq QueryAccountedPoolAllRequest var metadata runtime.ServerMetadata msg, err := client.AccountedPoolAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -709,7 +709,7 @@ func request_Query_AccountedPoolAll_0(ctx context.Context, marshaler runtime.Mar } func local_request_Query_AccountedPoolAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllAccountedPoolRequest + var protoReq QueryAccountedPoolAllRequest var metadata runtime.ServerMetadata msg, err := server.AccountedPoolAll(ctx, &protoReq) From 7742d1666aec26abc070be4ff35099a548b27306 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Fri, 31 Jan 2025 13:28:35 -0500 Subject: [PATCH 43/77] pf commit --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 27de7d58..ddef9d4c 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250131171434-cb01b78d379d + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250131182736-89406396a1d5 github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.0 diff --git a/go.sum b/go.sum index aa16bfbe..0f4fb564 100644 --- a/go.sum +++ b/go.sum @@ -1123,8 +1123,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250131171434-cb01b78d379d h1:iRsCl444wJu82y1pKuLP4tJ3mGL6dd7MgqSevcnl2aQ= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250131171434-cb01b78d379d/go.mod h1:XmWWdgM48Z9IN77S8XRE7y3qQ/zoFhdFFWfI98nwbro= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250131182736-89406396a1d5 h1:72rllpYcfSdMz6LJl1JVtrLmxw+01nvx//+9q0Q2DRk= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250131182736-89406396a1d5/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= From 98f006c1496d88c3a1f5ae70df1e14ee6407429d Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 11 Feb 2025 16:50:20 -0400 Subject: [PATCH 44/77] fix sequence in pf --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index ddef9d4c..99a7a0f2 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250131182736-89406396a1d5 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250211204900-ae5453a8a466 github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.0 diff --git a/go.sum b/go.sum index 0f4fb564..4e088ef7 100644 --- a/go.sum +++ b/go.sum @@ -1123,8 +1123,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250131182736-89406396a1d5 h1:72rllpYcfSdMz6LJl1JVtrLmxw+01nvx//+9q0Q2DRk= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250131182736-89406396a1d5/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250211204900-ae5453a8a466 h1:1vqkNzbqQvFuK6Q2NIei2NkRsSLwPzFgl8JYL3LJIdM= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250211204900-ae5453a8a466/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= From bcaf4f3af50c2e45a7d823dbb76414226dc6985a Mon Sep 17 00:00:00 2001 From: rbajollari Date: Fri, 14 Feb 2025 09:06:47 -0400 Subject: [PATCH 45/77] oracle module store key name --- x/oracle/types/keys.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/oracle/types/keys.go b/x/oracle/types/keys.go index f521b131..b7d55b71 100644 --- a/x/oracle/types/keys.go +++ b/x/oracle/types/keys.go @@ -11,7 +11,7 @@ import ( const ( // ModuleName is the name of the oracle module - ModuleName = "oracle" + ModuleName = "ojooracle" // StoreKey is the string store representation StoreKey = ModuleName From 27e9c4cf9d9e928f2ad966a1dfba952e0e4cf30e Mon Sep 17 00:00:00 2001 From: rbajollari Date: Fri, 14 Feb 2025 11:08:31 -0400 Subject: [PATCH 46/77] revert store key name --- x/oracle/types/keys.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/oracle/types/keys.go b/x/oracle/types/keys.go index b7d55b71..f521b131 100644 --- a/x/oracle/types/keys.go +++ b/x/oracle/types/keys.go @@ -11,7 +11,7 @@ import ( const ( // ModuleName is the name of the oracle module - ModuleName = "ojooracle" + ModuleName = "oracle" // StoreKey is the string store representation StoreKey = ModuleName From 80d44602d21bb6750c8ad3cf015a0b6c28ec3349 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 19 Feb 2025 15:08:48 -0800 Subject: [PATCH 47/77] add asset info queries, fix param update, and upgrade sdk and comet --- app/upgrades.go | 2 +- go.mod | 66 +- go.sum | 142 ++-- proto/ojo/oracle/v1/query.proto | 28 + x/oracle/client/cli/query.go | 55 ++ x/oracle/keeper/grpc_query.go | 32 + x/oracle/keeper/param_update_plan.go | 12 + x/oracle/types/query.pb.go | 934 +++++++++++++++++++++++---- x/oracle/types/query.pb.gw.go | 166 +++++ 9 files changed, 1219 insertions(+), 218 deletions(-) diff --git a/app/upgrades.go b/app/upgrades.go index a6bf818a..9c07cf12 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -69,7 +69,7 @@ func (app App) RegisterUpgradeHandlers() { // ) // } -//nolint: all +// nolint: all func (app *App) registerUpgrade0_2_0(upgradeInfo upgradetypes.Plan) { const planName = "v0.2.0" diff --git a/go.mod b/go.mod index 99a7a0f2..2fcd9746 100644 --- a/go.mod +++ b/go.mod @@ -14,14 +14,14 @@ require ( cosmossdk.io/x/circuit v0.1.1 cosmossdk.io/x/evidence v0.1.1 cosmossdk.io/x/feegrant v0.1.1 - cosmossdk.io/x/tx v0.13.5 + cosmossdk.io/x/tx v0.13.7 cosmossdk.io/x/upgrade v0.1.4 github.com/armon/go-metrics v0.4.1 github.com/bufbuild/buf v1.31.0 - github.com/cometbft/cometbft v0.38.12 - github.com/cosmos/cosmos-db v1.0.2 + github.com/cometbft/cometbft v0.38.17 + github.com/cosmos/cosmos-db v1.1.0 github.com/cosmos/cosmos-proto v1.0.0-beta.5 - github.com/cosmos/cosmos-sdk v0.50.9 + github.com/cosmos/cosmos-sdk v0.50.11 github.com/cosmos/go-bip39 v1.0.0 github.com/cosmos/gogoproto v1.7.0 github.com/cosmos/ibc-go/modules/capability v1.0.1 @@ -41,13 +41,13 @@ require ( github.com/spf13/cast v1.7.0 github.com/spf13/cobra v1.8.1 github.com/spf13/viper v1.19.0 - github.com/stretchr/testify v1.9.0 - golang.org/x/sync v0.8.0 + github.com/stretchr/testify v1.10.0 + golang.org/x/sync v0.10.0 golang.org/x/tools v0.24.0 - google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 - google.golang.org/grpc v1.67.1 + google.golang.org/genproto/googleapis/api v0.0.0-20241202173237-19429a94021a + google.golang.org/grpc v1.70.0 google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0 - google.golang.org/protobuf v1.34.2 + google.golang.org/protobuf v1.36.4 gopkg.in/yaml.v3 v3.0.1 gotest.tools/v3 v3.5.1 mvdan.cc/gofumpt v0.7.0 @@ -60,13 +60,13 @@ require ( cloud.google.com/go v0.115.0 // indirect cloud.google.com/go/auth v0.8.1 // indirect cloud.google.com/go/auth/oauth2adapt v0.2.3 // indirect - cloud.google.com/go/compute/metadata v0.5.0 // indirect + cloud.google.com/go/compute/metadata v0.5.2 // indirect cloud.google.com/go/iam v1.1.12 // indirect cloud.google.com/go/storage v1.41.0 // indirect connectrpc.com/connect v1.16.1 // indirect connectrpc.com/otelconnect v0.7.0 // indirect cosmossdk.io/collections v0.4.0 // indirect - cosmossdk.io/depinject v1.0.0 // indirect + cosmossdk.io/depinject v1.1.0 // indirect dario.cat/mergo v1.0.0 // indirect filippo.io/edwards25519 v1.1.0 // indirect github.com/4meepo/tagalign v1.3.4 // indirect @@ -83,7 +83,7 @@ require ( github.com/DataDog/zstd v1.5.5 // indirect github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 // indirect github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.0 // indirect - github.com/Masterminds/semver/v3 v3.3.0 // indirect + github.com/Masterminds/semver/v3 v3.3.1 // indirect github.com/Microsoft/go-winio v0.6.2 // indirect github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 // indirect github.com/OpenPeeDeeP/depguard/v2 v2.2.0 // indirect @@ -123,15 +123,15 @@ require ( github.com/cockroachdb/errors v1.11.3 // indirect github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce // indirect github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect - github.com/cockroachdb/pebble v1.1.1 // indirect + github.com/cockroachdb/pebble v1.1.2 // indirect github.com/cockroachdb/redact v1.1.5 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect - github.com/cometbft/cometbft-db v0.12.0 // indirect + github.com/cometbft/cometbft-db v0.14.1 // indirect github.com/containerd/continuity v0.4.3 // indirect github.com/containerd/stargz-snapshotter/estargz v0.15.1 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect - github.com/cosmos/iavl v1.2.0 // indirect + github.com/cosmos/iavl v1.2.2 // indirect github.com/cosmos/ics23/go v0.11.0 // indirect github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect @@ -141,7 +141,7 @@ require ( github.com/daixiang0/gci v0.13.4 // indirect github.com/danieljoos/wincred v1.2.1 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect - github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect github.com/denis-tingaikin/go-header v0.5.0 // indirect github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect github.com/dgraph-io/badger/v4 v4.2.0 // indirect @@ -192,7 +192,7 @@ require ( github.com/gofrs/flock v0.12.1 // indirect github.com/gofrs/uuid/v5 v5.1.0 // indirect github.com/gogo/googleapis v1.4.1 // indirect - github.com/golang/glog v1.2.2 // indirect + github.com/golang/glog v1.2.3 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/mock v1.6.0 // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect @@ -203,7 +203,7 @@ require ( github.com/golangci/plugin-module-register v0.1.1 // indirect github.com/golangci/revgrep v0.5.3 // indirect github.com/golangci/unconvert v0.0.0-20240309020433-c5143eacb3ed // indirect - github.com/google/btree v1.1.2 // indirect + github.com/google/btree v1.1.3 // indirect github.com/google/cel-go v0.20.1 // indirect github.com/google/flatbuffers v2.0.8+incompatible // indirect github.com/google/go-cmp v0.6.0 // indirect @@ -280,7 +280,7 @@ require ( github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-runewidth v0.0.13 // indirect github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517 // indirect - github.com/minio/highwayhash v1.0.2 // indirect + github.com/minio/highwayhash v1.0.3 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/moby/docker-image-spec v1.3.1 // indirect @@ -301,7 +301,7 @@ require ( github.com/opencontainers/image-spec v1.1.0 // indirect github.com/opencontainers/runc v1.1.14 // indirect github.com/pelletier/go-toml/v2 v2.2.2 // indirect - github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect + github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pkg/profile v1.7.0 // indirect @@ -309,7 +309,7 @@ require ( github.com/polyfloyd/go-errorlint v1.6.0 // indirect github.com/prometheus/client_golang v1.20.5 // indirect github.com/prometheus/client_model v0.6.1 // indirect - github.com/prometheus/common v0.55.0 // indirect + github.com/prometheus/common v0.62.0 // indirect github.com/prometheus/procfs v0.15.1 // indirect github.com/quasilyte/go-ruleguard v0.4.2 // indirect github.com/quasilyte/go-ruleguard/dsl v0.3.22 // indirect @@ -328,7 +328,7 @@ require ( github.com/sagikazarmark/slog-shim v0.1.0 // indirect github.com/sanposhiho/wastedassign/v2 v2.0.7 // indirect github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect - github.com/sasha-s/go-deadlock v0.3.1 // indirect + github.com/sasha-s/go-deadlock v0.3.5 // indirect github.com/sashamelentyev/interfacebloat v1.1.0 // indirect github.com/sashamelentyev/usestdlibvars v1.27.0 // indirect github.com/securego/gosec/v2 v2.20.1-0.20240822074752-ab3f6c1c83a0 // indirect @@ -376,28 +376,28 @@ require ( go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.51.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.51.0 // indirect - go.opentelemetry.io/otel v1.26.0 // indirect + go.opentelemetry.io/otel v1.32.0 // indirect go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.26.0 // indirect - go.opentelemetry.io/otel/metric v1.26.0 // indirect - go.opentelemetry.io/otel/sdk v1.26.0 // indirect - go.opentelemetry.io/otel/trace v1.26.0 // indirect + go.opentelemetry.io/otel/metric v1.32.0 // indirect + go.opentelemetry.io/otel/sdk v1.32.0 // indirect + go.opentelemetry.io/otel/trace v1.32.0 // indirect go.uber.org/atomic v1.11.0 // indirect go.uber.org/automaxprocs v1.5.3 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.27.0 // indirect - golang.org/x/crypto v0.26.0 // indirect + golang.org/x/crypto v0.32.0 // indirect golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect golang.org/x/exp/typeparams v0.0.0-20240314144324-c7f7c6466f7f // indirect golang.org/x/mod v0.21.0 // indirect - golang.org/x/net v0.28.0 // indirect - golang.org/x/oauth2 v0.22.0 // indirect - golang.org/x/sys v0.24.0 // indirect - golang.org/x/term v0.23.0 // indirect - golang.org/x/text v0.17.0 // indirect + golang.org/x/net v0.34.0 // indirect + golang.org/x/oauth2 v0.24.0 // indirect + golang.org/x/sys v0.29.0 // indirect + golang.org/x/term v0.28.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/time v0.6.0 // indirect google.golang.org/api v0.192.0 // indirect google.golang.org/genproto v0.0.0-20240730163845-b1a4ccb954bf // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20241202173237-19429a94021a // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect honnef.co/go/tools v0.5.1 // indirect diff --git a/go.sum b/go.sum index 4e088ef7..d9ecc149 100644 --- a/go.sum +++ b/go.sum @@ -78,8 +78,8 @@ cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU= -cloud.google.com/go/compute/metadata v0.5.0 h1:Zr0eK8JbFv6+Wi4ilXAR8FJ3wyNdpxHKJNPos6LTZOY= -cloud.google.com/go/compute/metadata v0.5.0/go.mod h1:aHnloV2TPI38yx4s9+wAZhHykWvVCfu7hQbF+9CWoiY= +cloud.google.com/go/compute/metadata v0.5.2 h1:UxK4uu/Tn+I3p2dYWTfiX4wva7aYlKixAHn3fyqngqo= +cloud.google.com/go/compute/metadata v0.5.2/go.mod h1:C66sj2AluDcIqakBq/M8lw8/ybHgOZqin2obFxa/E5k= cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= cloud.google.com/go/containeranalysis v0.6.0/go.mod h1:HEJoiEIu+lEXM+k7+qLCci0h33lX3ZqoYFdmPcoO7s4= cloud.google.com/go/datacatalog v1.3.0/go.mod h1:g9svFY6tuR+j+hrTw3J2dNcmI0dzmSiyOzm8kpLq0a0= @@ -204,8 +204,8 @@ cosmossdk.io/collections v0.4.0 h1:PFmwj2W8szgpD5nOd8GWH6AbYNi1f2J6akWXJ7P5t9s= cosmossdk.io/collections v0.4.0/go.mod h1:oa5lUING2dP+gdDquow+QjlF45eL1t4TJDypgGd+tv0= cosmossdk.io/core v0.11.1 h1:h9WfBey7NAiFfIcUhDVNS503I2P2HdZLebJlUIs8LPA= cosmossdk.io/core v0.11.1/go.mod h1:OJzxcdC+RPrgGF8NJZR2uoQr56tc7gfBKhiKeDO7hH0= -cosmossdk.io/depinject v1.0.0 h1:dQaTu6+O6askNXO06+jyeUAnF2/ssKwrrszP9t5q050= -cosmossdk.io/depinject v1.0.0/go.mod h1:zxK/h3HgHoA/eJVtiSsoaRaRA2D5U4cJ5thIG4ssbB8= +cosmossdk.io/depinject v1.1.0 h1:wLan7LG35VM7Yo6ov0jId3RHWCGRhe8E8bsuARorl5E= +cosmossdk.io/depinject v1.1.0/go.mod h1:kkI5H9jCGHeKeYWXTqYdruogYrEeWvBQCw1Pj4/eCFI= cosmossdk.io/errors v1.0.1 h1:bzu+Kcr0kS/1DuPBtUFdWjzLqyUuCiyHjyJB6srBV/0= cosmossdk.io/errors v1.0.1/go.mod h1:MeelVSZThMi4bEakzhhhE/CKqVv3nOJDA25bIqRDu/U= cosmossdk.io/log v1.4.1 h1:wKdjfDRbDyZRuWa8M+9nuvpVYxrEOwbD/CA8hvhU8QM= @@ -222,8 +222,8 @@ cosmossdk.io/x/evidence v0.1.1 h1:Ks+BLTa3uftFpElLTDp9L76t2b58htjVbSZ86aoK/E4= cosmossdk.io/x/evidence v0.1.1/go.mod h1:OoDsWlbtuyqS70LY51aX8FBTvguQqvFrt78qL7UzeNc= cosmossdk.io/x/feegrant v0.1.1 h1:EKFWOeo/pup0yF0svDisWWKAA9Zags6Zd0P3nRvVvw8= cosmossdk.io/x/feegrant v0.1.1/go.mod h1:2GjVVxX6G2fta8LWj7pC/ytHjryA6MHAJroBWHFNiEQ= -cosmossdk.io/x/tx v0.13.5 h1:FdnU+MdmFWn1pTsbfU0OCf2u6mJ8cqc1H4OMG418MLw= -cosmossdk.io/x/tx v0.13.5/go.mod h1:V6DImnwJMTq5qFjeGWpXNiT/fjgE4HtmclRmTqRVM3w= +cosmossdk.io/x/tx v0.13.7 h1:8WSk6B/OHJLYjiZeMKhq7DK7lHDMyK0UfDbBMxVmeOI= +cosmossdk.io/x/tx v0.13.7/go.mod h1:V6DImnwJMTq5qFjeGWpXNiT/fjgE4HtmclRmTqRVM3w= cosmossdk.io/x/upgrade v0.1.4 h1:/BWJim24QHoXde8Bc64/2BSEB6W4eTydq0X/2f8+g38= cosmossdk.io/x/upgrade v0.1.4/go.mod h1:9v0Aj+fs97O+Ztw+tG3/tp5JSlrmT7IcFhAebQHmOPo= dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= @@ -262,8 +262,8 @@ github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24/go.mod h1:4UJr5H github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.0 h1:/fTUt5vmbkAcMBt4YQiuC23cV0kEsN1MVMNqeOW43cU= github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.0/go.mod h1:ONJg5sxcbsdQQ4pOW8TGdTidT2TMAUy/2Xhr8mrYaao= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= -github.com/Masterminds/semver/v3 v3.3.0 h1:B8LGeaivUe71a5qox1ICM/JLl0NqZSW5CHyL+hmvYS0= -github.com/Masterminds/semver/v3 v3.3.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= +github.com/Masterminds/semver/v3 v3.3.1 h1:QtNSWtVZ3nBfk8mAOu/B6v7FMJ+NHTIgUPi7rj+4nv4= +github.com/Masterminds/semver/v3 v3.3.1/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= @@ -275,8 +275,8 @@ github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWX github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= -github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= -github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= +github.com/adlio/schema v1.3.6 h1:k1/zc2jNfeiZBA5aFTRy37jlBIuCkXCm0XmvpzCKI9I= +github.com/adlio/schema v1.3.6/go.mod h1:qkxwLgPBd1FgLRHYVCmQT/rrBr3JH38J9LjmVzWNudg= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= github.com/alecthomas/assert/v2 v2.2.2 h1:Z/iVC0xZfWTaFNE6bA3z07T86hd45Xe2eLt6WVy2bbk= github.com/alecthomas/assert/v2 v2.2.2/go.mod h1:pXcQ2Asjp247dahGEmsZ6ru0UVwnkhktn7S0bBDLxvQ= @@ -414,17 +414,17 @@ github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce h1:giXvy4KSc/6g/e github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce/go.mod h1:9/y3cnZ5GKakj/H4y9r9GTjCvAFta7KLgSHPJJYc52M= github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= -github.com/cockroachdb/pebble v1.1.1 h1:XnKU22oiCLy2Xn8vp1re67cXg4SAasg/WDt1NtcRFaw= -github.com/cockroachdb/pebble v1.1.1/go.mod h1:4exszw1r40423ZsmkG/09AFEG83I0uDgfujJdbL6kYU= +github.com/cockroachdb/pebble v1.1.2 h1:CUh2IPtR4swHlEj48Rhfzw6l/d0qA31fItcIszQVIsA= +github.com/cockroachdb/pebble v1.1.2/go.mod h1:4exszw1r40423ZsmkG/09AFEG83I0uDgfujJdbL6kYU= github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/cometbft/cometbft v0.38.12 h1:OWsLZN2KcSSFe8bet9xCn07VwhBnavPea3VyPnNq1bg= -github.com/cometbft/cometbft v0.38.12/go.mod h1:GPHp3/pehPqgX1930HmK1BpBLZPxB75v/dZg8Viwy+o= -github.com/cometbft/cometbft-db v0.12.0 h1:v77/z0VyfSU7k682IzZeZPFZrQAKiQwkqGN0QzAjMi0= -github.com/cometbft/cometbft-db v0.12.0/go.mod h1:aX2NbCrjNVd2ZajYxt1BsiFf/Z+TQ2MN0VxdicheYuw= +github.com/cometbft/cometbft v0.38.17 h1:FkrQNbAjiFqXydeAO81FUzriL4Bz0abYxN/eOHrQGOk= +github.com/cometbft/cometbft v0.38.17/go.mod h1:5l0SkgeLRXi6bBfQuevXjKqML1jjfJJlvI1Ulp02/o4= +github.com/cometbft/cometbft-db v0.14.1 h1:SxoamPghqICBAIcGpleHbmoPqy+crij/++eZz3DlerQ= +github.com/cometbft/cometbft-db v0.14.1/go.mod h1:KHP1YghilyGV/xjD5DP3+2hyigWx0WTp9X+0Gnx0RxQ= github.com/containerd/continuity v0.4.3 h1:6HVkalIp+2u1ZLH1J/pYX2oBVXlJZvh1X1A7bEZ9Su8= github.com/containerd/continuity v0.4.3/go.mod h1:F6PTNCKepoxEaXLQp3wDAjygEnImnZ/7o4JzpodfroQ= github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I= @@ -437,12 +437,12 @@ github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSV github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= -github.com/cosmos/cosmos-db v1.0.2 h1:hwMjozuY1OlJs/uh6vddqnk9j7VamLv+0DBlbEXbAKs= -github.com/cosmos/cosmos-db v1.0.2/go.mod h1:Z8IXcFJ9PqKK6BIsVOB3QXtkKoqUOp1vRvPT39kOXEA= +github.com/cosmos/cosmos-db v1.1.0 h1:KLHNVQ73h7vawXTpj9UJ7ZR2IXv51tsEHkQJJ9EBDzI= +github.com/cosmos/cosmos-db v1.1.0/go.mod h1:t7c4A6cfGdpUwwVxrQ0gQLeRQqGUBJu0yvE4F/26REg= github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= -github.com/cosmos/cosmos-sdk v0.50.9 h1:gt2usjz0H0qW6KwAxWw7ZJ3XU8uDwmhN+hYG3nTLeSg= -github.com/cosmos/cosmos-sdk v0.50.9/go.mod h1:TMH6wpoYBcg7Cp5BEg8fneLr+8XloNQkf2MRNF9V6JE= +github.com/cosmos/cosmos-sdk v0.50.11 h1:LxR1aAc8kixdrs3itO+3a44sFoc+vjxVAOyPFx22yjk= +github.com/cosmos/cosmos-sdk v0.50.11/go.mod h1:gt14Meok2IDCjbDtjwkbUcgVNEpUBDN/4hg9cCUtLgw= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= @@ -450,8 +450,8 @@ github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU= github.com/cosmos/gogoproto v1.7.0 h1:79USr0oyXAbxg3rspGh/m4SWNyoz/GLaAh0QlCe2fro= github.com/cosmos/gogoproto v1.7.0/go.mod h1:yWChEv5IUEYURQasfyBW5ffkMHR/90hiHgbNgrtp4j0= -github.com/cosmos/iavl v1.2.0 h1:kVxTmjTh4k0Dh1VNL046v6BXqKziqMDzxo93oh3kOfM= -github.com/cosmos/iavl v1.2.0/go.mod h1:HidWWLVAtODJqFD6Hbne2Y0q3SdxByJepHUOeoH4LiI= +github.com/cosmos/iavl v1.2.2 h1:qHhKW3I70w+04g5KdsdVSHRbFLgt3yY3qTMd4Xa4rC8= +github.com/cosmos/iavl v1.2.2/go.mod h1:GiM43q0pB+uG53mLxLDzimxM9l/5N9UuSY3/D0huuVw= github.com/cosmos/ibc-go/modules/capability v1.0.1 h1:ibwhrpJ3SftEEZRxCRkH0fQZ9svjthrX2+oXdZvzgGI= github.com/cosmos/ibc-go/modules/capability v1.0.1/go.mod h1:rquyOV262nGJplkumH+/LeYs04P3eV8oB7ZM4Ygqk4E= github.com/cosmos/ibc-go/v8 v8.5.1 h1:3JleEMKBjRKa3FeTKt4fjg22za/qygLBo7mDkoYTNBs= @@ -485,8 +485,8 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1 github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 h1:rpfIENRNNilwHwZeG5+P150SMrnNEcHYvcCuK6dPZSg= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= github.com/denis-tingaikin/go-header v0.5.0 h1:SRdnP5ZKvcO9KKRP1KJrhFR3RrlGuD+42t4429eC9k8= github.com/denis-tingaikin/go-header v0.5.0/go.mod h1:mMenU5bWrok6Wl2UsZjy+1okegmwQ3UgWl4V1D8gjlY= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= @@ -677,8 +677,8 @@ github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869/go.mod h1:5YRNX2 github.com/gogo/googleapis v1.4.1 h1:1Yx4Myt7BxzvUr5ldGSbwYiZG6t9wGBZ+8/fX3Wvtq0= github.com/gogo/googleapis v1.4.1/go.mod h1:2lpHqI5OcWCtVElxXnPt+s8oJvMpySlOyM6xDCrzib4= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY= -github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.3 h1:oDTdz9f5VGVVNGu/Q7UXKWYsD0873HXLHdJUNBsSEKM= +github.com/golang/glog v1.2.3/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -738,8 +738,8 @@ github.com/golangci/unconvert v0.0.0-20240309020433-c5143eacb3ed h1:IURFTjxeTfNF github.com/golangci/unconvert v0.0.0-20240309020433-c5143eacb3ed/go.mod h1:XLXN8bNw4CGRPaqgl3bv/lhz7bsGPh4/xSaMTbo2vkQ= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= -github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= +github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= +github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= github.com/google/cel-go v0.20.1 h1:nDx9r8S3L4pE61eDdt8igGj8rf5kjYR3ILxWIpWNi84= github.com/google/cel-go v0.20.1/go.mod h1:kWcIzTsPX0zmQ+H3TirHstLLf9ep5QTsZBN9u4dOYLg= github.com/google/flatbuffers v2.0.8+incompatible h1:ivUb1cGomAB101ZM1T0nOiWz9pSrTMoa9+EiY7igmkM= @@ -1064,8 +1064,8 @@ github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517/go.mod h1:KQ7+USdGKfp github.com/mgechev/revive v1.3.9 h1:18Y3R4a2USSBF+QZKFQwVkBROUda7uoBlkEuBD+YD1A= github.com/mgechev/revive v1.3.9/go.mod h1:+uxEIr5UH0TjXWHTno3xh4u7eg6jDpXKzQccA9UGhHU= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= -github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= +github.com/minio/highwayhash v1.0.3 h1:kbnuUMoHYyVl7szWjSxJnxw11k2U709jqFPPmIUyD6Q= +github.com/minio/highwayhash v1.0.3/go.mod h1:GGYsuwP/fPD6Y9hMiXuapVvlIUEhFhMTh0rxU3ik1LQ= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= @@ -1180,9 +1180,8 @@ github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtP github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= -github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= -github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 h1:jik8PHtAIsPlCRJjJzl4udgEf7hawInF9texMeO2jrU= -github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= +github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 h1:Dx7Ovyv/SFnMFw3fD4oEoeorXc6saIiQ23LrGLth0Gw= +github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= @@ -1227,8 +1226,8 @@ github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt2 github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= -github.com/prometheus/common v0.55.0 h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G1dc= -github.com/prometheus/common v0.55.0/go.mod h1:2SECS4xJG1kd8XF9IcM1gMX6510RAEL65zxzNImwdc8= +github.com/prometheus/common v0.62.0 h1:xasJaQlnWAeyHdUBeGjXmutelfJHWMRr+Fg4QszZ2Io= +github.com/prometheus/common v0.62.0/go.mod h1:vyBcEuLSvWos9B1+CyL7JZ2up+uFzXhkqml0W5zIY1I= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= @@ -1284,8 +1283,8 @@ github.com/sanposhiho/wastedassign/v2 v2.0.7 h1:J+6nrY4VW+gC9xFzUc+XjPD3g3wF3je/ github.com/sanposhiho/wastedassign/v2 v2.0.7/go.mod h1:KyZ0MWTwxxBmfwn33zh3k1dmsbF2ud9pAAGfoLfjhtI= github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 h1:lZUw3E0/J3roVtGQ+SCrUrg3ON6NgVqpn3+iol9aGu4= github.com/santhosh-tekuri/jsonschema/v5 v5.3.1/go.mod h1:uToXkOrWAZ6/Oc07xWQrPOhJotwFIyu2bBVN41fcDUY= -github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= -github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= +github.com/sasha-s/go-deadlock v0.3.5 h1:tNCOEEDG6tBqrNDOX35j/7hL5FcFViG6awUGROb2NsU= +github.com/sasha-s/go-deadlock v0.3.5/go.mod h1:bugP6EGbdGYObIlx7pUZtWqlvo8k9H6vCBBsiChJQ5U= github.com/sashamelentyev/interfacebloat v1.1.0 h1:xdRdJp0irL086OyW1H/RTZTr1h/tMEOsumirXcOJqAw= github.com/sashamelentyev/interfacebloat v1.1.0/go.mod h1:+Y9yU5YdTkrNvoX0xHc84dxiN1iBi9+G8zZIhPVoNjQ= github.com/sashamelentyev/usestdlibvars v1.27.0 h1:t/3jZpSXtRPRf2xr0m63i32ZrusyurIGT9E5wAvXQnI= @@ -1358,8 +1357,9 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= @@ -1458,20 +1458,20 @@ go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.5 go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.51.0/go.mod h1:27iA5uvhuRNmalO+iEUdVn5ZMj2qy10Mm+XRIpRmyuU= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.51.0 h1:Xs2Ncz0gNihqu9iosIZ5SkBbWo5T8JhhLJFMQL1qmLI= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.51.0/go.mod h1:vy+2G/6NvVMpwGX/NyLqcC41fxepnuKHk16E6IZUcJc= -go.opentelemetry.io/otel v1.26.0 h1:LQwgL5s/1W7YiiRwxf03QGnWLb2HW4pLiAhaA5cZXBs= -go.opentelemetry.io/otel v1.26.0/go.mod h1:UmLkJHUAidDval2EICqBMbnAd0/m2vmpf/dAM+fvFs4= +go.opentelemetry.io/otel v1.32.0 h1:WnBN+Xjcteh0zdk01SVqV55d/m62NJLJdIyb4y/WO5U= +go.opentelemetry.io/otel v1.32.0/go.mod h1:00DCVSB0RQcnzlwyTfqtxSm+DRr9hpYrHjNGiBHVQIg= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.26.0 h1:1u/AyyOqAWzy+SkPxDpahCNZParHV8Vid1RnI2clyDE= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.26.0/go.mod h1:z46paqbJ9l7c9fIPCXTqTGwhQZ5XoTIsfeFYWboizjs= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.24.0 h1:Xw8U6u2f8DK2XAkGRFV7BBLENgnTGX9i4rQRxJf+/vs= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.24.0/go.mod h1:6KW1Fm6R/s6Z3PGXwSJN2K4eT6wQB3vXX6CVnYX9NmM= -go.opentelemetry.io/otel/metric v1.26.0 h1:7S39CLuY5Jgg9CrnA9HHiEjGMF/X2VHvoXGgSllRz30= -go.opentelemetry.io/otel/metric v1.26.0/go.mod h1:SY+rHOI4cEawI9a7N1A4nIg/nTQXe1ccCNWYOJUrpX4= -go.opentelemetry.io/otel/sdk v1.26.0 h1:Y7bumHf5tAiDlRYFmGqetNcLaVUZmh4iYfmGxtmz7F8= -go.opentelemetry.io/otel/sdk v1.26.0/go.mod h1:0p8MXpqLeJ0pzcszQQN4F0S5FVjBLgypeGSngLsmirs= -go.opentelemetry.io/otel/sdk/metric v1.19.0 h1:EJoTO5qysMsYCa+w4UghwFV/ptQgqSL/8Ni+hx+8i1k= -go.opentelemetry.io/otel/sdk/metric v1.19.0/go.mod h1:XjG0jQyFJrv2PbMvwND7LwCEhsJzCzV5210euduKcKY= -go.opentelemetry.io/otel/trace v1.26.0 h1:1ieeAUb4y0TE26jUFrCIXKpTuVK7uJGN9/Z/2LP5sQA= -go.opentelemetry.io/otel/trace v1.26.0/go.mod h1:4iDxvGDQuUkHve82hJJ8UqrwswHYsZuWCBllGV2U2y0= +go.opentelemetry.io/otel/metric v1.32.0 h1:xV2umtmNcThh2/a/aCP+h64Xx5wsj8qqnkYZktzNa0M= +go.opentelemetry.io/otel/metric v1.32.0/go.mod h1:jH7CIbbK6SH2V2wE16W05BHCtIDzauciCRLoc/SyMv8= +go.opentelemetry.io/otel/sdk v1.32.0 h1:RNxepc9vK59A8XsgZQouW8ue8Gkb4jpWtJm9ge5lEG4= +go.opentelemetry.io/otel/sdk v1.32.0/go.mod h1:LqgegDBjKMmb2GC6/PrTnteJG39I8/vJCAP9LlJXEjU= +go.opentelemetry.io/otel/sdk/metric v1.32.0 h1:rZvFnvmvawYb0alrYkjraqJq0Z4ZUJAiyYCU9snn1CU= +go.opentelemetry.io/otel/sdk/metric v1.32.0/go.mod h1:PWeZlq0zt9YkYAp3gjKZ0eicRYvOh1Gd+X99x6GHpCQ= +go.opentelemetry.io/otel/trace v1.32.0 h1:WIC9mYrXf8TmY/EXuULKc8hR17vE+Hjv2cssQDe03fM= +go.opentelemetry.io/otel/trace v1.32.0/go.mod h1:+i4rkvCraA+tG6AzwloGaCtkx53Fa+L+V8e9a7YvhT8= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.opentelemetry.io/proto/otlp v1.2.0 h1:pVeZGk7nXDC9O2hncA6nHldxEjm6LByfA2aN8IOkz94= go.opentelemetry.io/proto/otlp v1.2.0/go.mod h1:gGpR8txAl5M03pDhMC79G6SdqNV26naRm/KDsgaHD8A= @@ -1508,8 +1508,8 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= -golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= -golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54= +golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc= +golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1623,8 +1623,8 @@ golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE= -golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg= +golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0= +golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1650,8 +1650,8 @@ golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A= -golang.org/x/oauth2 v0.22.0 h1:BzDx2FehcG7jJwgWLELCdmLuxk2i+x9UDpSiss2u0ZA= -golang.org/x/oauth2 v0.22.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/oauth2 v0.24.0 h1:KTBBxWqUa0ykRPLtV69rRto9TLXcqYkeswu48x/gvNE= +golang.org/x/oauth2 v0.24.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1667,8 +1667,8 @@ golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1677,7 +1677,6 @@ golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1772,16 +1771,17 @@ golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= -golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU= +golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU= -golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= +golang.org/x/term v0.28.0 h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg= +golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1794,8 +1794,8 @@ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= -golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -2058,10 +2058,10 @@ google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= google.golang.org/genproto v0.0.0-20240730163845-b1a4ccb954bf h1:OqdXDEakZCVtDiZTjcxfwbHPCT11ycCEsTKesBVKvyY= google.golang.org/genproto v0.0.0-20240730163845-b1a4ccb954bf/go.mod h1:mCr1K1c8kX+1iSBREvU3Juo11CB+QOEWxbRS01wWl5M= -google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 h1:wKguEg1hsxI2/L3hUYrpo1RVi48K+uTyzKqprwLXsb8= -google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142/go.mod h1:d6be+8HhtEtucleCbxpPW9PA9XwISACu8nvpPqF0BVo= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 h1:e7S5W7MGGLaSu8j3YjdezkZ+m1/Nm0uRVRMEMGk26Xs= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= +google.golang.org/genproto/googleapis/api v0.0.0-20241202173237-19429a94021a h1:OAiGFfOiA0v9MRYsSidp3ubZaBnteRUyn3xB2ZQ5G/E= +google.golang.org/genproto/googleapis/api v0.0.0-20241202173237-19429a94021a/go.mod h1:jehYqy3+AhJU9ve55aNOaSml7wUXjF9x6z2LcCfpAhY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241202173237-19429a94021a h1:hgh8P4EuoxpsuKMXX/To36nOFD7vixReXgn8lPGnt+o= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241202173237-19429a94021a/go.mod h1:5uTbfoYQed2U9p3KIj2/Zzm02PYhndfdmML0qC3q3FU= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= @@ -2103,8 +2103,8 @@ google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= -google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= -google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= +google.golang.org/grpc v1.70.0 h1:pWFv03aZoHzlRKHWicjsZytKAiYCtNS0dHbXnIdq7jQ= +google.golang.org/grpc v1.70.0/go.mod h1:ofIJqVKDXx/JiXrwr2IG4/zwdH9txy3IlF40RmcJSQw= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0 h1:rNBFJjBCOgVr9pWD7rs/knKL4FRTKgpZmsRfV214zcA= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0/go.mod h1:Dk1tviKTvMCz5tvh7t+fh94dhmQVHuCt2OzJB3CTW9Y= @@ -2124,8 +2124,8 @@ google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +google.golang.org/protobuf v1.36.4 h1:6A3ZDJHn/eNqc1i+IdefRzy/9PokBTPvcqMySR7NNIM= +google.golang.org/protobuf v1.36.4/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/proto/ojo/oracle/v1/query.proto b/proto/ojo/oracle/v1/query.proto index 26972dca..7ed6a86f 100644 --- a/proto/ojo/oracle/v1/query.proto +++ b/proto/ojo/oracle/v1/query.proto @@ -134,6 +134,18 @@ service Query { option (google.api.http).get = "/elys-network/elys/accountedpool/accounted_pool"; } + + // Queries a AssetInfo by denom. + rpc AssetInfo(QueryAssetInfoRequest) returns (QueryAssetInfoResponse) { + option (google.api.http).get = + "/elys-network/elys/oracle/asset_info/{denom}"; + } + + // Queries a list of AssetInfo items. + rpc AssetInfoAll(QueryAssetInfoAllRequest) + returns (QueryAssetInfoAllResponse) { + option (google.api.http).get = "/elys-network/elys/oracle/asset_info"; + } } // QueryExchangeRates is the request type for the Query/ExchangeRate RPC @@ -380,3 +392,19 @@ message QueryAccountedPoolAllRequest {} message QueryAccountedPoolAllResponse { repeated AccountedPool accounted_pool = 1 [ (gogoproto.nullable) = false ]; } + +// QueryAssetInfoRequest is the request type for the Query/AssetInfoRequest RPC method. +message QueryAssetInfoRequest { string denom = 1; } + +// QueryAssetInfoResponse is the response type for the Query/AssetInfoResponse RPC method. +message QueryAssetInfoResponse { + AssetInfo asset_info = 1 [ (gogoproto.nullable) = false ]; +} + +// QueryAssetInfoAllRequest is the request type for the Query/AssetInfoAllRequest RPC method. +message QueryAssetInfoAllRequest {} + +// QueryAssetInfoAllResponse is the response type for the Query/AssetInfoAllResponse RPC method. +message QueryAssetInfoAllResponse { + repeated AssetInfo asset_info = 1 [ (gogoproto.nullable) = false ]; +} diff --git a/x/oracle/client/cli/query.go b/x/oracle/client/cli/query.go index c2a8600a..e7e0bb1b 100644 --- a/x/oracle/client/cli/query.go +++ b/x/oracle/client/cli/query.go @@ -40,6 +40,8 @@ func GetQueryCmd() *cobra.Command { CmdShowPool(), CmdListAccountedPool(), CmdShowAccountedPool(), + CmdListAssetInfo(), + CmdShowAssetInfo(), ) return cmd @@ -464,3 +466,56 @@ func CmdShowAccountedPool() *cobra.Command { return cmd } + +func CmdListAssetInfo() *cobra.Command { + cmd := &cobra.Command{ + Use: "list-asset-info", + Short: "list all assetInfo", + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx := client.GetClientContextFromCmd(cmd) + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryAssetInfoAllRequest{} + + res, err := queryClient.AssetInfoAll(cmd.Context(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddPaginationFlagsToCmd(cmd, cmd.Use) + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} + +func CmdShowAssetInfo() *cobra.Command { + cmd := &cobra.Command{ + Use: "show-asset-info [index]", + Short: "shows a assetInfo", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) (err error) { + clientCtx := client.GetClientContextFromCmd(cmd) + + queryClient := types.NewQueryClient(clientCtx) + params := &types.QueryAssetInfoRequest{ + Denom: args[0], + } + + res, err := queryClient.AssetInfo(cmd.Context(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/oracle/keeper/grpc_query.go b/x/oracle/keeper/grpc_query.go index d550ceb4..e1c72089 100644 --- a/x/oracle/keeper/grpc_query.go +++ b/x/oracle/keeper/grpc_query.go @@ -436,3 +436,35 @@ func (q querier) AccountedPool( return &types.QueryAccountedPoolResponse{AccountedPool: val}, nil } + +func (q querier) AssetInfoAll( + goCtx context.Context, + req *types.QueryAssetInfoAllRequest, +) (*types.QueryAssetInfoAllResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + assetInfos := q.GetAllAssetInfo(ctx) + + return &types.QueryAssetInfoAllResponse{AssetInfo: assetInfos}, nil +} + +func (q querier) AssetInfo( + goCtx context.Context, + req *types.QueryAssetInfoRequest, +) (*types.QueryAssetInfoResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + ctx := sdk.UnwrapSDKContext(goCtx) + + val, found := q.GetAssetInfo(ctx, req.Denom) + if !found { + return nil, status.Error(codes.NotFound, "not found") + } + + return &types.QueryAssetInfoResponse{AssetInfo: val}, nil +} diff --git a/x/oracle/keeper/param_update_plan.go b/x/oracle/keeper/param_update_plan.go index b5721cc4..dd312186 100644 --- a/x/oracle/keeper/param_update_plan.go +++ b/x/oracle/keeper/param_update_plan.go @@ -126,6 +126,12 @@ func (k Keeper) ValidateParamChanges(ctx sdk.Context, keys []string, changes typ case string(types.KeyCurrencyDeviationThresholds): params.CurrencyDeviationThresholds = changes.CurrencyDeviationThresholds + + case string(types.KeyPriceExpiryTime): + params.PriceExpiryTime = changes.PriceExpiryTime + + case string(types.KeyLifeTimeInBlocks): + params.LifeTimeInBlocks = changes.LifeTimeInBlocks } } @@ -181,6 +187,12 @@ func (k Keeper) ExecuteParamUpdatePlan(ctx sdk.Context, plan types.ParamUpdatePl case string(types.KeyCurrencyDeviationThresholds): k.SetCurrencyDeviationThresholds(ctx, plan.Changes.CurrencyDeviationThresholds) + + case string(types.KeyPriceExpiryTime): + k.SetPriceExpiryTime(ctx, plan.Changes.PriceExpiryTime) + + case string(types.KeyLifeTimeInBlocks): + k.SetLifeTimeInBlocks(ctx, plan.Changes.LifeTimeInBlocks) } } diff --git a/x/oracle/types/query.pb.go b/x/oracle/types/query.pb.go index 713de97f..1f395c28 100644 --- a/x/oracle/types/query.pb.go +++ b/x/oracle/types/query.pb.go @@ -1518,6 +1518,157 @@ func (m *QueryAccountedPoolAllResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryAccountedPoolAllResponse proto.InternalMessageInfo +// QueryAssetInfoRequest is the request type for the Query/AssetInfoRequest RPC method. +type QueryAssetInfoRequest struct { + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` +} + +func (m *QueryAssetInfoRequest) Reset() { *m = QueryAssetInfoRequest{} } +func (m *QueryAssetInfoRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAssetInfoRequest) ProtoMessage() {} +func (*QueryAssetInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{38} +} +func (m *QueryAssetInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAssetInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAssetInfoRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAssetInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAssetInfoRequest.Merge(m, src) +} +func (m *QueryAssetInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAssetInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAssetInfoRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAssetInfoRequest proto.InternalMessageInfo + +// QueryAssetInfoResponse is the response type for the Query/AssetInfoResponse RPC method. +type QueryAssetInfoResponse struct { + AssetInfo AssetInfo `protobuf:"bytes,1,opt,name=asset_info,json=assetInfo,proto3" json:"asset_info"` +} + +func (m *QueryAssetInfoResponse) Reset() { *m = QueryAssetInfoResponse{} } +func (m *QueryAssetInfoResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAssetInfoResponse) ProtoMessage() {} +func (*QueryAssetInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{39} +} +func (m *QueryAssetInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAssetInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAssetInfoResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAssetInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAssetInfoResponse.Merge(m, src) +} +func (m *QueryAssetInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAssetInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAssetInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAssetInfoResponse proto.InternalMessageInfo + +// QueryAssetInfoAllRequest is the request type for the Query/AssetInfoAllRequest RPC method. +type QueryAssetInfoAllRequest struct { +} + +func (m *QueryAssetInfoAllRequest) Reset() { *m = QueryAssetInfoAllRequest{} } +func (m *QueryAssetInfoAllRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAssetInfoAllRequest) ProtoMessage() {} +func (*QueryAssetInfoAllRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{40} +} +func (m *QueryAssetInfoAllRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAssetInfoAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAssetInfoAllRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAssetInfoAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAssetInfoAllRequest.Merge(m, src) +} +func (m *QueryAssetInfoAllRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAssetInfoAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAssetInfoAllRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAssetInfoAllRequest proto.InternalMessageInfo + +// QueryAssetInfoAllResponse is the response type for the Query/AssetInfoAllResponse RPC method. +type QueryAssetInfoAllResponse struct { + AssetInfo []AssetInfo `protobuf:"bytes,1,rep,name=asset_info,json=assetInfo,proto3" json:"asset_info"` +} + +func (m *QueryAssetInfoAllResponse) Reset() { *m = QueryAssetInfoAllResponse{} } +func (m *QueryAssetInfoAllResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAssetInfoAllResponse) ProtoMessage() {} +func (*QueryAssetInfoAllResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{41} +} +func (m *QueryAssetInfoAllResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAssetInfoAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAssetInfoAllResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAssetInfoAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAssetInfoAllResponse.Merge(m, src) +} +func (m *QueryAssetInfoAllResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAssetInfoAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAssetInfoAllResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAssetInfoAllResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*QueryExchangeRates)(nil), "ojo.oracle.v1.QueryExchangeRates") proto.RegisterType((*QueryExchangeRatesResponse)(nil), "ojo.oracle.v1.QueryExchangeRatesResponse") @@ -1557,114 +1708,125 @@ func init() { proto.RegisterType((*QueryAccountedPoolResponse)(nil), "ojo.oracle.v1.QueryAccountedPoolResponse") proto.RegisterType((*QueryAccountedPoolAllRequest)(nil), "ojo.oracle.v1.QueryAccountedPoolAllRequest") proto.RegisterType((*QueryAccountedPoolAllResponse)(nil), "ojo.oracle.v1.QueryAccountedPoolAllResponse") + proto.RegisterType((*QueryAssetInfoRequest)(nil), "ojo.oracle.v1.QueryAssetInfoRequest") + proto.RegisterType((*QueryAssetInfoResponse)(nil), "ojo.oracle.v1.QueryAssetInfoResponse") + proto.RegisterType((*QueryAssetInfoAllRequest)(nil), "ojo.oracle.v1.QueryAssetInfoAllRequest") + proto.RegisterType((*QueryAssetInfoAllResponse)(nil), "ojo.oracle.v1.QueryAssetInfoAllResponse") } func init() { proto.RegisterFile("ojo/oracle/v1/query.proto", fileDescriptor_ac3bb5b34dcda556) } var fileDescriptor_ac3bb5b34dcda556 = []byte{ - // 1624 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x98, 0x4b, 0x6f, 0x14, 0xc7, - 0x16, 0xc7, 0xdd, 0xf8, 0x85, 0xcf, 0x30, 0xc6, 0x2e, 0x6c, 0xb0, 0x1b, 0x33, 0xb6, 0xcb, 0x70, - 0x6d, 0x5f, 0xe3, 0x69, 0x8c, 0xd1, 0x45, 0xdc, 0x7b, 0x13, 0xc5, 0x2f, 0x08, 0x79, 0x48, 0x66, - 0x50, 0x40, 0xca, 0x22, 0x93, 0xf6, 0x74, 0x65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, 0x2d, 0x74, 0x5b, 0x0c, 0x56, - 0x9d, 0xb8, 0x55, 0x06, 0xab, 0x86, 0x25, 0x5c, 0xc1, 0x7b, 0x12, 0xd7, 0x9d, 0x4a, 0x8b, 0xbe, - 0x0f, 0x3e, 0xa6, 0x09, 0xc1, 0x8a, 0x16, 0xda, 0x22, 0x28, 0x5d, 0xbb, 0xdc, 0x59, 0x70, 0x4a, - 0x73, 0x1c, 0x0f, 0x79, 0xf5, 0xd6, 0xcb, 0x3f, 0x72, 0x5d, 0x2f, 0x5f, 0xe7, 0x8c, 0x57, 0xaf, - 0x73, 0xc6, 0xef, 0xaf, 0x73, 0xc6, 0xd3, 0x37, 0xb9, 0xae, 0x57, 0x6f, 0x72, 0x5d, 0xbf, 0xbc, - 0xc9, 0x75, 0x7d, 0x3a, 0xaf, 0xfc, 0xf8, 0x49, 0x77, 0x68, 0x94, 0x37, 0xb8, 0xa9, 0xfb, 0xe1, - 0x79, 0xe4, 0xbf, 0x81, 0x6e, 0xf5, 0xf1, 0x5f, 0x70, 0x97, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, - 0x12, 0xba, 0xa3, 0x83, 0x77, 0x16, 0x00, 0x00, + // 1737 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x98, 0xdf, 0x4f, 0xdc, 0xc6, + 0x16, 0xc7, 0x71, 0xf8, 0x15, 0xce, 0x66, 0x09, 0x4c, 0x20, 0x59, 0x1c, 0xb2, 0x80, 0x81, 0x00, + 0x17, 0x58, 0x87, 0x10, 0xdd, 0x28, 0xf7, 0xde, 0x5c, 0x5d, 0x7e, 0x25, 0x97, 0x7b, 0x5b, 0x89, + 0x6c, 0xd4, 0x44, 0xca, 0x43, 0xb7, 0x66, 0x3d, 0x59, 0x4c, 0x76, 0x3d, 0x1b, 0x8f, 0x59, 0x88, + 0x28, 0x8a, 0x94, 0xa7, 0x3e, 0xb5, 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, 0x93, 0x79, 0x87, 0xd9, + 0x41, 0x90, 0x8d, 0x7d, 0x26, 0xdf, 0xee, 0x61, 0x1f, 0xf9, 0x97, 0xff, 0x0a, 0x00, 0x00, 0xff, + 0xff, 0xc1, 0xff, 0xa9, 0xf5, 0x9a, 0x18, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1722,6 +1884,10 @@ type QueryClient interface { AccountedPool(ctx context.Context, in *QueryAccountedPoolRequest, opts ...grpc.CallOption) (*QueryAccountedPoolResponse, error) // Queries a list of AccountedPool items. AccountedPoolAll(ctx context.Context, in *QueryAccountedPoolAllRequest, opts ...grpc.CallOption) (*QueryAccountedPoolAllResponse, error) + // Queries a AssetInfo by denom. + AssetInfo(ctx context.Context, in *QueryAssetInfoRequest, opts ...grpc.CallOption) (*QueryAssetInfoResponse, error) + // Queries a list of AssetInfo items. + AssetInfoAll(ctx context.Context, in *QueryAssetInfoAllRequest, opts ...grpc.CallOption) (*QueryAssetInfoAllResponse, error) } type queryClient struct { @@ -1903,6 +2069,24 @@ func (c *queryClient) AccountedPoolAll(ctx context.Context, in *QueryAccountedPo return out, nil } +func (c *queryClient) AssetInfo(ctx context.Context, in *QueryAssetInfoRequest, opts ...grpc.CallOption) (*QueryAssetInfoResponse, error) { + out := new(QueryAssetInfoResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/AssetInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) AssetInfoAll(ctx context.Context, in *QueryAssetInfoAllRequest, opts ...grpc.CallOption) (*QueryAssetInfoAllResponse, error) { + out := new(QueryAssetInfoAllResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/AssetInfoAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // ExchangeRates returns exchange rates of all denoms, @@ -1948,6 +2132,10 @@ type QueryServer interface { AccountedPool(context.Context, *QueryAccountedPoolRequest) (*QueryAccountedPoolResponse, error) // Queries a list of AccountedPool items. AccountedPoolAll(context.Context, *QueryAccountedPoolAllRequest) (*QueryAccountedPoolAllResponse, error) + // Queries a AssetInfo by denom. + AssetInfo(context.Context, *QueryAssetInfoRequest) (*QueryAssetInfoResponse, error) + // Queries a list of AssetInfo items. + AssetInfoAll(context.Context, *QueryAssetInfoAllRequest) (*QueryAssetInfoAllResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -2011,6 +2199,12 @@ func (*UnimplementedQueryServer) AccountedPool(ctx context.Context, req *QueryAc func (*UnimplementedQueryServer) AccountedPoolAll(ctx context.Context, req *QueryAccountedPoolAllRequest) (*QueryAccountedPoolAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AccountedPoolAll not implemented") } +func (*UnimplementedQueryServer) AssetInfo(ctx context.Context, req *QueryAssetInfoRequest) (*QueryAssetInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AssetInfo not implemented") +} +func (*UnimplementedQueryServer) AssetInfoAll(ctx context.Context, req *QueryAssetInfoAllRequest) (*QueryAssetInfoAllResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AssetInfoAll not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -2358,6 +2552,42 @@ func _Query_AccountedPoolAll_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } +func _Query_AssetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAssetInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AssetInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Query/AssetInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AssetInfo(ctx, req.(*QueryAssetInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_AssetInfoAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAssetInfoAllRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AssetInfoAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Query/AssetInfoAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AssetInfoAll(ctx, req.(*QueryAssetInfoAllRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "ojo.oracle.v1.Query", HandlerType: (*QueryServer)(nil), @@ -2438,6 +2668,14 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "AccountedPoolAll", Handler: _Query_AccountedPoolAll_Handler, }, + { + MethodName: "AssetInfo", + Handler: _Query_AssetInfo_Handler, + }, + { + MethodName: "AssetInfoAll", + Handler: _Query_AssetInfoAll_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "ojo/oracle/v1/query.proto", @@ -3608,6 +3846,129 @@ func (m *QueryAccountedPoolAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } +func (m *QueryAssetInfoRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAssetInfoRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAssetInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAssetInfoResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAssetInfoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAssetInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.AssetInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryAssetInfoAllRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAssetInfoAllRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAssetInfoAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryAssetInfoAllResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAssetInfoAllResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAssetInfoAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AssetInfo) > 0 { + for iNdEx := len(m.AssetInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AssetInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -4087,17 +4448,65 @@ func (m *QueryAccountedPoolAllResponse) Size() (n int) { return n } -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func (m *QueryAssetInfoRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n } -func (m *QueryExchangeRates) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx + +func (m *QueryAssetInfoResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.AssetInfo.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAssetInfoAllRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryAssetInfoAllResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.AssetInfo) > 0 { + for _, e := range m.AssetInfo { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryExchangeRates) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { @@ -6962,6 +7371,305 @@ func (m *QueryAccountedPoolAllResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryAssetInfoRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAssetInfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAssetInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAssetInfoResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAssetInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAssetInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AssetInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AssetInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAssetInfoAllRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAssetInfoAllRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAssetInfoAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAssetInfoAllResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAssetInfoAllResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAssetInfoAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AssetInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AssetInfo = append(m.AssetInfo, AssetInfo{}) + if err := m.AssetInfo[len(m.AssetInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/oracle/types/query.pb.gw.go b/x/oracle/types/query.pb.gw.go index bd47e3ab..9713cd8b 100644 --- a/x/oracle/types/query.pb.gw.go +++ b/x/oracle/types/query.pb.gw.go @@ -717,6 +717,78 @@ func local_request_Query_AccountedPoolAll_0(ctx context.Context, marshaler runti } +func request_Query_AssetInfo_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAssetInfoRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["denom"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + } + + protoReq.Denom, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + } + + msg, err := client.AssetInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_AssetInfo_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAssetInfoRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["denom"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denom") + } + + protoReq.Denom, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denom", err) + } + + msg, err := server.AssetInfo(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_AssetInfoAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAssetInfoAllRequest + var metadata runtime.ServerMetadata + + msg, err := client.AssetInfoAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_AssetInfoAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAssetInfoAllRequest + var metadata runtime.ServerMetadata + + msg, err := server.AssetInfoAll(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -1160,6 +1232,52 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_AssetInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_AssetInfo_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AssetInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_AssetInfoAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_AssetInfoAll_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AssetInfoAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1581,6 +1699,46 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_AssetInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_AssetInfo_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AssetInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_AssetInfoAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_AssetInfoAll_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AssetInfoAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1622,6 +1780,10 @@ var ( pattern_Query_AccountedPool_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"elys-network", "elys", "accountedpool", "accounted_pool", "pool_id"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_AccountedPoolAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"elys-network", "elys", "accountedpool", "accounted_pool"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_AssetInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"elys-network", "elys", "oracle", "asset_info", "denom"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_AssetInfoAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"elys-network", "elys", "oracle", "asset_info"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -1662,4 +1824,8 @@ var ( forward_Query_AccountedPool_0 = runtime.ForwardResponseMessage forward_Query_AccountedPoolAll_0 = runtime.ForwardResponseMessage + + forward_Query_AssetInfo_0 = runtime.ForwardResponseMessage + + forward_Query_AssetInfoAll_0 = runtime.ForwardResponseMessage ) From 1718ce19a6defb1d8476f871b1f65a2d4472542e Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 19 Feb 2025 15:11:51 -0800 Subject: [PATCH 48/77] lint --- app/upgrades.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/upgrades.go b/app/upgrades.go index 9c07cf12..a6bf818a 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -69,7 +69,7 @@ func (app App) RegisterUpgradeHandlers() { // ) // } -// nolint: all +//nolint: all func (app *App) registerUpgrade0_2_0(upgradeInfo upgradetypes.Plan) { const planName = "v0.2.0" From 10b35762ed3b217fef3b148e3a09a0f3346dbd14 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Thu, 20 Feb 2025 16:36:19 -0800 Subject: [PATCH 49/77] fix ParseExchangeRateDecCoins --- go.mod | 8 ++++---- go.sum | 16 ++++++++-------- x/oracle/types/vote.go | 5 ++++- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/go.mod b/go.mod index 2fcd9746..2a4b80ea 100644 --- a/go.mod +++ b/go.mod @@ -19,9 +19,9 @@ require ( github.com/armon/go-metrics v0.4.1 github.com/bufbuild/buf v1.31.0 github.com/cometbft/cometbft v0.38.17 - github.com/cosmos/cosmos-db v1.1.0 + github.com/cosmos/cosmos-db v1.1.1 github.com/cosmos/cosmos-proto v1.0.0-beta.5 - github.com/cosmos/cosmos-sdk v0.50.11 + github.com/cosmos/cosmos-sdk v0.50.12 github.com/cosmos/go-bip39 v1.0.0 github.com/cosmos/gogoproto v1.7.0 github.com/cosmos/ibc-go/modules/capability v1.0.1 @@ -38,7 +38,7 @@ require ( github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250211204900-ae5453a8a466 github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 - github.com/spf13/cast v1.7.0 + github.com/spf13/cast v1.7.1 github.com/spf13/cobra v1.8.1 github.com/spf13/viper v1.19.0 github.com/stretchr/testify v1.10.0 @@ -133,7 +133,7 @@ require ( github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/iavl v1.2.2 // indirect github.com/cosmos/ics23/go v0.11.0 // indirect - github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect + github.com/cosmos/ledger-cosmos-go v0.14.0 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect github.com/creachadair/atomicfile v0.3.3 // indirect github.com/creachadair/tomledit v0.0.26 // indirect diff --git a/go.sum b/go.sum index d9ecc149..e745afac 100644 --- a/go.sum +++ b/go.sum @@ -437,12 +437,12 @@ github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSV github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= -github.com/cosmos/cosmos-db v1.1.0 h1:KLHNVQ73h7vawXTpj9UJ7ZR2IXv51tsEHkQJJ9EBDzI= -github.com/cosmos/cosmos-db v1.1.0/go.mod h1:t7c4A6cfGdpUwwVxrQ0gQLeRQqGUBJu0yvE4F/26REg= +github.com/cosmos/cosmos-db v1.1.1 h1:FezFSU37AlBC8S98NlSagL76oqBRWq/prTPvFcEJNCM= +github.com/cosmos/cosmos-db v1.1.1/go.mod h1:AghjcIPqdhSLP/2Z0yha5xPH3nLnskz81pBx3tcVSAw= github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= -github.com/cosmos/cosmos-sdk v0.50.11 h1:LxR1aAc8kixdrs3itO+3a44sFoc+vjxVAOyPFx22yjk= -github.com/cosmos/cosmos-sdk v0.50.11/go.mod h1:gt14Meok2IDCjbDtjwkbUcgVNEpUBDN/4hg9cCUtLgw= +github.com/cosmos/cosmos-sdk v0.50.12 h1:WizeD4K74737Gq46/f9fq+WjyZ1cP/1bXwVR3dvyp0g= +github.com/cosmos/cosmos-sdk v0.50.12/go.mod h1:hrWEFMU1eoXqLJeE6VVESpJDQH67FS1nnMrQIjO2daw= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= @@ -458,8 +458,8 @@ github.com/cosmos/ibc-go/v8 v8.5.1 h1:3JleEMKBjRKa3FeTKt4fjg22za/qygLBo7mDkoYTNB github.com/cosmos/ibc-go/v8 v8.5.1/go.mod h1:P5hkAvq0Qbg0h18uLxDVA9q1kOJ0l36htMsskiNwXbo= github.com/cosmos/ics23/go v0.11.0 h1:jk5skjT0TqX5e5QJbEnwXIS2yI2vnmLOgpQPeM5RtnU= github.com/cosmos/ics23/go v0.11.0/go.mod h1:A8OjxPE67hHST4Icw94hOxxFEJMBG031xIGF/JHNIY0= -github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= -github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= +github.com/cosmos/ledger-cosmos-go v0.14.0 h1:WfCHricT3rPbkPSVKRH+L4fQGKYHuGOK9Edpel8TYpE= +github.com/cosmos/ledger-cosmos-go v0.14.0/go.mod h1:E07xCWSBl3mTGofZ2QnL4cIUzMbbGVyik84QYKbX3RA= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= @@ -1320,8 +1320,8 @@ github.com/sourcegraph/go-diff v0.7.0/go.mod h1:iBszgVvyxdc8SFZ7gm69go2KDdt3ag07 github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= -github.com/spf13/cast v1.7.0 h1:ntdiHjuueXFgm5nzDRdOS4yfT43P5Fnud6DH50rz/7w= -github.com/spf13/cast v1.7.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= +github.com/spf13/cast v1.7.1 h1:cuNEagBQEHWN1FnbGEjCXL2szYEXqfJPbP2HNUaca9Y= +github.com/spf13/cast v1.7.1/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= diff --git a/x/oracle/types/vote.go b/x/oracle/types/vote.go index 390392bb..a66abfc8 100644 --- a/x/oracle/types/vote.go +++ b/x/oracle/types/vote.go @@ -69,7 +69,10 @@ func ParseExchangeRateDecCoins(tuplesStr string) (sdk.DecCoins, error) { denom := strings.ToUpper(denomAmountStr[0]) - decCoins[i] = sdk.NewDecCoinFromDec(denom, dec) + decCoins[i] = sdk.DecCoin{ + Denom: denom, + Amount: dec, + } if _, ok := duplicateCheckMap[denom]; ok { return nil, fmt.Errorf("duplicated denom %s", denom) From be1472d7fc1f770c46feee47617885fee43252d0 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Sun, 23 Feb 2025 20:43:58 -0500 Subject: [PATCH 50/77] set usdc denom in price feeder --- go.mod | 2 +- go.sum | 4 ++-- x/oracle/abci/endblocker.go | 9 +++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 2a4b80ea..5a8fb392 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250211204900-ae5453a8a466 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250224013219-a60b9cbee2a6 github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.1 diff --git a/go.sum b/go.sum index e745afac..b37e0f7e 100644 --- a/go.sum +++ b/go.sum @@ -1123,8 +1123,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250211204900-ae5453a8a466 h1:1vqkNzbqQvFuK6Q2NIei2NkRsSLwPzFgl8JYL3LJIdM= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250211204900-ae5453a8a466/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250224013219-a60b9cbee2a6 h1:G4j48WJ5AZqY6aoMHd8O1j5n7TvrgFSOx34pjpFP3Fg= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250224013219-a60b9cbee2a6/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= diff --git a/x/oracle/abci/endblocker.go b/x/oracle/abci/endblocker.go index 89befc9a..938690c9 100644 --- a/x/oracle/abci/endblocker.go +++ b/x/oracle/abci/endblocker.go @@ -67,8 +67,17 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { accountedPoolsMap[accountedPool.PoolId] = accountedPool } + usdcDenom := "uusdc" + assetInfos := k.GetAllAssetInfo(sdkCtx) + for _, assetInfo := range assetInfos { + if assetInfo.Display == "USDC" { + usdcDenom = assetInfo.Denom + } + } + k.PriceFeeder.Oracle.AmmPools = ammPoolsMap k.PriceFeeder.Oracle.AccountedPools = accountedPoolsMap + k.PriceFeeder.Oracle.USDCDenom = usdcDenom // Execute price feeder oracle tick. if err := k.PriceFeeder.Oracle.TickClientless(ctx); err != nil { From b2e167ff7a550dca18213c1cbdc44e1f87069342 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 25 Feb 2025 18:24:49 -0500 Subject: [PATCH 51/77] handle empty depth data in price feeder --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 5a8fb392..147e09b8 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250224013219-a60b9cbee2a6 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250225232252-09e501993662 github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.1 diff --git a/go.sum b/go.sum index b37e0f7e..21e683d7 100644 --- a/go.sum +++ b/go.sum @@ -1123,8 +1123,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250224013219-a60b9cbee2a6 h1:G4j48WJ5AZqY6aoMHd8O1j5n7TvrgFSOx34pjpFP3Fg= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250224013219-a60b9cbee2a6/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250225232252-09e501993662 h1:J09oiGtwNH6LP+yI3KZDtIu6XOAVAz4nTQCz0Fz0Yuc= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250225232252-09e501993662/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= From 244234cd4161b9bebe4661dca48cee6ee4d7a85a Mon Sep 17 00:00:00 2001 From: rbajollari Date: Thu, 27 Feb 2025 13:09:03 -0500 Subject: [PATCH 52/77] fix grpc exchange rate query --- x/oracle/keeper/grpc_query.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/oracle/keeper/grpc_query.go b/x/oracle/keeper/grpc_query.go index e1c72089..de51e953 100644 --- a/x/oracle/keeper/grpc_query.go +++ b/x/oracle/keeper/grpc_query.go @@ -60,10 +60,10 @@ func (q querier) ExchangeRates( return nil, err } - exchangeRates = exchangeRates.Add(sdk.NewDecCoinFromDec(req.Denom, exchangeRate)) + exchangeRates = exchangeRates.Add(sdk.DecCoin{Denom: req.Denom, Amount: exchangeRate}) } else { q.IterateExchangeRates(ctx, func(denom string, rate math.LegacyDec) (stop bool) { - exchangeRates = exchangeRates.Add(sdk.NewDecCoinFromDec(denom, rate)) + exchangeRates = exchangeRates.Add(sdk.DecCoin{Denom: denom, Amount: rate}) return false }) } From 7f09c21b9099db8f0ee39d44ede54e04aa05afb7 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Mon, 3 Mar 2025 18:58:37 -0500 Subject: [PATCH 53/77] fix CalculateExternalLiquidityUseCase panic and add extra err handling --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 147e09b8..c9fe7deb 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250225232252-09e501993662 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250303235415-11db4991f75b github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.1 diff --git a/go.sum b/go.sum index 21e683d7..0491e7f4 100644 --- a/go.sum +++ b/go.sum @@ -1123,8 +1123,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250225232252-09e501993662 h1:J09oiGtwNH6LP+yI3KZDtIu6XOAVAz4nTQCz0Fz0Yuc= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250225232252-09e501993662/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250303235415-11db4991f75b h1:mNnVl0qAxFpz/7od62pcgFtp9AA7LfRhdSO/XM1bD9g= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250303235415-11db4991f75b/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= From 1fe79235aedcf639a4c4d0f8e78bcdec11794e77 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 5 Mar 2025 18:27:34 -0500 Subject: [PATCH 54/77] Use injected provider logger --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index c9fe7deb..b925265c 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250303235415-11db4991f75b + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250305232539-15b86c1b6214 github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.1 diff --git a/go.sum b/go.sum index 0491e7f4..f7f9ba01 100644 --- a/go.sum +++ b/go.sum @@ -1123,8 +1123,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250303235415-11db4991f75b h1:mNnVl0qAxFpz/7od62pcgFtp9AA7LfRhdSO/XM1bD9g= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250303235415-11db4991f75b/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250305232539-15b86c1b6214 h1:oMnpWhLAiwY9J7cPL0dqd/qiHTmEAxTRUGPi75Ng39A= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250305232539-15b86c1b6214/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= From fd0839f3ffdb825e8629ee7b748ceff285f1261f Mon Sep 17 00:00:00 2001 From: rbajollari Date: Mon, 10 Mar 2025 12:36:54 -0400 Subject: [PATCH 55/77] Delay calls for binance snapshot order book by 2.5 seconds to avoid rate limit --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index b925265c..a4960f6f 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250305232539-15b86c1b6214 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250310163502-3ccc15760146 github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.1 diff --git a/go.sum b/go.sum index f7f9ba01..0770df3c 100644 --- a/go.sum +++ b/go.sum @@ -1123,8 +1123,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250305232539-15b86c1b6214 h1:oMnpWhLAiwY9J7cPL0dqd/qiHTmEAxTRUGPi75Ng39A= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250305232539-15b86c1b6214/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250310163502-3ccc15760146 h1:J9SmEeZeWYwdvdssRG/xtsPc9PCZ6wEMtmLxRIl6ae8= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250310163502-3ccc15760146/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= From 342c76a99027d06f4682a4c8412fddd8d3bd20c0 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Mon, 10 Mar 2025 19:22:33 -0400 Subject: [PATCH 56/77] fix CalculateExternalLiquidityUseCase --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index a4960f6f..38dfa115 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250310163502-3ccc15760146 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250310232100-a73ab169dab0 github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.1 diff --git a/go.sum b/go.sum index 0770df3c..35b63e36 100644 --- a/go.sum +++ b/go.sum @@ -1123,8 +1123,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250310163502-3ccc15760146 h1:J9SmEeZeWYwdvdssRG/xtsPc9PCZ6wEMtmLxRIl6ae8= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250310163502-3ccc15760146/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250310232100-a73ab169dab0 h1:sWBHolkN28xac+JdWLg5vizwl84TVcB90GGbX+/3pHs= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250310232100-a73ab169dab0/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= From 1d8e6e9fe1906e1b0ebed743eca62591c923c844 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 12 Mar 2025 22:36:28 -0400 Subject: [PATCH 57/77] tvwapCandlePeriod 30s --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 38dfa115..a235c60c 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250310232100-a73ab169dab0 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250313023428-dfc9af66c245 github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.1 diff --git a/go.sum b/go.sum index 35b63e36..594812f2 100644 --- a/go.sum +++ b/go.sum @@ -1123,8 +1123,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250310232100-a73ab169dab0 h1:sWBHolkN28xac+JdWLg5vizwl84TVcB90GGbX+/3pHs= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250310232100-a73ab169dab0/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250313023428-dfc9af66c245 h1:3s9jHfLHRJObE8d3PxVReQEYCdraGrooIbvaLnvsR5Y= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250313023428-dfc9af66c245/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= From 0587fb3119154905f266f0c45bca227d4573235f Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 18 Mar 2025 10:24:11 -0400 Subject: [PATCH 58/77] sort external liquidity in prepare proposal --- x/oracle/abci/proposal.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/x/oracle/abci/proposal.go b/x/oracle/abci/proposal.go index 9063e9d1..8b223a7a 100644 --- a/x/oracle/abci/proposal.go +++ b/x/oracle/abci/proposal.go @@ -289,6 +289,11 @@ func (h *ProposalHandler) generateExternalLiquidity( externalLiquidityList = append(externalLiquidityList, voteExt.ExternalLiquidity...) } + // sort external liquidity so they are verified in the same order in ProcessProposalHandler + sort.Slice(externalLiquidityList, func(i, j int) bool { + return externalLiquidityList[i].PoolId < externalLiquidityList[j].PoolId + }) + return externalLiquidityList, nil } From db16cc1568d7c05dcd7f396cd06c0b310cdaec6a Mon Sep 17 00:00:00 2001 From: rbajollari Date: Fri, 28 Mar 2025 11:59:14 -0400 Subject: [PATCH 59/77] get rid of price feeder config requirement --- cmd/ojod/cmd/commands.go | 5 ++--- go.mod | 2 +- go.sum | 4 ++-- pricefeeder/config.go | 30 ++---------------------------- pricefeeder/pricefeeder.go | 32 +++++++++++++++++++++++++++----- 5 files changed, 34 insertions(+), 39 deletions(-) diff --git a/cmd/ojod/cmd/commands.go b/cmd/ojod/cmd/commands.go index 3b1794c8..ec5f326f 100644 --- a/cmd/ojod/cmd/commands.go +++ b/cmd/ojod/cmd/commands.go @@ -69,8 +69,8 @@ func initAppConfig() (string, interface{}) { QueryGasLimit: 300000, }, PriceFeeder: pricefeeder.AppConfig{ - ConfigPath: "", - LogLevel: "info", + LogLevel: "info", + Enable: true, }, } @@ -126,7 +126,6 @@ func initRootCmd( ) // add price feeder flags - rootCmd.PersistentFlags().String(pricefeeder.FlagConfigPath, "", "Path to price feeder config file") rootCmd.PersistentFlags().String(pricefeeder.FlagLogLevel, "", "Log level of price feeder process") rootCmd.PersistentFlags().Bool(pricefeeder.FlagEnablePriceFeeder, false, "Enable the price feeder") } diff --git a/go.mod b/go.mod index a235c60c..31c04ab0 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250313023428-dfc9af66c245 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250328154033-0d554482357e github.com/ory/dockertest/v3 v3.10.0 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.1 diff --git a/go.sum b/go.sum index 594812f2..24f3c97b 100644 --- a/go.sum +++ b/go.sum @@ -1123,8 +1123,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250313023428-dfc9af66c245 h1:3s9jHfLHRJObE8d3PxVReQEYCdraGrooIbvaLnvsR5Y= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250313023428-dfc9af66c245/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250328154033-0d554482357e h1:etyJpkUXadncRg4cyZboIS4pbBE6iu3psWx2e7Bt4iI= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250328154033-0d554482357e/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= diff --git a/pricefeeder/config.go b/pricefeeder/config.go index 71007a9d..47f55c65 100644 --- a/pricefeeder/config.go +++ b/pricefeeder/config.go @@ -1,8 +1,6 @@ package pricefeeder import ( - "fmt" - servertypes "github.com/cosmos/cosmos-sdk/server/types" "github.com/spf13/cast" ) @@ -10,9 +8,6 @@ import ( const ( DefaultConfigTemplate = ` [pricefeeder] -# Path to price feeder config file. -config_path = "" - # Log level of price feeder process. log_level = "info" @@ -22,25 +17,14 @@ enable = false ) const ( - FlagConfigPath = "pricefeeder.config_path" FlagLogLevel = "pricefeeder.log_level" FlagEnablePriceFeeder = "pricefeeder.enable" ) // AppConfig defines the app configuration for the price feeder that must be set in the app.toml file. type AppConfig struct { - ConfigPath string `mapstructure:"config_path"` - LogLevel string `mapstructure:"log_level"` - Enable bool `mapstructure:"enable"` -} - -// ValidateBasic performs basic validation of the price feeder app config. -func (c *AppConfig) ValidateBasic() error { - if c.ConfigPath == "" { - return fmt.Errorf("path to price feeder config must be set") - } - - return nil + LogLevel string `mapstructure:"log_level"` + Enable bool `mapstructure:"enable"` } // ReadConfigFromAppOpts reads the config parameters from the AppOptions and returns the config. @@ -50,12 +34,6 @@ func ReadConfigFromAppOpts(opts servertypes.AppOptions) (AppConfig, error) { err error ) - if v := opts.Get(FlagConfigPath); v != nil { - if cfg.ConfigPath, err = cast.ToStringE(v); err != nil { - return cfg, err - } - } - if v := opts.Get(FlagLogLevel); v != nil { if cfg.LogLevel, err = cast.ToStringE(v); err != nil { return cfg, err @@ -68,9 +46,5 @@ func ReadConfigFromAppOpts(opts servertypes.AppOptions) (AppConfig, error) { } } - if err := cfg.ValidateBasic(); err != nil { - return cfg, err - } - return cfg, err } diff --git a/pricefeeder/pricefeeder.go b/pricefeeder/pricefeeder.go index c5738e3e..3703338d 100644 --- a/pricefeeder/pricefeeder.go +++ b/pricefeeder/pricefeeder.go @@ -30,6 +30,33 @@ type PriceFeeder struct { AppConfig AppConfig } +var cfg = config.Config{ + GasAdjustment: 1, + ProviderTimeout: "1000000s", + Server: config.Server{ + ListenAddr: "0.0.0.0:7171", + ReadTimeout: "20s", + VerboseCORS: true, + WriteTimeout: "20s", + }, + RPC: config.RPC{ + GRPCEndpoint: "localhost:9090", + RPCTimeout: "100ms", + TMRPCEndpoint: "http://localhost:26657", + }, + Telemetry: telemetry.Config{ + EnableHostname: true, + EnableHostnameLabel: true, + EnableServiceLabel: true, + Enabled: true, + GlobalLabels: [][]string{ + {"chain_id", "ojo-testnet"}, + }, + ServiceName: "price-feeder", + PrometheusRetentionTime: 100, + }, +} + func (pf *PriceFeeder) Start(oracleParams types.Params) error { logWriter := zerolog.ConsoleWriter{Out: os.Stderr} logLevel, err := zerolog.ParseLevel(pf.AppConfig.LogLevel) @@ -38,11 +65,6 @@ func (pf *PriceFeeder) Start(oracleParams types.Params) error { } logger := zerolog.New(logWriter).Level(logLevel).With().Timestamp().Logger() - cfg, err := config.LoadConfigFromFlags(pf.AppConfig.ConfigPath, "") - if err != nil { - return err - } - // listen for and trap any OS signal to gracefully shutdown and exit ctx, cancel := context.WithCancel(context.TODO()) g, ctx := errgroup.WithContext(ctx) From a5420eabf25ed694fc72428868a6eac7abc128bb Mon Sep 17 00:00:00 2001 From: rbajollari Date: Fri, 28 Mar 2025 13:54:35 -0400 Subject: [PATCH 60/77] Add EventSetFxRateVote event --- proto/ojo/oracle/v1/events.proto | 14 ++ x/oracle/types/events.pb.go | 302 ++++++++++++++++++++++++++++--- 2 files changed, 295 insertions(+), 21 deletions(-) diff --git a/proto/ojo/oracle/v1/events.proto b/proto/ojo/oracle/v1/events.proto index c02a63cb..eb5ea3fa 100644 --- a/proto/ojo/oracle/v1/events.proto +++ b/proto/ojo/oracle/v1/events.proto @@ -27,3 +27,17 @@ message EventSetFxRate { (gogoproto.nullable) = false ]; } + +// EventSetFxRateVote is emitted on exchange rate vote update +message EventSetFxRateVote { + // uToken denom + string denom = 1; + // Exchange rate (based to USD) + string rate = 2 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false + ]; + // Validator address submitting the vote + string validator = 3 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; +} diff --git a/x/oracle/types/events.pb.go b/x/oracle/types/events.pb.go index 310628df..2941b02d 100644 --- a/x/oracle/types/events.pb.go +++ b/x/oracle/types/events.pb.go @@ -107,35 +107,81 @@ func (m *EventSetFxRate) XXX_DiscardUnknown() { var xxx_messageInfo_EventSetFxRate proto.InternalMessageInfo +// EventSetFxRateVote is emitted on exchange rate vote update +type EventSetFxRateVote struct { + // uToken denom + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + // Exchange rate (based to USD) + Rate cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=rate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"rate"` + // Validator address submitting the vote + Validator string `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"` +} + +func (m *EventSetFxRateVote) Reset() { *m = EventSetFxRateVote{} } +func (m *EventSetFxRateVote) String() string { return proto.CompactTextString(m) } +func (*EventSetFxRateVote) ProtoMessage() {} +func (*EventSetFxRateVote) Descriptor() ([]byte, []int) { + return fileDescriptor_6b8914220a86f2fd, []int{2} +} +func (m *EventSetFxRateVote) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventSetFxRateVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventSetFxRateVote.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventSetFxRateVote) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventSetFxRateVote.Merge(m, src) +} +func (m *EventSetFxRateVote) XXX_Size() int { + return m.Size() +} +func (m *EventSetFxRateVote) XXX_DiscardUnknown() { + xxx_messageInfo_EventSetFxRateVote.DiscardUnknown(m) +} + +var xxx_messageInfo_EventSetFxRateVote proto.InternalMessageInfo + func init() { proto.RegisterType((*EventDelegateFeedConsent)(nil), "ojo.oracle.v1.EventDelegateFeedConsent") proto.RegisterType((*EventSetFxRate)(nil), "ojo.oracle.v1.EventSetFxRate") + proto.RegisterType((*EventSetFxRateVote)(nil), "ojo.oracle.v1.EventSetFxRateVote") } func init() { proto.RegisterFile("ojo/oracle/v1/events.proto", fileDescriptor_6b8914220a86f2fd) } var fileDescriptor_6b8914220a86f2fd = []byte{ - // 316 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xbd, 0x4e, 0x3a, 0x41, - 0x14, 0xc5, 0x77, 0xff, 0xf9, 0x6b, 0x74, 0x12, 0x2d, 0x36, 0x14, 0x2b, 0x26, 0x83, 0xa1, 0xd2, - 0x82, 0x9d, 0x10, 0x7d, 0x01, 0x11, 0xb0, 0xb1, 0x5a, 0x3a, 0x1b, 0xb3, 0xec, 0xdc, 0x0c, 0x5f, - 0x3b, 0x97, 0xcc, 0x5c, 0x11, 0x5e, 0xc0, 0xda, 0x87, 0xe1, 0x21, 0x28, 0x09, 0x95, 0xb1, 0x20, - 0x0a, 0x2f, 0x62, 0x76, 0x07, 0xb4, 0xb4, 0xbb, 0x1f, 0xe7, 0xfc, 0xce, 0x64, 0x2e, 0x2b, 0xe3, - 0x00, 0x05, 0x9a, 0x24, 0x1d, 0x81, 0x98, 0xd4, 0x05, 0x4c, 0x40, 0x93, 0x8d, 0xc6, 0x06, 0x09, - 0x83, 0x13, 0x1c, 0x60, 0xe4, 0x76, 0xd1, 0xa4, 0x5e, 0x3e, 0x4b, 0xd1, 0x66, 0x68, 0x9f, 0x8a, - 0xa5, 0x70, 0x8d, 0x53, 0x96, 0x4b, 0x0a, 0x15, 0xba, 0x79, 0x5e, 0xb9, 0x69, 0xf5, 0xd5, 0x67, - 0x61, 0x2b, 0x07, 0x36, 0x61, 0x04, 0x2a, 0x21, 0x68, 0x03, 0xc8, 0x3b, 0xd4, 0x16, 0x34, 0x05, - 0x37, 0xec, 0x08, 0xc7, 0x60, 0x12, 0x42, 0x13, 0xfa, 0x17, 0xfe, 0xe5, 0x71, 0x23, 0x5c, 0xcd, - 0x6b, 0xa5, 0x1d, 0xf6, 0x56, 0x4a, 0x03, 0xd6, 0x76, 0xc8, 0xf4, 0xb5, 0x8a, 0x7f, 0x94, 0xb9, - 0x4b, 0xee, 0x60, 0xe1, 0xbf, 0xbf, 0x5c, 0x7b, 0x65, 0x35, 0x63, 0xa7, 0xc5, 0x3b, 0x3a, 0x40, - 0xed, 0x69, 0x9c, 0x10, 0x04, 0x25, 0x76, 0x20, 0x41, 0x63, 0xe6, 0xa2, 0x63, 0xd7, 0x04, 0x2d, - 0xf6, 0xdf, 0xfc, 0x92, 0xeb, 0x8b, 0x75, 0xc5, 0xfb, 0x58, 0x57, 0xce, 0x1d, 0xdd, 0xca, 0x61, - 0xd4, 0x47, 0x91, 0x25, 0xd4, 0x8b, 0x1e, 0x40, 0x25, 0xe9, 0xac, 0x09, 0xe9, 0x6a, 0x5e, 0x63, - 0xbb, 0xf0, 0x26, 0xa4, 0x71, 0x61, 0x6f, 0xdc, 0x2f, 0xbe, 0xb8, 0xb7, 0xd8, 0x70, 0x7f, 0xb9, - 0xe1, 0xfe, 0xe7, 0x86, 0xfb, 0x6f, 0x5b, 0xee, 0x2d, 0xb7, 0xdc, 0x7b, 0xdf, 0x72, 0xef, 0xf1, - 0x4a, 0xf5, 0xa9, 0xf7, 0xdc, 0x8d, 0x52, 0xcc, 0x04, 0x0e, 0xb0, 0xa6, 0x81, 0x5e, 0xd0, 0x0c, - 0xf3, 0x5a, 0x4c, 0xf7, 0xa7, 0xa0, 0xd9, 0x18, 0x6c, 0xf7, 0xb0, 0xf8, 0xc7, 0xeb, 0xef, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x4c, 0xc9, 0x11, 0xac, 0xa5, 0x01, 0x00, 0x00, + // 346 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x92, 0x3f, 0x4f, 0xfa, 0x40, + 0x18, 0xc7, 0xdb, 0xdf, 0x1f, 0x23, 0x97, 0xe8, 0xd0, 0x30, 0x54, 0x4c, 0x0e, 0xc3, 0xa4, 0x03, + 0xbd, 0x10, 0x8d, 0xbb, 0x08, 0xb8, 0x38, 0x95, 0xc4, 0xc1, 0xc5, 0x1c, 0xbd, 0x27, 0xa5, 0x40, + 0xfb, 0x90, 0xbb, 0xb3, 0xc2, 0x1b, 0x70, 0xf6, 0x6d, 0xb8, 0xf3, 0x22, 0x18, 0x09, 0x93, 0x71, + 0x20, 0x0a, 0x6f, 0xc4, 0xb4, 0x07, 0x12, 0x27, 0x26, 0xb7, 0xe7, 0xcf, 0xf7, 0xfb, 0xf9, 0x36, + 0x4f, 0x8f, 0x94, 0xb0, 0x87, 0x0c, 0x25, 0x0f, 0x06, 0xc0, 0xd2, 0x1a, 0x83, 0x14, 0x12, 0xad, + 0xbc, 0xa1, 0x44, 0x8d, 0xce, 0x01, 0xf6, 0xd0, 0x33, 0x3b, 0x2f, 0xad, 0x95, 0x8e, 0x02, 0x54, + 0x31, 0xaa, 0x87, 0x7c, 0xc9, 0x4c, 0x63, 0x94, 0xa5, 0x62, 0x88, 0x21, 0x9a, 0x79, 0x56, 0x99, + 0x69, 0xe5, 0xd9, 0x26, 0x6e, 0x33, 0x03, 0x36, 0x60, 0x00, 0x21, 0xd7, 0xd0, 0x02, 0x10, 0xd7, + 0x98, 0x28, 0x48, 0xb4, 0x73, 0x41, 0xf6, 0x71, 0x08, 0x92, 0x6b, 0x94, 0xae, 0x7d, 0x62, 0x9f, + 0x16, 0xea, 0xee, 0x7c, 0x52, 0x2d, 0xae, 0xb1, 0x57, 0x42, 0x48, 0x50, 0xaa, 0xad, 0x65, 0x94, + 0x84, 0xfe, 0xb7, 0x32, 0x73, 0x89, 0x35, 0xcc, 0xfd, 0xb3, 0xcb, 0xb5, 0x51, 0x56, 0x62, 0x72, + 0x98, 0x7f, 0x47, 0x1b, 0x74, 0x6b, 0xe4, 0x73, 0x0d, 0x4e, 0x91, 0xfc, 0x17, 0x90, 0x60, 0x6c, + 0xa2, 0x7d, 0xd3, 0x38, 0x4d, 0xf2, 0x4f, 0x6e, 0xc9, 0xb5, 0xe9, 0xa2, 0x6c, 0xbd, 0x2f, 0xca, + 0xc7, 0x86, 0xae, 0x44, 0xdf, 0x8b, 0x90, 0xc5, 0x5c, 0x77, 0xbd, 0x5b, 0x08, 0x79, 0x30, 0x6e, + 0x40, 0x30, 0x9f, 0x54, 0xc9, 0x3a, 0xbc, 0x01, 0x81, 0x9f, 0xdb, 0x2b, 0xaf, 0x36, 0x71, 0x7e, + 0xe6, 0xdd, 0xe1, 0x2f, 0x67, 0x3a, 0x97, 0xa4, 0x90, 0xf2, 0x41, 0x24, 0xf2, 0x7b, 0xfe, 0xdd, + 0x71, 0x99, 0xad, 0xb4, 0x7e, 0x33, 0xfd, 0xa4, 0xd6, 0x74, 0x49, 0xed, 0xd9, 0x92, 0xda, 0x1f, + 0x4b, 0x6a, 0xbf, 0xac, 0xa8, 0x35, 0x5b, 0x51, 0xeb, 0x6d, 0x45, 0xad, 0xfb, 0xb3, 0x30, 0xd2, + 0xdd, 0xc7, 0x8e, 0x17, 0x60, 0xcc, 0xb0, 0x87, 0xd5, 0x04, 0xf4, 0x13, 0xca, 0x7e, 0x56, 0xb3, + 0xd1, 0xe6, 0xd9, 0xe8, 0xf1, 0x10, 0x54, 0x67, 0x2f, 0xff, 0xe7, 0xe7, 0x5f, 0x01, 0x00, 0x00, + 0xff, 0xff, 0x4b, 0x89, 0x82, 0x0f, 0x51, 0x02, 0x00, 0x00, } func (m *EventDelegateFeedConsent) Marshal() (dAtA []byte, err error) { @@ -215,6 +261,53 @@ func (m *EventSetFxRate) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *EventSetFxRateVote) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventSetFxRateVote) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventSetFxRateVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Validator) > 0 { + i -= len(m.Validator) + copy(dAtA[i:], m.Validator) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Validator))) + i-- + dAtA[i] = 0x1a + } + { + size := m.Rate.Size() + i -= size + if _, err := m.Rate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintEvents(dAtA []byte, offset int, v uint64) int { offset -= sovEvents(v) base := offset @@ -258,6 +351,25 @@ func (m *EventSetFxRate) Size() (n int) { return n } +func (m *EventSetFxRateVote) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + l = m.Rate.Size() + n += 1 + l + sovEvents(uint64(l)) + l = len(m.Validator) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } + return n +} + func sovEvents(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -494,6 +606,154 @@ func (m *EventSetFxRate) Unmarshal(dAtA []byte) error { } return nil } +func (m *EventSetFxRateVote) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventSetFxRateVote: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventSetFxRateVote: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Rate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Validator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipEvents(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 From 850977f35ccbab5a0140a3c025893455149c2f93 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Thu, 10 Apr 2025 19:50:35 -0400 Subject: [PATCH 61/77] return osmomath.BigDec in GetAssetPrice and GetDenomPrice --- go.mod | 7 ++++--- go.sum | 18 ++++++++++-------- x/oracle/keeper/elys.go | 24 ++++++++++++++---------- 3 files changed, 28 insertions(+), 21 deletions(-) diff --git a/go.mod b/go.mod index 31c04ab0..5fcdbfc4 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.23 require ( cosmossdk.io/api v0.7.6 cosmossdk.io/client/v2 v2.0.0-beta.3 - cosmossdk.io/core v0.11.1 + cosmossdk.io/core v0.12.0 cosmossdk.io/errors v1.0.1 cosmossdk.io/log v1.4.1 cosmossdk.io/math v1.4.0 @@ -37,6 +37,7 @@ require ( github.com/mitchellh/mapstructure v1.5.0 github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250328154033-0d554482357e github.com/ory/dockertest/v3 v3.10.0 + github.com/osmosis-labs/osmosis/osmomath v0.0.17 github.com/rs/zerolog v1.33.0 github.com/spf13/cast v1.7.1 github.com/spf13/cobra v1.8.1 @@ -105,7 +106,6 @@ require ( github.com/breml/bidichk v0.2.7 // indirect github.com/breml/errchkjson v0.3.6 // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect - github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2 // indirect github.com/bufbuild/protocompile v0.9.0 // indirect github.com/bufbuild/protovalidate-go v0.6.2 // indirect github.com/bufbuild/protoyaml-go v0.1.9 // indirect @@ -192,7 +192,7 @@ require ( github.com/gofrs/flock v0.12.1 // indirect github.com/gofrs/uuid/v5 v5.1.0 // indirect github.com/gogo/googleapis v1.4.1 // indirect - github.com/golang/glog v1.2.3 // indirect + github.com/golang/glog v1.2.4 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/mock v1.6.0 // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect @@ -408,6 +408,7 @@ require ( ) replace ( + cosmossdk.io/core => cosmossdk.io/core v0.11.1 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 ) diff --git a/go.sum b/go.sum index 24f3c97b..54da327b 100644 --- a/go.sum +++ b/go.sum @@ -342,8 +342,8 @@ github.com/btcsuite/btcd/btcec/v2 v2.3.4 h1:3EJjcN70HCu/mwqlUsGK8GcNVyLVxFDlWurT github.com/btcsuite/btcd/btcec/v2 v2.3.4/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= github.com/btcsuite/btcd/btcutil v1.1.6 h1:zFL2+c3Lb9gEgqKNzowKUPQNb8jV7v5Oaodi/AYFd6c= github.com/btcsuite/btcd/btcutil v1.1.6/go.mod h1:9dFymx8HpuLqBnsPELrImQeTQfKBQqzqGbbV3jK55aE= -github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2 h1:KdUfX2zKommPRa+PD0sWZUyXe9w277ABlgELO7H04IM= -github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= +github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 h1:59Kx4K6lzOW5w6nFlA0v5+lk/6sjybR934QNHSJZPTQ= +github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= github.com/bufbuild/buf v1.31.0 h1:YHLGIr8bjcLaTCIw0+/bCAvJLiR8u46QTwKvn7miSEg= github.com/bufbuild/buf v1.31.0/go.mod h1:LlxpG2LF33f1Ixw29BTt0pyLriLzg3rXY1K9XQVHSio= github.com/bufbuild/protocompile v0.9.0 h1:DI8qLG5PEO0Mu1Oj51YFPqtx6I3qYXUAhJVJ/IzAVl0= @@ -406,8 +406,8 @@ github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWH github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= -github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f h1:otljaYPt5hWxV3MUfO5dFPFiOXg9CyG5/kCfayTqsJ4= -github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= +github.com/cockroachdb/datadriven v1.0.3-0.20230801171734-e384cf455877 h1:1MLK4YpFtIEo3ZtMA5C795Wtv5VuUnrXX7mQG+aHg6o= +github.com/cockroachdb/datadriven v1.0.3-0.20230801171734-e384cf455877/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= github.com/cockroachdb/errors v1.11.3 h1:5bA+k2Y6r+oz/6Z/RFlNeVCesGARKuC6YymtcDrbC/I= github.com/cockroachdb/errors v1.11.3/go.mod h1:m4UIW4CDjx+R5cybPsNrRbreomiFqt8o1h1wUVazSd8= github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce h1:giXvy4KSc/6g/esnpM7Geqxka4WSqI1SZc7sMJFd3y4= @@ -677,8 +677,8 @@ github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869/go.mod h1:5YRNX2 github.com/gogo/googleapis v1.4.1 h1:1Yx4Myt7BxzvUr5ldGSbwYiZG6t9wGBZ+8/fX3Wvtq0= github.com/gogo/googleapis v1.4.1/go.mod h1:2lpHqI5OcWCtVElxXnPt+s8oJvMpySlOyM6xDCrzib4= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.3 h1:oDTdz9f5VGVVNGu/Q7UXKWYsD0873HXLHdJUNBsSEKM= -github.com/golang/glog v1.2.3/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.4 h1:CNNw5U8lSiiBk7druxtSHHTsRWcxKoac6kZKm2peBBc= +github.com/golang/glog v1.2.4/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -887,8 +887,8 @@ github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerX github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= -github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= +github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= @@ -1165,6 +1165,8 @@ github.com/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4 github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= github.com/ory/dockertest/v3 v3.10.0 h1:4K3z2VMe8Woe++invjaTB7VRyQXQy5UY+loujO4aNE4= github.com/ory/dockertest/v3 v3.10.0/go.mod h1:nr57ZbRWMqfsdGdFNLHz5jjNdDb7VVFnzAeW1n5N1Lg= +github.com/osmosis-labs/osmosis/osmomath v0.0.17 h1:H2eqWN3kDI5uCIiDSPjiJZx8wbKj85wIuQqaOAGqurc= +github.com/osmosis-labs/osmosis/osmomath v0.0.17/go.mod h1:PtGEYniKjpdh9mQY57wiH158PLkLJjHBSLo22Fi3dLM= github.com/otiai10/copy v1.2.0/go.mod h1:rrF5dJ5F0t/EWSYODDu4j9/vEeYHMkc8jt0zJChqQWw= github.com/otiai10/copy v1.14.0 h1:dCI/t1iTdYGtkvCuBG2BgR6KZa83PTclw4U5n2wAllU= github.com/otiai10/copy v1.14.0/go.mod h1:ECfuL02W+/FkTWZWgQqXPWZgW9oeKCSQ5qVfSc4qc4w= diff --git a/x/oracle/keeper/elys.go b/x/oracle/keeper/elys.go index 96ba94b8..34f17cd1 100644 --- a/x/oracle/keeper/elys.go +++ b/x/oracle/keeper/elys.go @@ -1,12 +1,12 @@ package keeper import ( - "cosmossdk.io/math" storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ojo-network/ojo/util" "github.com/ojo-network/ojo/x/oracle/types" + "github.com/osmosis-labs/osmosis/osmomath" ) // SetPrice set a specific price in the store from its index @@ -79,28 +79,32 @@ func (k Keeper) GetAllPrice(ctx sdk.Context) (list []types.Price) { return } -func (k Keeper) GetAssetPrice(ctx sdk.Context, asset string) (types.Price, bool) { - return k.GetLatestPriceFromAnySource(ctx, asset) +func (k Keeper) GetAssetPrice(ctx sdk.Context, asset string) (osmomath.BigDec, bool) { + val, found := k.GetLatestPriceFromAnySource(ctx, asset) + if found { + return osmomath.BigDecFromDec(val.Price), true + } + return osmomath.BigDec{}, false } -func Pow10(decimal uint64) (value math.LegacyDec) { - value = math.LegacyNewDec(1) +func Pow10(decimal uint64) (value osmomath.BigDec) { + value = osmomath.NewBigDec(1) for i := 0; i < util.SafeUint64ToInt(decimal); i++ { - value = value.Mul(math.LegacyNewDec(10)) + value = value.Mul(osmomath.NewBigDec(10)) } return } -func (k Keeper) GetAssetPriceFromDenom(ctx sdk.Context, denom string) math.LegacyDec { +func (k Keeper) GetDenomPrice(ctx sdk.Context, denom string) osmomath.BigDec { info, found := k.GetAssetInfo(ctx, denom) if !found { - return math.LegacyZeroDec() + return osmomath.ZeroBigDec() } price, found := k.GetAssetPrice(ctx, info.Display) if !found { - return math.LegacyZeroDec() + return osmomath.ZeroBigDec() } - return price.Price.Quo(Pow10(info.Decimal)) + return price.Quo(Pow10(info.Decimal)) } // SetAssetInfo set a specific assetInfo in the store from its index From cde1f1abea19071d0167461bf004b6c1d1a4e877 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Fri, 11 Apr 2025 13:47:03 -0400 Subject: [PATCH 62/77] upgrade ibc-go to v8.7.0 --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 5fcdbfc4..2c519838 100644 --- a/go.mod +++ b/go.mod @@ -25,7 +25,7 @@ require ( github.com/cosmos/go-bip39 v1.0.0 github.com/cosmos/gogoproto v1.7.0 github.com/cosmos/ibc-go/modules/capability v1.0.1 - github.com/cosmos/ibc-go/v8 v8.5.1 + github.com/cosmos/ibc-go/v8 v8.7.0 github.com/ethereum/go-ethereum v1.14.2 github.com/gogo/protobuf v1.3.3 github.com/golang/protobuf v1.5.4 diff --git a/go.sum b/go.sum index 54da327b..e503a661 100644 --- a/go.sum +++ b/go.sum @@ -454,8 +454,8 @@ github.com/cosmos/iavl v1.2.2 h1:qHhKW3I70w+04g5KdsdVSHRbFLgt3yY3qTMd4Xa4rC8= github.com/cosmos/iavl v1.2.2/go.mod h1:GiM43q0pB+uG53mLxLDzimxM9l/5N9UuSY3/D0huuVw= github.com/cosmos/ibc-go/modules/capability v1.0.1 h1:ibwhrpJ3SftEEZRxCRkH0fQZ9svjthrX2+oXdZvzgGI= github.com/cosmos/ibc-go/modules/capability v1.0.1/go.mod h1:rquyOV262nGJplkumH+/LeYs04P3eV8oB7ZM4Ygqk4E= -github.com/cosmos/ibc-go/v8 v8.5.1 h1:3JleEMKBjRKa3FeTKt4fjg22za/qygLBo7mDkoYTNBs= -github.com/cosmos/ibc-go/v8 v8.5.1/go.mod h1:P5hkAvq0Qbg0h18uLxDVA9q1kOJ0l36htMsskiNwXbo= +github.com/cosmos/ibc-go/v8 v8.7.0 h1:HqhVOkO8bDpClXE81DFQgFjroQcTvtpm0tCS7SQVKVY= +github.com/cosmos/ibc-go/v8 v8.7.0/go.mod h1:G2z+Q6ZQSMcyHI2+BVcJdvfOupb09M2h/tgpXOEdY6k= github.com/cosmos/ics23/go v0.11.0 h1:jk5skjT0TqX5e5QJbEnwXIS2yI2vnmLOgpQPeM5RtnU= github.com/cosmos/ics23/go v0.11.0/go.mod h1:A8OjxPE67hHST4Icw94hOxxFEJMBG031xIGF/JHNIY0= github.com/cosmos/ledger-cosmos-go v0.14.0 h1:WfCHricT3rPbkPSVKRH+L4fQGKYHuGOK9Edpel8TYpE= From 4b128c6ceb94cb87c05b6d3cf26e93e338b4f2b2 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Mon, 21 Apr 2025 13:29:39 -0700 Subject: [PATCH 63/77] Binance getsnapshotorderbook delay --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 2c519838..1206a1f1 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250328154033-0d554482357e + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250421183238-6c793ef22cec github.com/ory/dockertest/v3 v3.10.0 github.com/osmosis-labs/osmosis/osmomath v0.0.17 github.com/rs/zerolog v1.33.0 diff --git a/go.sum b/go.sum index e503a661..a930d23c 100644 --- a/go.sum +++ b/go.sum @@ -1123,8 +1123,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250328154033-0d554482357e h1:etyJpkUXadncRg4cyZboIS4pbBE6iu3psWx2e7Bt4iI= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250328154033-0d554482357e/go.mod h1:zgwl5DnvtAB0A61U92OlMd2QGRUeAwVPamzYofs8YiM= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250421183238-6c793ef22cec h1:Ev5PTJrIZ/Wn0eIppqmHQ3ncR6k3qztLQt8bw0MVzB8= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250421183238-6c793ef22cec/go.mod h1:rGpbsGqif6z5LkJYpHz611s5LGgWpiuIe24GeY26FxQ= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= From cd628ac17a87e0185d3fe4b6ff0ca43bf0129ebe Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 22 Apr 2025 14:20:05 -0700 Subject: [PATCH 64/77] Binance orderbook mutex --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 1206a1f1..5221e77c 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250421183238-6c793ef22cec + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250422211727-1ba850b44781 github.com/ory/dockertest/v3 v3.10.0 github.com/osmosis-labs/osmosis/osmomath v0.0.17 github.com/rs/zerolog v1.33.0 diff --git a/go.sum b/go.sum index a930d23c..e9de7768 100644 --- a/go.sum +++ b/go.sum @@ -1123,8 +1123,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250421183238-6c793ef22cec h1:Ev5PTJrIZ/Wn0eIppqmHQ3ncR6k3qztLQt8bw0MVzB8= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250421183238-6c793ef22cec/go.mod h1:rGpbsGqif6z5LkJYpHz611s5LGgWpiuIe24GeY26FxQ= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250422211727-1ba850b44781 h1:a2W0H2B5US3/0ib/zdzmzoAu+SAmpAJSkR9m9lQXrlU= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250422211727-1ba850b44781/go.mod h1:rGpbsGqif6z5LkJYpHz611s5LGgWpiuIe24GeY26FxQ= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= From b25b95f7aad1fe2fe3aa643c2500570283138527 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 14 May 2025 13:01:22 -0400 Subject: [PATCH 65/77] update query structures --- proto/ojo/oracle/v1/elys.proto | 21 +- proto/ojo/oracle/v1/query.proto | 58 +- proto/ojo/oracle/v1/tx.proto | 6 +- util/math.go | 48 + x/oracle/abci/endblocker.go | 5 +- x/oracle/abci/endblocker_test.go | 23 +- x/oracle/client/cli/query.go | 67 +- x/oracle/keeper/elys.go | 61 +- x/oracle/keeper/grpc_query.go | 69 +- .../keeper/msg_server_create_asset_info.go | 9 +- .../keeper/msg_server_feed_multiple_prices.go | 1 - x/oracle/keeper/msg_server_price.go | 1 - x/oracle/types/elys.pb.go | 379 ++++-- x/oracle/types/keys.go | 9 +- x/oracle/types/query.pb.go | 1140 ++++++++++++----- x/oracle/types/query.pb.gw.go | 179 ++- x/oracle/types/tx.pb.go | 330 ++--- 17 files changed, 1569 insertions(+), 837 deletions(-) create mode 100644 util/math.go diff --git a/proto/ojo/oracle/v1/elys.proto b/proto/ojo/oracle/v1/elys.proto index 91cd85f8..da9d5332 100644 --- a/proto/ojo/oracle/v1/elys.proto +++ b/proto/ojo/oracle/v1/elys.proto @@ -13,11 +13,19 @@ option (gogoproto.goproto_getters_all) = false; message AssetInfo { string denom = 1; string display = 2; - string band_ticker = 3; - string elys_ticker = 4; - uint64 decimal = 5; + string ticker = 3; + uint64 decimal = 4; } +message LatestPrice { + string denom = 1; + string latest_price = 2 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false + ]; + } + // Elys Price message Price { string asset = 1; @@ -26,10 +34,9 @@ message Price { (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; - string source = 3; - string provider = 4; - uint64 timestamp = 5; - uint64 block_height = 6; + string provider = 3; + uint64 timestamp = 4; + uint64 block_height = 5; } // Elys PriceFeeder diff --git a/proto/ojo/oracle/v1/query.proto b/proto/ojo/oracle/v1/query.proto index 7ed6a86f..0186aa08 100644 --- a/proto/ojo/oracle/v1/query.proto +++ b/proto/ojo/oracle/v1/query.proto @@ -6,6 +6,7 @@ import "google/api/annotations.proto"; import "ojo/oracle/v1/oracle.proto"; import "ojo/oracle/v1/elys.proto"; import "cosmos/base/v1beta1/coin.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; option go_package = "github.com/ojo-network/ojo/x/oracle/types"; @@ -99,16 +100,19 @@ service Query { "/ojo/oracle/v1/valdiators/validator_reward_set"; } - // Queries a Price by asset. - rpc Price(QueryPriceRequest) - returns (QueryPriceResponse) { - option (google.api.http).get = "/elys-network/elys/oracle/price/{asset}"; + rpc LatestPrices(QueryLatestPricesRequest) + returns (QueryLatestPricesResponse) { + option (google.api.http).get = "/elys-network/elys/oracle/latest_prices/{denoms}"; } - // Queries a list of Price items. - rpc PriceAll(QueryPriceAllRequest) - returns (QueryPriceAllResponse) { - option (google.api.http).get = "/elys-network/elys/oracle/prices"; + rpc AllLatestPrices(QueryAllLatestPricesRequest) + returns (QueryAllLatestPricesResponse) { + option (google.api.http).get = "/elys-network/elys/oracle/all_latest_prices"; + } + + rpc PriceHistory(QueryPriceHistoryRequest) + returns (QueryPriceHistoryResponse) { + option (google.api.http).get = "/elys-network/elys/oracle/price_history/{asset}"; } // Queries a Pool. @@ -341,24 +345,36 @@ message QueryValidatorRewardSetResponse { ValidatorRewardSet validators = 1 [(gogoproto.nullable) = false]; } -// QueryPriceRequest is the request type for the Query/PriceRequest RPC method. -message QueryPriceRequest { - string asset = 1; - string source = 2; - uint64 timestamp = 3; +// QueryLatestPricesRequest is the request type for the Query/LatestPrices RPC method. +message QueryLatestPricesRequest { + repeated string denoms = 1; + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryLatestPricesResponse is the response type for the Query/LatestPrices RPC method. +message QueryLatestPricesResponse { + repeated LatestPrice prices = 1; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } -// QueryPriceResponse is the response type for the Query/PriceRequest RPC method. -message QueryPriceResponse { - Price price = 1 [ (gogoproto.nullable) = false ]; +// QueryAllLatestPricesRequest is the request type for the Query/AllLatestPrices RPC method. +message QueryAllLatestPricesRequest {} + +// QueryAllLatestPricesResponse is the response type for the Query/AllLatestPrices RPC method. +message QueryAllLatestPricesResponse { + repeated LatestPrice prices = 1; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } -// QueryPriceAllRequest is the request type for the Query/PriceAllRequest RPC method. -message QueryPriceAllRequest {} +// QueryPriceHistoryRequest is the request type for the Query/PriceHistory RPC method. +message QueryPriceHistoryRequest { + string asset = 1; +} -// QueryPriceAllResponse is the response type for the Query/AllPriceRequest RPC method. -message QueryPriceAllResponse { - repeated Price price = 1 [ (gogoproto.nullable) = false ]; +// QueryPriceHistoryResponse is the response type for the Query/PriceHistory RPC method. +message QueryPriceHistoryResponse { + repeated Price prices = 1; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } // QueryPoolRequest is the request type for the Query/PoolRequest RPC method. diff --git a/proto/ojo/oracle/v1/tx.proto b/proto/ojo/oracle/v1/tx.proto index 0d83d7f2..dec3bf24 100644 --- a/proto/ojo/oracle/v1/tx.proto +++ b/proto/ojo/oracle/v1/tx.proto @@ -147,7 +147,6 @@ message FeedPrice { (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false ]; - string source = 3; } // MsgFeedPrice defines a message to feed an elys price. @@ -232,9 +231,8 @@ message MsgCreateAssetInfo { string creator = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; string denom = 2; string display = 3; - string band_ticker = 4; - string elys_ticker = 5; - uint64 decimal = 6; + string ticker = 4; + uint64 decimal = 5; } // MsgCreateAssetInfoResponse defines the Msg/CreateAssetInfo response diff --git a/util/math.go b/util/math.go new file mode 100644 index 00000000..8879148d --- /dev/null +++ b/util/math.go @@ -0,0 +1,48 @@ +package util + +import ( + "github.com/osmosis-labs/osmosis/osmomath" +) + +var pow10Int64Cache = [...]int64{ + 1, + 10, + 100, + 1000, + 10000, + 100000, + 1000000, + 10000000, + 100000000, + 1000000000, + 10000000000, + 100000000000, + 1000000000000, + 10000000000000, + 100000000000000, + 1000000000000000, + 10000000000000000, + 100000000000000000, + 1000000000000000000, +} + +func Pow10(decimal uint64) osmomath.BigDec { + if decimal <= 18 { + return osmomath.NewBigDec(pow10Int64Cache[decimal]) + } + + // This case less likely to happen + value := osmomath.NewBigDec(1) + for i := 0; i < int(decimal); i++ { + value = value.MulInt64(10) + } + return value +} + +func Pow10Int64(decimal uint64) int64 { + if decimal <= 18 { + return pow10Int64Cache[decimal] + } else { + panic("cannot do more than 10^18 for int64") + } +} diff --git a/x/oracle/abci/endblocker.go b/x/oracle/abci/endblocker.go index 938690c9..c475ccc1 100644 --- a/x/oracle/abci/endblocker.go +++ b/x/oracle/abci/endblocker.go @@ -101,11 +101,11 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { // Prune expired elys prices for _, price := range k.GetAllPrice(sdkCtx) { if price.Timestamp+params.PriceExpiryTime < util.SafeInt64ToUint64(sdkCtx.BlockTime().Unix()) { - k.RemovePrice(sdkCtx, price.Asset, price.Source, price.Timestamp) + k.RemovePrice(sdkCtx, price.Asset, price.Timestamp) } if price.BlockHeight+params.LifeTimeInBlocks < util.SafeInt64ToUint64(sdkCtx.BlockHeight()) { - k.RemovePrice(sdkCtx, price.Asset, price.Source, price.Timestamp) + k.RemovePrice(sdkCtx, price.Asset, price.Timestamp) } } @@ -182,7 +182,6 @@ func CalcPrices(ctx sdk.Context, params types.Params, k keeper.Keeper) error { elysPrice := types.Price{ Asset: ballotDenom.Denom, Price: exchangeRate, - Source: "ojo", Provider: "automation", Timestamp: util.SafeInt64ToUint64(ctx.BlockTime().Unix()), BlockHeight: util.SafeInt64ToUint64(ctx.BlockHeight()), diff --git a/x/oracle/abci/endblocker_test.go b/x/oracle/abci/endblocker_test.go index cba618ad..5f25e6f3 100644 --- a/x/oracle/abci/endblocker_test.go +++ b/x/oracle/abci/endblocker_test.go @@ -5,9 +5,9 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/osmosis-labs/osmosis/osmomath" // appparams "github.com/ojo-network/ojo/app/params" - "github.com/ojo-network/ojo/util" "github.com/ojo-network/ojo/util/decmath" "github.com/ojo-network/ojo/x/oracle/abci" "github.com/ojo-network/ojo/x/oracle/types" @@ -91,12 +91,9 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { s.Require().NoError(err) s.Require().Equal(math.LegacyMustNewDecFromStr("1.0"), rate) - elysPrice, found := app.OracleKeeper.GetLatestPriceFromAnySource(ctx, denom.SymbolDenom) + elysPrice, found := app.OracleKeeper.GetAssetPrice(ctx, denom.SymbolDenom) s.Require().True(found) - s.Require().Equal(elysPrice.Asset, denom.SymbolDenom) - s.Require().Equal(elysPrice.Price, rate) - s.Require().Equal(elysPrice.BlockHeight, util.SafeInt64ToUint64(ctx.BlockHeight())) - s.Require().Equal(elysPrice.Timestamp, util.SafeInt64ToUint64(ctx.BlockTime().Unix())) + s.Require().Equal(elysPrice, osmomath.BigDecFromDec(rate)) } // Test: only val2 votes (has 39% vote power). @@ -148,12 +145,9 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { s.Require().NoError(err) s.Require().Equal(math.LegacyMustNewDecFromStr("0.5"), rate) - elysPrice, found := app.OracleKeeper.GetLatestPriceFromAnySource(ctx, denom.SymbolDenom) + elysPrice, found := app.OracleKeeper.GetAssetPrice(ctx, denom.SymbolDenom) s.Require().True(found) - s.Require().Equal(elysPrice.Asset, denom.SymbolDenom) - s.Require().Equal(elysPrice.Price, rate) - s.Require().Equal(elysPrice.BlockHeight, util.SafeInt64ToUint64(ctx.BlockHeight())) - s.Require().Equal(elysPrice.Timestamp, util.SafeInt64ToUint64(ctx.BlockTime().Unix())) + s.Require().Equal(elysPrice, osmomath.BigDecFromDec(rate)) } // Test: val1 and val2 vote again @@ -187,12 +181,9 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { s.Require().NoError(err) s.Require().Equal(math.LegacyMustNewDecFromStr("1.0"), rate) - elysPrice, found := app.OracleKeeper.GetLatestPriceFromAnySource(ctx, "ojo") + elysPrice, found := app.OracleKeeper.GetAssetPrice(ctx, "ojo") s.Require().True(found) - s.Require().Equal(elysPrice.Asset, "ojo") - s.Require().Equal(elysPrice.Price, rate) - s.Require().Equal(elysPrice.BlockHeight, util.SafeInt64ToUint64(ctx.BlockHeight())) - s.Require().Equal(elysPrice.Timestamp, util.SafeInt64ToUint64(ctx.BlockTime().Unix())) + s.Require().Equal(elysPrice, osmomath.BigDecFromDec(rate)) rate, err = app.OracleKeeper.GetExchangeRate(ctx, "atom") s.Require().ErrorIs(err, types.ErrUnknownDenom.Wrap("atom")) diff --git a/x/oracle/client/cli/query.go b/x/oracle/client/cli/query.go index e7e0bb1b..91ef0e7d 100644 --- a/x/oracle/client/cli/query.go +++ b/x/oracle/client/cli/query.go @@ -34,8 +34,9 @@ func GetQueryCmd() *cobra.Command { GetCmdQueryFeederDelegation(), GetCmdQueryMissCounter(), GetCmdQuerySlashWindow(), - GetCmdListPrice(), - CmdShowPrice(), + CmdLatestPrices(), + CmdAllLatestPrices(), + CmdPriceHistory(), CmdListPool(), CmdShowPool(), CmdListAccountedPool(), @@ -288,10 +289,11 @@ func GetCmdQuerySlashWindow() *cobra.Command { return cmd } -func GetCmdListPrice() *cobra.Command { +func CmdLatestPrices() *cobra.Command { cmd := &cobra.Command{ - Use: "list-price", - Short: "list all price", + Use: "latest-prices [denom1,denom2,...]", + Short: "list latest prices for multiple denoms", + Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { clientCtx, err := client.GetClientQueryContext(cmd) if err != nil { @@ -299,7 +301,13 @@ func GetCmdListPrice() *cobra.Command { } queryClient := types.NewQueryClient(clientCtx) - res, err := queryClient.PriceAll(cmd.Context(), &types.QueryPriceAllRequest{}) + denomsList := strings.Split(args[0], ",") + + params := &types.QueryLatestPricesRequest{ + Denoms: denomsList, + } + + res, err := queryClient.LatestPrices(cmd.Context(), params) return cli.PrintOrErr(res, err, clientCtx) }, } @@ -308,37 +316,50 @@ func GetCmdListPrice() *cobra.Command { return cmd } -func CmdShowPrice() *cobra.Command { +func CmdAllLatestPrices() *cobra.Command { cmd := &cobra.Command{ - Use: "show-price [asset] [source] [timestamp]", - Short: "shows a price", - Args: cobra.ExactArgs(3), - RunE: func(cmd *cobra.Command, args []string) (err error) { - clientCtx := client.GetClientContextFromCmd(cmd) - - timestamp, err := cmd.Flags().GetUint64(args[2]) + Use: "all-latest-prices", + Short: "list latest prices for all denoms", + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) if err != nil { return err } - queryClient := types.NewQueryClient(clientCtx) - params := &types.QueryPriceRequest{ - Asset: args[0], - Source: args[1], - Timestamp: timestamp, - } - res, err := queryClient.Price(cmd.Context(), params) + params := &types.QueryAllLatestPricesRequest{} + + res, err := queryClient.AllLatestPrices(cmd.Context(), params) + return cli.PrintOrErr(res, err, clientCtx) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + return cmd +} + +func CmdPriceHistory() *cobra.Command { + cmd := &cobra.Command{ + Use: "price-history [asset]", + Short: "list price history of a given asset by descending timestamp", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) if err != nil { return err } + queryClient := types.NewQueryClient(clientCtx) - return clientCtx.PrintProto(res) + params := &types.QueryPriceHistoryRequest{ + Asset: args[0], + } + + res, err := queryClient.PriceHistory(cmd.Context(), params) + return cli.PrintOrErr(res, err, clientCtx) }, } flags.AddQueryFlagsToCmd(cmd) - return cmd } diff --git a/x/oracle/keeper/elys.go b/x/oracle/keeper/elys.go index 34f17cd1..41afbe88 100644 --- a/x/oracle/keeper/elys.go +++ b/x/oracle/keeper/elys.go @@ -13,25 +13,12 @@ import ( func (k Keeper) SetPrice(ctx sdk.Context, price types.Price) { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) bz := k.cdc.MustMarshal(&price) - store.Set(types.KeyPrice(price.Asset, price.Source, price.Timestamp), bz) + store.Set(types.KeyPrice(price.Asset, price.Timestamp), bz) } -// GetPrice returns a price from its index -func (k Keeper) GetPrice(ctx sdk.Context, asset, source string, timestamp uint64) (val types.Price, found bool) { +func (k Keeper) getLatestPrice(ctx sdk.Context, asset string) (val types.Price, found bool) { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - - bz := store.Get(types.KeyPrice(asset, source, timestamp)) - if bz == nil { - return val, false - } - - k.cdc.MustUnmarshal(bz, &val) - return val, true -} - -func (k Keeper) GetLatestPriceFromAssetAndSource(ctx sdk.Context, asset, source string) (val types.Price, found bool) { - store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - iterator := storetypes.KVStoreReversePrefixIterator(store, types.KeyPriceAssetAndSource(asset, source)) + iterator := storetypes.KVStoreReversePrefixIterator(store, types.KeyPriceAsset(asset)) defer iterator.Close() for ; iterator.Valid(); iterator.Next() { @@ -43,58 +30,52 @@ func (k Keeper) GetLatestPriceFromAssetAndSource(ctx sdk.Context, asset, source return val, false } -func (k Keeper) GetLatestPriceFromAnySource(ctx sdk.Context, asset string) (val types.Price, found bool) { +// RemovePrice removes a price from the store +func (k Keeper) RemovePrice(ctx sdk.Context, asset string, timestamp uint64) { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - iterator := storetypes.KVStoreReversePrefixIterator(store, types.KeyPriceAsset(asset)) + store.Delete(types.KeyPrice(asset, timestamp)) +} + +// GetAllPrice returns all price +func (k Keeper) GetAllPrice(ctx sdk.Context) (list []types.Price) { + store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + iterator := storetypes.KVStorePrefixIterator(store, types.KeyPrefixPrice) + defer iterator.Close() for ; iterator.Valid(); iterator.Next() { var val types.Price k.cdc.MustUnmarshal(iterator.Value(), &val) - return val, true + list = append(list, val) } - return val, false -} - -// RemovePrice removes a price from the store -func (k Keeper) RemovePrice(ctx sdk.Context, asset, source string, timestamp uint64) { - store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store.Delete(types.KeyPrice(asset, source, timestamp)) + return } -// GetAllPrice returns all price -func (k Keeper) GetAllPrice(ctx sdk.Context) (list []types.Price) { +// GetAllAssetPrices returns all prices for a specific asset +func (k Keeper) GetAllAssetPrices(ctx sdk.Context, asset string) (list []*types.Price) { store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - iterator := storetypes.KVStorePrefixIterator(store, types.KeyPrefixPrice) + iterator := storetypes.KVStorePrefixIterator(store, types.KeyPriceAsset(asset)) defer iterator.Close() for ; iterator.Valid(); iterator.Next() { var val types.Price k.cdc.MustUnmarshal(iterator.Value(), &val) - list = append(list, val) + list = append(list, &val) } return } func (k Keeper) GetAssetPrice(ctx sdk.Context, asset string) (osmomath.BigDec, bool) { - val, found := k.GetLatestPriceFromAnySource(ctx, asset) + val, found := k.getLatestPrice(ctx, asset) if found { return osmomath.BigDecFromDec(val.Price), true } return osmomath.BigDec{}, false } -func Pow10(decimal uint64) (value osmomath.BigDec) { - value = osmomath.NewBigDec(1) - for i := 0; i < util.SafeUint64ToInt(decimal); i++ { - value = value.Mul(osmomath.NewBigDec(10)) - } - return -} - func (k Keeper) GetDenomPrice(ctx sdk.Context, denom string) osmomath.BigDec { info, found := k.GetAssetInfo(ctx, denom) if !found { @@ -104,7 +85,7 @@ func (k Keeper) GetDenomPrice(ctx sdk.Context, denom string) osmomath.BigDec { if !found { return osmomath.ZeroBigDec() } - return price.Quo(Pow10(info.Decimal)) + return price.Quo(util.Pow10(info.Decimal)) } // SetAssetInfo set a specific assetInfo in the store from its index diff --git a/x/oracle/keeper/grpc_query.go b/x/oracle/keeper/grpc_query.go index de51e953..9b2afd1d 100644 --- a/x/oracle/keeper/grpc_query.go +++ b/x/oracle/keeper/grpc_query.go @@ -2,6 +2,7 @@ package keeper import ( "context" + "sort" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" @@ -330,51 +331,65 @@ func (q querier) ValidatorRewardSet( return &types.QueryValidatorRewardSetResponse{}, nil } -func (q querier) PriceAll( - goCtx context.Context, - req *types.QueryPriceAllRequest, -) (*types.QueryPriceAllResponse, error) { +func (q querier) LatestPrices(goCtx context.Context, req *types.QueryLatestPricesRequest) (*types.QueryLatestPricesResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } ctx := sdk.UnwrapSDKContext(goCtx) + var prices []*types.LatestPrice - prices := q.GetAllPrice(ctx) + for _, denom := range req.Denoms { + tokenLatestPrice := q.GetDenomPrice(ctx, denom) + prices = append(prices, &types.LatestPrice{ + Denom: denom, + LatestPrice: tokenLatestPrice.Dec(), + }) + } - return &types.QueryPriceAllResponse{Price: prices}, nil + return &types.QueryLatestPricesResponse{ + Prices: prices, + }, nil } -func (q querier) Price(goCtx context.Context, req *types.QueryPriceRequest) (*types.QueryPriceResponse, error) { +func (q querier) AllLatestPrices(goCtx context.Context, req *types.QueryAllLatestPricesRequest) (*types.QueryAllLatestPricesResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } + ctx := sdk.UnwrapSDKContext(goCtx) + var prices []*types.LatestPrice - // if both source and timestamp are defined, use specific value - if req.Source != "" && req.Timestamp != 0 { - val, found := q.GetPrice(ctx, req.Asset, req.Source, req.Timestamp) - if !found { - return nil, status.Error(codes.NotFound, "not found") - } - return &types.QueryPriceResponse{Price: val}, nil - } + assetInfos := q.GetAllAssetInfo(ctx) - // if source is specified use latest price from source - if req.Source != "" { - val, found := q.GetLatestPriceFromAssetAndSource(ctx, req.Asset, req.Source) - if !found { - return nil, status.Error(codes.NotFound, "not found") - } - return &types.QueryPriceResponse{Price: val}, nil + for _, assetInfo := range assetInfos { + tokenLatestPrice := q.GetDenomPrice(ctx, assetInfo.Denom) + prices = append(prices, &types.LatestPrice{ + Denom: assetInfo.Denom, + LatestPrice: tokenLatestPrice.Dec(), + }) } - // find from any source if band source does not exist - val, found := q.GetLatestPriceFromAnySource(ctx, req.Asset) - if !found { - return nil, status.Error(codes.NotFound, "not found") + return &types.QueryAllLatestPricesResponse{ + Prices: prices, + }, nil +} + +func (q querier) PriceHistory(goCtx context.Context, req *types.QueryPriceHistoryRequest) (*types.QueryPriceHistoryResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") } - return &types.QueryPriceResponse{Price: val}, nil + + ctx := sdk.UnwrapSDKContext(goCtx) + prices := q.GetAllAssetPrices(ctx, req.Asset) + + sort.Slice(prices, func(i, j int) bool { + return prices[i].Timestamp > prices[j].Timestamp + }) + + return &types.QueryPriceHistoryResponse{ + Prices: prices, + }, nil } func (q querier) Pool(goCtx context.Context, req *types.QueryPoolRequest) (*types.QueryPoolResponse, error) { diff --git a/x/oracle/keeper/msg_server_create_asset_info.go b/x/oracle/keeper/msg_server_create_asset_info.go index 40b1179c..5a24cd08 100644 --- a/x/oracle/keeper/msg_server_create_asset_info.go +++ b/x/oracle/keeper/msg_server_create_asset_info.go @@ -21,11 +21,10 @@ func (ms msgServer) CreateAssetInfo( } ms.Keeper.SetAssetInfo(ctx, types.AssetInfo{ - Denom: msg.Denom, - Display: msg.Display, - BandTicker: msg.BandTicker, - ElysTicker: msg.ElysTicker, - Decimal: msg.Decimal, + Denom: msg.Denom, + Display: msg.Display, + Ticker: msg.Ticker, + Decimal: msg.Decimal, }) return &types.MsgCreateAssetInfoResponse{}, nil diff --git a/x/oracle/keeper/msg_server_feed_multiple_prices.go b/x/oracle/keeper/msg_server_feed_multiple_prices.go index f3782971..e8e2cf09 100644 --- a/x/oracle/keeper/msg_server_feed_multiple_prices.go +++ b/x/oracle/keeper/msg_server_feed_multiple_prices.go @@ -28,7 +28,6 @@ func (ms msgServer) FeedMultiplePrices( price := types.Price{ Asset: feedPrice.Asset, Price: feedPrice.Price, - Source: feedPrice.Source, Provider: msg.Creator, Timestamp: util.SafeInt64ToUint64(ctx.BlockTime().Unix()), BlockHeight: util.SafeInt64ToUint64(ctx.BlockHeight()), diff --git a/x/oracle/keeper/msg_server_price.go b/x/oracle/keeper/msg_server_price.go index 2dee3808..b9b6df24 100644 --- a/x/oracle/keeper/msg_server_price.go +++ b/x/oracle/keeper/msg_server_price.go @@ -24,7 +24,6 @@ func (ms msgServer) FeedPrice(goCtx context.Context, msg *types.MsgFeedPrice) (* price := types.Price{ Asset: msg.FeedPrice.Asset, Price: msg.FeedPrice.Price, - Source: msg.FeedPrice.Source, Provider: msg.Provider, Timestamp: util.SafeInt64ToUint64(ctx.BlockTime().Unix()), BlockHeight: util.SafeInt64ToUint64(ctx.BlockHeight()), diff --git a/x/oracle/types/elys.pb.go b/x/oracle/types/elys.pb.go index 9d1e7d69..865fdfce 100644 --- a/x/oracle/types/elys.pb.go +++ b/x/oracle/types/elys.pb.go @@ -28,11 +28,10 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Elys AssetInfo type AssetInfo struct { - Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` - Display string `protobuf:"bytes,2,opt,name=display,proto3" json:"display,omitempty"` - BandTicker string `protobuf:"bytes,3,opt,name=band_ticker,json=bandTicker,proto3" json:"band_ticker,omitempty"` - ElysTicker string `protobuf:"bytes,4,opt,name=elys_ticker,json=elysTicker,proto3" json:"elys_ticker,omitempty"` - Decimal uint64 `protobuf:"varint,5,opt,name=decimal,proto3" json:"decimal,omitempty"` + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + Display string `protobuf:"bytes,2,opt,name=display,proto3" json:"display,omitempty"` + Ticker string `protobuf:"bytes,3,opt,name=ticker,proto3" json:"ticker,omitempty"` + Decimal uint64 `protobuf:"varint,4,opt,name=decimal,proto3" json:"decimal,omitempty"` } func (m *AssetInfo) Reset() { *m = AssetInfo{} } @@ -68,21 +67,58 @@ func (m *AssetInfo) XXX_DiscardUnknown() { var xxx_messageInfo_AssetInfo proto.InternalMessageInfo +type LatestPrice struct { + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + LatestPrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=latest_price,json=latestPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"latest_price"` +} + +func (m *LatestPrice) Reset() { *m = LatestPrice{} } +func (m *LatestPrice) String() string { return proto.CompactTextString(m) } +func (*LatestPrice) ProtoMessage() {} +func (*LatestPrice) Descriptor() ([]byte, []int) { + return fileDescriptor_9fad3fefa6783858, []int{1} +} +func (m *LatestPrice) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LatestPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LatestPrice.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LatestPrice) XXX_Merge(src proto.Message) { + xxx_messageInfo_LatestPrice.Merge(m, src) +} +func (m *LatestPrice) XXX_Size() int { + return m.Size() +} +func (m *LatestPrice) XXX_DiscardUnknown() { + xxx_messageInfo_LatestPrice.DiscardUnknown(m) +} + +var xxx_messageInfo_LatestPrice proto.InternalMessageInfo + // Elys Price type Price struct { Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price"` - Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` - Provider string `protobuf:"bytes,4,opt,name=provider,proto3" json:"provider,omitempty"` - Timestamp uint64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - BlockHeight uint64 `protobuf:"varint,6,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + Provider string `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"` + Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + BlockHeight uint64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } func (m *Price) Reset() { *m = Price{} } func (m *Price) String() string { return proto.CompactTextString(m) } func (*Price) ProtoMessage() {} func (*Price) Descriptor() ([]byte, []int) { - return fileDescriptor_9fad3fefa6783858, []int{1} + return fileDescriptor_9fad3fefa6783858, []int{2} } func (m *Price) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -121,7 +157,7 @@ func (m *PriceFeeder) Reset() { *m = PriceFeeder{} } func (m *PriceFeeder) String() string { return proto.CompactTextString(m) } func (*PriceFeeder) ProtoMessage() {} func (*PriceFeeder) Descriptor() ([]byte, []int) { - return fileDescriptor_9fad3fefa6783858, []int{2} + return fileDescriptor_9fad3fefa6783858, []int{3} } func (m *PriceFeeder) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -160,7 +196,7 @@ func (m *Pool) Reset() { *m = Pool{} } func (m *Pool) String() string { return proto.CompactTextString(m) } func (*Pool) ProtoMessage() {} func (*Pool) Descriptor() ([]byte, []int) { - return fileDescriptor_9fad3fefa6783858, []int{3} + return fileDescriptor_9fad3fefa6783858, []int{4} } func (m *Pool) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -200,7 +236,7 @@ func (m *PoolAsset) Reset() { *m = PoolAsset{} } func (m *PoolAsset) String() string { return proto.CompactTextString(m) } func (*PoolAsset) ProtoMessage() {} func (*PoolAsset) Descriptor() ([]byte, []int) { - return fileDescriptor_9fad3fefa6783858, []int{4} + return fileDescriptor_9fad3fefa6783858, []int{5} } func (m *PoolAsset) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -239,7 +275,7 @@ func (m *AccountedPool) Reset() { *m = AccountedPool{} } func (m *AccountedPool) String() string { return proto.CompactTextString(m) } func (*AccountedPool) ProtoMessage() {} func (*AccountedPool) Descriptor() ([]byte, []int) { - return fileDescriptor_9fad3fefa6783858, []int{5} + return fileDescriptor_9fad3fefa6783858, []int{6} } func (m *AccountedPool) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -270,6 +306,7 @@ var xxx_messageInfo_AccountedPool proto.InternalMessageInfo func init() { proto.RegisterType((*AssetInfo)(nil), "ojo.oracle.v1.AssetInfo") + proto.RegisterType((*LatestPrice)(nil), "ojo.oracle.v1.LatestPrice") proto.RegisterType((*Price)(nil), "ojo.oracle.v1.Price") proto.RegisterType((*PriceFeeder)(nil), "ojo.oracle.v1.PriceFeeder") proto.RegisterType((*Pool)(nil), "ojo.oracle.v1.Pool") @@ -280,48 +317,47 @@ func init() { func init() { proto.RegisterFile("ojo/oracle/v1/elys.proto", fileDescriptor_9fad3fefa6783858) } var fileDescriptor_9fad3fefa6783858 = []byte{ - // 643 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcd, 0x4e, 0xdb, 0x4c, - 0x14, 0x8d, 0x21, 0x09, 0x64, 0x0c, 0x9b, 0x11, 0x1f, 0x9f, 0x81, 0xca, 0xd0, 0xac, 0xa8, 0x2a, - 0xec, 0x86, 0xaa, 0xeb, 0x2a, 0x01, 0x95, 0x46, 0x62, 0x81, 0x5c, 0x56, 0x55, 0x25, 0x77, 0x32, - 0x1e, 0x92, 0x21, 0xb6, 0xaf, 0xeb, 0x99, 0x04, 0xf2, 0x16, 0xdd, 0xf5, 0x45, 0x78, 0x08, 0x96, - 0x88, 0x55, 0xd5, 0x4a, 0xa8, 0x85, 0x57, 0xe8, 0x03, 0x54, 0xf3, 0x63, 0xda, 0xaa, 0x52, 0x2b, - 0x75, 0x37, 0xe7, 0x9e, 0x7b, 0x4f, 0xce, 0xfd, 0x89, 0x91, 0x07, 0xa7, 0x10, 0x42, 0x49, 0x68, - 0xca, 0xc2, 0x69, 0x27, 0x64, 0xe9, 0x4c, 0x04, 0x45, 0x09, 0x12, 0xf0, 0x32, 0x9c, 0x42, 0x60, - 0x98, 0x60, 0xda, 0x59, 0x5f, 0x19, 0xc2, 0x10, 0x34, 0x13, 0xaa, 0x97, 0x49, 0x5a, 0x5f, 0xa3, - 0x20, 0x32, 0x10, 0xb1, 0x21, 0x0c, 0xb0, 0x94, 0x6f, 0x50, 0x38, 0x20, 0x42, 0x49, 0x0f, 0x98, - 0x24, 0x9d, 0x90, 0x02, 0xcf, 0x0d, 0xdf, 0xfe, 0xe0, 0xa0, 0x56, 0x57, 0x08, 0x26, 0xfb, 0xf9, - 0x09, 0xe0, 0x15, 0xd4, 0x48, 0x58, 0x0e, 0x99, 0xe7, 0x6c, 0x39, 0xdb, 0xad, 0xc8, 0x00, 0xec, - 0xa1, 0x85, 0x84, 0x8b, 0x22, 0x25, 0x33, 0x6f, 0x4e, 0xc7, 0x2b, 0x88, 0x37, 0x91, 0x3b, 0x20, - 0x79, 0x12, 0x4b, 0x4e, 0xc7, 0xac, 0xf4, 0xe6, 0x35, 0x8b, 0x54, 0xe8, 0x58, 0x47, 0x54, 0x82, - 0x6a, 0xa6, 0x4a, 0xa8, 0x9b, 0x04, 0x15, 0xb2, 0x09, 0x4a, 0x9b, 0x51, 0x9e, 0x91, 0xd4, 0x6b, - 0x6c, 0x39, 0xdb, 0xf5, 0xa8, 0x82, 0xed, 0xcf, 0x0e, 0x6a, 0x1c, 0x95, 0x9c, 0x32, 0xe5, 0x8a, - 0x28, 0x8b, 0x95, 0x2b, 0x0d, 0xf0, 0x01, 0x6a, 0x14, 0x8a, 0x36, 0x9e, 0x7a, 0x9d, 0xcb, 0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e, 0x26, 0x72, 0x56, 0x30, 0x31, - 0x68, 0xea, 0x3f, 0xfb, 0xd3, 0xef, 0x01, 0x00, 0x00, 0xff, 0xff, 0x15, 0xaa, 0x84, 0x47, 0x68, - 0x04, 0x00, 0x00, + // 636 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xc1, 0x4e, 0xdb, 0x4c, + 0x10, 0x8e, 0x21, 0x09, 0x64, 0x0d, 0x97, 0x15, 0x3f, 0xbf, 0x81, 0xca, 0x50, 0x9f, 0xa8, 0x2a, + 0xec, 0x86, 0xaa, 0xe7, 0x2a, 0x01, 0x95, 0x46, 0xe2, 0x80, 0x5c, 0x4e, 0x55, 0x25, 0x77, 0xb3, + 0x5e, 0x92, 0x25, 0x6b, 0x8f, 0xeb, 0x5d, 0x02, 0x79, 0x8b, 0x3e, 0x0c, 0x6f, 0xd0, 0x0b, 0x47, + 0xc4, 0xa9, 0xea, 0x01, 0xb5, 0xe4, 0x15, 0xfa, 0x00, 0x95, 0x77, 0xed, 0xd0, 0xaa, 0x6a, 0x2b, + 0xb5, 0xb7, 0xfd, 0xe6, 0x9b, 0xf9, 0xc6, 0xf3, 0xcd, 0xc8, 0xc8, 0x81, 0x53, 0x08, 0x20, 0x27, + 0x54, 0xb0, 0x60, 0xdc, 0x0e, 0x98, 0x98, 0x48, 0x3f, 0xcb, 0x41, 0x01, 0x5e, 0x86, 0x53, 0xf0, + 0x0d, 0xe3, 0x8f, 0xdb, 0xeb, 0x2b, 0x03, 0x18, 0x80, 0x66, 0x82, 0xe2, 0x65, 0x92, 0xd6, 0xd7, + 0x28, 0xc8, 0x04, 0x64, 0x64, 0x08, 0x03, 0x4a, 0xca, 0x35, 0x28, 0xe8, 0x13, 0x59, 0x48, 0xf7, + 0x99, 0x22, 0xed, 0x80, 0x02, 0x4f, 0x0d, 0xef, 0x25, 0xa8, 0xd5, 0x91, 0x92, 0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, 0xfe, 0xe6, 0x04, 0x56, 0x2b, 0xc9, 0xc3, + 0x4a, 0x31, 0x2c, 0x04, 0x3d, 0x81, 0x96, 0x3b, 0x94, 0xc2, 0x59, 0xaa, 0x58, 0xfc, 0x7b, 0x87, + 0xbb, 0x68, 0x49, 0x81, 0x22, 0x22, 0xd2, 0xa3, 0x56, 0x16, 0xff, 0xd1, 0x19, 0x5b, 0x17, 0x1d, + 0xeb, 0x9a, 0xee, 0xc1, 0xd5, 0x17, 0xb7, 0x76, 0x75, 0xe7, 0x5a, 0xd7, 0x77, 0xae, 0xf5, 0xf9, + 0xce, 0xb5, 0xde, 0x4f, 0xdd, 0xda, 0xf5, 0xd4, 0xad, 0x7d, 0x9c, 0xba, 0xb5, 0xd7, 0x8f, 0x06, + 0x5c, 0x0d, 0xcf, 0xfa, 0x3e, 0x85, 0x24, 0x80, 0x53, 0xd8, 0x49, 0x99, 0x3a, 0x87, 0x7c, 0x54, + 0xbc, 0x83, 0x8b, 0xea, 0x2f, 0xa4, 0x26, 0x19, 0x93, 0xfd, 0xa6, 0xfe, 0x49, 0x3c, 0xfd, 0x16, + 0x00, 0x00, 0xff, 0xff, 0xa6, 0x20, 0x34, 0xae, 0xa0, 0x04, 0x00, 0x00, } func (m *AssetInfo) Marshal() (dAtA []byte, err error) { @@ -347,19 +383,12 @@ func (m *AssetInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { if m.Decimal != 0 { i = encodeVarintElys(dAtA, i, uint64(m.Decimal)) i-- - dAtA[i] = 0x28 - } - if len(m.ElysTicker) > 0 { - i -= len(m.ElysTicker) - copy(dAtA[i:], m.ElysTicker) - i = encodeVarintElys(dAtA, i, uint64(len(m.ElysTicker))) - i-- - dAtA[i] = 0x22 + dAtA[i] = 0x20 } - if len(m.BandTicker) > 0 { - i -= len(m.BandTicker) - copy(dAtA[i:], m.BandTicker) - i = encodeVarintElys(dAtA, i, uint64(len(m.BandTicker))) + if len(m.Ticker) > 0 { + i -= len(m.Ticker) + copy(dAtA[i:], m.Ticker) + i = encodeVarintElys(dAtA, i, uint64(len(m.Ticker))) i-- dAtA[i] = 0x1a } @@ -380,6 +409,46 @@ func (m *AssetInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *LatestPrice) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LatestPrice) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LatestPrice) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.LatestPrice.Size() + i -= size + if _, err := m.LatestPrice.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintElys(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintElys(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *Price) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -403,25 +472,18 @@ func (m *Price) MarshalToSizedBuffer(dAtA []byte) (int, error) { if m.BlockHeight != 0 { i = encodeVarintElys(dAtA, i, uint64(m.BlockHeight)) i-- - dAtA[i] = 0x30 + dAtA[i] = 0x28 } if m.Timestamp != 0 { i = encodeVarintElys(dAtA, i, uint64(m.Timestamp)) i-- - dAtA[i] = 0x28 + dAtA[i] = 0x20 } if len(m.Provider) > 0 { i -= len(m.Provider) copy(dAtA[i:], m.Provider) i = encodeVarintElys(dAtA, i, uint64(len(m.Provider))) i-- - dAtA[i] = 0x22 - } - if len(m.Source) > 0 { - i -= len(m.Source) - copy(dAtA[i:], m.Source) - i = encodeVarintElys(dAtA, i, uint64(len(m.Source))) - i-- dAtA[i] = 0x1a } { @@ -646,11 +708,7 @@ func (m *AssetInfo) Size() (n int) { if l > 0 { n += 1 + l + sovElys(uint64(l)) } - l = len(m.BandTicker) - if l > 0 { - n += 1 + l + sovElys(uint64(l)) - } - l = len(m.ElysTicker) + l = len(m.Ticker) if l > 0 { n += 1 + l + sovElys(uint64(l)) } @@ -660,22 +718,33 @@ func (m *AssetInfo) Size() (n int) { return n } -func (m *Price) Size() (n int) { +func (m *LatestPrice) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Asset) + l = len(m.Denom) if l > 0 { n += 1 + l + sovElys(uint64(l)) } - l = m.Price.Size() + l = m.LatestPrice.Size() n += 1 + l + sovElys(uint64(l)) - l = len(m.Source) + return n +} + +func (m *Price) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Asset) if l > 0 { n += 1 + l + sovElys(uint64(l)) } + l = m.Price.Size() + n += 1 + l + sovElys(uint64(l)) l = len(m.Provider) if l > 0 { n += 1 + l + sovElys(uint64(l)) @@ -857,7 +926,7 @@ func (m *AssetInfo) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BandTicker", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ticker", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -885,11 +954,80 @@ func (m *AssetInfo) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BandTicker = string(dAtA[iNdEx:postIndex]) + m.Ticker = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Decimal", wireType) + } + m.Decimal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Decimal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipElys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthElys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LatestPrice) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowElys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LatestPrice: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LatestPrice: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ElysTicker", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -917,13 +1055,13 @@ func (m *AssetInfo) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ElysTicker = string(dAtA[iNdEx:postIndex]) + m.Denom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Decimal", wireType) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestPrice", wireType) } - m.Decimal = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowElys @@ -933,11 +1071,26 @@ func (m *AssetInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Decimal |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthElys + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthElys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.LatestPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipElys(dAtA[iNdEx:]) @@ -1055,38 +1208,6 @@ func (m *Price) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowElys - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthElys - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthElys - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Source = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Provider", wireType) } @@ -1118,7 +1239,7 @@ func (m *Price) Unmarshal(dAtA []byte) error { } m.Provider = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) } @@ -1137,7 +1258,7 @@ func (m *Price) Unmarshal(dAtA []byte) error { break } } - case 6: + case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } diff --git a/x/oracle/types/keys.go b/x/oracle/types/keys.go index f521b131..3a60cf1a 100644 --- a/x/oracle/types/keys.go +++ b/x/oracle/types/keys.go @@ -97,8 +97,8 @@ func KeyParamUpdatePlan(planHeight uint64) (key []byte) { } // KeyPrice - stored by *asset, source, and timestamp* -func KeyPrice(asset string, source string, timestamp uint64) (key []byte) { - return util.ConcatBytes(0, KeyPrefixPrice, []byte(asset), []byte(source), util.UintWithNullPrefix(timestamp)) +func KeyPrice(asset string, timestamp uint64) (key []byte) { + return util.ConcatBytes(0, KeyPrefixPrice, []byte(asset), util.UintWithNullPrefix(timestamp)) } // KeyPriceAsset - stored by *asset* @@ -106,11 +106,6 @@ func KeyPriceAsset(asset string) (key []byte) { return util.ConcatBytes(0, KeyPrefixPrice, []byte(asset)) } -// KeyPriceAssetAndSource - stored by *asset and source* -func KeyPriceAssetAndSource(asset string, source string) (key []byte) { - return util.ConcatBytes(0, KeyPrefixPrice, []byte(asset), []byte(source)) -} - // KeyAssetInfo - stored by *asset* func KeyAssetInfo(asset string) (key []byte) { return util.ConcatBytes(0, KeyPrefixAssetInfo, []byte(asset)) diff --git a/x/oracle/types/query.pb.go b/x/oracle/types/query.pb.go index 1f395c28..c116ea25 100644 --- a/x/oracle/types/query.pb.go +++ b/x/oracle/types/query.pb.go @@ -8,6 +8,7 @@ import ( fmt "fmt" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" + query "github.com/cosmos/cosmos-sdk/types/query" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" _ "github.com/gogo/protobuf/gogoproto" @@ -1063,25 +1064,24 @@ func (m *QueryValidatorRewardSetResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryValidatorRewardSetResponse proto.InternalMessageInfo -// QueryPriceRequest is the request type for the Query/PriceRequest RPC method. -type QueryPriceRequest struct { - Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` - Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` - Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +// QueryLatestPricesRequest is the request type for the Query/LatestPrices RPC method. +type QueryLatestPricesRequest struct { + Denoms []string `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms,omitempty"` + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryPriceRequest) Reset() { *m = QueryPriceRequest{} } -func (m *QueryPriceRequest) String() string { return proto.CompactTextString(m) } -func (*QueryPriceRequest) ProtoMessage() {} -func (*QueryPriceRequest) Descriptor() ([]byte, []int) { +func (m *QueryLatestPricesRequest) Reset() { *m = QueryLatestPricesRequest{} } +func (m *QueryLatestPricesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryLatestPricesRequest) ProtoMessage() {} +func (*QueryLatestPricesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_ac3bb5b34dcda556, []int{26} } -func (m *QueryPriceRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryLatestPricesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryLatestPricesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryPriceRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryLatestPricesRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1091,35 +1091,36 @@ func (m *QueryPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *QueryPriceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPriceRequest.Merge(m, src) +func (m *QueryLatestPricesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryLatestPricesRequest.Merge(m, src) } -func (m *QueryPriceRequest) XXX_Size() int { +func (m *QueryLatestPricesRequest) XXX_Size() int { return m.Size() } -func (m *QueryPriceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPriceRequest.DiscardUnknown(m) +func (m *QueryLatestPricesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryLatestPricesRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryPriceRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryLatestPricesRequest proto.InternalMessageInfo -// QueryPriceResponse is the response type for the Query/PriceRequest RPC method. -type QueryPriceResponse struct { - Price Price `protobuf:"bytes,1,opt,name=price,proto3" json:"price"` +// QueryLatestPricesResponse is the response type for the Query/LatestPrices RPC method. +type QueryLatestPricesResponse struct { + Prices []*LatestPrice `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryPriceResponse) Reset() { *m = QueryPriceResponse{} } -func (m *QueryPriceResponse) String() string { return proto.CompactTextString(m) } -func (*QueryPriceResponse) ProtoMessage() {} -func (*QueryPriceResponse) Descriptor() ([]byte, []int) { +func (m *QueryLatestPricesResponse) Reset() { *m = QueryLatestPricesResponse{} } +func (m *QueryLatestPricesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryLatestPricesResponse) ProtoMessage() {} +func (*QueryLatestPricesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_ac3bb5b34dcda556, []int{27} } -func (m *QueryPriceResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryLatestPricesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryLatestPricesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryPriceResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryLatestPricesResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1129,34 +1130,34 @@ func (m *QueryPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *QueryPriceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPriceResponse.Merge(m, src) +func (m *QueryLatestPricesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryLatestPricesResponse.Merge(m, src) } -func (m *QueryPriceResponse) XXX_Size() int { +func (m *QueryLatestPricesResponse) XXX_Size() int { return m.Size() } -func (m *QueryPriceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPriceResponse.DiscardUnknown(m) +func (m *QueryLatestPricesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryLatestPricesResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryPriceResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryLatestPricesResponse proto.InternalMessageInfo -// QueryPriceAllRequest is the request type for the Query/PriceAllRequest RPC method. -type QueryPriceAllRequest struct { +// QueryAllLatestPricesRequest is the request type for the Query/AllLatestPrices RPC method. +type QueryAllLatestPricesRequest struct { } -func (m *QueryPriceAllRequest) Reset() { *m = QueryPriceAllRequest{} } -func (m *QueryPriceAllRequest) String() string { return proto.CompactTextString(m) } -func (*QueryPriceAllRequest) ProtoMessage() {} -func (*QueryPriceAllRequest) Descriptor() ([]byte, []int) { +func (m *QueryAllLatestPricesRequest) Reset() { *m = QueryAllLatestPricesRequest{} } +func (m *QueryAllLatestPricesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllLatestPricesRequest) ProtoMessage() {} +func (*QueryAllLatestPricesRequest) Descriptor() ([]byte, []int) { return fileDescriptor_ac3bb5b34dcda556, []int{28} } -func (m *QueryPriceAllRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAllLatestPricesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryPriceAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllLatestPricesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryPriceAllRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllLatestPricesRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1166,35 +1167,36 @@ func (m *QueryPriceAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *QueryPriceAllRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPriceAllRequest.Merge(m, src) +func (m *QueryAllLatestPricesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllLatestPricesRequest.Merge(m, src) } -func (m *QueryPriceAllRequest) XXX_Size() int { +func (m *QueryAllLatestPricesRequest) XXX_Size() int { return m.Size() } -func (m *QueryPriceAllRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPriceAllRequest.DiscardUnknown(m) +func (m *QueryAllLatestPricesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllLatestPricesRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryPriceAllRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAllLatestPricesRequest proto.InternalMessageInfo -// QueryPriceAllResponse is the response type for the Query/AllPriceRequest RPC method. -type QueryPriceAllResponse struct { - Price []Price `protobuf:"bytes,1,rep,name=price,proto3" json:"price"` +// QueryAllLatestPricesResponse is the response type for the Query/AllLatestPrices RPC method. +type QueryAllLatestPricesResponse struct { + Prices []*LatestPrice `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryPriceAllResponse) Reset() { *m = QueryPriceAllResponse{} } -func (m *QueryPriceAllResponse) String() string { return proto.CompactTextString(m) } -func (*QueryPriceAllResponse) ProtoMessage() {} -func (*QueryPriceAllResponse) Descriptor() ([]byte, []int) { +func (m *QueryAllLatestPricesResponse) Reset() { *m = QueryAllLatestPricesResponse{} } +func (m *QueryAllLatestPricesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllLatestPricesResponse) ProtoMessage() {} +func (*QueryAllLatestPricesResponse) Descriptor() ([]byte, []int) { return fileDescriptor_ac3bb5b34dcda556, []int{29} } -func (m *QueryPriceAllResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryAllLatestPricesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryPriceAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllLatestPricesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryPriceAllResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllLatestPricesResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1204,17 +1206,94 @@ func (m *QueryPriceAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *QueryPriceAllResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPriceAllResponse.Merge(m, src) +func (m *QueryAllLatestPricesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllLatestPricesResponse.Merge(m, src) } -func (m *QueryPriceAllResponse) XXX_Size() int { +func (m *QueryAllLatestPricesResponse) XXX_Size() int { return m.Size() } -func (m *QueryPriceAllResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPriceAllResponse.DiscardUnknown(m) +func (m *QueryAllLatestPricesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllLatestPricesResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryPriceAllResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryAllLatestPricesResponse proto.InternalMessageInfo + +// QueryPriceHistoryRequest is the request type for the Query/PriceHistory RPC method. +type QueryPriceHistoryRequest struct { + Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` +} + +func (m *QueryPriceHistoryRequest) Reset() { *m = QueryPriceHistoryRequest{} } +func (m *QueryPriceHistoryRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPriceHistoryRequest) ProtoMessage() {} +func (*QueryPriceHistoryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{30} +} +func (m *QueryPriceHistoryRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryPriceHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryPriceHistoryRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryPriceHistoryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPriceHistoryRequest.Merge(m, src) +} +func (m *QueryPriceHistoryRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryPriceHistoryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPriceHistoryRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryPriceHistoryRequest proto.InternalMessageInfo + +// QueryPriceHistoryResponse is the response type for the Query/PriceHistory RPC method. +type QueryPriceHistoryResponse struct { + Prices []*Price `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryPriceHistoryResponse) Reset() { *m = QueryPriceHistoryResponse{} } +func (m *QueryPriceHistoryResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPriceHistoryResponse) ProtoMessage() {} +func (*QueryPriceHistoryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ac3bb5b34dcda556, []int{31} +} +func (m *QueryPriceHistoryResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryPriceHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryPriceHistoryResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryPriceHistoryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPriceHistoryResponse.Merge(m, src) +} +func (m *QueryPriceHistoryResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryPriceHistoryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPriceHistoryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryPriceHistoryResponse proto.InternalMessageInfo // QueryPoolRequest is the request type for the Query/PoolRequest RPC method. type QueryPoolRequest struct { @@ -1225,7 +1304,7 @@ func (m *QueryPoolRequest) Reset() { *m = QueryPoolRequest{} } func (m *QueryPoolRequest) String() string { return proto.CompactTextString(m) } func (*QueryPoolRequest) ProtoMessage() {} func (*QueryPoolRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ac3bb5b34dcda556, []int{30} + return fileDescriptor_ac3bb5b34dcda556, []int{32} } func (m *QueryPoolRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1263,7 +1342,7 @@ func (m *QueryPoolResponse) Reset() { *m = QueryPoolResponse{} } func (m *QueryPoolResponse) String() string { return proto.CompactTextString(m) } func (*QueryPoolResponse) ProtoMessage() {} func (*QueryPoolResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ac3bb5b34dcda556, []int{31} + return fileDescriptor_ac3bb5b34dcda556, []int{33} } func (m *QueryPoolResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1300,7 +1379,7 @@ func (m *QueryPoolAllRequest) Reset() { *m = QueryPoolAllRequest{} } func (m *QueryPoolAllRequest) String() string { return proto.CompactTextString(m) } func (*QueryPoolAllRequest) ProtoMessage() {} func (*QueryPoolAllRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ac3bb5b34dcda556, []int{32} + return fileDescriptor_ac3bb5b34dcda556, []int{34} } func (m *QueryPoolAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1338,7 +1417,7 @@ func (m *QueryPoolAllResponse) Reset() { *m = QueryPoolAllResponse{} } func (m *QueryPoolAllResponse) String() string { return proto.CompactTextString(m) } func (*QueryPoolAllResponse) ProtoMessage() {} func (*QueryPoolAllResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ac3bb5b34dcda556, []int{33} + return fileDescriptor_ac3bb5b34dcda556, []int{35} } func (m *QueryPoolAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1376,7 +1455,7 @@ func (m *QueryAccountedPoolRequest) Reset() { *m = QueryAccountedPoolReq func (m *QueryAccountedPoolRequest) String() string { return proto.CompactTextString(m) } func (*QueryAccountedPoolRequest) ProtoMessage() {} func (*QueryAccountedPoolRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ac3bb5b34dcda556, []int{34} + return fileDescriptor_ac3bb5b34dcda556, []int{36} } func (m *QueryAccountedPoolRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1414,7 +1493,7 @@ func (m *QueryAccountedPoolResponse) Reset() { *m = QueryAccountedPoolRe func (m *QueryAccountedPoolResponse) String() string { return proto.CompactTextString(m) } func (*QueryAccountedPoolResponse) ProtoMessage() {} func (*QueryAccountedPoolResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ac3bb5b34dcda556, []int{35} + return fileDescriptor_ac3bb5b34dcda556, []int{37} } func (m *QueryAccountedPoolResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1451,7 +1530,7 @@ func (m *QueryAccountedPoolAllRequest) Reset() { *m = QueryAccountedPool func (m *QueryAccountedPoolAllRequest) String() string { return proto.CompactTextString(m) } func (*QueryAccountedPoolAllRequest) ProtoMessage() {} func (*QueryAccountedPoolAllRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ac3bb5b34dcda556, []int{36} + return fileDescriptor_ac3bb5b34dcda556, []int{38} } func (m *QueryAccountedPoolAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1489,7 +1568,7 @@ func (m *QueryAccountedPoolAllResponse) Reset() { *m = QueryAccountedPoo func (m *QueryAccountedPoolAllResponse) String() string { return proto.CompactTextString(m) } func (*QueryAccountedPoolAllResponse) ProtoMessage() {} func (*QueryAccountedPoolAllResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ac3bb5b34dcda556, []int{37} + return fileDescriptor_ac3bb5b34dcda556, []int{39} } func (m *QueryAccountedPoolAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1527,7 +1606,7 @@ func (m *QueryAssetInfoRequest) Reset() { *m = QueryAssetInfoRequest{} } func (m *QueryAssetInfoRequest) String() string { return proto.CompactTextString(m) } func (*QueryAssetInfoRequest) ProtoMessage() {} func (*QueryAssetInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ac3bb5b34dcda556, []int{38} + return fileDescriptor_ac3bb5b34dcda556, []int{40} } func (m *QueryAssetInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1565,7 +1644,7 @@ func (m *QueryAssetInfoResponse) Reset() { *m = QueryAssetInfoResponse{} func (m *QueryAssetInfoResponse) String() string { return proto.CompactTextString(m) } func (*QueryAssetInfoResponse) ProtoMessage() {} func (*QueryAssetInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ac3bb5b34dcda556, []int{39} + return fileDescriptor_ac3bb5b34dcda556, []int{41} } func (m *QueryAssetInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1602,7 +1681,7 @@ func (m *QueryAssetInfoAllRequest) Reset() { *m = QueryAssetInfoAllReque func (m *QueryAssetInfoAllRequest) String() string { return proto.CompactTextString(m) } func (*QueryAssetInfoAllRequest) ProtoMessage() {} func (*QueryAssetInfoAllRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ac3bb5b34dcda556, []int{40} + return fileDescriptor_ac3bb5b34dcda556, []int{42} } func (m *QueryAssetInfoAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1640,7 +1719,7 @@ func (m *QueryAssetInfoAllResponse) Reset() { *m = QueryAssetInfoAllResp func (m *QueryAssetInfoAllResponse) String() string { return proto.CompactTextString(m) } func (*QueryAssetInfoAllResponse) ProtoMessage() {} func (*QueryAssetInfoAllResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ac3bb5b34dcda556, []int{41} + return fileDescriptor_ac3bb5b34dcda556, []int{43} } func (m *QueryAssetInfoAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1696,10 +1775,12 @@ func init() { proto.RegisterType((*QueryMedianDeviationsResponse)(nil), "ojo.oracle.v1.QueryMedianDeviationsResponse") proto.RegisterType((*QueryValidatorRewardSet)(nil), "ojo.oracle.v1.QueryValidatorRewardSet") proto.RegisterType((*QueryValidatorRewardSetResponse)(nil), "ojo.oracle.v1.QueryValidatorRewardSetResponse") - proto.RegisterType((*QueryPriceRequest)(nil), "ojo.oracle.v1.QueryPriceRequest") - proto.RegisterType((*QueryPriceResponse)(nil), "ojo.oracle.v1.QueryPriceResponse") - proto.RegisterType((*QueryPriceAllRequest)(nil), "ojo.oracle.v1.QueryPriceAllRequest") - proto.RegisterType((*QueryPriceAllResponse)(nil), "ojo.oracle.v1.QueryPriceAllResponse") + proto.RegisterType((*QueryLatestPricesRequest)(nil), "ojo.oracle.v1.QueryLatestPricesRequest") + proto.RegisterType((*QueryLatestPricesResponse)(nil), "ojo.oracle.v1.QueryLatestPricesResponse") + proto.RegisterType((*QueryAllLatestPricesRequest)(nil), "ojo.oracle.v1.QueryAllLatestPricesRequest") + proto.RegisterType((*QueryAllLatestPricesResponse)(nil), "ojo.oracle.v1.QueryAllLatestPricesResponse") + proto.RegisterType((*QueryPriceHistoryRequest)(nil), "ojo.oracle.v1.QueryPriceHistoryRequest") + proto.RegisterType((*QueryPriceHistoryResponse)(nil), "ojo.oracle.v1.QueryPriceHistoryResponse") proto.RegisterType((*QueryPoolRequest)(nil), "ojo.oracle.v1.QueryPoolRequest") proto.RegisterType((*QueryPoolResponse)(nil), "ojo.oracle.v1.QueryPoolResponse") proto.RegisterType((*QueryPoolAllRequest)(nil), "ojo.oracle.v1.QueryPoolAllRequest") @@ -1717,116 +1798,123 @@ func init() { func init() { proto.RegisterFile("ojo/oracle/v1/query.proto", fileDescriptor_ac3bb5b34dcda556) } var fileDescriptor_ac3bb5b34dcda556 = []byte{ - // 1737 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x98, 0xdf, 0x4f, 0xdc, 0xc6, - 0x16, 0xc7, 0x71, 0xf8, 0x15, 0xce, 0x66, 0x09, 0x4c, 0x20, 0x59, 0x1c, 0xb2, 0x80, 0x81, 0x00, - 0x17, 0x58, 0x87, 0x10, 0xdd, 0x28, 0xf7, 0xde, 0x5c, 0x5d, 0x7e, 0x25, 0x97, 0x7b, 0x5b, 0x89, - 0x6c, 0xd4, 0x44, 0xca, 0x43, 0xb7, 0x66, 0x3d, 0x59, 0x4c, 0x76, 0x3d, 0x1b, 0x8f, 0x59, 0x88, - 0x28, 0x8a, 0x94, 0xa7, 0x3e, 0xb5, 0x51, 0x23, 0xf5, 0xa5, 0x0f, 0x4d, 0xa5, 0xa8, 0x95, 0xaa, - 0xfe, 0x21, 0x79, 0x8c, 0xd4, 0x97, 0x3e, 0xf5, 0x47, 0xd2, 0x87, 0xfe, 0x19, 0x95, 0xc7, 0x63, - 0xef, 0xd8, 0x1e, 0xb3, 0x4b, 0x9e, 0xc0, 0xe7, 0x9c, 0x39, 0xe7, 0x33, 0xc7, 0xf3, 0xe3, 0xbb, - 0x86, 0x11, 0xb2, 0x4b, 0x74, 0xe2, 0x18, 0xe5, 0x2a, 0xd6, 0x1b, 0x4b, 0xfa, 0xe3, 0x3d, 0xec, - 0x3c, 0x29, 0xd4, 0x1d, 0xe2, 0x12, 0x94, 0x25, 0xbb, 0xa4, 0xe0, 0x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7d, 0xe7, - 0x5d, 0xa6, 0x31, 0xc1, 0x8e, 0xe6, 0x5b, 0x22, 0x08, 0x5d, 0x5b, 0x68, 0x2f, 0x38, 0xa1, 0x39, - 0x4e, 0x86, 0x8c, 0x3e, 0x57, 0xa0, 0x2f, 0x14, 0xc4, 0x29, 0xd7, 0x7d, 0xec, 0xc7, 0x80, 0x3a, - 0xdd, 0x22, 0x2a, 0x71, 0x6b, 0xa6, 0x2e, 0xe5, 0xa6, 0x56, 0x0f, 0x25, 0xee, 0x17, 0x0a, 0x9c, - 0x11, 0xa5, 0x7d, 0x8a, 0xb6, 0x4d, 0xfe, 0x30, 0x50, 0x67, 0x5b, 0x07, 0x72, 0xb2, 0x05, 0x46, - 0x76, 0x19, 0x4d, 0xb5, 0x43, 0xb6, 0x7a, 0xfb, 0xf5, 0xef, 0xf9, 0x8e, 0xd7, 0x6f, 0xf3, 0xca, - 0x9b, 0xb7, 0x79, 0xe5, 0xb7, 0xb7, 0x79, 0xe5, 0xf9, 0xbb, 0x7c, 0xc7, 0x9b, 0x77, 0xf9, 0x8e, - 0x9f, 0xdf, 0xe5, 0x3b, 0x1e, 0xcc, 0x09, 0xdf, 0xc7, 0xc9, 0x2e, 0x09, 0x93, 0x79, 0x87, 0xd9, - 0x41, 0x90, 0x8d, 0x7d, 0x26, 0xdf, 0xee, 0x61, 0x1f, 0xf9, 0x97, 0xff, 0x0a, 0x00, 0x00, 0xff, - 0xff, 0xc1, 0xff, 0xa9, 0xf5, 0x9a, 0x18, 0x00, 0x00, + // 1850 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x99, 0xcf, 0x4f, 0x1c, 0xc9, + 0x15, 0xc7, 0xe9, 0x05, 0x43, 0x78, 0xc3, 0x60, 0x28, 0xc3, 0x1a, 0xda, 0x30, 0x40, 0xdb, 0x18, + 0x58, 0x60, 0xda, 0x80, 0x95, 0x8d, 0x93, 0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 0xf5, 0x0e, 0x74, 0xa3, 0x56, 0x06, + 0x62, 0x57, 0x5c, 0x02, 0xf1, 0xec, 0x87, 0xef, 0x54, 0x66, 0x2a, 0x2e, 0x85, 0x44, 0x98, 0x78, + 0x19, 0x3f, 0x84, 0xe1, 0xf6, 0x32, 0xa4, 0x02, 0x2f, 0x76, 0xb3, 0x84, 0x87, 0x6d, 0xfe, 0xa2, + 0x25, 0x87, 0x37, 0xc6, 0xe1, 0x5a, 0x36, 0x29, 0x35, 0x5a, 0x70, 0x43, 0x31, 0x1c, 0xc3, 0x3c, + 0x82, 0xab, 0x49, 0x98, 0xa8, 0xa0, 0x97, 0xa5, 0x19, 0xb6, 0x92, 0x79, 0x8b, 0x50, 0x60, 0x79, + 0xf7, 0x2c, 0xdf, 0x6a, 0x50, 0xe3, 0x7b, 0x82, 0x8e, 0xff, 0x8c, 0xd3, 0x6f, 0x40, 0x7f, 0x93, + 0x8d, 0x88, 0x1a, 0x8c, 0xa7, 0xb2, 0x72, 0x77, 0x91, 0x42, 0xb8, 0x1a, 0x9f, 0xc1, 0x10, 0x3f, + 0xa7, 0xd8, 0x76, 0x2c, 0x2f, 0xe7, 0x92, 0x46, 0x53, 0x30, 0xe8, 0x1d, 0x35, 0x1e, 0x04, 0x56, + 0xa3, 0x49, 0x27, 0xde, 0x9b, 0xd5, 0x16, 0x8b, 0x95, 0xf6, 0x80, 0xf4, 0xb1, 0x3e, 0x87, 0x31, + 0x39, 0x5a, 0x8c, 0x76, 0x0f, 0x06, 0x1a, 0x7c, 0x48, 0x54, 0x64, 0x32, 0xcd, 0xe6, 0x3b, 0x35, + 0xcc, 0xc2, 0x09, 0xbe, 0xc8, 0xdf, 0xf8, 0x50, 0x1c, 0x58, 0x1e, 0x72, 0x07, 0xb7, 0x1c, 0xfe, + 0xd8, 0x75, 0x7c, 0x4e, 0x5c, 0x71, 0x3e, 0xd3, 0x13, 0x63, 0xa8, 0xef, 0xc3, 0x48, 0x23, 0x65, + 0xeb, 0x96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 0x5c, 0xc8, 0xdd, 0x38, 0x5a, 0x54, 0x37, 0x6b, 0x59, 0x15, 0x93, 0xf3, 0x6a, 0xa8, 0x94, + 0x8b, 0xf4, 0x6a, 0x28, 0x58, 0xa2, 0x19, 0xac, 0x26, 0x49, 0x51, 0x21, 0x95, 0xe8, 0x0f, 0x61, + 0xa7, 0x90, 0x52, 0x23, 0x68, 0xb9, 0x23, 0x82, 0x54, 0xb5, 0x95, 0xee, 0x9c, 0xbb, 0xd8, 0x45, + 0x17, 0x21, 0xa3, 0x5f, 0x68, 0x30, 0x18, 0x77, 0xfb, 0x39, 0xbd, 0x4c, 0x4a, 0xe9, 0xe8, 0xf3, + 0x1d, 0xbc, 0x32, 0x2d, 0x41, 0xfe, 0x91, 0x8b, 0x85, 0x48, 0xdc, 0xbf, 0xff, 0x52, 0x83, 0x21, + 0x59, 0xb7, 0xe4, 0x34, 0xee, 0x59, 0xd5, 0xa3, 0x3e, 0x73, 0x2a, 0x09, 0x64, 0xac, 0x30, 0xb2, + 0xdb, 0xe8, 0x56, 0x37, 0x64, 0x5b, 0x9f, 0xbc, 0xfa, 0x67, 0xa9, 0xe7, 0xd5, 0x9b, 0x92, 0xf6, + 0xfa, 0x4d, 0x49, 0xfb, 0xc7, 0x9b, 0x92, 0xf6, 0xf4, 0x6d, 0xa9, 0xe7, 0xf5, 0xdb, 0x52, 0xcf, + 0x5f, 0xdf, 0x96, 0x7a, 0xbe, 0x58, 0x92, 0xfe, 0x16, 0x43, 0x0e, 0x49, 0x1c, 0x2c, 0xbc, 0xa9, + 0x4f, 0xa2, 0x68, 0xec, 0x4f, 0x32, 0xfb, 0xfd, 0xec, 0x0f, 0x4a, 0x1b, 0xff, 0x0d, 0x00, 0x00, + 0xff, 0xff, 0x6a, 0x9e, 0x83, 0xf8, 0x32, 0x1b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1872,10 +1960,9 @@ type QueryClient interface { // earning rewards for voting on exchange rates based on their // misscounter in a given Slash Window ValidatorRewardSet(ctx context.Context, in *QueryValidatorRewardSet, opts ...grpc.CallOption) (*QueryValidatorRewardSetResponse, error) - // Queries a Price by asset. - Price(ctx context.Context, in *QueryPriceRequest, opts ...grpc.CallOption) (*QueryPriceResponse, error) - // Queries a list of Price items. - PriceAll(ctx context.Context, in *QueryPriceAllRequest, opts ...grpc.CallOption) (*QueryPriceAllResponse, error) + LatestPrices(ctx context.Context, in *QueryLatestPricesRequest, opts ...grpc.CallOption) (*QueryLatestPricesResponse, error) + AllLatestPrices(ctx context.Context, in *QueryAllLatestPricesRequest, opts ...grpc.CallOption) (*QueryAllLatestPricesResponse, error) + PriceHistory(ctx context.Context, in *QueryPriceHistoryRequest, opts ...grpc.CallOption) (*QueryPriceHistoryResponse, error) // Queries a Pool. Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error) // Queries a list of Pool items. @@ -2015,18 +2102,27 @@ func (c *queryClient) ValidatorRewardSet(ctx context.Context, in *QueryValidator return out, nil } -func (c *queryClient) Price(ctx context.Context, in *QueryPriceRequest, opts ...grpc.CallOption) (*QueryPriceResponse, error) { - out := new(QueryPriceResponse) - err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/Price", in, out, opts...) +func (c *queryClient) LatestPrices(ctx context.Context, in *QueryLatestPricesRequest, opts ...grpc.CallOption) (*QueryLatestPricesResponse, error) { + out := new(QueryLatestPricesResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/LatestPrices", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) AllLatestPrices(ctx context.Context, in *QueryAllLatestPricesRequest, opts ...grpc.CallOption) (*QueryAllLatestPricesResponse, error) { + out := new(QueryAllLatestPricesResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/AllLatestPrices", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) PriceAll(ctx context.Context, in *QueryPriceAllRequest, opts ...grpc.CallOption) (*QueryPriceAllResponse, error) { - out := new(QueryPriceAllResponse) - err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/PriceAll", in, out, opts...) +func (c *queryClient) PriceHistory(ctx context.Context, in *QueryPriceHistoryRequest, opts ...grpc.CallOption) (*QueryPriceHistoryResponse, error) { + out := new(QueryPriceHistoryResponse) + err := c.cc.Invoke(ctx, "/ojo.oracle.v1.Query/PriceHistory", in, out, opts...) if err != nil { return nil, err } @@ -2120,10 +2216,9 @@ type QueryServer interface { // earning rewards for voting on exchange rates based on their // misscounter in a given Slash Window ValidatorRewardSet(context.Context, *QueryValidatorRewardSet) (*QueryValidatorRewardSetResponse, error) - // Queries a Price by asset. - Price(context.Context, *QueryPriceRequest) (*QueryPriceResponse, error) - // Queries a list of Price items. - PriceAll(context.Context, *QueryPriceAllRequest) (*QueryPriceAllResponse, error) + LatestPrices(context.Context, *QueryLatestPricesRequest) (*QueryLatestPricesResponse, error) + AllLatestPrices(context.Context, *QueryAllLatestPricesRequest) (*QueryAllLatestPricesResponse, error) + PriceHistory(context.Context, *QueryPriceHistoryRequest) (*QueryPriceHistoryResponse, error) // Queries a Pool. Pool(context.Context, *QueryPoolRequest) (*QueryPoolResponse, error) // Queries a list of Pool items. @@ -2181,11 +2276,14 @@ func (*UnimplementedQueryServer) MedianDeviations(ctx context.Context, req *Quer func (*UnimplementedQueryServer) ValidatorRewardSet(ctx context.Context, req *QueryValidatorRewardSet) (*QueryValidatorRewardSetResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidatorRewardSet not implemented") } -func (*UnimplementedQueryServer) Price(ctx context.Context, req *QueryPriceRequest) (*QueryPriceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Price not implemented") +func (*UnimplementedQueryServer) LatestPrices(ctx context.Context, req *QueryLatestPricesRequest) (*QueryLatestPricesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LatestPrices not implemented") +} +func (*UnimplementedQueryServer) AllLatestPrices(ctx context.Context, req *QueryAllLatestPricesRequest) (*QueryAllLatestPricesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AllLatestPrices not implemented") } -func (*UnimplementedQueryServer) PriceAll(ctx context.Context, req *QueryPriceAllRequest) (*QueryPriceAllResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PriceAll not implemented") +func (*UnimplementedQueryServer) PriceHistory(ctx context.Context, req *QueryPriceHistoryRequest) (*QueryPriceHistoryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PriceHistory not implemented") } func (*UnimplementedQueryServer) Pool(ctx context.Context, req *QueryPoolRequest) (*QueryPoolResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Pool not implemented") @@ -2444,38 +2542,56 @@ func _Query_ValidatorRewardSet_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _Query_Price_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryPriceRequest) +func _Query_LatestPrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryLatestPricesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).Price(ctx, in) + return srv.(QueryServer).LatestPrices(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ojo.oracle.v1.Query/Price", + FullMethod: "/ojo.oracle.v1.Query/LatestPrices", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Price(ctx, req.(*QueryPriceRequest)) + return srv.(QueryServer).LatestPrices(ctx, req.(*QueryLatestPricesRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_PriceAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryPriceAllRequest) +func _Query_AllLatestPrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllLatestPricesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).PriceAll(ctx, in) + return srv.(QueryServer).AllLatestPrices(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/ojo.oracle.v1.Query/PriceAll", + FullMethod: "/ojo.oracle.v1.Query/AllLatestPrices", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PriceAll(ctx, req.(*QueryPriceAllRequest)) + return srv.(QueryServer).AllLatestPrices(ctx, req.(*QueryAllLatestPricesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_PriceHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPriceHistoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).PriceHistory(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ojo.oracle.v1.Query/PriceHistory", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).PriceHistory(ctx, req.(*QueryPriceHistoryRequest)) } return interceptor(ctx, in, info, handler) } @@ -2645,12 +2761,16 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_ValidatorRewardSet_Handler, }, { - MethodName: "Price", - Handler: _Query_Price_Handler, + MethodName: "LatestPrices", + Handler: _Query_LatestPrices_Handler, + }, + { + MethodName: "AllLatestPrices", + Handler: _Query_AllLatestPrices_Handler, }, { - MethodName: "PriceAll", - Handler: _Query_PriceAll_Handler, + MethodName: "PriceHistory", + Handler: _Query_PriceHistory_Handler, }, { MethodName: "Pool", @@ -3469,7 +3589,7 @@ func (m *QueryValidatorRewardSetResponse) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } -func (m *QueryPriceRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryLatestPricesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3479,39 +3599,90 @@ func (m *QueryPriceRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryPriceRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryLatestPricesRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryLatestPricesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Timestamp != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Timestamp)) + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x18 + dAtA[i] = 0x12 + } + if len(m.Denoms) > 0 { + for iNdEx := len(m.Denoms) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Denoms[iNdEx]) + copy(dAtA[i:], m.Denoms[iNdEx]) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Denoms[iNdEx]))) + i-- + dAtA[i] = 0xa + } } - if len(m.Source) > 0 { - i -= len(m.Source) - copy(dAtA[i:], m.Source) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Source))) + return len(dAtA) - i, nil +} + +func (m *QueryLatestPricesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryLatestPricesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryLatestPricesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0x12 } - if len(m.Asset) > 0 { - i -= len(m.Asset) - copy(dAtA[i:], m.Asset) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Asset))) - i-- - dAtA[i] = 0xa + if len(m.Prices) > 0 { + for iNdEx := len(m.Prices) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Prices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *QueryPriceResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAllLatestPricesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3521,30 +3692,69 @@ func (m *QueryPriceResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryPriceResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllLatestPricesRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllLatestPricesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - { - size, err := m.Price.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + return len(dAtA) - i, nil +} + +func (m *QueryAllLatestPricesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllLatestPricesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllLatestPricesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Prices) > 0 { + for iNdEx := len(m.Prices) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Prices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *QueryPriceAllRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryPriceHistoryRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3554,20 +3764,27 @@ func (m *QueryPriceAllRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryPriceAllRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPriceHistoryRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryPriceAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPriceHistoryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.Asset) > 0 { + i -= len(m.Asset) + copy(dAtA[i:], m.Asset) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Asset))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *QueryPriceAllResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryPriceHistoryResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3577,20 +3794,32 @@ func (m *QueryPriceAllResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryPriceAllResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPriceHistoryResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryPriceAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPriceHistoryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Price) > 0 { - for iNdEx := len(m.Price) - 1; iNdEx >= 0; iNdEx-- { + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Prices) > 0 { + for iNdEx := len(m.Prices) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Price[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Prices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -4299,58 +4528,101 @@ func (m *QueryValidatorRewardSetResponse) Size() (n int) { return n } -func (m *QueryPriceRequest) Size() (n int) { +func (m *QueryLatestPricesRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Asset) - if l > 0 { + if len(m.Denoms) > 0 { + for _, s := range m.Denoms { + l = len(s) + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } - l = len(m.Source) - if l > 0 { + return n +} + +func (m *QueryLatestPricesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Prices) > 0 { + for _, e := range m.Prices { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } - if m.Timestamp != 0 { - n += 1 + sovQuery(uint64(m.Timestamp)) + return n +} + +func (m *QueryAllLatestPricesRequest) Size() (n int) { + if m == nil { + return 0 } + var l int + _ = l return n } -func (m *QueryPriceResponse) Size() (n int) { +func (m *QueryAllLatestPricesResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = m.Price.Size() - n += 1 + l + sovQuery(uint64(l)) + if len(m.Prices) > 0 { + for _, e := range m.Prices { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } return n } -func (m *QueryPriceAllRequest) Size() (n int) { +func (m *QueryPriceHistoryRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l + l = len(m.Asset) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } return n } -func (m *QueryPriceAllResponse) Size() (n int) { +func (m *QueryPriceHistoryResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Price) > 0 { - for _, e := range m.Price { + if len(m.Prices) > 0 { + for _, e := range m.Prices { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } return n } @@ -6449,7 +6721,7 @@ func (m *QueryValidatorRewardSetResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPriceRequest) Unmarshal(dAtA []byte) error { +func (m *QueryLatestPricesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6472,15 +6744,15 @@ func (m *QueryPriceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPriceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryLatestPricesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPriceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryLatestPricesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denoms", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6508,13 +6780,13 @@ func (m *QueryPriceRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Asset = string(dAtA[iNdEx:postIndex]) + m.Denoms = append(m.Denoms, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6524,29 +6796,117 @@ func (m *QueryPriceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Source = string(dAtA[iNdEx:postIndex]) + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryLatestPricesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryLatestPricesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryLatestPricesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - m.Timestamp = 0 + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Prices = append(m.Prices, &LatestPrice{}) + if err := m.Prices[len(m.Prices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -6556,11 +6916,78 @@ func (m *QueryPriceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Timestamp |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllLatestPricesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAllLatestPricesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllLatestPricesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -6582,7 +7009,7 @@ func (m *QueryPriceRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPriceResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAllLatestPricesResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6605,15 +7032,15 @@ func (m *QueryPriceResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPriceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllLatestPricesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPriceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllLatestPricesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Prices", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6640,7 +7067,44 @@ func (m *QueryPriceResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Price.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Prices = append(m.Prices, &LatestPrice{}) + if err := m.Prices[len(m.Prices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6665,7 +7129,7 @@ func (m *QueryPriceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPriceAllRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPriceHistoryRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6688,12 +7152,44 @@ func (m *QueryPriceAllRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPriceAllRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPriceHistoryRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPriceAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPriceHistoryRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Asset", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Asset = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -6715,7 +7211,7 @@ func (m *QueryPriceAllRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPriceAllResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPriceHistoryResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6738,15 +7234,15 @@ func (m *QueryPriceAllResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPriceAllResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPriceHistoryResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPriceAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPriceHistoryResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Prices", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6773,8 +7269,44 @@ func (m *QueryPriceAllResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Price = append(m.Price, Price{}) - if err := m.Price[len(m.Price)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Prices = append(m.Prices, &Price{}) + if err := m.Prices[len(m.Prices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/oracle/types/query.pb.gw.go b/x/oracle/types/query.pb.gw.go index 9713cd8b..ee6387e1 100644 --- a/x/oracle/types/query.pb.gw.go +++ b/x/oracle/types/query.pb.gw.go @@ -484,11 +484,11 @@ func local_request_Query_ValidatorRewardSet_0(ctx context.Context, marshaler run } var ( - filter_Query_Price_0 = &utilities.DoubleArray{Encoding: map[string]int{"asset": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} + filter_Query_LatestPrices_0 = &utilities.DoubleArray{Encoding: map[string]int{"denoms": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) -func request_Query_Price_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryPriceRequest +func request_Query_LatestPrices_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryLatestPricesRequest var metadata runtime.ServerMetadata var ( @@ -498,31 +498,31 @@ func request_Query_Price_0(ctx context.Context, marshaler runtime.Marshaler, cli _ = err ) - val, ok = pathParams["asset"] + val, ok = pathParams["denoms"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "asset") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denoms") } - protoReq.Asset, err = runtime.String(val) + protoReq.Denoms, err = runtime.StringSlice(val, ",") if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "asset", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denoms", err) } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Price_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_LatestPrices_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.Price(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.LatestPrices(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_Price_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryPriceRequest +func local_request_Query_LatestPrices_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryLatestPricesRequest var metadata runtime.ServerMetadata var ( @@ -532,43 +532,97 @@ func local_request_Query_Price_0(ctx context.Context, marshaler runtime.Marshale _ = err ) - val, ok = pathParams["asset"] + val, ok = pathParams["denoms"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "asset") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "denoms") } - protoReq.Asset, err = runtime.String(val) + protoReq.Denoms, err = runtime.StringSlice(val, ",") if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "asset", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "denoms", err) } if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Price_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_LatestPrices_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.Price(ctx, &protoReq) + msg, err := server.LatestPrices(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_AllLatestPrices_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllLatestPricesRequest + var metadata runtime.ServerMetadata + + msg, err := client.AllLatestPrices(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func request_Query_PriceAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryPriceAllRequest +func local_request_Query_AllLatestPrices_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllLatestPricesRequest var metadata runtime.ServerMetadata - msg, err := client.PriceAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := server.AllLatestPrices(ctx, &protoReq) return msg, metadata, err } -func local_request_Query_PriceAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryPriceAllRequest +func request_Query_PriceHistory_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPriceHistoryRequest var metadata runtime.ServerMetadata - msg, err := server.PriceAll(ctx, &protoReq) + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["asset"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "asset") + } + + protoReq.Asset, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "asset", err) + } + + msg, err := client.PriceHistory(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_PriceHistory_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPriceHistoryRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["asset"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "asset") + } + + protoReq.Asset, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "asset", err) + } + + msg, err := server.PriceHistory(ctx, &protoReq) return msg, metadata, err } @@ -1094,7 +1148,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_Price_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_LatestPrices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1105,7 +1159,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_Price_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_LatestPrices_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1113,11 +1167,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_Price_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_LatestPrices_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_PriceAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_AllLatestPrices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1128,7 +1182,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_PriceAll_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_AllLatestPrices_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -1136,7 +1190,30 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_PriceAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_AllLatestPrices_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PriceHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_PriceHistory_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PriceHistory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1579,7 +1656,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_Price_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_LatestPrices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1588,18 +1665,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_Price_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_LatestPrices_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_Price_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_LatestPrices_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_PriceAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_AllLatestPrices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1608,14 +1685,34 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_PriceAll_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_AllLatestPrices_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_PriceAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_AllLatestPrices_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_PriceHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_PriceHistory_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_PriceHistory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1769,9 +1866,11 @@ var ( pattern_Query_ValidatorRewardSet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"ojo", "oracle", "v1", "valdiators", "validator_reward_set"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Price_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"elys-network", "elys", "oracle", "price", "asset"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_LatestPrices_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"elys-network", "elys", "oracle", "latest_prices", "denoms"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PriceAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"elys-network", "elys", "oracle", "prices"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_AllLatestPrices_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"elys-network", "elys", "oracle", "all_latest_prices"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_PriceHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"elys-network", "elys", "oracle", "price_history", "asset"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_Pool_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"elys-network", "elys", "amm", "pool", "pool_id"}, "", runtime.AssumeColonVerbOpt(false))) @@ -1813,9 +1912,11 @@ var ( forward_Query_ValidatorRewardSet_0 = runtime.ForwardResponseMessage - forward_Query_Price_0 = runtime.ForwardResponseMessage + forward_Query_LatestPrices_0 = runtime.ForwardResponseMessage + + forward_Query_AllLatestPrices_0 = runtime.ForwardResponseMessage - forward_Query_PriceAll_0 = runtime.ForwardResponseMessage + forward_Query_PriceHistory_0 = runtime.ForwardResponseMessage forward_Query_Pool_0 = runtime.ForwardResponseMessage diff --git a/x/oracle/types/tx.pb.go b/x/oracle/types/tx.pb.go index cdf3c865..5855dc27 100644 --- a/x/oracle/types/tx.pb.go +++ b/x/oracle/types/tx.pb.go @@ -275,9 +275,8 @@ var xxx_messageInfo_MsgDelegateFeedConsentResponse proto.InternalMessageInfo // FeedPrice defines a feed price object for feeding an elys price. type FeedPrice struct { - Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` - Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price"` - Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` + Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` + Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price"` } func (m *FeedPrice) Reset() { *m = FeedPrice{} } @@ -853,12 +852,11 @@ var xxx_messageInfo_MsgRemovePriceFeedersResponse proto.InternalMessageInfo // MsgCreateAssetInfo represents a message to create elys asset info. type MsgCreateAssetInfo struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` - Display string `protobuf:"bytes,3,opt,name=display,proto3" json:"display,omitempty"` - BandTicker string `protobuf:"bytes,4,opt,name=band_ticker,json=bandTicker,proto3" json:"band_ticker,omitempty"` - ElysTicker string `protobuf:"bytes,5,opt,name=elys_ticker,json=elysTicker,proto3" json:"elys_ticker,omitempty"` - Decimal uint64 `protobuf:"varint,6,opt,name=decimal,proto3" json:"decimal,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` + Display string `protobuf:"bytes,3,opt,name=display,proto3" json:"display,omitempty"` + Ticker string `protobuf:"bytes,4,opt,name=ticker,proto3" json:"ticker,omitempty"` + Decimal uint64 `protobuf:"varint,5,opt,name=decimal,proto3" json:"decimal,omitempty"` } func (m *MsgCreateAssetInfo) Reset() { *m = MsgCreateAssetInfo{} } @@ -1484,113 +1482,111 @@ func init() { func init() { proto.RegisterFile("ojo/oracle/v1/tx.proto", fileDescriptor_58d45810177a43e8) } var fileDescriptor_58d45810177a43e8 = []byte{ - // 1687 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0xcb, 0x6f, 0x13, 0xd7, - 0x1a, 0xcf, 0x90, 0xa7, 0x3f, 0x43, 0x10, 0x43, 0x12, 0x9c, 0x49, 0xb0, 0x83, 0x13, 0x1e, 0x01, - 0x62, 0x93, 0x70, 0x2f, 0x42, 0xd6, 0xe5, 0x72, 0xf3, 0xb8, 0xa0, 0x2b, 0xe1, 0xab, 0x68, 0x78, - 0x2c, 0xae, 0xee, 0x95, 0x35, 0xcc, 0x1c, 0xc6, 0x43, 0xc6, 0x73, 0x7c, 0xe7, 0x4c, 0x0c, 0xae, - 0x54, 0xa9, 0x62, 0x51, 0x75, 0xd1, 0x4a, 0x55, 0x57, 0x55, 0x17, 0x15, 0xdd, 0x22, 0x55, 0x62, - 0xc1, 0xb6, 0x8b, 0xee, 0xb2, 0xaa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, 0x98, 0xae, 0xf2, 0xb7, 0x20, 0xd4, - 0xec, 0x33, 0xcd, 0xf6, 0x87, 0x16, 0xb3, 0xc2, 0xed, 0x17, 0x12, 0x8c, 0xfb, 0xd9, 0x29, 0x6e, - 0xda, 0x9e, 0x55, 0xb5, 0x39, 0x8c, 0xc8, 0x4b, 0x30, 0xac, 0xbb, 0x28, 0xb4, 0x0c, 0xda, 0x7b, - 0x0e, 0x80, 0xf2, 0x65, 0x48, 0x36, 0x0a, 0x47, 0x77, 0x91, 0xfe, 0x1e, 0x2a, 0x07, 0xa2, 0x72, - 0xa4, 0xb0, 0x9f, 0x72, 0x0f, 0xcc, 0x65, 0x33, 0x70, 0x34, 0x96, 0x9b, 0x60, 0xef, 0x82, 0x5c, - 0x24, 0xa6, 0x8a, 0x2a, 0xb8, 0x86, 0x96, 0x69, 0x8b, 0xff, 0xcb, 0xb9, 0x83, 0xe5, 0x0b, 0x90, - 0xd0, 0x36, 0xbd, 0x32, 0x76, 0x2d, 0xaf, 0xde, 0x95, 0x7b, 0x03, 0x4a, 0x17, 0x8d, 0x81, 0x1c, - 0x5c, 0xe1, 0xcb, 0x43, 0xe5, 0x83, 0xc2, 0x28, 0xa5, 0xd4, 0x40, 0x65, 0xa7, 0x41, 0x69, 0xf5, - 0x29, 0x18, 0xd5, 0x18, 0xa3, 0x65, 0xc3, 0x08, 0x25, 0x9b, 0xec, 0x9a, 0x51, 0x0a, 0x86, 0x79, - 0x1d, 0x79, 0x2e, 0x13, 0x6a, 0x30, 0x6c, 0xc3, 0x2a, 0xe2, 0x57, 0xb0, 0xaa, 0xb3, 0x22, 0x73, - 0xce, 0xef, 0x98, 0x18, 0xaf, 0x61, 0xab, 0x6b, 0xc1, 0x6d, 0x47, 0x62, 0x29, 0x5b, 0xa5, 0x35, - 0x0f, 0x15, 0x71, 0x37, 0xed, 0x17, 0x5b, 0x40, 0xca, 0xd5, 0xb0, 0x48, 0xd5, 0xd6, 0xea, 0xfe, - 0x6e, 0x15, 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, 0x63, 0x09, 0xd2, 0x5d, 0x6e, - 0x56, 0xe7, 0x62, 0x4d, 0x75, 0xd0, 0x50, 0x2e, 0xbe, 0xa9, 0x86, 0xa0, 0xf3, 0xa5, 0x04, 0x73, - 0xbd, 0xdd, 0x26, 0x7a, 0x70, 0x11, 0xa3, 0xa7, 0xfc, 0x7d, 0x77, 0x7a, 0x82, 0xe0, 0x7b, 0x90, - 0x6a, 0x7b, 0x94, 0x9f, 0x8e, 0xb5, 0x1d, 0x8b, 0x55, 0x96, 0x7a, 0xc7, 0x06, 0xbe, 0x95, 0xc1, - 0x0f, 0x5e, 0x3d, 0x3e, 0x2d, 0xad, 0x5c, 0xdd, 0xfa, 0x31, 0xdd, 0xb7, 0xb5, 0x93, 0x96, 0x9e, - 0xee, 0xa4, 0xa5, 0x1f, 0x76, 0xd2, 0xd2, 0xa7, 0x2f, 0xd3, 0x7d, 0x4f, 0x5f, 0xa6, 0xfb, 0xbe, - 0x7f, 0x99, 0xee, 0xfb, 0xcf, 0xbc, 0x69, 0x79, 0xe5, 0xcd, 0xdb, 0x39, 0x1d, 0x57, 0xf2, 0xf8, - 0x2e, 0x5e, 0x70, 0x90, 0x77, 0x0f, 0xbb, 0x1b, 0xf4, 0x77, 0xfe, 0x7e, 0xf0, 0x9f, 0x89, 0x57, - 0xaf, 0x22, 0x72, 0x7b, 0x88, 0xfd, 0x61, 0x72, 0xfe, 0xf7, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2a, - 0x17, 0x53, 0x15, 0xbf, 0x19, 0x00, 0x00, + // 1656 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0xcb, 0x6f, 0xd4, 0xd6, + 0x1a, 0x8f, 0xc9, 0x73, 0xbe, 0x81, 0x20, 0x4c, 0x12, 0x26, 0x4e, 0xf0, 0x04, 0x27, 0x3c, 0x02, + 0x64, 0x86, 0x84, 0x7b, 0x11,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0x62, 0x7e, 0x39, + 0xab, 0x3a, 0x2d, 0x32, 0xe3, 0xfc, 0x86, 0x89, 0xb1, 0x1a, 0xb6, 0xba, 0xe6, 0xdc, 0xbe, 0x11, + 0x68, 0xca, 0x56, 0x49, 0xcd, 0x23, 0x45, 0xdc, 0x4d, 0xfb, 0x25, 0x16, 0x90, 0x70, 0x35, 0x2c, + 0x5c, 0xb5, 0xb5, 0x3a, 0x3b, 0x83, 0xd4, 0x70, 0x28, 0x4e, 0xc0, 0x90, 0x6f, 0xe9, 0x9b, 0x28, + 0x38, 0x67, 0xd4, 0x60, 0x44, 0x35, 0x90, 0x6e, 0x55, 0x34, 0x3b, 0x33, 0x38, 0x23, 0x9c, 0x1a, + 0x50, 0xc3, 0x61, 0xac, 0x3f, 0x59, 0xd2, 0x63, 0xcc, 0x79, 0x60, 0xbf, 0x0b, 0x90, 0x29, 0x62, + 0x93, 0x6d, 0x99, 0x57, 0xdd, 0xda, 0x8d, 0xaa, 0x41, 0x0e, 0x6a, 0xcd, 0xd3, 0x2a, 0xf8, 0x75, + 0x7a, 0xd4, 0xb7, 0x7c, 0x1b, 0x85, 0x21, 0xd2, 0x81, 0x38, 0x03, 0x69, 0x03, 0x61, 0xdd, 0xb3, + 0xaa, 0xbe, 0xe5, 0x3a, 0x41, 0x98, 0xd1, 0x29, 0x51, 0x84, 0x81, 0x4d, 0x54, 0xc7, 0x99, 0x01, + 0x5a, 0x2d, 0xfa, 0x5b, 0xfc, 0x3b, 0x0c, 0xb3, 0x53, 0x10, 0xd3, 0x30, 0xd3, 0x4b, 0xe3, 0xb1, + 0x95, 0xca, 0xb8, 0x06, 0xcb, 0x34, 0xc4, 0x16, 0x24, 0x72, 0x12, 0x7d, 0xce, 0x4e, 0x23, 0x21, + 0x56, 0x6d, 0x05, 0x66, 0xda, 0x85, 0xcc, 0xf3, 0xf2, 0x84, 0x15, 0xfc, 0xaf, 0xce, 0xc8, 0x45, + 0x18, 0xa8, 0xda, 0x9a, 0x43, 0x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cc, 0x77, 0x85, 0x70, 0x07, 0x37, 0x61, 0x7f, + 0xd3, 0xe5, 0x5f, 0x4e, 0x54, 0xe5, 0x72, 0xe9, 0x44, 0x67, 0x39, 0xb7, 0xfb, 0xb1, 0x00, 0x72, + 0x97, 0x9b, 0xd5, 0xb9, 0x44, 0x53, 0x1d, 0x34, 0xa4, 0x8b, 0xaf, 0xaa, 0xc1, 0xe9, 0x7c, 0x29, + 0xc0, 0x5c, 0x6f, 0xb7, 0x89, 0x1e, 0x5c, 0x24, 0xe8, 0x49, 0xff, 0xdc, 0x9d, 0x1e, 0x27, 0xf8, + 0x2e, 0x64, 0xda, 0x1e, 0xe5, 0xa7, 0x13, 0x6d, 0x27, 0x62, 0xa5, 0xa5, 0xde, 0xb1, 0xa1, 0x6f, + 0x69, 0xf0, 0xfd, 0x17, 0x0f, 0x4e, 0x0b, 0x2b, 0x57, 0xb7, 0x7f, 0x92, 0xfb, 0xb6, 0x9f, 0xc9, + 0xc2, 0xa3, 0x67, 0xb2, 0xf0, 0xe3, 0x33, 0x59, 0xf8, 0xf4, 0xb9, 0xdc, 0xf7, 0xe8, 0xb9, 0xdc, + 0xf7, 0xc3, 0x73, 0xb9, 0xef, 0xff, 0xf3, 0xa6, 0xe5, 0x97, 0xb7, 0x6e, 0xe5, 0x74, 0xb7, 0x92, + 0x77, 0x37, 0xdc, 0x05, 0x07, 0xf9, 0x77, 0x5c, 0x6f, 0x93, 0xfc, 0xce, 0xdf, 0x0d, 0xff, 0xf0, + 0xf0, 0xeb, 0x55, 0x84, 0x6f, 0x0d, 0xd1, 0x7f, 0x3b, 0xce, 0xff, 0x11, 0x00, 0x00, 0xff, 0xff, + 0xfa, 0xbe, 0x45, 0xe7, 0x7c, 0x19, 0x00, 0x00, } func (this *MsgLegacyGovUpdateParams) Equal(that interface{}) bool { @@ -2769,13 +2765,6 @@ func (m *FeedPrice) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.Source) > 0 { - i -= len(m.Source) - copy(dAtA[i:], m.Source) - i = encodeVarintTx(dAtA, i, uint64(len(m.Source))) - i-- - dAtA[i] = 0x1a - } { size := m.Price.Size() i -= size @@ -3249,19 +3238,12 @@ func (m *MsgCreateAssetInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { if m.Decimal != 0 { i = encodeVarintTx(dAtA, i, uint64(m.Decimal)) i-- - dAtA[i] = 0x30 + dAtA[i] = 0x28 } - if len(m.ElysTicker) > 0 { - i -= len(m.ElysTicker) - copy(dAtA[i:], m.ElysTicker) - i = encodeVarintTx(dAtA, i, uint64(len(m.ElysTicker))) - i-- - dAtA[i] = 0x2a - } - if len(m.BandTicker) > 0 { - i -= len(m.BandTicker) - copy(dAtA[i:], m.BandTicker) - i = encodeVarintTx(dAtA, i, uint64(len(m.BandTicker))) + if len(m.Ticker) > 0 { + i -= len(m.Ticker) + copy(dAtA[i:], m.Ticker) + i = encodeVarintTx(dAtA, i, uint64(len(m.Ticker))) i-- dAtA[i] = 0x22 } @@ -3963,10 +3945,6 @@ func (m *FeedPrice) Size() (n int) { } l = m.Price.Size() n += 1 + l + sovTx(uint64(l)) - l = len(m.Source) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } return n } @@ -4169,11 +4147,7 @@ func (m *MsgCreateAssetInfo) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.BandTicker) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ElysTicker) + l = len(m.Ticker) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -5120,38 +5094,6 @@ func (m *FeedPrice) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Source = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -6407,7 +6349,7 @@ func (m *MsgCreateAssetInfo) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BandTicker", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ticker", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6435,41 +6377,9 @@ func (m *MsgCreateAssetInfo) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BandTicker = string(dAtA[iNdEx:postIndex]) + m.Ticker = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ElysTicker", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ElysTicker = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Decimal", wireType) } From cba712d741287183b1f702b91e775aaaddbe29ae Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 14 May 2025 19:13:33 -0400 Subject: [PATCH 66/77] remove commented code and unused expected keeper methods --- app/app.go | 1 - x/oracle/abci/endblocker.go | 44 -------- x/oracle/abci/endblocker_test.go | 164 ---------------------------- x/oracle/keeper/grpc_query.go | 11 -- x/oracle/keeper/grpc_query_test.go | 17 --- x/oracle/keeper/keeper.go | 3 - x/oracle/keeper/migrations.go | 9 -- x/oracle/keeper/reward.go | 118 -------------------- x/oracle/keeper/reward_test.go | 147 ------------------------- x/oracle/keeper/reward_unit_test.go | 26 ----- x/oracle/keeper/slash.go | 113 ------------------- x/oracle/keeper/slash_test.go | 143 ------------------------ x/oracle/types/asset_info.go | 6 - x/oracle/types/expected_keeper.go | 18 --- x/oracle/types/utils_test.go | 21 ---- 15 files changed, 841 deletions(-) delete mode 100644 x/oracle/keeper/reward.go delete mode 100644 x/oracle/keeper/reward_test.go delete mode 100644 x/oracle/keeper/reward_unit_test.go delete mode 100644 x/oracle/keeper/slash.go delete mode 100644 x/oracle/keeper/slash_test.go delete mode 100644 x/oracle/types/asset_info.go diff --git a/app/app.go b/app/app.go index 7cc17659..360eea65 100644 --- a/app/app.go +++ b/app/app.go @@ -426,7 +426,6 @@ func New( runtime.NewKVStoreService(app.keys[oracletypes.StoreKey]), app.AccountKeeper, app.BankKeeper, - app.DistrKeeper, app.StakingKeeper, distrtypes.ModuleName, cast.ToBool(appOpts.Get("telemetry.enabled")), diff --git a/x/oracle/abci/endblocker.go b/x/oracle/abci/endblocker.go index c475ccc1..5bc06709 100644 --- a/x/oracle/abci/endblocker.go +++ b/x/oracle/abci/endblocker.go @@ -42,14 +42,6 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { }() } - // // Set all current active validators into the ValidatorRewardSet at - // // the beginning of a new Slash Window. - // if k.IsPeriodLastBlock(sdkCtx, params.SlashWindow+1) { - // if err := k.SetValidatorRewardSet(sdkCtx); err != nil { - // return err - // } - // } - if k.IsPeriodLastBlock(sdkCtx, params.VotePeriod) { if k.PriceFeeder.Oracle != nil && k.PriceFeeder.AppConfig.Enable { // Update price feeder oracle with latest params. @@ -91,11 +83,6 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { } } - // // Slash oracle providers who missed voting over the threshold and reset - // // miss counters of all validators at the last block of slash window. - // if k.IsPeriodLastBlock(sdkCtx, params.SlashWindow) { - // k.SlashAndResetMissCounters(sdkCtx) - // } k.PruneAllPrices(sdkCtx) // Prune expired elys prices @@ -130,12 +117,6 @@ func CalcPrices(ctx sdk.Context, params types.Params, k keeper.Keeper) error { validatorClaimMap[v.GetOperator()] = types.NewClaim(power, 0, 0, v.GetOperator()) } - // // voteTargets defines the symbol (ticker) denoms that we require votes on - // voteTargetDenoms := make([]string, 0) - // for _, v := range params.AcceptList { - // voteTargetDenoms = append(voteTargetDenoms, v.BaseDenom) - // } - k.ClearExchangeRates(ctx) // NOTE: it filters out inactive or jailed validators @@ -200,31 +181,6 @@ func CalcPrices(ctx sdk.Context, params types.Params, k keeper.Keeper) error { } } - // // Get the validators which can earn rewards in this Slash Window. - // validatorRewardSet := k.GetValidatorRewardSet(ctx) - - // // update miss counting & slashing - // voteTargetsLen := len(params.MandatoryList) - // claimSlice, rewardSlice := types.ClaimMapToSlices(validatorClaimMap, validatorRewardSet.ValidatorSet) - // for _, claim := range claimSlice { - // misses := util.SafeIntToUint64(voteTargetsLen - int(claim.MandatoryWinCount)) - // if misses == 0 { - // continue - // } - - // // Increase miss counter - // k.SetMissCounter(ctx, claim.Recipient, k.GetMissCounter(ctx, claim.Recipient)+misses) - // } - - // // Distribute rewards to ballot winners - // k.RewardBallotWinners( - // ctx, - // util.SafeUint64ToInt64(params.VotePeriod), - // util.SafeUint64ToInt64(params.RewardDistributionWindow), - // voteTargetDenoms, - // rewardSlice, - // ) - // Clear the ballot k.ClearBallots(ctx, params.VotePeriod) return nil diff --git a/x/oracle/abci/endblocker_test.go b/x/oracle/abci/endblocker_test.go index 5f25e6f3..ac418144 100644 --- a/x/oracle/abci/endblocker_test.go +++ b/x/oracle/abci/endblocker_test.go @@ -7,7 +7,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/osmosis-labs/osmosis/osmomath" - // appparams "github.com/ojo-network/ojo/app/params" "github.com/ojo-network/ojo/util/decmath" "github.com/ojo-network/ojo/x/oracle/abci" "github.com/ojo-network/ojo/x/oracle/types" @@ -190,169 +189,6 @@ func (s *IntegrationTestSuite) TestEndBlockerVoteThreshold() { s.Require().Equal(math.LegacyZeroDec(), rate) } -// func (s *IntegrationTestSuite) TestEndBlockerValidatorRewards() { -// app, ctx := s.app, s.ctx -// valAddr1, valAddr2, valAddr3 := s.keys[0].ValAddress, s.keys[1].ValAddress, s.keys[2].ValAddress -// preVoteBlockDiff := int64(app.OracleKeeper.VotePeriod(ctx) / 2) -// voteBlockDiff := int64(app.OracleKeeper.VotePeriod(ctx)/2 + 1) - -// // start test in new slash window -// ctx = ctx.WithBlockHeight(int64(app.OracleKeeper.SlashWindow(ctx))) -// abci.EndBlocker(ctx, app.OracleKeeper) - -// denomList := types.DenomList{ -// { -// BaseDenom: appparams.BondDenom, -// SymbolDenom: appparams.DisplayDenom, -// Exponent: uint32(6), -// }, -// { -// BaseDenom: "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9", -// SymbolDenom: "atom", -// Exponent: uint32(6), -// }, -// } -// app.OracleKeeper.SetAcceptList(ctx, denomList) -// app.OracleKeeper.SetMandatoryList(ctx, denomList) - -// var ( -// val1DecCoins sdk.DecCoins -// val2DecCoins sdk.DecCoins -// val3DecCoins sdk.DecCoins -// ) -// for _, denom := range app.OracleKeeper.AcceptList(ctx) { -// val1DecCoins = append(val1DecCoins, sdk.DecCoin{ -// Denom: denom.SymbolDenom, -// Amount: math.LegacyMustNewDecFromStr("0.6"), -// }) -// val2DecCoins = append(val2DecCoins, sdk.DecCoin{ -// Denom: denom.SymbolDenom, -// Amount: math.LegacyMustNewDecFromStr("0.6"), -// }) -// val3DecCoins = append(val3DecCoins, sdk.DecCoin{ -// Denom: denom.SymbolDenom, -// Amount: math.LegacyMustNewDecFromStr("0.6"), -// }) -// } - -// h := uint64(ctx.BlockHeight()) -// val1PreVotes, val1Votes := createVotes("hash1", valAddr1, val1DecCoins, h) -// val2PreVotes, val2Votes := createVotes("hash2", valAddr2, val2DecCoins, h) -// val3PreVotes, val3Votes := createVotes("hash3", valAddr3, val3DecCoins, h) -// // validator 1, 2, and 3 vote on both currencies so all have 0 misses -// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr1, val1PreVotes) -// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr2, val2PreVotes) -// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr3, val3PreVotes) -// abci.EndBlocker(ctx, app.OracleKeeper) - -// ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) -// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1.String(), val1Votes) -// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2.String(), val2Votes) -// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3.String(), val3Votes) -// abci.EndBlocker(ctx, app.OracleKeeper) - -// currRewards1, err := app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr1) -// s.Require().NoError(err) -// currRewards2, err := app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr2) -// s.Require().NoError(err) -// currRewards3, err := app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr3) -// s.Require().NoError(err) -// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 141), currRewards1.Rewards[0]) -// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 141), currRewards2.Rewards[0]) -// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 141), currRewards3.Rewards[0]) - -// // update prevotes' block -// ctx = ctx.WithBlockHeight(ctx.BlockHeight() + preVoteBlockDiff) -// val1PreVotes.SubmitBlock = uint64(ctx.BlockHeight()) -// val2PreVotes.SubmitBlock = uint64(ctx.BlockHeight()) -// val3PreVotes.SubmitBlock = uint64(ctx.BlockHeight()) - -// // validator 1 and 3 votes on both currencies to end up with 0 misses -// // validator 2 votes on 1 currency to end up with 1 misses -// val1DecCoins = sdk.DecCoins{ -// sdk.DecCoin{ -// Denom: "ojo", -// Amount: math.LegacyMustNewDecFromStr("0.6"), -// }, -// sdk.DecCoin{ -// Denom: "atom", -// Amount: math.LegacyMustNewDecFromStr("0.6"), -// }, -// } -// val2DecCoins = sdk.DecCoins{ -// sdk.DecCoin{ -// Denom: "ojo", -// Amount: math.LegacyMustNewDecFromStr("0.6"), -// }, -// } -// val3DecCoins = sdk.DecCoins{ -// sdk.DecCoin{ -// Denom: "ojo", -// Amount: math.LegacyMustNewDecFromStr("0.6"), -// }, -// sdk.DecCoin{ -// Denom: "atom", -// Amount: math.LegacyMustNewDecFromStr("0.6"), -// }, -// } -// val1Votes.ExchangeRates = val1DecCoins -// val2Votes.ExchangeRates = val2DecCoins -// val3Votes.ExchangeRates = val3DecCoins - -// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr1, val1PreVotes) -// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr2, val2PreVotes) -// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr3, val3PreVotes) -// abci.EndBlocker(ctx, app.OracleKeeper) - -// ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) -// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1.String(), val1Votes) -// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2.String(), val2Votes) -// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3.String(), val3Votes) -// abci.EndBlocker(ctx, app.OracleKeeper) - -// currRewards1, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr1) -// s.Require().NoError(err) -// currRewards2, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr2) -// s.Require().NoError(err) -// currRewards3, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr3) -// s.Require().NoError(err) -// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 235), currRewards1.Rewards[0]) -// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 232), currRewards2.Rewards[0]) -// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 235), currRewards3.Rewards[0]) - -// // update prevotes' block -// ctx = ctx.WithBlockHeight(ctx.BlockHeight() + preVoteBlockDiff) -// val1PreVotes.SubmitBlock = uint64(ctx.BlockHeight()) -// val2PreVotes.SubmitBlock = uint64(ctx.BlockHeight()) - -// // validator 1, 2, and 3 miss both currencies so validator 1 and 3 has 2 misses and -// // validator 2 has 3 misses -// val1Votes.ExchangeRates = sdk.DecCoins{} -// val2Votes.ExchangeRates = sdk.DecCoins{} -// val3Votes.ExchangeRates = sdk.DecCoins{} - -// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr1, val1PreVotes) -// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr2, val2PreVotes) -// app.OracleKeeper.SetAggregateExchangeRatePrevote(ctx, valAddr3, val3PreVotes) -// abci.EndBlocker(ctx, app.OracleKeeper) - -// ctx = ctx.WithBlockHeight(ctx.BlockHeight() + voteBlockDiff) -// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr1.String(), val1Votes) -// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr2.String(), val2Votes) -// app.OracleKeeper.SetAggregateExchangeRateVote(ctx, valAddr3.String(), val3Votes) -// abci.EndBlocker(ctx, app.OracleKeeper) - -// currRewards1, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr1) -// s.Require().NoError(err) -// currRewards2, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr2) -// s.Require().NoError(err) -// currRewards3, err = app.DistrKeeper.GetValidatorCurrentRewards(ctx, valAddr3) -// s.Require().NoError(err) -// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 329), currRewards1.Rewards[0]) -// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 320), currRewards2.Rewards[0]) -// s.Require().Equal(sdk.NewInt64DecCoin("uojo", 329), currRewards3.Rewards[0]) -// } - var exchangeRates = map[string][]math.LegacyDec{ "ATOM": { math.LegacyMustNewDecFromStr("12.99"), diff --git a/x/oracle/keeper/grpc_query.go b/x/oracle/keeper/grpc_query.go index 9b2afd1d..cd1fe686 100644 --- a/x/oracle/keeper/grpc_query.go +++ b/x/oracle/keeper/grpc_query.go @@ -317,17 +317,6 @@ func (q querier) ValidatorRewardSet( goCtx context.Context, req *types.QueryValidatorRewardSet, ) (*types.QueryValidatorRewardSetResponse, error) { - // if req == nil { - // return nil, status.Error(codes.InvalidArgument, "empty request") - // } - - // ctx := sdk.UnwrapSDKContext(goCtx) - - // validatorRewardSet := q.GetValidatorRewardSet(ctx) - - // return &types.QueryValidatorRewardSetResponse{ - // Validators: validatorRewardSet, - // }, nil return &types.QueryValidatorRewardSetResponse{}, nil } diff --git a/x/oracle/keeper/grpc_query_test.go b/x/oracle/keeper/grpc_query_test.go index aab9ab4d..846eaae0 100644 --- a/x/oracle/keeper/grpc_query_test.go +++ b/x/oracle/keeper/grpc_query_test.go @@ -290,23 +290,6 @@ func (s *IntegrationTestSuite) TestQuerier_MedianDeviations() { s.Require().Equal(res.MedianDeviations, expected) } -// func (s *IntegrationTestSuite) TestQuerier_ValidatorRewardSet() { -// app, ctx := s.app, s.ctx -// originalBlockHeight := ctx.BlockHeight() - -// slashWindowBlock := int64(app.OracleKeeper.SlashWindow(ctx)) -// ctx = ctx.WithBlockHeight(slashWindowBlock) -// err := app.OracleKeeper.SetValidatorRewardSet(ctx) -// s.Require().NoError(err) - -// ctx = ctx.WithBlockHeight(slashWindowBlock + 20) -// valRewardSetResp, err := s.queryClient.ValidatorRewardSet(ctx.Context(), &types.QueryValidatorRewardSet{}) -// s.Require().NoError(err) -// s.Require().Equal(3, len(valRewardSetResp.Validators.ValidatorSet)) - -// ctx = ctx.WithBlockHeight(originalBlockHeight) -// } - func (s *IntegrationTestSuite) TestEmptyRequest() { q := keeper.NewQuerier(keeper.Keeper{}) const emptyRequestErrorMsg = "empty request" diff --git a/x/oracle/keeper/keeper.go b/x/oracle/keeper/keeper.go index 362bd6cf..c12e5b8d 100644 --- a/x/oracle/keeper/keeper.go +++ b/x/oracle/keeper/keeper.go @@ -27,7 +27,6 @@ type Keeper struct { accountKeeper types.AccountKeeper bankKeeper types.BankKeeper - distrKeeper types.DistributionKeeper StakingKeeper types.StakingKeeper PriceFeeder *pricefeeder.PriceFeeder @@ -45,7 +44,6 @@ func NewKeeper( storeService store.KVStoreService, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, - distrKeeper types.DistributionKeeper, stakingKeeper types.StakingKeeper, distrName string, telemetryEnabled bool, @@ -61,7 +59,6 @@ func NewKeeper( storeService: storeService, accountKeeper: accountKeeper, bankKeeper: bankKeeper, - distrKeeper: distrKeeper, StakingKeeper: stakingKeeper, PriceFeeder: &pricefeeder.PriceFeeder{}, distrName: distrName, diff --git a/x/oracle/keeper/migrations.go b/x/oracle/keeper/migrations.go index 5b749d00..874e46a8 100644 --- a/x/oracle/keeper/migrations.go +++ b/x/oracle/keeper/migrations.go @@ -15,15 +15,6 @@ func NewMigrator(keeper *Keeper) Migrator { return Migrator{keeper: keeper} } -// // MigrateValidatorSet fixes the validator set being stored as map -// // causing non determinism by storing it as a list. -// func (m Migrator) MigrateValidatorSet(ctx sdk.Context) error { -// if err := m.keeper.SetValidatorRewardSet(ctx); err != nil { -// return err -// } -// return nil -// } - // MigrateCurrencyPairProviders adds the price feeder // currency pair provider list. func (m Migrator) MigrateCurrencyPairProviders(ctx sdk.Context) { diff --git a/x/oracle/keeper/reward.go b/x/oracle/keeper/reward.go deleted file mode 100644 index 002534f7..00000000 --- a/x/oracle/keeper/reward.go +++ /dev/null @@ -1,118 +0,0 @@ -package keeper - -/* -import ( - "fmt" - - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/ojo-network/ojo/util" - "github.com/ojo-network/ojo/util/decmath" - "github.com/ojo-network/ojo/util/genmap" - "github.com/ojo-network/ojo/util/reward" - "github.com/ojo-network/ojo/x/oracle/types" -) - -// prependOjoIfUnique pushes `uojo` denom to the front of the list, if it is not yet included. -func prependOjoIfUnique(voteTargets []string) []string { - if genmap.Contains(types.OjoDenom, voteTargets) { - return voteTargets - } - rewardDenoms := make([]string, len(voteTargets)+1) - rewardDenoms[0] = types.OjoDenom - copy(rewardDenoms[1:], voteTargets) - return rewardDenoms -} - -// smallestMissCountInBallot iterates through a given list of Claims and returns the smallest -// misscount in that list -func (k Keeper) smallestMissCountInBallot(ctx sdk.Context, ballotWinners []types.Claim) int64 { - missCount := k.GetMissCounter(ctx, ballotWinners[0].Recipient) - for _, winner := range ballotWinners[1:] { - count := k.GetMissCounter(ctx, winner.Recipient) - if count < missCount { - missCount = count - } - } - - return util.SafeUint64ToInt64(missCount) -} - -// RewardBallotWinners is executed at the end of every voting period, where we -// give out a portion of seigniorage reward(reward-weight) to the oracle voters -// that voted correctly. -func (k Keeper) RewardBallotWinners( - ctx sdk.Context, - votePeriod int64, - rewardDistributionWindow int64, - voteTargets []string, - ballotWinners []types.Claim, -) { - if len(ballotWinners) == 0 { - return - } - - distributionRatio := math.LegacyNewDec(votePeriod).QuoInt64(rewardDistributionWindow) - var periodRewards sdk.DecCoins - rewardDenoms := prependOjoIfUnique(voteTargets) - for _, denom := range rewardDenoms { - rewardPool := k.GetRewardPool(ctx, denom) - - // return if there's no rewards to give out - if rewardPool.IsZero() { - continue - } - - periodRewards = periodRewards.Add(sdk.NewDecCoinFromDec( - denom, - math.LegacyNewDecFromInt(rewardPool.Amount).Mul(distributionRatio), - )) - } - - // distribute rewards - var distributedReward sdk.Coins - - smallestMissCount := k.smallestMissCountInBallot(ctx, ballotWinners) - for _, winner := range ballotWinners { - receiverVal, err := k.StakingKeeper.Validator(ctx, winner.Recipient) - // in case absence of the validator, we just skip distribution - if receiverVal == nil || err != nil { - continue - } - - missCount := util.SafeUint64ToInt64(k.GetMissCounter(ctx, winner.Recipient)) - maxMissCount := int64(len(voteTargets)) * (util.SafeUint64ToInt64((k.SlashWindow(ctx) / k.VotePeriod(ctx)))) - rewardFactor := reward.CalculateRewardFactor( - missCount, - maxMissCount, - smallestMissCount, - ) - rewardDec, err := decmath.NewDecFromFloat(rewardFactor) - if err != nil { - k.Logger(ctx).With(err).Error("unable to calculate validator reward factor!") - return - } - ballotLength := int64(len(ballotWinners)) - - rewardCoins, _ := periodRewards.MulDec(rewardDec.QuoInt64( - ballotLength)).TruncateDecimal() - if rewardCoins.IsZero() { - continue - } - - err = k.distrKeeper.AllocateTokensToValidator(ctx, receiverVal, sdk.NewDecCoinsFromCoins(rewardCoins...)) - if err != nil { - k.Logger(ctx).With(err).Error("Failed to allocate tokens to validator!") - return - } - distributedReward = distributedReward.Add(rewardCoins...) - } - - // move distributed reward to distribution module - err := k.bankKeeper.SendCoinsFromModuleToModule(ctx, types.ModuleName, k.distrName, distributedReward) - if err != nil { - panic(fmt.Errorf("failed to send coins to distribution module %w", err)) - } -} -*/ diff --git a/x/oracle/keeper/reward_test.go b/x/oracle/keeper/reward_test.go deleted file mode 100644 index deeabf42..00000000 --- a/x/oracle/keeper/reward_test.go +++ /dev/null @@ -1,147 +0,0 @@ -package keeper_test - -/* -import ( - "fmt" - "math" - - sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/ojo-network/ojo/x/oracle/types" -) - -// Test the reward giving mechanism -func (s *IntegrationTestSuite) TestRewardBallotWinners() { - app, ctx := s.app, s.ctx - - // Add claim pools - claims := []types.Claim{ - types.NewClaim(10, 0, 0, valAddr.String()), - types.NewClaim(20, 0, 0, valAddr2.String()), - } - - missCounters := []types.MissCounter{ - {ValidatorAddress: valAddr.String(), MissCounter: uint64(2)}, - {ValidatorAddress: valAddr2.String(), MissCounter: uint64(4)}, - } - - for _, mc := range missCounters { - operator, _ := sdk.ValAddressFromBech32(mc.ValidatorAddress) - app.OracleKeeper.SetMissCounter(ctx, operator.String(), mc.MissCounter) - } - - // Prepare reward pool - givingAmt := sdk.NewCoins(sdk.NewInt64Coin(types.OjoDenom, 30000000)) - err := app.BankKeeper.MintCoins(ctx, "oracle", givingAmt) - s.Require().NoError(err) - - var voteTargets []string - params := app.OracleKeeper.GetParams(ctx) - for _, v := range params.AcceptList { - voteTargets = append(voteTargets, v.SymbolDenom) - } - - // Add extra voteTargets to increase maximum miss count - for i := 1; i <= 3; i++ { - voteTargets = append(voteTargets, fmt.Sprintf("%s%d", types.OjoSymbol, i)) - } - maximumMissCounts := uint64(len(voteTargets)) * (app.OracleKeeper.SlashWindow(ctx) / app.OracleKeeper.VotePeriod(ctx)) - - val1ExpectedRewardFactor := fmt.Sprintf("%f", 1-(math.Log(float64(missCounters[0].MissCounter-missCounters[0].MissCounter+1))/ - math.Log(float64(maximumMissCounts-(missCounters[0].MissCounter)+1)))) - val2ExpectedRewardFactor := fmt.Sprintf("%f", 1-(math.Log(float64(missCounters[1].MissCounter-missCounters[0].MissCounter+1))/ - math.Log(float64(maximumMissCounts-(missCounters[0].MissCounter)+1)))) - - votePeriodsPerWindow := sdkmath.LegacyNewDec((int64)(app.OracleKeeper.RewardDistributionWindow(ctx))). - QuoInt64((int64)(app.OracleKeeper.VotePeriod(ctx))). - TruncateInt64() - app.OracleKeeper.RewardBallotWinners(ctx, (int64)(app.OracleKeeper.VotePeriod(ctx)), (int64)(app.OracleKeeper.RewardDistributionWindow(ctx)), voteTargets, claims) - outstandingRewardsDecVal1, err := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valAddr) - s.Require().NoError(err) - outstandingRewardsVal1, _ := outstandingRewardsDecVal1.TruncateDecimal() - outstandingRewardsDecVal2, err := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valAddr2) - s.Require().NoError(err) - outstandingRewardsVal2, _ := outstandingRewardsDecVal2.TruncateDecimal() - s.Require().Equal(sdkmath.LegacyNewDecFromInt(givingAmt.AmountOf(types.OjoDenom)).Mul(sdkmath.LegacyMustNewDecFromStr(val1ExpectedRewardFactor).QuoInt64(int64(len(claims)))).QuoInt64(votePeriodsPerWindow).TruncateInt(), - outstandingRewardsVal1.AmountOf(types.OjoDenom)) - s.Require().Equal(sdkmath.LegacyNewDecFromInt(givingAmt.AmountOf(types.OjoDenom)).Mul(sdkmath.LegacyMustNewDecFromStr(val2ExpectedRewardFactor).QuoInt64(int64(len(claims)))).QuoInt64(votePeriodsPerWindow).TruncateInt(), - outstandingRewardsVal2.AmountOf(types.OjoDenom)) -} - -func (s *IntegrationTestSuite) TestRewardBallotWinnersZeroMissCounters() { - app, ctx := s.app, s.ctx - - // Add claim pools - claims := []types.Claim{ - types.NewClaim(10, 0, 0, valAddr.String()), - types.NewClaim(20, 0, 0, valAddr2.String()), - } - - // Prepare reward pool - givingAmt := sdk.NewCoins(sdk.NewInt64Coin(types.OjoDenom, 30000000)) - err := app.BankKeeper.MintCoins(ctx, "oracle", givingAmt) - s.Require().NoError(err) - - var voteTargets []string - params := app.OracleKeeper.GetParams(ctx) - for _, v := range params.AcceptList { - voteTargets = append(voteTargets, v.SymbolDenom) - } - - votePeriodsPerWindow := sdkmath.LegacyNewDec((int64)(app.OracleKeeper.RewardDistributionWindow(ctx))). - QuoInt64((int64)(app.OracleKeeper.VotePeriod(ctx))). - TruncateInt64() - app.OracleKeeper.RewardBallotWinners(ctx, (int64)(app.OracleKeeper.VotePeriod(ctx)), (int64)(app.OracleKeeper.RewardDistributionWindow(ctx)), voteTargets, claims) - outstandingRewardsDecVal1, err := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valAddr) - s.Require().NoError(err) - outstandingRewardsVal1, _ := outstandingRewardsDecVal1.TruncateDecimal() - outstandingRewardsDecVal2, err := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valAddr2) - s.Require().NoError(err) - outstandingRewardsVal2, _ := outstandingRewardsDecVal2.TruncateDecimal() - s.Require().Equal(sdkmath.LegacyNewDecFromInt(givingAmt.AmountOf(types.OjoDenom)).QuoInt64(votePeriodsPerWindow).QuoInt64(2).TruncateInt(), - outstandingRewardsVal1.AmountOf(types.OjoDenom)) - s.Require().Equal(sdkmath.LegacyNewDecFromInt(givingAmt.AmountOf(types.OjoDenom)).QuoInt64(votePeriodsPerWindow).QuoInt64(2).TruncateInt(), - outstandingRewardsVal2.AmountOf(types.OjoDenom)) -} - -func (s *IntegrationTestSuite) TestRewardBallotWinnersZeroVoteTargets() { - app, ctx := s.app, s.ctx - - // Add claim pools - claims := []types.Claim{ - types.NewClaim(10, 0, 0, valAddr.String()), - types.NewClaim(20, 0, 0, valAddr2.String()), - } - - app.OracleKeeper.RewardBallotWinners(ctx, (int64)(app.OracleKeeper.VotePeriod(ctx)), (int64)(app.OracleKeeper.RewardDistributionWindow(ctx)), []string{}, claims) - outstandingRewardsDecVal1, err := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valAddr) - s.Require().NoError(err) - outstandingRewardsVal1, _ := outstandingRewardsDecVal1.TruncateDecimal() - outstandingRewardsDecVal2, err := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valAddr2) - s.Require().NoError(err) - outstandingRewardsVal2, _ := outstandingRewardsDecVal2.TruncateDecimal() - s.Require().Equal(sdkmath.LegacyZeroDec().TruncateInt(), outstandingRewardsVal1.AmountOf(types.OjoDenom)) - s.Require().Equal(sdkmath.LegacyZeroDec().TruncateInt(), outstandingRewardsVal2.AmountOf(types.OjoDenom)) -} - -func (s *IntegrationTestSuite) TestRewardBallotWinnersZeroClaims() { - app, ctx := s.app, s.ctx - - var voteTargets []string - params := app.OracleKeeper.GetParams(ctx) - for _, v := range params.AcceptList { - voteTargets = append(voteTargets, v.SymbolDenom) - } - - app.OracleKeeper.RewardBallotWinners(ctx, (int64)(app.OracleKeeper.VotePeriod(ctx)), (int64)(app.OracleKeeper.RewardDistributionWindow(ctx)), voteTargets, []types.Claim{}) - outstandingRewardsDecVal1, err := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valAddr) - s.Require().NoError(err) - outstandingRewardsVal1, _ := outstandingRewardsDecVal1.TruncateDecimal() - outstandingRewardsDecVal2, err := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valAddr2) - s.Require().NoError(err) - outstandingRewardsVal2, _ := outstandingRewardsDecVal2.TruncateDecimal() - s.Require().Equal(sdkmath.LegacyZeroDec().TruncateInt(), outstandingRewardsVal1.AmountOf(types.OjoDenom)) - s.Require().Equal(sdkmath.LegacyZeroDec().TruncateInt(), outstandingRewardsVal2.AmountOf(types.OjoDenom)) -} -*/ diff --git a/x/oracle/keeper/reward_unit_test.go b/x/oracle/keeper/reward_unit_test.go deleted file mode 100644 index cf343b9a..00000000 --- a/x/oracle/keeper/reward_unit_test.go +++ /dev/null @@ -1,26 +0,0 @@ -package keeper - -/* -import ( - "testing" - - "github.com/stretchr/testify/require" -) - -func TestPrependOjoIfUnique(t *testing.T) { - require := require.New(t) - tcs := []struct { - in []string - out []string - }{ - // Should prepend "uojo" to a slice of denoms, unless it is already present. - {[]string{}, []string{"uojo"}}, - {[]string{"a"}, []string{"uojo", "a"}}, - {[]string{"x", "a", "heeeyyy"}, []string{"uojo", "x", "a", "heeeyyy"}}, - {[]string{"x", "a", "uojo"}, []string{"x", "a", "uojo"}}, - } - for i, tc := range tcs { - require.Equal(tc.out, prependOjoIfUnique(tc.in), i) - } -} -*/ diff --git a/x/oracle/keeper/slash.go b/x/oracle/keeper/slash.go deleted file mode 100644 index 5cbd6998..00000000 --- a/x/oracle/keeper/slash.go +++ /dev/null @@ -1,113 +0,0 @@ -package keeper - -/* -import ( - "cosmossdk.io/math" - "github.com/cosmos/cosmos-sdk/runtime" - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/ojo-network/ojo/util" - "github.com/ojo-network/ojo/x/oracle/types" -) - -// SlashAndResetMissCounters iterates over all the current missed counters and -// calculates the "valid vote rate" as: -// (possibleWinsPerSlashWindow - missCounter)/possibleWinsPerSlashWindow. -// -// If the valid vote rate is below the minValidPerWindow, the validator will be -// slashed and jailed. -func (k Keeper) SlashAndResetMissCounters(ctx sdk.Context) { - var ( - possibleWinsPerSlashWindow = k.PossibleWinsPerSlashWindow(ctx) - minValidPerWindow = k.MinValidPerWindow(ctx) - - distributionHeight = ctx.BlockHeight() - sdk.ValidatorUpdateDelay - 1 - slashFraction = k.SlashFraction(ctx) - powerReduction = k.StakingKeeper.PowerReduction(ctx) - ) - - k.IterateMissCounters(ctx, func(operator string, missCounter uint64) bool { - validVotes := math.NewInt(possibleWinsPerSlashWindow - util.SafeUint64ToInt64(missCounter)) - validVoteRate := math.LegacyNewDecFromInt(validVotes).QuoInt64(possibleWinsPerSlashWindow) - - // Slash and jail the validator if their valid vote rate is smaller than the - // minimum threshold. - if validVoteRate.LT(minValidPerWindow) { - validator, err := k.StakingKeeper.Validator(ctx, operator) - if validator.IsBonded() && !validator.IsJailed() && err == nil { - consAddr, err := validator.GetConsAddr() - if err != nil { - panic(err) - } - - _, err = k.StakingKeeper.Slash( - ctx, - consAddr, - distributionHeight, - validator.GetConsensusPower(powerReduction), slashFraction, - ) - if err != nil { - panic(err) - } - - err = k.StakingKeeper.Jail(ctx, consAddr) - if err != nil { - panic(err) - } - } - } - - k.DeleteMissCounter(ctx, operator) - return false - }) -} - -// PossibleWinsPerSlashWindow returns the total number of possible correct votes -// that a validator can have per asset multiplied by the number of vote -// periods in the slash window -func (k Keeper) PossibleWinsPerSlashWindow(ctx sdk.Context) int64 { - slashWindow := util.SafeUint64ToInt64(k.SlashWindow(ctx)) - votePeriod := util.SafeUint64ToInt64(k.VotePeriod(ctx)) - - votePeriodsPerWindow := math.LegacyNewDec(slashWindow).QuoInt64(votePeriod).TruncateInt64() - numberOfAssets := int64(len(k.GetParams(ctx).MandatoryList)) - - return (votePeriodsPerWindow * numberOfAssets) -} - -// SetValidatorRewardSet will take all the current validators and store them -// in the ValidatorRewardSet to earn rewards in the current Slash Window. -func (k Keeper) SetValidatorRewardSet(ctx sdk.Context) error { - validatorRewardSet := types.ValidatorRewardSet{ - ValidatorSet: []string{}, - } - vals, err := k.StakingKeeper.GetBondedValidatorsByPower(ctx) - if err != nil { - return err - } - for _, v := range vals { - addr := v.GetOperator() - validatorRewardSet.ValidatorSet = append(validatorRewardSet.ValidatorSet, addr) - } - - store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - bz := k.cdc.MustMarshal(&validatorRewardSet) - store.Set(types.KeyValidatorRewardSet(), bz) - return nil -} - -// CurrentValidatorRewardSet returns the latest ValidatorRewardSet in the store. -func (k Keeper) GetValidatorRewardSet(ctx sdk.Context) types.ValidatorRewardSet { - store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - - bz := store.Get(types.KeyValidatorRewardSet()) - if bz == nil { - return types.ValidatorRewardSet{} - } - - var rewardSet types.ValidatorRewardSet - k.cdc.MustUnmarshal(bz, &rewardSet) - - return rewardSet -} -*/ diff --git a/x/oracle/keeper/slash_test.go b/x/oracle/keeper/slash_test.go deleted file mode 100644 index e53f2e5c..00000000 --- a/x/oracle/keeper/slash_test.go +++ /dev/null @@ -1,143 +0,0 @@ -package keeper_test - -/* -import ( - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - "github.com/ojo-network/ojo/x/oracle/types" -) - -func (s *IntegrationTestSuite) TestSlashAndResetMissCounters() { - initialTokens := sdk.TokensFromConsensusPower(100, sdk.DefaultPowerReduction) - validator, err := s.app.StakingKeeper.Validator(s.ctx, valAddr) - s.Require().NoError(err) - s.Require().Equal(initialTokens, validator.GetBondedTokens()) - - var ( - slashFraction = s.app.OracleKeeper.SlashFraction(s.ctx) - possibleWinsPerSlashWindow = s.app.OracleKeeper.PossibleWinsPerSlashWindow(s.ctx) - minValidPerWindow = s.app.OracleKeeper.MinValidPerWindow(s.ctx) - minValidVotes = minValidPerWindow.MulInt64(possibleWinsPerSlashWindow).TruncateInt() - maxMissesBeforeSlash = math.NewInt(possibleWinsPerSlashWindow).Sub(minValidVotes).Uint64() - ) - - testCases := []struct { - name string - missCounter uint64 - status stakingtypes.BondStatus - jailedBefore bool - jailedAfter bool - slashed bool - }{ - { - name: "bonded validator above minValidVotes", - missCounter: maxMissesBeforeSlash, - status: stakingtypes.Bonded, - jailedBefore: false, - jailedAfter: false, - slashed: false, - }, - { - name: "bonded validator below minValidVotes", - missCounter: maxMissesBeforeSlash + 1, - status: stakingtypes.Bonded, - jailedBefore: false, - jailedAfter: true, - slashed: true, - }, - { - name: "unBonded validator below minValidVotes", - missCounter: maxMissesBeforeSlash + 1, - status: stakingtypes.Unbonded, - jailedBefore: false, - jailedAfter: false, - slashed: false, - }, - { - name: "jailed validator below minValidVotes", - missCounter: maxMissesBeforeSlash + 1, - status: stakingtypes.Bonded, - jailedBefore: true, - jailedAfter: true, - slashed: false, - }, - } - - for _, tc := range testCases { - s.Run(tc.name, func() { - validator, _ := s.app.StakingKeeper.GetValidator(s.ctx, valAddr) - validator.Status = tc.status - validator.Jailed = tc.jailedBefore - validator.Tokens = initialTokens - s.app.StakingKeeper.SetValidator(s.ctx, validator) - - s.app.OracleKeeper.SetMissCounter(s.ctx, valAddr, tc.missCounter) - s.app.OracleKeeper.SlashAndResetMissCounters(s.ctx) - - expectedTokens := initialTokens - if tc.slashed { - expectedTokens = initialTokens.Sub(slashFraction.MulInt(initialTokens).TruncateInt()) - } - - validator, _ = s.app.StakingKeeper.GetValidator(s.ctx, valAddr) - s.Require().Equal(expectedTokens, validator.Tokens) - s.Require().Equal(tc.jailedAfter, validator.Jailed) - }) - } -} - -func (s *IntegrationTestSuite) TestPossibleWinsPerSlashWindow() { - atomDenom := types.Denom{BaseDenom: "atom", SymbolDenom: "ATOM"} - umeeDenom := types.Denom{BaseDenom: "umee", SymbolDenom: "UMEE"} - - testCases := []struct { - name string - votePeriod uint64 - slashWindow uint64 - mandatoryList types.DenomList - possibleWinsPerSlashWindow int64 - }{ - { - name: "multiple denoms in mandatory list", - votePeriod: 5, - slashWindow: 15, - mandatoryList: types.DenomList{atomDenom, umeeDenom}, - possibleWinsPerSlashWindow: 6, - }, - { - name: "no denoms in mandatory list", - votePeriod: 5, - slashWindow: 15, - mandatoryList: types.DenomList{}, - possibleWinsPerSlashWindow: 0, - }, - { - name: "single denom in mandatory list", - votePeriod: 2, - slashWindow: 10, - mandatoryList: types.DenomList{atomDenom}, - possibleWinsPerSlashWindow: 5, - }, - { - name: "vote period is 1", - votePeriod: 1, - slashWindow: 10, - mandatoryList: types.DenomList{atomDenom}, - possibleWinsPerSlashWindow: 10, - }, - } - - for _, tc := range testCases { - s.Run(tc.name, func() { - params := types.DefaultParams() - params.VotePeriod = tc.votePeriod - params.SlashWindow = tc.slashWindow - params.MandatoryList = tc.mandatoryList - s.app.OracleKeeper.SetParams(s.ctx, params) - actual := s.app.OracleKeeper.PossibleWinsPerSlashWindow(s.ctx) - s.Require().Equal(tc.possibleWinsPerSlashWindow, actual) - }) - } -} -*/ diff --git a/x/oracle/types/asset_info.go b/x/oracle/types/asset_info.go deleted file mode 100644 index e49d4f03..00000000 --- a/x/oracle/types/asset_info.go +++ /dev/null @@ -1,6 +0,0 @@ -package types - -var ( - BAND = "band" - ELYS = "elys" -) diff --git a/x/oracle/types/expected_keeper.go b/x/oracle/types/expected_keeper.go index 153aad3d..80b7dba0 100644 --- a/x/oracle/types/expected_keeper.go +++ b/x/oracle/types/expected_keeper.go @@ -4,9 +4,7 @@ import ( "context" sdkmath "cosmossdk.io/math" - storetypes "cosmossdk.io/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" ) @@ -15,21 +13,9 @@ import ( type StakingKeeper interface { Validator(ctx context.Context, address sdk.ValAddress) (stakingtypes.ValidatorI, error) GetBondedValidatorsByPower(ctx context.Context) ([]stakingtypes.Validator, error) - TotalBondedTokens(context.Context) (sdkmath.Int, error) - Slash(context.Context, sdk.ConsAddress, int64, int64, sdkmath.LegacyDec) (sdkmath.Int, error) - Jail(context.Context, sdk.ConsAddress) error - ValidatorsPowerStoreIterator(context context.Context) (storetypes.Iterator, error) - MaxValidators(context.Context) (uint32, error) PowerReduction(ctx context.Context) (res sdkmath.Int) } -// DistributionKeeper defines the expected interface contract defined by the -// x/distribution module. -type DistributionKeeper interface { - AllocateTokensToValidator(ctx context.Context, val stakingtypes.ValidatorI, tokens sdk.DecCoins) error - GetValidatorOutstandingRewardsCoins(ctx context.Context, val sdk.ValAddress) (sdk.DecCoins, error) -} - // AccountKeeper defines the expected interface contract defined by the x/auth // module. type AccountKeeper interface { @@ -44,8 +30,4 @@ type AccountKeeper interface { // module. type BankKeeper interface { GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin - GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins - SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt sdk.Coins) error - GetDenomMetaData(ctx context.Context, denom string) (banktypes.Metadata, bool) - SetDenomMetaData(ctx context.Context, denomMetaData banktypes.Metadata) } diff --git a/x/oracle/types/utils_test.go b/x/oracle/types/utils_test.go index 091da7ce..cbb5bce0 100644 --- a/x/oracle/types/utils_test.go +++ b/x/oracle/types/utils_test.go @@ -6,7 +6,6 @@ import ( "math/big" sdkmath "cosmossdk.io/math" - storetypes "cosmossdk.io/store/types" "github.com/cometbft/cometbft/crypto/secp256k1" tmprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" @@ -122,34 +121,14 @@ func (sk MockStakingKeeper) Validator(_ context.Context, address sdk.ValAddress) return nil, nil } -func (MockStakingKeeper) TotalBondedTokens(_ context.Context) (sdkmath.Int, error) { - return sdkmath.ZeroInt(), nil -} - func (sk MockStakingKeeper) GetBondedValidatorsByPower(_ context.Context) ([]stakingtypes.Validator, error) { return nil, nil } -func (MockStakingKeeper) ValidatorsPowerStoreIterator(_ context.Context) (storetypes.Iterator, error) { - return storetypes.KVStoreReversePrefixIterator(nil, nil), nil -} - -func (MockStakingKeeper) MaxValidators(context.Context) (uint32, error) { - return 100, nil -} - func (MockStakingKeeper) PowerReduction(_ context.Context) (res sdkmath.Int) { return sdk.DefaultPowerReduction } -func (MockStakingKeeper) Slash(context.Context, sdk.ConsAddress, int64, int64, sdkmath.LegacyDec) (sdkmath.Int, error) { - return sdkmath.ZeroInt(), nil -} - -func (MockStakingKeeper) Jail(context.Context, sdk.ConsAddress) error { - return nil -} - // MockValidator implements the ValidatorI interface. type MockValidator struct { power int64 From 3c65e325489e98917798b92a0ae52e344321d01d Mon Sep 17 00:00:00 2001 From: rbajollari Date: Thu, 15 May 2025 13:35:27 -0400 Subject: [PATCH 67/77] add new external liquidity providers --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 5221e77c..6d7d6658 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250422211727-1ba850b44781 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250515173304-4c99bd76a146 github.com/ory/dockertest/v3 v3.10.0 github.com/osmosis-labs/osmosis/osmomath v0.0.17 github.com/rs/zerolog v1.33.0 diff --git a/go.sum b/go.sum index e9de7768..55fdff01 100644 --- a/go.sum +++ b/go.sum @@ -1123,8 +1123,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250422211727-1ba850b44781 h1:a2W0H2B5US3/0ib/zdzmzoAu+SAmpAJSkR9m9lQXrlU= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250422211727-1ba850b44781/go.mod h1:rGpbsGqif6z5LkJYpHz611s5LGgWpiuIe24GeY26FxQ= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250515173304-4c99bd76a146 h1:QVkCEBw94pxrUMAWPPJEOuDG7blLabOXVYImtpyAKXw= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250515173304-4c99bd76a146/go.mod h1:/89lZc9UfN1Zi+mUNE89kcfTk70rczz0yDxccPFZTLA= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= From 8ed5268d42576cffa4ab9ac1977e127c87b8a912 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Thu, 15 May 2025 14:26:24 -0400 Subject: [PATCH 68/77] enable pricefeeder by default --- cmd/ojod/cmd/commands.go | 4 ++-- pricefeeder/config.go | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cmd/ojod/cmd/commands.go b/cmd/ojod/cmd/commands.go index ec5f326f..54e8f8d8 100644 --- a/cmd/ojod/cmd/commands.go +++ b/cmd/ojod/cmd/commands.go @@ -126,8 +126,8 @@ func initRootCmd( ) // add price feeder flags - rootCmd.PersistentFlags().String(pricefeeder.FlagLogLevel, "", "Log level of price feeder process") - rootCmd.PersistentFlags().Bool(pricefeeder.FlagEnablePriceFeeder, false, "Enable the price feeder") + rootCmd.PersistentFlags().String(pricefeeder.FlagLogLevel, "info", "Log level of price feeder process") + rootCmd.PersistentFlags().Bool(pricefeeder.FlagEnablePriceFeeder, true, "Enable the price feeder") } // genesisCommand builds genesis-related `simd genesis` command. Users may diff --git a/pricefeeder/config.go b/pricefeeder/config.go index 47f55c65..0092c636 100644 --- a/pricefeeder/config.go +++ b/pricefeeder/config.go @@ -12,7 +12,7 @@ const ( log_level = "info" # Enable the price feeder. -enable = false +enable = true ` ) @@ -34,6 +34,10 @@ func ReadConfigFromAppOpts(opts servertypes.AppOptions) (AppConfig, error) { err error ) + cfg.LogLevel = "info" + cfg.Enable = true + + // Override with values from AppOptions if provided if v := opts.Get(FlagLogLevel); v != nil { if cfg.LogLevel, err = cast.ToStringE(v); err != nil { return cfg, err From c2255af0d1a503628ed6713b2c3c9092d2dc0ac2 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 27 May 2025 21:03:15 -0400 Subject: [PATCH 69/77] increase min delay and decrease max delay --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 6d7d6658..e9f37a03 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250515173304-4c99bd76a146 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250528010136-d573d8e08241 github.com/ory/dockertest/v3 v3.10.0 github.com/osmosis-labs/osmosis/osmomath v0.0.17 github.com/rs/zerolog v1.33.0 diff --git a/go.sum b/go.sum index 55fdff01..d37f9e21 100644 --- a/go.sum +++ b/go.sum @@ -1125,6 +1125,8 @@ github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dl github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250515173304-4c99bd76a146 h1:QVkCEBw94pxrUMAWPPJEOuDG7blLabOXVYImtpyAKXw= github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250515173304-4c99bd76a146/go.mod h1:/89lZc9UfN1Zi+mUNE89kcfTk70rczz0yDxccPFZTLA= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250528010136-d573d8e08241 h1:oUR033OGPU/OuGnf9I7VdSdRkInHkxb6vH5ASGsQJNw= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250528010136-d573d8e08241/go.mod h1:/89lZc9UfN1Zi+mUNE89kcfTk70rczz0yDxccPFZTLA= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= From 0d8a4501e0a2fabf855e6819e4e157e338ac4a77 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 4 Jun 2025 10:39:56 -0400 Subject: [PATCH 70/77] isolate external liquidity responsibility and add external liquidity period param --- go.mod | 2 +- go.sum | 6 +- proto/ojo/oracle/v1/oracle.proto | 2 + x/oracle/abci/endblocker.go | 5 + x/oracle/keeper/param_update_plan.go | 6 + x/oracle/keeper/params.go | 13 ++ x/oracle/types/msgs.go | 5 + x/oracle/types/oracle.pb.go | 225 ++++++++++++++++----------- x/oracle/types/params.go | 25 ++- x/oracle/types/plan.go | 5 + 10 files changed, 192 insertions(+), 102 deletions(-) diff --git a/go.mod b/go.mod index e9f37a03..984af3e9 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 github.com/mgechev/revive v1.3.9 github.com/mitchellh/mapstructure v1.5.0 - github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250528010136-d573d8e08241 + github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250603135900-b913f8ff0b6b github.com/ory/dockertest/v3 v3.10.0 github.com/osmosis-labs/osmosis/osmomath v0.0.17 github.com/rs/zerolog v1.33.0 diff --git a/go.sum b/go.sum index d37f9e21..b085b933 100644 --- a/go.sum +++ b/go.sum @@ -1123,10 +1123,8 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250515173304-4c99bd76a146 h1:QVkCEBw94pxrUMAWPPJEOuDG7blLabOXVYImtpyAKXw= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250515173304-4c99bd76a146/go.mod h1:/89lZc9UfN1Zi+mUNE89kcfTk70rczz0yDxccPFZTLA= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250528010136-d573d8e08241 h1:oUR033OGPU/OuGnf9I7VdSdRkInHkxb6vH5ASGsQJNw= -github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250528010136-d573d8e08241/go.mod h1:/89lZc9UfN1Zi+mUNE89kcfTk70rczz0yDxccPFZTLA= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250603135900-b913f8ff0b6b h1:T4wpeOA49VaPk/DA2tygEnR3eFacJ2qFJgd97hsKmsY= +github.com/ojo-network/price-feeder v0.2.1-rc1.0.20250603135900-b913f8ff0b6b/go.mod h1:/89lZc9UfN1Zi+mUNE89kcfTk70rczz0yDxccPFZTLA= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= diff --git a/proto/ojo/oracle/v1/oracle.proto b/proto/ojo/oracle/v1/oracle.proto index 3792ba7e..a514ccba 100644 --- a/proto/ojo/oracle/v1/oracle.proto +++ b/proto/ojo/oracle/v1/oracle.proto @@ -78,6 +78,8 @@ message Params { uint64 price_expiry_time = 16; // Lifetime of an elys price in blocks uint64 life_time_in_blocks = 17; + // Number of blocks between updating external liquidity information. + uint64 external_liquidity_period = 18 [ (gogoproto.moretags) = "yaml:\"external_liquidity_period\"" ]; } // Denom - the object to hold configurations of each denom diff --git a/x/oracle/abci/endblocker.go b/x/oracle/abci/endblocker.go index 5bc06709..6ddc8ff3 100644 --- a/x/oracle/abci/endblocker.go +++ b/x/oracle/abci/endblocker.go @@ -75,6 +75,11 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { if err := k.PriceFeeder.Oracle.TickClientless(ctx); err != nil { sdkCtx.Logger().Error("Error in Oracle Keeper price feeder clientless tick", "err", err) } + + // Execute price feeder external liquidity tick + if err := k.PriceFeeder.Oracle.TickExternalLiquidityClientless(ctx); err != nil { + sdkCtx.Logger().Error("Error in Oracle Keeper price feeder clientless external liquidity tick", "err", err) + } } // Update oracle module with prices. diff --git a/x/oracle/keeper/param_update_plan.go b/x/oracle/keeper/param_update_plan.go index dd312186..06dc9702 100644 --- a/x/oracle/keeper/param_update_plan.go +++ b/x/oracle/keeper/param_update_plan.go @@ -132,6 +132,9 @@ func (k Keeper) ValidateParamChanges(ctx sdk.Context, keys []string, changes typ case string(types.KeyLifeTimeInBlocks): params.LifeTimeInBlocks = changes.LifeTimeInBlocks + + case string(types.KeyExternalLiquidityPeriod): + params.ExternalLiquidityPeriod = changes.ExternalLiquidityPeriod } } @@ -193,6 +196,9 @@ func (k Keeper) ExecuteParamUpdatePlan(ctx sdk.Context, plan types.ParamUpdatePl case string(types.KeyLifeTimeInBlocks): k.SetLifeTimeInBlocks(ctx, plan.Changes.LifeTimeInBlocks) + + case string(types.KeyExternalLiquidityPeriod): + k.SetExternalLiquidityPeriod(ctx, plan.Changes.ExternalLiquidityPeriod) } } diff --git a/x/oracle/keeper/params.go b/x/oracle/keeper/params.go index e282e544..6f179087 100644 --- a/x/oracle/keeper/params.go +++ b/x/oracle/keeper/params.go @@ -287,3 +287,16 @@ func (k Keeper) GetExponent(ctx sdk.Context, denom string) (uint32, error) { } return 0, fmt.Errorf("unable to find exponent for %s", denom) } + +// ExternalLiquidityPeriod returns the number of blocks during which external liquidity updating takes place. +func (k Keeper) ExternalLiquidityPeriod(ctx sdk.Context) uint64 { + params := k.GetParams(ctx) + return params.ExternalLiquidityPeriod +} + +// SetExternalLiquidityPeriod updates the number of blocks during which external liquidity updating takes place. +func (k Keeper) SetExternalLiquidityPeriod(ctx sdk.Context, externalLiquidityPeriod uint64) { + params := k.GetParams(ctx) + params.ExternalLiquidityPeriod = externalLiquidityPeriod + k.SetParams(ctx, params) +} diff --git a/x/oracle/types/msgs.go b/x/oracle/types/msgs.go index 00d01c47..316bf5c5 100644 --- a/x/oracle/types/msgs.go +++ b/x/oracle/types/msgs.go @@ -267,6 +267,11 @@ func (msg MsgLegacyGovUpdateParams) ValidateBasic() error { return err } + case string(KeyExternalLiquidityPeriod): + if err := validateExternalLiquidityPeriod(msg.Changes.ExternalLiquidityPeriod); err != nil { + return err + } + default: return fmt.Errorf("%s is not an existing oracle param key", key) } diff --git a/x/oracle/types/oracle.pb.go b/x/oracle/types/oracle.pb.go index ce41fae9..ebb8128e 100644 --- a/x/oracle/types/oracle.pb.go +++ b/x/oracle/types/oracle.pb.go @@ -60,6 +60,8 @@ type Params struct { PriceExpiryTime uint64 `protobuf:"varint,16,opt,name=price_expiry_time,json=priceExpiryTime,proto3" json:"price_expiry_time,omitempty"` // Lifetime of an elys price in blocks LifeTimeInBlocks uint64 `protobuf:"varint,17,opt,name=life_time_in_blocks,json=lifeTimeInBlocks,proto3" json:"life_time_in_blocks,omitempty"` + // Number of blocks between updating external liquidity information. + ExternalLiquidityPeriod uint64 `protobuf:"varint,18,opt,name=external_liquidity_period,json=externalLiquidityPeriod,proto3" json:"external_liquidity_period,omitempty" yaml:"external_liquidity_period"` } func (m *Params) Reset() { *m = Params{} } @@ -518,105 +520,106 @@ func init() { func init() { proto.RegisterFile("ojo/oracle/v1/oracle.proto", fileDescriptor_e2b9fb194216b28f) } var fileDescriptor_e2b9fb194216b28f = []byte{ - // 1553 bytes of a gzipped FileDescriptorProto + // 1575 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xbd, 0x6f, 0x1b, 0xc9, 0x15, 0xe7, 0x5a, 0x9f, 0x1c, 0x92, 0xfa, 0x18, 0x49, 0xd6, 0x4a, 0x72, 0xb8, 0xca, 0xc6, 0x49, 0x64, 0x3b, 0x22, 0x63, 0x39, 0x81, 0x11, 0x21, 0x29, 0xbc, 0x92, 0x9d, 0x18, 0x70, 0x0c, 0x62, 0xe5, 0x38, 0x80, 0x8b, 0x6c, 0x86, 0xbb, 0x63, 0x72, 0x2c, 0xee, 0xce, 0x7a, 0x66, 0x29, 0x91, - 0x6d, 0xaa, 0x00, 0x69, 0x52, 0xa4, 0x48, 0xe9, 0x74, 0x81, 0xcb, 0x00, 0x01, 0xae, 0xb9, 0xde, - 0xc0, 0x35, 0x2e, 0x0f, 0x57, 0xac, 0xef,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x00, 0x07, 0xeb, 0x21, 0x89, 0xbc, 0x33, 0xd4, 0x21, 0x81, 0xb8, 0x58, 0x59, 0x8c, 0x45, - 0x49, 0xd3, 0xf9, 0x30, 0x9a, 0x3b, 0x6a, 0x99, 0x69, 0x81, 0x6c, 0x77, 0x35, 0x24, 0xd1, 0x63, - 0x31, 0xdb, 0xc0, 0x4c, 0x2f, 0xda, 0x02, 0x4b, 0x21, 0x8a, 0x02, 0x94, 0x50, 0xd6, 0x57, 0xc2, - 0x17, 0xbf, 0x43, 0xf8, 0xeb, 0x5a, 0x78, 0x2d, 0xc6, 0xb8, 0xe7, 0x84, 0xf6, 0x95, 0x21, 0x2a, - 0xe5, 0x3f, 0x00, 0x1b, 0x6d, 0xc2, 0x13, 0xca, 0x88, 0xef, 0xf1, 0x04, 0x85, 0x71, 0x96, 0x58, - 0x40, 0x48, 0xe4, 0xae, 0x65, 0xe0, 0x89, 0xc0, 0x74, 0x26, 0xd5, 0xc0, 0x5a, 0x88, 0x03, 0x82, - 0xa2, 0x71, 0x8f, 0x92, 0xf4, 0x58, 0x55, 0x50, 0xde, 0xfe, 0x97, 0x60, 0x3d, 0x44, 0x3d, 0x12, - 0x76, 0x43, 0x2f, 0x66, 0xc4, 0xc7, 0xca, 0x8d, 0x9b, 0x65, 0xe9, 0x00, 0x35, 0xd6, 0x10, 0x90, - 0x74, 0xe3, 0x82, 0x55, 0xe6, 0x91, 0x5f, 0x89, 0x9b, 0x15, 0xc5, 0x4a, 0x83, 0x7f, 0x1c, 0x2d, - 0xc5, 0xe1, 0x7f, 0x0c, 0xb0, 0xe9, 0x77, 0x19, 0xc3, 0x91, 0xdf, 0xf7, 0x62, 0x44, 0x98, 0x17, - 0x33, 0x7a, 0x46, 0x02, 0xcc, 0xb8, 0xb9, 0x24, 0xc5, 0xbb, 0x3a, 0x21, 0xde, 0x91, 0xb6, 0x6e, - 0x20, 0xc2, 0x1a, 0x99, 0xad, 0x73, 0xa4, 0xc5, 0xac, 0x2a, 0x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e3, 0x5c, - 0x19, 0xa4, 0x96, 0x99, 0x67, 0x31, 0x16, 0x68, 0x59, 0xce, 0xe5, 0x22, 0xdd, 0x00, 0x0b, 0x31, - 0xa5, 0x1d, 0x8f, 0x04, 0xe6, 0x9c, 0xbc, 0xef, 0x70, 0x90, 0x5a, 0x4b, 0xca, 0x5f, 0x03, 0xb6, - 0x3b, 0x2f, 0xbe, 0xee, 0x07, 0xf0, 0xaf, 0x60, 0x0b, 0xf7, 0x12, 0xcc, 0x22, 0xaf, 0x43, 0x9e, - 0x77, 0x49, 0x40, 0x92, 0xfe, 0xb0, 0xef, 0xe8, 0xc7, 0xd1, 0xd5, 0x41, 0x6a, 0xed, 0x66, 0x45, - 0xe9, 0x02, 0x53, 0xdb, 0xdd, 0x54, 0xd8, 0x83, 0x0c, 0xca, 0xce, 0x03, 0x3e, 0x01, 0x9b, 0x3e, - 0xeb, 0xc7, 0x09, 0xf5, 0x7c, 0x1a, 0xc6, 0x88, 0x89, 0x7a, 0xae, 0x6e, 0x8e, 0x7c, 0x19, 0x15, - 0x1d, 0x3b, 0xd7, 0xff, 0xa6, 0x1b, 0xda, 0xee, 0x86, 0x42, 0x8e, 0x14, 0x90, 0xe5, 0x1f, 0x6c, - 0x82, 0xb2, 0xec, 0x94, 0x28, 0x08, 0x18, 0xe6, 0xdc, 0x5c, 0x94, 0x59, 0x67, 0x4f, 0x34, 0x34, - 0x71, 0x3d, 0xee, 0x28, 0x8b, 0x8c, 0x95, 0xb3, 0x33, 0xfe, 0x14, 0xce, 0x47, 0xb1, 0xdd, 0x52, - 0x3c, 0xf2, 0x80, 0x07, 0xa0, 0x38, 0xea, 0xed, 0x45, 0x79, 0x47, 0xd7, 0x07, 0xa9, 0xb5, 0xa2, - 0x1d, 0x87, 0x3d, 0xda, 0x1d, 0x99, 0x4d, 0x64, 0xdb, 0x3f, 0x0c, 0xb0, 0x36, 0x85, 0x03, 0xfc, - 0x05, 0x58, 0xc8, 0x88, 0xab, 0x5b, 0x9a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ad, 0x0e, 0x00, - 0x00, + 0x6d, 0xaa, 0x00, 0x69, 0x52, 0xa4, 0x48, 0xe9, 0x74, 0x81, 0xcb, 0x00, 0x01, 0xd2, 0xa4, 0x37, + 0x90, 0x14, 0x2e, 0x0f, 0x57, 0xac, 0xef, 0xec, 0xe6, 0x6a, 0xfe, 0x05, 0x87, 0xf9, 0x58, 0x72, + 0x49, 0x51, 0x77, 0x3e, 0x57, 0xdc, 0x99, 0xdf, 0x7b, 0x6f, 0x7e, 0xf3, 0x9b, 0x37, 0xef, 0x0d, + 0xc1, 0x36, 0x7d, 0x41, 0xeb, 0x94, 0x21, 0xbf, 0x83, 0xeb, 0x67, 0xb7, 0xf5, 0x57, 0x2d, 0x66, + 0x34, 0xa1, 0xb0, 0x42, 0x5f, 0xd0, 0x9a, 0x9e, 0x39, 0xbb, 0xbd, 0xbd, 0xde, 0xa2, 0x2d, 0x2a, + 0x91, 0xba, 0xf8, 0x52, 0x46, 0xdb, 0x55, 0x9f, 0xf2, 0x90, 0xf2, 0x7a, 0x13, 0x71, 0x11, 0xa1, + 0x89, 0x13, 0x74, 0xbb, 0xee, 0x53, 0x12, 0x29, 0xdc, 0xfe, 0x7f, 0x19, 0xcc, 0x37, 0x10, 0x43, + 0x21, 0x87, 0x77, 0x41, 0xe9, 0x8c, 0x26, 0xd8, 0x8b, 0x31, 0x23, 0x34, 0x30, 0x8d, 0x5d, 0x63, + 0x6f, 0xd6, 0xb9, 0x3a, 0x48, 0x2d, 0xd8, 0x47, 0x61, 0xe7, 0xd0, 0xce, 0x81, 0xb6, 0x0b, 0xc4, + 0xa8, 0x21, 0x07, 0xd0, 0x07, 0x4b, 0x12, 0x4b, 0xda, 0x0c, 0xf3, 0x36, 0xed, 0x04, 0xe6, 0x95, + 0x5d, 0x63, 0xaf, 0xe8, 0xfc, 0xf2, 0x4d, 0x6a, 0x15, 0x3e, 0x4f, 0xad, 0x1d, 0xc5, 0x81, 0x07, + 0xa7, 0x35, 0x42, 0xeb, 0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0, 0xc7, 0xf0, 0x10, 0x94, + 0x95, 0x85, 0xd6, 0x66, 0x41, 0x6a, 0xb3, 0x39, 0xd2, 0x3d, 0x8f, 0xda, 0x6e, 0x49, 0x0e, 0xb5, + 0x00, 0x1c, 0xac, 0x87, 0x24, 0xf2, 0xce, 0x50, 0x87, 0x04, 0x22, 0xb1, 0xb2, 0x18, 0x8b, 0x92, + 0xa6, 0xf3, 0x71, 0x34, 0x77, 0xd4, 0x32, 0xd3, 0x02, 0xd9, 0xee, 0x6a, 0x48, 0xa2, 0xa7, 0x62, + 0xb6, 0x81, 0x99, 0x5e, 0xb4, 0x05, 0x96, 0x42, 0x14, 0x05, 0x28, 0xa1, 0xac, 0xaf, 0x84, 0x2f, + 0x7e, 0x83, 0xf0, 0x37, 0xb5, 0xf0, 0x5a, 0x8c, 0x71, 0xcf, 0x09, 0xed, 0x2b, 0x43, 0x54, 0xca, + 0x7f, 0x00, 0x36, 0xda, 0x84, 0x27, 0x94, 0x11, 0xdf, 0xe3, 0x09, 0x0a, 0xe3, 0xec, 0x62, 0x01, + 0x21, 0x91, 0xbb, 0x96, 0x81, 0x27, 0x02, 0xd3, 0x37, 0xa9, 0x06, 0xd6, 0x42, 0x1c, 0x10, 0x14, + 0x8d, 0x7b, 0x94, 0xa4, 0xc7, 0xaa, 0x82, 0xf2, 0xf6, 0x3f, 0x05, 0xeb, 0x21, 0xea, 0x91, 0xb0, + 0x1b, 0x7a, 0x31, 0x23, 0x3e, 0x56, 0x6e, 0xdc, 0x2c, 0x4b, 0x07, 0xa8, 0xb1, 0x86, 0x80, 0xa4, + 0x1b, 0x17, 0xac, 0x32, 0x8f, 0xfc, 0x4a, 0xdc, 0xac, 0x28, 0x56, 0x1a, 0xfc, 0xed, 0x68, 0x29, + 0x0e, 0xff, 0x61, 0x80, 0x4d, 0xbf, 0xcb, 0x18, 0x8e, 0xfc, 0xbe, 0x17, 0x23, 0xc2, 0xbc, 0x98, + 0xd1, 0x33, 0x12, 0x60, 0xc6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xe1, 0xab, 0x57, 0x96, 0x61, 0xff, + 0xc7, 0x00, 0x73, 0xf2, 0x46, 0xc0, 0x9f, 0x01, 0x20, 0x7a, 0x8e, 0x17, 0x88, 0x91, 0x6c, 0x26, + 0x45, 0x67, 0x63, 0x90, 0x5a, 0xab, 0x6a, 0x99, 0x11, 0x66, 0xbb, 0x45, 0x31, 0x50, 0x5e, 0xa2, + 0x9c, 0xf4, 0xc3, 0x26, 0xed, 0x68, 0x3f, 0xd5, 0x48, 0xf2, 0xe5, 0x24, 0x87, 0x8a, 0x72, 0x22, + 0x87, 0xca, 0xb7, 0x0e, 0x16, 0x71, 0x2f, 0xa6, 0x11, 0x8e, 0x12, 0x73, 0x66, 0xd7, 0xd8, 0xab, + 0x38, 0x6b, 0x83, 0xd4, 0x5a, 0xce, 0xb6, 0xa5, 0x10, 0xdb, 0x1d, 0x1a, 0x1d, 0x96, 0xff, 0xfc, + 0xca, 0x2a, 0x68, 0xea, 0x05, 0xfb, 0x5f, 0x06, 0x00, 0xa3, 0x9e, 0x70, 0x81, 0x89, 0xf1, 0x1d, + 0x98, 0x3c, 0x03, 0xa5, 0x5c, 0xbb, 0xd1, 0x9b, 0xf8, 0xc5, 0xc7, 0xd5, 0x33, 0x78, 0xa1, 0x5d, + 0xd9, 0x2e, 0x18, 0xf5, 0xa6, 0x09, 0xd2, 0xff, 0x36, 0xc0, 0xb5, 0x7b, 0xad, 0x16, 0xc3, 0x2d, + 0x94, 0xe0, 0xfb, 0x3d, 0xbf, 0x8d, 0xa2, 0x16, 0x76, 0x51, 0x82, 0x1b, 0x0c, 0x8b, 0xfe, 0x09, + 0x7f, 0x00, 0x66, 0xdb, 0x88, 0xb7, 0x35, 0xfd, 0xe5, 0x41, 0x6a, 0x95, 0xd4, 0x02, 0x62, 0xd6, + 0x76, 0x25, 0x08, 0x7f, 0x04, 0xe6, 0x84, 0x31, 0xd3, 0x4c, 0x57, 0x06, 0xa9, 0x55, 0x1e, 0x35, + 0x65, 0x66, 0x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f, 0x3f, 0x54, 0x0b, 0x9f, 0x7d, 0xa8, 0x16, 0x9e, 0xdd, 0xc8, + 0xd5, 0x69, 0xfa, 0x82, 0xee, 0x47, 0x38, 0x39, 0xa7, 0xec, 0x54, 0x7c, 0xd7, 0x7b, 0xd9, 0x9f, + 0x5e, 0x59, 0xae, 0x9b, 0xf3, 0xf2, 0xcf, 0xea, 0x9d, 0xaf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x6c, + 0x11, 0xee, 0x65, 0x0f, 0x0f, 0x00, 0x00, } func (this *Params) Equal(that interface{}) bool { @@ -714,6 +717,9 @@ func (this *Params) Equal(that interface{}) bool { if this.LifeTimeInBlocks != that1.LifeTimeInBlocks { return false } + if this.ExternalLiquidityPeriod != that1.ExternalLiquidityPeriod { + return false + } return true } func (this *ParamUpdatePlan) Equal(that interface{}) bool { @@ -771,6 +777,13 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.ExternalLiquidityPeriod != 0 { + i = encodeVarintOracle(dAtA, i, uint64(m.ExternalLiquidityPeriod)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } if m.LifeTimeInBlocks != 0 { i = encodeVarintOracle(dAtA, i, uint64(m.LifeTimeInBlocks)) i-- @@ -1457,6 +1470,9 @@ func (m *Params) Size() (n int) { if m.LifeTimeInBlocks != 0 { n += 2 + sovOracle(uint64(m.LifeTimeInBlocks)) } + if m.ExternalLiquidityPeriod != 0 { + n += 2 + sovOracle(uint64(m.ExternalLiquidityPeriod)) + } return n } @@ -2145,6 +2161,25 @@ func (m *Params) Unmarshal(dAtA []byte) error { break } } + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalLiquidityPeriod", wireType) + } + m.ExternalLiquidityPeriod = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOracle + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ExternalLiquidityPeriod |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipOracle(dAtA[iNdEx:]) diff --git a/x/oracle/types/params.go b/x/oracle/types/params.go index 3a31fd22..56cd4d69 100644 --- a/x/oracle/types/params.go +++ b/x/oracle/types/params.go @@ -37,6 +37,7 @@ var ( KeyCurrencyDeviationThresholds = []byte("CurrencyDeviationThresholds") KeyPriceExpiryTime = []byte("PriceExpiryTime") KeyLifeTimeInBlocks = []byte("LifeTimeInBlocks") + KeyExternalLiquidityPeriod = []byte("ExternalLiquidityPeriod") ) // Default parameter values @@ -50,6 +51,7 @@ const ( DefaultMaximumMedianStamps = 24 // retain for 3 days DefaultPriceExpiryTime = 86400 // retain for 1 day DefaultLifeTimeInBlocks = 1 // retain for 1 block + DefaultExternalLiquidityPeriod = BlocksPerMinute * 5 // window for 5 minutes ) // Default parameter values @@ -373,6 +375,7 @@ func DefaultParams() Params { CurrencyDeviationThresholds: DefaultCurrencyDeviationThresholds, PriceExpiryTime: DefaultPriceExpiryTime, LifeTimeInBlocks: DefaultLifeTimeInBlocks, + ExternalLiquidityPeriod: DefaultExternalLiquidityPeriod, } } @@ -470,6 +473,11 @@ func (p *Params) ParamSetPairs() paramstypes.ParamSetPairs { &p.CurrencyDeviationThresholds, validateCurrencyDeviationThresholds, ), + paramstypes.NewParamSetPair( + KeyExternalLiquidityPeriod, + &p.ExternalLiquidityPeriod, + validateExternalLiquidityPeriod, + ), } } @@ -524,9 +532,9 @@ func (p Params) Validate() error { ) } - if p.HistoricStampPeriod%p.VotePeriod != 0 || p.MedianStampPeriod%p.VotePeriod != 0 { + if p.HistoricStampPeriod%p.VotePeriod != 0 || p.MedianStampPeriod%p.VotePeriod != 0 || p.ExternalLiquidityPeriod%p.VotePeriod != 0 { return ErrInvalidParamValue.Wrap( - "oracle parameters HistoricStampPeriod and MedianStampPeriod must be exact multiples of VotePeriod", + "oracle parameters HistoricStampPeriod, MedianStampPeriod, and ExternalLiquidityPeriod must be exact multiples of VotePeriod", ) } @@ -801,3 +809,16 @@ func validateCurrencyDeviationThresholds(i interface{}) error { return nil } + +func validateExternalLiquidityPeriod(i interface{}) error { + v, ok := i.(uint64) + if !ok { + return ErrInvalidParamValue.Wrapf("invalid parameter type: %T", i) + } + + if v == 0 { + return ErrInvalidParamValue.Wrap("oracle parameter ExternalLiquidityPeriod must be > 0") + } + + return nil +} diff --git a/x/oracle/types/plan.go b/x/oracle/types/plan.go index 455ce435..9bfc62fc 100644 --- a/x/oracle/types/plan.go +++ b/x/oracle/types/plan.go @@ -97,6 +97,11 @@ func (p ParamUpdatePlan) ValidateBasic() error { return err } + case string(KeyExternalLiquidityPeriod): + if err := validateExternalLiquidityPeriod(p.Changes.ExternalLiquidityPeriod); err != nil { + return err + } + default: return fmt.Errorf("%s is not an existing oracle param key", key) } From a720212bb1d182e849791c6bb03dbe4230e20073 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 4 Jun 2025 10:46:51 -0400 Subject: [PATCH 71/77] enforce external liquidity period in endblocker --- x/oracle/abci/endblocker.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/x/oracle/abci/endblocker.go b/x/oracle/abci/endblocker.go index 6ddc8ff3..89ddef12 100644 --- a/x/oracle/abci/endblocker.go +++ b/x/oracle/abci/endblocker.go @@ -77,8 +77,10 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { } // Execute price feeder external liquidity tick - if err := k.PriceFeeder.Oracle.TickExternalLiquidityClientless(ctx); err != nil { - sdkCtx.Logger().Error("Error in Oracle Keeper price feeder clientless external liquidity tick", "err", err) + if k.IsPeriodLastBlock(sdkCtx, params.ExternalLiquidityPeriod) { + if err := k.PriceFeeder.Oracle.TickExternalLiquidityClientless(ctx); err != nil { + sdkCtx.Logger().Error("Error in Oracle Keeper price feeder clientless external liquidity tick", "err", err) + } } } From cce8a9533261f780cacf3b85997dfaf122796da4 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Thu, 5 Jun 2025 13:50:08 -0400 Subject: [PATCH 72/77] documentation for queries and asset crud --- proto/ojo/oracle/v1/query.proto | 8 +- x/oracle/GOVERNANCE.md | 653 ++++++++++++++++++++++++++++++++ x/oracle/QUERIES.md | 330 ++++++++++++++++ x/oracle/types/query.pb.go | 234 ++++++------ x/oracle/types/query.pb.gw.go | 8 +- 5 files changed, 1108 insertions(+), 125 deletions(-) create mode 100644 x/oracle/GOVERNANCE.md create mode 100644 x/oracle/QUERIES.md diff --git a/proto/ojo/oracle/v1/query.proto b/proto/ojo/oracle/v1/query.proto index 0186aa08..10b686dc 100644 --- a/proto/ojo/oracle/v1/query.proto +++ b/proto/ojo/oracle/v1/query.proto @@ -117,26 +117,26 @@ service Query { // Queries a Pool. rpc Pool(QueryPoolRequest) returns (QueryPoolResponse) { - option (google.api.http).get = "/elys-network/elys/amm/pool/{pool_id}"; + option (google.api.http).get = "/elys-network/elys/oracle/pool/{pool_id}"; } // Queries a list of Pool items. rpc PoolAll(QueryPoolAllRequest) returns (QueryPoolAllResponse) { - option (google.api.http).get = "/elys-network/elys/amm/pool"; + option (google.api.http).get = "/elys-network/elys/oracle/pool"; } // Queries an AccountedPool. rpc AccountedPool(QueryAccountedPoolRequest) returns (QueryAccountedPoolResponse) { option (google.api.http).get = - "/elys-network/elys/accountedpool/accounted_pool/{pool_id}"; + "/elys-network/elys/oracle/accounted_pool/{pool_id}"; } // Queries a list of AccountedPool items. rpc AccountedPoolAll(QueryAccountedPoolAllRequest) returns (QueryAccountedPoolAllResponse) { option (google.api.http).get = - "/elys-network/elys/accountedpool/accounted_pool"; + "/elys-network/elys/oracle/accounted_pool"; } // Queries a AssetInfo by denom. diff --git a/x/oracle/GOVERNANCE.md b/x/oracle/GOVERNANCE.md new file mode 100644 index 00000000..d23854bd --- /dev/null +++ b/x/oracle/GOVERNANCE.md @@ -0,0 +1,653 @@ +# Oracle Module Governance Operations + +This document provides step-by-step examples for submitting governance proposals related to the Ojo oracle module. These examples cover parameter updates, asset management, and provider management. + +## Table of Contents +- [Understanding Key Types](#understanding-key-types) +- [Updating Oracle Parameters](#updating-oracle-parameters) +- [Managing Assets](#managing-assets) +- [Managing Currency Pair Providers](#managing-currency-pair-providers) +- [Managing Currency Deviation Thresholds](#managing-currency-deviation-thresholds) +- [Canceling Parameter Updates](#canceling-parameter-updates) +- [Submitting Proposals Using JSON Files](#submitting-proposals-using-json-files) + +## Understanding Key Types + +### CurrencyPairProvider Type + +The `CurrencyPairProvider` type defines how price data is sourced for a specific currency pair. It contains the following fields: + +```go +type CurrencyPairProvider struct { + BaseDenom string // The base denomination (e.g., "ATOM", "ETH") + QuoteDenom string // The quote denomination (e.g., "USD", "USDT") + BaseProxyDenom string // Optional proxy denomination for the base asset + QuoteProxyDenom string // Optional proxy denomination for the quote asset + PoolId uint64 // Optional pool ID for liquidity pool based pricing + ExternLiquidityProvider string // External liquidity provider identifier + CryptoCompareExchange string // Optional CryptoCompare exchange identifier + PairAddress []PairAddressProvider // Optional addresses for on-chain DEX pairs + Providers []string // List of authorized price providers +} + +type PairAddressProvider struct { + Address string // The contract address of the DEX pair + AddressProvider string // The provider type (e.g., "eth-uniswap", "eth-curve") +} +``` + +Key points about CurrencyPairProviders: +- Each provider represents a trusted source for price data +- Multiple providers can be specified for redundancy and accuracy +- Proxy denominations allow for indirect price calculations through intermediate assets +- External liquidity providers and pool IDs enable DEX-based pricing +- CryptoCompare integration provides additional price feed options +- PairAddress is used for on-chain DEX price sources +- Common providers include: + - Centralized exchanges (e.g., "binance", "coinbase", "kraken") + - DEXes (e.g., "eth-uniswap", "eth-curve", "osmosis") + +### CurrencyDeviationThreshold Type + +The `CurrencyDeviationThreshold` type defines the maximum allowed price deviation for a specific currency. It contains: + +```go +type CurrencyDeviationThreshold struct { + BaseDenom string // The denomination to monitor (e.g., "ATOM", "ETH") + Threshold string // Maximum allowed deviation as a string decimal (e.g., "0.02" for 2%) +} +``` + +Key points about CurrencyDeviationThresholds: +- Thresholds help prevent price manipulation and ensure oracle reliability +- Values are expressed as string decimals representing percentages (e.g., "0.02" = 2%) +- Different assets may have different thresholds based on their volatility +- Exceeding the threshold may trigger alerts or affect price validity +- Typical threshold values range from 1-2% for stable assets to higher values for volatile assets +- The threshold applies to deviations from the median price across all providers + +### Governance Message Types + +The oracle module provides several governance message types for managing the oracle system: + +#### MsgGovAddDenoms + +Used to add new assets to the oracle system. Contains: +```go +type MsgGovAddDenoms struct { + Authority string // Governance account address + Title string // Proposal title + Description string // Proposal description + Height int64 // Block height for the update + DenomList DenomList // List of denominations to add + Mandatory bool // Whether the assets should be mandatory + RewardBand *cosmossdk_io_math.LegacyDec // Optional reward band for the assets (default value of 2% will be used if not specified) + CurrencyPairProviders CurrencyPairProvidersList // Price providers for the new assets + CurrencyDeviationThresholds CurrencyDeviationThresholdList // Deviation thresholds for the new assets +} +``` + +#### MsgGovUpdateParams + +Used to update oracle parameters. Contains: +```go +type MsgGovUpdateParams struct { + Authority string // Governance account address + Title string // Proposal title + Description string // Proposal description + Plan ParamUpdatePlan // The parameter update plan +} +``` + +#### MsgGovRemoveCurrencyPairProviders + +Used to remove currency pair providers from the oracle. Contains: +```go +type MsgGovRemoveCurrencyPairProviders struct { + Authority string // Governance account address + Title string // Proposal title + Description string // Proposal description + Height int64 // Block height for the update + CurrencyPairProviders CurrencyPairProvidersList // Providers to remove +} +``` + +#### MsgGovRemoveCurrencyDeviationThresholds + +Used to remove currency deviation thresholds. Contains: +```go +type MsgGovRemoveCurrencyDeviationThresholds struct { + Authority string // Governance account address + Title string // Proposal title + Description string // Proposal description + Height int64 // Block height for the update + Currencies []string // List of currency denominations to remove thresholds for +} +``` + +#### MsgGovCancelUpdateParamPlan + +Used to cancel a scheduled parameter update. Contains: +```go +type MsgGovCancelUpdateParamPlan struct { + Authority string // Governance account address + Title string // Proposal title + Description string // Proposal description + Height int64 // Height of the update to cancel +} +``` + +Key points about governance messages: +- All messages require governance authority for execution +- Changes are typically scheduled for a future block height +- Messages include standard proposal metadata (title, description) +- Some operations can be batched (e.g., adding multiple denoms) +- Changes go through the standard governance process with voting + +## Updating Oracle Parameters + +To update oracle parameters through governance, you can use the `GovUpdateParams` message. Here's a complete example: + +```go +package main + +import ( + "context" + "time" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/ojo-network/ojo/x/oracle/types" +) + +func submitParamUpdateProposal() error { + // Create the parameter update plan + plan := types.ParamUpdatePlan{ + Keys: []string{ + string(types.KeyVotePeriod), + string(types.KeyVoteThreshold), + }, + Height: 1000000, // Block height at which the update should occur + Changes: types.Params{ + VotePeriod: 12, // Number of blocks in a voting period + VoteThreshold: sdk.NewDec(50), // 50% vote threshold + }, + } + + // Create the governance message + msg := types.NewMsgGovUpdateParams( + "ojo1...", // Authority (governance module account) + "Update Oracle Parameters", + "This proposal updates the vote period and threshold for the oracle module", + plan, + ) + + // Submit the proposal using the governance module + // Note: This is a simplified example. In practice, you would: + // 1. Create a governance proposal + // 2. Submit it through the governance module + // 3. Wait for the voting period + // 4. If passed, the changes will be applied at the specified height +} +``` + +CLI example: +```bash +# Submit a parameter update proposal +ojod tx gov submit-proposal \ + --type=GovUpdateParams \ + --title="Update Oracle Parameters" \ + --description="This proposal updates the vote period and threshold" \ + --authority="ojo1..." \ + --plan.keys="VotePeriod,VoteThreshold" \ + --plan.height=1000000 \ + --plan.changes.vote_period=12 \ + --plan.changes.vote_threshold=0.5 \ + --from= \ + --chain-id= \ + --gas=auto \ + --fees=1000uojo +``` + +## Managing Assets + +### Adding New Assets + +To add new assets to the oracle through governance, use the `GovAddDenoms` message: + +```go +func submitAddDenomsProposal() error { + // Create the denom list + denoms := types.DenomList{ + { + BaseDenom: "uatom", + SymbolDenom: "ATOM", + Exponent: 6, + }, + { + BaseDenom: "ubtc", + SymbolDenom: "BTC", + Exponent: 8, + }, + } + + // Create currency pair providers + providers := types.CurrencyPairProvidersList{ + { + BaseDenom: "ATOM", + Providers: []string{"binance", "coinbase", "kraken"}, + }, + { + BaseDenom: "BTC", + Providers: []string{"binance", "coinbase", "kraken"}, + }, + } + + // Create deviation thresholds + thresholds := types.CurrencyDeviationThresholdList{ + { + BaseDenom: "ATOM", + Threshold: sdk.NewDec(1), // 1% threshold + }, + { + BaseDenom: "BTC", + Threshold: sdk.NewDec(1), // 1% threshold + }, + } + + // Create the governance message + msg := types.NewMsgGovAddDenoms( + "ojo1...", // Authority + "Add New Assets", + "Add ATOM and BTC to the oracle", + 1000000, // Height + denoms, + true, // Mandatory + sdk.NewDec(2), // Reward band + providers, + thresholds, + ) + + // Submit the proposal + // Implementation details same as above +} +``` + +CLI example: +```bash +ojod tx gov submit-proposal \ + --type=GovAddDenoms \ + --title="Add New Assets" \ + --description="Add ATOM and BTC to the oracle" \ + --authority="ojo1..." \ + --height=1000000 \ + --denom-list='[{"base_denom":"uatom","symbol_denom":"ATOM","exponent":6},{"base_denom":"ubtc","symbol_denom":"BTC","exponent":8}]' \ + --mandatory=true \ + --reward-band=0.02 \ + --currency-pair-providers='[{"base_denom":"ATOM","providers":["binance","coinbase","kraken"]},{"base_denom":"BTC","providers":["binance","coinbase","kraken"]}]' \ + --currency-deviation-thresholds='[{"base_denom":"ATOM","threshold":"0.01"},{"base_denom":"BTC","threshold":"0.01"}]' \ + --from= \ + --chain-id= \ + --gas=auto \ + --fees=1000uojo +``` + +## Managing Currency Pair Providers + +To remove currency pair providers, use the `GovRemoveCurrencyPairProviders` message: + +```go +func submitRemoveProvidersProposal() error { + // Create the provider list to remove + providers := types.CurrencyPairProvidersList{ + { + BaseDenom: "ATOM", + Providers: []string{"binance"}, + }, + } + + // Create the governance message + msg := types.NewMsgGovRemoveCurrencyPairProviders( + "ojo1...", // Authority + "Remove Currency Pair Provider", + "Remove Binance as a provider for ATOM", + 1000000, // Height + providers, + ) + + // Submit the proposal + // Implementation details same as above +} +``` + +CLI example: +```bash +ojod tx gov submit-proposal \ + --type=GovRemoveCurrencyPairProviders \ + --title="Remove Currency Pair Provider" \ + --description="Remove Binance as a provider for ATOM" \ + --authority="ojo1..." \ + --height=1000000 \ + --currency-pair-providers='[{"base_denom":"ATOM","providers":["binance"]}]' \ + --from= \ + --chain-id= \ + --gas=auto \ + --fees=1000uojo +``` + +## Managing Currency Deviation Thresholds + +To remove currency deviation thresholds, use the `GovRemoveCurrencyDeviationThresholds` message: + +```go +func submitRemoveThresholdsProposal() error { + // Create the governance message + msg := types.NewMsgGovRemoveCurrencyDeviationThresholds( + "ojo1...", // Authority + "Remove Currency Deviation Thresholds", + "Remove deviation thresholds for ATOM", + 1000000, // Height + []string{"ATOM"}, + ) + + // Submit the proposal + // Implementation details same as above +} +``` + +CLI example: +```bash +ojod tx gov submit-proposal \ + --type=GovRemoveCurrencyDeviationThresholds \ + --title="Remove Currency Deviation Thresholds" \ + --description="Remove deviation thresholds for ATOM" \ + --authority="ojo1..." \ + --height=1000000 \ + --currencies=ATOM \ + --from= \ + --chain-id= \ + --gas=auto \ + --fees=1000uojo +``` + +## Canceling Parameter Updates + +If you need to cancel a scheduled parameter update, use the `GovCancelUpdateParamPlan` message: + +```go +func submitCancelUpdateProposal() error { + // Create the governance message + msg := types.NewMsgGovCancelUpdateParamPlan( + "ojo1...", // Authority + "Cancel Parameter Update", + "Cancel the scheduled parameter update at height 1000000", + 1000000, // Height of the update to cancel + ) + + // Submit the proposal + // Implementation details same as above +} +``` + +CLI example: +```bash +ojod tx gov submit-proposal \ + --type=GovCancelUpdateParamPlan \ + --title="Cancel Parameter Update" \ + --description="Cancel the scheduled parameter update at height 1000000" \ + --authority="ojo1..." \ + --height=1000000 \ + --from= \ + --chain-id= \ + --gas=auto \ + --fees=1000uojo +``` + +## Submitting Proposals Using JSON Files + +For complex proposals, especially those involving multiple messages or detailed configurations, it's recommended to use JSON files. This approach provides better organization and reduces the chance of errors compared to command-line parameters. + +### Basic Command Structure + +```bash +ojod tx gov submit-proposal \ + --from= \ + --chain-id= \ + --gas=auto \ + --fees=1000uojo +``` + +### Real-World Examples + +Here are some example JSON proposal files that demonstrate different oracle governance operations: + +1. Adding New Assets: +```json +{ + "title": "Add ATOM with External Liquidity Configuration", + "summary": "Adds ATOM with external liquidity configuration using Binance as provider", + "messages": [ + { + "@type": "/ojo.oracle.v1.MsgGovAddDenoms", + "authority": "ojo10d07y265gmmuvt4z0w9aw880jnsr700jcz4krc", + "title": "Add ATOM with External Liquidity", + "description": "Adds ATOM with external liquidity configuration using Binance as provider", + "height": 1000000, + "denom_list": [ + { + "base_denom": "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2", + "symbol_denom": "ATOM", + "exponent": 6 + } + ], + "mandatory": true, + "currency_pair_providers": [ + { + "base_denom": "ATOM", + "quote_denom": "USDT", + "base_proxy_denom": "ATOM", + "quote_proxy_denom": "USDC", + "extern_liquidity_provider": "binance", + "pool_id": 1, + "providers": [ + "binance", + "okx", + "bitget", + "gate" + ] + } + ], + "currency_deviation_thresholds": [ + { + "base_denom": "ATOM", + "threshold": "0.02" + } + ] + } + ], + "metadata": "", + "deposit": "10000000uojo" +} +``` + +Key components in this example: +- Configures ATOM with both direct price feeds and external liquidity sources +- Uses Binance as the external liquidity provider with pool ID 1 +- Sets up proxy denominations for price calculations (ATOM→USDC) +- Includes multiple price providers for redundancy + +2. Updating Currency Pair Providers: +```json +{ + "title": "Updates cpp for RETH", + "summary": "Updates cpp for multi eth provider with uniswap, camelot, balancer, pancake, and curve", + "messages": [ + { + "@type": "/ojo.oracle.v1.MsgGovUpdateParams", + "authority": "ojo10d07y265gmmuvt4z0w9aw880jnsr700jcz4krc", + "title": "Updates cpp for multi eth provider", + "description": "Updates cpp for multi eth provider with uniswap, camelot, balancer, pancake, and curve", + "plan": + { + "keys": [ + "CurrencyPairProviders" + ], + "height": 6843550, + "changes": { + "vote_period": "0", + "vote_threshold": "0.000000000000000000", + "reward_bands": [], + "reward_distribution_window": "0", + "accept_list": [], + "slash_fraction": "0.000000000000000000", + "slash_window": "0", + "min_valid_per_window": "0.000000000000000000", + "mandatory_list": [], + "historic_stamp_period": "0", + "median_stamp_period": "0", + "maximum_price_stamps": "0", + "maximum_median_stamps": "0", + "currency_pair_providers": [ + {"base_denom":"USDT","quote_denom":"USD","pair_address":[],"providers":["kraken","coinbase","crypto","gate"]}, + {"base_denom":"ATOM","quote_denom":"USDT","pair_address":[],"providers":["okx","bitget","gate"]}, + {"base_denom":"ATOM","quote_denom":"USD","pair_address":[],"providers":["kraken"]}, + {"base_denom":"ETH","quote_denom":"USDT","pair_address":[],"providers":["okx","bitget"]}, + {"base_denom":"ETH","quote_denom":"USD","pair_address":[],"providers":["kraken"]}, + {"base_denom":"RETH","quote_denom":"WETH","pair_address":[{"address":"0xa4e0faA58465A2D369aa21B3e42d43374c6F9613","address_provider":"eth-uniswap"}],"providers":["eth-uniswap"]}, + {"base_denom":"WETH","quote_denom":"USDC","pair_address":[{"address":"0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640","address_provider":"eth-uniswap"}],"providers":["eth-uniswap"]}, + {"base_denom":"CBETH","quote_denom":"WETH","pair_address":[{"address":"0x840deeef2f115cf50da625f7368c24af6fe74410","address_provider":"eth-uniswap"}],"providers":["eth-uniswap"]}, + {"base_denom":"RE7LRT","quote_denom":"ETH","pair_address":[{"address":"0x4216d5900a6109bba48418b5e2Ab6cc4e61Cf477","address_provider":"eth-balancer"}],"providers":["eth-balancer"]}, + {"base_denom":"SWBTC","quote_denom":"WBTC","pair_address":[],"providers":["eth-pancake", "eth-curve"]} + ] + } + } + } + ], + "metadata": "", + "deposit": "10000000uojo" +} +``` + +3. Removing Assets ([View Full Example](https://gist.github.com/rbajollari/074724ba3911318e439b73f669315caa)): +```json +{ + "title": "Removes STINJ asset", + "summary": "Removes STINJ asset off accept list and mandatory list and removes STINJ currency providers and deviation threshold", + "messages": [ + { + "@type": "/ojo.oracle.v1.MsgGovUpdateParams", + "authority": "ojo10d07y265gmmuvt4z0w9aw880jnsr700jcz4krc", + "title": "Removes STINJ asset on ditto", + "description": "Removes STINJ asset off accept list and mandatory list", + "plan": { + "keys": ["RewardBands", "AcceptList", "MandatoryList"], + "height": 2828500, + "changes": { + // Removed asset configurations + } + } + }, + { + "@type": "/ojo.oracle.v1.MsgGovRemoveCurrencyPairProviders", + "authority": "ojo10d07y265gmmuvt4z0w9aw880jnsr700jcz4krc", + "title": "Removes STINJ currency pair providers", + "description": "Removes STINJ currency pair providers", + "height": 2828500, + "currency_pair_providers": [ + { + "base_denom": "STINJ", + "quote_denom": "INJ", + "pair_address": [], + "providers": ["astroport"] + } + ] + }, + { + "@type": "/ojo.oracle.v1.MsgGovRemoveCurrencyDeviationThresholds", + "authority": "ojo10d07y265gmmuvt4z0w9aw880jnsr700jcz4krc", + "title": "Removes STINJ currency deviation threshold", + "description": "Removes STINJ currency deviation threshold", + "height": 2828500, + "currencies": ["STINJ"] + } + ], + "metadata": "", + "deposit": "10000000uojo" +} +``` + +### Key Components of JSON Proposals + +1. **Message Types**: Each proposal must specify the correct message type in the `@type` field: + - `/ojo.oracle.v1.MsgGovAddDenoms` for adding new assets + - `/ojo.oracle.v1.MsgGovUpdateParams` for updating parameters + - `/ojo.oracle.v1.MsgGovRemoveCurrencyPairProviders` for removing providers + - `/ojo.oracle.v1.MsgGovRemoveCurrencyDeviationThresholds` for removing thresholds + +2. **Authority**: The governance module account address that has the authority to make these changes. + +3. **Height**: The block height at which the changes should take effect. + +4. **Deposit**: The amount of tokens to deposit for the proposal (required for governance). + +### Best Practices for JSON Proposals + +1. **Validation**: Always validate your JSON file before submission: + ```bash + cat proposal.json | jq + ``` + +2. **Multiple Messages**: When removing assets, consider grouping related operations: + - Removing from accept/mandatory lists + - Removing currency pair providers + - Removing deviation thresholds + +3. **Testing**: Test proposals on a testnet first, especially for complex changes. + +4. **Documentation**: Include clear titles and descriptions that explain: + - What changes are being made + - Why the changes are necessary + - Any potential impacts + +5. **Height Planning**: Set appropriate heights that allow enough time for: + - Proposal voting period + - Implementation preparation + - Validator updates + +### Submitting the Proposal + +```bash +# Submit the proposal +ojod tx gov submit-proposal proposal.json \ + --from=validator \ + --chain-id=ojo-1 \ + --gas=auto \ + --fees=1000uojo + +# Check the proposal status +ojod query gov proposal + +# Vote on the proposal (after checking its content) +ojod tx gov vote yes \ + --from=validator \ + --chain-id=ojo-1 \ + --gas=auto \ + --fees=1000uojo +``` + +## Important Notes + +1. All governance proposals require the proper authority address (typically the governance module account). +2. The height parameter specifies when the changes should take effect. +3. For asset additions: + - Make sure to specify both the base and symbol denominations correctly + - Consider whether the asset should be mandatory + - Set appropriate reward bands and deviation thresholds +4. When removing providers or thresholds: + - Verify that alternatives are in place + - Consider the impact on oracle reliability +5. Parameter updates can be scheduled for future blocks and canceled if needed +6. Always verify the proposal contents before submission +7. Follow proper governance procedures including: + - Deposit period + - Voting period + - Required quorum and threshold diff --git a/x/oracle/QUERIES.md b/x/oracle/QUERIES.md new file mode 100644 index 00000000..8ecb64ef --- /dev/null +++ b/x/oracle/QUERIES.md @@ -0,0 +1,330 @@ +# Oracle Module Queries + +This document provides examples and explanations for querying the Ojo oracle module. The oracle module provides various query endpoints to retrieve price data, amm/accounted pool information, and other oracle-related data. + +## Using the CLI + +The oracle module provides several CLI commands for querying data. Here are the main query commands available: + +```bash +# Query all exchange rates +ojod query oracle exchange-rates + +# Query exchange rate for a specific denom +ojod query oracle exchange-rate ATOM + +# Query latest prices for specific denoms +ojod query oracle latest-prices ATOM,BTC,ETH + +# Query all latest prices +ojod query oracle all-latest-prices + +# Query price history for an asset +ojod query oracle price-history ATOM + +# Query oracle parameters +ojod query oracle params + +# Query asset info for a specific denom +ojod query oracle show-asset-info ATOM + +# Query all asset info +ojod query oracle list-asset-info + +# Query a specific pool by ID +ojod query oracle show-pool 1 + +# Query all pools +ojod query oracle list-pool + +# Query a specific accounted pool by ID +ojod query oracle show-accounted-pool 1 + +# Query all accounted pools +ojod query oracle list-accounted-pool +``` + +## Using gRPC + +For programmatic access, you can use the gRPC client. Here are examples in Go showing how to query oracle data: + +```go +package main + +import ( + "context" + "fmt" + "log" + "time" + + "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" + + sdk "github.com/cosmos/cosmos-sdk/types" + oracletypes "github.com/ojo-network/ojo/x/oracle/types" +) + +func main() { + // Connect to your node's gRPC endpoint + grpcConn, err := grpc.Dial( + "localhost:9090", // Your gRPC server address + grpc.WithTransportCredentials(insecure.NewCredentials()), + ) + if err != nil { + log.Fatal(err) + } + defer grpcConn.Close() + + // Create oracle query client + queryClient := oracletypes.NewQueryClient(grpcConn) + + // Set timeout context + ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second) + defer cancel() + + // Example 1: Query Exchange Rates + exchangeRates, err := queryClient.ExchangeRates(ctx, &oracletypes.QueryExchangeRates{}) + if err != nil { + log.Fatal(err) + } + fmt.Printf("Exchange Rates: %v\n", exchangeRates.ExchangeRates) + + // Example 2: Query Active Exchange Rates + activeRates, err := queryClient.ActiveExchangeRates(ctx, &oracletypes.QueryActiveExchangeRates{}) + if err != nil { + log.Fatal(err) + } + fmt.Printf("Active Rates: %v\n", activeRates.ActiveRates) + + // Example 3: Query Latest Prices + latestPrices, err := queryClient.LatestPrices(ctx, &oracletypes.QueryLatestPricesRequest{ + Denoms: []string{"ATOM", "BTC", "ETH"}, + }) + if err != nil { + log.Fatal(err) + } + fmt.Printf("Latest Prices: %v\n", latestPrices) + + // Example 4: Query Price History + priceHistory, err := queryClient.PriceHistory(ctx, &oracletypes.QueryPriceHistoryRequest{ + Asset: "ATOM", + }) + if err != nil { + log.Fatal(err) + } + fmt.Printf("Price History: %v\n", priceHistory) + + // Example 5: Query Oracle Parameters + params, err := queryClient.Params(ctx, &oracletypes.QueryParams{}) + if err != nil { + log.Fatal(err) + } + fmt.Printf("Oracle Parameters: %v\n", params) + + // Example 6: Query Asset Info + assetInfo, err := queryClient.AssetInfo(ctx, &oracletypes.QueryAssetInfoRequest{ + Denom: "ATOM", + }) + if err != nil { + log.Fatal(err) + } + fmt.Printf("Asset Info: %v\n", assetInfo) + + // Example 7: Query All Asset Info + allAssetInfo, err := queryClient.AssetInfoAll(ctx, &oracletypes.QueryAssetInfoAllRequest{}) + if err != nil { + log.Fatal(err) + } + fmt.Printf("All Asset Info: %v\n", allAssetInfo) + + // Example 8: Query a specific pool + pool, err := queryClient.Pool(ctx, &oracletypes.QueryPoolRequest{ + PoolId: 1, + }) + if err != nil { + log.Fatal(err) + } + fmt.Printf("Pool: %v\n", pool) + + // Example 9: Query all pools + allPools, err := queryClient.PoolAll(ctx, &oracletypes.QueryPoolAllRequest{}) + if err != nil { + log.Fatal(err) + } + fmt.Printf("All Pools: %v\n", allPools) + + // Example 10: Query a specific accounted pool + accountedPool, err := queryClient.AccountedPool(ctx, &oracletypes.QueryAccountedPoolRequest{ + PoolId: 1, + }) + if err != nil { + log.Fatal(err) + } + fmt.Printf("Accounted Pool: %v\n", accountedPool) + + // Example 11: Query all accounted pools + allAccountedPools, err := queryClient.AccountedPoolAll(ctx, &oracletypes.QueryAccountedPoolAllRequest{}) + if err != nil { + log.Fatal(err) + } + fmt.Printf("All Accounted Pools: %v\n", allAccountedPools) +} +``` + +## REST API Endpoints + +The oracle module also exposes REST API endpoints through the gRPC-gateway. Here are the available endpoints: + +``` +# Get exchange rates +GET /ojo/oracle/v1/denoms/exchange_rates/{denom} + +# Get active exchange rates +GET /ojo/oracle/v1/denoms/active_exchange_rates + +# Get oracle parameters +GET /ojo/oracle/v1/params + +# Get medians for all denoms or a specific denom +GET /ojo/historacle/v1/denoms/medians + +# Get median deviations for all denoms or a specific denom +GET /ojo/historacle/v1/denoms/median_deviations + +# Get latest prices for specific denoms +GET /elys-network/elys/oracle/latest_prices/{denoms} + +# Get all latest prices +GET /elys-network/elys/oracle/all_latest_prices + +# Get price history for an asset +GET /elys-network/elys/oracle/price_history/{asset} + +# Get pool by ID +GET /elys-network/elys/oracle/pool/{pool_id} + +# Get all pools +GET /elys-network/elys/oracle/pool + +# Get accounted pool by ID +GET /elys-network/elys/oracle/accounted_pool/{pool_id} + +# Get all accounted pools +GET /elys-network/elys/oracle/accounted_pool + +# Get asset info for a specific denom +GET /elys-network/elys/oracle/asset_info/{denom} + +# Get all asset info +GET /elys-network/elys/oracle/asset_info +``` + +## Response Types + +Here are the main response types you'll receive from the queries: + +### Exchange Rates Response +```go +type QueryExchangeRatesResponse struct { + // exchange_rates defines a list of the exchange rate for all whitelisted denoms + ExchangeRates []sdk.DecCoin +} +``` + +### Latest Prices Response +```go +type QueryLatestPricesResponse struct { + Prices []types.LatestPrice + Pagination *query.PageResponse +} + +type LatestPrice struct { + Denom string + LatestPrice sdk.Dec +} +``` + +### Price History Response +```go +type QueryPriceHistoryResponse struct { + Prices []types.Price + Pagination *query.PageResponse +} + +type Price struct { + Asset string + Price sdk.Dec + Timestamp uint64 +} +``` + +### Parameters Response +```go +type QueryParamsResponse struct { + // params defines the parameters of the module + Params types.Params +} +``` + +### Asset Info Response +```go +type QueryAssetInfoResponse struct { + AssetInfo types.AssetInfo +} + +type AssetInfo struct { + Denom string + Display string + Ticker string + Decimal uint64 +} +``` + +### All Asset Info Response +```go +type QueryAssetInfoAllResponse struct { + AssetInfo []types.AssetInfo +} +``` + +### Pool Response +```go +type QueryPoolResponse struct { + Pool Pool +} + +type Pool struct { + PoolId uint64 + PoolAssets []PoolAsset +} + +type PoolAsset struct { + Token sdk.Coin + Weight math.Int + ExternalLiquidityRatio math.LegacyDec +} +``` + +### Accounted Pool Response +```go +type QueryAccountedPoolResponse struct { + AccountedPool AccountedPool +} + +type AccountedPool struct { + PoolId uint64 + TotalTokens []sdk.Coin +} +``` + +## Error Handling + +When using the gRPC client, be sure to check for errors in the responses. Common error scenarios include: + +- Network connectivity issues +- Invalid validator addresses +- Non-existent denoms or pool IDs +- Rate limiting +- Timeout errors + +Always implement proper error handling in your applications when querying the oracle module. diff --git a/x/oracle/types/query.pb.go b/x/oracle/types/query.pb.go index c116ea25..18fe911b 100644 --- a/x/oracle/types/query.pb.go +++ b/x/oracle/types/query.pb.go @@ -1798,123 +1798,123 @@ func init() { func init() { proto.RegisterFile("ojo/oracle/v1/query.proto", fileDescriptor_ac3bb5b34dcda556) } var fileDescriptor_ac3bb5b34dcda556 = []byte{ - // 1850 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x99, 0xcf, 0x4f, 0x1c, 0xc9, - 0x15, 0xc7, 0xe9, 0x05, 0x43, 0x78, 0xc3, 0x60, 0x28, 0xc3, 0x1a, 0xda, 0x30, 0x40, 0xdb, 0x18, - 0x58, 0x60, 0xda, 0x80, 0x95, 0x8d, 0x93, 0x6c, 0x14, 0x7e, 0xed, 0xae, 0x93, 0x8d, 0xc4, 0x8e, - 0x15, 0x5b, 0xda, 0x43, 0x26, 0xcd, 0x74, 0x79, 0x68, 0xb6, 0xa7, 0x6b, 0xb6, 0xab, 0x19, 0x20, - 0x04, 0x45, 0xf2, 0x29, 0xa7, 0xc4, 0x8a, 0xa5, 0x28, 0x8a, 0x0f, 0x71, 0x24, 0x2b, 0x91, 0xa2, - 0xfc, 0x21, 0x3e, 0x5a, 0xca, 0x25, 0xa7, 0xfc, 0xb0, 0x73, 0xc8, 0x2d, 0xff, 0x42, 0xd4, 0x55, - 0xd5, 0x3d, 0xd5, 0xdd, 0xd5, 0xcc, 0x60, 0xe5, 0x90, 0xd3, 0xee, 0xd4, 0x7b, 0xf5, 0xde, 0xa7, - 0x5e, 0xd7, 0x8f, 0xf7, 0x35, 0x30, 0x49, 0x0e, 0x89, 0x49, 0x7c, 0xab, 0xe6, 0x62, 0xb3, 0xb5, - 0x66, 0x7e, 0x75, 0x84, 0xfd, 0xd3, 0x72, 0xd3, 0x27, 0x01, 0x41, 0x45, 0x72, 0x48, 0xca, 0xdc, - 0x54, 0x6e, 0xad, 0xe9, 0x63, 0x75, 0x52, 0x27, 0xcc, 0x62, 0x86, 0xff, 0xc7, 0x9d, 0xf4, 0xa9, - 0x3a, 0x21, 0x75, 0x17, 0x9b, 0x56, 0xd3, 0x31, 0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0x83, 0x43, 0x0c, 0xf5, 0x21, - 0x83, 0x5a, 0x43, 0xe6, 0x25, 0xa0, 0x42, 0x45, 0x85, 0x7e, 0x0a, 0x05, 0x49, 0x31, 0xa9, 0x89, - 0x24, 0x07, 0x35, 0x91, 0x42, 0x73, 0x19, 0x37, 0x19, 0xd1, 0x34, 0xba, 0x91, 0x22, 0xa2, 0xa1, - 0x6f, 0x95, 0xeb, 0x2e, 0xf4, 0x67, 0x0d, 0x46, 0x32, 0x5a, 0x4b, 0xf9, 0xd1, 0xd2, 0x5e, 0xea, - 0x8f, 0x96, 0xa7, 0xb6, 0x8c, 0x1d, 0x46, 0xf3, 0x1d, 0xf4, 0xed, 0x4b, 0xd4, 0x27, 0xa3, 0x80, - 0xd0, 0xef, 0x34, 0x18, 0xcd, 0x88, 0x26, 0x34, 0xdf, 0x0d, 0x09, 0xd5, 0x57, 0xbb, 0x72, 0xeb, - 0x78, 0x58, 0x25, 0xe2, 0xac, 0x44, 0x43, 0x2f, 0x34, 0x28, 0x26, 0x25, 0xd5, 0xdc, 0x85, 0x69, - 0x43, 0x17, 0xf5, 0x15, 0xa2, 0x54, 0x54, 0xc6, 0x26, 0xa3, 0xfa, 0x16, 0xba, 0x97, 0xa5, 0xb2, - 0x9d, 0x8e, 0x75, 0x64, 0x45, 0x7c, 0xa6, 0xc1, 0x70, 0x52, 0x22, 0x21, 0xa3, 0x23, 0x00, 0xd5, - 0x3f, 0xe8, 0xec, 0x13, 0x53, 0xae, 0x31, 0xca, 0x65, 0xb4, 0xd4, 0x4d, 0xed, 0x78, 0xe1, 0xea, - 0xd0, 0xcf, 0x15, 0x10, 0xd2, 0x55, 0x89, 0xb8, 0x4d, 0x37, 0xf2, 0x6d, 0x71, 0xf2, 0x69, 0x96, - 0xfc, 0x3a, 0x1a, 0x4f, 0x25, 0xe7, 0x92, 0x0a, 0xb5, 0x60, 0x20, 0x52, 0x53, 0x37, 0x94, 0xa7, - 0x9b, 0x1b, 0xf5, 0x9b, 0x17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xdf, 0x96, 0x7a, 0xbe, 0x58, 0x92, 0xfe, 0x16, 0x43, 0x0e, 0x49, 0x1c, 0x2c, 0xbc, 0xa9, - 0x4f, 0xa2, 0x68, 0xec, 0x4f, 0x32, 0xfb, 0xfd, 0xec, 0x0f, 0x4a, 0x1b, 0xff, 0x0d, 0x00, 0x00, - 0xff, 0xff, 0x6a, 0x9e, 0x83, 0xf8, 0x32, 0x1b, 0x00, 0x00, + // 1847 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x99, 0x5b, 0x6f, 0xdc, 0xc6, + 0x15, 0xc7, 0xc5, 0xd8, 0x96, 0xab, 0xb3, 0x5a, 0x59, 0x1e, 0xcb, 0xb1, 0x44, 0xcb, 0x2b, 0x79, + 0x7c, 0x91, 0x64, 0x49, 0x4b, 0xdd, 0xd0, 0xd4, 0x69, 0x53, 0x54, 0xb7, 0x24, 0x6e, 0x53, 0x40, + 0x59, 0xa3, 0x36, 0x90, 0x87, 0x6e, 0xa9, 0xe5, 0x78, 0x45, 0x85, 0xcb, 0xd9, 0x70, 0xa8, 0x95, + 0x15, 0x55, 0x28, 0x90, 0xa7, 0x3e, 0xb5, 0x41, 0x0d, 0x14, 0x45, 0xf3, 0x10, 0x17, 0xc8, 0x53, + 0xd1, 0x0f, 0xe2, 0x47, 0x03, 0x7d, 0xe9, 0x53, 0x2f, 0x76, 0x81, 0xf6, 0x63, 0x14, 0x9c, 0x19, + 0x72, 0x87, 0xe4, 0x50, 0xbb, 0x32, 0xfa, 0x90, 0xa7, 0x64, 0xe7, 0x9c, 0x39, 0xe7, 0x37, 0x87, + 0x73, 0x39, 0x7f, 0x0b, 0x26, 0xe8, 0x3e, 0xb5, 0x68, 0x60, 0x37, 0x3c, 0x62, 0x75, 0x96, 0xad, + 0xcf, 0x0e, 0x48, 0x70, 0x54, 0x6d, 0x07, 0x34, 0xa4, 0xa8, 0x4c, 0xf7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 0x8b, 0x7f, 0x55, 0x06, 0x5e, 0xbc, 0xaa, 0x18, 0x2f, 0x5f, 0x55, 0x8c, + 0x7f, 0xbe, 0xaa, 0x18, 0x5f, 0xbe, 0xae, 0x0c, 0xbc, 0x7c, 0x5d, 0x19, 0xf8, 0xdb, 0xeb, 0xca, + 0xc0, 0x27, 0x73, 0xca, 0xdf, 0x60, 0xe8, 0x3e, 0x4d, 0x82, 0x45, 0x37, 0xf4, 0xd3, 0x38, 0x1a, + 0xff, 0x53, 0xcc, 0xee, 0x20, 0xff, 0x43, 0xd2, 0xea, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x80, + 0xdc, 0xa0, 0xbc, 0x2a, 0x1b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/oracle/types/query.pb.gw.go b/x/oracle/types/query.pb.gw.go index ee6387e1..997e8497 100644 --- a/x/oracle/types/query.pb.gw.go +++ b/x/oracle/types/query.pb.gw.go @@ -1872,13 +1872,13 @@ var ( pattern_Query_PriceHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"elys-network", "elys", "oracle", "price_history", "asset"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Pool_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"elys-network", "elys", "amm", "pool", "pool_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Pool_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"elys-network", "elys", "oracle", "pool", "pool_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PoolAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"elys-network", "elys", "amm", "pool"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_PoolAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"elys-network", "elys", "oracle", "pool"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_AccountedPool_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"elys-network", "elys", "accountedpool", "accounted_pool", "pool_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_AccountedPool_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"elys-network", "elys", "oracle", "accounted_pool", "pool_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_AccountedPoolAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"elys-network", "elys", "accountedpool", "accounted_pool"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_AccountedPoolAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"elys-network", "elys", "oracle", "accounted_pool"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_AssetInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"elys-network", "elys", "oracle", "asset_info", "denom"}, "", runtime.AssumeColonVerbOpt(false))) From 5ab0b565af8fd1ce7f4e994bf8dd113ca665e465 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Thu, 5 Jun 2025 14:03:15 -0400 Subject: [PATCH 73/77] remove go code example --- x/oracle/GOVERNANCE.md | 171 +---------------------------------------- 1 file changed, 3 insertions(+), 168 deletions(-) diff --git a/x/oracle/GOVERNANCE.md b/x/oracle/GOVERNANCE.md index d23854bd..363b27db 100644 --- a/x/oracle/GOVERNANCE.md +++ b/x/oracle/GOVERNANCE.md @@ -146,50 +146,6 @@ Key points about governance messages: ## Updating Oracle Parameters -To update oracle parameters through governance, you can use the `GovUpdateParams` message. Here's a complete example: - -```go -package main - -import ( - "context" - "time" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/ojo-network/ojo/x/oracle/types" -) - -func submitParamUpdateProposal() error { - // Create the parameter update plan - plan := types.ParamUpdatePlan{ - Keys: []string{ - string(types.KeyVotePeriod), - string(types.KeyVoteThreshold), - }, - Height: 1000000, // Block height at which the update should occur - Changes: types.Params{ - VotePeriod: 12, // Number of blocks in a voting period - VoteThreshold: sdk.NewDec(50), // 50% vote threshold - }, - } - - // Create the governance message - msg := types.NewMsgGovUpdateParams( - "ojo1...", // Authority (governance module account) - "Update Oracle Parameters", - "This proposal updates the vote period and threshold for the oracle module", - plan, - ) - - // Submit the proposal using the governance module - // Note: This is a simplified example. In practice, you would: - // 1. Create a governance proposal - // 2. Submit it through the governance module - // 3. Wait for the voting period - // 4. If passed, the changes will be applied at the specified height -} -``` - CLI example: ```bash # Submit a parameter update proposal @@ -212,66 +168,6 @@ ojod tx gov submit-proposal \ ### Adding New Assets -To add new assets to the oracle through governance, use the `GovAddDenoms` message: - -```go -func submitAddDenomsProposal() error { - // Create the denom list - denoms := types.DenomList{ - { - BaseDenom: "uatom", - SymbolDenom: "ATOM", - Exponent: 6, - }, - { - BaseDenom: "ubtc", - SymbolDenom: "BTC", - Exponent: 8, - }, - } - - // Create currency pair providers - providers := types.CurrencyPairProvidersList{ - { - BaseDenom: "ATOM", - Providers: []string{"binance", "coinbase", "kraken"}, - }, - { - BaseDenom: "BTC", - Providers: []string{"binance", "coinbase", "kraken"}, - }, - } - - // Create deviation thresholds - thresholds := types.CurrencyDeviationThresholdList{ - { - BaseDenom: "ATOM", - Threshold: sdk.NewDec(1), // 1% threshold - }, - { - BaseDenom: "BTC", - Threshold: sdk.NewDec(1), // 1% threshold - }, - } - - // Create the governance message - msg := types.NewMsgGovAddDenoms( - "ojo1...", // Authority - "Add New Assets", - "Add ATOM and BTC to the oracle", - 1000000, // Height - denoms, - true, // Mandatory - sdk.NewDec(2), // Reward band - providers, - thresholds, - ) - - // Submit the proposal - // Implementation details same as above -} -``` - CLI example: ```bash ojod tx gov submit-proposal \ @@ -284,7 +180,7 @@ ojod tx gov submit-proposal \ --mandatory=true \ --reward-band=0.02 \ --currency-pair-providers='[{"base_denom":"ATOM","providers":["binance","coinbase","kraken"]},{"base_denom":"BTC","providers":["binance","coinbase","kraken"]}]' \ - --currency-deviation-thresholds='[{"base_denom":"ATOM","threshold":"0.01"},{"base_denom":"BTC","threshold":"0.01"}]' \ + --currency-deviation-thresholds='[{"base_denom":"ATOM","threshold":"2"},{"base_denom":"BTC","threshold":"2"}]' \ --from= \ --chain-id= \ --gas=auto \ @@ -293,32 +189,6 @@ ojod tx gov submit-proposal \ ## Managing Currency Pair Providers -To remove currency pair providers, use the `GovRemoveCurrencyPairProviders` message: - -```go -func submitRemoveProvidersProposal() error { - // Create the provider list to remove - providers := types.CurrencyPairProvidersList{ - { - BaseDenom: "ATOM", - Providers: []string{"binance"}, - }, - } - - // Create the governance message - msg := types.NewMsgGovRemoveCurrencyPairProviders( - "ojo1...", // Authority - "Remove Currency Pair Provider", - "Remove Binance as a provider for ATOM", - 1000000, // Height - providers, - ) - - // Submit the proposal - // Implementation details same as above -} -``` - CLI example: ```bash ojod tx gov submit-proposal \ @@ -336,24 +206,6 @@ ojod tx gov submit-proposal \ ## Managing Currency Deviation Thresholds -To remove currency deviation thresholds, use the `GovRemoveCurrencyDeviationThresholds` message: - -```go -func submitRemoveThresholdsProposal() error { - // Create the governance message - msg := types.NewMsgGovRemoveCurrencyDeviationThresholds( - "ojo1...", // Authority - "Remove Currency Deviation Thresholds", - "Remove deviation thresholds for ATOM", - 1000000, // Height - []string{"ATOM"}, - ) - - // Submit the proposal - // Implementation details same as above -} -``` - CLI example: ```bash ojod tx gov submit-proposal \ @@ -371,23 +223,6 @@ ojod tx gov submit-proposal \ ## Canceling Parameter Updates -If you need to cancel a scheduled parameter update, use the `GovCancelUpdateParamPlan` message: - -```go -func submitCancelUpdateProposal() error { - // Create the governance message - msg := types.NewMsgGovCancelUpdateParamPlan( - "ojo1...", // Authority - "Cancel Parameter Update", - "Cancel the scheduled parameter update at height 1000000", - 1000000, // Height of the update to cancel - ) - - // Submit the proposal - // Implementation details same as above -} -``` - CLI example: ```bash ojod tx gov submit-proposal \ @@ -459,7 +294,7 @@ Here are some example JSON proposal files that demonstrate different oracle gove "currency_deviation_thresholds": [ { "base_denom": "ATOM", - "threshold": "0.02" + "threshold": "2" } ] } @@ -469,7 +304,7 @@ Here are some example JSON proposal files that demonstrate different oracle gove } ``` -Key components in this example: +Key components: - Configures ATOM with both direct price feeds and external liquidity sources - Uses Binance as the external liquidity provider with pool ID 1 - Sets up proxy denominations for price calculations (ATOM→USDC) From bc325435c484a03aa1646f354a10a2802b4af30d Mon Sep 17 00:00:00 2001 From: ryanb-ojo Date: Tue, 17 Jun 2025 13:21:49 -0400 Subject: [PATCH 74/77] prune all elys prices except latest --- proto/ojo/oracle/v1/oracle.proto | 6 +- x/oracle/abci/endblocker.go | 12 +- x/oracle/keeper/elys.go | 12 +- x/oracle/keeper/end_blocker.go | 19 ++ x/oracle/keeper/param_update_plan.go | 12 -- x/oracle/keeper/params.go | 26 --- x/oracle/types/oracle.pb.go | 267 ++++++++++----------------- x/oracle/types/params.go | 42 ----- 8 files changed, 127 insertions(+), 269 deletions(-) diff --git a/proto/ojo/oracle/v1/oracle.proto b/proto/ojo/oracle/v1/oracle.proto index a514ccba..f0e7b2ff 100644 --- a/proto/ojo/oracle/v1/oracle.proto +++ b/proto/ojo/oracle/v1/oracle.proto @@ -74,12 +74,8 @@ message Params { (gogoproto.castrepeated) = "CurrencyDeviationThresholdList", (gogoproto.nullable) = false ]; - // Price expiry in unix time for elys prices - uint64 price_expiry_time = 16; - // Lifetime of an elys price in blocks - uint64 life_time_in_blocks = 17; // Number of blocks between updating external liquidity information. - uint64 external_liquidity_period = 18 [ (gogoproto.moretags) = "yaml:\"external_liquidity_period\"" ]; + uint64 external_liquidity_period = 16 [ (gogoproto.moretags) = "yaml:\"external_liquidity_period\"" ]; } // Denom - the object to hold configurations of each denom diff --git a/x/oracle/abci/endblocker.go b/x/oracle/abci/endblocker.go index 89ddef12..c3c4794a 100644 --- a/x/oracle/abci/endblocker.go +++ b/x/oracle/abci/endblocker.go @@ -65,6 +65,7 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { if assetInfo.Display == "USDC" { usdcDenom = assetInfo.Denom } + k.PruneElysPrices(sdkCtx, assetInfo.Display) } k.PriceFeeder.Oracle.AmmPools = ammPoolsMap @@ -92,17 +93,6 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { k.PruneAllPrices(sdkCtx) - // Prune expired elys prices - for _, price := range k.GetAllPrice(sdkCtx) { - if price.Timestamp+params.PriceExpiryTime < util.SafeInt64ToUint64(sdkCtx.BlockTime().Unix()) { - k.RemovePrice(sdkCtx, price.Asset, price.Timestamp) - } - - if price.BlockHeight+params.LifeTimeInBlocks < util.SafeInt64ToUint64(sdkCtx.BlockHeight()) { - k.RemovePrice(sdkCtx, price.Asset, price.Timestamp) - } - } - return nil } diff --git a/x/oracle/keeper/elys.go b/x/oracle/keeper/elys.go index 41afbe88..146b3b6b 100644 --- a/x/oracle/keeper/elys.go +++ b/x/oracle/keeper/elys.go @@ -1,6 +1,7 @@ package keeper import ( + "cosmossdk.io/math" storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" @@ -68,12 +69,12 @@ func (k Keeper) GetAllAssetPrices(ctx sdk.Context, asset string) (list []*types. return } -func (k Keeper) GetAssetPrice(ctx sdk.Context, asset string) (osmomath.BigDec, bool) { +func (k Keeper) GetAssetPrice(ctx sdk.Context, asset string) (math.LegacyDec, bool) { val, found := k.getLatestPrice(ctx, asset) if found { - return osmomath.BigDecFromDec(val.Price), true + return val.Price, true } - return osmomath.BigDec{}, false + return math.LegacyDec{}, false } func (k Keeper) GetDenomPrice(ctx sdk.Context, denom string) osmomath.BigDec { @@ -85,7 +86,10 @@ func (k Keeper) GetDenomPrice(ctx sdk.Context, denom string) osmomath.BigDec { if !found { return osmomath.ZeroBigDec() } - return price.Quo(util.Pow10(info.Decimal)) + if info.Decimal <= 18 { + return osmomath.BigDecFromDec(price).QuoInt64(util.Pow10Int64(info.Decimal)) + } + return osmomath.BigDecFromDec(price).Quo(util.Pow10(info.Decimal)) } // SetAssetInfo set a specific assetInfo in the store from its index diff --git a/x/oracle/keeper/end_blocker.go b/x/oracle/keeper/end_blocker.go index d92b32ff..61629479 100644 --- a/x/oracle/keeper/end_blocker.go +++ b/x/oracle/keeper/end_blocker.go @@ -1,6 +1,8 @@ package keeper import ( + "sort" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ojo-network/ojo/util" "github.com/ojo-network/ojo/util/metrics" @@ -28,6 +30,23 @@ func (k *Keeper) PruneAllPrices(ctx sdk.Context) { } } +// PruneElysPrices prunes elys prices for a given asset except the latest one. +func (k *Keeper) PruneElysPrices(ctx sdk.Context, asset string) { + allAssetPrice := k.GetAllAssetPrices(ctx, asset) + total := len(allAssetPrice) + + sort.Slice(allAssetPrice, func(i, j int) bool { + return allAssetPrice[i].Timestamp < allAssetPrice[j].Timestamp + }) + + for i, price := range allAssetPrice { + // We don't remove the last element + if i < total-1 { + k.RemovePrice(ctx, price.Asset, price.Timestamp) + } + } +} + // IsPeriodLastBlock returns true if we are at the last block of the period func (k *Keeper) IsPeriodLastBlock(ctx sdk.Context, blocksPerPeriod uint64) bool { return (util.SafeInt64ToUint64(ctx.BlockHeight())+1)%blocksPerPeriod == 0 diff --git a/x/oracle/keeper/param_update_plan.go b/x/oracle/keeper/param_update_plan.go index 06dc9702..365ceddf 100644 --- a/x/oracle/keeper/param_update_plan.go +++ b/x/oracle/keeper/param_update_plan.go @@ -127,12 +127,6 @@ func (k Keeper) ValidateParamChanges(ctx sdk.Context, keys []string, changes typ case string(types.KeyCurrencyDeviationThresholds): params.CurrencyDeviationThresholds = changes.CurrencyDeviationThresholds - case string(types.KeyPriceExpiryTime): - params.PriceExpiryTime = changes.PriceExpiryTime - - case string(types.KeyLifeTimeInBlocks): - params.LifeTimeInBlocks = changes.LifeTimeInBlocks - case string(types.KeyExternalLiquidityPeriod): params.ExternalLiquidityPeriod = changes.ExternalLiquidityPeriod } @@ -191,12 +185,6 @@ func (k Keeper) ExecuteParamUpdatePlan(ctx sdk.Context, plan types.ParamUpdatePl case string(types.KeyCurrencyDeviationThresholds): k.SetCurrencyDeviationThresholds(ctx, plan.Changes.CurrencyDeviationThresholds) - case string(types.KeyPriceExpiryTime): - k.SetPriceExpiryTime(ctx, plan.Changes.PriceExpiryTime) - - case string(types.KeyLifeTimeInBlocks): - k.SetLifeTimeInBlocks(ctx, plan.Changes.LifeTimeInBlocks) - case string(types.KeyExternalLiquidityPeriod): k.SetExternalLiquidityPeriod(ctx, plan.Changes.ExternalLiquidityPeriod) } diff --git a/x/oracle/keeper/params.go b/x/oracle/keeper/params.go index 6f179087..5788baec 100644 --- a/x/oracle/keeper/params.go +++ b/x/oracle/keeper/params.go @@ -216,32 +216,6 @@ func (k Keeper) SetMaximumMedianStamps(ctx sdk.Context, maximumMedianStamps uint k.SetParams(ctx, params) } -// PriceExpiryTime returns the expiry in unix time for elys prices. -func (k Keeper) PriceExpiryTime(ctx sdk.Context) uint64 { - params := k.GetParams(ctx) - return params.PriceExpiryTime -} - -// SetPriceExpiryTime updates the expiry in unix time for elys prices. -func (k Keeper) SetPriceExpiryTime(ctx sdk.Context, priceExpiryTime uint64) { - params := k.GetParams(ctx) - params.PriceExpiryTime = priceExpiryTime - k.SetParams(ctx, params) -} - -// LifeTimeInBlocks returns the life time of an elys price in blocks. -func (k Keeper) LifeTimeInBlocks(ctx sdk.Context) uint64 { - params := k.GetParams(ctx) - return params.LifeTimeInBlocks -} - -// SetLifeTimeInBlocks updates the life time of an elys price in blocks. -func (k Keeper) SetLifeTimeInBlocks(ctx sdk.Context, lifeTimeInBlocks uint64) { - params := k.GetParams(ctx) - params.LifeTimeInBlocks = lifeTimeInBlocks - k.SetParams(ctx, params) -} - // CurrencyPairProviders returns the current Currency Pair Providers the price feeder // will query when starting up. func (k Keeper) CurrencyPairProviders(ctx sdk.Context) types.CurrencyPairProvidersList { diff --git a/x/oracle/types/oracle.pb.go b/x/oracle/types/oracle.pb.go index ebb8128e..8639f205 100644 --- a/x/oracle/types/oracle.pb.go +++ b/x/oracle/types/oracle.pb.go @@ -56,12 +56,8 @@ type Params struct { // Currency Deviation Thresholds defines the deviation thresholds // for each base currency the price feeder uses upon start up. CurrencyDeviationThresholds CurrencyDeviationThresholdList `protobuf:"bytes,15,rep,name=currency_deviation_thresholds,json=currencyDeviationThresholds,proto3,castrepeated=CurrencyDeviationThresholdList" json:"currency_deviation_thresholds" yaml:"currency_deviation_thresholds"` - // Price expiry in unix time for elys prices - PriceExpiryTime uint64 `protobuf:"varint,16,opt,name=price_expiry_time,json=priceExpiryTime,proto3" json:"price_expiry_time,omitempty"` - // Lifetime of an elys price in blocks - LifeTimeInBlocks uint64 `protobuf:"varint,17,opt,name=life_time_in_blocks,json=lifeTimeInBlocks,proto3" json:"life_time_in_blocks,omitempty"` // Number of blocks between updating external liquidity information. - ExternalLiquidityPeriod uint64 `protobuf:"varint,18,opt,name=external_liquidity_period,json=externalLiquidityPeriod,proto3" json:"external_liquidity_period,omitempty" yaml:"external_liquidity_period"` + ExternalLiquidityPeriod uint64 `protobuf:"varint,16,opt,name=external_liquidity_period,json=externalLiquidityPeriod,proto3" json:"external_liquidity_period,omitempty" yaml:"external_liquidity_period"` } func (m *Params) Reset() { *m = Params{} } @@ -520,106 +516,103 @@ func init() { func init() { proto.RegisterFile("ojo/oracle/v1/oracle.proto", fileDescriptor_e2b9fb194216b28f) } var fileDescriptor_e2b9fb194216b28f = []byte{ - // 1575 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xbd, 0x6f, 0x1b, 0xc9, - 0x15, 0xe7, 0x5a, 0x9f, 0x1c, 0x92, 0xfa, 0x18, 0x49, 0xd6, 0x4a, 0x72, 0xb8, 0xca, 0xc6, 0x49, - 0x64, 0x3b, 0x22, 0x63, 0x39, 0x81, 0x11, 0x21, 0x29, 0xbc, 0x92, 0x9d, 0x18, 0x70, 0x0c, 0x62, - 0xe5, 0x38, 0x80, 0x8b, 0x6c, 0x86, 0xbb, 0x63, 0x72, 0x2c, 0xee, 0xce, 0x7a, 0x66, 0x29, 0x91, - 0x6d, 0xaa, 0x00, 0x69, 0x52, 0xa4, 0x48, 0xe9, 0x74, 0x81, 0xcb, 0x00, 0x01, 0xd2, 0xa4, 0x37, - 0x90, 0x14, 0x2e, 0x0f, 0x57, 0xac, 0xef, 0xec, 0xe6, 0x6a, 0xfe, 0x05, 0x87, 0xf9, 0x58, 0x72, - 0x49, 0x51, 0x77, 0x3e, 0x57, 0xdc, 0x99, 0xdf, 0x7b, 0x6f, 0x7e, 0xf3, 0x9b, 0x37, 0xef, 0x0d, - 0xc1, 0x36, 0x7d, 0x41, 0xeb, 0x94, 0x21, 0xbf, 0x83, 0xeb, 0x67, 0xb7, 0xf5, 0x57, 0x2d, 0x66, - 0x34, 0xa1, 0xb0, 0x42, 0x5f, 0xd0, 0x9a, 0x9e, 0x39, 0xbb, 0xbd, 0xbd, 0xde, 0xa2, 0x2d, 0x2a, - 0x91, 0xba, 0xf8, 0x52, 0x46, 0xdb, 0x55, 0x9f, 0xf2, 0x90, 0xf2, 0x7a, 0x13, 0x71, 0x11, 0xa1, - 0x89, 0x13, 0x74, 0xbb, 0xee, 0x53, 0x12, 0x29, 0xdc, 0xfe, 0x7f, 0x19, 0xcc, 0x37, 0x10, 0x43, - 0x21, 0x87, 0x77, 0x41, 0xe9, 0x8c, 0x26, 0xd8, 0x8b, 0x31, 0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x71, 0x9c, 0x78, 0x1d, 0xc2, 0x13, 0x73, 0x4e, 0x6e, 0x68, 0x7d, 0x62, 0x43, 0xc7, 0x38, - 0xa2, 0xa1, 0xf3, 0x63, 0xbd, 0x17, 0x7d, 0x12, 0x39, 0x37, 0xb1, 0x95, 0xa2, 0x34, 0x92, 0xbb, - 0x00, 0x0a, 0x12, 0xdf, 0xe2, 0x58, 0x78, 0x07, 0xf1, 0xb6, 0xf7, 0x9c, 0x21, 0x5f, 0xac, 0x6b, - 0xce, 0x7f, 0xc2, 0xb1, 0x8c, 0x87, 0xb0, 0xdd, 0x8a, 0x9c, 0x78, 0xa0, 0xc7, 0xf0, 0x10, 0x94, - 0x95, 0x85, 0xd6, 0x66, 0x41, 0x6a, 0xb3, 0x39, 0xd2, 0x3d, 0x8f, 0xda, 0x6e, 0x49, 0x0e, 0xb5, - 0x00, 0x1c, 0xac, 0x87, 0x24, 0xf2, 0xce, 0x50, 0x87, 0x04, 0x22, 0xb1, 0xb2, 0x18, 0x8b, 0x92, - 0xa6, 0xf3, 0x71, 0x34, 0x77, 0xd4, 0x32, 0xd3, 0x02, 0xd9, 0xee, 0x6a, 0x48, 0xa2, 0xa7, 0x62, - 0xb6, 0x81, 0x99, 0x5e, 0xb4, 0x05, 0x96, 0x42, 0x14, 0x05, 0x28, 0xa1, 0xac, 0xaf, 0x84, 0x2f, - 0x7e, 0x83, 0xf0, 0x37, 0xb5, 0xf0, 0x5a, 0x8c, 0x71, 0xcf, 0x09, 0xed, 0x2b, 0x43, 0x54, 0xca, - 0x7f, 0x00, 0x36, 0xda, 0x84, 0x27, 0x94, 0x11, 0xdf, 0xe3, 0x09, 0x0a, 0xe3, 0xec, 0x62, 0x01, - 0x21, 0x91, 0xbb, 0x96, 0x81, 0x27, 0x02, 0xd3, 0x37, 0xa9, 0x06, 0xd6, 0x42, 0x1c, 0x10, 0x14, - 0x8d, 0x7b, 0x94, 0xa4, 0xc7, 0xaa, 0x82, 0xf2, 0xf6, 0x3f, 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 0x36, 0x26, 0xad, 0x76, 0x22, - 0x97, 0x99, 0x71, 0xf5, 0x08, 0xfe, 0x1c, 0x2c, 0xa8, 0xa4, 0xe0, 0xf2, 0xf6, 0x95, 0x0e, 0x36, - 0x2e, 0x64, 0x81, 0xf8, 0xd3, 0xe8, 0xcc, 0x8a, 0x83, 0x77, 0x33, 0xdb, 0x31, 0x12, 0x86, 0xf3, - 0xeb, 0x37, 0x5f, 0x56, 0x0b, 0x6f, 0xde, 0x57, 0x8d, 0xb7, 0xef, 0xab, 0xc6, 0x17, 0xef, 0xab, - 0xc6, 0x5f, 0x3f, 0x54, 0x0b, 0x6f, 0x3f, 0x54, 0x0b, 0x9f, 0x7d, 0xa8, 0x16, 0x9e, 0xdd, 0xc8, - 0xd5, 0x69, 0xfa, 0x82, 0xee, 0x47, 0x38, 0x39, 0xa7, 0xec, 0x54, 0x7c, 0xd7, 0x7b, 0xd9, 0x9f, - 0x5e, 0x59, 0xae, 0x9b, 0xf3, 0xf2, 0xcf, 0xea, 0x9d, 0xaf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x6c, - 0x11, 0xee, 0x65, 0x0f, 0x0f, 0x00, 0x00, + // 1523 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xcd, 0x6f, 0xdb, 0x46, + 0x16, 0x17, 0xe3, 0x4f, 0x8d, 0x24, 0x7f, 0xd0, 0x76, 0x4c, 0xdb, 0x59, 0xd1, 0xcb, 0xcd, 0xee, + 0x3a, 0x9b, 0x8d, 0xb4, 0x71, 0x76, 0x11, 0xac, 0xb1, 0x7b, 0x08, 0xed, 0xa4, 0x2d, 0x90, 0x06, + 0xc2, 0xb8, 0x4d, 0x81, 0x1c, 0xca, 0x8e, 0xc8, 0xa9, 0xc4, 0x58, 0xe4, 0x28, 0x33, 0x94, 0x6d, + 0x5d, 0x7b, 0x2a, 0xd0, 0x4b, 0x0f, 0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 0x36, 0x73, 0x42, 0x9b, 0xf5, 0x5c, 0x77, 0x1d, 0x75, 0x60, 0x49, 0x98, + 0x4a, 0x00, 0x06, 0x56, 0xa3, 0x30, 0xf6, 0x8e, 0x51, 0x27, 0x0c, 0xf8, 0xc5, 0xca, 0x72, 0xcc, + 0x0b, 0x9a, 0xee, 0xab, 0xd1, 0xdc, 0x92, 0xdb, 0x4c, 0x4a, 0xe4, 0xc0, 0xe5, 0x28, 0x8c, 0xef, + 0xf3, 0xd5, 0x06, 0xa6, 0x6a, 0xd3, 0x16, 0x58, 0x88, 0x50, 0x1c, 0xa0, 0x84, 0xd0, 0xbe, 0x14, + 0xbe, 0xf8, 0x1b, 0xc2, 0xff, 0x43, 0x09, 0xaf, 0xc4, 0x18, 0x8d, 0x1c, 0xd3, 0xbe, 0x32, 0x44, + 0x85, 0xfc, 0xbb, 0x60, 0xad, 0x1d, 0xb2, 0x84, 0xd0, 0xd0, 0xf7, 0x58, 0x82, 0xa2, 0x6e, 0x56, + 0x58, 0x80, 0x4b, 0x04, 0x57, 0x32, 0xf0, 0x90, 0x63, 0xaa, 0x92, 0x6a, 0x60, 0x25, 0xc2, 0x41, + 0x88, 0xe2, 0xd1, 0x88, 0x92, 0x88, 0x58, 0x96, 0x90, 0xee, 0xff, 0x2f, 0xb0, 0x1a, 0xa1, 0xd3, + 0x30, 0xea, 0x45, 0x5e, 0x97, 0x86, 0x3e, 0x96, 0x61, 0xcc, 0x2a, 0x8b, 0x00, 0x53, 0x61, 0x0d, + 0x0e, 0x89, 0x30, 0xc6, 0x59, 0x65, 0x11, 0xfa, 0x4e, 0xcc, 0xaa, 0x48, 0x56, 0x0a, 0x7c, 0x3b, + 0xdf, 0x8a, 0x99, 0x5f, 0x18, 0x60, 0xdd, 0xef, 0x51, 0x8a, 0x63, 0xbf, 0xef, 0x75, 0x51, 0x48, + 0xbd, 0x2e, 0x25, 0xc7, 0x61, 0x80, 0x29, 0xb3, 0x16, 0x84, 0x78, 0x97, 0xc7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31, 0x7f, 0x41, 0x17, 0xc6, 0xef, 0xd9, 0xb8, 0x87, 0x03, 0x17, 0xd1, + 0xe8, 0xae, 0xce, 0x67, 0x06, 0xd8, 0x3c, 0x7f, 0x3a, 0xbf, 0x66, 0xf5, 0xec, 0x82, 0xe2, 0xf8, + 0x3f, 0x1e, 0x4d, 0x24, 0xed, 0x9f, 0x4c, 0xee, 0x36, 0x26, 0xd2, 0x47, 0x06, 0x58, 0x14, 0x7f, + 0xbe, 0xde, 0xed, 0x06, 0x7c, 0x1c, 0x74, 0x50, 0x6c, 0x9a, 0x60, 0xfa, 0x08, 0xf7, 0x65, 0x33, + 0x2d, 0x42, 0xf1, 0x6c, 0x5e, 0x04, 0xb3, 0x6d, 0x1c, 0xb6, 0xda, 0x89, 0xd8, 0x66, 0x0a, 0x2a, + 0xcb, 0xfc, 0x0f, 0x98, 0x93, 0x97, 0x82, 0x89, 0xea, 0x2b, 0xed, 0xae, 0x9d, 0xb9, 0x05, 0xfc, + 0x9f, 0x9d, 0x3b, 0xcd, 0x5f, 0x3c, 0xcc, 0x7c, 0x47, 0x48, 0x18, 0xee, 0x1b, 0x4f, 0x7f, 0xaa, + 0x16, 0x9e, 0xbe, 0xa8, 0x1a, 0xcf, 0x5e, 0x54, 0x8d, 0x1f, 0x5f, 0x54, 0x8d, 0x4f, 0x5f, 0x56, + 0x0b, 0xcf, 0x5e, 0x56, 0x0b, 0xdf, 0xbf, 0xac, 0x16, 0x1e, 0x5c, 0xd1, 0xfa, 0x34, 0x79, 0x48, + 0xae, 0xc5, 0x38, 0x39, 0x21, 0xf4, 0x88, 0x3f, 0xd7, 0x4f, 0xb3, 0x7f, 0xa6, 0xa2, 0x5d, 0x37, + 0x67, 0xc5, 0x3f, 0xca, 0x1b, 0xbf, 0x06, 0x00, 0x00, 0xff, 0xff, 0x2d, 0xaf, 0x84, 0x04, 0xb4, + 0x0e, 0x00, 0x00, } func (this *Params) Equal(that interface{}) bool { @@ -711,12 +704,6 @@ func (this *Params) Equal(that interface{}) bool { return false } } - if this.PriceExpiryTime != that1.PriceExpiryTime { - return false - } - if this.LifeTimeInBlocks != that1.LifeTimeInBlocks { - return false - } if this.ExternalLiquidityPeriod != that1.ExternalLiquidityPeriod { return false } @@ -782,20 +769,6 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0x90 - } - if m.LifeTimeInBlocks != 0 { - i = encodeVarintOracle(dAtA, i, uint64(m.LifeTimeInBlocks)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 - } - if m.PriceExpiryTime != 0 { - i = encodeVarintOracle(dAtA, i, uint64(m.PriceExpiryTime)) - i-- - dAtA[i] = 0x1 - i-- dAtA[i] = 0x80 } if len(m.CurrencyDeviationThresholds) > 0 { @@ -1464,12 +1437,6 @@ func (m *Params) Size() (n int) { n += 1 + l + sovOracle(uint64(l)) } } - if m.PriceExpiryTime != 0 { - n += 2 + sovOracle(uint64(m.PriceExpiryTime)) - } - if m.LifeTimeInBlocks != 0 { - n += 2 + sovOracle(uint64(m.LifeTimeInBlocks)) - } if m.ExternalLiquidityPeriod != 0 { n += 2 + sovOracle(uint64(m.ExternalLiquidityPeriod)) } @@ -2124,44 +2091,6 @@ func (m *Params) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PriceExpiryTime", wireType) - } - m.PriceExpiryTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOracle - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PriceExpiryTime |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LifeTimeInBlocks", wireType) - } - m.LifeTimeInBlocks = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOracle - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LifeTimeInBlocks |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 18: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ExternalLiquidityPeriod", wireType) } diff --git a/x/oracle/types/params.go b/x/oracle/types/params.go index 56cd4d69..a39e52ba 100644 --- a/x/oracle/types/params.go +++ b/x/oracle/types/params.go @@ -35,8 +35,6 @@ var ( KeyMaximumMedianStamps = []byte("MaximumMedianStamps") KeyCurrencyPairProviders = []byte("CurrencyPairProviders") KeyCurrencyDeviationThresholds = []byte("CurrencyDeviationThresholds") - KeyPriceExpiryTime = []byte("PriceExpiryTime") - KeyLifeTimeInBlocks = []byte("LifeTimeInBlocks") KeyExternalLiquidityPeriod = []byte("ExternalLiquidityPeriod") ) @@ -49,8 +47,6 @@ const ( DefaultMaximumPriceStamps = 60 // retain for 3 hours DefaultMedianStampPeriod = BlocksPerHour * 3 // window for 3 hours DefaultMaximumMedianStamps = 24 // retain for 3 days - DefaultPriceExpiryTime = 86400 // retain for 1 day - DefaultLifeTimeInBlocks = 1 // retain for 1 block DefaultExternalLiquidityPeriod = BlocksPerMinute * 5 // window for 5 minutes ) @@ -373,8 +369,6 @@ func DefaultParams() Params { RewardBands: DefaultRewardBands(), CurrencyPairProviders: DefaultCurrencyPairProviders, CurrencyDeviationThresholds: DefaultCurrencyDeviationThresholds, - PriceExpiryTime: DefaultPriceExpiryTime, - LifeTimeInBlocks: DefaultLifeTimeInBlocks, ExternalLiquidityPeriod: DefaultExternalLiquidityPeriod, } } @@ -453,16 +447,6 @@ func (p *Params) ParamSetPairs() paramstypes.ParamSetPairs { &p.MaximumMedianStamps, validateMaximumMedianStamps, ), - paramstypes.NewParamSetPair( - KeyPriceExpiryTime, - &p.PriceExpiryTime, - validatePriceExpiryTime, - ), - paramstypes.NewParamSetPair( - KeyLifeTimeInBlocks, - &p.LifeTimeInBlocks, - validateLifeTimeInBlocks, - ), paramstypes.NewParamSetPair( KeyCurrencyPairProviders, &p.CurrencyPairProviders, @@ -745,32 +729,6 @@ func validateMaximumMedianStamps(i interface{}) error { return nil } -func validatePriceExpiryTime(i interface{}) error { - v, ok := i.(uint64) - if !ok { - return ErrInvalidParamValue.Wrapf("invalid parameter type: %T", i) - } - - if v < 1 { - return ErrInvalidParamValue.Wrap("oracle parameter PriceExpiryTime must be > 0") - } - - return nil -} - -func validateLifeTimeInBlocks(i interface{}) error { - v, ok := i.(uint64) - if !ok { - return ErrInvalidParamValue.Wrapf("invalid parameter type: %T", i) - } - - if v < 1 { - return ErrInvalidParamValue.Wrap("oracle parameter LifeTimeInBlocks must be > 0") - } - - return nil -} - func validateCurrencyPairProviders(i interface{}) error { v, ok := i.(CurrencyPairProvidersList) if !ok { From 41fcb84d6ad6ca69ac059e0af9e0ae321b60c88e Mon Sep 17 00:00:00 2001 From: Adam Wozniak <29418299+adamewozniak@users.noreply.github.com> Date: Fri, 25 Jul 2025 09:46:38 -0700 Subject: [PATCH 75/77] fix: lenient on edgecases --- x/oracle/abci/proposal.go | 63 ++++++++++++++++++++++++++++++++++ x/oracle/abci/voteextension.go | 50 ++++++++++++++++++++++----- 2 files changed, 104 insertions(+), 9 deletions(-) diff --git a/x/oracle/abci/proposal.go b/x/oracle/abci/proposal.go index 8b223a7a..11a2004e 100644 --- a/x/oracle/abci/proposal.go +++ b/x/oracle/abci/proposal.go @@ -110,6 +110,17 @@ func (h *ProposalHandler) PrepareProposalHandler() sdk.PrepareProposalHandler { // step MUST be deterministic. func (h *ProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHandler { return func(ctx sdk.Context, req *cometabci.RequestProcessProposal) (*cometabci.ResponseProcessProposal, error) { + // Skip vote extension verification during initial sync + // This significantly speeds up sync time as nodes don't need to verify + // historical vote extensions + if req.Height > 0 && ctx.BlockHeight() < req.Height-1 { + h.logger.Debug( + "skipping vote extension verification during sync", + "current_height", ctx.BlockHeight(), + "proposal_height", req.Height, + ) + return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_ACCEPT}, nil + } if req == nil { err := fmt.Errorf("process proposal received a nil request") h.logger.Error(err.Error()) @@ -127,6 +138,28 @@ func (h *ProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHandler { voteExtensionsEnabled := VoteExtensionsEnabled(ctx) if voteExtensionsEnabled { + // Add resilience: if we're having trouble reaching consensus, + // be more lenient with vote extension requirements + if len(req.ProposedLastCommit.Votes) > 0 { + // Count voting power to detect edge cases + votingPowerSeen := 0 + for _, vote := range req.ProposedLastCommit.Votes { + if vote.BlockIdFlag == cmtproto.BlockIDFlagCommit { + votingPowerSeen++ + } + } + // If we're seeing minimal voting power, be lenient + if votingPowerSeen <= len(req.ProposedLastCommit.Votes)/2 { + h.logger.Warn( + "low voting power detected, accepting proposal without strict validation", + "height", req.Height, + "voting_power_seen", votingPowerSeen, + "total_votes", len(req.ProposedLastCommit.Votes), + ) + return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_ACCEPT}, nil + } + } + if len(req.Txs) < 1 { h.logger.Error("got process proposal request with no commit info") return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, @@ -200,10 +233,29 @@ func (h *ProposalHandler) generateExchangeRateVotes( _ sdk.Context, ci cometabci.ExtendedCommitInfo, ) (votes []oracletypes.AggregateExchangeRateVote, err error) { + emptyExtensionCount := 0 + totalExtensions := 0 + for _, vote := range ci.Votes { if vote.BlockIdFlag != cmtproto.BlockIDFlagCommit { continue } + + totalExtensions++ + + // Track empty vote extensions + if len(vote.VoteExtension) == 0 { + emptyExtensionCount++ + + var valConsAddr sdk.ConsAddress + if err := valConsAddr.Unmarshal(vote.Validator.Address); err == nil { + h.logger.Debug( + "validator submitted empty vote extension", + "validator", valConsAddr.String(), + ) + } + continue + } var voteExt oracletypes.OracleVoteExtension if err := voteExt.Unmarshal(vote.VoteExtension); err != nil { @@ -232,6 +284,17 @@ func (h *ProposalHandler) generateExchangeRateVotes( return votes[i].Voter < votes[j].Voter }) + // Log metrics about empty extensions + if emptyExtensionCount > 0 { + h.logger.Info( + "vote extensions summary", + "total_validators", totalExtensions, + "empty_extensions", emptyExtensionCount, + "valid_extensions", len(votes), + "empty_percentage", fmt.Sprintf("%.2f%%", float64(emptyExtensionCount)/float64(totalExtensions)*100), + ) + } + return votes, nil } diff --git a/x/oracle/abci/voteextension.go b/x/oracle/abci/voteextension.go index 4db26b78..abfcfe41 100644 --- a/x/oracle/abci/voteextension.go +++ b/x/oracle/abci/voteextension.go @@ -2,6 +2,7 @@ package abci import ( "fmt" + "time" "cosmossdk.io/log" cometabci "github.com/cometbft/cometbft/abci/types" @@ -32,6 +33,8 @@ func NewVoteExtensionHandler( // service. It will filter out exchange rates that are not part of the oracle module's accept list. func (h *VoteExtensionHandler) ExtendVoteHandler() sdk.ExtendVoteHandler { return func(ctx sdk.Context, req *cometabci.RequestExtendVote) (resp *cometabci.ResponseExtendVote, err error) { + // Track timing to identify slow operations + start := time.Now() defer func() { // catch panics if possible if r := recover(); r != nil { @@ -58,7 +61,17 @@ func (h *VoteExtensionHandler) ExtendVoteHandler() sdk.ExtendVoteHandler { return &cometabci.ResponseExtendVote{VoteExtension: []byte{}}, err } + // Check if price feeder has recent prices prices := h.oracleKeeper.PriceFeeder.Oracle.GetPrices() + if len(prices) == 0 { + h.logger.Warn( + "price feeder has no prices available", + "height", req.Height, + ) + // Return empty vote extension instead of failing + // This allows nodes to participate in consensus even if their price feeder is starting up + return &cometabci.ResponseExtendVote{VoteExtension: []byte{}}, nil + } exchangeRatesStr := oracle.GenerateExchangeRatesString(prices) // Parse as DecCoins @@ -119,10 +132,20 @@ func (h *VoteExtensionHandler) ExtendVoteHandler() sdk.ExtendVoteHandler { return &cometabci.ResponseExtendVote{VoteExtension: []byte{}}, err } - h.logger.Info( - "created vote extension", - "height", req.Height, - ) + duration := time.Since(start) + if duration > 50*time.Millisecond { + h.logger.Warn( + "slow vote extension creation", + "height", req.Height, + "duration_ms", duration.Milliseconds(), + ) + } else { + h.logger.Info( + "created vote extension", + "height", req.Height, + "duration_ms", duration.Milliseconds(), + ) + } return &cometabci.ResponseExtendVote{VoteExtension: bz}, nil } } @@ -153,11 +176,14 @@ func (h *VoteExtensionHandler) VerifyVoteExtensionHandler() sdk.VerifyVoteExtens err := voteExt.Unmarshal(req.VoteExtension) if err != nil { err := fmt.Errorf("verify vote extension handler failed to unmarshal vote extension: %w", err) - h.logger.Error( + // In edge cases (like 50/50 splits), being too strict about vote extensions + // can prevent consensus. Accept malformed extensions with a warning. + h.logger.Warn( + "accepting malformed vote extension to maintain liveness", "height", req.Height, - err.Error(), + "error", err.Error(), ) - return &cometabci.ResponseVerifyVoteExtension{Status: cometabci.ResponseVerifyVoteExtension_REJECT}, err + return &cometabci.ResponseVerifyVoteExtension{Status: cometabci.ResponseVerifyVoteExtension_ACCEPT}, nil } if voteExt.Height != req.Height { @@ -167,8 +193,14 @@ func (h *VoteExtensionHandler) VerifyVoteExtensionHandler() sdk.VerifyVoteExtens req.Height, voteExt.Height, ) - h.logger.Error(err.Error()) - return &cometabci.ResponseVerifyVoteExtension{Status: cometabci.ResponseVerifyVoteExtension_REJECT}, err + // Accept height mismatches to maintain liveness + h.logger.Warn( + "accepting vote extension with height mismatch to maintain liveness", + "expected", req.Height, + "got", voteExt.Height, + "error", err.Error(), + ) + return &cometabci.ResponseVerifyVoteExtension{Status: cometabci.ResponseVerifyVoteExtension_ACCEPT}, nil } h.logger.Info( From 89a6efbd866765ec231bfbfcbdcb61feeb9303e0 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 29 Jul 2025 14:50:09 -0400 Subject: [PATCH 76/77] remove historic prices and median tracking and fix elys price pruning --- x/oracle/abci/endblocker.go | 31 +++++++++---------------------- x/oracle/abci/proposal.go | 8 ++++---- x/oracle/keeper/end_blocker.go | 4 ++++ 3 files changed, 17 insertions(+), 26 deletions(-) diff --git a/x/oracle/abci/endblocker.go b/x/oracle/abci/endblocker.go index c3c4794a..b14127a8 100644 --- a/x/oracle/abci/endblocker.go +++ b/x/oracle/abci/endblocker.go @@ -43,6 +43,15 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { } if k.IsPeriodLastBlock(sdkCtx, params.VotePeriod) { + usdcDenom := "uusdc" + assetInfos := k.GetAllAssetInfo(sdkCtx) + for _, assetInfo := range assetInfos { + if assetInfo.Display == "USDC" { + usdcDenom = assetInfo.Denom + } + k.PruneElysPrices(sdkCtx, assetInfo.Display) + } + if k.PriceFeeder.Oracle != nil && k.PriceFeeder.AppConfig.Enable { // Update price feeder oracle with latest params. k.PriceFeeder.Oracle.ParamCache.UpdateParamCache(sdkCtx.BlockHeight(), k.GetParams(sdkCtx), nil) @@ -59,15 +68,6 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { accountedPoolsMap[accountedPool.PoolId] = accountedPool } - usdcDenom := "uusdc" - assetInfos := k.GetAllAssetInfo(sdkCtx) - for _, assetInfo := range assetInfos { - if assetInfo.Display == "USDC" { - usdcDenom = assetInfo.Denom - } - k.PruneElysPrices(sdkCtx, assetInfo.Display) - } - k.PriceFeeder.Oracle.AmmPools = ammPoolsMap k.PriceFeeder.Oracle.AccountedPools = accountedPoolsMap k.PriceFeeder.Oracle.USDCDenom = usdcDenom @@ -91,8 +91,6 @@ func EndBlocker(ctx context.Context, k keeper.Keeper) error { } } - k.PruneAllPrices(sdkCtx) - return nil } @@ -165,17 +163,6 @@ func CalcPrices(ctx sdk.Context, params types.Params, k keeper.Keeper) error { BlockHeight: util.SafeInt64ToUint64(ctx.BlockHeight()), } k.SetPrice(ctx, elysPrice) - - if k.IsPeriodLastBlock(ctx, params.HistoricStampPeriod) { - k.AddHistoricPrice(ctx, ballotDenom.Denom, exchangeRate) - } - - // Calculate and stamp median/median deviation if median stamp period has passed - if k.IsPeriodLastBlock(ctx, params.MedianStampPeriod) { - if err = k.CalcAndSetHistoricMedian(ctx, ballotDenom.Denom); err != nil { - return err - } - } } // Clear the ballot diff --git a/x/oracle/abci/proposal.go b/x/oracle/abci/proposal.go index 11a2004e..5c65a7d2 100644 --- a/x/oracle/abci/proposal.go +++ b/x/oracle/abci/proposal.go @@ -159,7 +159,7 @@ func (h *ProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHandler { return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_ACCEPT}, nil } } - + if len(req.Txs) < 1 { h.logger.Error("got process proposal request with no commit info") return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, @@ -235,18 +235,18 @@ func (h *ProposalHandler) generateExchangeRateVotes( ) (votes []oracletypes.AggregateExchangeRateVote, err error) { emptyExtensionCount := 0 totalExtensions := 0 - + for _, vote := range ci.Votes { if vote.BlockIdFlag != cmtproto.BlockIDFlagCommit { continue } - + totalExtensions++ // Track empty vote extensions if len(vote.VoteExtension) == 0 { emptyExtensionCount++ - + var valConsAddr sdk.ConsAddress if err := valConsAddr.Unmarshal(vote.Validator.Address); err == nil { h.logger.Debug( diff --git a/x/oracle/keeper/end_blocker.go b/x/oracle/keeper/end_blocker.go index 61629479..e3ea395a 100644 --- a/x/oracle/keeper/end_blocker.go +++ b/x/oracle/keeper/end_blocker.go @@ -35,6 +35,10 @@ func (k *Keeper) PruneElysPrices(ctx sdk.Context, asset string) { allAssetPrice := k.GetAllAssetPrices(ctx, asset) total := len(allAssetPrice) + if total <= 1 { + return // nothing to prune + } + sort.Slice(allAssetPrice, func(i, j int) bool { return allAssetPrice[i].Timestamp < allAssetPrice[j].Timestamp }) From c2aea183868eb9aa72c2639c14c7b71bd208e8d6 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 29 Jul 2025 15:31:46 -0400 Subject: [PATCH 77/77] optimize pruneelysprices --- x/oracle/keeper/end_blocker.go | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/x/oracle/keeper/end_blocker.go b/x/oracle/keeper/end_blocker.go index e3ea395a..f9fed3bc 100644 --- a/x/oracle/keeper/end_blocker.go +++ b/x/oracle/keeper/end_blocker.go @@ -1,8 +1,6 @@ package keeper import ( - "sort" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ojo-network/ojo/util" "github.com/ojo-network/ojo/util/metrics" @@ -32,22 +30,25 @@ func (k *Keeper) PruneAllPrices(ctx sdk.Context) { // PruneElysPrices prunes elys prices for a given asset except the latest one. func (k *Keeper) PruneElysPrices(ctx sdk.Context, asset string) { - allAssetPrice := k.GetAllAssetPrices(ctx, asset) - total := len(allAssetPrice) - - if total <= 1 { + prices := k.GetAllAssetPrices(ctx, asset) + if len(prices) <= 1 { return // nothing to prune } - sort.Slice(allAssetPrice, func(i, j int) bool { - return allAssetPrice[i].Timestamp < allAssetPrice[j].Timestamp - }) + // Find the newest price + latestIdx, latestTs := 0, prices[0].Timestamp + for i := 1; i < len(prices); i++ { + if prices[i].Timestamp > latestTs { + latestIdx, latestTs = i, prices[i].Timestamp + } + } - for i, price := range allAssetPrice { - // We don't remove the last element - if i < total-1 { - k.RemovePrice(ctx, price.Asset, price.Timestamp) + // Remove everything except the newest + for i, p := range prices { + if i == latestIdx { + continue } + k.RemovePrice(ctx, p.Asset, p.Timestamp) } }