diff --git a/proto/lavanet/lava/pairing/query.proto b/proto/lavanet/lava/pairing/query.proto index 0f806dd49e..b126e4b0bc 100644 --- a/proto/lavanet/lava/pairing/query.proto +++ b/proto/lavanet/lava/pairing/query.proto @@ -5,6 +5,7 @@ import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "lavanet/lava/pairing/params.proto"; +import "lavanet/lava/pairing/reputation.proto"; import "lavanet/lava/spec/spec.proto"; @@ -80,9 +81,19 @@ service Query { } // Queries a for the aggregated CU of all ProviderEpochCu objects all the providers. -rpc ProvidersEpochCu(QueryProvidersEpochCuRequest) returns (QueryProvidersEpochCuResponse) { - option (google.api.http).get = "/lavanet/lava/pairing/providers_epoch_cu"; -} + rpc ProvidersEpochCu(QueryProvidersEpochCuRequest) returns (QueryProvidersEpochCuResponse) { + option (google.api.http).get = "/lavanet/lava/pairing/providers_epoch_cu"; + } + +// Queries a for a provider reputation. + rpc ProviderReputation(QueryProviderReputationRequest) returns (QueryProviderReputationResponse) { + option (google.api.http).get = "/lavanet/lava/pairing/provider_reputation/{address}/{chainID}/{cluster}"; + } + +// Queries a for a provider reputation's details (mainly for developers). + rpc ProviderReputationDetails(QueryProviderReputationDetailsRequest) returns (QueryProviderReputationDetailsResponse) { + option (google.api.http).get = "/lavanet/lava/pairing/provider_reputation_details/{address}/{chainID}/{cluster}"; + } // this line is used by starport scaffolding # 2 @@ -238,4 +249,39 @@ message QueryProvidersEpochCuResponse { message ProviderCuInfo { string provider = 1; uint64 cu = 2; +} + +message QueryProviderReputationRequest { + string address = 1; + string chainID = 2; + string cluster = 3; +} + +message ReputationData { + uint64 rank = 1; // rank compared to other providers + uint64 providers = 2; // amount of providers with the same chainID+cluster + string overall_performance = 3; // overall performance metric which can be "good", "bad", or "low variance" + string chainID = 4; + string cluster = 5; +} + +message QueryProviderReputationResponse { + repeated ReputationData data = 1 [(gogoproto.nullable) = false]; +} + +message QueryProviderReputationDetailsRequest { + string address = 1; + string chainID = 2; + string cluster = 3; +} + +message ReputationDevData { + Reputation reputation = 1 [(gogoproto.nullable) = false]; + ReputationPairingScore reputation_pairing_score = 2 [(gogoproto.nullable) = false]; + string chainID = 4; + string cluster = 5; +} + +message QueryProviderReputationDetailsResponse { + repeated ReputationDevData data = 1 [(gogoproto.nullable) = false]; } \ No newline at end of file diff --git a/scripts/test/cli_test.sh b/scripts/test/cli_test.sh index 6129b48d6e..17e018d677 100755 --- a/scripts/test/cli_test.sh +++ b/scripts/test/cli_test.sh @@ -156,6 +156,8 @@ trace lavad q pairing static-providers-list LAV1 >/dev/null trace lavad q pairing user-entry $(lavad keys show alice -a) ETH1 20 >/dev/null trace lavad q pairing verify-pairing STRK $(lavad keys show alice -a) $(lavad keys show alice -a) 60 >/dev/null trace lavad q pairing provider-pairing-chance $(lavad keys show servicer1 -a) STRK 1 "" >/dev/null +trace lavad q pairing provider-reputation $(lavad keys show servicer1 -a) ETH1 free >/dev/null +trace lavad q pairing provider-reputation-details $(lavad keys show servicer1 -a) ETH1 free >/dev/null echo "Testing dualstaking tx commands" wait_count_blocks 1 >/dev/null diff --git a/testutil/common/tester.go b/testutil/common/tester.go index da00a4a538..2a80265942 100644 --- a/testutil/common/tester.go +++ b/testutil/common/tester.go @@ -922,6 +922,26 @@ func (ts *Tester) QueryPairingProviderEpochCu(provider string, project string, c return ts.Keepers.Pairing.ProvidersEpochCu(ts.GoCtx, msg) } +// QueryPairingProviderReputation implements 'q pairing provider-reputation' +func (ts *Tester) QueryPairingProviderReputation(provider string, chainID string, cluster string) (*pairingtypes.QueryProviderReputationResponse, error) { + msg := &pairingtypes.QueryProviderReputationRequest{ + Address: provider, + ChainID: chainID, + Cluster: cluster, + } + return ts.Keepers.Pairing.ProviderReputation(ts.GoCtx, msg) +} + +// QueryPairingProviderReputationDetails implements 'q pairing provider-reputation-details' +func (ts *Tester) QueryPairingProviderReputationDetails(provider string, chainID string, cluster string) (*pairingtypes.QueryProviderReputationDetailsResponse, error) { + msg := &pairingtypes.QueryProviderReputationDetailsRequest{ + Address: provider, + ChainID: chainID, + Cluster: cluster, + } + return ts.Keepers.Pairing.ProviderReputationDetails(ts.GoCtx, msg) +} + // QueryPairingSubscriptionMonthlyPayout implements 'q pairing subscription-monthly-payout' func (ts *Tester) QueryPairingSubscriptionMonthlyPayout(consumer string) (*pairingtypes.QuerySubscriptionMonthlyPayoutResponse, error) { msg := &pairingtypes.QuerySubscriptionMonthlyPayoutRequest{ diff --git a/x/pairing/README.md b/x/pairing/README.md index 7a64eab3bd..42f351897f 100644 --- a/x/pairing/README.md +++ b/x/pairing/README.md @@ -352,8 +352,13 @@ The pairing module supports the following queries: | `list-epoch-payments` | none | show all epochPayment objects | | `list-provider-payment-storage` | none | show all providerPaymentStorage objects | | `list-unique-payment-storage-client-provider` | none | show all uniquePaymentStorageClientProvider objects | +| `provider` | chain-id (string) | show a provider staked on a specific chain | | `provider-monthly-payout` | provider (string) | show the current monthly payout for a specific provider | +| `provider-pairing-chance` | provider (string), chain-id (string) | show the chance of a provider has to be part of the pairing list for a specific chain | +| `provider-reputation` | provider (string), chain-id (string), cluster (string) | show the provider's rank compared to other provider with the same chain-id and cluster by their reputation score | +| `provider-reputation-details` | provider (string), chain-id (string), cluster (string) | developer query to show the provider's reputation score raw data | | `providers` | chain-id (string) | show all the providers staked on a specific chain | +| `providers-epoch-cu` | | developer query to list the amount of CU serviced by all the providers every epoch | | `sdk-pairing` | none | query used by Lava-SDK to get all the required pairing info | | `show-epoch-payments` | index (string) | show an epochPayment object by index | | `show-provider-payment-storage` | index (string) | show a providerPaymentStorage object by index | diff --git a/x/pairing/client/cli/query.go b/x/pairing/client/cli/query.go index 69e17c6c8d..4a39ea03d5 100644 --- a/x/pairing/client/cli/query.go +++ b/x/pairing/client/cli/query.go @@ -41,6 +41,8 @@ func GetQueryCmd(queryRoute string) *cobra.Command { cmd.AddCommand(CmdSubscriptionMonthlyPayout()) cmd.AddCommand(CmdProvidersEpochCu()) + cmd.AddCommand(CmdProviderReputation()) + cmd.AddCommand(CmdProviderReputationDetails()) cmd.AddCommand(CmdDebugQuery()) diff --git a/x/pairing/client/cli/query_provider_reputation.go b/x/pairing/client/cli/query_provider_reputation.go new file mode 100644 index 0000000000..c19f70bf8a --- /dev/null +++ b/x/pairing/client/cli/query_provider_reputation.go @@ -0,0 +1,65 @@ +package cli + +import ( + "strconv" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/lavanet/lava/v4/utils" + "github.com/lavanet/lava/v4/x/pairing/types" + "github.com/spf13/cobra" +) + +var _ = strconv.Itoa(0) + +func CmdProviderReputation() *cobra.Command { + cmd := &cobra.Command{ + Use: "provider-reputation [address] [chain-id] [cluster]", + Short: "Query for a provider's reputation. Use \"*\" for specify all for chain/cluster.", + Args: cobra.ExactArgs(3), + Example: ` + Reputation of alice for chain ETH1 and the cluster "free": + lavad q pairing provider-reputation alice ETH1 free + + Reputation of alice for all chains and the cluster "free": + lavad q pairing provider-reputation alice * free + + Reputation of alice for ETH1 and for all clusters: + lavad q pairing provider-reputation alice ETH1 * + + Reputation of alice for all chains and for all clusters: + lavad q pairing provider-reputation alice * *`, + RunE: func(cmd *cobra.Command, args []string) (err error) { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + address, err := utils.ParseCLIAddress(clientCtx, args[0]) + if err != nil { + return err + } + chainID := args[1] + cluster := args[2] + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryProviderReputationRequest{ + Address: address, + ChainID: chainID, + Cluster: cluster, + } + + res, err := queryClient.ProviderReputation(cmd.Context(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/pairing/client/cli/query_provider_reputation_details.go b/x/pairing/client/cli/query_provider_reputation_details.go new file mode 100644 index 0000000000..9d866fb45f --- /dev/null +++ b/x/pairing/client/cli/query_provider_reputation_details.go @@ -0,0 +1,65 @@ +package cli + +import ( + "strconv" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/lavanet/lava/v4/utils" + "github.com/lavanet/lava/v4/x/pairing/types" + "github.com/spf13/cobra" +) + +var _ = strconv.Itoa(0) + +func CmdProviderReputationDetails() *cobra.Command { + cmd := &cobra.Command{ + Use: "provider-reputation-details [address] [chain-id] [cluster]", + Short: "Query for a provider's reputation details. Mainly used by developers. Use \"*\" for specify all for chain/cluster.", + Args: cobra.ExactArgs(3), + Example: ` + Reputation details of alice for chain ETH1 and the cluster "free": + lavad q pairing provider-reputation-details alice ETH1 free + + Reputation details of alice for all chains and the cluster "free": + lavad q pairing provider-reputation-details alice * free + + Reputation details of alice for ETH1 and for all clusters: + lavad q pairing provider-reputation-details alice ETH1 * + + Reputation details of alice for all chains and for all clusters: + lavad q pairing provider-reputation-details alice * *`, + RunE: func(cmd *cobra.Command, args []string) (err error) { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + address, err := utils.ParseCLIAddress(clientCtx, args[0]) + if err != nil { + return err + } + chainID := args[1] + cluster := args[2] + + queryClient := types.NewQueryClient(clientCtx) + + params := &types.QueryProviderReputationDetailsRequest{ + Address: address, + ChainID: chainID, + Cluster: cluster, + } + + res, err := queryClient.ProviderReputationDetails(cmd.Context(), params) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} diff --git a/x/pairing/client/cli/query_providers_epoch_cu.go b/x/pairing/client/cli/query_providers_epoch_cu.go index a79de4fa72..4cd7e127ed 100644 --- a/x/pairing/client/cli/query_providers_epoch_cu.go +++ b/x/pairing/client/cli/query_providers_epoch_cu.go @@ -10,10 +10,10 @@ import ( func CmdProvidersEpochCu() *cobra.Command { cmd := &cobra.Command{ Use: "providers-epoch-cu", - Short: "Query to show the amount of CU serviced by all provider in a specific epoch", + Short: "Query to list the amount of CU serviced by all the providers every epoch", Example: ` lavad q pairing providers-epoch-cu`, - Args: cobra.ExactArgs(1), + Args: cobra.ExactArgs(0), RunE: func(cmd *cobra.Command, args []string) (err error) { clientCtx, err := client.GetClientQueryContext(cmd) if err != nil { diff --git a/x/pairing/keeper/grpc_query_provider_reputation.go b/x/pairing/keeper/grpc_query_provider_reputation.go new file mode 100644 index 0000000000..61a90465e0 --- /dev/null +++ b/x/pairing/keeper/grpc_query_provider_reputation.go @@ -0,0 +1,113 @@ +package keeper + +import ( + "context" + "fmt" + "sort" + + "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/lavanet/lava/v4/utils" + "github.com/lavanet/lava/v4/utils/lavaslices" + "github.com/lavanet/lava/v4/x/pairing/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +const ( + varianceThreshold = float64(1) // decides if the overall_performance field can be calculated + percentileRank = float64(0.8) // rank for percentile to decide whether the overall_performance is "good" or "bad" + goodScore = "good" + badScore = "bad" + lowVariance = "low_variance" +) + +func (k Keeper) ProviderReputation(goCtx context.Context, req *types.QueryProviderReputationRequest) (*types.QueryProviderReputationResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + chains := []string{req.ChainID} + if req.ChainID == "*" { + chains = k.specKeeper.GetAllChainIDs(ctx) + } + + clusters := []string{req.Cluster} + if req.Cluster == "*" { + clusters = k.subscriptionKeeper.GetAllClusters(ctx) + } + + // get all the reputation scores of the requested provider and gather valid chainID+cluster pairs + type chainClusterScore struct { + chainID string + cluster string + score math.LegacyDec + } + requestedProviderData := []chainClusterScore{} + for _, chainID := range chains { + for _, cluster := range clusters { + score, found := k.GetReputationScore(ctx, chainID, cluster, req.Address) + if !found { + continue + } + requestedProviderData = append(requestedProviderData, chainClusterScore{chainID: chainID, cluster: cluster, score: score}) + } + } + + // get scores from other providers for the relevant chains and clusters + res := []types.ReputationData{} + for _, data := range requestedProviderData { + chainClusterRes := types.ReputationData{ChainID: data.chainID, Cluster: data.cluster} + + // get all reputation pairing score indices for a chainID+cluster pair + inds := k.reputationsFS.GetAllEntryIndicesWithPrefix(ctx, types.ReputationScoreKey(data.chainID, data.cluster, "")) + + // collect all pairing scores with indices and sort in ascending order + pairingScores := []float64{} + for _, ind := range inds { + var score types.ReputationPairingScore + found := k.reputationsFS.FindEntry(ctx, ind, uint64(ctx.BlockHeight()), &score) + if !found { + return nil, utils.LavaFormatError("invalid reputationFS state", fmt.Errorf("reputation pairing score not found"), + utils.LogAttr("index", ind), + utils.LogAttr("block", ctx.BlockHeight()), + ) + } + pairingScores = append(pairingScores, score.Score.MustFloat64()) + } + sort.Slice(pairingScores, func(i, j int) bool { + return pairingScores[i] < pairingScores[j] + }) + + // find the provider's rank + rank := len(pairingScores) + for i, score := range pairingScores { + if data.score.MustFloat64() <= score { + rank -= i + break + } + } + + // calculate the pairing scores variance + mean := lavaslices.Average(pairingScores) + variance := lavaslices.Variance(pairingScores, mean) + + // create the reputation data and append + chainClusterRes.Rank = uint64(rank) + chainClusterRes.Providers = uint64(len(pairingScores)) + if variance < varianceThreshold { + chainClusterRes.OverallPerformance = lowVariance + } else { + if pairingScores[len(pairingScores)-rank] > lavaslices.Percentile(pairingScores, percentileRank) { + chainClusterRes.OverallPerformance = goodScore + } else { + chainClusterRes.OverallPerformance = badScore + } + } + res = append(res, chainClusterRes) + } + + return &types.QueryProviderReputationResponse{Data: res}, nil +} diff --git a/x/pairing/keeper/grpc_query_provider_reputation_details.go b/x/pairing/keeper/grpc_query_provider_reputation_details.go new file mode 100644 index 0000000000..8fb6af5252 --- /dev/null +++ b/x/pairing/keeper/grpc_query_provider_reputation_details.go @@ -0,0 +1,46 @@ +package keeper + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/lavanet/lava/v4/x/pairing/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +func (k Keeper) ProviderReputationDetails(goCtx context.Context, req *types.QueryProviderReputationDetailsRequest) (*types.QueryProviderReputationDetailsResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + chains := []string{req.ChainID} + if req.ChainID == "*" { + chains = k.specKeeper.GetAllChainIDs(ctx) + } + + clusters := []string{req.Cluster} + if req.Cluster == "*" { + clusters = k.subscriptionKeeper.GetAllClusters(ctx) + } + + // get all the reputations and reputation scores of the requested provider + res := []types.ReputationDevData{} + for _, chainID := range chains { + for _, cluster := range clusters { + chainClusterRes := types.ReputationDevData{ChainID: chainID, Cluster: cluster} + score, foundPairingScore := k.GetReputationScore(ctx, chainID, cluster, req.Address) + reputation, foundReputation := k.GetReputation(ctx, chainID, cluster, req.Address) + if !foundPairingScore || !foundReputation { + continue + } + chainClusterRes.Reputation = reputation + chainClusterRes.ReputationPairingScore = types.ReputationPairingScore{Score: score} + res = append(res, chainClusterRes) + } + } + + return &types.QueryProviderReputationDetailsResponse{Data: res}, nil +} diff --git a/x/pairing/keeper/grpc_query_provider_reputation_test.go b/x/pairing/keeper/grpc_query_provider_reputation_test.go new file mode 100644 index 0000000000..ad1e00463d --- /dev/null +++ b/x/pairing/keeper/grpc_query_provider_reputation_test.go @@ -0,0 +1,144 @@ +package keeper_test + +import ( + "testing" + + "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/lavanet/lava/v4/testutil/common" + "github.com/lavanet/lava/v4/x/pairing/types" + "github.com/stretchr/testify/require" +) + +// TestProviderReputation tests the provider-reputation query +func TestProviderReputation(t *testing.T) { + ts := newTester(t) + ts.setupForPayments(4, 0, 0) // 4 providers + + _, p1 := ts.GetAccount(common.PROVIDER, 0) + _, p2 := ts.GetAccount(common.PROVIDER, 1) + _, p3 := ts.GetAccount(common.PROVIDER, 2) + _, p4 := ts.GetAccount(common.PROVIDER, 3) + + specs := []string{"spec1", "spec2", "spec1", "spec1", "spec1", "spec2", "spec2"} + clusters := []string{"cluster1", "cluster1", "cluster2", "cluster1", "cluster1", "cluster1", "cluster2"} + providers := []string{p1, p1, p1, p2, p3, p3, p4} + + // Reputation score setup: + // spec1 + cluster1: p1=1, p2=4, p3=5 + // spec1 + cluster2: p1=3 + // spec2 + cluster1: p1=2, p3=6 + // spec2 + cluster2: p4=7 + for i := range providers { + err := ts.Keepers.Pairing.SetReputationScore(ts.Ctx, specs[i], clusters[i], providers[i], sdk.NewDec(int64(i+1))) + require.NoError(t, err) + } + + // test only on p1 + tests := []struct { + name string + chain string + cluster string + expected []types.ReputationData + }{ + { + "spec1+cluster1", "spec1", "cluster1", []types.ReputationData{ + {Rank: 3, Providers: 3, OverallPerformance: "bad", ChainID: "spec1", Cluster: "cluster1"}, + }, + }, + { + "spec1", "spec1", "*", []types.ReputationData{ + {Rank: 3, Providers: 3, OverallPerformance: "bad", ChainID: "spec1", Cluster: "cluster1"}, + {Rank: 1, Providers: 1, OverallPerformance: "low_variance", ChainID: "spec1", Cluster: "cluster2"}, + }, + }, + { + "cluster1", "*", "cluster1", []types.ReputationData{ + {Rank: 3, Providers: 3, OverallPerformance: "bad", ChainID: "spec1", Cluster: "cluster1"}, + {Rank: 2, Providers: 2, OverallPerformance: "bad", ChainID: "spec2", Cluster: "cluster2"}, + }, + }, + { + "all", "*", "*", []types.ReputationData{ + {Rank: 3, Providers: 3, OverallPerformance: "bad", ChainID: "spec1", Cluster: "cluster1"}, + {Rank: 2, Providers: 2, OverallPerformance: "bad", ChainID: "spec2", Cluster: "cluster2"}, + {Rank: 1, Providers: 1, OverallPerformance: "low_variance", ChainID: "spec1", Cluster: "cluster2"}, + }, + }, + { + "spec2+cluster2 (p1 not exist)", "spec2", "cluster2", []types.ReputationData{}, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + res, err := ts.QueryPairingProviderReputation(p1, tt.chain, tt.cluster) + require.NoError(t, err) + for _, data := range res.Data { + foundChainCluster := false + for _, expected := range tt.expected { + if data.ChainID == expected.ChainID && data.Cluster == expected.Cluster { + foundChainCluster = true + require.Equal(t, expected.Rank, data.Rank) + require.Equal(t, expected.Providers, data.Providers) + require.Equal(t, expected.OverallPerformance, data.OverallPerformance) + } + } + if !foundChainCluster { + require.FailNow(t, "could not find chain cluster pair on-chain") + } + } + }) + } +} + +// TestProviderReputationDetails tests the provider-reputation-details query +func TestProviderReputationDetails(t *testing.T) { + ts := newTester(t) + ts.setupForPayments(2, 0, 0) // 2 providers + + _, p1 := ts.GetAccount(common.PROVIDER, 0) + _, p2 := ts.GetAccount(common.PROVIDER, 1) + + specs := []string{"spec1", "spec2", "spec1", "spec1"} + clusters := []string{"cluster1", "cluster1", "cluster2", "cluster1"} + providers := []string{p1, p1, p1, p2} + + for i := range providers { + ts.Keepers.Pairing.SetReputation(ts.Ctx, specs[i], clusters[i], providers[i], types.Reputation{ + Stake: sdk.NewCoin(ts.TokenDenom(), sdk.NewInt(int64(i+1))), + }) + err := ts.Keepers.Pairing.SetReputationScore(ts.Ctx, specs[i], clusters[i], providers[i], sdk.NewDec(int64(i+1))) + require.NoError(t, err) + } + + tests := []struct { + name string + provider string + chain string + cluster string + expected []math.LegacyDec + }{ + {"provider+chain+cluster", p1, "spec1", "cluster1", []math.LegacyDec{math.LegacyNewDec(1)}}, + {"provider+chain+all_clusters", p1, "spec1", "*", []math.LegacyDec{math.LegacyNewDec(1), math.LegacyNewDec(3)}}, + {"provider+all_chain+cluster", p1, "*", "cluster1", []math.LegacyDec{math.LegacyNewDec(1), math.LegacyNewDec(2)}}, + {"provider+all_chains+all_clusters", p1, "*", "*", []math.LegacyDec{math.LegacyNewDec(1), math.LegacyNewDec(2), math.LegacyNewDec(3)}}, + {"second provider+chain+cluster", p2, "spec1", "cluster1", []math.LegacyDec{math.LegacyNewDec(4)}}, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + res, err := ts.QueryPairingProviderReputationDetails(tt.provider, tt.chain, tt.cluster) + require.NoError(t, err) + for i := range res.Data { + expectedStake := sdk.NewCoin(ts.TokenDenom(), tt.expected[i].TruncateInt()) + expectedScore := tt.expected[i] + + require.Equal(t, tt.chain, res.Data[i].ChainID) + require.Equal(t, tt.cluster, res.Data[i].Cluster) + require.True(t, expectedStake.IsEqual(res.Data[i].Reputation.Stake)) + require.True(t, expectedScore.Equal(res.Data[i].ReputationPairingScore.Score)) + } + }) + } +} diff --git a/x/pairing/types/query.pb.go b/x/pairing/types/query.pb.go index f69bba8484..6c2f737c2f 100644 --- a/x/pairing/types/query.pb.go +++ b/x/pairing/types/query.pb.go @@ -1543,6 +1543,360 @@ func (m *ProviderCuInfo) GetCu() uint64 { return 0 } +type QueryProviderReputationRequest struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + ChainID string `protobuf:"bytes,2,opt,name=chainID,proto3" json:"chainID,omitempty"` + Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"` +} + +func (m *QueryProviderReputationRequest) Reset() { *m = QueryProviderReputationRequest{} } +func (m *QueryProviderReputationRequest) String() string { return proto.CompactTextString(m) } +func (*QueryProviderReputationRequest) ProtoMessage() {} +func (*QueryProviderReputationRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9e149ce9d21da0d8, []int{29} +} +func (m *QueryProviderReputationRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProviderReputationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProviderReputationRequest.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 *QueryProviderReputationRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProviderReputationRequest.Merge(m, src) +} +func (m *QueryProviderReputationRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryProviderReputationRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProviderReputationRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProviderReputationRequest proto.InternalMessageInfo + +func (m *QueryProviderReputationRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryProviderReputationRequest) GetChainID() string { + if m != nil { + return m.ChainID + } + return "" +} + +func (m *QueryProviderReputationRequest) GetCluster() string { + if m != nil { + return m.Cluster + } + return "" +} + +type ReputationData struct { + Rank uint64 `protobuf:"varint,1,opt,name=rank,proto3" json:"rank,omitempty"` + Providers uint64 `protobuf:"varint,2,opt,name=providers,proto3" json:"providers,omitempty"` + OverallPerformance string `protobuf:"bytes,3,opt,name=overall_performance,json=overallPerformance,proto3" json:"overall_performance,omitempty"` + ChainID string `protobuf:"bytes,4,opt,name=chainID,proto3" json:"chainID,omitempty"` + Cluster string `protobuf:"bytes,5,opt,name=cluster,proto3" json:"cluster,omitempty"` +} + +func (m *ReputationData) Reset() { *m = ReputationData{} } +func (m *ReputationData) String() string { return proto.CompactTextString(m) } +func (*ReputationData) ProtoMessage() {} +func (*ReputationData) Descriptor() ([]byte, []int) { + return fileDescriptor_9e149ce9d21da0d8, []int{30} +} +func (m *ReputationData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReputationData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReputationData.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 *ReputationData) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReputationData.Merge(m, src) +} +func (m *ReputationData) XXX_Size() int { + return m.Size() +} +func (m *ReputationData) XXX_DiscardUnknown() { + xxx_messageInfo_ReputationData.DiscardUnknown(m) +} + +var xxx_messageInfo_ReputationData proto.InternalMessageInfo + +func (m *ReputationData) GetRank() uint64 { + if m != nil { + return m.Rank + } + return 0 +} + +func (m *ReputationData) GetProviders() uint64 { + if m != nil { + return m.Providers + } + return 0 +} + +func (m *ReputationData) GetOverallPerformance() string { + if m != nil { + return m.OverallPerformance + } + return "" +} + +func (m *ReputationData) GetChainID() string { + if m != nil { + return m.ChainID + } + return "" +} + +func (m *ReputationData) GetCluster() string { + if m != nil { + return m.Cluster + } + return "" +} + +type QueryProviderReputationResponse struct { + Data []ReputationData `protobuf:"bytes,1,rep,name=data,proto3" json:"data"` +} + +func (m *QueryProviderReputationResponse) Reset() { *m = QueryProviderReputationResponse{} } +func (m *QueryProviderReputationResponse) String() string { return proto.CompactTextString(m) } +func (*QueryProviderReputationResponse) ProtoMessage() {} +func (*QueryProviderReputationResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9e149ce9d21da0d8, []int{31} +} +func (m *QueryProviderReputationResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProviderReputationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProviderReputationResponse.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 *QueryProviderReputationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProviderReputationResponse.Merge(m, src) +} +func (m *QueryProviderReputationResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryProviderReputationResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProviderReputationResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProviderReputationResponse proto.InternalMessageInfo + +func (m *QueryProviderReputationResponse) GetData() []ReputationData { + if m != nil { + return m.Data + } + return nil +} + +type QueryProviderReputationDetailsRequest struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + ChainID string `protobuf:"bytes,2,opt,name=chainID,proto3" json:"chainID,omitempty"` + Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"` +} + +func (m *QueryProviderReputationDetailsRequest) Reset() { *m = QueryProviderReputationDetailsRequest{} } +func (m *QueryProviderReputationDetailsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryProviderReputationDetailsRequest) ProtoMessage() {} +func (*QueryProviderReputationDetailsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9e149ce9d21da0d8, []int{32} +} +func (m *QueryProviderReputationDetailsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProviderReputationDetailsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProviderReputationDetailsRequest.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 *QueryProviderReputationDetailsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProviderReputationDetailsRequest.Merge(m, src) +} +func (m *QueryProviderReputationDetailsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryProviderReputationDetailsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProviderReputationDetailsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProviderReputationDetailsRequest proto.InternalMessageInfo + +func (m *QueryProviderReputationDetailsRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryProviderReputationDetailsRequest) GetChainID() string { + if m != nil { + return m.ChainID + } + return "" +} + +func (m *QueryProviderReputationDetailsRequest) GetCluster() string { + if m != nil { + return m.Cluster + } + return "" +} + +type ReputationDevData struct { + Reputation Reputation `protobuf:"bytes,1,opt,name=reputation,proto3" json:"reputation"` + ReputationPairingScore ReputationPairingScore `protobuf:"bytes,2,opt,name=reputation_pairing_score,json=reputationPairingScore,proto3" json:"reputation_pairing_score"` + ChainID string `protobuf:"bytes,4,opt,name=chainID,proto3" json:"chainID,omitempty"` + Cluster string `protobuf:"bytes,5,opt,name=cluster,proto3" json:"cluster,omitempty"` +} + +func (m *ReputationDevData) Reset() { *m = ReputationDevData{} } +func (m *ReputationDevData) String() string { return proto.CompactTextString(m) } +func (*ReputationDevData) ProtoMessage() {} +func (*ReputationDevData) Descriptor() ([]byte, []int) { + return fileDescriptor_9e149ce9d21da0d8, []int{33} +} +func (m *ReputationDevData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReputationDevData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReputationDevData.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 *ReputationDevData) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReputationDevData.Merge(m, src) +} +func (m *ReputationDevData) XXX_Size() int { + return m.Size() +} +func (m *ReputationDevData) XXX_DiscardUnknown() { + xxx_messageInfo_ReputationDevData.DiscardUnknown(m) +} + +var xxx_messageInfo_ReputationDevData proto.InternalMessageInfo + +func (m *ReputationDevData) GetReputation() Reputation { + if m != nil { + return m.Reputation + } + return Reputation{} +} + +func (m *ReputationDevData) GetReputationPairingScore() ReputationPairingScore { + if m != nil { + return m.ReputationPairingScore + } + return ReputationPairingScore{} +} + +func (m *ReputationDevData) GetChainID() string { + if m != nil { + return m.ChainID + } + return "" +} + +func (m *ReputationDevData) GetCluster() string { + if m != nil { + return m.Cluster + } + return "" +} + +type QueryProviderReputationDetailsResponse struct { + Data []ReputationDevData `protobuf:"bytes,1,rep,name=data,proto3" json:"data"` +} + +func (m *QueryProviderReputationDetailsResponse) Reset() { + *m = QueryProviderReputationDetailsResponse{} +} +func (m *QueryProviderReputationDetailsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryProviderReputationDetailsResponse) ProtoMessage() {} +func (*QueryProviderReputationDetailsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9e149ce9d21da0d8, []int{34} +} +func (m *QueryProviderReputationDetailsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryProviderReputationDetailsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryProviderReputationDetailsResponse.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 *QueryProviderReputationDetailsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryProviderReputationDetailsResponse.Merge(m, src) +} +func (m *QueryProviderReputationDetailsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryProviderReputationDetailsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryProviderReputationDetailsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryProviderReputationDetailsResponse proto.InternalMessageInfo + +func (m *QueryProviderReputationDetailsResponse) GetData() []ReputationDevData { + if m != nil { + return m.Data + } + return nil +} + func init() { proto.RegisterType((*QueryParamsRequest)(nil), "lavanet.lava.pairing.QueryParamsRequest") proto.RegisterType((*QueryParamsResponse)(nil), "lavanet.lava.pairing.QueryParamsResponse") @@ -1573,125 +1927,148 @@ func init() { proto.RegisterType((*QueryProvidersEpochCuRequest)(nil), "lavanet.lava.pairing.QueryProvidersEpochCuRequest") proto.RegisterType((*QueryProvidersEpochCuResponse)(nil), "lavanet.lava.pairing.QueryProvidersEpochCuResponse") proto.RegisterType((*ProviderCuInfo)(nil), "lavanet.lava.pairing.ProviderCuInfo") + proto.RegisterType((*QueryProviderReputationRequest)(nil), "lavanet.lava.pairing.QueryProviderReputationRequest") + proto.RegisterType((*ReputationData)(nil), "lavanet.lava.pairing.ReputationData") + proto.RegisterType((*QueryProviderReputationResponse)(nil), "lavanet.lava.pairing.QueryProviderReputationResponse") + proto.RegisterType((*QueryProviderReputationDetailsRequest)(nil), "lavanet.lava.pairing.QueryProviderReputationDetailsRequest") + proto.RegisterType((*ReputationDevData)(nil), "lavanet.lava.pairing.ReputationDevData") + proto.RegisterType((*QueryProviderReputationDetailsResponse)(nil), "lavanet.lava.pairing.QueryProviderReputationDetailsResponse") } func init() { proto.RegisterFile("lavanet/lava/pairing/query.proto", fileDescriptor_9e149ce9d21da0d8) } var fileDescriptor_9e149ce9d21da0d8 = []byte{ - // 1807 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x4f, 0x6f, 0xdc, 0xc6, - 0x15, 0x17, 0x57, 0xab, 0xb5, 0xf4, 0xf4, 0xc7, 0xc6, 0x44, 0xb2, 0xa5, 0xad, 0xb2, 0x5a, 0x53, - 0x49, 0xaa, 0x3f, 0xce, 0x32, 0xda, 0xd8, 0x89, 0xa1, 0x28, 0x6e, 0x2b, 0xc9, 0x31, 0xa4, 0xaa, - 0x8d, 0x44, 0xd5, 0x3d, 0x04, 0x05, 0x08, 0x8a, 0x9c, 0x5d, 0x31, 0xe2, 0x72, 0x18, 0x72, 0xb8, - 0x96, 0x2a, 0x6c, 0x0b, 0xb4, 0x5f, 0xa0, 0x40, 0xdb, 0x43, 0x4f, 0xbd, 0x04, 0xe8, 0x29, 0xdf, - 0xa0, 0xb7, 0x02, 0x45, 0x0e, 0x3d, 0x18, 0xe8, 0xa5, 0x28, 0x8a, 0xa0, 0xb0, 0x7b, 0x2e, 0xd0, - 0x6f, 0x50, 0x70, 0x66, 0xc8, 0x25, 0x57, 0x5c, 0xee, 0xca, 0xf1, 0x45, 0xda, 0x19, 0xbe, 0xdf, - 0xcc, 0xef, 0xbd, 0x79, 0xef, 0xcd, 0x8f, 0x84, 0xaa, 0xad, 0xb7, 0x75, 0x07, 0x53, 0x25, 0xfc, - 0xaf, 0xb8, 0xba, 0xe5, 0x59, 0x4e, 0x53, 0xf9, 0x22, 0xc0, 0xde, 0x45, 0xcd, 0xf5, 0x08, 0x25, - 0x68, 0x56, 0x58, 0xd4, 0xc2, 0xff, 0x35, 0x61, 0x51, 0x9e, 0x6d, 0x92, 0x26, 0x61, 0x06, 0x4a, - 0xf8, 0x8b, 0xdb, 0x96, 0x17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, 0x00, 0x00, + // 2068 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0x5f, 0x6f, 0x1c, 0x57, + 0x15, 0xcf, 0xac, 0xd7, 0x8e, 0x7d, 0x92, 0x38, 0xe1, 0xc6, 0x76, 0xec, 0xc5, 0xdd, 0x38, 0x93, + 0xa6, 0x75, 0xe2, 0x74, 0xa7, 0x76, 0x93, 0x36, 0x4a, 0xdd, 0x40, 0x6d, 0x27, 0x91, 0x43, 0x20, + 0xf6, 0x9a, 0x80, 0x54, 0x21, 0x8d, 0xae, 0x67, 0xef, 0xae, 0xa7, 0x9e, 0x9d, 0xbb, 0x9d, 0xb9, + 0xb3, 0xb1, 0xb1, 0x16, 0x24, 0xf8, 0x02, 0x48, 0x80, 0x10, 0x4f, 0xbc, 0x54, 0xea, 0x53, 0xbf, + 0x01, 0x6f, 0x48, 0xa8, 0x0f, 0x3c, 0x54, 0xf0, 0x82, 0x10, 0xaa, 0x50, 0xc2, 0x33, 0x88, 0x0f, + 0x80, 0x84, 0xe6, 0xde, 0x33, 0x3b, 0x33, 0xeb, 0xd9, 0xd9, 0x75, 0x52, 0x5e, 0xe2, 0xbd, 0xf7, + 0x9e, 0x73, 0xcf, 0xef, 0xfc, 0xbd, 0xe7, 0x4c, 0x60, 0xc1, 0xa1, 0x6d, 0xea, 0x32, 0x61, 0x84, + 0x7f, 0x8d, 0x16, 0xb5, 0x3d, 0xdb, 0x6d, 0x18, 0x9f, 0x04, 0xcc, 0x3b, 0xac, 0xb4, 0x3c, 0x2e, + 0x38, 0x99, 0x42, 0x8a, 0x4a, 0xf8, 0xb7, 0x82, 0x14, 0xa5, 0xa9, 0x06, 0x6f, 0x70, 0x49, 0x60, + 0x84, 0xbf, 0x14, 0x6d, 0x69, 0xbe, 0xc1, 0x79, 0xc3, 0x61, 0x06, 0x6d, 0xd9, 0x06, 0x75, 0x5d, + 0x2e, 0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 0x39, 0x66, + 0x47, 0x07, 0x7f, 0x98, 0x72, 0xf0, 0x9b, 0x03, 0x1d, 0xac, 0x4c, 0x99, 0xf4, 0xf1, 0xca, 0x6f, + 0x66, 0x60, 0x54, 0x4a, 0x23, 0x3f, 0xd7, 0x60, 0x4c, 0x3d, 0x6c, 0x64, 0x31, 0xe7, 0x7d, 0x4e, + 0x0d, 0xf7, 0xa5, 0xeb, 0x43, 0x50, 0x2a, 0xb0, 0xfa, 0xeb, 0x3f, 0xfb, 0xcb, 0x3f, 0x7f, 0x59, + 0x28, 0x93, 0x79, 0x23, 0xe7, 0xc3, 0x0a, 0xf9, 0xad, 0x06, 0x13, 0xf1, 0x54, 0xb0, 0x94, 0x77, + 0x7d, 0xcf, 0xf0, 0x5f, 0xba, 0x39, 0x1c, 0x31, 0xc2, 0x59, 0x96, 0x70, 0x96, 0xc8, 0xf5, 0x3e, + 0x70, 0x22, 0x06, 0xe3, 0x08, 0x3d, 0xd6, 0x21, 0xbf, 0xd3, 0x60, 0x3c, 0xba, 0x88, 0xdc, 0x18, + 0x42, 0x5a, 0x84, 0x6c, 0x69, 0x28, 0x5a, 0x04, 0x76, 0x57, 0x02, 0xbb, 0x45, 0x56, 0xf2, 0x81, + 0x19, 0x47, 0x98, 0x63, 0x9d, 0x04, 0xc2, 0xcf, 0x34, 0x80, 0xb8, 0x81, 0x22, 0x37, 0x87, 0xec, + 0xb3, 0x14, 0xca, 0x93, 0x75, 0x65, 0xfa, 0xaa, 0xc4, 0xf9, 0x2e, 0xb9, 0x95, 0x8d, 0xb3, 0xc1, + 0xba, 0x73, 0x6d, 0x0c, 0xd0, 0x38, 0x52, 0x03, 0x68, 0x87, 0xfc, 0x51, 0x83, 0x73, 0xa9, 0x51, + 0x92, 0x18, 0x39, 0xe2, 0xb3, 0xc6, 0xde, 0xd2, 0xdb, 0xc3, 0x33, 0x20, 0xe4, 0xaa, 0x84, 0xfc, + 0x98, 0x3c, 0xca, 0x86, 0xdc, 0x96, 0x4c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 0xaf, 0xf1, 0xda, 0xc6, 0x17, 0xcf, 0xcb, 0xda, 0x97, 0xcf, 0xcb, 0xda, 0x3f, 0x9e, + 0x97, 0xb5, 0x5f, 0xbc, 0x28, 0x9f, 0xfa, 0xf2, 0x45, 0xf9, 0xd4, 0x5f, 0x5f, 0x94, 0x4f, 0x7d, + 0x74, 0x23, 0xf1, 0x39, 0x36, 0x25, 0xb4, 0x7d, 0xcb, 0x38, 0xe8, 0x4a, 0x96, 0x9f, 0x65, 0x77, + 0xc7, 0xe4, 0x7f, 0x8d, 0xbd, 0xf3, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x54, 0xb3, 0x85, 0xe2, + 0xe6, 0x1c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1732,6 +2109,10 @@ type QueryClient interface { SdkPairing(ctx context.Context, in *QueryGetPairingRequest, opts ...grpc.CallOption) (*QuerySdkPairingResponse, error) // Queries a for the aggregated CU of all ProviderEpochCu objects all the providers. ProvidersEpochCu(ctx context.Context, in *QueryProvidersEpochCuRequest, opts ...grpc.CallOption) (*QueryProvidersEpochCuResponse, error) + // Queries a for a provider reputation. + ProviderReputation(ctx context.Context, in *QueryProviderReputationRequest, opts ...grpc.CallOption) (*QueryProviderReputationResponse, error) + // Queries a for a provider reputation's details (mainly for developers). + ProviderReputationDetails(ctx context.Context, in *QueryProviderReputationDetailsRequest, opts ...grpc.CallOption) (*QueryProviderReputationDetailsResponse, error) } type queryClient struct { @@ -1859,6 +2240,24 @@ func (c *queryClient) ProvidersEpochCu(ctx context.Context, in *QueryProvidersEp return out, nil } +func (c *queryClient) ProviderReputation(ctx context.Context, in *QueryProviderReputationRequest, opts ...grpc.CallOption) (*QueryProviderReputationResponse, error) { + out := new(QueryProviderReputationResponse) + err := c.cc.Invoke(ctx, "/lavanet.lava.pairing.Query/ProviderReputation", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ProviderReputationDetails(ctx context.Context, in *QueryProviderReputationDetailsRequest, opts ...grpc.CallOption) (*QueryProviderReputationDetailsResponse, error) { + out := new(QueryProviderReputationDetailsResponse) + err := c.cc.Invoke(ctx, "/lavanet.lava.pairing.Query/ProviderReputationDetails", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // Parameters queries the parameters of the module. @@ -1887,6 +2286,10 @@ type QueryServer interface { SdkPairing(context.Context, *QueryGetPairingRequest) (*QuerySdkPairingResponse, error) // Queries a for the aggregated CU of all ProviderEpochCu objects all the providers. ProvidersEpochCu(context.Context, *QueryProvidersEpochCuRequest) (*QueryProvidersEpochCuResponse, error) + // Queries a for a provider reputation. + ProviderReputation(context.Context, *QueryProviderReputationRequest) (*QueryProviderReputationResponse, error) + // Queries a for a provider reputation's details (mainly for developers). + ProviderReputationDetails(context.Context, *QueryProviderReputationDetailsRequest) (*QueryProviderReputationDetailsResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1932,6 +2335,12 @@ func (*UnimplementedQueryServer) SdkPairing(ctx context.Context, req *QueryGetPa func (*UnimplementedQueryServer) ProvidersEpochCu(ctx context.Context, req *QueryProvidersEpochCuRequest) (*QueryProvidersEpochCuResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ProvidersEpochCu not implemented") } +func (*UnimplementedQueryServer) ProviderReputation(ctx context.Context, req *QueryProviderReputationRequest) (*QueryProviderReputationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProviderReputation not implemented") +} +func (*UnimplementedQueryServer) ProviderReputationDetails(ctx context.Context, req *QueryProviderReputationDetailsRequest) (*QueryProviderReputationDetailsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProviderReputationDetails not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -2171,23 +2580,59 @@ func _Query_ProvidersEpochCu_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "lavanet.lava.pairing.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "Providers", - Handler: _Query_Providers_Handler, - }, - { - MethodName: "Provider", - Handler: _Query_Provider_Handler, - }, - { +func _Query_ProviderReputation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryProviderReputationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ProviderReputation(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lavanet.lava.pairing.Query/ProviderReputation", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ProviderReputation(ctx, req.(*QueryProviderReputationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ProviderReputationDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryProviderReputationDetailsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ProviderReputationDetails(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/lavanet.lava.pairing.Query/ProviderReputationDetails", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ProviderReputationDetails(ctx, req.(*QueryProviderReputationDetailsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "lavanet.lava.pairing.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "Providers", + Handler: _Query_Providers_Handler, + }, + { + MethodName: "Provider", + Handler: _Query_Provider_Handler, + }, + { MethodName: "GetPairing", Handler: _Query_GetPairing_Handler, }, @@ -2227,6 +2672,14 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "ProvidersEpochCu", Handler: _Query_ProvidersEpochCu_Handler, }, + { + MethodName: "ProviderReputation", + Handler: _Query_ProviderReputation_Handler, + }, + { + MethodName: "ProviderReputationDetails", + Handler: _Query_ProviderReputationDetails_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "lavanet/lava/pairing/query.proto", @@ -3369,123 +3822,396 @@ func (m *ProviderCuInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 +func (m *QueryProviderReputationRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - return n + return dAtA[:n], nil } -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n +func (m *QueryProviderReputationRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryProvidersRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *QueryProviderReputationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.ChainID) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.Cluster) > 0 { + i -= len(m.Cluster) + copy(dAtA[i:], m.Cluster) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Cluster))) + i-- + dAtA[i] = 0x1a } - if m.ShowFrozen { - n += 2 + if len(m.ChainID) > 0 { + i -= len(m.ChainID) + copy(dAtA[i:], m.ChainID) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainID))) + i-- + dAtA[i] = 0x12 } - return n + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *QueryProvidersResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.StakeEntry) > 0 { - for _, e := range m.StakeEntry { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } +func (m *ReputationData) 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 n + return dAtA[:n], nil } -func (m *QueryProviderRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *ReputationData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReputationData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.Cluster) > 0 { + i -= len(m.Cluster) + copy(dAtA[i:], m.Cluster) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Cluster))) + i-- + dAtA[i] = 0x2a } - l = len(m.ChainID) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.ChainID) > 0 { + i -= len(m.ChainID) + copy(dAtA[i:], m.ChainID) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainID))) + i-- + dAtA[i] = 0x22 } - return n + if len(m.OverallPerformance) > 0 { + i -= len(m.OverallPerformance) + copy(dAtA[i:], m.OverallPerformance) + i = encodeVarintQuery(dAtA, i, uint64(len(m.OverallPerformance))) + i-- + dAtA[i] = 0x1a + } + if m.Providers != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Providers)) + i-- + dAtA[i] = 0x10 + } + if m.Rank != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Rank)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } -func (m *QueryProviderResponse) Size() (n int) { - if m == nil { - return 0 +func (m *QueryProviderReputationResponse) 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 *QueryProviderReputationResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProviderReputationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.StakeEntries) > 0 { - for _, e := range m.StakeEntries { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) + if len(m.Data) > 0 { + for iNdEx := len(m.Data) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Data[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } } - return n + return len(dAtA) - i, nil } -func (m *QueryGetPairingRequest) Size() (n int) { - if m == nil { - return 0 +func (m *QueryProviderReputationDetailsRequest) 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 *QueryProviderReputationDetailsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProviderReputationDetailsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.ChainID) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.Cluster) > 0 { + i -= len(m.Cluster) + copy(dAtA[i:], m.Cluster) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Cluster))) + i-- + dAtA[i] = 0x1a } - l = len(m.Client) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) + if len(m.ChainID) > 0 { + i -= len(m.ChainID) + copy(dAtA[i:], m.ChainID) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainID))) + i-- + dAtA[i] = 0x12 } - return n + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *QueryGetPairingResponse) Size() (n int) { - if m == nil { - return 0 +func (m *ReputationDevData) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l + return dAtA[:n], nil +} + +func (m *ReputationDevData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReputationDevData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Cluster) > 0 { + i -= len(m.Cluster) + copy(dAtA[i:], m.Cluster) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Cluster))) + i-- + dAtA[i] = 0x2a + } + if len(m.ChainID) > 0 { + i -= len(m.ChainID) + copy(dAtA[i:], m.ChainID) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainID))) + i-- + dAtA[i] = 0x22 + } + { + size, err := m.ReputationPairingScore.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.Reputation.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 *QueryProviderReputationDetailsResponse) 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 *QueryProviderReputationDetailsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryProviderReputationDetailsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Data) > 0 { + for iNdEx := len(m.Data) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Data[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 + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryProvidersRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainID) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.ShowFrozen { + n += 2 + } + return n +} + +func (m *QueryProvidersResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.StakeEntry) > 0 { + for _, e := range m.StakeEntry { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryProviderRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ChainID) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryProviderResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.StakeEntries) > 0 { + for _, e := range m.StakeEntries { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryGetPairingRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainID) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Client) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetPairingResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l if len(m.Providers) > 0 { for _, e := range m.Providers { l = e.Size() @@ -3865,64 +4591,184 @@ func (m *ProviderCuInfo) 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 *QueryParamsRequest) 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: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: 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 - } +func (m *QueryProviderReputationRequest) Size() (n int) { + if m == nil { + return 0 } - - if iNdEx > l { - return io.ErrUnexpectedEOF + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - return nil -} -func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) + l = len(m.ChainID) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Cluster) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *ReputationData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Rank != 0 { + n += 1 + sovQuery(uint64(m.Rank)) + } + if m.Providers != 0 { + n += 1 + sovQuery(uint64(m.Providers)) + } + l = len(m.OverallPerformance) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ChainID) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Cluster) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryProviderReputationResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Data) > 0 { + for _, e := range m.Data { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryProviderReputationDetailsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ChainID) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Cluster) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *ReputationDevData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Reputation.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.ReputationPairingScore.Size() + n += 1 + l + sovQuery(uint64(l)) + l = len(m.ChainID) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Cluster) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryProviderReputationDetailsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Data) > 0 { + for _, e := range m.Data { + 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 *QueryParamsRequest) 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: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsRequest: 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 *QueryParamsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx @@ -6985,6 +7831,830 @@ func (m *ProviderCuInfo) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryProviderReputationRequest) 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: QueryProviderReputationRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryProviderReputationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", 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.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainID", 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.ChainID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", 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.Cluster = 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 *ReputationData) 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: ReputationData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReputationData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Rank", wireType) + } + m.Rank = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Rank |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Providers", wireType) + } + m.Providers = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Providers |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OverallPerformance", 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.OverallPerformance = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainID", 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.ChainID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", 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.Cluster = 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 *QueryProviderReputationResponse) 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: QueryProviderReputationResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryProviderReputationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", 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.Data = append(m.Data, ReputationData{}) + if err := m.Data[len(m.Data)-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 *QueryProviderReputationDetailsRequest) 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: QueryProviderReputationDetailsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryProviderReputationDetailsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", 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.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainID", 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.ChainID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", 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.Cluster = 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 *ReputationDevData) 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: ReputationDevData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReputationDevData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reputation", 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.Reputation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReputationPairingScore", 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.ReputationPairingScore.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainID", 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.ChainID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", 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.Cluster = 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 *QueryProviderReputationDetailsResponse) 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: QueryProviderReputationDetailsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryProviderReputationDetailsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", 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.Data = append(m.Data, ReputationDevData{}) + if err := m.Data[len(m.Data)-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/pairing/types/query.pb.gw.go b/x/pairing/types/query.pb.gw.go index 8eab096ed7..9f73baeea1 100644 --- a/x/pairing/types/query.pb.gw.go +++ b/x/pairing/types/query.pb.gw.go @@ -901,6 +901,202 @@ func local_request_Query_ProvidersEpochCu_0(ctx context.Context, marshaler runti } +func request_Query_ProviderReputation_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProviderReputationRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + val, ok = pathParams["chainID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chainID") + } + + protoReq.ChainID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chainID", err) + } + + val, ok = pathParams["cluster"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "cluster") + } + + protoReq.Cluster, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "cluster", err) + } + + msg, err := client.ProviderReputation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_ProviderReputation_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProviderReputationRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + val, ok = pathParams["chainID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chainID") + } + + protoReq.ChainID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chainID", err) + } + + val, ok = pathParams["cluster"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "cluster") + } + + protoReq.Cluster, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "cluster", err) + } + + msg, err := server.ProviderReputation(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Query_ProviderReputationDetails_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProviderReputationDetailsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + val, ok = pathParams["chainID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chainID") + } + + protoReq.ChainID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chainID", err) + } + + val, ok = pathParams["cluster"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "cluster") + } + + protoReq.Cluster, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "cluster", err) + } + + msg, err := client.ProviderReputationDetails(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_ProviderReputationDetails_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryProviderReputationDetailsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") + } + + protoReq.Address, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) + } + + val, ok = pathParams["chainID"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chainID") + } + + protoReq.ChainID, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chainID", err) + } + + val, ok = pathParams["cluster"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "cluster") + } + + protoReq.Cluster, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "cluster", err) + } + + msg, err := server.ProviderReputationDetails(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. @@ -1206,6 +1402,52 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_ProviderReputation_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_ProviderReputation_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_ProviderReputation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_ProviderReputationDetails_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_ProviderReputationDetails_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_ProviderReputationDetails_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1507,6 +1749,46 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_ProviderReputation_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_ProviderReputation_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_ProviderReputation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_ProviderReputationDetails_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_ProviderReputationDetails_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_ProviderReputationDetails_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1536,6 +1818,10 @@ var ( pattern_Query_SdkPairing_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"lavanet", "lava", "pairing", "sdk_pairing"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_ProvidersEpochCu_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"lavanet", "lava", "pairing", "providers_epoch_cu"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_ProviderReputation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"lavanet", "lava", "pairing", "provider_reputation", "address", "chainID", "cluster"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_ProviderReputationDetails_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"lavanet", "lava", "pairing", "provider_reputation_details", "address", "chainID", "cluster"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -1564,4 +1850,8 @@ var ( forward_Query_SdkPairing_0 = runtime.ForwardResponseMessage forward_Query_ProvidersEpochCu_0 = runtime.ForwardResponseMessage + + forward_Query_ProviderReputation_0 = runtime.ForwardResponseMessage + + forward_Query_ProviderReputationDetails_0 = runtime.ForwardResponseMessage )