From 9234190f6fa773ee28670a06b0e6a11cd0aa21eb Mon Sep 17 00:00:00 2001 From: jelysn Date: Wed, 15 May 2024 11:04:20 +0800 Subject: [PATCH] Update allProgramRewards query to return Coins instead of DecCoins --- docs/static/openapi.yml | 36 +++-- proto/elys/incentive/query.proto | 16 +-- scripts/examples/estaking/snapshot_test.sh | 28 ++++ x/incentive/keeper/queries.go | 17 ++- x/incentive/types/query.pb.go | 145 ++++++++++----------- 5 files changed, 134 insertions(+), 108 deletions(-) create mode 100644 scripts/examples/estaking/snapshot_test.sh diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 58796a014..098948200 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -40540,11 +40540,10 @@ paths: amount: type: string description: >- - DecCoin defines a token with a denomination and a decimal - amount. + Coin defines a token with a denomination and an amount. - NOTE: The amount field is an Dec which implements the custom + NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. @@ -40558,11 +40557,10 @@ paths: amount: type: string description: >- - DecCoin defines a token with a denomination and a decimal - amount. + Coin defines a token with a denomination and an amount. - NOTE: The amount field is an Dec which implements the custom + NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. @@ -40576,11 +40574,10 @@ paths: amount: type: string description: >- - DecCoin defines a token with a denomination and a decimal - amount. + Coin defines a token with a denomination and an amount. - NOTE: The amount field is an Dec which implements the custom + NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. @@ -40594,11 +40591,10 @@ paths: amount: type: string description: >- - DecCoin defines a token with a denomination and a decimal - amount. + Coin defines a token with a denomination and an amount. - NOTE: The amount field is an Dec which implements the custom + NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. @@ -86313,9 +86309,9 @@ definitions: amount: type: string description: |- - DecCoin defines a token with a denomination and a decimal amount. + Coin defines a token with a denomination and an amount. - NOTE: The amount field is an Dec which implements the custom method + NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. elys_staking_rewards: type: array @@ -86327,9 +86323,9 @@ definitions: amount: type: string description: |- - DecCoin defines a token with a denomination and a decimal amount. + Coin defines a token with a denomination and an amount. - NOTE: The amount field is an Dec which implements the custom method + NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. eden_staking_rewards: type: array @@ -86341,9 +86337,9 @@ definitions: amount: type: string description: |- - DecCoin defines a token with a denomination and a decimal amount. + Coin defines a token with a denomination and an amount. - NOTE: The amount field is an Dec which implements the custom method + NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. edenb_staking_rewards: type: array @@ -86355,9 +86351,9 @@ definitions: amount: type: string description: |- - DecCoin defines a token with a denomination and a decimal amount. + Coin defines a token with a denomination and an amount. - NOTE: The amount field is an Dec which implements the custom method + NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. elys.incentive.QueryAprResponse: type: object diff --git a/proto/elys/incentive/query.proto b/proto/elys/incentive/query.proto index 30154228d..011062df3 100644 --- a/proto/elys/incentive/query.proto +++ b/proto/elys/incentive/query.proto @@ -97,21 +97,21 @@ message QueryAllProgramRewardsRequest { } message QueryAllProgramRewardsResponse { - repeated cosmos.base.v1beta1.DecCoin usdc_staking_rewards = 1 [ + repeated cosmos.base.v1beta1.Coin usdc_staking_rewards = 1 [ (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins" + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; - repeated cosmos.base.v1beta1.DecCoin elys_staking_rewards = 2 [ + repeated cosmos.base.v1beta1.Coin elys_staking_rewards = 2 [ (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins" + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; - repeated cosmos.base.v1beta1.DecCoin eden_staking_rewards = 3 [ + repeated cosmos.base.v1beta1.Coin eden_staking_rewards = 3 [ (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins" + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; - repeated cosmos.base.v1beta1.DecCoin edenb_staking_rewards = 4 [ + repeated cosmos.base.v1beta1.Coin edenb_staking_rewards = 4 [ (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins" + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } diff --git a/scripts/examples/estaking/snapshot_test.sh b/scripts/examples/estaking/snapshot_test.sh new file mode 100644 index 000000000..b37670052 --- /dev/null +++ b/scripts/examples/estaking/snapshot_test.sh @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + +elysd query estaking params + +elysd query staking validators +VALIDATOR=elysvaloper1dd34v384hdfqgajkg0jzp0y5k6qlvhltr73as2 +EDEN_VAL=elysvaloper1gnmpr8vvslp3shcq6e922xr0uq4aa2w5gdzht0 +EDENB_VAL=elysvaloper1wajd6ekh9u37hyghyw4mme59qmjllzuyaceanm + +elysd tx staking delegate $VALIDATOR 10000000000000uelys --from=validator --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000 +elysd query distribution rewards elys1g3qnq7apxv964cqj0hza0pnwsw3q920lcc5lyg $VALIDATOR +elysd query distribution rewards elys1g3qnq7apxv964cqj0hza0pnwsw3q920lcc5lyg $EDEN_VAL +elysd query distribution rewards elys1g3qnq7apxv964cqj0hza0pnwsw3q920lcc5lyg $EDENB_VAL + +elysd tx estaking withdraw-all-rewards --from=validator --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000 + +elysd tx commitment commit-claimed-rewards 158762097 ueden --from=validator --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000 +elysd tx commitment commit-claimed-rewards 1066283235 uedenb --from=validator --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000 +elysd tx commitment uncommit-tokens 35235693 ueden --from=validator --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000 +elysd tx commitment commit-claimed-rewards 35235693 ueden --from=validator --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000 +elysd tx commitment uncommit-tokens 304152385 uedenb --from=validator --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000 +elysd tx commitment uncommit-tokens 70471386 ueden --from=validator --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000 + +elysd query commitment show-commitments elys1g3qnq7apxv964cqj0hza0pnwsw3q920lcc5lyg +elysd query estaking rewards elys1g3qnq7apxv964cqj0hza0pnwsw3q920lcc5lyg +elysd tx estaking withdraw-all-rewards --from=validator --chain-id=elystestnet-1 + +elysd query incentive all-program-rewards elys1g3qnq7apxv964cqj0hza0pnwsw3q920lcc5lyg diff --git a/x/incentive/keeper/queries.go b/x/incentive/keeper/queries.go index 5d0c5cf6b..3afe8c12f 100644 --- a/x/incentive/keeper/queries.go +++ b/x/incentive/keeper/queries.go @@ -167,14 +167,14 @@ func (k Keeper) AllProgramRewards(goCtx context.Context, req *types.QueryAllProg k.masterchef.AfterWithdraw(ctx, stablestaketypes.PoolId, req.Address, sdk.ZeroInt()) - stableStakeRewards := sdk.NewDecCoins() + stableStakeRewards := sdk.Coins{} for _, rewardDenom := range k.masterchef.GetRewardDenoms(ctx, stablestaketypes.PoolId) { userRewardInfo, found := k.masterchef.GetUserRewardInfo(ctx, req.Address, stablestaketypes.PoolId, rewardDenom) if found && userRewardInfo.RewardPending.IsPositive() { stableStakeRewards = stableStakeRewards.Add( - sdk.NewDecCoinFromDec( + sdk.NewCoin( rewardDenom, - userRewardInfo.RewardPending, + userRewardInfo.RewardPending.TruncateInt(), ), ) } @@ -182,13 +182,14 @@ func (k Keeper) AllProgramRewards(goCtx context.Context, req *types.QueryAllProg delAddr := sdk.MustAccAddressFromBech32(req.Address) delegations := k.estaking.Keeper.GetDelegatorDelegations(ctx, delAddr, 5000) - elysStakingRewards := sdk.DecCoins{} + elysStakingRewards := sdk.Coins{} for _, del := range delegations { rewards, err := k.estaking.DelegationRewards(ctx, req.Address, del.ValidatorAddress) if err != nil { return nil, err } - elysStakingRewards = elysStakingRewards.Add(rewards...) + finalRewards, _ := rewards.TruncateDecimal() + elysStakingRewards = elysStakingRewards.Add(finalRewards...) } // Eden commit rewards @@ -197,6 +198,7 @@ func (k Keeper) AllProgramRewards(goCtx context.Context, req *types.QueryAllProg if err != nil { edenCommitRewards = []sdk.DecCoin{} } + finalEdenCommitRewards, _ := edenCommitRewards.TruncateDecimal() // EdenB commit rewards edenBVal := k.estaking.GetParams(ctx).EdenbCommitVal @@ -204,12 +206,13 @@ func (k Keeper) AllProgramRewards(goCtx context.Context, req *types.QueryAllProg if err != nil { edenBCommitRewards = []sdk.DecCoin{} } + finalEdenBCommitRewards, _ := edenBCommitRewards.TruncateDecimal() return &types.QueryAllProgramRewardsResponse{ UsdcStakingRewards: stableStakeRewards, ElysStakingRewards: elysStakingRewards, - EdenStakingRewards: edenCommitRewards, - EdenbStakingRewards: edenBCommitRewards, + EdenStakingRewards: finalEdenCommitRewards, + EdenbStakingRewards: finalEdenBCommitRewards, }, nil } diff --git a/x/incentive/types/query.pb.go b/x/incentive/types/query.pb.go index bba038b83..6a9460891 100644 --- a/x/incentive/types/query.pb.go +++ b/x/incentive/types/query.pb.go @@ -250,10 +250,10 @@ func (m *QueryAllProgramRewardsRequest) GetAddress() string { } type QueryAllProgramRewardsResponse struct { - UsdcStakingRewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=usdc_staking_rewards,json=usdcStakingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"usdc_staking_rewards"` - ElysStakingRewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=elys_staking_rewards,json=elysStakingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"elys_staking_rewards"` - EdenStakingRewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,3,rep,name=eden_staking_rewards,json=edenStakingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"eden_staking_rewards"` - EdenbStakingRewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,4,rep,name=edenb_staking_rewards,json=edenbStakingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"edenb_staking_rewards"` + UsdcStakingRewards github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=usdc_staking_rewards,json=usdcStakingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"usdc_staking_rewards"` + ElysStakingRewards github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=elys_staking_rewards,json=elysStakingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"elys_staking_rewards"` + EdenStakingRewards github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=eden_staking_rewards,json=edenStakingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"eden_staking_rewards"` + EdenbStakingRewards github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=edenb_staking_rewards,json=edenbStakingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"edenb_staking_rewards"` } func (m *QueryAllProgramRewardsResponse) Reset() { *m = QueryAllProgramRewardsResponse{} } @@ -289,28 +289,28 @@ func (m *QueryAllProgramRewardsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryAllProgramRewardsResponse proto.InternalMessageInfo -func (m *QueryAllProgramRewardsResponse) GetUsdcStakingRewards() github_com_cosmos_cosmos_sdk_types.DecCoins { +func (m *QueryAllProgramRewardsResponse) GetUsdcStakingRewards() github_com_cosmos_cosmos_sdk_types.Coins { if m != nil { return m.UsdcStakingRewards } return nil } -func (m *QueryAllProgramRewardsResponse) GetElysStakingRewards() github_com_cosmos_cosmos_sdk_types.DecCoins { +func (m *QueryAllProgramRewardsResponse) GetElysStakingRewards() github_com_cosmos_cosmos_sdk_types.Coins { if m != nil { return m.ElysStakingRewards } return nil } -func (m *QueryAllProgramRewardsResponse) GetEdenStakingRewards() github_com_cosmos_cosmos_sdk_types.DecCoins { +func (m *QueryAllProgramRewardsResponse) GetEdenStakingRewards() github_com_cosmos_cosmos_sdk_types.Coins { if m != nil { return m.EdenStakingRewards } return nil } -func (m *QueryAllProgramRewardsResponse) GetEdenbStakingRewards() github_com_cosmos_cosmos_sdk_types.DecCoins { +func (m *QueryAllProgramRewardsResponse) GetEdenbStakingRewards() github_com_cosmos_cosmos_sdk_types.Coins { if m != nil { return m.EdenbStakingRewards } @@ -481,67 +481,66 @@ func init() { func init() { proto.RegisterFile("elys/incentive/query.proto", fileDescriptor_29b04b3fcad26af2) } var fileDescriptor_29b04b3fcad26af2 = []byte{ - // 953 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x96, 0x41, 0x6f, 0xdc, 0x44, - 0x14, 0xc7, 0xe3, 0xec, 0x26, 0x69, 0x66, 0xd3, 0x40, 0x87, 0xa0, 0x3a, 0x4b, 0x71, 0x52, 0x23, - 0x95, 0x2d, 0x55, 0xec, 0x66, 0x7b, 0xa0, 0x70, 0x40, 0x4d, 0x68, 0x11, 0x3d, 0x11, 0xdc, 0xf4, - 0xc2, 0x65, 0x35, 0x6b, 0x8f, 0x5c, 0x2b, 0xde, 0x19, 0x77, 0xc6, 0x49, 0x58, 0x95, 0x5e, 0x40, - 0x5c, 0x38, 0x21, 0xf5, 0x5b, 0x20, 0x3e, 0x01, 0x9f, 0xa0, 0xc7, 0x22, 0x2e, 0x88, 0x43, 0x41, - 0x09, 0x12, 0x5f, 0x03, 0xbd, 0x99, 0x71, 0xd6, 0xeb, 0xcd, 0xa6, 0xd1, 0xae, 0x72, 0xca, 0x8e, - 0xe7, 0xbd, 0xff, 0xfb, 0xbd, 0x97, 0x37, 0x33, 0x0f, 0x35, 0x69, 0x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, 0xa8, 0x74, 0xd3, 0x87, 0xa7, 0xaa, 0x8f, 0x76, 0x7a, 0xb3, 0xf5, 0x66, 0x43, - 0x43, 0xb3, 0xa9, 0x68, 0x6e, 0xe1, 0x9b, 0x67, 0xd2, 0xa8, 0x1e, 0x36, 0xcd, 0x86, 0x7f, 0xb5, - 0xd0, 0x95, 0x91, 0x9b, 0x19, 0x6f, 0x9c, 0x9e, 0xf9, 0x98, 0xdb, 0xbf, 0xe9, 0x9d, 0xd7, 0xdc, - 0x70, 0xde, 0x55, 0x9c, 0x6d, 0x7c, 0xfb, 0xec, 0xaa, 0xa5, 0x29, 0x8c, 0xd8, 0x20, 0x50, 0xe0, - 0x6e, 0x7f, 0xf9, 0xf2, 0xc8, 0xb1, 0x5e, 0x1d, 0x39, 0xd6, 0x3f, 0x47, 0x8e, 0xf5, 0xf3, 0xb1, - 0x33, 0xf3, 0xea, 0xd8, 0x99, 0xf9, 0xf3, 0xd8, 0x99, 0xf9, 0xc6, 0x2b, 0x75, 0xfe, 0xa8, 0xea, - 0xb7, 0x25, 0x5d, 0x75, 0x0a, 0xba, 0xf3, 0x6a, 0x24, 0xbe, 0xf3, 0x7f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xc2, 0x17, 0x24, 0xd5, 0xf9, 0x0b, 0x00, 0x00, + // 931 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x41, 0x6f, 0x1b, 0x45, + 0x14, 0xce, 0xc6, 0x9b, 0xa4, 0x19, 0xa7, 0x81, 0x0e, 0x41, 0xdd, 0x18, 0xd8, 0xa4, 0x8b, 0x54, + 0x5c, 0x50, 0x76, 0x1b, 0x73, 0xa0, 0x70, 0x40, 0x4d, 0xa0, 0x88, 0x9e, 0x08, 0xdb, 0xf4, 0xc2, + 0xc5, 0x1a, 0x7b, 0x47, 0xdb, 0x55, 0xd6, 0x33, 0xdb, 0x99, 0x4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0d, 0xfb, 0x00, 0x9e, 0xc8, 0x55, 0x94, 0x58, 0xe3, 0xc6, 0x05, + 0x16, 0x46, 0xce, 0x2d, 0x25, 0xe7, 0x5d, 0x7c, 0xe3, 0x65, 0x72, 0x24, 0x7e, 0x5a, 0xa9, 0xa6, + 0xf7, 0xce, 0x45, 0x1f, 0xaf, 0xf4, 0x46, 0xf3, 0xe5, 0x86, 0x46, 0xcd, 0xb6, 0x52, 0xf3, 0x01, + 0xbe, 0x75, 0xa1, 0x1a, 0x55, 0xc3, 0xa6, 0xd8, 0xf0, 0xaf, 0x16, 0xba, 0x36, 0x36, 0x7d, 0xf1, + 0xd6, 0xf9, 0x91, 0x4f, 0x98, 0xf0, 0x0d, 0xff, 0x55, 0xcd, 0x8d, 0xce, 0x3b, 0x4a, 0x67, 0x0b, + 0xdf, 0xbe, 0x38, 0x6b, 0x69, 0x0a, 0x6b, 0x34, 0x00, 0x14, 0x72, 0x77, 0xbf, 0x7c, 0x76, 0xea, + 0x5a, 0xcf, 0x4f, 0x5d, 0xeb, 0xef, 0x53, 0xd7, 0xfa, 0xe9, 0xcc, 0x9d, 0x7b, 0x7e, 0xe6, 0xce, + 0xfd, 0x71, 0xe6, 0xce, 0x7d, 0xe3, 0x97, 0x2a, 0x7f, 0x1c, 0xf5, 0xdb, 0x12, 0xae, 0xea, 0x82, + 0xce, 0xa2, 0x5a, 0x7b, 0x3f, 0xfc, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xf3, 0x4f, 0x08, 0x2f, 0xdd, + 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2153,7 +2152,7 @@ func (m *QueryAllProgramRewardsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.UsdcStakingRewards = append(m.UsdcStakingRewards, types1.DecCoin{}) + m.UsdcStakingRewards = append(m.UsdcStakingRewards, types1.Coin{}) if err := m.UsdcStakingRewards[len(m.UsdcStakingRewards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2187,7 +2186,7 @@ func (m *QueryAllProgramRewardsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ElysStakingRewards = append(m.ElysStakingRewards, types1.DecCoin{}) + m.ElysStakingRewards = append(m.ElysStakingRewards, types1.Coin{}) if err := m.ElysStakingRewards[len(m.ElysStakingRewards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2221,7 +2220,7 @@ func (m *QueryAllProgramRewardsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EdenStakingRewards = append(m.EdenStakingRewards, types1.DecCoin{}) + m.EdenStakingRewards = append(m.EdenStakingRewards, types1.Coin{}) if err := m.EdenStakingRewards[len(m.EdenStakingRewards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2255,7 +2254,7 @@ func (m *QueryAllProgramRewardsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EdenbStakingRewards = append(m.EdenbStakingRewards, types1.DecCoin{}) + m.EdenbStakingRewards = append(m.EdenbStakingRewards, types1.Coin{}) if err := m.EdenbStakingRewards[len(m.EdenbStakingRewards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err }