From 817c8b184ccb6aa748cbce106cc3aa77195ec2d0 Mon Sep 17 00:00:00 2001 From: yoongbok-lee <52583590+yoongbok-lee@users.noreply.github.com> Date: Wed, 8 Jun 2022 12:49:23 +0900 Subject: [PATCH] shield: implement distribution params (#380) * shield edits without proto gen * update proto files * add proto files * add proto files * add distribution params * buildable first commit * add migration handler * update shield module consensus version * Add upgrade handler shield v2 (#382) * added upgrade handler to yoongbooks pr shield: implement distirbution params * remove unwanted spaces * fix imports * remove unwanted comments * add querying commands/endpoints * fix test params * add tests & rename to v232 * run lint * add log message while migrating params Co-authored-by: Raveen Senanayake <75823786+Raveen-Senanayake@users.noreply.github.com> --- .gitignore | 1 + .golangci.yml | 2 +- app/app.go | 3 +- app/upgrade_handler.go | 40 +- proto/shentu/shield/v1alpha1/genesis.proto | 46 +- proto/shentu/shield/v1alpha1/query.proto | 12 + proto/shentu/shield/v1alpha1/shield.proto | 1 - x/gov/types/gov.pb.go | 2 +- x/gov/types/query.pb.go | 2 +- x/gov/types/query.pb.gw.go | 2 +- x/mint/abci.go | 9 +- x/mint/abci_test.go | 2 +- x/mint/keeper/keeper.go | 15 +- x/mint/types/expected_keepers.go | 1 + x/shield/client/cli/query.go | 27 + x/shield/genesis.go | 4 +- x/shield/keeper/grpc_query.go | 10 + x/shield/keeper/migrations.go | 26 + x/shield/keeper/params.go | 11 + x/shield/keeper/querier.go | 16 + x/shield/keeper/rewards.go | 36 ++ x/shield/legacy/v232/store.go | 21 + x/shield/legacy/v232/store_test.go | 61 ++ x/shield/module.go | 8 +- x/shield/types/expected_keepers.go | 1 + x/shield/types/genesis.go | 4 +- x/shield/types/genesis.pb.go | 680 +++++++++++++++----- x/shield/types/params.go | 43 ++ x/shield/types/querier.go | 1 + x/shield/types/query.pb.go | 705 +++++++++++++++++---- x/shield/types/query.pb.gw.go | 114 ++-- x/shield/types/shield.pb.go | 229 ++++--- x/shield/types/tx.pb.go | 140 +++- 33 files changed, 1746 insertions(+), 529 deletions(-) create mode 100644 x/shield/keeper/migrations.go create mode 100644 x/shield/legacy/v232/store.go create mode 100644 x/shield/legacy/v232/store_test.go diff --git a/.gitignore b/.gitignore index 3965a6243..2309e1afa 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ certik # Test coverage.out launch/localnet +custom # IDE .idea/ diff --git a/.golangci.yml b/.golangci.yml index 5835257f8..8ccaa0af1 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -70,7 +70,7 @@ linters: - prealloc - scopelint - structcheck - - typecheck + # - typecheck - unconvert - unparam - varcheck diff --git a/app/app.go b/app/app.go index e5167fa8e..9d9b99def 100644 --- a/app/app.go +++ b/app/app.go @@ -570,7 +570,8 @@ func NewShentuApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest app.SetBeginBlocker(app.BeginBlocker) app.SetEndBlocker(app.EndBlocker) - app.setUpgradeHandler() + app.setv230UpgradeHandler() + app.setShieldV2UpgradeHandler() if loadLatest { if err := app.LoadLatestVersion(); err != nil { diff --git a/app/upgrade_handler.go b/app/upgrade_handler.go index 2ae04f991..ab5bb1d3d 100644 --- a/app/upgrade_handler.go +++ b/app/upgrade_handler.go @@ -14,13 +14,18 @@ import ( upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" ibcconnectiontypes "github.com/cosmos/ibc-go/v2/modules/core/03-connection/types" + + shieldtypes "github.com/certikfoundation/shentu/v2/x/shield/types" ) -const upgradeName = "Shentu-v230" +const ( + v230Upgrade = "Shentu-v230" + shieldv2 = "Shield-V2" +) -func (app ShentuApp) setUpgradeHandler() { +func (app ShentuApp) setv230UpgradeHandler() { app.upgradeKeeper.SetUpgradeHandler( - upgradeName, + v230Upgrade, func(ctx sdk.Context, _ upgradetypes.Plan, _ module.VersionMap) (module.VersionMap, error) { app.ibcKeeper.ConnectionKeeper.SetParams(ctx, ibcconnectiontypes.DefaultParams()) @@ -50,7 +55,7 @@ func (app ShentuApp) setUpgradeHandler() { panic(fmt.Sprintf("failed to read upgrade info from disk %s", err)) } - if upgradeInfo.Name == upgradeName && !app.upgradeKeeper.IsSkipHeight(upgradeInfo.Height) { + if upgradeInfo.Name == v230Upgrade && !app.upgradeKeeper.IsSkipHeight(upgradeInfo.Height) { storeUpgrades := storetypes.StoreUpgrades{ Added: []string{authz.ModuleName, feegrant.ModuleName}, } @@ -59,3 +64,30 @@ func (app ShentuApp) setUpgradeHandler() { app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades)) } } + +func (app ShentuApp) setShieldV2UpgradeHandler() { + app.upgradeKeeper.SetUpgradeHandler( + shieldv2, + func(ctx sdk.Context, _ upgradetypes.Plan, _ module.VersionMap) (module.VersionMap, error) { + fromVM := make(map[string]uint64) + for moduleName := range app.mm.Modules { + fromVM[moduleName] = 2 + } + + fromVM[shieldtypes.ModuleName] = 1 + return app.mm.RunMigrations(ctx, app.configurator, fromVM) + }, + ) + + upgradeInfo, err := app.upgradeKeeper.ReadUpgradeInfoFromDisk() + if err != nil { + panic(fmt.Sprintf("failed to read upgrade info from disk %s", err)) + } + + if upgradeInfo.Name == shieldv2 && !app.upgradeKeeper.IsSkipHeight(upgradeInfo.Height) { + storeUpgrades := storetypes.StoreUpgrades{} + + // configure store loader that checks if version == upgradeHeight and applies store upgrades + app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades)) + } +} diff --git a/proto/shentu/shield/v1alpha1/genesis.proto b/proto/shentu/shield/v1alpha1/genesis.proto index 77840316f..f9d0c52cd 100644 --- a/proto/shentu/shield/v1alpha1/genesis.proto +++ b/proto/shentu/shield/v1alpha1/genesis.proto @@ -5,7 +5,6 @@ import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/duration.proto"; -import "gogoproto/gogo.proto"; import "shentu/shield/v1alpha1/shield.proto"; option go_package = "github.com/certikfoundation/shentu/x/shield/types"; @@ -19,23 +18,24 @@ message GenesisState { uint64 next_pool_id = 2 [ (gogoproto.moretags) = "yaml:\"next_pool_id\"" ]; uint64 next_purchase_id = 3 [ (gogoproto.moretags) = "yaml:\"next_purchase_id\"" ]; PoolParams pool_params = 4 [ (gogoproto.moretags) = "yaml:\"pool_params\"", (gogoproto.nullable) = false ]; - ClaimProposalParams claim_proposal_params = 5 [ (gogoproto.moretags) = "yaml:\"claim_proposal_params\"", (gogoproto.nullable) = false ]; - string total_collateral = 6 [ (gogoproto.moretags) = "yaml:\"total_collateral\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; - string total_withdrawing = 7 [ (gogoproto.moretags) = "yaml:\"total_withdrawing\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; - string total_shield = 8 [ (gogoproto.moretags) = "yaml:\"total_shield\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; - string total_claimed = 9 [ (gogoproto.moretags) = "yaml:\"total_claimed\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; - MixedDecCoins service_fees = 10 [ (gogoproto.moretags) = "yaml:\"service_fees\"", (gogoproto.nullable) = false ]; - MixedDecCoins remaining_service_fees = 11 [ (gogoproto.moretags) = "yaml:\"remaining_service_fees\"", (gogoproto.nullable) = false ]; - repeated Pool pools = 12 [ (gogoproto.moretags) = "yaml:\"pools\"", (gogoproto.nullable) = false ]; - repeated Provider providers = 13 [ (gogoproto.moretags) = "yaml:\"providers\"", (gogoproto.nullable) = false ]; - repeated PurchaseList purchase_lists = 14 [ (gogoproto.moretags) = "yaml:\"purchases\"", (gogoproto.nullable) = false ]; - repeated Withdraw withdraws = 15 [ (gogoproto.moretags) = "yaml:\"withdraws\"", (gogoproto.nullable) = false ]; - google.protobuf.Timestamp last_update_time = 16 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"last_update_time\""]; - string shield_staking_rate = 17 [ (gogoproto.moretags) = "yaml:\"shield_staking_rate\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; - string global_staking_pool = 18 [ (gogoproto.moretags) = "yaml:\"global_staking_pool\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; - repeated ShieldStaking stake_for_shields = 19 [ (gogoproto.moretags) = "yaml:\"stake_for_shields\"", (gogoproto.nullable) = false ]; - repeated OriginalStaking original_stakings = 20 [ (gogoproto.moretags) = "yaml:\"original_stakings\"", (gogoproto.nullable) = false ]; - repeated ProposalIDReimbursementPair proposalID_reimbursement_pairs = 21 [ (gogoproto.moretags) = "yaml:\"proposalID_reimbursement_pairs\"", (gogoproto.nullable) = false ]; + ClaimProposalParams claim_proposal_params = 5 [ (gogoproto.moretags) = "yaml:\"claim_proposal_params\"", (gogoproto.nullable) = false ]; + DistributionParams distribution_params = 6 [ (gogoproto.moretags) = "yaml:\"distribution_params\"", (gogoproto.nullable) = false ]; + string total_collateral = 7 [ (gogoproto.moretags) = "yaml:\"total_collateral\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; + string total_withdrawing = 8 [ (gogoproto.moretags) = "yaml:\"total_withdrawing\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; + string total_shield = 9 [ (gogoproto.moretags) = "yaml:\"total_shield\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; + string total_claimed = 10 [ (gogoproto.moretags) = "yaml:\"total_claimed\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; + MixedDecCoins service_fees = 11 [ (gogoproto.moretags) = "yaml:\"service_fees\"", (gogoproto.nullable) = false ]; + MixedDecCoins remaining_service_fees = 12 [ (gogoproto.moretags) = "yaml:\"remaining_service_fees\"", (gogoproto.nullable) = false ]; + repeated Pool pools = 13 [ (gogoproto.moretags) = "yaml:\"pools\"", (gogoproto.nullable) = false ]; + repeated Provider providers = 14 [ (gogoproto.moretags) = "yaml:\"providers\"", (gogoproto.nullable) = false ]; + repeated PurchaseList purchase_lists = 15 [ (gogoproto.moretags) = "yaml:\"purchases\"", (gogoproto.nullable) = false ]; + repeated Withdraw withdraws = 16 [ (gogoproto.moretags) = "yaml:\"withdraws\"", (gogoproto.nullable) = false ]; + google.protobuf.Timestamp last_update_time = 17 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"last_update_time\""]; + string shield_staking_rate = 18 [ (gogoproto.moretags) = "yaml:\"shield_staking_rate\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; + string global_staking_pool = 19 [ (gogoproto.moretags) = "yaml:\"global_staking_pool\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; + repeated ShieldStaking stake_for_shields = 20 [ (gogoproto.moretags) = "yaml:\"stake_for_shields\"", (gogoproto.nullable) = false ]; + repeated OriginalStaking original_stakings = 21 [ (gogoproto.moretags) = "yaml:\"original_stakings\"", (gogoproto.nullable) = false ]; + repeated ProposalIDReimbursementPair proposalID_reimbursement_pairs = 22 [ (gogoproto.moretags) = "yaml:\"proposalID_reimbursement_pairs\"", (gogoproto.nullable) = false ]; } message OriginalStaking { @@ -86,3 +86,13 @@ message ClaimProposalParams { string deposit_rate = 4 [ (gogoproto.moretags) = "yaml:\"deposit_rate\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; string fees_rate = 5 [ (gogoproto.moretags) = "yaml:\"fees_rate\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; } + +// DistributionParams defines the parameters for shield block reward. +message DistributionParams { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string model_param_a = 1 [ (gogoproto.moretags) = "yaml:\"model_param_a\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; + string model_param_b = 2 [ (gogoproto.moretags) = "yaml:\"model_param_b\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; + string max_leverage = 3 [ (gogoproto.moretags) = "yaml:\"max_leverage\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; +} diff --git a/proto/shentu/shield/v1alpha1/query.proto b/proto/shentu/shield/v1alpha1/query.proto index 5f0b55f59..1e7d2f757 100644 --- a/proto/shentu/shield/v1alpha1/query.proto +++ b/proto/shentu/shield/v1alpha1/query.proto @@ -55,6 +55,10 @@ service Query { option (google.api.http).get = "/shentu/shield/v1alpha1/claim_params"; } + rpc DistrParams(QueryDistrParamsRequest) returns (QueryDistrParamsResponse) { + option (google.api.http).get = "/shentu/shield/v1alpha1/distr_params"; + } + rpc ShieldStatus(QueryShieldStatusRequest) returns (QueryShieldStatusResponse) { option (google.api.http).get = "/shentu/shield/v1alpha1/status"; } @@ -162,6 +166,14 @@ message QueryClaimParamsResponse { ClaimProposalParams params = 1 [(gogoproto.nullable) = false]; } +message QueryDistrParamsRequest { +} + +message QueryDistrParamsResponse { + DistributionParams params = 1 [(gogoproto.nullable) = false]; +} + + message QueryShieldStatusRequest { } diff --git a/proto/shentu/shield/v1alpha1/shield.proto b/proto/shentu/shield/v1alpha1/shield.proto index cb3321301..0e6e7b650 100644 --- a/proto/shentu/shield/v1alpha1/shield.proto +++ b/proto/shentu/shield/v1alpha1/shield.proto @@ -5,7 +5,6 @@ import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos_proto/cosmos.proto"; import "google/protobuf/timestamp.proto"; -import "gogoproto/gogo.proto"; option go_package = "github.com/certikfoundation/shentu/x/shield/types"; diff --git a/x/gov/types/gov.pb.go b/x/gov/types/gov.pb.go index f17774a58..2f240c44c 100644 --- a/x/gov/types/gov.pb.go +++ b/x/gov/types/gov.pb.go @@ -1947,4 +1947,4 @@ var ( ErrInvalidLengthGov = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGov = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group") -) \ No newline at end of file +) diff --git a/x/gov/types/query.pb.go b/x/gov/types/query.pb.go index 7f6060609..b44d67fb5 100644 --- a/x/gov/types/query.pb.go +++ b/x/gov/types/query.pb.go @@ -3907,4 +3907,4 @@ var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) \ No newline at end of file +) diff --git a/x/gov/types/query.pb.gw.go b/x/gov/types/query.pb.gw.go index da5424f3d..d18705ab8 100644 --- a/x/gov/types/query.pb.gw.go +++ b/x/gov/types/query.pb.gw.go @@ -928,4 +928,4 @@ var ( forward_Query_Deposits_0 = runtime.ForwardResponseMessage forward_Query_TallyResult_0 = runtime.ForwardResponseMessage -) \ No newline at end of file +) diff --git a/x/mint/abci.go b/x/mint/abci.go index a1ccf28bf..605f39b1f 100644 --- a/x/mint/abci.go +++ b/x/mint/abci.go @@ -37,10 +37,13 @@ func BeginBlocker(ctx sdk.Context, k keeper.Keeper) { } communityPoolRatio := k.GetCommunityPoolRatio(ctx) - communityPoolCoins := k.GetPoolMint(ctx, communityPoolRatio, mintedCoin) + communityPoolCoin := k.GetPoolMint(ctx, communityPoolRatio, mintedCoin) + communityPoolCoins := sdk.NewCoins(communityPoolCoin) + remainderCoin := mintedCoin.Sub(communityPoolCoin) - shieldStakeForShieldPoolRatio := k.GetShieldStakeForShieldPoolRatio(ctx) - SPPCoins := k.GetPoolMint(ctx, shieldStakeForShieldPoolRatio, mintedCoin) + shieldBlockRewardRatio := k.GetShieldRatio(ctx) + SPPCoin := k.GetPoolMint(ctx, shieldBlockRewardRatio, remainderCoin) + SPPCoins := sdk.NewCoins(SPPCoin) collectedFeesCoins := mintedCoins.Sub(communityPoolCoins).Sub(SPPCoins) // send the minted coins to the fee collector account diff --git a/x/mint/abci_test.go b/x/mint/abci_test.go index f7ccb76e4..e6608b9f2 100644 --- a/x/mint/abci_test.go +++ b/x/mint/abci_test.go @@ -18,7 +18,7 @@ func TestBeginBlocker(t *testing.T) { ctx := app.BaseApp.NewContext(false, tmproto.Header{Time: time.Now().UTC()}) k := app.MintKeeper - p := minttypes.DefaultParams() + p := mint.DefaultGenesisState().GetParams() k.SetParams(ctx, p) type args struct { minter minttypes.Minter diff --git a/x/mint/keeper/keeper.go b/x/mint/keeper/keeper.go index fa2164aa4..f5127a0a3 100644 --- a/x/mint/keeper/keeper.go +++ b/x/mint/keeper/keeper.go @@ -63,20 +63,15 @@ func (k Keeper) GetCommunityPoolRatio(ctx sdk.Context) sdk.Dec { return sdk.NewDec(0) } -// GetShieldStakeForShieldPoolRatio returns the current ratio of +// GetShieldRatio returns the current ratio of // shield staking pool compared to the total supply. -func (k Keeper) GetShieldStakeForShieldPoolRatio(ctx sdk.Context) sdk.Dec { - pool := k.shieldKeeper.GetGlobalShieldStakingPool(ctx) - totalBondedTokensDec := k.StakingTokenSupply(ctx).ToDec() - if totalBondedTokensDec.IsZero() { - return sdk.ZeroDec() - } - return pool.ToDec().Quo(totalBondedTokensDec) +func (k Keeper) GetShieldRatio(ctx sdk.Context) sdk.Dec { + return k.shieldKeeper.GetShieldBlockRewardRatio(ctx) } // GetPoolMint returns Coins that are about to be minted towards the community pool. -func (k Keeper) GetPoolMint(ctx sdk.Context, ratio sdk.Dec, mintedCoin sdk.Coin) sdk.Coins { +func (k Keeper) GetPoolMint(ctx sdk.Context, ratio sdk.Dec, mintedCoin sdk.Coin) sdk.Coin { communityPoolMintDec := ratio.MulInt(mintedCoin.Amount) amount := communityPoolMintDec.TruncateInt() - return sdk.Coins{sdk.NewCoin(k.stakingKeeper.BondDenom(ctx), amount)} + return sdk.NewCoin(k.stakingKeeper.BondDenom(ctx), amount) } diff --git a/x/mint/types/expected_keepers.go b/x/mint/types/expected_keepers.go index f4a94d5bd..135369382 100644 --- a/x/mint/types/expected_keepers.go +++ b/x/mint/types/expected_keepers.go @@ -41,4 +41,5 @@ type DistributionKeeper interface { type ShieldKeeper interface { GetGlobalShieldStakingPool(ctx sdk.Context) sdk.Int FundShieldBlockRewards(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error + GetShieldBlockRewardRatio(ctx sdk.Context) sdk.Dec } diff --git a/x/shield/client/cli/query.go b/x/shield/client/cli/query.go index 4bb1aabc6..da4557d3b 100644 --- a/x/shield/client/cli/query.go +++ b/x/shield/client/cli/query.go @@ -36,6 +36,7 @@ func GetQueryCmd() *cobra.Command { GetCmdProviders(), GetCmdPoolParams(), GetCmdClaimParams(), + GetCmdDistrParams(), GetCmdStatus(), GetCmdStaking(), GetCmdShieldStakingRate(), @@ -391,6 +392,32 @@ func GetCmdClaimParams() *cobra.Command { return cmd } +// GetCmdDistrParams returns the command for querying distribution parameters. +func GetCmdDistrParams() *cobra.Command { + cmd := &cobra.Command{ + Use: "distr-params", + Short: "get distribution parameters", + Args: cobra.ExactArgs(0), + RunE: func(cmd *cobra.Command, args []string) error { + cliCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + queryClient := types.NewQueryClient(cliCtx) + + res, err := queryClient.DistrParams(cmd.Context(), &types.QueryDistrParamsRequest{}) + if err != nil { + return err + } + + return cliCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + return cmd +} + // GetCmdStatus returns the command for querying shield status. func GetCmdStatus() *cobra.Command { cmd := &cobra.Command{ diff --git a/x/shield/genesis.go b/x/shield/genesis.go index 9c2407085..0523e2641 100644 --- a/x/shield/genesis.go +++ b/x/shield/genesis.go @@ -15,6 +15,7 @@ import ( func InitGenesis(ctx sdk.Context, k keeper.Keeper, data types.GenesisState) []abci.ValidatorUpdate { k.SetPoolParams(ctx, data.PoolParams) k.SetClaimProposalParams(ctx, data.ClaimProposalParams) + k.SetDistributionParams(ctx, data.DistributionParams) adminAddr := sdk.AccAddress{} var err error @@ -77,6 +78,7 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, data types.GenesisState) []ab func ExportGenesis(ctx sdk.Context, k keeper.Keeper) types.GenesisState { poolParams := k.GetPoolParams(ctx) claimProposalParams := k.GetClaimProposalParams(ctx) + distrParams := k.GetDistributionParams(ctx) shieldAdmin := k.GetAdmin(ctx) totalCollateral := k.GetTotalCollateral(ctx) totalWithdrawing := k.GetTotalWithdrawing(ctx) @@ -97,7 +99,7 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) types.GenesisState { originalStaking := k.GetAllOriginalStakings(ctx) reimbursements := k.GetAllProposalIDReimbursementPairs(ctx) - return types.NewGenesisState(shieldAdmin, nextPoolID, nextPurchaseID, poolParams, claimProposalParams, + return types.NewGenesisState(shieldAdmin, nextPoolID, nextPurchaseID, poolParams, claimProposalParams, distrParams, totalCollateral, totalWithdrawing, totalShield, totalClaimed, serviceFees, remainingServiceFees, pools, providers, purchaseLists, withdraws, lastUpdateTime, stakingPurchaseRate, globalStakingPool, stakingPurchases, originalStaking, reimbursements) } diff --git a/x/shield/keeper/grpc_query.go b/x/shield/keeper/grpc_query.go index 21d6bbc49..f30cada06 100644 --- a/x/shield/keeper/grpc_query.go +++ b/x/shield/keeper/grpc_query.go @@ -164,6 +164,16 @@ func (q Keeper) ClaimParams(c context.Context, req *types.QueryClaimParamsReques return &types.QueryClaimParamsResponse{Params: q.GetClaimProposalParams(ctx)}, nil } +// DistrParams queries shield distribution parameters. +func (q Keeper) DistrParams(c context.Context, req *types.QueryDistrParamsRequest) (*types.QueryDistrParamsResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + ctx := sdk.UnwrapSDKContext(c) + + return &types.QueryDistrParamsResponse{Params: q.GetDistributionParams(ctx)}, nil +} + // ShieldStatus queries the global status of the shield module. func (q Keeper) ShieldStatus(c context.Context, req *types.QueryShieldStatusRequest) (*types.QueryShieldStatusResponse, error) { if req == nil { diff --git a/x/shield/keeper/migrations.go b/x/shield/keeper/migrations.go new file mode 100644 index 000000000..4a2624847 --- /dev/null +++ b/x/shield/keeper/migrations.go @@ -0,0 +1,26 @@ +package keeper + +import ( + "github.com/gogo/protobuf/grpc" + + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/certikfoundation/shentu/v2/x/shield/legacy/v232" +) + +// Migrator is a struct for handling in-place store migrations. +type Migrator struct { + keeper Keeper + queryServer grpc.Server +} + +// NewMigrator returns a new Migrator. +func NewMigrator(keeper Keeper, queryServer grpc.Server) Migrator { + return Migrator{keeper: keeper, queryServer: queryServer} +} + +// Migrate1to2 migrates from version 1 to 2. +func (m Migrator) Migrate1to2(ctx sdk.Context) error { + v232.MigrateStore(ctx, m.keeper.paramSpace) + return nil +} diff --git a/x/shield/keeper/params.go b/x/shield/keeper/params.go index 1adad42fb..6e7622f37 100644 --- a/x/shield/keeper/params.go +++ b/x/shield/keeper/params.go @@ -40,3 +40,14 @@ func (k Keeper) GetShieldStakingRate(ctx sdk.Context) (rate sdk.Dec) { func (k Keeper) SetShieldStakingRate(ctx sdk.Context, rate sdk.Dec) { k.paramSpace.Set(ctx, types.ParamStoreKeyStakingShieldRate, &rate) } + +// GetDistributionParams returns distribution parameters. +func (k Keeper) GetDistributionParams(ctx sdk.Context) (distrParams types.DistributionParams) { + k.paramSpace.Get(ctx, types.ParamStoreKeyDistribution, &distrParams) + return +} + +// SetDistributionParams sets distribution parameters. +func (k Keeper) SetDistributionParams(ctx sdk.Context, dp types.DistributionParams) { + k.paramSpace.Set(ctx, types.ParamStoreKeyDistribution, &dp) +} diff --git a/x/shield/keeper/querier.go b/x/shield/keeper/querier.go index c7349db8c..174dfd979 100644 --- a/x/shield/keeper/querier.go +++ b/x/shield/keeper/querier.go @@ -38,6 +38,8 @@ func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier { return queryPoolParams(ctx, path[1:], k, legacyQuerierCdc) case types.QueryClaimParams: return queryClaimParams(ctx, path[1:], k, legacyQuerierCdc) + case types.QueryDistrParams: + return queryDistrParams(ctx, path[1:], k, legacyQuerierCdc) case types.QueryStatus: return queryGlobalState(ctx, path[1:], k, legacyQuerierCdc) case types.QueryStakedForShield: @@ -251,6 +253,20 @@ func queryClaimParams(ctx sdk.Context, path []string, k Keeper, legacyQuerierCdc return res, nil } +func queryDistrParams(ctx sdk.Context, path []string, k Keeper, legacyQuerierCdc *codec.LegacyAmino) (res []byte, err error) { + if err := validatePathLength(path, 0); err != nil { + return nil, err + } + + params := k.GetDistributionParams(ctx) + + res, err = codec.MarshalJSONIndent(legacyQuerierCdc, params) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrJSONMarshal, err.Error()) + } + return res, nil +} + func queryGlobalState(ctx sdk.Context, path []string, k Keeper, legacyQuerierCdc *codec.LegacyAmino) (res []byte, err error) { if err := validatePathLength(path, 0); err != nil { return nil, err diff --git a/x/shield/keeper/rewards.go b/x/shield/keeper/rewards.go index d9bbac8e4..c2e45ae2b 100644 --- a/x/shield/keeper/rewards.go +++ b/x/shield/keeper/rewards.go @@ -34,3 +34,39 @@ func (k Keeper) PayoutNativeRewards(ctx sdk.Context, addr sdk.AccAddress) (sdk.C } return ctkRewards, nil } + +// GetShieldBlockRewardRatio calculates the dynamic ratio for block rewards to shield module, based on total shield and total collateral. +func (k Keeper) GetShieldBlockRewardRatio(ctx sdk.Context) sdk.Dec { + totalShield := k.GetTotalShield(ctx) + totalCollateral := k.GetTotalCollateral(ctx) + totalBondedTokens := k.bk.GetAllBalances(ctx, k.sk.GetBondedPool(ctx).GetAddress()).AmountOf(k.BondDenom(ctx)).ToDec() // c + n + totalShieldDeposit := k.GetGlobalShieldStakingPool(ctx).ToDec() // d + + var leverage sdk.Dec // l = (total shield) / (total collateral) + if totalCollateral.IsZero() { + leverage = sdk.ZeroDec() + } else { + leverage = totalShield.ToDec().Quo(totalCollateral.ToDec()) + } + + blockRewardParams := k.GetDistributionParams(ctx) + modelParamA := blockRewardParams.ModelParamA // a + modelParamB := blockRewardParams.ModelParamB // b + targetLeverage := blockRewardParams.MaxLeverage // L + + /* The non-linear model: + * c+n l d + * r = -------- ( a + 2(b - a) * ------- + -----) + * c+n+d l + L c+n + */ + if leverage.Add(targetLeverage).IsZero() || totalBondedTokens.IsZero() { + return sdk.ZeroDec() + } else { + leading := totalBondedTokens.Quo(totalBondedTokens.Add(totalShieldDeposit)) // (c+n)/(c+n+d) + first := modelParamA // a + second := leverage.Quo(leverage.Add(targetLeverage)).Mul(modelParamB.Sub(modelParamA).MulInt64(2)) // 2(b-a)(l/l+L) + third := totalShieldDeposit.Quo(totalBondedTokens) // d/(c+n) + inner := first.Add(second).Add(third) + return leading.Mul(inner) + } +} diff --git a/x/shield/legacy/v232/store.go b/x/shield/legacy/v232/store.go new file mode 100644 index 000000000..668de23c7 --- /dev/null +++ b/x/shield/legacy/v232/store.go @@ -0,0 +1,21 @@ +package v232 + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/certikfoundation/shentu/v2/x/shield/types" +) + +// MigrateStore performs in-place store migrations from v2.3.1/v2.3.2 to v2.4.0. +// The migration includes: +// +// - Setting the MinCommissionRate param in the paramstore +func MigrateStore(ctx sdk.Context, paramstore types.ParamSubspace) { + migrateParamsStore(ctx, paramstore) +} + +func migrateParamsStore(ctx sdk.Context, paramstore types.ParamSubspace) { + ctx.Logger().Info("Adding Additional Shield Params..") + blockRewardParams := types.DefaultDistributionParams() + paramstore.Set(ctx, types.ParamStoreKeyDistribution, &blockRewardParams) +} diff --git a/x/shield/legacy/v232/store_test.go b/x/shield/legacy/v232/store_test.go new file mode 100644 index 000000000..3bfd9df8a --- /dev/null +++ b/x/shield/legacy/v232/store_test.go @@ -0,0 +1,61 @@ +package v232_test + +import ( + "testing" + "time" + + "github.com/stretchr/testify/suite" + + tmproto "github.com/tendermint/tendermint/proto/tendermint/types" + + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/certikfoundation/shentu/v2/simapp" + "github.com/certikfoundation/shentu/v2/x/shield/keeper" + "github.com/certikfoundation/shentu/v2/x/shield/types" +) + +//shared test +type MigrationTestSuite struct { + suite.Suite + + app *simapp.SimApp + ctx sdk.Context + keeper keeper.Keeper +} + +func (suite *MigrationTestSuite) SetupTest() { + suite.app = simapp.Setup(false) + suite.ctx = suite.app.BaseApp.NewContext(false, tmproto.Header{Time: time.Now().UTC()}) + suite.keeper = suite.app.ShieldKeeper +} + +func (suite *MigrationTestSuite) TestMigrateParams() { + tests := []struct { + name string + description string + newParams types.DistributionParams + expectedError bool + }{ + { + name: "Zero for all", + description: "Set all parameter constants to zero", + newParams: types.NewDistributionParams(sdk.ZeroDec(), sdk.ZeroDec(), sdk.ZeroDec()), + }, + { + name: "One for all", + description: "Set all parameter constants to one", + newParams: types.NewDistributionParams(sdk.OneDec(), sdk.OneDec(), sdk.OneDec()), + }, + } + + for _, tc := range tests { + suite.keeper.SetDistributionParams(suite.ctx, tc.newParams) + actual := suite.keeper.GetDistributionParams(suite.ctx) + suite.Require().Equal(actual, tc.newParams) + } +} + +func TestPoolTestSuite(t *testing.T) { + suite.Run(t, new(MigrationTestSuite)) +} diff --git a/x/shield/module.go b/x/shield/module.go index 88907a839..1086b19a0 100644 --- a/x/shield/module.go +++ b/x/shield/module.go @@ -141,6 +141,12 @@ func (am AppModule) LegacyQuerierHandler(legacyQuerierCdc *codec.LegacyAmino) sd func (am AppModule) RegisterServices(cfg module.Configurator) { types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) types.RegisterQueryServer(cfg.QueryServer(), am.keeper) + + m := keeper.NewMigrator(am.keeper, cfg.QueryServer()) + err := cfg.RegisterMigration(types.ModuleName, 1, m.Migrate1to2) + if err != nil { + panic(err) + } } // InitGenesis performs genesis initialization for the shield module. @@ -157,7 +163,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw } // ConsensusVersion implements AppModule/ConsensusVersion. -func (AppModule) ConsensusVersion() uint64 { return 1 } +func (AppModule) ConsensusVersion() uint64 { return 2 } // BeginBlock returns the begin blocker for the shield module. func (am AppModule) BeginBlock(ctx sdk.Context, rbb abci.RequestBeginBlock) { diff --git a/x/shield/types/expected_keepers.go b/x/shield/types/expected_keepers.go index 069dc7a7f..0b1851639 100644 --- a/x/shield/types/expected_keepers.go +++ b/x/shield/types/expected_keepers.go @@ -62,6 +62,7 @@ type StakingKeeper interface { BondDenom(sdk.Context) string UnbondingTime(sdk.Context) time.Duration + GetBondedPool(ctx sdk.Context) authtypes.ModuleAccountI } // BankKeeper defines the expected bank keeper. diff --git a/x/shield/types/genesis.go b/x/shield/types/genesis.go index adf9fe0a9..209321260 100644 --- a/x/shield/types/genesis.go +++ b/x/shield/types/genesis.go @@ -11,7 +11,7 @@ import ( // NewGenesisState creates a new genesis state. func NewGenesisState(shieldAdmin sdk.AccAddress, nextPoolID, nextPurchaseID uint64, poolParams PoolParams, - claimProposalParams ClaimProposalParams, totalCollateral, totalWithdrawing, totalShield, totalClaimed sdk.Int, serviceFees, remainingServiceFees MixedDecCoins, + claimProposalParams ClaimProposalParams, distrParams DistributionParams, totalCollateral, totalWithdrawing, totalShield, totalClaimed sdk.Int, serviceFees, remainingServiceFees MixedDecCoins, pools []Pool, providers []Provider, purchase []PurchaseList, withdraws []Withdraw, lastUpdateTime time.Time, sSRate sdk.Dec, globalStakingPool sdk.Int, stakingPurchases []ShieldStaking, originalStaking []OriginalStaking, proposalIDReimbursementPairs []ProposalIDReimbursementPair) GenesisState { return GenesisState{ @@ -20,6 +20,7 @@ func NewGenesisState(shieldAdmin sdk.AccAddress, nextPoolID, nextPurchaseID uint NextPurchaseId: nextPurchaseID, PoolParams: poolParams, ClaimProposalParams: claimProposalParams, + DistributionParams: distrParams, TotalCollateral: totalCollateral, TotalWithdrawing: totalWithdrawing, TotalShield: totalShield, @@ -46,6 +47,7 @@ func DefaultGenesisState() *GenesisState { NextPurchaseId: uint64(1), PoolParams: DefaultPoolParams(), ClaimProposalParams: DefaultClaimProposalParams(), + DistributionParams: DefaultDistributionParams(), TotalCollateral: sdk.ZeroInt(), TotalWithdrawing: sdk.ZeroInt(), TotalShield: sdk.ZeroInt(), diff --git a/x/shield/types/genesis.pb.go b/x/shield/types/genesis.pb.go index 5009109d3..cd8e08792 100644 --- a/x/shield/types/genesis.pb.go +++ b/x/shield/types/genesis.pb.go @@ -37,22 +37,23 @@ type GenesisState struct { NextPurchaseId uint64 `protobuf:"varint,3,opt,name=next_purchase_id,json=nextPurchaseId,proto3" json:"next_purchase_id,omitempty" yaml:"next_purchase_id"` PoolParams PoolParams `protobuf:"bytes,4,opt,name=pool_params,json=poolParams,proto3" json:"pool_params" yaml:"pool_params"` ClaimProposalParams ClaimProposalParams `protobuf:"bytes,5,opt,name=claim_proposal_params,json=claimProposalParams,proto3" json:"claim_proposal_params" yaml:"claim_proposal_params"` - TotalCollateral github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=total_collateral,json=totalCollateral,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_collateral" yaml:"total_collateral"` - TotalWithdrawing github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=total_withdrawing,json=totalWithdrawing,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_withdrawing" yaml:"total_withdrawing"` - TotalShield github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,8,opt,name=total_shield,json=totalShield,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_shield" yaml:"total_shield"` - TotalClaimed github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=total_claimed,json=totalClaimed,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_claimed" yaml:"total_claimed"` - ServiceFees MixedDecCoins `protobuf:"bytes,10,opt,name=service_fees,json=serviceFees,proto3" json:"service_fees" yaml:"service_fees"` - RemainingServiceFees MixedDecCoins `protobuf:"bytes,11,opt,name=remaining_service_fees,json=remainingServiceFees,proto3" json:"remaining_service_fees" yaml:"remaining_service_fees"` - Pools []Pool `protobuf:"bytes,12,rep,name=pools,proto3" json:"pools" yaml:"pools"` - Providers []Provider `protobuf:"bytes,13,rep,name=providers,proto3" json:"providers" yaml:"providers"` - PurchaseLists []PurchaseList `protobuf:"bytes,14,rep,name=purchase_lists,json=purchaseLists,proto3" json:"purchase_lists" yaml:"purchases"` - Withdraws []Withdraw `protobuf:"bytes,15,rep,name=withdraws,proto3" json:"withdraws" yaml:"withdraws"` - LastUpdateTime time.Time `protobuf:"bytes,16,opt,name=last_update_time,json=lastUpdateTime,proto3,stdtime" json:"last_update_time" yaml:"last_update_time"` - ShieldStakingRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,17,opt,name=shield_staking_rate,json=shieldStakingRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"shield_staking_rate" yaml:"shield_staking_rate"` - GlobalStakingPool github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,18,opt,name=global_staking_pool,json=globalStakingPool,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"global_staking_pool" yaml:"global_staking_pool"` - StakeForShields []ShieldStaking `protobuf:"bytes,19,rep,name=stake_for_shields,json=stakeForShields,proto3" json:"stake_for_shields" yaml:"stake_for_shields"` - OriginalStakings []OriginalStaking `protobuf:"bytes,20,rep,name=original_stakings,json=originalStakings,proto3" json:"original_stakings" yaml:"original_stakings"` - ProposalIDReimbursementPairs []ProposalIDReimbursementPair `protobuf:"bytes,21,rep,name=proposalID_reimbursement_pairs,json=proposalIDReimbursementPairs,proto3" json:"proposalID_reimbursement_pairs" yaml:"proposalID_reimbursement_pairs"` + DistributionParams DistributionParams `protobuf:"bytes,6,opt,name=distribution_params,json=distributionParams,proto3" json:"distribution_params" yaml:"distribution_params"` + TotalCollateral github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=total_collateral,json=totalCollateral,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_collateral" yaml:"total_collateral"` + TotalWithdrawing github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,8,opt,name=total_withdrawing,json=totalWithdrawing,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_withdrawing" yaml:"total_withdrawing"` + TotalShield github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=total_shield,json=totalShield,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_shield" yaml:"total_shield"` + TotalClaimed github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,10,opt,name=total_claimed,json=totalClaimed,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_claimed" yaml:"total_claimed"` + ServiceFees MixedDecCoins `protobuf:"bytes,11,opt,name=service_fees,json=serviceFees,proto3" json:"service_fees" yaml:"service_fees"` + RemainingServiceFees MixedDecCoins `protobuf:"bytes,12,opt,name=remaining_service_fees,json=remainingServiceFees,proto3" json:"remaining_service_fees" yaml:"remaining_service_fees"` + Pools []Pool `protobuf:"bytes,13,rep,name=pools,proto3" json:"pools" yaml:"pools"` + Providers []Provider `protobuf:"bytes,14,rep,name=providers,proto3" json:"providers" yaml:"providers"` + PurchaseLists []PurchaseList `protobuf:"bytes,15,rep,name=purchase_lists,json=purchaseLists,proto3" json:"purchase_lists" yaml:"purchases"` + Withdraws []Withdraw `protobuf:"bytes,16,rep,name=withdraws,proto3" json:"withdraws" yaml:"withdraws"` + LastUpdateTime time.Time `protobuf:"bytes,17,opt,name=last_update_time,json=lastUpdateTime,proto3,stdtime" json:"last_update_time" yaml:"last_update_time"` + ShieldStakingRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,18,opt,name=shield_staking_rate,json=shieldStakingRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"shield_staking_rate" yaml:"shield_staking_rate"` + GlobalStakingPool github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,19,opt,name=global_staking_pool,json=globalStakingPool,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"global_staking_pool" yaml:"global_staking_pool"` + StakeForShields []ShieldStaking `protobuf:"bytes,20,rep,name=stake_for_shields,json=stakeForShields,proto3" json:"stake_for_shields" yaml:"stake_for_shields"` + OriginalStakings []OriginalStaking `protobuf:"bytes,21,rep,name=original_stakings,json=originalStakings,proto3" json:"original_stakings" yaml:"original_stakings"` + ProposalIDReimbursementPairs []ProposalIDReimbursementPair `protobuf:"bytes,22,rep,name=proposalID_reimbursement_pairs,json=proposalIDReimbursementPairs,proto3" json:"proposalID_reimbursement_pairs" yaml:"proposalID_reimbursement_pairs"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -287,6 +288,46 @@ func (m *ClaimProposalParams) XXX_DiscardUnknown() { var xxx_messageInfo_ClaimProposalParams proto.InternalMessageInfo +// DistributionParams defines the parameters for shield block reward. +type DistributionParams struct { + ModelParamA github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=model_param_a,json=modelParamA,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"model_param_a" yaml:"model_param_a"` + ModelParamB github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=model_param_b,json=modelParamB,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"model_param_b" yaml:"model_param_b"` + MaxLeverage github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=max_leverage,json=maxLeverage,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_leverage" yaml:"max_leverage"` +} + +func (m *DistributionParams) Reset() { *m = DistributionParams{} } +func (m *DistributionParams) String() string { return proto.CompactTextString(m) } +func (*DistributionParams) ProtoMessage() {} +func (*DistributionParams) Descriptor() ([]byte, []int) { + return fileDescriptor_c089c09a119aaa04, []int{6} +} +func (m *DistributionParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DistributionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DistributionParams.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 *DistributionParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_DistributionParams.Merge(m, src) +} +func (m *DistributionParams) XXX_Size() int { + return m.Size() +} +func (m *DistributionParams) XXX_DiscardUnknown() { + xxx_messageInfo_DistributionParams.DiscardUnknown(m) +} + +var xxx_messageInfo_DistributionParams proto.InternalMessageInfo + func init() { proto.RegisterType((*GenesisState)(nil), "shentu.shield.v1alpha1.GenesisState") proto.RegisterType((*OriginalStaking)(nil), "shentu.shield.v1alpha1.OriginalStaking") @@ -294,6 +335,7 @@ func init() { proto.RegisterType((*Reimbursement)(nil), "shentu.shield.v1alpha1.Reimbursement") proto.RegisterType((*PoolParams)(nil), "shentu.shield.v1alpha1.PoolParams") proto.RegisterType((*ClaimProposalParams)(nil), "shentu.shield.v1alpha1.ClaimProposalParams") + proto.RegisterType((*DistributionParams)(nil), "shentu.shield.v1alpha1.DistributionParams") } func init() { @@ -301,101 +343,107 @@ func init() { } var fileDescriptor_c089c09a119aaa04 = []byte{ - // 1493 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0xcf, 0x6f, 0x1b, 0xc5, - 0x17, 0xcf, 0xe6, 0x47, 0xbf, 0xcd, 0xd8, 0x49, 0xec, 0x71, 0x9a, 0xee, 0x37, 0x0d, 0x76, 0x34, - 0x6d, 0x21, 0x12, 0xaa, 0x4d, 0xda, 0x03, 0xd0, 0x0b, 0xc2, 0x49, 0x0b, 0x81, 0x22, 0xa2, 0x0d, - 0xa8, 0x08, 0x84, 0x96, 0xb1, 0x77, 0xe2, 0x8c, 0xb2, 0xbb, 0xb3, 0xda, 0x19, 0xa7, 0x8d, 0xe8, - 0x09, 0x09, 0x89, 0x63, 0x2f, 0x48, 0x70, 0xeb, 0x11, 0x21, 0xf1, 0x7f, 0x54, 0xe2, 0xd2, 0x0b, - 0x08, 0x71, 0x48, 0x51, 0x7b, 0xe1, 0x9c, 0xbf, 0x00, 0xcd, 0x8f, 0xf5, 0xce, 0x26, 0x76, 0x5a, - 0x4b, 0x3d, 0x25, 0xf3, 0xe6, 0xbd, 0xcf, 0x67, 0xde, 0x9b, 0xf7, 0xde, 0xbc, 0x35, 0xb8, 0xc2, - 0xf7, 0x48, 0x2c, 0xfa, 0x2d, 0xbe, 0x47, 0x49, 0x18, 0xb4, 0x0e, 0xd6, 0x71, 0x98, 0xec, 0xe1, - 0xf5, 0x56, 0x8f, 0xc4, 0x84, 0x53, 0xde, 0x4c, 0x52, 0x26, 0x18, 0x5c, 0xd2, 0x5a, 0x4d, 0xad, - 0xd5, 0xcc, 0xb4, 0x96, 0x17, 0x7b, 0xac, 0xc7, 0x94, 0x4a, 0x4b, 0xfe, 0xa7, 0xb5, 0x97, 0xeb, - 0x5d, 0xc6, 0x23, 0xc6, 0x5b, 0x1d, 0xcc,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3e, 0xf1, 0xd7, 0xf3, 0xfa, 0xc4, 0x97, 0xeb, 0x36, 0x13, 0x49, - 0x05, 0xdd, 0xdf, 0x65, 0xfd, 0x38, 0x50, 0x37, 0xd5, 0x32, 0xbf, 0x1e, 0xdc, 0xcf, 0x7e, 0x3f, - 0x50, 0xc4, 0x9d, 0x73, 0xea, 0x4a, 0x6f, 0xfc, 0x17, 0x00, 0x00, 0xff, 0xff, 0x1f, 0x39, 0x9b, - 0xd6, 0x28, 0x11, 0x00, 0x00, + // 1598 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x4f, 0x6f, 0x5b, 0xc5, + 0x16, 0x8f, 0xf3, 0xa7, 0xaf, 0x19, 0xdb, 0x89, 0x3d, 0x4e, 0xd3, 0xfb, 0xd2, 0x3c, 0x3b, 0x9a, + 0xb6, 0xef, 0x45, 0x0f, 0xd5, 0x26, 0xed, 0x02, 0xe8, 0x06, 0xd5, 0x49, 0x03, 0x81, 0x20, 0xa2, + 0x1b, 0x50, 0x11, 0x08, 0x5d, 0xc6, 0xbe, 0x13, 0x67, 0xc8, 0xbd, 0x77, 0xae, 0xee, 0x8c, 0xd3, + 0x44, 0x54, 0x42, 0x42, 0x42, 0x62, 0xd9, 0x0d, 0x12, 0xec, 0xba, 0x44, 0x48, 0x7c, 0x8f, 0x4a, + 0x6c, 0xba, 0xaa, 0x10, 0x8b, 0xb4, 0x6a, 0x37, 0xac, 0xfb, 0x09, 0xd0, 0xfc, 0xb9, 0xf6, 0x5c, + 0xc7, 0x4e, 0x6b, 0xd1, 0x55, 0x32, 0xe7, 0x9e, 0xf3, 0xfb, 0x9d, 0x39, 0x73, 0xce, 0x99, 0x33, + 0x06, 0x57, 0xf8, 0x3e, 0x89, 0x44, 0xb7, 0xc1, 0xf7, 0x29, 0x09, 0xfc, 0xc6, 0xe1, 0x1a, 0x0e, + 0xe2, 0x7d, 0xbc,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, 0x31, 0x41, 0x36, 0xf6, 0x12, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -431,7 +479,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0xaa + dAtA[i] = 0xb2 } } if len(m.OriginalStakings) > 0 { @@ -447,7 +495,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0xa2 + dAtA[i] = 0xaa } } if len(m.StakeForShields) > 0 { @@ -463,7 +511,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0x9a + dAtA[i] = 0xa2 } } { @@ -477,7 +525,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0x92 + dAtA[i] = 0x9a { size := m.ShieldStakingRate.Size() i -= size @@ -489,7 +537,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0x8a + dAtA[i] = 0x92 n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.LastUpdateTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.LastUpdateTime):]) if err1 != nil { return 0, err1 @@ -499,7 +547,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0x82 + dAtA[i] = 0x8a if len(m.Withdraws) > 0 { for iNdEx := len(m.Withdraws) - 1; iNdEx >= 0; iNdEx-- { { @@ -511,7 +559,9 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x7a + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 } } if len(m.PurchaseLists) > 0 { @@ -525,7 +575,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x72 + dAtA[i] = 0x7a } } if len(m.Providers) > 0 { @@ -539,7 +589,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x6a + dAtA[i] = 0x72 } } if len(m.Pools) > 0 { @@ -553,7 +603,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x62 + dAtA[i] = 0x6a } } { @@ -565,7 +615,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x5a + dAtA[i] = 0x62 { size, err := m.ServiceFees.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -575,7 +625,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x52 + dAtA[i] = 0x5a { size := m.TotalClaimed.Size() i -= size @@ -585,7 +635,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x4a + dAtA[i] = 0x52 { size := m.TotalShield.Size() i -= size @@ -595,7 +645,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x42 + dAtA[i] = 0x4a { size := m.TotalWithdrawing.Size() i -= size @@ -605,7 +655,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x3a + dAtA[i] = 0x42 { size := m.TotalCollateral.Size() i -= size @@ -615,6 +665,16 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x3a + { + size, err := m.DistributionParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x32 { size, err := m.ClaimProposalParams.MarshalToSizedBuffer(dAtA[:i]) @@ -752,12 +812,12 @@ func (m *Reimbursement) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - n7, err7 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.PayoutTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.PayoutTime):]) - if err7 != nil { - return 0, err7 + n8, err8 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.PayoutTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.PayoutTime):]) + if err8 != nil { + return 0, err8 } - i -= n7 - i = encodeVarintGenesis(dAtA, i, uint64(n7)) + i -= n8 + i = encodeVarintGenesis(dAtA, i, uint64(n8)) i-- dAtA[i] = 0x1a if len(m.Beneficiary) > 0 { @@ -828,12 +888,12 @@ func (m *PoolParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x22 - n8, err8 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.WithdrawPeriod, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.WithdrawPeriod):]) - if err8 != nil { - return 0, err8 + n9, err9 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.WithdrawPeriod, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.WithdrawPeriod):]) + if err9 != nil { + return 0, err9 } - i -= n8 - i = encodeVarintGenesis(dAtA, i, uint64(n8)) + i -= n9 + i = encodeVarintGenesis(dAtA, i, uint64(n9)) i-- dAtA[i] = 0x1a { @@ -846,12 +906,12 @@ func (m *PoolParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x12 - n9, err9 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.ProtectionPeriod, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.ProtectionPeriod):]) - if err9 != nil { - return 0, err9 + n10, err10 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.ProtectionPeriod, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.ProtectionPeriod):]) + if err10 != nil { + return 0, err10 } - i -= n9 - i = encodeVarintGenesis(dAtA, i, uint64(n9)) + i -= n10 + i = encodeVarintGenesis(dAtA, i, uint64(n10)) i-- dAtA[i] = 0xa return len(dAtA) - i, nil @@ -911,21 +971,74 @@ func (m *ClaimProposalParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x1a } } - n10, err10 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.PayoutPeriod, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.PayoutPeriod):]) - if err10 != nil { - return 0, err10 - } - i -= n10 - i = encodeVarintGenesis(dAtA, i, uint64(n10)) - i-- - dAtA[i] = 0x12 - n11, err11 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.ClaimPeriod, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.ClaimPeriod):]) + n11, err11 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.PayoutPeriod, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.PayoutPeriod):]) if err11 != nil { return 0, err11 } i -= n11 i = encodeVarintGenesis(dAtA, i, uint64(n11)) i-- + dAtA[i] = 0x12 + n12, err12 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.ClaimPeriod, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.ClaimPeriod):]) + if err12 != nil { + return 0, err12 + } + i -= n12 + i = encodeVarintGenesis(dAtA, i, uint64(n12)) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DistributionParams) 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 *DistributionParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DistributionParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.MaxLeverage.Size() + i -= size + if _, err := m.MaxLeverage.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.ModelParamB.Size() + i -= size + if _, err := m.ModelParamB.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.ModelParamA.Size() + i -= size + if _, err := m.ModelParamA.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0xa return len(dAtA) - i, nil } @@ -961,6 +1074,8 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) l = m.ClaimProposalParams.Size() n += 1 + l + sovGenesis(uint64(l)) + l = m.DistributionParams.Size() + n += 1 + l + sovGenesis(uint64(l)) l = m.TotalCollateral.Size() n += 1 + l + sovGenesis(uint64(l)) l = m.TotalWithdrawing.Size() @@ -994,7 +1109,7 @@ func (m *GenesisState) Size() (n int) { if len(m.Withdraws) > 0 { for _, e := range m.Withdraws { l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) + n += 2 + l + sovGenesis(uint64(l)) } } l = github_com_gogo_protobuf_types.SizeOfStdTime(m.LastUpdateTime) @@ -1119,6 +1234,21 @@ func (m *ClaimProposalParams) Size() (n int) { return n } +func (m *DistributionParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ModelParamA.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = m.ModelParamB.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = m.MaxLeverage.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + func sovGenesis(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -1291,6 +1421,39 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DistributionParams", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.DistributionParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TotalCollateral", wireType) } @@ -1324,7 +1487,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 7: + case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TotalWithdrawing", wireType) } @@ -1358,7 +1521,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 8: + case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TotalShield", wireType) } @@ -1392,7 +1555,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 9: + case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TotalClaimed", wireType) } @@ -1426,7 +1589,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 10: + case 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ServiceFees", wireType) } @@ -1459,7 +1622,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 11: + case 12: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RemainingServiceFees", wireType) } @@ -1492,7 +1655,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 12: + case 13: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pools", wireType) } @@ -1526,7 +1689,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 13: + case 14: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Providers", wireType) } @@ -1560,7 +1723,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 14: + case 15: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PurchaseLists", wireType) } @@ -1594,7 +1757,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 15: + case 16: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Withdraws", wireType) } @@ -1628,7 +1791,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 16: + case 17: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType) } @@ -1661,7 +1824,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 17: + case 18: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ShieldStakingRate", wireType) } @@ -1695,7 +1858,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 18: + case 19: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field GlobalStakingPool", wireType) } @@ -1729,7 +1892,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 19: + case 20: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StakeForShields", wireType) } @@ -1763,7 +1926,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 20: + case 21: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field OriginalStakings", wireType) } @@ -1797,7 +1960,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 21: + case 22: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ProposalIDReimbursementPairs", wireType) } @@ -1837,7 +2000,10 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthGenesis } if (iNdEx + skippy) > l { @@ -1940,7 +2106,10 @@ func (m *OriginalStaking) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthGenesis } if (iNdEx + skippy) > l { @@ -2042,7 +2211,10 @@ func (m *ProposalIDReimbursementPair) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthGenesis } if (iNdEx + skippy) > l { @@ -2191,7 +2363,10 @@ func (m *Reimbursement) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthGenesis } if (iNdEx + skippy) > l { @@ -2409,7 +2584,10 @@ func (m *PoolParams) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthGenesis } if (iNdEx + skippy) > l { @@ -2627,7 +2805,165 @@ func (m *ClaimProposalParams) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DistributionParams) 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 ErrIntOverflowGenesis + } + 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: DistributionParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DistributionParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModelParamA", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ModelParamA.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModelParamB", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ModelParamB.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxLeverage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxLeverage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthGenesis } if (iNdEx + skippy) > l { diff --git a/x/shield/types/params.go b/x/shield/types/params.go index ef518da1e..d20405d86 100644 --- a/x/shield/types/params.go +++ b/x/shield/types/params.go @@ -26,6 +26,11 @@ var ( DefaultClaimProposalDepositRate = sdk.NewDecWithPrec(10, 2) // 10% DefaultClaimProposalFeesRate = sdk.NewDecWithPrec(1, 2) // 1% + // default distribution parameters + DefaultA = sdk.NewDecWithPrec(10, 2) // 0.1 + DefaultB = sdk.NewDecWithPrec(30, 2) // 0.3 + DefaultL = sdk.NewDecWithPrec(1, 0) // 1 + // default value for staking-shield rate parameter DefaultStakingShieldRate = sdk.NewDec(2) ) @@ -35,6 +40,7 @@ var ( ParamStoreKeyPoolParams = []byte("shieldpoolparams") ParamStoreKeyClaimProposalParams = []byte("claimproposalparams") ParamStoreKeyStakingShieldRate = []byte("stakingshieldrateparams") + ParamStoreKeyDistribution = []byte("distributionparams") ) // ParamKeyTable is the key declaration for parameters. @@ -43,6 +49,7 @@ func ParamKeyTable() paramtypes.KeyTable { paramtypes.NewParamSetPair(ParamStoreKeyPoolParams, PoolParams{}, validatePoolParams), paramtypes.NewParamSetPair(ParamStoreKeyClaimProposalParams, ClaimProposalParams{}, validateClaimProposalParams), paramtypes.NewParamSetPair(ParamStoreKeyStakingShieldRate, sdk.Dec{}, validateStakingShieldRateParams), + paramtypes.NewParamSetPair(ParamStoreKeyDistribution, DistributionParams{}, validateDistributionParams), ) } @@ -147,6 +154,42 @@ func DefaultStakingShieldRateParams() sdk.Dec { return sdk.NewDec(2) } +// NewDistributionParams creates a new DistributionParams instance. +func NewDistributionParams(a, b, L sdk.Dec) DistributionParams { + return DistributionParams{ + ModelParamA: a, + ModelParamB: b, + MaxLeverage: L, + } +} + +// DefaultDistributionParams returns a default DistributionParams instance. +func DefaultDistributionParams() DistributionParams { + return NewDistributionParams(DefaultA, DefaultB, DefaultL) +} + +func validateDistributionParams(i interface{}) error { + v, ok := i.(DistributionParams) + if !ok { + return fmt.Errorf("invalid parameter type: %T", i) + } + a := v.ModelParamA + b := v.ModelParamB + L := v.MaxLeverage + + if a.LT(sdk.ZeroDec()) || a.GT(sdk.OneDec()) { + return fmt.Errorf("invalid value for a: %s", a.String()) + } + if b.LT(sdk.ZeroDec()) || b.GT(sdk.OneDec()) { + return fmt.Errorf("invalid value for b: %s", b.String()) + } + if L.LT(sdk.ZeroDec()) { + return fmt.Errorf("invalid value for L: %s", b.String()) + } + + return nil +} + func validateStakingShieldRateParams(i interface{}) error { v, ok := i.(sdk.Dec) if !ok { diff --git a/x/shield/types/querier.go b/x/shield/types/querier.go index 1acd1578d..f6ab7836d 100644 --- a/x/shield/types/querier.go +++ b/x/shield/types/querier.go @@ -17,6 +17,7 @@ const ( QueryProviders = "providers" QueryPoolParams = "pool_params" QueryClaimParams = "claim_params" + QueryDistrParams = "distr_params" QueryStatus = "status" QueryStakedForShield = "staked_for_shield" QueryShieldStakingRate = "shield_staking_rate" diff --git a/x/shield/types/query.pb.go b/x/shield/types/query.pb.go index 6170f5c6f..49d2b5359 100644 --- a/x/shield/types/query.pb.go +++ b/x/shield/types/query.pb.go @@ -923,6 +923,86 @@ func (m *QueryClaimParamsResponse) GetParams() ClaimProposalParams { return ClaimProposalParams{} } +type QueryDistrParamsRequest struct { +} + +func (m *QueryDistrParamsRequest) Reset() { *m = QueryDistrParamsRequest{} } +func (m *QueryDistrParamsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryDistrParamsRequest) ProtoMessage() {} +func (*QueryDistrParamsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1cb9aa5f07f44644, []int{21} +} +func (m *QueryDistrParamsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDistrParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDistrParamsRequest.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 *QueryDistrParamsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDistrParamsRequest.Merge(m, src) +} +func (m *QueryDistrParamsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryDistrParamsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDistrParamsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDistrParamsRequest proto.InternalMessageInfo + +type QueryDistrParamsResponse struct { + Params DistributionParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` +} + +func (m *QueryDistrParamsResponse) Reset() { *m = QueryDistrParamsResponse{} } +func (m *QueryDistrParamsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryDistrParamsResponse) ProtoMessage() {} +func (*QueryDistrParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1cb9aa5f07f44644, []int{22} +} +func (m *QueryDistrParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDistrParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDistrParamsResponse.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 *QueryDistrParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDistrParamsResponse.Merge(m, src) +} +func (m *QueryDistrParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryDistrParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDistrParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDistrParamsResponse proto.InternalMessageInfo + +func (m *QueryDistrParamsResponse) GetParams() DistributionParams { + if m != nil { + return m.Params + } + return DistributionParams{} +} + type QueryShieldStatusRequest struct { } @@ -930,7 +1010,7 @@ func (m *QueryShieldStatusRequest) Reset() { *m = QueryShieldStatusReque func (m *QueryShieldStatusRequest) String() string { return proto.CompactTextString(m) } func (*QueryShieldStatusRequest) ProtoMessage() {} func (*QueryShieldStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1cb9aa5f07f44644, []int{21} + return fileDescriptor_1cb9aa5f07f44644, []int{23} } func (m *QueryShieldStatusRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -972,7 +1052,7 @@ func (m *QueryShieldStatusResponse) Reset() { *m = QueryShieldStatusResp func (m *QueryShieldStatusResponse) String() string { return proto.CompactTextString(m) } func (*QueryShieldStatusResponse) ProtoMessage() {} func (*QueryShieldStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1cb9aa5f07f44644, []int{22} + return fileDescriptor_1cb9aa5f07f44644, []int{24} } func (m *QueryShieldStatusResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1024,7 +1104,7 @@ func (m *QueryShieldStakingRequest) Reset() { *m = QueryShieldStakingReq func (m *QueryShieldStakingRequest) String() string { return proto.CompactTextString(m) } func (*QueryShieldStakingRequest) ProtoMessage() {} func (*QueryShieldStakingRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1cb9aa5f07f44644, []int{23} + return fileDescriptor_1cb9aa5f07f44644, []int{25} } func (m *QueryShieldStakingRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1075,7 +1155,7 @@ func (m *QueryShieldStakingResponse) Reset() { *m = QueryShieldStakingRe func (m *QueryShieldStakingResponse) String() string { return proto.CompactTextString(m) } func (*QueryShieldStakingResponse) ProtoMessage() {} func (*QueryShieldStakingResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1cb9aa5f07f44644, []int{24} + return fileDescriptor_1cb9aa5f07f44644, []int{26} } func (m *QueryShieldStakingResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1118,7 +1198,7 @@ func (m *QueryShieldStakingRateRequest) Reset() { *m = QueryShieldStakin func (m *QueryShieldStakingRateRequest) String() string { return proto.CompactTextString(m) } func (*QueryShieldStakingRateRequest) ProtoMessage() {} func (*QueryShieldStakingRateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1cb9aa5f07f44644, []int{25} + return fileDescriptor_1cb9aa5f07f44644, []int{27} } func (m *QueryShieldStakingRateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1155,7 +1235,7 @@ func (m *QueryShieldStakingRateResponse) Reset() { *m = QueryShieldStaki func (m *QueryShieldStakingRateResponse) String() string { return proto.CompactTextString(m) } func (*QueryShieldStakingRateResponse) ProtoMessage() {} func (*QueryShieldStakingRateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1cb9aa5f07f44644, []int{26} + return fileDescriptor_1cb9aa5f07f44644, []int{28} } func (m *QueryShieldStakingRateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1192,7 +1272,7 @@ func (m *QueryReimbursementRequest) Reset() { *m = QueryReimbursementReq func (m *QueryReimbursementRequest) String() string { return proto.CompactTextString(m) } func (*QueryReimbursementRequest) ProtoMessage() {} func (*QueryReimbursementRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1cb9aa5f07f44644, []int{27} + return fileDescriptor_1cb9aa5f07f44644, []int{29} } func (m *QueryReimbursementRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1236,7 +1316,7 @@ func (m *QueryReimbursementResponse) Reset() { *m = QueryReimbursementRe func (m *QueryReimbursementResponse) String() string { return proto.CompactTextString(m) } func (*QueryReimbursementResponse) ProtoMessage() {} func (*QueryReimbursementResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1cb9aa5f07f44644, []int{28} + return fileDescriptor_1cb9aa5f07f44644, []int{30} } func (m *QueryReimbursementResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1279,7 +1359,7 @@ func (m *QueryReimbursementsRequest) Reset() { *m = QueryReimbursementsR func (m *QueryReimbursementsRequest) String() string { return proto.CompactTextString(m) } func (*QueryReimbursementsRequest) ProtoMessage() {} func (*QueryReimbursementsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1cb9aa5f07f44644, []int{29} + return fileDescriptor_1cb9aa5f07f44644, []int{31} } func (m *QueryReimbursementsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1316,7 +1396,7 @@ func (m *QueryReimbursementsResponse) Reset() { *m = QueryReimbursements func (m *QueryReimbursementsResponse) String() string { return proto.CompactTextString(m) } func (*QueryReimbursementsResponse) ProtoMessage() {} func (*QueryReimbursementsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1cb9aa5f07f44644, []int{30} + return fileDescriptor_1cb9aa5f07f44644, []int{32} } func (m *QueryReimbursementsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1374,6 +1454,8 @@ func init() { proto.RegisterType((*QueryPoolParamsResponse)(nil), "shentu.shield.v1alpha1.QueryPoolParamsResponse") proto.RegisterType((*QueryClaimParamsRequest)(nil), "shentu.shield.v1alpha1.QueryClaimParamsRequest") proto.RegisterType((*QueryClaimParamsResponse)(nil), "shentu.shield.v1alpha1.QueryClaimParamsResponse") + proto.RegisterType((*QueryDistrParamsRequest)(nil), "shentu.shield.v1alpha1.QueryDistrParamsRequest") + proto.RegisterType((*QueryDistrParamsResponse)(nil), "shentu.shield.v1alpha1.QueryDistrParamsResponse") proto.RegisterType((*QueryShieldStatusRequest)(nil), "shentu.shield.v1alpha1.QueryShieldStatusRequest") proto.RegisterType((*QueryShieldStatusResponse)(nil), "shentu.shield.v1alpha1.QueryShieldStatusResponse") proto.RegisterType((*QueryShieldStakingRequest)(nil), "shentu.shield.v1alpha1.QueryShieldStakingRequest") @@ -1391,103 +1473,106 @@ func init() { } var fileDescriptor_1cb9aa5f07f44644 = []byte{ - // 1532 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x98, 0xcf, 0x6f, 0xd4, 0xc6, - 0x17, 0xc0, 0x63, 0x48, 0x02, 0x99, 0x24, 0x7c, 0xc9, 0x90, 0x2f, 0x59, 0x96, 0xb0, 0x1b, 0x26, - 0x24, 0x02, 0x42, 0xd6, 0x6c, 0x52, 0x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2a, 0x1c, 0x08, 0x98, 0x95, 0x60, 0x3c, 0x87, 0x43, 0xdd, 0x39, 0x58, 0x09, 0xe9, - 0x87, 0x29, 0x7c, 0x82, 0xc6, 0x63, 0x29, 0xc0, 0xf6, 0xeb, 0x27, 0x83, 0xb1, 0x68, 0x06, 0x64, - 0x0a, 0xfd, 0x3f, 0x16, 0x2d, 0xdc, 0x0f, 0x9f, 0xa3, 0x93, 0xdd, 0x02, 0x60, 0x58, 0xeb, 0xe0, - 0x07, 0x15, 0x9c, 0xc9, 0x8a, 0x0f, 0xb1, 0x3b, 0x86, 0xe4, 0x32, 0x6c, 0xeb, 0x0d, 0x97, 0xef, - 0x98, 0x0d, 0x16, 0x6d, 0x04, 0xda, 0x68, 0xb8, 0x4c, 0x88, 0xa0, 0x11, 0xe0, 0x91, 0xdc, 0x09, - 0x50, 0x43, 0x0b, 0x00, 0x5a, 0x41, 0x47, 0x1d, 0x58, 0x83, 0x7a, 0xa4, 0xf3, 0x80, 0x1e, 0xf0, - 0x84, 0x76, 0x9d, 0x3a, 0xc0, 0xc2, 0xc1, 0x3a, 0x74, 0x04, 0x91, 0x3a, 0x04, 0x8b, 0x99, 0x75, - 0x88, 0xc7, 0xed, 0x18, 0x92, 0x42, 0xe0, 0xdf, 0xef, 0x13, 0xea, 0xd2, 0x56, 0x18, 0xf9, 0x0e, - 0x9a, 0x3a, 0x20, 0x81, 0xd0, 0xef, 0xa2, 0x61, 0x47, 0xae, 0x40, 0xbe, 0xa4, 0x57, 0x5f, 0x2a, - 0x5b, 0x88, 0x0c, 0x76, 0xe4, 0x14, 0x38, 0x5f, 0xb5, 0xa8, 0xd9, 0x8a, 0xc7, 0x65, 0xb0, 0xa7, - 0x63, 0x22, 0x08, 0xbc, 0xde, 0x15, 0x78, 0x21, 0x2d, 0xb0, 0x32, 0x76, 0xb9, 0xc3, 0x05, 0x4d, - 0x26, 0x28, 0x42, 0x98, 0x4d, 0x69, 0xb9, 0xe9, 0x51, 0xaf, 0x1d,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, 0xef, 0xdd, 0xe5, 0x6d, 0xbb, 0x21, 0x7f, 0x45, - 0x0e, 0x9c, 0x3f, 0x0c, 0xdc, 0xcb, 0xab, 0xc1, 0xd6, 0xb0, 0xfc, 0x41, 0x78, 0xf9, 0xdf, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x2f, 0x40, 0xe9, 0x06, 0xf9, 0x16, 0x00, 0x00, + // 1579 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x98, 0xcf, 0x6f, 0x13, 0xc7, + 0x17, 0xc0, 0xb3, 0x90, 0x04, 0x32, 0x49, 0xf8, 0x92, 0x21, 0xdf, 0xc4, 0x98, 0x60, 0x87, 0x09, + 0x89, 0x20, 0x21, 0x5e, 0x9c, 0x7c, 0xe1, 0x4b, 0x29, 0x54, 0x55, 0x92, 0x56, 0x4d, 0xe9, 0x8f, + 0xe0, 0x1c, 0x2a, 0x15, 0xa9, 0xd6, 0xd8, 0x1e, 0xec, 0x15, 0xf6, 0xee, 0xb2, 0xb3, 0x0e, 0xa0, + 0x34, 0x17, 0xa4, 0x5e, 0xda, 0x0b, 0x52, 0xd5, 0x56, 0x2a, 0x52, 0xef, 0xbd, 0xf6, 0xd2, 0x1e, + 0xda, 0x3b, 0x47, 0xa4, 0x5e, 0xaa, 0x1e, 0xa2, 0x0a, 0xfa, 0x17, 0xf0, 0x17, 0x54, 0x3b, 0xf3, + 0x76, 0xbd, 0x63, 0xef, 0x7a, 0xd7, 0xe5, 0x94, 0xec, 0xbc, 0x5f, 0x9f, 0xf7, 0x76, 0x66, 0xe7, + 0x3d, 0x23, 0xc2, 0x1b, 0xcc, 0x74, 0xdb, 0x3a, 0x6f, 0x18, 0xac, 0x59, 0xd3, 0xf7, 0x8a, 0xb4, + 0x69, 0x37, 0x68, 0x51, 0xbf, 0xdf, 0x66, 0xce, 0xa3, 0x82, 0xed, 0x58, 0xae, 0x85, 0x67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xfe, 0x23, 0x96, 0x36, 0x83, 0x15, 0xdc, 0x40, 0x13, 0x52, 0x4b, 0x66, 0x2a, 0xbf, 0x1c, 0x1b, + 0xef, 0x0c, 0x1c, 0xf1, 0x54, 0x38, 0xa2, 0xf4, 0x45, 0x4a, 0xe3, 0xe2, 0x51, 0x66, 0x8b, 0x1f, + 0xa0, 0x29, 0x29, 0x7d, 0x60, 0xb8, 0x8d, 0x9a, 0x43, 0x1f, 0x18, 0x66, 0x3d, 0x73, 0x54, 0x84, + 0x7b, 0x7f, 0xe0, 0x70, 0x99, 0x70, 0xb8, 0x90, 0x43, 0x52, 0x92, 0x45, 0xfc, 0xa4, 0xb3, 0x84, + 0x3f, 0x47, 0xd3, 0xd5, 0xb6, 0xe3, 0x30, 0xd3, 0x2d, 0x73, 0xe6, 0xec, 0x19, 0x55, 0x56, 0xbe, + 0xcb, 0x18, 0xcf, 0x0c, 0x8b, 0x57, 0xbd, 0x18, 0xf7, 0xaa, 0x3f, 0x34, 0x1e, 0xb2, 0xda, 0x16, + 0xab, 0x6e, 0x5a, 0x86, 0xc9, 0x37, 0x16, 0x3c, 0xc4, 0x57, 0x87, 0xf9, 0x33, 0x32, 0x70, 0x94, + 0x43, 0x52, 0xc2, 0xb0, 0xbc, 0x2b, 0x57, 0xdf, 0x65, 0x8c, 0xe3, 0xc7, 0x1a, 0x9a, 0x71, 0x58, + 0x8b, 0x1a, 0xa6, 0x61, 0xd6, 0x55, 0x80, 0x91, 0x41, 0x00, 0x16, 0x01, 0xe0, 0xac, 0x04, 0x88, + 0x76, 0x49, 0x4a, 0xd3, 0x81, 0x20, 0x0c, 0xf1, 0x44, 0x43, 0xd9, 0x7a, 0xd3, 0xaa, 0x04, 0xef, + 0xa6, 0xcc, 0x5d, 0x7a, 0xcf, 0xb3, 0x16, 0xed, 0xc6, 0xa8, 0x78, 0x0b, 0xbb, 0x03, 0xbf, 0x85, + 0x73, 0x92, 0x25, 0xde, 0x33, 0x29, 0xcd, 0x4a, 0x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 0xa1, 0xf7, + 0xfd, 0x1d, 0xd3, 0x6f, 0x79, 0x63, 0xbe, 0x84, 0x3f, 0x6b, 0x68, 0xaa, 0xa7, 0x43, 0x4d, 0xb8, + 0x39, 0xe3, 0x5a, 0xde, 0xec, 0xd5, 0x41, 0xcd, 0x20, 0x95, 0x75, 0x91, 0xca, 0x2a, 0x5e, 0x49, + 0x97, 0x4a, 0xd9, 0x6b, 0x75, 0x45, 0xe1, 0x95, 0x86, 0x2e, 0xa1, 0xf0, 0x51, 0x2d, 0x71, 0x42, + 0xe1, 0x23, 0xfb, 0xe0, 0xe4, 0xc2, 0xfb, 0x1d, 0xb5, 0xbe, 0x1f, 0x6a, 0xb7, 0x0f, 0x74, 0xa5, + 0xf5, 0xc5, 0x3f, 0x6a, 0xe8, 0x84, 0xda, 0xd8, 0xe2, 0x01, 0x60, 0x82, 0x9d, 0xbd, 0x3e, 0x90, + 0x4d, 0xda, 0x06, 0x54, 0x41, 0xe5, 0x1b, 0xb7, 0x9e, 0xbd, 0xc8, 0x69, 0xcf, 0x5f, 0xe4, 0xb4, + 0xbf, 0x5e, 0xe4, 0xb4, 0x27, 0x2f, 0x73, 0x43, 0xcf, 0x5f, 0xe6, 0x86, 0xfe, 0x78, 0x99, 0x1b, + 0xfa, 0xb4, 0x18, 0x1e, 0x56, 0x98, 0xe3, 0x1a, 0xf7, 0xee, 0x5a, 0x6d, 0xb3, 0x26, 0x7e, 0x67, + 0xf7, 0x9d, 0x3f, 0xf4, 0xdd, 0x8b, 0xd9, 0xa5, 0x32, 0x2a, 0x7e, 0x32, 0x5f, 0xff, 0x27, 0x00, + 0x00, 0xff, 0xff, 0x55, 0x61, 0x27, 0xc7, 0x1b, 0x18, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1513,6 +1598,7 @@ type QueryClient interface { Providers(ctx context.Context, in *QueryProvidersRequest, opts ...grpc.CallOption) (*QueryProvidersResponse, error) PoolParams(ctx context.Context, in *QueryPoolParamsRequest, opts ...grpc.CallOption) (*QueryPoolParamsResponse, error) ClaimParams(ctx context.Context, in *QueryClaimParamsRequest, opts ...grpc.CallOption) (*QueryClaimParamsResponse, error) + DistrParams(ctx context.Context, in *QueryDistrParamsRequest, opts ...grpc.CallOption) (*QueryDistrParamsResponse, error) ShieldStatus(ctx context.Context, in *QueryShieldStatusRequest, opts ...grpc.CallOption) (*QueryShieldStatusResponse, error) ShieldStaking(ctx context.Context, in *QueryShieldStakingRequest, opts ...grpc.CallOption) (*QueryShieldStakingResponse, error) ShieldStakingRate(ctx context.Context, in *QueryShieldStakingRateRequest, opts ...grpc.CallOption) (*QueryShieldStakingRateResponse, error) @@ -1627,6 +1713,15 @@ func (c *queryClient) ClaimParams(ctx context.Context, in *QueryClaimParamsReque return out, nil } +func (c *queryClient) DistrParams(ctx context.Context, in *QueryDistrParamsRequest, opts ...grpc.CallOption) (*QueryDistrParamsResponse, error) { + out := new(QueryDistrParamsResponse) + err := c.cc.Invoke(ctx, "/shentu.shield.v1alpha1.Query/DistrParams", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) ShieldStatus(ctx context.Context, in *QueryShieldStatusRequest, opts ...grpc.CallOption) (*QueryShieldStatusResponse, error) { out := new(QueryShieldStatusResponse) err := c.cc.Invoke(ctx, "/shentu.shield.v1alpha1.Query/ShieldStatus", in, out, opts...) @@ -1685,6 +1780,7 @@ type QueryServer interface { Providers(context.Context, *QueryProvidersRequest) (*QueryProvidersResponse, error) PoolParams(context.Context, *QueryPoolParamsRequest) (*QueryPoolParamsResponse, error) ClaimParams(context.Context, *QueryClaimParamsRequest) (*QueryClaimParamsResponse, error) + DistrParams(context.Context, *QueryDistrParamsRequest) (*QueryDistrParamsResponse, error) ShieldStatus(context.Context, *QueryShieldStatusRequest) (*QueryShieldStatusResponse, error) ShieldStaking(context.Context, *QueryShieldStakingRequest) (*QueryShieldStakingResponse, error) ShieldStakingRate(context.Context, *QueryShieldStakingRateRequest) (*QueryShieldStakingRateResponse, error) @@ -1729,6 +1825,9 @@ func (*UnimplementedQueryServer) PoolParams(ctx context.Context, req *QueryPoolP func (*UnimplementedQueryServer) ClaimParams(ctx context.Context, req *QueryClaimParamsRequest) (*QueryClaimParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ClaimParams not implemented") } +func (*UnimplementedQueryServer) DistrParams(ctx context.Context, req *QueryDistrParamsRequest) (*QueryDistrParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DistrParams not implemented") +} func (*UnimplementedQueryServer) ShieldStatus(ctx context.Context, req *QueryShieldStatusRequest) (*QueryShieldStatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ShieldStatus not implemented") } @@ -1947,6 +2046,24 @@ func _Query_ClaimParams_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } +func _Query_DistrParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDistrParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).DistrParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/shentu.shield.v1alpha1.Query/DistrParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).DistrParams(ctx, req.(*QueryDistrParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_ShieldStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryShieldStatusRequest) if err := dec(in); err != nil { @@ -2085,6 +2202,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "ClaimParams", Handler: _Query_ClaimParams_Handler, }, + { + MethodName: "DistrParams", + Handler: _Query_DistrParams_Handler, + }, { MethodName: "ShieldStatus", Handler: _Query_ShieldStatus_Handler, @@ -2756,6 +2877,62 @@ func (m *QueryClaimParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } +func (m *QueryDistrParamsRequest) 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 *QueryDistrParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDistrParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryDistrParamsResponse) 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 *QueryDistrParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDistrParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + func (m *QueryShieldStatusRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3372,6 +3549,26 @@ func (m *QueryClaimParamsResponse) Size() (n int) { return n } +func (m *QueryDistrParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryDistrParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + func (m *QueryShieldStatusRequest) Size() (n int) { if m == nil { return 0 @@ -3556,7 +3753,10 @@ func (m *QueryPoolRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -3639,7 +3839,10 @@ func (m *QueryPoolResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -3721,7 +3924,10 @@ func (m *QuerySponsorRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -3805,7 +4011,10 @@ func (m *QuerySponsorResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -3855,7 +4064,10 @@ func (m *QueryPoolsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -3939,7 +4151,10 @@ func (m *QueryPoolsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -4008,7 +4223,10 @@ func (m *QueryPoolPurchaseListsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -4090,7 +4308,10 @@ func (m *QueryPurchaseListsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -4174,7 +4395,10 @@ func (m *QueryPurchaseListsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -4275,7 +4499,10 @@ func (m *QueryPurchaseListRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -4358,7 +4585,10 @@ func (m *QueryPurchaseListResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -4408,7 +4638,10 @@ func (m *QueryPurchasesRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -4492,7 +4725,10 @@ func (m *QueryPurchasesResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -4574,7 +4810,10 @@ func (m *QueryProviderRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -4657,7 +4896,10 @@ func (m *QueryProviderResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -4707,7 +4949,10 @@ func (m *QueryProvidersRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -4791,7 +5036,10 @@ func (m *QueryProvidersResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -4841,7 +5089,10 @@ func (m *QueryPoolParamsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -4924,7 +5175,10 @@ func (m *QueryPoolParamsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -4974,7 +5228,10 @@ func (m *QueryClaimParamsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -5057,7 +5314,149 @@ func (m *QueryClaimParamsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryDistrParamsRequest) 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: QueryDistrParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDistrParamsRequest: 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 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryDistrParamsResponse) 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: QueryDistrParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDistrParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.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 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -5107,7 +5506,10 @@ func (m *QueryShieldStatusRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -5359,7 +5761,10 @@ func (m *QueryShieldStatusResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -5460,7 +5865,10 @@ func (m *QueryShieldStakingRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -5543,7 +5951,10 @@ func (m *QueryShieldStakingResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -5593,7 +6004,10 @@ func (m *QueryShieldStakingRateRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -5677,7 +6091,10 @@ func (m *QueryShieldStakingRateResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -5746,7 +6163,10 @@ func (m *QueryReimbursementRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -5829,7 +6249,10 @@ func (m *QueryReimbursementResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -5879,7 +6302,10 @@ func (m *QueryReimbursementsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -5963,7 +6389,10 @@ func (m *QueryReimbursementsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { diff --git a/x/shield/types/query.pb.gw.go b/x/shield/types/query.pb.gw.go index 553e7fa4c..1496837c6 100644 --- a/x/shield/types/query.pb.gw.go +++ b/x/shield/types/query.pb.gw.go @@ -20,7 +20,6 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" ) @@ -31,7 +30,6 @@ var _ status.Status var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage -var _ = metadata.Join func request_Query_Pool_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryPoolRequest @@ -469,6 +467,24 @@ func local_request_Query_ClaimParams_0(ctx context.Context, marshaler runtime.Ma } +func request_Query_DistrParams_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDistrParamsRequest + var metadata runtime.ServerMetadata + + msg, err := client.DistrParams(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_DistrParams_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDistrParamsRequest + var metadata runtime.ServerMetadata + + msg, err := server.DistrParams(ctx, &protoReq) + return msg, metadata, err + +} + func request_Query_ShieldStatus_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryShieldStatusRequest var metadata runtime.ServerMetadata @@ -656,14 +672,12 @@ func local_request_Query_Reimbursements_0(ctx context.Context, marshaler runtime // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +// Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { mux.Handle("GET", pattern_Query_Pool_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -671,7 +685,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Pool_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -685,8 +698,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_Sponsor_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -694,7 +705,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Sponsor_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -708,8 +718,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_Pools_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -717,7 +725,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Pools_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -731,8 +738,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_PoolPurchaseLists_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -740,7 +745,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_PoolPurchaseLists_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -754,8 +758,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_PurchaseLists_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -763,7 +765,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_PurchaseLists_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -777,8 +778,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_PurchaseList_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -786,7 +785,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_PurchaseList_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -800,8 +798,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_Purchases_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -809,7 +805,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Purchases_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -823,8 +818,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_Provider_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -832,7 +825,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Provider_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -846,8 +838,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_Providers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -855,7 +845,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Providers_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -869,8 +858,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_PoolParams_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -878,7 +865,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_PoolParams_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -892,8 +878,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_ClaimParams_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -901,7 +885,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_ClaimParams_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -912,11 +895,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_DistrParams_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_DistrParams_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_DistrParams_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_ShieldStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -924,7 +925,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_ShieldStatus_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -938,8 +938,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_ShieldStaking_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -947,7 +945,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_ShieldStaking_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -961,8 +958,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_ShieldStakingRate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -970,7 +965,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_ShieldStakingRate_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -984,8 +978,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_Reimbursement_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -993,7 +985,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Reimbursement_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -1007,8 +998,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv mux.Handle("GET", pattern_Query_Reimbursements_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -1016,7 +1005,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } resp, md, err := local_request_Query_Reimbursements_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -1288,6 +1276,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_DistrParams_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_DistrParams_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_DistrParams_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_ShieldStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1414,6 +1422,8 @@ var ( pattern_Query_ClaimParams_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"shentu", "shield", "v1alpha1", "claim_params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_DistrParams_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"shentu", "shield", "v1alpha1", "distr_params"}, "", runtime.AssumeColonVerbOpt(true))) + pattern_Query_ShieldStatus_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"shentu", "shield", "v1alpha1", "status"}, "", runtime.AssumeColonVerbOpt(true))) pattern_Query_ShieldStaking_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"shentu", "shield", "v1alpha1", "shield_staking", "pool_id", "purchaser"}, "", runtime.AssumeColonVerbOpt(true))) @@ -1448,6 +1458,8 @@ var ( forward_Query_ClaimParams_0 = runtime.ForwardResponseMessage + forward_Query_DistrParams_0 = runtime.ForwardResponseMessage + forward_Query_ShieldStatus_0 = runtime.ForwardResponseMessage forward_Query_ShieldStaking_0 = runtime.ForwardResponseMessage diff --git a/x/shield/types/shield.pb.go b/x/shield/types/shield.pb.go index 49dd6c47c..91c08cc0e 100644 --- a/x/shield/types/shield.pb.go +++ b/x/shield/types/shield.pb.go @@ -609,89 +609,89 @@ func init() { } var fileDescriptor_d5263cf0ba18829d = []byte{ - // 1300 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xf7, 0xc6, 0xae, 0x93, 0x8c, 0xe3, 0xb6, 0x99, 0x54, 0xc1, 0x0d, 0xe0, 0x8d, 0x06, 0x51, + // 1299 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00,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 0x8d, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x45, 0x95, 0xd5, 0x3b, - 0xd0, 0x0f, 0x00, 0x00, + 0x28, 0x12, 0x17, 0x6b, 0xb2, 0x33, 0xb1, 0x47, 0x59, 0xef, 0x98, 0x9d, 0x71, 0xfa, 0xe3, 0xcc, + 0x81, 0x63, 0x8f, 0x9c, 0x50, 0xcf, 0x9c, 0xf9, 0x07, 0xe0, 0xd4, 0x0b, 0xa2, 0xe2, 0x84, 0x38, + 0xb8, 0x28, 0xbd, 0x70, 0xc5, 0x7f, 0x00, 0x42, 0x33, 0x3b, 0xe3, 0x1d, 0x9b, 0x94, 0xc4, 0x55, + 0x7b, 0xf2, 0xcc, 0xbe, 0xf7, 0xbe, 0x6f, 0xde, 0xbc, 0x6f, 0xde, 0x8c, 0xc1, 0x7b, 0xa2, 0x43, + 0x13, 0xd9, 0x0f, 0x44, 0x87, 0xd1, 0x98, 0x04, 0x47, 0xeb, 0x38, 0xee, 0x75, 0xf0, 0xba, 0x99, + 0x37, 0x7a, 0x29, 0x97, 0x1c, 0x2e, 0x67, 0x4e, 0x0d, 0xf3, 0xd1, 0x3a, 0xad, 0x5c, 0x6a, 0xf3, + 0x36, 0xd7, 0x2e, 0x81, 0x1a, 0x65, 0xde, 0x2b, 0xf5, 0x88, 0x8b, 0x2e, 0x17, 0xc1, 0x3e, 0x16, + 0x34, 0x38, 0x5a, 0xdf, 0xa7, 0x12, 0xaf, 0x07, 0x11, 0x67, 0x89, 0xb1, 0x5f, 0xce, 0xec, 0xad, + 0x2c, 0x30, 0x9b, 0x18, 0x93, 0xdf, 0xe6, 0xbc, 0x1d, 0xd3, 0x40, 0xcf, 0xf6, 0xfb, 0x07, 0x81, + 0x64, 0x5d, 0x2a, 0x24, 0xee, 0xf6, 0x32, 0x07, 0x74, 0xec, 0x01, 0xf0, 0x19, 0x7b, 0x40, 0xc9, + 0x16, 0x67, 0x89, 0x80, 0x11, 0x28, 0x27, 0x58, 0xb2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, 0xb8, 0x15, 0x9f, 0x39, 0xb5, 0xe2, 0x13, 0x0f, + 0xb1, 0xe2, 0x99, 0x1f, 0x62, 0x09, 0x28, 0xc5, 0x5c, 0x88, 0x5a, 0xe9, 0xb4, 0x3f, 0x3d, 0x37, + 0xcd, 0x19, 0x31, 0x1b, 0xa1, 0x82, 0xd0, 0x54, 0xff, 0x81, 0x34, 0x0f, 0x0c, 0xc0, 0x1c, 0x55, + 0xf7, 0x57, 0x12, 0x51, 0xd3, 0xd0, 0x97, 0xf2, 0xbb, 0xcd, 0x5a, 0x50, 0x38, 0x72, 0x9a, 0x7c, + 0x52, 0x95, 0xcf, 0xfe, 0xa4, 0x0a, 0xc0, 0x5c, 0xb6, 0x9d, 0x34, 0x35, 0xcf, 0xe1, 0xa5, 0xb1, + 0x6b, 0x54, 0x5b, 0x50, 0x38, 0x72, 0xda, 0xfc, 0x44, 0x15, 0xf3, 0xbb, 0x27, 0x7e, 0xe1, 0xb7, + 0x1f, 0xaf, 0x5d, 0xff, 0xdf, 0xbc, 0x1e, 0x04, 0x6d, 0x7e, 0x34, 0xca, 0x2e, 0x91, 0x34, 0x91, + 0xcd, 0xbb, 0x4f, 0x8f, 0xeb, 0xde, 0xb3, 0xe3, 0xba, 0xf7, 0xe7, 0x71, 0xdd, 0x7b, 0xfc, 0xa2, + 0x5e, 0x78, 0xf6, 0xa2, 0x5e, 0xf8, 0xfd, 0x45, 0xbd, 0xf0, 0xd5, 0xba, 0x8b, 0x45, 0x53, 0xc9, + 0x0e, 0x0f, 0x78, 0x3f, 0x21, 0xfa, 0xe6, 0x0e, 0xcc, 0x5f, 0xf3, 0x07, 0xf6, 0xcf, 0xb9, 0x06, + 0xdd, 0x2f, 0x6b, 0x19, 0xde, 0xf8, 0x37, 0x00, 0x00, 0xff, 0xff, 0x4c, 0x6b, 0x97, 0xc9, 0xba, + 0x0f, 0x00, 0x00, } func (m *MixedCoins) Marshal() (dAtA []byte, err error) { @@ -1787,7 +1787,10 @@ func (m *MixedCoins) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthShield + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthShield } if (iNdEx + skippy) > l { @@ -1905,7 +1908,10 @@ func (m *MixedDecCoins) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthShield + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthShield } if (iNdEx + skippy) > l { @@ -2158,7 +2164,10 @@ func (m *Pool) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthShield + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthShield } if (iNdEx + skippy) > l { @@ -2392,7 +2401,10 @@ func (m *Purchase) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthShield + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthShield } if (iNdEx + skippy) > l { @@ -2527,7 +2539,10 @@ func (m *PurchaseList) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthShield + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthShield } if (iNdEx + skippy) > l { @@ -2778,7 +2793,10 @@ func (m *Provider) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthShield + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthShield } if (iNdEx + skippy) > l { @@ -2879,7 +2897,10 @@ func (m *PoolPurchaser) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthShield + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthShield } if (iNdEx + skippy) > l { @@ -2963,7 +2984,10 @@ func (m *PoolPurchaserPairs) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthShield + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthShield } if (iNdEx + skippy) > l { @@ -3112,7 +3136,10 @@ func (m *Withdraw) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthShield + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthShield } if (iNdEx + skippy) > l { @@ -3196,7 +3223,10 @@ func (m *Withdraws) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthShield + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthShield } if (iNdEx + skippy) > l { @@ -3365,7 +3395,10 @@ func (m *ShieldStaking) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthShield + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthShield } if (iNdEx + skippy) > l { @@ -3451,7 +3484,10 @@ func (m *LastUpdateTime) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthShield + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthShield } if (iNdEx + skippy) > l { @@ -3688,7 +3724,10 @@ func (m *ShieldClaimProposal) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthShield + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthShield } if (iNdEx + skippy) > l { diff --git a/x/shield/types/tx.pb.go b/x/shield/types/tx.pb.go index 32738c9f1..254f88370 100644 --- a/x/shield/types/tx.pb.go +++ b/x/shield/types/tx.pb.go @@ -3423,7 +3423,10 @@ func (m *MsgCreatePool) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -3473,7 +3476,10 @@ func (m *MsgCreatePoolResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -3707,7 +3713,10 @@ func (m *MsgUpdatePool) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -3757,7 +3766,10 @@ func (m *MsgUpdatePoolResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -3858,7 +3870,10 @@ func (m *MsgPausePool) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -3908,7 +3923,10 @@ func (m *MsgPausePoolResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -4009,7 +4027,10 @@ func (m *MsgResumePool) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -4059,7 +4080,10 @@ func (m *MsgResumePoolResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -4175,7 +4199,10 @@ func (m *MsgDepositCollateral) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -4225,7 +4252,10 @@ func (m *MsgDepositCollateralResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -4341,7 +4371,10 @@ func (m *MsgWithdrawCollateral) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -4391,7 +4424,10 @@ func (m *MsgWithdrawCollateralResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -4473,7 +4509,10 @@ func (m *MsgWithdrawRewards) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -4523,7 +4562,10 @@ func (m *MsgWithdrawRewardsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -4669,7 +4711,10 @@ func (m *MsgWithdrawForeignRewards) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -4719,7 +4764,10 @@ func (m *MsgWithdrawForeignRewardsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -4833,7 +4881,10 @@ func (m *MsgClearPayouts) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -4883,7 +4934,10 @@ func (m *MsgClearPayoutsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -5050,7 +5104,10 @@ func (m *MsgPurchaseShield) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -5100,7 +5157,10 @@ func (m *MsgPurchaseShieldResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -5201,7 +5261,10 @@ func (m *MsgWithdrawReimbursement) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -5251,7 +5314,10 @@ func (m *MsgWithdrawReimbursementResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -5418,7 +5484,10 @@ func (m *MsgStakeForShield) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -5468,7 +5537,10 @@ func (m *MsgStakeForShieldResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -5603,7 +5675,10 @@ func (m *MsgUnstakeFromShield) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -5653,7 +5728,10 @@ func (m *MsgUnstakeFromShieldResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -5818,7 +5896,10 @@ func (m *MsgUpdateSponsor) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -5868,7 +5949,10 @@ func (m *MsgUpdateSponsorResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l {