From b1c4d4b4e28e2d0d5091c7e6634cf3360f62f9a6 Mon Sep 17 00:00:00 2001 From: BoThe1K Date: Mon, 16 Oct 2023 19:54:02 +0200 Subject: [PATCH 1/4] feat/QB-2231: Add metrics api for x/pot --- proto/stratos/pot/v1/pot.proto | 77 ++- proto/stratos/pot/v1/query.proto | 80 +++ x/pot/client/rest/query.go | 19 + x/pot/keeper/grpc_query.go | 25 + x/pot/keeper/keeper.go | 61 +- x/pot/keeper/params.go | 5 + x/pot/keeper/querier.go | 12 + x/pot/types/expected_keepers.go | 3 + x/pot/types/pot.pb.go | 848 ++++++++++++++++++++++--- x/pot/types/querier.go | 1 + x/pot/types/query.pb.go | 1006 +++++++++++++++++++++++++++--- 11 files changed, 1991 insertions(+), 146 deletions(-) diff --git a/proto/stratos/pot/v1/pot.proto b/proto/stratos/pot/v1/pot.proto index eebe96a4..05710669 100644 --- a/proto/stratos/pot/v1/pot.proto +++ b/proto/stratos/pot/v1/pot.proto @@ -142,4 +142,79 @@ message TotalReward { (gogoproto.moretags) = "yaml:\"traffic_reward\"", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; -} \ No newline at end of file +} + +message Metrics { + string total_supply = 1 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "total_supply", + (gogoproto.moretags) = "yaml:\"total_supply\"" + ]; + string total_mining_supply = 2 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "total_mining_supply", + (gogoproto.moretags) = "yaml:\"total_mining_supply\"" + ]; + string total_mined_tokens = 3 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "total_mined_tokens", + (gogoproto.moretags) = "yaml:\"total_mined_tokens\"" + ]; + string total_resource_nodes_deposit = 4 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "total_resource_nodes_deposit", + (gogoproto.moretags) = "yaml:\"total_resource_nodes_deposit\"" + ]; + string total_bonded_delegation = 5 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "total_bonded_delegation", + (gogoproto.moretags) = "yaml:\"total_bonded_delegation\"" + ]; + string total_unbonded_delegation = 6 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "total_unbonded_delegation", + (gogoproto.moretags) = "yaml:\"total_unbonded_delegation\"" + ]; + string total_unbonding_delegation = 7 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "total_unbonding_delegation", + (gogoproto.moretags) = "yaml:\"total_unbonding_delegation\"" + ]; + string circulation_supply = 8 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "circulation_supply", + (gogoproto.moretags) = "yaml:\"circulation_supply\"" + ]; + string total_mining_reward = 9 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "total_mining_reward", + (gogoproto.moretags) = "yaml:\"total_mining_reward\"" + ]; + string chain_mining_reward = 10 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "chain_mining_reward", + (gogoproto.moretags) = "yaml:\"chain_mining_reward\"" + ]; + string resource_mining_reward = 11 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "resource_mining_reward", + (gogoproto.moretags) = "yaml:\"resource_mining_reward\"" + ]; + string meta_mining_reward = 12 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "meta_mining_reward", + (gogoproto.moretags) = "yaml:\"meta_mining_reward\"" + ]; +} diff --git a/proto/stratos/pot/v1/query.proto b/proto/stratos/pot/v1/query.proto index 525a55ab..d392a104 100644 --- a/proto/stratos/pot/v1/query.proto +++ b/proto/stratos/pot/v1/query.proto @@ -47,6 +47,10 @@ service Query { rpc TotalRewardByEpoch(QueryTotalRewardByEpochRequest) returns (QueryTotalRewardByEpochResponse) { option (google.api.http).get = "/stratos/pot/v1/total-reward/{epoch}"; } + + rpc Metrics(QueryMetricsRequest) returns (QueryMetricsResponse) { + option (google.api.http).get = "/stratos/pot/v1/metrics"; + } } // QueryVolumeReportRequest is request type for the Query/VolumeReport RPC method @@ -158,3 +162,79 @@ message QueryTotalRewardByEpochResponse { ]; } +message QueryMetricsRequest {} + +message QueryMetricsResponse { + string total_supply = 1 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "total_supply", + (gogoproto.moretags) = "yaml:\"total_supply\"" + ]; + string total_mining_supply = 2 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "total_mining_supply", + (gogoproto.moretags) = "yaml:\"total_mining_supply\"" + ]; + string total_mined_tokens = 3 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "total_mined_tokens", + (gogoproto.moretags) = "yaml:\"total_mined_tokens\"" + ]; + string total_resource_nodes_deposit = 4 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "total_resource_nodes_deposit", + (gogoproto.moretags) = "yaml:\"total_resource_nodes_deposit\"" + ]; + string total_bonded_delegation = 5 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "total_bonded_delegation", + (gogoproto.moretags) = "yaml:\"total_bonded_delegation\"" + ]; + string total_unbonded_delegation = 6 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "total_unbonded_delegation", + (gogoproto.moretags) = "yaml:\"total_unbonded_delegation\"" + ]; + string total_unbonding_delegation = 7 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "total_unbonding_delegation", + (gogoproto.moretags) = "yaml:\"total_unbonding_delegation\"" + ]; + string circulation_supply = 8 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "circulation_supply", + (gogoproto.moretags) = "yaml:\"circulation_supply\"" + ]; + string total_mining_reward = 9 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "total_mining_reward", + (gogoproto.moretags) = "yaml:\"total_mining_reward\"" + ]; + string chain_mining_reward = 10 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "chain_mining_reward", + (gogoproto.moretags) = "yaml:\"chain_mining_reward\"" + ]; + string resource_mining_reward = 11 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "resource_mining_reward", + (gogoproto.moretags) = "yaml:\"resource_mining_reward\"" + ]; + string meta_mining_reward = 12 [ + (gogoproto.nullable) = false, + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.jsontag) = "meta_mining_reward", + (gogoproto.moretags) = "yaml:\"meta_mining_reward\"" + ]; +} diff --git a/x/pot/client/rest/query.go b/x/pot/client/rest/query.go index f0cac0f8..2b98fa39 100644 --- a/x/pot/client/rest/query.go +++ b/x/pot/client/rest/query.go @@ -23,6 +23,7 @@ func registerQueryRoutes(clientCtx client.Context, r *mux.Router) { r.HandleFunc("/pot/total-mined-token", getTotalMinedTokenHandlerFn(clientCtx, types.QueryTotalMinedToken)).Methods("GET") r.HandleFunc("/pot/circulation-supply", getCirculationSupplyHandlerFn(clientCtx, types.QueryCirculationSupply)).Methods("GET") r.HandleFunc("/pot/total-reward/{epoch}", getTotalRewardByEpochHandlerFn(clientCtx, types.QueryTotalRewardByEpoch)).Methods("GET") + r.HandleFunc("/pot/metrics", getMetricsHandlerFn(clientCtx, types.QueryMetrics)).Methods("GET") } // GET request handler to query params of POT module @@ -259,3 +260,21 @@ func getTotalRewardByEpochHandlerFn(clientCtx client.Context, queryPath string) rest.PostProcessResponse(w, cliCtx, res) } } + +func getMetricsHandlerFn(clientCtx client.Context, queryPath string) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + cliCtx, ok := rest.ParseQueryHeightOrReturnBadRequest(w, clientCtx, r) + if !ok { + return + } + + route := fmt.Sprintf("custom/%s/%s", types.QuerierRoute, queryPath) + res, height, err := cliCtx.Query(route) + if err != nil { + rest.WriteErrorResponse(w, http.StatusInternalServerError, err.Error()) + return + } + cliCtx = cliCtx.WithHeight(height) + rest.PostProcessResponse(w, cliCtx, res) + } +} diff --git a/x/pot/keeper/grpc_query.go b/x/pot/keeper/grpc_query.go index e1d33cd2..77695cd3 100644 --- a/x/pot/keeper/grpc_query.go +++ b/x/pot/keeper/grpc_query.go @@ -398,3 +398,28 @@ func (q Querier) TotalRewardByEpoch(c context.Context, req *types.QueryTotalRewa totalReward := q.GetTotalReward(ctx, epoch) return &types.QueryTotalRewardByEpochResponse{TotalReward: totalReward}, nil } + +func (q Querier) Metrics(c context.Context, req *types.QueryMetricsRequest) ( + *types.QueryMetricsResponse, error) { + if req == nil { + return &types.QueryMetricsResponse{}, status.Error(codes.InvalidArgument, "empty request") + } + + ctx := sdk.UnwrapSDKContext(c) + + metrics := q.GetMetrics(ctx) + return &types.QueryMetricsResponse{ + TotalSupply: metrics.TotalSupply, + TotalMiningSupply: metrics.TotalMiningSupply, + TotalMinedTokens: metrics.TotalMinedTokens, + TotalResourceNodesDeposit: metrics.TotalResourceNodesDeposit, + TotalBondedDelegation: metrics.TotalBondedDelegation, + TotalUnbondedDelegation: metrics.TotalUnbondedDelegation, + TotalUnbondingDelegation: metrics.TotalUnbondingDelegation, + CirculationSupply: metrics.CirculationSupply, + TotalMiningReward: metrics.TotalMiningReward, + ChainMiningReward: metrics.ChainMiningReward, + ResourceMiningReward: metrics.ResourceMiningReward, + MetaMiningReward: metrics.MetaMiningReward, + }, nil +} diff --git a/x/pot/keeper/keeper.go b/x/pot/keeper/keeper.go index ad8ddd57..3d262e6d 100644 --- a/x/pot/keeper/keeper.go +++ b/x/pot/keeper/keeper.go @@ -168,8 +168,8 @@ func (k Keeper) GetCirculationSupply(ctx sdk.Context) (circulationSupply sdk.Coi metaNodeBondedPoolAcc := k.accountKeeper.GetModuleAddress(registertypes.MetaNodeNotBondedPool) metaNodeDeposit := k.bankKeeper.GetBalance(ctx, metaNodeBondedPoolAcc, k.BondDenom(ctx)) - miningPoolAcc := k.accountKeeper.GetModuleAddress(types.FoundationAccount) - miningPool := k.bankKeeper.GetBalance(ctx, miningPoolAcc, k.BondDenom(ctx)) + totalMining := k.GetTotalMining(ctx) + totalMinedTokens := k.GetTotalMinedTokens(ctx) unissuedPrepayAcc := k.accountKeeper.GetModuleAddress(registertypes.TotalUnissuedPrepay) unissuedPrepay := k.bankKeeper.GetBalance(ctx, unissuedPrepayAcc, k.BondDenom(ctx)) @@ -178,7 +178,7 @@ func (k Keeper) GetCirculationSupply(ctx sdk.Context) (circulationSupply sdk.Coi Sub(validatorStaking). Sub(resourceNodeDeposit). Sub(metaNodeDeposit). - Sub(miningPool). + Sub(totalMining.Sub(totalMinedTokens)). Sub(unissuedPrepay) circulationSupply = sdk.NewCoins(circulationSupplyStos) @@ -243,3 +243,58 @@ func (k Keeper) GetTotalReward(ctx sdk.Context, epoch sdk.Int) (totalReward type } return } + +func (k Keeper) GetMetrics(ctx sdk.Context) *types.Metrics { + totalSupply := k.bankKeeper.GetSupply(ctx, k.BondDenom(ctx)) + totalMining := k.GetTotalMining(ctx) + totalMinedTokens := k.GetTotalMinedTokens(ctx) + + totalBondedDepositOfResourceNodes := k.registerKeeper.GetResourceNodeBondedToken(ctx).Amount + totalUnbondedDepositOfResourceNodes := k.registerKeeper.GetResourceNodeNotBondedToken(ctx).Amount + totalResourceNodesDeposit := totalBondedDepositOfResourceNodes.Add(totalUnbondedDepositOfResourceNodes) + + denom := k.BondDenom(ctx) + + validatorBondedPoolAcc := k.accountKeeper.GetModuleAddress(stakingtypes.BondedPoolName) + boundedDelegation := k.bankKeeper.GetBalance(ctx, validatorBondedPoolAcc, denom) + + validatorUnbondedPoolAcc := k.accountKeeper.GetModuleAddress(stakingtypes.NotBondedPoolName) + unbondedDelegation := k.bankKeeper.GetBalance(ctx, validatorUnbondedPoolAcc, denom) + + unbondingDelegation := sdk.NewCoin(denom, sdk.NewInt(0)) + // NOTE: Uncomment to get all unboundings, not tested on performance + // k.stakingKeeper.IterateUnbondingDelegations(ctx, func(_ int64, ubd stakingtypes.UnbondingDelegation) (stop bool) { + // for _, entry := range ubd.Entries { + // unbondingDelegation = unbondingDelegation.Add(entry.Balance) + // } + // return false + // }) + + circulationSupply := k.GetCirculationSupply(ctx) + + totalMiningReward := sdk.NewInt(0) + chainMiningReward := sdk.NewInt(0) + resourceMiningReward := sdk.NewInt(0) + metaMiningReward := sdk.NewInt(0) + if miningParam, err := k.GetMiningRewardParamByMinedToken(ctx, totalMinedTokens); err == nil { + totalMiningReward = miningParam.MiningReward.Amount + chainMiningReward = totalMiningReward.Mul(miningParam.BlockChainPercentageInBp).Quo(sdk.NewInt(10000)) + resourceMiningReward = totalMiningReward.Mul(miningParam.ResourceNodePercentageInBp).Quo(sdk.NewInt(10000)) + metaMiningReward = totalMiningReward.Mul(miningParam.MetaNodePercentageInBp).Quo(sdk.NewInt(10000)) + } + + return &types.Metrics{ + TotalSupply: totalSupply.Amount, + TotalMiningSupply: totalMining.Amount, + TotalMinedTokens: totalMinedTokens.Amount, + TotalResourceNodesDeposit: totalResourceNodesDeposit, + TotalBondedDelegation: boundedDelegation.Amount, + TotalUnbondedDelegation: unbondedDelegation.Amount, + TotalUnbondingDelegation: unbondingDelegation.Amount, + CirculationSupply: circulationSupply.AmountOf(denom), + TotalMiningReward: totalMiningReward, + ChainMiningReward: chainMiningReward, + ResourceMiningReward: resourceMiningReward, + MetaMiningReward: metaMiningReward, + } +} diff --git a/x/pot/keeper/params.go b/x/pot/keeper/params.go index c4bfbea7..020367ac 100644 --- a/x/pot/keeper/params.go +++ b/x/pot/keeper/params.go @@ -48,6 +48,11 @@ func (k Keeper) GetMiningRewardParamByMinedToken(ctx sdk.Context, minedToken sdk return miningRewardParams[len(miningRewardParams)-1], types.ErrOutOfIssuance } +func (k Keeper) GetTotalMining(ctx sdk.Context) sdk.Coin { + miningRewardParams := k.MiningRewardParams(ctx) + return miningRewardParams[len(miningRewardParams)-1].TotalMinedValveEnd +} + func (k Keeper) GetCommunityTax(ctx sdk.Context) (res sdk.Dec) { k.paramSpace.Get(ctx, types.KeyCommunityTax, &res) return diff --git a/x/pot/keeper/querier.go b/x/pot/keeper/querier.go index 585407e8..c990f306 100644 --- a/x/pot/keeper/querier.go +++ b/x/pot/keeper/querier.go @@ -34,6 +34,8 @@ func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier { return getCirculationSupply(ctx, req, k, legacyQuerierCdc) case types.QueryTotalRewardByEpoch: return getTotalRewardByEpoch(ctx, req, k, legacyQuerierCdc) + case types.QueryMetrics: + return getMetrics(ctx, req, k, legacyQuerierCdc) default: return nil, sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, "unknown pot query endpoint") } @@ -194,3 +196,13 @@ func getTotalRewardByEpoch(ctx sdk.Context, req abci.RequestQuery, k Keeper, leg } return bz, nil } + +func getMetrics(ctx sdk.Context, req abci.RequestQuery, k Keeper, legacyQuerierCdc *codec.LegacyAmino) ([]byte, error) { + metrics := k.GetMetrics(ctx) + + bz, err := codec.MarshalJSONIndent(legacyQuerierCdc, metrics) + if err != nil { + return []byte{}, sdkerrors.Wrap(sdkerrors.ErrJSONMarshal, err.Error()) + } + return bz, nil +} diff --git a/x/pot/types/expected_keepers.go b/x/pot/types/expected_keepers.go index 5bc1f37b..0812bb6e 100644 --- a/x/pot/types/expected_keepers.go +++ b/x/pot/types/expected_keepers.go @@ -4,6 +4,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" + stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" stratos "github.com/stratosnet/stratos-chain/types" "github.com/stratosnet/stratos-chain/x/register/types" @@ -41,6 +42,7 @@ type RegisterKeeper interface { GetDepositNozRate(ctx sdk.Context) (depositNozRate sdk.Dec) GetResourceNodeBondedToken(ctx sdk.Context) (token sdk.Coin) + GetResourceNodeNotBondedToken(ctx sdk.Context) (token sdk.Coin) GetMetaNodeBondedToken(ctx sdk.Context) (token sdk.Coin) GetEffectiveTotalDeposit(ctx sdk.Context) (deposit sdk.Int) @@ -58,6 +60,7 @@ type RegisterKeeper interface { type StakingKeeper interface { TotalBondedTokens(ctx sdk.Context) sdk.Int + IterateUnbondingDelegations(ctx sdk.Context, fn func(index int64, ubd stakingtypes.UnbondingDelegation) (stop bool)) } type DistrKeeper interface { diff --git a/x/pot/types/pot.pb.go b/x/pot/types/pot.pb.go index 3b4ddd4e..b3c55ce4 100644 --- a/x/pot/types/pot.pb.go +++ b/x/pot/types/pot.pb.go @@ -427,6 +427,54 @@ func (m *TotalReward) GetTrafficReward() github_com_cosmos_cosmos_sdk_types.Coin return nil } +type Metrics struct { + TotalSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=total_supply,json=totalSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_supply" yaml:"total_supply"` + TotalMiningSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=total_mining_supply,json=totalMiningSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_mining_supply" yaml:"total_mining_supply"` + TotalMinedTokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=total_mined_tokens,json=totalMinedTokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_mined_tokens" yaml:"total_mined_tokens"` + TotalResourceNodesDeposit github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=total_resource_nodes_deposit,json=totalResourceNodesDeposit,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_resource_nodes_deposit" yaml:"total_resource_nodes_deposit"` + TotalBondedDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=total_bonded_delegation,json=totalBondedDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_bonded_delegation" yaml:"total_bonded_delegation"` + TotalUnbondedDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=total_unbonded_delegation,json=totalUnbondedDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_unbonded_delegation" yaml:"total_unbonded_delegation"` + TotalUnbondingDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=total_unbonding_delegation,json=totalUnbondingDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_unbonding_delegation" yaml:"total_unbonding_delegation"` + CirculationSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,8,opt,name=circulation_supply,json=circulationSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"circulation_supply" yaml:"circulation_supply"` + TotalMiningReward github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=total_mining_reward,json=totalMiningReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_mining_reward" yaml:"total_mining_reward"` + ChainMiningReward github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,10,opt,name=chain_mining_reward,json=chainMiningReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"chain_mining_reward" yaml:"chain_mining_reward"` + ResourceMiningReward github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,11,opt,name=resource_mining_reward,json=resourceMiningReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"resource_mining_reward" yaml:"resource_mining_reward"` + MetaMiningReward github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,12,opt,name=meta_mining_reward,json=metaMiningReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"meta_mining_reward" yaml:"meta_mining_reward"` +} + +func (m *Metrics) Reset() { *m = Metrics{} } +func (m *Metrics) String() string { return proto.CompactTextString(m) } +func (*Metrics) ProtoMessage() {} +func (*Metrics) Descriptor() ([]byte, []int) { + return fileDescriptor_a05930b44d981057, []int{7} +} +func (m *Metrics) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Metrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Metrics.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 *Metrics) XXX_Merge(src proto.Message) { + xxx_messageInfo_Metrics.Merge(m, src) +} +func (m *Metrics) XXX_Size() int { + return m.Size() +} +func (m *Metrics) XXX_DiscardUnknown() { + xxx_messageInfo_Metrics.DiscardUnknown(m) +} + +var xxx_messageInfo_Metrics proto.InternalMessageInfo + func init() { proto.RegisterType((*Params)(nil), "stratos.pot.v1.Params") proto.RegisterType((*MiningRewardParam)(nil), "stratos.pot.v1.MiningRewardParam") @@ -435,82 +483,106 @@ func init() { proto.RegisterType((*WalletVolumes)(nil), "stratos.pot.v1.WalletVolumes") proto.RegisterType((*VolumeReportRecord)(nil), "stratos.pot.v1.VolumeReportRecord") proto.RegisterType((*TotalReward)(nil), "stratos.pot.v1.TotalReward") + proto.RegisterType((*Metrics)(nil), "stratos.pot.v1.Metrics") } func init() { proto.RegisterFile("stratos/pot/v1/pot.proto", fileDescriptor_a05930b44d981057) } var fileDescriptor_a05930b44d981057 = []byte{ - // 1112 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4f, 0x6f, 0x1c, 0xb5, - 0x1b, 0xce, 0x24, 0xed, 0xe6, 0x17, 0x27, 0x9b, 0xfe, 0x6a, 0x36, 0x64, 0x09, 0x65, 0x9d, 0xb8, - 0x02, 0x22, 0xa1, 0xec, 0x28, 0x45, 0xe2, 0x40, 0xc5, 0xa1, 0xdb, 0x16, 0x11, 0xa4, 0xa2, 0xc8, - 0x89, 0x5a, 0x51, 0x0e, 0x23, 0xef, 0x8c, 0xb3, 0x19, 0x75, 0x66, 0x3c, 0xcc, 0x78, 0xb7, 0x89, - 0xc4, 0x81, 0x23, 0x12, 0x97, 0x4a, 0x9c, 0x38, 0xf0, 0x05, 0x90, 0x38, 0x72, 0x44, 0x1c, 0xb8, - 0x14, 0x21, 0xa1, 0x1e, 0x11, 0x07, 0x83, 0x12, 0xb8, 0xec, 0x71, 0x3e, 0x01, 0x1a, 0xdb, 0x9b, - 0x9d, 0xfd, 0x1b, 0xf6, 0xc0, 0x69, 0xc7, 0xcf, 0xf3, 0xbe, 0x8f, 0x9f, 0xd7, 0x7e, 0xc7, 0x9e, - 0x05, 0xd5, 0x54, 0x24, 0x54, 0xf0, 0xd4, 0x8e, 0xb9, 0xb0, 0x3b, 0xbb, 0xf9, 0x4f, 0x3d, 0x4e, - 0xb8,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x62, 0xbf, 0xb9, 0x07, - 0xf1, 0xd9, 0xec, 0x95, 0x4d, 0xb2, 0xf6, 0xd7, 0xd8, 0x7b, 0x7e, 0x56, 0xb3, 0x5e, 0x9c, 0xd5, - 0xac, 0x3f, 0xcf, 0x6a, 0xd6, 0xb3, 0xf3, 0xda, 0xdc, 0x8b, 0xf3, 0xda, 0xdc, 0x6f, 0xe7, 0xb5, - 0xb9, 0xc7, 0x76, 0x41, 0xd2, 0xf4, 0x69, 0xc4, 0x44, 0xef, 0x71, 0x47, 0xdd, 0x9a, 0xf6, 0x89, - 0xfa, 0x1b, 0xa1, 0xf4, 0x9b, 0x25, 0xf5, 0x07, 0xe0, 0xed, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, - 0x33, 0xe5, 0x4c, 0x15, 0x62, 0x0c, 0x00, 0x00, + // 1480 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcf, 0x6f, 0xdc, 0xc4, + 0x17, 0x8f, 0x9b, 0x36, 0x69, 0x26, 0x3f, 0xda, 0x4c, 0xd3, 0x76, 0x9b, 0x6f, 0xbb, 0x93, 0x4e, + 0xf5, 0x85, 0x48, 0xa8, 0xbb, 0x4a, 0x91, 0x38, 0x50, 0x71, 0xe8, 0x36, 0x45, 0x04, 0xa9, 0xa8, + 0x9a, 0xa6, 0xad, 0x28, 0x07, 0xcb, 0xf1, 0x4e, 0x36, 0x56, 0xd6, 0x9e, 0xc5, 0x9e, 0x4d, 0x13, + 0x89, 0x03, 0x47, 0x24, 0x0e, 0x54, 0xe2, 0xc4, 0x01, 0x71, 0xe0, 0x06, 0x42, 0x9c, 0xe0, 0x86, + 0x38, 0x70, 0x29, 0x42, 0x42, 0x3d, 0x22, 0x24, 0x06, 0xd4, 0xc2, 0x65, 0x8f, 0xfe, 0x0b, 0xd0, + 0xfc, 0xf0, 0xda, 0xde, 0x5d, 0x6f, 0x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0x2b, 0x2d, + 0xac, 0x80, 0x2f, 0x16, 0xe8, 0xd2, 0xc0, 0x67, 0xce, 0x80, 0xbc, 0xa5, 0x04, 0xc8, 0x29, 0x94, + 0x15, 0x5b, 0x7d, 0x60, 0xe4, 0xd5, 0xcd, 0x1d, 0x35, 0xc1, 0x86, 0xb9, 0xd2, 0x04, 0x1b, 0xc6, + 0x30, 0x39, 0x2d, 0x8d, 0x59, 0x45, 0x8d, 0x8d, 0x27, 0xcf, 0xaa, 0xd6, 0xd3, 0x67, 0x55, 0xeb, + 0x8f, 0x67, 0x55, 0xeb, 0xf1, 0xf3, 0xea, 0xc4, 0xd3, 0xe7, 0xd5, 0x89, 0x5f, 0x9e, 0x57, 0x27, + 0x1e, 0xd6, 0x33, 0x32, 0x4c, 0x1f, 0x18, 0x50, 0x9e, 0x3c, 0x5e, 0x55, 0xdb, 0x5f, 0xdf, 0x57, + 0x7f, 0xd3, 0x29, 0x4d, 0x5b, 0x53, 0xea, 0x0f, 0xb6, 0x97, 0xff, 0x0e, 0x00, 0x00, 0xff, 0xff, + 0xba, 0x93, 0x62, 0x1b, 0xc2, 0x13, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -902,6 +974,149 @@ func (m *TotalReward) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *Metrics) 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 *Metrics) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Metrics) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.MetaMiningReward.Size() + i -= size + if _, err := m.MetaMiningReward.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPot(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + { + size := m.ResourceMiningReward.Size() + i -= size + if _, err := m.ResourceMiningReward.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPot(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + { + size := m.ChainMiningReward.Size() + i -= size + if _, err := m.ChainMiningReward.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPot(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + { + size := m.TotalMiningReward.Size() + i -= size + if _, err := m.TotalMiningReward.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPot(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + { + size := m.CirculationSupply.Size() + i -= size + if _, err := m.CirculationSupply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPot(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + { + size := m.TotalUnbondingDelegation.Size() + i -= size + if _, err := m.TotalUnbondingDelegation.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPot(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + { + size := m.TotalUnbondedDelegation.Size() + i -= size + if _, err := m.TotalUnbondedDelegation.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPot(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + { + size := m.TotalBondedDelegation.Size() + i -= size + if _, err := m.TotalBondedDelegation.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPot(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size := m.TotalResourceNodesDeposit.Size() + i -= size + if _, err := m.TotalResourceNodesDeposit.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPot(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.TotalMinedTokens.Size() + i -= size + if _, err := m.TotalMinedTokens.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPot(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.TotalMiningSupply.Size() + i -= size + if _, err := m.TotalMiningSupply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPot(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.TotalSupply.Size() + i -= size + if _, err := m.TotalSupply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPot(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + func encodeVarintPot(dAtA []byte, offset int, v uint64) int { offset -= sovPot(v) base := offset @@ -1061,6 +1276,39 @@ func (m *TotalReward) Size() (n int) { return n } +func (m *Metrics) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TotalSupply.Size() + n += 1 + l + sovPot(uint64(l)) + l = m.TotalMiningSupply.Size() + n += 1 + l + sovPot(uint64(l)) + l = m.TotalMinedTokens.Size() + n += 1 + l + sovPot(uint64(l)) + l = m.TotalResourceNodesDeposit.Size() + n += 1 + l + sovPot(uint64(l)) + l = m.TotalBondedDelegation.Size() + n += 1 + l + sovPot(uint64(l)) + l = m.TotalUnbondedDelegation.Size() + n += 1 + l + sovPot(uint64(l)) + l = m.TotalUnbondingDelegation.Size() + n += 1 + l + sovPot(uint64(l)) + l = m.CirculationSupply.Size() + n += 1 + l + sovPot(uint64(l)) + l = m.TotalMiningReward.Size() + n += 1 + l + sovPot(uint64(l)) + l = m.ChainMiningReward.Size() + n += 1 + l + sovPot(uint64(l)) + l = m.ResourceMiningReward.Size() + n += 1 + l + sovPot(uint64(l)) + l = m.MetaMiningReward.Size() + n += 1 + l + sovPot(uint64(l)) + return n +} + func sovPot(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -2166,6 +2414,464 @@ func (m *TotalReward) Unmarshal(dAtA []byte) error { } return nil } +func (m *Metrics) 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 ErrIntOverflowPot + } + 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: Metrics: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Metrics: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalSupply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPot + } + 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 ErrInvalidLengthPot + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPot + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalMiningSupply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPot + } + 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 ErrInvalidLengthPot + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPot + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalMiningSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalMinedTokens", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPot + } + 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 ErrInvalidLengthPot + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPot + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalMinedTokens.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalResourceNodesDeposit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPot + } + 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 ErrInvalidLengthPot + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPot + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalResourceNodesDeposit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalBondedDelegation", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPot + } + 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 ErrInvalidLengthPot + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPot + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalBondedDelegation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalUnbondedDelegation", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPot + } + 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 ErrInvalidLengthPot + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPot + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalUnbondedDelegation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalUnbondingDelegation", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPot + } + 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 ErrInvalidLengthPot + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPot + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalUnbondingDelegation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CirculationSupply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPot + } + 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 ErrInvalidLengthPot + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPot + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CirculationSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalMiningReward", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPot + } + 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 ErrInvalidLengthPot + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPot + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalMiningReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainMiningReward", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPot + } + 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 ErrInvalidLengthPot + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPot + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ChainMiningReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceMiningReward", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPot + } + 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 ErrInvalidLengthPot + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPot + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ResourceMiningReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetaMiningReward", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPot + } + 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 ErrInvalidLengthPot + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPot + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MetaMiningReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPot(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPot + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipPot(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/pot/types/querier.go b/x/pot/types/querier.go index aac3da35..1c14b680 100644 --- a/x/pot/types/querier.go +++ b/x/pot/types/querier.go @@ -13,6 +13,7 @@ const ( QueryTotalMinedToken = "query_total_mined_token" QueryCirculationSupply = "query_circulation_supply" QueryTotalRewardByEpoch = "total-reward" + QueryMetrics = "metrics" QueryDefaultLimit = 100 ) diff --git a/x/pot/types/query.pb.go b/x/pot/types/query.pb.go index 30dc2f58..8f1fbed3 100644 --- a/x/pot/types/query.pb.go +++ b/x/pot/types/query.pb.go @@ -909,6 +909,90 @@ func (m *QueryTotalRewardByEpochResponse) GetTotalReward() TotalReward { return TotalReward{} } +type QueryMetricsRequest struct { +} + +func (m *QueryMetricsRequest) Reset() { *m = QueryMetricsRequest{} } +func (m *QueryMetricsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryMetricsRequest) ProtoMessage() {} +func (*QueryMetricsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c09bd09df76a68e0, []int{18} +} +func (m *QueryMetricsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryMetricsRequest.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 *QueryMetricsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryMetricsRequest.Merge(m, src) +} +func (m *QueryMetricsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryMetricsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryMetricsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryMetricsRequest proto.InternalMessageInfo + +type QueryMetricsResponse struct { + TotalSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=total_supply,json=totalSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_supply" yaml:"total_supply"` + TotalMiningSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=total_mining_supply,json=totalMiningSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_mining_supply" yaml:"total_mining_supply"` + TotalMinedTokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=total_mined_tokens,json=totalMinedTokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_mined_tokens" yaml:"total_mined_tokens"` + TotalResourceNodesDeposit github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=total_resource_nodes_deposit,json=totalResourceNodesDeposit,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_resource_nodes_deposit" yaml:"total_resource_nodes_deposit"` + TotalBondedDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=total_bonded_delegation,json=totalBondedDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_bonded_delegation" yaml:"total_bonded_delegation"` + TotalUnbondedDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=total_unbonded_delegation,json=totalUnbondedDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_unbonded_delegation" yaml:"total_unbonded_delegation"` + TotalUnbondingDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=total_unbonding_delegation,json=totalUnbondingDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_unbonding_delegation" yaml:"total_unbonding_delegation"` + CirculationSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,8,opt,name=circulation_supply,json=circulationSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"circulation_supply" yaml:"circulation_supply"` + TotalMiningReward github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=total_mining_reward,json=totalMiningReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_mining_reward" yaml:"total_mining_reward"` + ChainMiningReward github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,10,opt,name=chain_mining_reward,json=chainMiningReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"chain_mining_reward" yaml:"chain_mining_reward"` + ResourceMiningReward github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,11,opt,name=resource_mining_reward,json=resourceMiningReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"resource_mining_reward" yaml:"resource_mining_reward"` + MetaMiningReward github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,12,opt,name=meta_mining_reward,json=metaMiningReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"meta_mining_reward" yaml:"meta_mining_reward"` +} + +func (m *QueryMetricsResponse) Reset() { *m = QueryMetricsResponse{} } +func (m *QueryMetricsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryMetricsResponse) ProtoMessage() {} +func (*QueryMetricsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c09bd09df76a68e0, []int{19} +} +func (m *QueryMetricsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryMetricsResponse.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 *QueryMetricsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryMetricsResponse.Merge(m, src) +} +func (m *QueryMetricsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryMetricsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryMetricsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryMetricsResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*QueryVolumeReportRequest)(nil), "stratos.pot.v1.QueryVolumeReportRequest") proto.RegisterType((*QueryVolumeReportResponse)(nil), "stratos.pot.v1.QueryVolumeReportResponse") @@ -928,82 +1012,110 @@ func init() { proto.RegisterType((*QueryCirculationSupplyResponse)(nil), "stratos.pot.v1.QueryCirculationSupplyResponse") proto.RegisterType((*QueryTotalRewardByEpochRequest)(nil), "stratos.pot.v1.QueryTotalRewardByEpochRequest") proto.RegisterType((*QueryTotalRewardByEpochResponse)(nil), "stratos.pot.v1.QueryTotalRewardByEpochResponse") + proto.RegisterType((*QueryMetricsRequest)(nil), "stratos.pot.v1.QueryMetricsRequest") + proto.RegisterType((*QueryMetricsResponse)(nil), "stratos.pot.v1.QueryMetricsResponse") } func init() { proto.RegisterFile("stratos/pot/v1/query.proto", fileDescriptor_c09bd09df76a68e0) } var fileDescriptor_c09bd09df76a68e0 = []byte{ - // 1109 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x97, 0x4f, 0x6f, 0x1b, 0xc5, - 0x1b, 0xc7, 0xb3, 0xc9, 0xaf, 0x69, 0xf3, 0xa4, 0x4d, 0x94, 0x49, 0x7e, 0x61, 0xbb, 0x4d, 0xec, - 0x32, 0xfd, 0x97, 0x3f, 0xf5, 0x6e, 0x1c, 0x04, 0x95, 0xe0, 0x44, 0x42, 0x81, 0x1e, 0x10, 0x65, - 0x5b, 0x71, 0xe0, 0x62, 0x4d, 0xec, 0x89, 0xbd, 0x8a, 0xbd, 0xb3, 0xd9, 0x19, 0x27, 0x31, 0xa1, - 0x42, 0xe2, 0x05, 0x20, 0x04, 0x07, 0x38, 0x20, 0x10, 0x70, 0xe3, 0xc4, 0x81, 0x17, 0xd1, 0x63, - 0x05, 0x17, 0x4e, 0x01, 0x25, 0x9c, 0x38, 0xf6, 0x15, 0xa0, 0x9d, 0x19, 0xdb, 0xbb, 0xeb, 0xdd, - 0xd8, 0x42, 0x70, 0x8a, 0x77, 0x9e, 0xe7, 0x99, 0xe7, 0xf3, 0x3c, 0xf3, 0xec, 0x77, 0x36, 0x60, - 0x71, 0x11, 0x12, 0xc1, 0xb8, 0x13, 0x30, 0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 0xef, 0x4a, 0xc6, 0xdb, 0xe8, 0x66, 0x76, 0x0f, 0xd5, 0x6b, 0xd0, - 0x7d, 0x35, 0xb7, 0x1e, 0x3c, 0x3d, 0x2d, 0x18, 0xcf, 0x4e, 0x0b, 0xc6, 0x1f, 0xa7, 0x05, 0xe3, - 0xb3, 0xb3, 0xc2, 0xd8, 0xb3, 0xb3, 0xc2, 0xd8, 0x6f, 0x67, 0x85, 0xb1, 0x0f, 0x9c, 0x98, 0xe8, - 0xeb, 0x9d, 0x7c, 0x2a, 0xba, 0x3f, 0x4b, 0xd5, 0x06, 0xf1, 0x7c, 0xe7, 0x48, 0x6e, 0x2e, 0x6f, - 0x80, 0x9d, 0x49, 0xf9, 0x2f, 0xcc, 0x4b, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x55, 0xf4, 0xcd, - 0xa0, 0x8a, 0x0d, 0x00, 0x00, + // 1533 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x98, 0xcf, 0x73, 0x14, 0xc5, + 0x17, 0xc0, 0x33, 0xc9, 0x97, 0x04, 0x3a, 0x10, 0x48, 0x27, 0x84, 0xcd, 0x90, 0xec, 0x40, 0xf3, + 0xfb, 0xc7, 0xce, 0x10, 0xbe, 0xa5, 0x54, 0xe9, 0xc9, 0x05, 0x54, 0x0e, 0x28, 0x0e, 0xe0, 0xc1, + 0xcb, 0xd6, 0x64, 0xb7, 0x99, 0x9d, 0xca, 0xee, 0xf4, 0x64, 0xba, 0x37, 0x24, 0x22, 0x65, 0x95, + 0x7f, 0x80, 0x52, 0x72, 0xd0, 0x83, 0xa5, 0xa5, 0xde, 0xf4, 0xa0, 0x07, 0xcb, 0xbf, 0x01, 0x6f, + 0x54, 0x79, 0xb1, 0x3c, 0xac, 0x16, 0x78, 0xe2, 0xb8, 0x7f, 0x81, 0x35, 0xdd, 0x3d, 0xbb, 0xf3, + 0xa3, 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0xfe, 0xa6, + 0xaa, 0xf0, 0x37, 0x15, 0xfc, 0x5a, 0x03, 0xb3, 0xb9, 0xa6, 0x03, 0x56, 0x94, 0xcb, 0x15, 0xb5, + 0x2f, 0xba, 0x39, 0xac, 0xba, 0xe4, 0x3b, 0xcf, 0xf9, 0x4e, 0x42, 0x94, 0xe5, 0x4b, 0xdc, 0x46, + 0x15, 0x71, 0x45, 0x45, 0xef, 0x24, 0x98, 0x6f, 0x1f, 0xa0, 0x59, 0x1c, 0x10, 0x55, 0x83, 0xa2, + 0x5b, 0x43, 0xeb, 0x4b, 0xc6, 0x8b, 0x9c, 0xf1, 0x34, 0x3c, 0xa9, 0x8e, 0xa1, 0x38, 0x06, 0xfd, + 0xa3, 0xd9, 0x01, 0x53, 0xb2, 0x77, 0x80, 0xea, 0x84, 0x49, 0x77, 0x1c, 0xfa, 0xc9, 0xed, 0x95, + 0x24, 0x83, 0xc1, 0x19, 0x16, 0xe1, 0x91, 0x2c, 0x43, 0x5b, 0x28, 0x56, 0x6f, 0x3c, 0x79, 0x56, + 0xd6, 0x9e, 0x3e, 0x2b, 0x6b, 0x7f, 0x3f, 0x2b, 0x6b, 0x8f, 0x9e, 0x97, 0xc7, 0x9e, 0x3e, 0x2f, + 0x8f, 0xfd, 0xf1, 0xbc, 0x3c, 0xf6, 0x81, 0x95, 0x28, 0xe9, 0x72, 0xb2, 0x8f, 0x59, 0xfc, 0x6f, + 0x85, 0x5f, 0x65, 0xd6, 0x26, 0xb7, 0xc7, 0xeb, 0xfb, 0xea, 0x24, 0xff, 0x7a, 0xf9, 0xff, 0x7f, + 0x03, 0x00, 0x00, 0xff, 0xff, 0x37, 0x1b, 0xc6, 0x7c, 0x85, 0x15, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1031,6 +1143,7 @@ type QueryClient interface { TotalMinedToken(ctx context.Context, in *QueryTotalMinedTokenRequest, opts ...grpc.CallOption) (*QueryTotalMinedTokenResponse, error) CirculationSupply(ctx context.Context, in *QueryCirculationSupplyRequest, opts ...grpc.CallOption) (*QueryCirculationSupplyResponse, error) TotalRewardByEpoch(ctx context.Context, in *QueryTotalRewardByEpochRequest, opts ...grpc.CallOption) (*QueryTotalRewardByEpochResponse, error) + Metrics(ctx context.Context, in *QueryMetricsRequest, opts ...grpc.CallOption) (*QueryMetricsResponse, error) } type queryClient struct { @@ -1113,6 +1226,15 @@ func (c *queryClient) TotalRewardByEpoch(ctx context.Context, in *QueryTotalRewa return out, nil } +func (c *queryClient) Metrics(ctx context.Context, in *QueryMetricsRequest, opts ...grpc.CallOption) (*QueryMetricsResponse, error) { + out := new(QueryMetricsResponse) + err := c.cc.Invoke(ctx, "/stratos.pot.v1.Query/Metrics", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // VolumeReport queries VolumeReport info for given epoch. @@ -1128,6 +1250,7 @@ type QueryServer interface { TotalMinedToken(context.Context, *QueryTotalMinedTokenRequest) (*QueryTotalMinedTokenResponse, error) CirculationSupply(context.Context, *QueryCirculationSupplyRequest) (*QueryCirculationSupplyResponse, error) TotalRewardByEpoch(context.Context, *QueryTotalRewardByEpochRequest) (*QueryTotalRewardByEpochResponse, error) + Metrics(context.Context, *QueryMetricsRequest) (*QueryMetricsResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1158,6 +1281,9 @@ func (*UnimplementedQueryServer) CirculationSupply(ctx context.Context, req *Que func (*UnimplementedQueryServer) TotalRewardByEpoch(ctx context.Context, req *QueryTotalRewardByEpochRequest) (*QueryTotalRewardByEpochResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method TotalRewardByEpoch not implemented") } +func (*UnimplementedQueryServer) Metrics(ctx context.Context, req *QueryMetricsRequest) (*QueryMetricsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Metrics not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -1307,6 +1433,24 @@ func _Query_TotalRewardByEpoch_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _Query_Metrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryMetricsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Metrics(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stratos.pot.v1.Query/Metrics", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Metrics(ctx, req.(*QueryMetricsRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "stratos.pot.v1.Query", HandlerType: (*QueryServer)(nil), @@ -1343,6 +1487,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "TotalRewardByEpoch", Handler: _Query_TotalRewardByEpoch_Handler, }, + { + MethodName: "Metrics", + Handler: _Query_Metrics_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "stratos/pot/v1/query.proto", @@ -1994,6 +2142,172 @@ func (m *QueryTotalRewardByEpochResponse) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } +func (m *QueryMetricsRequest) 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 *QueryMetricsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryMetricsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryMetricsResponse) 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 *QueryMetricsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryMetricsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.MetaMiningReward.Size() + i -= size + if _, err := m.MetaMiningReward.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + { + size := m.ResourceMiningReward.Size() + i -= size + if _, err := m.ResourceMiningReward.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + { + size := m.ChainMiningReward.Size() + i -= size + if _, err := m.ChainMiningReward.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + { + size := m.TotalMiningReward.Size() + i -= size + if _, err := m.TotalMiningReward.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + { + size := m.CirculationSupply.Size() + i -= size + if _, err := m.CirculationSupply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + { + size := m.TotalUnbondingDelegation.Size() + i -= size + if _, err := m.TotalUnbondingDelegation.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + { + size := m.TotalUnbondedDelegation.Size() + i -= size + if _, err := m.TotalUnbondedDelegation.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + { + size := m.TotalBondedDelegation.Size() + i -= size + if _, err := m.TotalBondedDelegation.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size := m.TotalResourceNodesDeposit.Size() + i -= size + if _, err := m.TotalResourceNodesDeposit.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.TotalMinedTokens.Size() + i -= size + if _, err := m.TotalMinedTokens.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.TotalMiningSupply.Size() + i -= size + if _, err := m.TotalMiningSupply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.TotalSupply.Size() + i -= size + if _, err := m.TotalSupply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + 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 @@ -2271,6 +2585,48 @@ func (m *QueryTotalRewardByEpochResponse) Size() (n int) { return n } +func (m *QueryMetricsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryMetricsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TotalSupply.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.TotalMiningSupply.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.TotalMinedTokens.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.TotalResourceNodesDeposit.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.TotalBondedDelegation.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.TotalUnbondedDelegation.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.TotalUnbondingDelegation.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.CirculationSupply.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.TotalMiningReward.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.ChainMiningReward.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.ResourceMiningReward.Size() + n += 1 + l + sovQuery(uint64(l)) + l = m.MetaMiningReward.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -3967,6 +4323,514 @@ func (m *QueryTotalRewardByEpochResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryMetricsRequest) 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: QueryMetricsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryMetricsRequest: 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 *QueryMetricsResponse) 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: QueryMetricsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryMetricsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalSupply", 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 + } + if err := m.TotalSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalMiningSupply", 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 + } + if err := m.TotalMiningSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalMinedTokens", 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 + } + if err := m.TotalMinedTokens.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalResourceNodesDeposit", 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 + } + if err := m.TotalResourceNodesDeposit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalBondedDelegation", 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 + } + if err := m.TotalBondedDelegation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalUnbondedDelegation", 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 + } + if err := m.TotalUnbondedDelegation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalUnbondingDelegation", 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 + } + if err := m.TotalUnbondingDelegation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CirculationSupply", 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 + } + if err := m.CirculationSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalMiningReward", 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 + } + if err := m.TotalMiningReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainMiningReward", 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 + } + if err := m.ChainMiningReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceMiningReward", 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 + } + if err := m.ResourceMiningReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetaMiningReward", 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 + } + if err := m.MetaMiningReward.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 From 78799c31f6b2e8a7069797a2c89e8c235027a395 Mon Sep 17 00:00:00 2001 From: BoThe1K Date: Wed, 25 Oct 2023 12:43:47 +0200 Subject: [PATCH 2/4] feat/QB-2245: Update tx pool signer and block gas loading --- x/evm/pool/tx_pool.go | 139 +++++++++++++++++++++++++++++------------- 1 file changed, 96 insertions(+), 43 deletions(-) diff --git a/x/evm/pool/tx_pool.go b/x/evm/pool/tx_pool.go index c687aa07..9bd0f2d0 100644 --- a/x/evm/pool/tx_pool.go +++ b/x/evm/pool/tx_pool.go @@ -1,6 +1,7 @@ package pool import ( + "errors" "fmt" "math/big" "sync" @@ -34,33 +35,29 @@ const ( ) var ( - initInterval = 5 * time.Second // Time interval to prepare some after tendermint initializations evictionInterval = time.Minute // Time interval to check for evictable transactions statsReportInterval = 8 * time.Second // Time interval to report transaction pool stats processQueueInterval = 5 * time.Second // Time interval to process queue transactions in case if their ready and move to pending stage processPendingInterval = 5 * time.Second // Time interval of pending tx broadcating to a tm mempool ) -type txpoolResetRequest struct { - oldHead, newHead *types.Header -} - // TxPool contains all currently known transactions. Transactions // enter the pool when they are received from the local network or submitted // locally. They exit the pool when they are included in the blockchain. type TxPool struct { - config core.TxPoolConfig - srvCfg config.Config - logger log.Logger - clientCtx client.Context - evmCtx *evm.Context - signer types.Signer - mempool mempl.Mempool - mu sync.RWMutex - - evmkeeper *evmkeeper.Keeper // Active keeper to get current state - pendingNonces *txNoncer // Pending state tracking virtual nonces - currentMaxGas uint64 // Current gas limit for transaction caps + config core.TxPoolConfig + srvCfg config.Config + logger log.Logger + clientCtx client.Context + evmCtx *evm.Context + signerCache types.Signer // should be loaded in dynamic as potentially will not exist during chain initialization + mempool mempl.Mempool + mu sync.RWMutex + imu sync.Mutex // only for initializations + + evmkeeper *evmkeeper.Keeper // Active keeper to get current state + pendingNonces *txNoncer // Pending state tracking virtual nonces + maxGasLimitCache uint64 // Current gas limit for transaction caps, only for cache beats map[common.Address]time.Time // Last heartbeat from each known account @@ -69,32 +66,34 @@ type TxPool struct { all *txLookup // All transactions to allow lookups } +// catchInitPanic used only in methods which are dependent from the store and potentially could be down +// due to not initialized chain +func catchInitPanic(err *error) { + if errRec := recover(); errRec != nil { + log.Warn("storage still not initialized, value could not be loaded") + *err = errors.New("chain not started yet") + } +} + // NewTxPool creates a new transaction pool to gather, sort and filter inbound // transactions from the network. func NewTxPool(config core.TxPoolConfig, srvCfg config.Config, clientCtx client.Context, mempool mempl.Mempool, evmkeeper *evmkeeper.Keeper, evmCtx *evm.Context) (*TxPool, error) { - sdkCtx := evmCtx.GetSdkContext() - params := evmkeeper.GetParams(sdkCtx) pool := &TxPool{ - config: config, - srvCfg: srvCfg, - clientCtx: clientCtx, - evmCtx: evmCtx, - signer: types.LatestSignerForChainID(params.ChainConfig.ChainID.BigInt()), - mempool: mempool, - evmkeeper: evmkeeper, - beats: make(map[common.Address]time.Time), - pending: make(map[common.Address]*txList), - queue: make(map[common.Address]*txList), - all: newTxLookup(), + config: config, + srvCfg: srvCfg, + clientCtx: clientCtx, + evmCtx: evmCtx, + mempool: mempool, + evmkeeper: evmkeeper, + signerCache: nil, + maxGasLimitCache: 0, + beats: make(map[common.Address]time.Time), + pending: make(map[common.Address]*txList), + queue: make(map[common.Address]*txList), + all: newTxLookup(), } pool.pendingNonces = newTxNoncer(pool.evmCtx, pool.evmkeeper) - gasLimit, err := evmtypes.BlockMaxGasFromConsensusParams(nil) - if err != nil { - return nil, fmt.Errorf("failed to get tx pool current max gas: %w (possible DB not started?)", err) - } - pool.currentMaxGas = uint64(gasLimit) - go pool.eventLoop() return pool, nil @@ -161,6 +160,42 @@ func (pool *TxPool) eventLoop() { } } +// getSigner return signer for existing chain id +func (pool *TxPool) getSigner() (_ types.Signer, err error) { + defer catchInitPanic(&err) + + if pool.signerCache == nil { + pool.imu.Lock() + defer pool.imu.Unlock() + + if pool.signerCache == nil { + sdkCtx := pool.evmCtx.GetSdkContext() + params := pool.evmkeeper.GetParams(sdkCtx) + pool.signerCache = types.LatestSignerForChainID(params.ChainConfig.ChainID.BigInt()) + } + } + return pool.signerCache, nil +} + +// getMaxGasLimit return current gas limit for transaction caps +func (pool *TxPool) getMaxGasLimit() (_ uint64, err error) { + defer catchInitPanic(&err) + + if pool.maxGasLimitCache == 0 { + pool.imu.Lock() + defer pool.imu.Unlock() + + if pool.maxGasLimitCache == 0 { + gasLimit, err := evmtypes.BlockMaxGasFromConsensusParams(nil) + if err != nil { + return 0, fmt.Errorf("failed to get tx pool current max gas: %w (possible DB not started?)", err) + } + pool.maxGasLimitCache = uint64(gasLimit) + } + } + return pool.maxGasLimitCache, nil +} + // Get returns a transaction if it is contained in the pool and nil otherwise. func (pool *TxPool) Get(hash common.Hash) *types.Transaction { return pool.all.Get(hash) @@ -220,6 +255,16 @@ func (pool *TxPool) validateTx(tx *types.Transaction) error { log.Trace("Validating tx", "hash", tx.Hash()) sdkCtx := pool.evmCtx.GetSdkContext() + currentMaxGas, err := pool.getMaxGasLimit() + if err != nil { + return err + } + + signer, err := pool.getSigner() + if err != nil { + return err + } + // Accept only legacy transactions until EIP-2718/2930 activates. if !tx.Protected() { return core.ErrTxTypeNotSupported @@ -238,7 +283,7 @@ func (pool *TxPool) validateTx(tx *types.Transaction) error { return core.ErrNegativeValue } // Ensure the transaction doesn't exceed the current block limit gas. - if pool.currentMaxGas < tx.Gas() { + if currentMaxGas < tx.Gas() { return core.ErrGasLimit } // Sanity check for extremely large numbers @@ -253,7 +298,7 @@ func (pool *TxPool) validateTx(tx *types.Transaction) error { return core.ErrTipAboveFeeCap } // Make sure the transaction is signed properly. - from, err := types.Sender(pool.signer, tx) + from, err := types.Sender(signer, tx) if err != nil { return core.ErrInvalidSender } @@ -327,8 +372,10 @@ func (pool *TxPool) Add(tx *types.Transaction) (replaced bool, err error) { if err != nil { return false, err } + + signer, _ := pool.getSigner() // Try to replace an existing transaction in the pending pool - from, _ := types.Sender(pool.signer, tx) // already validated + from, _ := types.Sender(signer, tx) // already validated if list := pool.pending[from]; list != nil && list.Overlaps(tx) { log.Trace("Tx overlap", "hash", tx.Hash()) // Nonce already pending, check if required price bump is met @@ -354,7 +401,9 @@ func (pool *TxPool) Add(tx *types.Transaction) (replaced bool, err error) { // Note, this method assumes the pool lock is held! func (pool *TxPool) enqueueTx(tx *types.Transaction, addAll bool) (bool, error) { log.Trace("Tx enqeue", "hash", tx.Hash()) - from, _ := types.Sender(pool.signer, tx) // already validated + + signer, _ := pool.getSigner() + from, _ := types.Sender(signer, tx) // already validated if pool.queue[from] == nil { pool.queue[from] = newTxList(false) } @@ -389,7 +438,8 @@ func (pool *TxPool) removeTx(hash common.Hash) { log.Error("Tx not found during removal", "hash", hash) return } - addr, _ := types.Sender(pool.signer, tx) // already validated during insertion + signer, _ := pool.getSigner() + addr, _ := types.Sender(signer, tx) // already validated during insertion // Remove it from the list of known transactions pool.all.Remove(hash) @@ -477,6 +527,7 @@ func (pool *TxPool) promoteExecutables(accounts []common.Address) []*types.Trans var promoted []*types.Transaction sdkCtx := pool.evmCtx.GetSdkContext() + currentMaxGas, _ := pool.getMaxGasLimit() // Iterate over all accounts and promote any executable transactions for _, addr := range accounts { @@ -492,7 +543,7 @@ func (pool *TxPool) promoteExecutables(accounts []common.Address) []*types.Trans } log.Trace("Removed old queued transactions", "count", len(forwards)) // Drop all transactions that are too costly (low balance or out of gas) - drops, _ := list.Filter(pool.evmkeeper.GetBalance(sdkCtx, addr), pool.currentMaxGas) + drops, _ := list.Filter(pool.evmkeeper.GetBalance(sdkCtx, addr), currentMaxGas) for _, tx := range drops { hash := tx.Hash() pool.all.Remove(hash) @@ -526,6 +577,8 @@ func (pool *TxPool) promoteExecutables(accounts []common.Address) []*types.Trans // to trigger a re-heap is this function func (pool *TxPool) demoteUnexecutables() { sdkCtx := pool.evmCtx.GetSdkContext() + currentMaxGas, _ := pool.getMaxGasLimit() + // Iterate over all accounts and demote any non-executable transactions for addr, list := range pool.pending { nonce := pool.evmkeeper.GetNonce(sdkCtx, addr) @@ -538,7 +591,7 @@ func (pool *TxPool) demoteUnexecutables() { log.Trace("Removed old pending transaction", "hash", hash) } // Drop all transactions that are too costly (low balance or out of gas), and queue any invalids back for later - drops, invalids := list.Filter(pool.evmkeeper.GetBalance(sdkCtx, addr), pool.currentMaxGas) + drops, invalids := list.Filter(pool.evmkeeper.GetBalance(sdkCtx, addr), currentMaxGas) for _, tx := range drops { hash := tx.Hash() log.Trace("Removed unpayable pending transaction", "hash", hash) From 9a597ccfda4008759e92d32d555d4aec20929f5c Mon Sep 17 00:00:00 2001 From: BoThe1K Date: Tue, 31 Oct 2023 17:04:49 +0100 Subject: [PATCH 3/4] Fix pb for metrics --- proto/stratos/pot/v1/query.proto | 73 +--- x/pot/keeper/grpc_query.go | 13 +- x/pot/keeper/keeper.go | 4 +- x/pot/types/query.pb.go | 716 ++++--------------------------- 4 files changed, 96 insertions(+), 710 deletions(-) diff --git a/proto/stratos/pot/v1/query.proto b/proto/stratos/pot/v1/query.proto index d392a104..af3f5a2f 100644 --- a/proto/stratos/pot/v1/query.proto +++ b/proto/stratos/pot/v1/query.proto @@ -165,76 +165,7 @@ message QueryTotalRewardByEpochResponse { message QueryMetricsRequest {} message QueryMetricsResponse { - string total_supply = 1 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.jsontag) = "total_supply", - (gogoproto.moretags) = "yaml:\"total_supply\"" - ]; - string total_mining_supply = 2 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.jsontag) = "total_mining_supply", - (gogoproto.moretags) = "yaml:\"total_mining_supply\"" - ]; - string total_mined_tokens = 3 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.jsontag) = "total_mined_tokens", - (gogoproto.moretags) = "yaml:\"total_mined_tokens\"" - ]; - string total_resource_nodes_deposit = 4 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.jsontag) = "total_resource_nodes_deposit", - (gogoproto.moretags) = "yaml:\"total_resource_nodes_deposit\"" - ]; - string total_bonded_delegation = 5 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.jsontag) = "total_bonded_delegation", - (gogoproto.moretags) = "yaml:\"total_bonded_delegation\"" - ]; - string total_unbonded_delegation = 6 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.jsontag) = "total_unbonded_delegation", - (gogoproto.moretags) = "yaml:\"total_unbonded_delegation\"" - ]; - string total_unbonding_delegation = 7 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.jsontag) = "total_unbonding_delegation", - (gogoproto.moretags) = "yaml:\"total_unbonding_delegation\"" - ]; - string circulation_supply = 8 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.jsontag) = "circulation_supply", - (gogoproto.moretags) = "yaml:\"circulation_supply\"" - ]; - string total_mining_reward = 9 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.jsontag) = "total_mining_reward", - (gogoproto.moretags) = "yaml:\"total_mining_reward\"" - ]; - string chain_mining_reward = 10 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.jsontag) = "chain_mining_reward", - (gogoproto.moretags) = "yaml:\"chain_mining_reward\"" - ]; - string resource_mining_reward = 11 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.jsontag) = "resource_mining_reward", - (gogoproto.moretags) = "yaml:\"resource_mining_reward\"" - ]; - string meta_mining_reward = 12 [ - (gogoproto.nullable) = false, - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.jsontag) = "meta_mining_reward", - (gogoproto.moretags) = "yaml:\"meta_mining_reward\"" + Metrics metrics = 1 [ + (gogoproto.nullable) = false ]; } diff --git a/x/pot/keeper/grpc_query.go b/x/pot/keeper/grpc_query.go index 77695cd3..36dca17b 100644 --- a/x/pot/keeper/grpc_query.go +++ b/x/pot/keeper/grpc_query.go @@ -409,17 +409,6 @@ func (q Querier) Metrics(c context.Context, req *types.QueryMetricsRequest) ( metrics := q.GetMetrics(ctx) return &types.QueryMetricsResponse{ - TotalSupply: metrics.TotalSupply, - TotalMiningSupply: metrics.TotalMiningSupply, - TotalMinedTokens: metrics.TotalMinedTokens, - TotalResourceNodesDeposit: metrics.TotalResourceNodesDeposit, - TotalBondedDelegation: metrics.TotalBondedDelegation, - TotalUnbondedDelegation: metrics.TotalUnbondedDelegation, - TotalUnbondingDelegation: metrics.TotalUnbondingDelegation, - CirculationSupply: metrics.CirculationSupply, - TotalMiningReward: metrics.TotalMiningReward, - ChainMiningReward: metrics.ChainMiningReward, - ResourceMiningReward: metrics.ResourceMiningReward, - MetaMiningReward: metrics.MetaMiningReward, + Metrics: metrics, }, nil } diff --git a/x/pot/keeper/keeper.go b/x/pot/keeper/keeper.go index 3d262e6d..99d6e83c 100644 --- a/x/pot/keeper/keeper.go +++ b/x/pot/keeper/keeper.go @@ -244,7 +244,7 @@ func (k Keeper) GetTotalReward(ctx sdk.Context, epoch sdk.Int) (totalReward type return } -func (k Keeper) GetMetrics(ctx sdk.Context) *types.Metrics { +func (k Keeper) GetMetrics(ctx sdk.Context) types.Metrics { totalSupply := k.bankKeeper.GetSupply(ctx, k.BondDenom(ctx)) totalMining := k.GetTotalMining(ctx) totalMinedTokens := k.GetTotalMinedTokens(ctx) @@ -283,7 +283,7 @@ func (k Keeper) GetMetrics(ctx sdk.Context) *types.Metrics { metaMiningReward = totalMiningReward.Mul(miningParam.MetaNodePercentageInBp).Quo(sdk.NewInt(10000)) } - return &types.Metrics{ + return types.Metrics{ TotalSupply: totalSupply.Amount, TotalMiningSupply: totalMining.Amount, TotalMinedTokens: totalMinedTokens.Amount, diff --git a/x/pot/types/query.pb.go b/x/pot/types/query.pb.go index 8f1fbed3..8b61cb44 100644 --- a/x/pot/types/query.pb.go +++ b/x/pot/types/query.pb.go @@ -946,18 +946,7 @@ func (m *QueryMetricsRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryMetricsRequest proto.InternalMessageInfo type QueryMetricsResponse struct { - TotalSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=total_supply,json=totalSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_supply" yaml:"total_supply"` - TotalMiningSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=total_mining_supply,json=totalMiningSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_mining_supply" yaml:"total_mining_supply"` - TotalMinedTokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=total_mined_tokens,json=totalMinedTokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_mined_tokens" yaml:"total_mined_tokens"` - TotalResourceNodesDeposit github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=total_resource_nodes_deposit,json=totalResourceNodesDeposit,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_resource_nodes_deposit" yaml:"total_resource_nodes_deposit"` - TotalBondedDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=total_bonded_delegation,json=totalBondedDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_bonded_delegation" yaml:"total_bonded_delegation"` - TotalUnbondedDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=total_unbonded_delegation,json=totalUnbondedDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_unbonded_delegation" yaml:"total_unbonded_delegation"` - TotalUnbondingDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=total_unbonding_delegation,json=totalUnbondingDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_unbonding_delegation" yaml:"total_unbonding_delegation"` - CirculationSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,8,opt,name=circulation_supply,json=circulationSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"circulation_supply" yaml:"circulation_supply"` - TotalMiningReward github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=total_mining_reward,json=totalMiningReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_mining_reward" yaml:"total_mining_reward"` - ChainMiningReward github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,10,opt,name=chain_mining_reward,json=chainMiningReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"chain_mining_reward" yaml:"chain_mining_reward"` - ResourceMiningReward github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,11,opt,name=resource_mining_reward,json=resourceMiningReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"resource_mining_reward" yaml:"resource_mining_reward"` - MetaMiningReward github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,12,opt,name=meta_mining_reward,json=metaMiningReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"meta_mining_reward" yaml:"meta_mining_reward"` + Metrics Metrics `protobuf:"bytes,1,opt,name=metrics,proto3" json:"metrics"` } func (m *QueryMetricsResponse) Reset() { *m = QueryMetricsResponse{} } @@ -993,6 +982,13 @@ func (m *QueryMetricsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryMetricsResponse proto.InternalMessageInfo +func (m *QueryMetricsResponse) GetMetrics() Metrics { + if m != nil { + return m.Metrics + } + return Metrics{} +} + func init() { proto.RegisterType((*QueryVolumeReportRequest)(nil), "stratos.pot.v1.QueryVolumeReportRequest") proto.RegisterType((*QueryVolumeReportResponse)(nil), "stratos.pot.v1.QueryVolumeReportResponse") @@ -1019,103 +1015,80 @@ func init() { func init() { proto.RegisterFile("stratos/pot/v1/query.proto", fileDescriptor_c09bd09df76a68e0) } var fileDescriptor_c09bd09df76a68e0 = []byte{ - // 1533 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x98, 0xcf, 0x73, 0x14, 0xc5, - 0x17, 0xc0, 0x33, 0xc9, 0x97, 0x04, 0x3a, 0x10, 0x48, 0x27, 0x84, 0xcd, 0x90, 0xec, 0x40, 0xf3, - 0xfb, 0xc7, 0xce, 0x10, 0xbe, 0xa5, 0x54, 0xe9, 0xc9, 0x05, 0x54, 0x0e, 0x28, 0x0e, 0xe0, 0xc1, - 0xcb, 0xd6, 0x64, 0xb7, 0x99, 0x9d, 0xca, 0xee, 0xf4, 0x64, 0xba, 0x37, 0x24, 0x22, 0x65, 0x95, - 0x7f, 0x80, 0x52, 0x72, 0xd0, 0x83, 0xa5, 0xa5, 0xde, 0xf4, 0xa0, 0x07, 0xcb, 0xbf, 0x01, 0x6f, - 0x54, 0x79, 0xb1, 0x3c, 0xac, 0x16, 0x78, 0xe2, 0xb8, 0x7f, 0x81, 0x35, 0xdd, 0x3d, 0xbb, 0xf3, - 0xa3, 0x27, 0xd9, 0x4d, 0xe1, 0x29, 0xd9, 0x7e, 0xaf, 0x5f, 0x7f, 0xde, 0xeb, 0xd7, 0xaf, 0xfb, - 0x0d, 0xd0, 0x29, 0x0b, 0x1d, 0x46, 0xa8, 0x15, 0x10, 0x66, 0x6d, 0xac, 0x58, 0xeb, 0x1d, 0x1c, - 0x6e, 0x99, 0x41, 0x48, 0x18, 0x81, 0x33, 0x52, 0x66, 0x06, 0x84, 0x99, 0x1b, 0x2b, 0xfa, 0xbc, - 0x4b, 0x5c, 0xc2, 0x45, 0x56, 0xf4, 0x9f, 0xd0, 0xd2, 0x97, 0x5c, 0x42, 0xdc, 0x16, 0xb6, 0x9c, - 0xc0, 0xb3, 0x1c, 0xdf, 0x27, 0xcc, 0x61, 0x1e, 0xf1, 0xa9, 0x94, 0x96, 0xeb, 0x84, 0xb6, 0x09, - 0xb5, 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 0x93, 0x45, 0xe1, 0xaf, 0x1a, 0x58, - 0x8a, 0x37, 0x9c, 0x92, 0x4e, 0x58, 0xc7, 0x35, 0x9f, 0x34, 0x30, 0xad, 0x35, 0x70, 0x40, 0xa8, - 0xc7, 0xc4, 0x1b, 0xa4, 0xda, 0x19, 0x99, 0x6d, 0x5b, 0xab, 0xbd, 0xae, 0x71, 0x22, 0x9d, 0x6c, - 0x2a, 0x2d, 0x64, 0x2f, 0xca, 0xe4, 0x13, 0xd2, 0x77, 0x22, 0xe1, 0x35, 0x21, 0x83, 0xdf, 0x6b, - 0xe0, 0x88, 0x98, 0xbc, 0x4a, 0xfc, 0x06, 0x6e, 0xd4, 0x1a, 0xb8, 0x85, 0x5d, 0x71, 0x5d, 0xef, - 0xe1, 0xcc, 0x6b, 0x23, 0x33, 0x17, 0x19, 0xec, 0x75, 0x8d, 0x72, 0x12, 0x37, 0xa7, 0x80, 0xec, - 0xc3, 0x5c, 0x52, 0xe5, 0x82, 0x6b, 0xfd, 0x71, 0xf8, 0xa3, 0x06, 0x84, 0x0f, 0xb5, 0x8e, 0x9f, - 0xe7, 0x9c, 0xe4, 0x9c, 0x64, 0x64, 0xce, 0x62, 0x93, 0xbd, 0xae, 0x71, 0x2c, 0x49, 0xaa, 0x50, - 0x41, 0xb6, 0x70, 0xf3, 0xae, 0x14, 0x25, 0x68, 0x7f, 0xd2, 0x80, 0x9e, 0x9c, 0x17, 0x65, 0x73, - 0x02, 0x77, 0x8a, 0xe3, 0xae, 0x8f, 0x8c, 0xbb, 0x8d, 0xcd, 0x5e, 0xd7, 0x38, 0x9e, 0xe7, 0x4d, - 0xeb, 0x20, 0xbb, 0x94, 0x00, 0xf6, 0x7c, 0x37, 0x41, 0xfc, 0x48, 0x53, 0x96, 0xf5, 0xbd, 0xbb, - 0x3d, 0x50, 0x79, 0x5b, 0x83, 0x03, 0x95, 0x97, 0x21, 0x45, 0xb1, 0xcf, 0x57, 0x1e, 0x59, 0x98, - 0xf7, 0xbd,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0x95, - 0x24, 0x83, 0xc1, 0x19, 0x16, 0xe1, 0x91, 0x2c, 0x43, 0x5b, 0x28, 0x56, 0x6f, 0x3c, 0x79, 0x56, - 0xd6, 0x9e, 0x3e, 0x2b, 0x6b, 0x7f, 0x3f, 0x2b, 0x6b, 0x8f, 0x9e, 0x97, 0xc7, 0x9e, 0x3e, 0x2f, - 0x8f, 0xfd, 0xf1, 0xbc, 0x3c, 0xf6, 0x81, 0x95, 0x28, 0xe9, 0x72, 0xb2, 0x8f, 0x59, 0xfc, 0x6f, - 0x85, 0x5f, 0x65, 0xd6, 0x26, 0xb7, 0xc7, 0xeb, 0xfb, 0xea, 0x24, 0xff, 0x7a, 0xf9, 0xff, 0x7f, - 0x03, 0x00, 0x00, 0xff, 0xff, 0x37, 0x1b, 0xc6, 0x7c, 0x85, 0x15, 0x00, 0x00, + // 1167 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x97, 0xcf, 0x6f, 0xdc, 0x44, + 0x14, 0xc7, 0xe3, 0xa4, 0x4d, 0xdb, 0x97, 0xb6, 0x51, 0x26, 0x69, 0xb2, 0x71, 0x93, 0xdd, 0x32, + 0x4d, 0xdb, 0xfc, 0xe8, 0xda, 0xd9, 0x20, 0xa8, 0x04, 0x27, 0x12, 0x0a, 0xf4, 0x50, 0xb5, 0xb8, + 0x15, 0x07, 0x2e, 0x2b, 0x67, 0x33, 0xd9, 0xb5, 0xb2, 0xeb, 0x71, 0x3c, 0xb3, 0xf9, 0x41, 0xa8, + 0x90, 0xf8, 0x03, 0x10, 0x82, 0x03, 0x1c, 0x10, 0x08, 0xb8, 0x71, 0xe2, 0xc0, 0x1f, 0x51, 0x6e, + 0x95, 0xb8, 0x70, 0x0a, 0x28, 0xe1, 0xc4, 0xb1, 0x7f, 0x01, 0xf2, 0xcc, 0xdb, 0x8d, 0xed, 0xb5, + 0x93, 0x15, 0x82, 0x53, 0x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, 0xac, 0x04, 0xb9, 0xac, 0x04, 0x99, 0x7c, 0x6b, 0xc0, 0x58, 0x8f, 0xb0, 0x92, 0x72, 0x66, + 0xba, 0x3c, 0x89, 0x36, 0xad, 0x7e, 0xdd, 0x91, 0x6f, 0x51, 0xf1, 0xcd, 0x11, 0x9a, 0xe6, 0x8b, + 0xc9, 0x6b, 0x59, 0xab, 0x38, 0xf9, 0xd1, 0x00, 0xd2, 0x2b, 0x91, 0xc4, 0xca, 0x6f, 0x48, 0x96, + 0x08, 0x9b, 0x76, 0xdf, 0xfe, 0xc8, 0x78, 0x57, 0x31, 0xde, 0x26, 0x73, 0xd9, 0x3d, 0xd4, 0xaf, + 0x41, 0xf7, 0xd5, 0x6c, 0xc3, 0x05, 0x94, 0x3b, 0x92, 0x3d, 0x30, 0x49, 0x55, 0x35, 0xe7, 0x4e, + 0x77, 0x42, 0x86, 0x92, 0x62, 0x98, 0x26, 0x53, 0x69, 0x06, 0xd4, 0xd2, 0xd5, 0x07, 0xcf, 0x8f, + 0x8a, 0xc6, 0x8b, 0xa3, 0xa2, 0xf1, 0xe7, 0x51, 0xd1, 0xf8, 0xfc, 0xb8, 0x38, 0xf0, 0xe2, 0xb8, + 0x38, 0xf0, 0xfb, 0x71, 0x71, 0xe0, 0x43, 0x3b, 0x76, 0xa7, 0x61, 0xb0, 0xcf, 0x64, 0xe7, 0x67, + 0xb9, 0xd6, 0x70, 0x3d, 0xdf, 0xde, 0x53, 0xfb, 0xa9, 0x0b, 0x6e, 0x7d, 0x58, 0xfd, 0x87, 0xf6, + 0xea, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x96, 0xa9, 0xd1, 0x69, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2186,121 +2159,11 @@ func (m *QueryMetricsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l { - size := m.MetaMiningReward.Size() - i -= size - if _, err := m.MetaMiningReward.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - { - size := m.ResourceMiningReward.Size() - i -= size - if _, err := m.ResourceMiningReward.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - { - size := m.ChainMiningReward.Size() - i -= size - if _, err := m.ChainMiningReward.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - { - size := m.TotalMiningReward.Size() - i -= size - if _, err := m.TotalMiningReward.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - { - size := m.CirculationSupply.Size() - i -= size - if _, err := m.CirculationSupply.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - { - size := m.TotalUnbondingDelegation.Size() - i -= size - if _, err := m.TotalUnbondingDelegation.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - { - size := m.TotalUnbondedDelegation.Size() - i -= size - if _, err := m.TotalUnbondedDelegation.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - { - size := m.TotalBondedDelegation.Size() - i -= size - if _, err := m.TotalBondedDelegation.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - { - size := m.TotalResourceNodesDeposit.Size() - i -= size - if _, err := m.TotalResourceNodesDeposit.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - { - size := m.TotalMinedTokens.Size() - i -= size - if _, err := m.TotalMinedTokens.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size := m.TotalMiningSupply.Size() - i -= size - if _, err := m.TotalMiningSupply.MarshalTo(dAtA[i:]); err != nil { + size, err := m.Metrics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { return 0, err } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size := m.TotalSupply.Size() i -= size - if _, err := m.TotalSupply.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- @@ -2600,29 +2463,7 @@ func (m *QueryMetricsResponse) Size() (n int) { } var l int _ = l - l = m.TotalSupply.Size() - n += 1 + l + sovQuery(uint64(l)) - l = m.TotalMiningSupply.Size() - n += 1 + l + sovQuery(uint64(l)) - l = m.TotalMinedTokens.Size() - n += 1 + l + sovQuery(uint64(l)) - l = m.TotalResourceNodesDeposit.Size() - n += 1 + l + sovQuery(uint64(l)) - l = m.TotalBondedDelegation.Size() - n += 1 + l + sovQuery(uint64(l)) - l = m.TotalUnbondedDelegation.Size() - n += 1 + l + sovQuery(uint64(l)) - l = m.TotalUnbondingDelegation.Size() - n += 1 + l + sovQuery(uint64(l)) - l = m.CirculationSupply.Size() - n += 1 + l + sovQuery(uint64(l)) - l = m.TotalMiningReward.Size() - n += 1 + l + sovQuery(uint64(l)) - l = m.ChainMiningReward.Size() - n += 1 + l + sovQuery(uint64(l)) - l = m.ResourceMiningReward.Size() - n += 1 + l + sovQuery(uint64(l)) - l = m.MetaMiningReward.Size() + l = m.Metrics.Size() n += 1 + l + sovQuery(uint64(l)) return n } @@ -4404,383 +4245,9 @@ func (m *QueryMetricsResponse) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalSupply", 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 - } - if err := m.TotalSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalMiningSupply", 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 - } - if err := m.TotalMiningSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalMinedTokens", 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 - } - if err := m.TotalMinedTokens.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalResourceNodesDeposit", 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 - } - if err := m.TotalResourceNodesDeposit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalBondedDelegation", 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 - } - if err := m.TotalBondedDelegation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalUnbondedDelegation", 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 - } - if err := m.TotalUnbondedDelegation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalUnbondingDelegation", 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 - } - if err := m.TotalUnbondingDelegation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CirculationSupply", 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 - } - if err := m.CirculationSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalMiningReward", 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 - } - if err := m.TotalMiningReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainMiningReward", 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 - } - if err := m.ChainMiningReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceMiningReward", 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 - } - if err := m.ResourceMiningReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetaMiningReward", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -4790,23 +4257,22 @@ func (m *QueryMetricsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.MetaMiningReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Metrics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex From ccbfd72c429a9b405d239a44077fbb153107f7f0 Mon Sep 17 00:00:00 2001 From: alexstratos Date: Fri, 10 Nov 2023 11:36:05 -0500 Subject: [PATCH 4/4] bump version to v0.11.3 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 77f1a270..b46e03cc 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ BUILDDIR ?= $(CURDIR)/build LEDGER_ENABLED ?= false -APP_VER := v0.11.2 +APP_VER := v0.11.3 COMMIT := $(GIT_COMMIT_HASH) TEST_DOCKER_REPO=stratos-chain-e2e