From 7a228f064d589fd95ee79fec85672e5826deca1f Mon Sep 17 00:00:00 2001 From: leonz789 Date: Wed, 13 Mar 2024 17:03:35 +0800 Subject: [PATCH] feat(oracle-keeper): update proto, remove validtors for genesis state --- proto/exocore/oracle/genesis.proto | 2 - proto/exocore/oracle/query.proto | 13 - proto/exocore/oracle/validators.proto | 14 - x/oracle/client/cli/query.go | 1 - x/oracle/client/cli/query_validators.go | 38 -- x/oracle/client/cli/query_validators_test.go | 71 --- x/oracle/genesis.go | 9 - x/oracle/genesis_test.go | 4 - x/oracle/keeper/validators.go | 33 -- x/oracle/keeper/validators_test.go | 38 -- x/oracle/types/genesis.pb.go | 115 ++--- x/oracle/types/query.pb.go | 484 +++---------------- x/oracle/types/query.pb.gw.go | 65 --- 13 files changed, 103 insertions(+), 784 deletions(-) delete mode 100644 proto/exocore/oracle/validators.proto delete mode 100644 x/oracle/client/cli/query_validators.go delete mode 100644 x/oracle/client/cli/query_validators_test.go delete mode 100644 x/oracle/keeper/validators.go delete mode 100644 x/oracle/keeper/validators_test.go diff --git a/proto/exocore/oracle/genesis.proto b/proto/exocore/oracle/genesis.proto index 2382d1d25..173fd9372 100644 --- a/proto/exocore/oracle/genesis.proto +++ b/proto/exocore/oracle/genesis.proto @@ -5,7 +5,6 @@ package exocore.oracle; import "gogoproto/gogo.proto"; import "exocore/oracle/params.proto"; import "exocore/oracle/prices.proto"; -import "exocore/oracle/validators.proto"; import "exocore/oracle/validator_update_block.proto"; import "exocore/oracle/index_recent_params.proto"; import "exocore/oracle/index_recent_msg.proto"; @@ -20,7 +19,6 @@ message GenesisState { repeated Prices pricesList = 2 [(gogoproto.nullable) = false]; //TODO: userDefinedTokenFeeder - Validators validators = 3; ValidatorUpdateBlock validatorUpdateBlock = 4; IndexRecentParams indexRecentParams = 5; IndexRecentMsg indexRecentMsg = 6; diff --git a/proto/exocore/oracle/query.proto b/proto/exocore/oracle/query.proto index 8777a58e2..942e4faff 100644 --- a/proto/exocore/oracle/query.proto +++ b/proto/exocore/oracle/query.proto @@ -7,7 +7,6 @@ import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "exocore/oracle/params.proto"; import "exocore/oracle/prices.proto"; -import "exocore/oracle/validators.proto"; import "exocore/oracle/validator_update_block.proto"; import "exocore/oracle/index_recent_params.proto"; import "exocore/oracle/index_recent_msg.proto"; @@ -35,12 +34,6 @@ service Query { } - // Queries a Validators by index. - rpc Validators (QueryGetValidatorsRequest) returns (QueryGetValidatorsResponse) { - option (google.api.http).get = "/ExocoreNetwork/exocore/oracle/validators"; - - } - // Queries a ValidatorUpdateBlock by index. rpc ValidatorUpdateBlock (QueryGetValidatorUpdateBlockRequest) returns (QueryGetValidatorUpdateBlockResponse) { option (google.api.http).get = "/ExocoreNetwork/exocore/oracle/validator_update_block"; @@ -106,12 +99,6 @@ message QueryAllPricesResponse { cosmos.base.query.v1beta1.PageResponse pagination = 2; } -message QueryGetValidatorsRequest {} - -message QueryGetValidatorsResponse { - Validators Validators = 1 [(gogoproto.nullable) = false]; -} - message QueryGetValidatorUpdateBlockRequest {} message QueryGetValidatorUpdateBlockResponse { diff --git a/proto/exocore/oracle/validators.proto b/proto/exocore/oracle/validators.proto deleted file mode 100644 index cbcfdfcc5..000000000 --- a/proto/exocore/oracle/validators.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; -package exocore.oracle; - -option go_package = "github.com/ExocoreNetwork/exocore/x/oracle/types"; - -message Validators { - uint64 block = 1; - repeated Validator validator_list = 2; -} - -message Validator{ - string operator = 1; - string power = 2; -} diff --git a/x/oracle/client/cli/query.go b/x/oracle/client/cli/query.go index 5203d94ac..323eb82f9 100644 --- a/x/oracle/client/cli/query.go +++ b/x/oracle/client/cli/query.go @@ -27,7 +27,6 @@ func GetQueryCmd(queryRoute string) *cobra.Command { cmd.AddCommand(CmdQueryParams()) cmd.AddCommand(CmdListPrices()) cmd.AddCommand(CmdShowPrices()) - cmd.AddCommand(CmdShowValidators()) cmd.AddCommand(CmdShowValidatorUpdateBlock()) cmd.AddCommand(CmdShowIndexRecentParams()) cmd.AddCommand(CmdShowIndexRecentMsg()) diff --git a/x/oracle/client/cli/query_validators.go b/x/oracle/client/cli/query_validators.go deleted file mode 100644 index 846aacd25..000000000 --- a/x/oracle/client/cli/query_validators.go +++ /dev/null @@ -1,38 +0,0 @@ -package cli - -import ( - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/spf13/cobra" - - "github.com/ExocoreNetwork/exocore/x/oracle/types" -) - -func CmdShowValidators() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-validators", - Short: "shows validators", - Args: cobra.NoArgs, - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryGetValidatorsRequest{} - - res, err := queryClient.Validators(cmd.Context(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/oracle/client/cli/query_validators_test.go b/x/oracle/client/cli/query_validators_test.go deleted file mode 100644 index aeac766fd..000000000 --- a/x/oracle/client/cli/query_validators_test.go +++ /dev/null @@ -1,71 +0,0 @@ -package cli_test - -import ( - "fmt" - "testing" - - tmcli "github.com/cometbft/cometbft/libs/cli" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/stretchr/testify/require" - "google.golang.org/grpc/status" - - "github.com/ExocoreNetwork/exocore/testutil/network" - "github.com/ExocoreNetwork/exocore/testutil/nullify" - "github.com/ExocoreNetwork/exocore/x/oracle/client/cli" - "github.com/ExocoreNetwork/exocore/x/oracle/types" -) - -func networkWithValidatorsObjects(t *testing.T) (*network.Network, types.Validators) { - t.Helper() - cfg := network.DefaultConfig() - state := types.GenesisState{} - validators := &types.Validators{} - nullify.Fill(&validators) - state.Validators = validators - buf, err := cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - return network.New(t, cfg), *state.Validators -} - -func TestShowValidators(t *testing.T) { - net, obj := networkWithValidatorsObjects(t) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - tests := []struct { - desc string - args []string - err error - obj types.Validators - }{ - { - desc: "get", - args: common, - obj: obj, - }, - } - for _, tc := range tests { - t.Run(tc.desc, func(t *testing.T) { - var args []string - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowValidators(), args) - if tc.err != nil { - stat, ok := status.FromError(tc.err) - require.True(t, ok) - require.ErrorIs(t, stat.Err(), tc.err) - } else { - require.NoError(t, err) - var resp types.QueryGetValidatorsResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.Validators) - require.Equal(t, - nullify.Fill(&tc.obj), - nullify.Fill(&resp.Validators), - ) - } - }) - } -} diff --git a/x/oracle/genesis.go b/x/oracle/genesis.go index 8681cd2cf..d3037f960 100644 --- a/x/oracle/genesis.go +++ b/x/oracle/genesis.go @@ -13,10 +13,6 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) k.SetPrices(ctx, elem) } // Set if defined - if genState.Validators != nil { - k.SetValidators(ctx, *genState.Validators) - } - // Set if defined if genState.ValidatorUpdateBlock != nil { k.SetValidatorUpdateBlock(ctx, *genState.ValidatorUpdateBlock) } @@ -46,11 +42,6 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis.Params = k.GetParams(ctx) genesis.PricesList = k.GetAllPrices(ctx) - // Get all validators - validators, found := k.GetValidators(ctx) - if found { - genesis.Validators = &validators - } // Get all validatorUpdateBlock validatorUpdateBlock, found := k.GetValidatorUpdateBlock(ctx) if found { diff --git a/x/oracle/genesis_test.go b/x/oracle/genesis_test.go index cb7f13414..6b5db6ce0 100644 --- a/x/oracle/genesis_test.go +++ b/x/oracle/genesis_test.go @@ -22,9 +22,6 @@ func TestGenesis(t *testing.T) { TokenId: 1, }, }, - Validators: &types.Validators{ - Block: 42, - }, ValidatorUpdateBlock: &types.ValidatorUpdateBlock{}, IndexRecentParams: &types.IndexRecentParams{}, IndexRecentMsg: &types.IndexRecentMsg{}, @@ -56,7 +53,6 @@ func TestGenesis(t *testing.T) { nullify.Fill(got) require.ElementsMatch(t, genesisState.PricesList, got.PricesList) - require.Equal(t, genesisState.Validators, got.Validators) require.Equal(t, genesisState.ValidatorUpdateBlock, got.ValidatorUpdateBlock) require.Equal(t, genesisState.IndexRecentParams, got.IndexRecentParams) require.Equal(t, genesisState.IndexRecentMsg, got.IndexRecentMsg) diff --git a/x/oracle/keeper/validators.go b/x/oracle/keeper/validators.go deleted file mode 100644 index ab2baa2bd..000000000 --- a/x/oracle/keeper/validators.go +++ /dev/null @@ -1,33 +0,0 @@ -package keeper - -import ( - "github.com/ExocoreNetwork/exocore/x/oracle/types" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// SetValidators set validators in the store -func (k Keeper) SetValidators(ctx sdk.Context, validators types.Validators) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ValidatorsKey)) - b := k.cdc.MustMarshal(&validators) - store.Set([]byte{0}, b) -} - -// GetValidators returns validators -func (k Keeper) GetValidators(ctx sdk.Context) (val types.Validators, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ValidatorsKey)) - - b := store.Get([]byte{0}) - if b == nil { - return val, false - } - - k.cdc.MustUnmarshal(b, &val) - return val, true -} - -// RemoveValidators removes validators from the store -func (k Keeper) RemoveValidators(ctx sdk.Context) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ValidatorsKey)) - store.Delete([]byte{0}) -} diff --git a/x/oracle/keeper/validators_test.go b/x/oracle/keeper/validators_test.go deleted file mode 100644 index b02934aa2..000000000 --- a/x/oracle/keeper/validators_test.go +++ /dev/null @@ -1,38 +0,0 @@ -package keeper_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" - - keepertest "github.com/ExocoreNetwork/exocore/testutil/keeper" - "github.com/ExocoreNetwork/exocore/testutil/nullify" - "github.com/ExocoreNetwork/exocore/x/oracle/keeper" - "github.com/ExocoreNetwork/exocore/x/oracle/types" -) - -func createTestValidators(keeper *keeper.Keeper, ctx sdk.Context) types.Validators { - item := types.Validators{} - keeper.SetValidators(ctx, item) - return item -} - -func TestValidatorsGet(t *testing.T) { - keeper, ctx := keepertest.OracleKeeper(t) - item := createTestValidators(keeper, ctx) - rst, found := keeper.GetValidators(ctx) - require.True(t, found) - require.Equal(t, - nullify.Fill(&item), - nullify.Fill(&rst), - ) -} - -func TestValidatorsRemove(t *testing.T) { - keeper, ctx := keepertest.OracleKeeper(t) - createTestValidators(keeper, ctx) - keeper.RemoveValidators(ctx) - _, found := keeper.GetValidators(ctx) - require.False(t, found) -} diff --git a/x/oracle/types/genesis.pb.go b/x/oracle/types/genesis.pb.go index 36d367c03..1006ad547 100644 --- a/x/oracle/types/genesis.pb.go +++ b/x/oracle/types/genesis.pb.go @@ -28,7 +28,6 @@ type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` PricesList []Prices `protobuf:"bytes,2,rep,name=pricesList,proto3" json:"pricesList"` //TODO: userDefinedTokenFeeder - Validators *Validators `protobuf:"bytes,3,opt,name=validators,proto3" json:"validators,omitempty"` ValidatorUpdateBlock *ValidatorUpdateBlock `protobuf:"bytes,4,opt,name=validatorUpdateBlock,proto3" json:"validatorUpdateBlock,omitempty"` IndexRecentParams *IndexRecentParams `protobuf:"bytes,5,opt,name=indexRecentParams,proto3" json:"indexRecentParams,omitempty"` IndexRecentMsg *IndexRecentMsg `protobuf:"bytes,6,opt,name=indexRecentMsg,proto3" json:"indexRecentMsg,omitempty"` @@ -83,13 +82,6 @@ func (m *GenesisState) GetPricesList() []Prices { return nil } -func (m *GenesisState) GetValidators() *Validators { - if m != nil { - return m.Validators - } - return nil -} - func (m *GenesisState) GetValidatorUpdateBlock() *ValidatorUpdateBlock { if m != nil { return m.ValidatorUpdateBlock @@ -132,34 +124,33 @@ func init() { func init() { proto.RegisterFile("exocore/oracle/genesis.proto", fileDescriptor_dbe067676c4dc0de) } var fileDescriptor_dbe067676c4dc0de = []byte{ - // 418 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x5f, 0x4b, 0xeb, 0x30, - 0x1c, 0x86, 0xdb, 0xb3, 0x9d, 0x9d, 0x43, 0xd4, 0xa1, 0x61, 0x48, 0x9d, 0xa3, 0x9b, 0x43, 0x61, - 0x20, 0xb4, 0xa2, 0x5e, 0x89, 0x57, 0x83, 0x29, 0x8a, 0x9b, 0x52, 0x51, 0xc4, 0x9b, 0xd2, 0x75, - 0xa1, 0x96, 0xfd, 0x49, 0x49, 0x32, 0x9d, 0xdf, 0xc2, 0x8f, 0xb5, 0xcb, 0x5d, 0x7a, 0x25, 0xb2, - 0x7d, 0x11, 0x59, 0xda, 0xce, 0x36, 0x6b, 0x77, 0xd7, 0xf4, 0xf7, 0xbc, 0x4f, 0xd2, 0xb7, 0x01, - 0x25, 0x34, 0xc2, 0x36, 0x26, 0x48, 0xc7, 0xc4, 0xb2, 0x7b, 0x48, 0x77, 0xd0, 0x00, 0x51, 0x97, - 0x6a, 0x1e, 0xc1, 0x0c, 0xc3, 0x7c, 0x30, 0xd5, 0xfc, 0x69, 0xb1, 0xe0, 0x60, 0x07, 0xf3, 0x91, - 0x3e, 0x7f, 0xf2, 0xa9, 0xe2, 0xae, 0xe0, 0xf0, 0x2c, 0x62, 0xf5, 0x69, 0xda, 0x90, 0xb8, 0x36, - 0x0a, 0x87, 0x65, 0x61, 0xf8, 0x6a, 0xf5, 0xdc, 0x8e, 0xc5, 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, - 0xef, 0x7f, 0xbc, 0xef, 0x1d, 0x51, 0xb3, 0x48, 0x04, 0x95, 0xc7, 0x53, 0xb0, 0x05, 0x36, 0x49, - 0xe4, 0x78, 0xdc, 0xf4, 0x9f, 0x9b, 0x4a, 0xc9, 0xa6, 0xd8, 0x9f, 0x5f, 0xca, 0xd6, 0xaf, 0xc7, - 0x53, 0x55, 0x9e, 0x4c, 0x55, 0xf9, 0x7b, 0xaa, 0xca, 0x1f, 0x33, 0x55, 0x9a, 0xcc, 0x54, 0xe9, - 0x73, 0xa6, 0x4a, 0xcf, 0x47, 0x8e, 0xcb, 0x5e, 0x86, 0x6d, 0xcd, 0xc6, 0x7d, 0xbd, 0xe1, 0x9b, - 0x5b, 0x88, 0xbd, 0x61, 0xd2, 0xd5, 0xc3, 0x2b, 0x3a, 0x0a, 0x2f, 0x29, 0x7b, 0xf7, 0x10, 0x6d, - 0xe7, 0xf8, 0xed, 0x3c, 0xf9, 0x09, 0x00, 0x00, 0xff, 0xff, 0x1d, 0x8f, 0xf7, 0xc1, 0x01, 0x04, - 0x00, 0x00, + // 401 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xcf, 0x4a, 0xeb, 0x40, + 0x18, 0xc5, 0x93, 0x7b, 0x6b, 0x95, 0x51, 0x8b, 0x0e, 0x45, 0x62, 0x2d, 0x69, 0x2d, 0x0a, 0x05, + 0x21, 0x11, 0x75, 0xe9, 0xaa, 0x50, 0x45, 0xb1, 0x55, 0x22, 0x8a, 0xb8, 0x09, 0x69, 0x3a, 0xc4, + 0xd0, 0x3f, 0x13, 0x66, 0xa6, 0x5a, 0xdf, 0xc1, 0x85, 0x8f, 0xd5, 0x65, 0x97, 0xae, 0x44, 0xda, + 0x17, 0x91, 0xce, 0x24, 0x25, 0x99, 0xc6, 0xee, 0x92, 0x9c, 0xdf, 0x39, 0xf3, 0xe5, 0xcc, 0x07, +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, 0x2c, 0xfe, 0xeb, 0x62, 0x74, 0x6d, 0x85, 0xc7, 0xee, 0xcb, + 0xb1, 0x57, 0x32, 0x68, 0x2d, 0x7a, 0xe1, 0x05, 0xc8, 0xc5, 0x3e, 0x36, 0xa8, 0xa7, 0x65, 0x79, + 0x9a, 0xbe, 0x24, 0xad, 0x41, 0x3d, 0x4b, 0x72, 0xc1, 0x3a, 0xd8, 0x24, 0xd1, 0x0b, 0xef, 0x6c, + 0x95, 0x77, 0xb6, 0x2b, 0xc7, 0xcc, 0x1d, 0x61, 0x6d, 0x49, 0x17, 0x6c, 0x82, 0x2d, 0x12, 0x1b, + 0x8f, 0x27, 0xad, 0xf1, 0xa4, 0x62, 0x7a, 0x52, 0xe2, 0xf6, 0x16, 0xbc, 0xb5, 0xeb, 0xd1, 0x44, + 0x57, 0xc7, 0x13, 0x5d, 0xfd, 0x99, 0xe8, 0xea, 0xe7, 0x54, 0x57, 0xc6, 0x53, 0x5d, 0xf9, 0x9a, + 0xea, 0xca, 0xf3, 0xb1, 0xe7, 0xb3, 0x97, 0x41, 0xcb, 0x70, 0x71, 0xcf, 0xac, 0x8b, 0xe4, 0x26, + 0x62, 0x6f, 0x98, 0x74, 0xcc, 0x68, 0xcd, 0x86, 0xd1, 0xa2, 0xb1, 0xf7, 0x00, 0xd1, 0x56, 0x96, + 0x6f, 0xd8, 0xe9, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x16, 0x5e, 0xb3, 0x10, 0xa4, 0x03, 0x00, + 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -246,18 +237,6 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x22 } - if m.Validators != nil { - { - size, err := m.Validators.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } if len(m.PricesList) > 0 { for iNdEx := len(m.PricesList) - 1; iNdEx >= 0; iNdEx-- { { @@ -310,10 +289,6 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } - if m.Validators != nil { - l = m.Validators.Size() - n += 1 + l + sovGenesis(uint64(l)) - } if m.ValidatorUpdateBlock != nil { l = m.ValidatorUpdateBlock.Size() n += 1 + l + sovGenesis(uint64(l)) @@ -443,42 +418,6 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Validators", 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 - } - if m.Validators == nil { - m.Validators = &Validators{} - } - if err := m.Validators.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ValidatorUpdateBlock", wireType) diff --git a/x/oracle/types/query.pb.go b/x/oracle/types/query.pb.go index e86bfc5c1..b4fefb2bd 100644 --- a/x/oracle/types/query.pb.go +++ b/x/oracle/types/query.pb.go @@ -297,86 +297,6 @@ func (m *QueryAllPricesResponse) GetPagination() *query.PageResponse { return nil } -type QueryGetValidatorsRequest struct { -} - -func (m *QueryGetValidatorsRequest) Reset() { *m = QueryGetValidatorsRequest{} } -func (m *QueryGetValidatorsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetValidatorsRequest) ProtoMessage() {} -func (*QueryGetValidatorsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f604621c8da1a6f3, []int{6} -} -func (m *QueryGetValidatorsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetValidatorsRequest.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 *QueryGetValidatorsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetValidatorsRequest.Merge(m, src) -} -func (m *QueryGetValidatorsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetValidatorsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetValidatorsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetValidatorsRequest proto.InternalMessageInfo - -type QueryGetValidatorsResponse struct { - Validators Validators `protobuf:"bytes,1,opt,name=Validators,proto3" json:"Validators"` -} - -func (m *QueryGetValidatorsResponse) Reset() { *m = QueryGetValidatorsResponse{} } -func (m *QueryGetValidatorsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetValidatorsResponse) ProtoMessage() {} -func (*QueryGetValidatorsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f604621c8da1a6f3, []int{7} -} -func (m *QueryGetValidatorsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetValidatorsResponse.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 *QueryGetValidatorsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetValidatorsResponse.Merge(m, src) -} -func (m *QueryGetValidatorsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetValidatorsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetValidatorsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetValidatorsResponse proto.InternalMessageInfo - -func (m *QueryGetValidatorsResponse) GetValidators() Validators { - if m != nil { - return m.Validators - } - return Validators{} -} - type QueryGetValidatorUpdateBlockRequest struct { } @@ -384,7 +304,7 @@ func (m *QueryGetValidatorUpdateBlockRequest) Reset() { *m = QueryGetVal func (m *QueryGetValidatorUpdateBlockRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetValidatorUpdateBlockRequest) ProtoMessage() {} func (*QueryGetValidatorUpdateBlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f604621c8da1a6f3, []int{8} + return fileDescriptor_f604621c8da1a6f3, []int{6} } func (m *QueryGetValidatorUpdateBlockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -421,7 +341,7 @@ func (m *QueryGetValidatorUpdateBlockResponse) Reset() { *m = QueryGetVa func (m *QueryGetValidatorUpdateBlockResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetValidatorUpdateBlockResponse) ProtoMessage() {} func (*QueryGetValidatorUpdateBlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f604621c8da1a6f3, []int{9} + return fileDescriptor_f604621c8da1a6f3, []int{7} } func (m *QueryGetValidatorUpdateBlockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -464,7 +384,7 @@ func (m *QueryGetIndexRecentParamsRequest) Reset() { *m = QueryGetIndexR func (m *QueryGetIndexRecentParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetIndexRecentParamsRequest) ProtoMessage() {} func (*QueryGetIndexRecentParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f604621c8da1a6f3, []int{10} + return fileDescriptor_f604621c8da1a6f3, []int{8} } func (m *QueryGetIndexRecentParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -501,7 +421,7 @@ func (m *QueryGetIndexRecentParamsResponse) Reset() { *m = QueryGetIndex func (m *QueryGetIndexRecentParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetIndexRecentParamsResponse) ProtoMessage() {} func (*QueryGetIndexRecentParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f604621c8da1a6f3, []int{11} + return fileDescriptor_f604621c8da1a6f3, []int{9} } func (m *QueryGetIndexRecentParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -544,7 +464,7 @@ func (m *QueryGetIndexRecentMsgRequest) Reset() { *m = QueryGetIndexRece func (m *QueryGetIndexRecentMsgRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetIndexRecentMsgRequest) ProtoMessage() {} func (*QueryGetIndexRecentMsgRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f604621c8da1a6f3, []int{12} + return fileDescriptor_f604621c8da1a6f3, []int{10} } func (m *QueryGetIndexRecentMsgRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -581,7 +501,7 @@ func (m *QueryGetIndexRecentMsgResponse) Reset() { *m = QueryGetIndexRec func (m *QueryGetIndexRecentMsgResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetIndexRecentMsgResponse) ProtoMessage() {} func (*QueryGetIndexRecentMsgResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f604621c8da1a6f3, []int{13} + return fileDescriptor_f604621c8da1a6f3, []int{11} } func (m *QueryGetIndexRecentMsgResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -625,7 +545,7 @@ func (m *QueryGetRecentMsgRequest) Reset() { *m = QueryGetRecentMsgReque func (m *QueryGetRecentMsgRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetRecentMsgRequest) ProtoMessage() {} func (*QueryGetRecentMsgRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f604621c8da1a6f3, []int{14} + return fileDescriptor_f604621c8da1a6f3, []int{12} } func (m *QueryGetRecentMsgRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -669,7 +589,7 @@ func (m *QueryGetRecentMsgResponse) Reset() { *m = QueryGetRecentMsgResp func (m *QueryGetRecentMsgResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetRecentMsgResponse) ProtoMessage() {} func (*QueryGetRecentMsgResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f604621c8da1a6f3, []int{15} + return fileDescriptor_f604621c8da1a6f3, []int{13} } func (m *QueryGetRecentMsgResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -713,7 +633,7 @@ func (m *QueryAllRecentMsgRequest) Reset() { *m = QueryAllRecentMsgReque func (m *QueryAllRecentMsgRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllRecentMsgRequest) ProtoMessage() {} func (*QueryAllRecentMsgRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f604621c8da1a6f3, []int{16} + return fileDescriptor_f604621c8da1a6f3, []int{14} } func (m *QueryAllRecentMsgRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -758,7 +678,7 @@ func (m *QueryAllRecentMsgResponse) Reset() { *m = QueryAllRecentMsgResp func (m *QueryAllRecentMsgResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllRecentMsgResponse) ProtoMessage() {} func (*QueryAllRecentMsgResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f604621c8da1a6f3, []int{17} + return fileDescriptor_f604621c8da1a6f3, []int{15} } func (m *QueryAllRecentMsgResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -809,7 +729,7 @@ func (m *QueryGetRecentParamsRequest) Reset() { *m = QueryGetRecentParam func (m *QueryGetRecentParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetRecentParamsRequest) ProtoMessage() {} func (*QueryGetRecentParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f604621c8da1a6f3, []int{18} + return fileDescriptor_f604621c8da1a6f3, []int{16} } func (m *QueryGetRecentParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -853,7 +773,7 @@ func (m *QueryGetRecentParamsResponse) Reset() { *m = QueryGetRecentPara func (m *QueryGetRecentParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetRecentParamsResponse) ProtoMessage() {} func (*QueryGetRecentParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f604621c8da1a6f3, []int{19} + return fileDescriptor_f604621c8da1a6f3, []int{17} } func (m *QueryGetRecentParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -897,7 +817,7 @@ func (m *QueryAllRecentParamsRequest) Reset() { *m = QueryAllRecentParam func (m *QueryAllRecentParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllRecentParamsRequest) ProtoMessage() {} func (*QueryAllRecentParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f604621c8da1a6f3, []int{20} + return fileDescriptor_f604621c8da1a6f3, []int{18} } func (m *QueryAllRecentParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -942,7 +862,7 @@ func (m *QueryAllRecentParamsResponse) Reset() { *m = QueryAllRecentPara func (m *QueryAllRecentParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllRecentParamsResponse) ProtoMessage() {} func (*QueryAllRecentParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f604621c8da1a6f3, []int{21} + return fileDescriptor_f604621c8da1a6f3, []int{19} } func (m *QueryAllRecentParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -992,8 +912,6 @@ func init() { proto.RegisterType((*QueryGetPricesResponse)(nil), "exocore.oracle.QueryGetPricesResponse") proto.RegisterType((*QueryAllPricesRequest)(nil), "exocore.oracle.QueryAllPricesRequest") proto.RegisterType((*QueryAllPricesResponse)(nil), "exocore.oracle.QueryAllPricesResponse") - proto.RegisterType((*QueryGetValidatorsRequest)(nil), "exocore.oracle.QueryGetValidatorsRequest") - proto.RegisterType((*QueryGetValidatorsResponse)(nil), "exocore.oracle.QueryGetValidatorsResponse") proto.RegisterType((*QueryGetValidatorUpdateBlockRequest)(nil), "exocore.oracle.QueryGetValidatorUpdateBlockRequest") proto.RegisterType((*QueryGetValidatorUpdateBlockResponse)(nil), "exocore.oracle.QueryGetValidatorUpdateBlockResponse") proto.RegisterType((*QueryGetIndexRecentParamsRequest)(nil), "exocore.oracle.QueryGetIndexRecentParamsRequest") @@ -1013,71 +931,68 @@ func init() { func init() { proto.RegisterFile("exocore/oracle/query.proto", fileDescriptor_f604621c8da1a6f3) } var fileDescriptor_f604621c8da1a6f3 = []byte{ - // 1022 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x97, 0x41, 0x6f, 0xdc, 0x44, - 0x14, 0xc7, 0x33, 0x4d, 0x13, 0x94, 0x47, 0x29, 0x62, 0x08, 0x55, 0xea, 0x84, 0x4d, 0x3b, 0x6d, - 0xda, 0xa4, 0x69, 0xed, 0x6c, 0xb2, 0x50, 0x81, 0xa8, 0x44, 0x22, 0xd1, 0xaa, 0x40, 0xab, 0xb0, - 0x52, 0x39, 0xf4, 0xd0, 0x95, 0x77, 0x33, 0x98, 0x55, 0x1c, 0xcf, 0xd6, 0x76, 0x4a, 0x4a, 0x55, - 0x09, 0x71, 0x40, 0xe2, 0x56, 0x09, 0x09, 0x0e, 0xdc, 0xe0, 0x00, 0x37, 0x2e, 0x7c, 0x00, 0x8e, - 0x3d, 0x46, 0xe2, 0xc2, 0x09, 0xa1, 0x84, 0x2b, 0xdf, 0x01, 0x79, 0xfc, 0xbc, 0xb6, 0xc7, 0x9e, - 0x5d, 0x6f, 0xb5, 0xb7, 0xb5, 0xdf, 0xff, 0xbd, 0xf7, 0x9b, 0x37, 0xef, 0xe9, 0x79, 0xc1, 0xe0, - 0x07, 0xa2, 0x23, 0x7c, 0x6e, 0x09, 0xdf, 0xee, 0xb8, 0xdc, 0x7a, 0xb8, 0xcf, 0xfd, 0xc7, 0x66, - 0xcf,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 0x48, 0x60, 0x26, 0xa5, 0x5c, 0xd6, 0xa5, - 0x2d, 0x00, 0xae, 0x54, 0x50, 0x22, 0xdb, 0x3b, 0x92, 0x6d, 0x83, 0xd6, 0x87, 0xb0, 0xa5, 0x54, - 0xd6, 0x13, 0x79, 0xfd, 0x4f, 0xa3, 0xd9, 0x3a, 0xd5, 0x0f, 0x18, 0x8d, 0xfa, 0xb2, 0x6e, 0x86, - 0x2b, 0x02, 0x96, 0xed, 0xea, 0xca, 0xb3, 0x95, 0x29, 0xdb, 0x2f, 0x7d, 0x30, 0xec, 0xc9, 0xd5, - 0xc1, 0xf5, 0xc8, 0xb7, 0xe3, 0xd5, 0x6a, 0x62, 0xc4, 0x7b, 0x4f, 0xe2, 0xbd, 0x4d, 0x1b, 0xd5, - 0xf0, 0xe2, 0x1e, 0xec, 0x97, 0xf0, 0x27, 0x02, 0xaf, 0x66, 0xc3, 0x46, 0x55, 0x5c, 0x1d, 0x5c, - 0x9b, 0x2a, 0xb0, 0x9a, 0x55, 0xca, 0x1a, 0x12, 0xd6, 0xa4, 0x57, 0x47, 0x81, 0xdd, 0xfa, 0xf0, - 0xf9, 0x51, 0x8d, 0x1c, 0x1e, 0xd5, 0xc8, 0x3f, 0x47, 0x35, 0xf2, 0xec, 0xb8, 0x36, 0x71, 0x78, - 0x5c, 0x9b, 0xf8, 0xeb, 0xb8, 0x36, 0x71, 0x7f, 0xcd, 0xe9, 0x86, 0x9f, 0xef, 0xb7, 0xcd, 0x8e, - 0xd8, 0xd3, 0x45, 0x3c, 0x48, 0x62, 0x86, 0x8f, 0x7b, 0x3c, 0x68, 0x4f, 0xcb, 0xff, 0xb3, 0x1b, - 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0xbf, 0xbe, 0x76, 0x39, 0x7b, 0x10, 0x00, 0x00, + // 970 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x97, 0x41,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x3e, 0xb6, 0x9f, + 0x11, 0x14, 0x90, 0x4c, 0xa2, 0x2e, 0x60, 0x69, 0xbe, 0x02, 0x16, 0xf7, 0xe1, 0x35, 0xf0, 0xf9, + 0x64, 0x97, 0x13, 0x33, 0x9c, 0x71, 0x34, 0x9f, 0xe1, 0x0d, 0xb5, 0x13, 0x14, 0x77, 0x1b, 0xaf, + 0x79, 0xe9, 0x79, 0xde, 0x50, 0xd7, 0x97, 0x18, 0xe5, 0x84, 0x1f, 0x65, 0x00, 0x37, 0xee, 0x60, + 0x12, 0x6e, 0x51, 0x27, 0xf5, 0x1b, 0x82, 0x7a, 0x52, 0x79, 0x32, 0xeb, 0x59, 0x7a, 0x91, 0x7a, + 0x16, 0x76, 0x6a, 0xdb, 0x7f, 0xad, 0xe1, 0x65, 0x41, 0x4c, 0xbe, 0x42, 0x78, 0x05, 0xa2, 0x53, + 0x99, 0x27, 0xbd, 0x32, 0xb5, 0x4b, 0xb9, 0x9a, 0x28, 0x13, 0xbd, 0xf1, 0xf5, 0x9f, 0xff, 0x7d, + 0x77, 0xea, 0x2a, 0xa9, 0x98, 0xef, 0x47, 0xe2, 0xfb, 0x2c, 0xf8, 0x82, 0x7b, 0xfb, 0xa6, 0xf2, + 0x0a, 0x42, 0x9e, 0x87, 0x08, 0xd1, 0x3e, 0xa8, 0x28, 0xc3, 0xcb, 0x2b, 0x55, 0xbb, 0x32, 0x4b, + 0x06, 0x20, 0x37, 0x05, 0x48, 0x9d, 0x98, 0xb3, 0x40, 0x84, 0x9b, 0xf9, 0x14, 0x16, 0xf3, 0x33, + 0xf2, 0x2d, 0xc2, 0xab, 0x51, 0xac, 0x1d, 0xc7, 0xc9, 0xa0, 0x92, 0xb7, 0x6c, 0x06, 0x55, 0x6a, + 0x55, 0x16, 0x6f, 0x4f, 0xd4, 0x93, 0x3f, 0x90, 0x7a, 0x17, 0x91, 0x46, 0x56, 0x17, 0x72, 0x36, + 0xa0, 0xd6, 0x9c, 0xcf, 0x09, 0x90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3, 0x13, 0xbd, 0xf4, 0xf7, + 0x89, 0x5e, 0x7a, 0xb8, 0x65, 0xf7, 0x83, 0xcf, 0x47, 0x1d, 0xa3, 0xcb, 0x07, 0x59, 0x11, 0x0f, + 0xe2, 0x98, 0xc1, 0x93, 0x21, 0xf3, 0x3b, 0x2b, 0xe2, 0x9f, 0x5b, 0xe3, 0xff, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x79, 0x95, 0x81, 0x2c, 0x44, 0x0f, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1097,8 +1012,6 @@ type QueryClient interface { // Queries a list of Prices items. Prices(ctx context.Context, in *QueryGetPricesRequest, opts ...grpc.CallOption) (*QueryGetPricesResponse, error) PricesAll(ctx context.Context, in *QueryAllPricesRequest, opts ...grpc.CallOption) (*QueryAllPricesResponse, error) - // Queries a Validators by index. - Validators(ctx context.Context, in *QueryGetValidatorsRequest, opts ...grpc.CallOption) (*QueryGetValidatorsResponse, error) // Queries a ValidatorUpdateBlock by index. ValidatorUpdateBlock(ctx context.Context, in *QueryGetValidatorUpdateBlockRequest, opts ...grpc.CallOption) (*QueryGetValidatorUpdateBlockResponse, error) // Queries a IndexRecentParams by index. @@ -1148,15 +1061,6 @@ func (c *queryClient) PricesAll(ctx context.Context, in *QueryAllPricesRequest, return out, nil } -func (c *queryClient) Validators(ctx context.Context, in *QueryGetValidatorsRequest, opts ...grpc.CallOption) (*QueryGetValidatorsResponse, error) { - out := new(QueryGetValidatorsResponse) - err := c.cc.Invoke(ctx, "/exocore.oracle.Query/Validators", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *queryClient) ValidatorUpdateBlock(ctx context.Context, in *QueryGetValidatorUpdateBlockRequest, opts ...grpc.CallOption) (*QueryGetValidatorUpdateBlockResponse, error) { out := new(QueryGetValidatorUpdateBlockResponse) err := c.cc.Invoke(ctx, "/exocore.oracle.Query/ValidatorUpdateBlock", in, out, opts...) @@ -1227,8 +1131,6 @@ type QueryServer interface { // Queries a list of Prices items. Prices(context.Context, *QueryGetPricesRequest) (*QueryGetPricesResponse, error) PricesAll(context.Context, *QueryAllPricesRequest) (*QueryAllPricesResponse, error) - // Queries a Validators by index. - Validators(context.Context, *QueryGetValidatorsRequest) (*QueryGetValidatorsResponse, error) // Queries a ValidatorUpdateBlock by index. ValidatorUpdateBlock(context.Context, *QueryGetValidatorUpdateBlockRequest) (*QueryGetValidatorUpdateBlockResponse, error) // Queries a IndexRecentParams by index. @@ -1256,9 +1158,6 @@ func (*UnimplementedQueryServer) Prices(ctx context.Context, req *QueryGetPrices func (*UnimplementedQueryServer) PricesAll(ctx context.Context, req *QueryAllPricesRequest) (*QueryAllPricesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PricesAll not implemented") } -func (*UnimplementedQueryServer) Validators(ctx context.Context, req *QueryGetValidatorsRequest) (*QueryGetValidatorsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Validators not implemented") -} func (*UnimplementedQueryServer) ValidatorUpdateBlock(ctx context.Context, req *QueryGetValidatorUpdateBlockRequest) (*QueryGetValidatorUpdateBlockResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidatorUpdateBlock not implemented") } @@ -1339,24 +1238,6 @@ func _Query_PricesAll_Handler(srv interface{}, ctx context.Context, dec func(int return interceptor(ctx, in, info, handler) } -func _Query_Validators_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetValidatorsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Validators(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/exocore.oracle.Query/Validators", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Validators(ctx, req.(*QueryGetValidatorsRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Query_ValidatorUpdateBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryGetValidatorUpdateBlockRequest) if err := dec(in); err != nil { @@ -1499,10 +1380,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "PricesAll", Handler: _Query_PricesAll_Handler, }, - { - MethodName: "Validators", - Handler: _Query_Validators_Handler, - }, { MethodName: "ValidatorUpdateBlock", Handler: _Query_ValidatorUpdateBlock_Handler, @@ -1737,62 +1614,6 @@ func (m *QueryAllPricesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *QueryGetValidatorsRequest) 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 *QueryGetValidatorsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryGetValidatorsResponse) 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 *QueryGetValidatorsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Validators.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 *QueryGetValidatorUpdateBlockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2337,26 +2158,6 @@ func (m *QueryAllPricesResponse) Size() (n int) { return n } -func (m *QueryGetValidatorsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryGetValidatorsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Validators.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - func (m *QueryGetValidatorUpdateBlockRequest) Size() (n int) { if m == nil { return 0 @@ -3024,139 +2825,6 @@ func (m *QueryAllPricesResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetValidatorsRequest) 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: QueryGetValidatorsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetValidatorsRequest: 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 *QueryGetValidatorsResponse) 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: QueryGetValidatorsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetValidatorsResponse: 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) - } - 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.Validators.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 *QueryGetValidatorUpdateBlockRequest) Unmarshal(dAtA []byte) 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 3f5b39649..d87c74b38 100644 --- a/x/oracle/types/query.pb.gw.go +++ b/x/oracle/types/query.pb.gw.go @@ -141,24 +141,6 @@ func local_request_Query_PricesAll_0(ctx context.Context, marshaler runtime.Mars } -func request_Query_Validators_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetValidatorsRequest - var metadata runtime.ServerMetadata - - msg, err := client.Validators(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Validators_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetValidatorsRequest - var metadata runtime.ServerMetadata - - msg, err := server.Validators(ctx, &protoReq) - return msg, metadata, err - -} - func request_Query_ValidatorUpdateBlock_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryGetValidatorUpdateBlockRequest var metadata runtime.ServerMetadata @@ -468,29 +450,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_Validators_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_Validators_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_Validators_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_ValidatorUpdateBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -753,26 +712,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_Validators_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_Validators_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_Validators_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_ValidatorUpdateBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -923,8 +862,6 @@ var ( pattern_Query_PricesAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ExocoreNetwork", "exocore", "oracle", "prices"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_Query_Validators_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ExocoreNetwork", "exocore", "oracle", "validators"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_Query_ValidatorUpdateBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ExocoreNetwork", "exocore", "oracle", "validator_update_block"}, "", runtime.AssumeColonVerbOpt(true))) pattern_Query_IndexRecentParams_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"ExocoreNetwork", "exocore", "oracle", "index_recent_params"}, "", runtime.AssumeColonVerbOpt(true))) @@ -947,8 +884,6 @@ var ( forward_Query_PricesAll_0 = runtime.ForwardResponseMessage - forward_Query_Validators_0 = runtime.ForwardResponseMessage - forward_Query_ValidatorUpdateBlock_0 = runtime.ForwardResponseMessage forward_Query_IndexRecentParams_0 = runtime.ForwardResponseMessage