diff --git a/proto/kira/gov/network_properties.proto b/proto/kira/gov/network_properties.proto index d1ecaa72..aaecdf0f 100644 --- a/proto/kira/gov/network_properties.proto +++ b/proto/kira/gov/network_properties.proto @@ -74,6 +74,7 @@ enum NetworkProperty { DAPP_POOL_SLIPPAGE_DEFAULT = 56 [(gogoproto.enumvalue_customname) = "DappPoolSlippageDefault"]; MINTING_FT_FEE = 57 [ (gogoproto.enumvalue_customname) = "MintingFtFee" ]; MINTING_NFT_FEE = 58 [ (gogoproto.enumvalue_customname) = "MintingNftFee" ]; + VETO_THRESHOLD = 59 [ (gogoproto.enumvalue_customname) = "VetoThreshold" ]; } message NetworkPropertyValue { @@ -167,4 +168,8 @@ message NetworkProperties { ]; // default 0.1, that is 10% uint64 minting_ft_fee = 58; // default 100’000’000’000 ukex - 100k KEX uint64 minting_nft_fee = 59; // default 100’000’000’000 ukex - 100k KEX + string veto_threshold = 60 [ + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.nullable) = false + ]; } diff --git a/types/constants.go b/types/constants.go index 35077b51..c48999bb 100644 --- a/types/constants.go +++ b/types/constants.go @@ -3,6 +3,6 @@ package types const ( // we set page iteration limit for safety PageIterationLimit = 512 - SekaiVersion = "v0.3.31" + SekaiVersion = "v0.3.32" CosmosVersion = "v0.45.10" ) diff --git a/x/genutil/client/cli/upgrade_genesis.go b/x/genutil/client/cli/upgrade_genesis.go index ad55ee1c..f75230f3 100644 --- a/x/genutil/client/cli/upgrade_genesis.go +++ b/x/genutil/client/cli/upgrade_genesis.go @@ -195,6 +195,7 @@ $ %s new-genesis-from-exported exported-genesis.json new-genesis.json DappPoolSlippageDefault: sdk.NewDecWithPrec(1, 1), // 10% MintingFtFee: 100_000_000_000_000, MintingNftFee: 100_000_000_000_000, + VetoThreshold: sdk.NewDecWithPrec(3340, 2), //33.40% }, ExecutionFees: govGenesisV01228.ExecutionFees, PoorNetworkMessages: govGenesisV01228.PoorNetworkMessages, diff --git a/x/gov/abci.go b/x/gov/abci.go index c3e57e1b..aac6bca8 100644 --- a/x/gov/abci.go +++ b/x/gov/abci.go @@ -1,188 +1,188 @@ -package gov - -import ( - "fmt" - "time" - - "github.com/KiraCore/sekai/x/gov/keeper" - "github.com/KiraCore/sekai/x/gov/types" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func EndBlocker(ctx sdk.Context, k keeper.Keeper) { - enactmentIterator := k.GetEnactmentProposalsWithFinishedEnactmentEndTimeIterator(ctx, ctx.BlockTime()) - defer enactmentIterator.Close() - for ; enactmentIterator.Valid(); enactmentIterator.Next() { - proposalID := keeper.BytesToProposalID(enactmentIterator.Value()) - slash := k.GetAverageVotesSlash(ctx, proposalID) - processEnactmentProposal(ctx, k, proposalID, slash) - } - - activeIterator := k.GetActiveProposalsWithFinishedVotingEndTimeIterator(ctx, ctx.BlockTime()) - defer activeIterator.Close() - for ; activeIterator.Valid(); activeIterator.Next() { - processProposal(ctx, k, keeper.BytesToProposalID(activeIterator.Value())) - } - - pollIterator := k.GetPollsWithFinishedVotingEndTimeIterator(ctx, time.Now()) - defer pollIterator.Close() - for ; pollIterator.Valid(); pollIterator.Next() { - processPoll(ctx, k, sdk.BigEndianToUint64(pollIterator.Value())) - } -} - -func processPoll(ctx sdk.Context, k keeper.Keeper, pollID uint64) { - var totalVoters int - var actors []types.NetworkActor - var duplicateMap = make(map[string]bool) - - poll, err := k.GetPoll(ctx, pollID) - if err != nil { - panic(err) - } - - for _, role := range poll.Roles { - availableVoters := k.GetNetworkActorsByRole(ctx, role) - - for ; availableVoters.Valid(); availableVoters.Next() { - if _, ok := duplicateMap[sdk.AccAddress(availableVoters.Value()).String()]; !ok { - duplicateMap[sdk.AccAddress(availableVoters.Value()).String()] = true - actors = append(actors, k.GetNetworkActorOrFail(ctx, availableVoters.Value())) - } - } - } - - votes := k.GetPollVotes(ctx, pollID) - totalVoters += len(actors) - numVotes := len(votes) - properties := k.GetNetworkProperties(ctx) - quorum := properties.VoteQuorum - - isQuorum, err := types.IsQuorum(quorum, uint64(numVotes), uint64(totalVoters)) - if err != nil { - panic(fmt.Sprintf("Invalid quorum on proposal: pollID=%d, err=%+v", pollID, err)) - } - - if isQuorum { - numActorsWithVeto := len(types.GetActorsWithVoteWithVeto(actors)) - calculatedVote := types.CalculatePollVotes(votes, uint64(numActorsWithVeto)) - poll.Result = calculatedVote.ProcessResult() - } else { - poll.Result = types.PollQuorumNotReached - } - - k.SavePoll(ctx, poll) - k.RemoveActivePoll(ctx, poll) -} - -func processProposal(ctx sdk.Context, k keeper.Keeper, proposalID uint64) { - proposal, found := k.GetProposal(ctx, proposalID) - if !found { - panic("proposal was expected to exist") - } - - // skip execution if block height condition does not meet - if proposal.MinVotingEndBlockHeight > ctx.BlockHeight() { - return - } - - votes := k.GetProposalVotes(ctx, proposalID) - - availableVoters := k.GetNetworkActorsByAbsoluteWhitelistPermission(ctx, proposal.GetContent().VotePermission()) - totalVoters := len(availableVoters) - - // councilor rank update function on absent - voteMap := make(map[string]bool) - for _, voter := range availableVoters { - voteMap[voter.Address.String()] = true - } - councilors := k.GetAllCouncilors(ctx) - for _, councilor := range councilors { - if !voteMap[councilor.Address.String()] { - k.OnCouncilorAbsent(ctx, councilor.Address) - } - } - - // update to spending pool users if it's spending pool proposal - content := proposal.GetContent() - if content.VotePermission() == types.PermZero { - router := k.GetProposalRouter() - totalVoters = len(router.AllowedAddressesDynamicProposal(ctx, content)) - if totalVoters == 0 { - totalVoters = 1 - } - } - numVotes := len(votes) - - properties := k.GetNetworkProperties(ctx) - - quorum := properties.VoteQuorum - if content.VotePermission() == types.PermZero { - router := k.GetProposalRouter() - quorum = router.QuorumDynamicProposal(ctx, content) - } - - isQuorum, err := types.IsQuorum(quorum, uint64(numVotes), uint64(totalVoters)) - if err != nil { - panic(fmt.Sprintf("Invalid quorum on proposal: proposalID=%d, proposalType=%s, err=%+v", proposalID, proposal.GetContent().ProposalType(), err)) - } - - if isQuorum { - numActorsWithVeto := len(types.GetActorsWithVoteWithVeto(availableVoters)) - calculatedVote := types.CalculateVotes(votes, uint64(numActorsWithVeto)) - - proposal.Result = calculatedVote.ProcessResult() - if proposal.Result == types.Passed { // This is done in order to show that proposal is in enactment, but after enactment passes it will be passed. - proposal.Result = types.Enactment - } - } else { - proposal.Result = types.QuorumNotReached - } - - // enactment time should be at least 1 block from voting period finish - proposal.MinEnactmentEndBlockHeight = ctx.BlockHeight() + int64(properties.MinProposalEnactmentBlocks) - k.SaveProposal(ctx, proposal) - k.RemoveActiveProposal(ctx, proposal) - k.AddToEnactmentProposals(ctx, proposal) - - ctx.EventManager().EmitEvent( - sdk.NewEvent( - types.EventTypeAddToEnactment, - sdk.NewAttribute(types.AttributeKeyProposalId, fmt.Sprintf("%d", proposal.ProposalId)), - sdk.NewAttribute(types.AttributeKeyProposalDescription, proposal.Description), - ), - ) -} - -func processEnactmentProposal(ctx sdk.Context, k keeper.Keeper, proposalID uint64, slash sdk.Dec) { - router := k.GetProposalRouter() - proposal, found := k.GetProposal(ctx, proposalID) - if !found { - panic("proposal was expected to exist") - } - - // skip execution if block height condition does not meet - if proposal.MinEnactmentEndBlockHeight > ctx.BlockHeight() { - return - } - - if proposal.Result == types.Enactment { - err := router.ApplyProposal(ctx, proposalID, proposal.GetContent(), slash) - if err != nil { - proposal.ExecResult = "execution failed" - } else { - proposal.ExecResult = "executed successfully" - } - proposal.Result = types.Passed - k.SaveProposal(ctx, proposal) - } - - k.RemoveEnactmentProposal(ctx, proposal) - ctx.EventManager().EmitEvent( - sdk.NewEvent( - types.EventTypeRemoveEnactment, - sdk.NewAttribute(types.AttributeKeyProposalId, fmt.Sprintf("%d", proposal.ProposalId)), - sdk.NewAttribute(types.AttributeKeyProposalDescription, proposal.Description), - ), - ) -} +package gov + +import ( + "fmt" + "time" + + "github.com/KiraCore/sekai/x/gov/keeper" + "github.com/KiraCore/sekai/x/gov/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func EndBlocker(ctx sdk.Context, k keeper.Keeper) { + enactmentIterator := k.GetEnactmentProposalsWithFinishedEnactmentEndTimeIterator(ctx, ctx.BlockTime()) + defer enactmentIterator.Close() + for ; enactmentIterator.Valid(); enactmentIterator.Next() { + proposalID := keeper.BytesToProposalID(enactmentIterator.Value()) + slash := k.GetAverageVotesSlash(ctx, proposalID) + processEnactmentProposal(ctx, k, proposalID, slash) + } + + activeIterator := k.GetActiveProposalsWithFinishedVotingEndTimeIterator(ctx, ctx.BlockTime()) + defer activeIterator.Close() + for ; activeIterator.Valid(); activeIterator.Next() { + processProposal(ctx, k, keeper.BytesToProposalID(activeIterator.Value())) + } + + pollIterator := k.GetPollsWithFinishedVotingEndTimeIterator(ctx, time.Now()) + defer pollIterator.Close() + for ; pollIterator.Valid(); pollIterator.Next() { + processPoll(ctx, k, sdk.BigEndianToUint64(pollIterator.Value())) + } +} + +func processPoll(ctx sdk.Context, k keeper.Keeper, pollID uint64) { + var totalVoters int + var actors []types.NetworkActor + var duplicateMap = make(map[string]bool) + + poll, err := k.GetPoll(ctx, pollID) + if err != nil { + panic(err) + } + + for _, role := range poll.Roles { + availableVoters := k.GetNetworkActorsByRole(ctx, role) + + for ; availableVoters.Valid(); availableVoters.Next() { + if _, ok := duplicateMap[sdk.AccAddress(availableVoters.Value()).String()]; !ok { + duplicateMap[sdk.AccAddress(availableVoters.Value()).String()] = true + actors = append(actors, k.GetNetworkActorOrFail(ctx, availableVoters.Value())) + } + } + } + + votes := k.GetPollVotes(ctx, pollID) + totalVoters += len(actors) + numVotes := len(votes) + properties := k.GetNetworkProperties(ctx) + quorum := properties.VoteQuorum + + isQuorum, err := types.IsQuorum(quorum, uint64(numVotes), uint64(totalVoters)) + if err != nil { + panic(fmt.Sprintf("Invalid quorum on proposal: pollID=%d, err=%+v", pollID, err)) + } + + if isQuorum { + numActorsWithVeto := len(types.GetActorsWithVoteWithVeto(actors)) + calculatedVote := types.CalculatePollVotes(votes, uint64(numActorsWithVeto)) + poll.Result = calculatedVote.ProcessResult(properties) + } else { + poll.Result = types.PollQuorumNotReached + } + + k.SavePoll(ctx, poll) + k.RemoveActivePoll(ctx, poll) +} + +func processProposal(ctx sdk.Context, k keeper.Keeper, proposalID uint64) { + proposal, found := k.GetProposal(ctx, proposalID) + if !found { + panic("proposal was expected to exist") + } + + // skip execution if block height condition does not meet + if proposal.MinVotingEndBlockHeight > ctx.BlockHeight() { + return + } + + votes := k.GetProposalVotes(ctx, proposalID) + + availableVoters := k.GetNetworkActorsByAbsoluteWhitelistPermission(ctx, proposal.GetContent().VotePermission()) + totalVoters := len(availableVoters) + + // councilor rank update function on absent + voteMap := make(map[string]bool) + for _, voter := range availableVoters { + voteMap[voter.Address.String()] = true + } + councilors := k.GetAllCouncilors(ctx) + for _, councilor := range councilors { + if !voteMap[councilor.Address.String()] { + k.OnCouncilorAbsent(ctx, councilor.Address) + } + } + + // update to spending pool users if it's spending pool proposal + content := proposal.GetContent() + if content.VotePermission() == types.PermZero { + router := k.GetProposalRouter() + totalVoters = len(router.AllowedAddressesDynamicProposal(ctx, content)) + if totalVoters == 0 { + totalVoters = 1 + } + } + numVotes := len(votes) + + properties := k.GetNetworkProperties(ctx) + + quorum := properties.VoteQuorum + if content.VotePermission() == types.PermZero { + router := k.GetProposalRouter() + quorum = router.QuorumDynamicProposal(ctx, content) + } + + isQuorum, err := types.IsQuorum(quorum, uint64(numVotes), uint64(totalVoters)) + if err != nil { + panic(fmt.Sprintf("Invalid quorum on proposal: proposalID=%d, proposalType=%s, err=%+v", proposalID, proposal.GetContent().ProposalType(), err)) + } + + if isQuorum { + numActorsWithVeto := len(types.GetActorsWithVoteWithVeto(availableVoters)) + calculatedVote := types.CalculateVotes(votes, uint64(numActorsWithVeto)) + + proposal.Result = calculatedVote.ProcessResult() + if proposal.Result == types.Passed { // This is done in order to show that proposal is in enactment, but after enactment passes it will be passed. + proposal.Result = types.Enactment + } + } else { + proposal.Result = types.QuorumNotReached + } + + // enactment time should be at least 1 block from voting period finish + proposal.MinEnactmentEndBlockHeight = ctx.BlockHeight() + int64(properties.MinProposalEnactmentBlocks) + k.SaveProposal(ctx, proposal) + k.RemoveActiveProposal(ctx, proposal) + k.AddToEnactmentProposals(ctx, proposal) + + ctx.EventManager().EmitEvent( + sdk.NewEvent( + types.EventTypeAddToEnactment, + sdk.NewAttribute(types.AttributeKeyProposalId, fmt.Sprintf("%d", proposal.ProposalId)), + sdk.NewAttribute(types.AttributeKeyProposalDescription, proposal.Description), + ), + ) +} + +func processEnactmentProposal(ctx sdk.Context, k keeper.Keeper, proposalID uint64, slash sdk.Dec) { + router := k.GetProposalRouter() + proposal, found := k.GetProposal(ctx, proposalID) + if !found { + panic("proposal was expected to exist") + } + + // skip execution if block height condition does not meet + if proposal.MinEnactmentEndBlockHeight > ctx.BlockHeight() { + return + } + + if proposal.Result == types.Enactment { + err := router.ApplyProposal(ctx, proposalID, proposal.GetContent(), slash) + if err != nil { + proposal.ExecResult = "execution failed" + } else { + proposal.ExecResult = "executed successfully" + } + proposal.Result = types.Passed + k.SaveProposal(ctx, proposal) + } + + k.RemoveEnactmentProposal(ctx, proposal) + ctx.EventManager().EmitEvent( + sdk.NewEvent( + types.EventTypeRemoveEnactment, + sdk.NewAttribute(types.AttributeKeyProposalId, fmt.Sprintf("%d", proposal.ProposalId)), + sdk.NewAttribute(types.AttributeKeyProposalDescription, proposal.Description), + ), + ) +} diff --git a/x/gov/genesis_test.go b/x/gov/genesis_test.go index ade0a3bc..e6a81e7c 100644 --- a/x/gov/genesis_test.go +++ b/x/gov/genesis_test.go @@ -183,7 +183,8 @@ func TestSimappExportGenesis(t *testing.T) { "dapp_inactive_rank_decrease_percent": "10", "dapp_pool_slippage_default": "0.100000000000000000", "minting_ft_fee": "100000000000000", - "minting_nft_fee": "100000000000000" + "minting_nft_fee": "100000000000000", + "veto_threshold": "33.400000000000000000" }, "execution_fees": [ { @@ -392,6 +393,7 @@ func TestExportInitGenesis(t *testing.T) { DappPoolSlippageDefault: sdk.NewDecWithPrec(1, 1), // 10% MintingFtFee: 100_000_000_000_000, MintingNftFee: 100_000_000_000_000, + VetoThreshold: sdk.NewDecWithPrec(3340, 2), // 33.40% }, ExecutionFees: []types.ExecutionFee{ { @@ -507,7 +509,8 @@ func TestExportInitGenesis(t *testing.T) { "dapp_inactive_rank_decrease_percent": "10", "dapp_pool_slippage_default": "0.100000000000000000", "minting_ft_fee": "100000000000000", - "minting_nft_fee": "100000000000000" + "minting_nft_fee": "100000000000000", + "veto_threshold": "33.400000000000000000" }, "execution_fees": [ { diff --git a/x/gov/keeper/keeper.go b/x/gov/keeper/keeper.go index 91979a55..984ced9e 100644 --- a/x/gov/keeper/keeper.go +++ b/x/gov/keeper/keeper.go @@ -3,7 +3,6 @@ package keeper import ( "errors" "fmt" - "github.com/KiraCore/sekai/x/gov/types" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/store/prefix" @@ -246,6 +245,8 @@ func (k Keeper) GetNetworkProperty(ctx sdk.Context, property types.NetworkProper return types.NetworkPropertyValue{Value: properties.MintingFtFee}, nil case types.MintingNftFee: return types.NetworkPropertyValue{Value: properties.MintingNftFee}, nil + case types.VetoThreshold: + return types.NetworkPropertyValue{StrValue: properties.VetoThreshold.String()}, nil default: return types.NetworkPropertyValue{}, errors.New("trying to fetch network property that does not exist") @@ -393,6 +394,12 @@ func (k Keeper) SetNetworkProperty(ctx sdk.Context, property types.NetworkProper properties.MintingFtFee = value.Value case types.MintingNftFee: properties.MintingNftFee = value.Value + case types.VetoThreshold: + decValue, err := sdk.NewDecFromStr(value.StrValue) + if err != nil { + return err + } + properties.VetoThreshold = decValue default: return errors.New("trying to set network property that does not exist") diff --git a/x/gov/types/genesis.go b/x/gov/types/genesis.go index 8d2a0fe6..89270d13 100644 --- a/x/gov/types/genesis.go +++ b/x/gov/types/genesis.go @@ -157,6 +157,7 @@ func DefaultGenesis() *GenesisState { DappPoolSlippageDefault: sdk.NewDecWithPrec(1, 1), // 10% MintingFtFee: 100_000_000_000_000, MintingNftFee: 100_000_000_000_000, + VetoThreshold: sdk.NewDecWithPrec(3340, 2), // 33.40% }, ExecutionFees: []ExecutionFee{ { diff --git a/x/gov/types/network_properties.pb.go b/x/gov/types/network_properties.pb.go index 2224200c..0a6acd69 100644 --- a/x/gov/types/network_properties.pb.go +++ b/x/gov/types/network_properties.pb.go @@ -86,6 +86,7 @@ const ( DappPoolSlippageDefault NetworkProperty = 56 MintingFtFee NetworkProperty = 57 MintingNftFee NetworkProperty = 58 + VetoThreshold NetworkProperty = 59 ) var NetworkProperty_name = map[int32]string{ @@ -148,6 +149,7 @@ var NetworkProperty_name = map[int32]string{ 56: "DAPP_POOL_SLIPPAGE_DEFAULT", 57: "MINTING_FT_FEE", 58: "MINTING_NFT_FEE", + 59: "VETO_THRESHOLD", } var NetworkProperty_value = map[string]int32{ @@ -210,6 +212,7 @@ var NetworkProperty_value = map[string]int32{ "DAPP_POOL_SLIPPAGE_DEFAULT": 56, "MINTING_FT_FEE": 57, "MINTING_NFT_FEE": 58, + "VETO_THRESHOLD": 59, } func (x NetworkProperty) String() string { @@ -384,6 +387,7 @@ type NetworkProperties struct { DappPoolSlippageDefault github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,57,opt,name=dapp_pool_slippage_default,json=dappPoolSlippageDefault,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"dapp_pool_slippage_default"` MintingFtFee uint64 `protobuf:"varint,58,opt,name=minting_ft_fee,json=mintingFtFee,proto3" json:"minting_ft_fee,omitempty"` MintingNftFee uint64 `protobuf:"varint,59,opt,name=minting_nft_fee,json=mintingNftFee,proto3" json:"minting_nft_fee,omitempty"` + VetoThreshold github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,60,opt,name=veto_threshold,json=vetoThreshold,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"veto_threshold"` } func (m *NetworkProperties) Reset() { *m = NetworkProperties{} } @@ -786,178 +790,180 @@ func init() { func init() { proto.RegisterFile("kira/gov/network_properties.proto", fileDescriptor_98011a6048e5dde3) } var fileDescriptor_98011a6048e5dde3 = []byte{ - // 2729 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x59, 0xdd, 0x6e, 0xdb, 0x46, - 0xda, 0x8e, 0xdb, 0xb4, 0x75, 0x26, 0x89, 0x4d, 0xd3, 0x72, 0xcc, 0xd0, 0x89, 0xcc, 0x3a, 0x4d, - 0x9a, 0xb6, 0x89, 0x9d, 0xa4, 0x4d, 0xda, 0xa6, 0xdf, 0x87, 0xef, 0xa3, 0x44, 0x2a, 0x66, 0x2d, - 0xfe, 0x84, 0x3f, 0x4e, 0x53, 0x2c, 0x30, 0xa5, 0xa5, 0xb1, 0xcd, 0x15, 0x45, 0xaa, 0x24, 0xe5, - 0xca, 0xbd, 0x82, 0x85, 0x8e, 0xf6, 0x68, 0x0f, 0x16, 0x10, 0xb0, 0xc0, 0xde, 0xc2, 0x5e, 0x44, - 0x0f, 0x7b, 0xb8, 0xd8, 0x83, 0x62, 0xd1, 0x9e, 0xec, 0x35, 0xec, 0xd1, 0x62, 0x7e, 0x48, 0xea, - 0xcf, 0xce, 0xc2, 0x47, 0x71, 0xe6, 0x7d, 0x9e, 0x77, 0xde, 0x79, 0xe7, 0x99, 0xe1, 0x3c, 0x10, - 0x78, 0xbf, 0x13, 0x24, 0xfe, 0xce, 0x51, 0x7c, 0xb2, 0x13, 0xa1, 0xec, 0x87, 0x38, 0xe9, 0xc0, - 0x5e, 0x12, 0xf7, 0x50, 0x92, 0x05, 0x28, 0xdd, 0xee, 0x25, 0x71, 0x16, 0xf3, 0x8b, 0x18, 0xb2, - 0x7d, 0x14, 0x9f, 0x88, 0x95, 0xa3, 0xf8, 0x28, 0x26, 0x83, 0x3b, 0xf8, 0x2f, 0x1a, 0xdf, 0xfa, - 0xdb, 0x02, 0x58, 0xd7, 0xd3, 0x23, 0x07, 0x65, 0x06, 0x4d, 0x61, 0x15, 0x19, 0xf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00, 0x00, 0xff, - 0xff, 0x9f, 0x02, 0x1a, 0x45, 0x4a, 0x1b, 0x00, 0x00, + // 2760 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x59, 0xdd, 0x72, 0xdb, 0xc6, + 0xd9, 0xb6, 0x12, 0x27, 0x91, 0xd7, 0xb6, 0x04, 0x41, 0x94, 0x05, 0x43, 0x36, 0xc5, 0xc8, 0x91, + 0xe3, 0x24, 0xb6, 0x64, 0x3b, 0xb1, 0x93, 0xd8, 0xf9, 0xe6, 0x2b, 0x48, 0x80, 0x16, 0x22, 0xe2, + 0xc7, 0xf8, 0xa1, 0xe3, 0x4c, 0x67, 0x36, 0x10, 0xb9, 0x92, 0x50, 0x82, 0x00, 0x03, 0x80, 0x0a, + 0x95, 0x2b, 0xe8, 0xf0, 0xa8, 0x37, 0xc0, 0x99, 0xce, 0xf4, 0x16, 0x7a, 0x03, 0x3d, 0xcb, 0x61, + 0x0e, 0x3b, 0x3d, 0xc8, 0x74, 0x92, 0x93, 0x9e, 0xf4, 0x06, 0x7a, 0xd4, 0xd9, 0x1f, 0x00, 0xfc, + 0x93, 0xdc, 0xd1, 0x91, 0xe5, 0x7d, 0x9f, 0xe7, 0xdd, 0x77, 0xdf, 0x7d, 0x76, 0xb1, 0xcf, 0x10, + 0xbc, 0xdf, 0xf1, 0x63, 0x6f, 0xf7, 0x28, 0x3a, 0xd9, 0x0d, 0x51, 0xfa, 0x43, 0x14, 0x77, 0x60, + 0x2f, 0x8e, 0x7a, 0x28, 0x4e, 0x7d, 0x94, 0xec, 0xf4, 0xe2, 0x28, 0x8d, 0xf8, 0x45, 0x0c, 0xd9, + 0x39, 0x8a, 0x4e, 0xc4, 0xd2, 0x51, 0x74, 0x14, 0x91, 0xc1, 0x5d, 0xfc, 0x17, 0x8d, 0x6f, 0xfd, + 0x75, 0x01, 0xac, 0x6b, 0xc9, 0x91, 0x8d,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d, 0x1e, 0xde, 0xaf, 0x3c, 0x11, 0x77, 0x45, 0xe4, 0x86, 0xa3, 0xca, 0x35, 0x6d, 0xca, + 0xed, 0x15, 0x33, 0xd5, 0x0c, 0xbd, 0xae, 0xca, 0x0a, 0xc6, 0x02, 0x71, 0x7d, 0x38, 0xaa, 0xac, + 0x6a, 0x73, 0xdc, 0x5e, 0x0d, 0x94, 0x55, 0xdc, 0x11, 0xb5, 0x39, 0x5d, 0x9b, 0xa9, 0x58, 0x35, + 0x45, 0x77, 0xb8, 0xab, 0xb4, 0xb8, 0xf3, 0x0e, 0xe4, 0x33, 0x20, 0x9a, 0x86, 0x61, 0x41, 0x5d, + 0x71, 0x5e, 0x19, 0xd6, 0x3e, 0xc4, 0x95, 0x56, 0x71, 0x32, 0x5b, 0xd1, 0x65, 0xee, 0x1a, 0x95, + 0x83, 0x39, 0xdf, 0x96, 0x6d, 0x83, 0x25, 0xbc, 0x3f, 0x4d, 0xa9, 0xa1, 0xca, 0x92, 0x63, 0x58, + 0x36, 0x77, 0x5d, 0x5c, 0x19, 0x8e, 0x2a, 0xd7, 0xb5, 0x09, 0xe7, 0x77, 0x17, 0x2c, 0xbb, 0xfa, + 0xd7, 0x92, 0xda, 0x20, 0xc9, 0x89, 0x5a, 0x96, 0x28, 0xce, 0x9d, 0x76, 0x6f, 0x6c, 0xaf, 0x1c, + 0x63, 0x5f, 0xd1, 0xe1, 0xab, 0x3d, 0xd5, 0x51, 0x1a, 0xaa, 0xed, 0x70, 0xcb, 0x54, 0x24, 0xca, + 0x19, 0xee, 0x6d, 0x82, 0x55, 0x6d, 0x48, 0xb5, 0x7d, 0xc2, 0xe2, 0x66, 0x58, 0x13, 0xee, 0x0d, + 0x97, 0x8e, 0x9b, 0xec, 0xa8, 0xce, 0x6b, 0x28, 0x99, 0xa6, 0x65, 0x34, 0xa5, 0x06, 0x74, 0x54, + 0x93, 0x5b, 0xc9, 0x0f, 0xc1, 0x19, 0xee, 0xcd, 0xd5, 0xd5, 0x97, 0xae, 0x52, 0xb0, 0xf7, 0x95, + 0xd7, 0x36, 0xc7, 0x8b, 0x37, 0x86, 0xa3, 0x0a, 0xef, 0xce, 0x75, 0x6f, 0x6e, 0x55, 0x85, 0x7b, + 0x92, 0x25, 0xd7, 0x24, 0x93, 0x5b, 0xa5, 0x47, 0xd2, 0x2d, 0xdc, 0xdb, 0x43, 0x50, 0x2a, 0x9a, + 0x48, 0x14, 0x6a, 0xef, 0x49, 0x96, 0xc2, 0x95, 0x68, 0xca, 0xe6, 0xac, 0x1b, 0xdb, 0x06, 0x4b, + 0xaa, 0x5e, 0x6f, 0x48, 0x8e, 0x6a, 0xe8, 0xd0, 0x92, 0x1c, 0x85, 0x5b, 0xa3, 0x2d, 0x55, 0xa7, + 0xdd, 0x55, 0x01, 0x33, 0x15, 0x4b, 0x35, 0x64, 0xee, 0x86, 0xb8, 0x3a, 0x1c, 0x55, 0x96, 0xd5, + 0x59, 0x77, 0xe5, 0xea, 0xb6, 0x23, 0xed, 0xab, 0xfa, 0x8b, 0x0c, 0xba, 0x4e, 0xa1, 0xee, 0xac, + 0xbb, 0xc2, 0x3b, 0x29, 0x2b, 0x0d, 0xe5, 0x05, 0xdd, 0x77, 0x81, 0xed, 0xfb, 0xb4, 0xbb, 0xc2, + 0x3d, 0x66, 0x30, 0x52, 0x81, 0x6b, 0xef, 0x19, 0xae, 0xc3, 0xdd, 0xcc, 0x0f, 0xfd, 0x5c, 0x77, + 0x65, 0x37, 0x24, 0x7b, 0x6f, 0xac, 0x0c, 0x51, 0xe4, 0x87, 0xa3, 0xca, 0x92, 0x3d, 0xe9, 0xae, + 0x1e, 0x83, 0x35, 0x5c, 0x05, 0x16, 0x96, 0x22, 0x67, 0x92, 0x97, 0x5e, 0x28, 0xdc, 0x06, 0x3b, + 0x32, 0x73, 0xdc, 0xd2, 0x53, 0xb0, 0x8e, 0x39, 0xe3, 0x13, 0x64, 0xac, 0x5b, 0xf4, 0x02, 0xd3, + 0xce, 0x72, 0x3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f, 0xbd, 0x5a, 0x14, 0xa3, 0xdd, 0x04, 0x75, 0x3c, 0x7f, 0x77, 0x40, 0x7e, + 0xaf, 0x23, 0xbe, 0xe4, 0xe0, 0x5d, 0xf2, 0x1b, 0xdc, 0xa7, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, + 0xb4, 0x1e, 0xed, 0xd3, 0xc8, 0x1b, 0x00, 0x00, } func (this *NetworkPropertyValue) Equal(that interface{}) bool { @@ -1084,6 +1090,18 @@ func (m *NetworkProperties) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + { + size := m.VetoThreshold.Size() + i -= size + if _, err := m.VetoThreshold.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintNetworkProperties(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 if m.MintingNftFee != 0 { i = encodeVarintNetworkProperties(dAtA, i, uint64(m.MintingNftFee)) i-- @@ -1747,6 +1765,8 @@ func (m *NetworkProperties) Size() (n int) { if m.MintingNftFee != 0 { n += 2 + sovNetworkProperties(uint64(m.MintingNftFee)) } + l = m.VetoThreshold.Size() + n += 2 + l + sovNetworkProperties(uint64(l)) return n } @@ -3263,6 +3283,40 @@ func (m *NetworkProperties) Unmarshal(dAtA []byte) error { break } } + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VetoThreshold", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNetworkProperties + } + 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 ErrInvalidLengthNetworkProperties + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNetworkProperties + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.VetoThreshold.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNetworkProperties(dAtA[iNdEx:]) diff --git a/x/gov/types/poll_vote.go b/x/gov/types/poll_vote.go index 32d8e56b..58ffbeca 100644 --- a/x/gov/types/poll_vote.go +++ b/x/gov/types/poll_vote.go @@ -1,57 +1,105 @@ -package types - -type PollVotes []PollVote - -type CalculatedPollVotes struct { - votes map[PollVoteOption]uint64 - actorsWithVeto uint64 - total uint64 -} - -func CalculatePollVotes(votes PollVotes, actorsWithVeto uint64) CalculatedPollVotes { - votesMap := make(map[PollVoteOption]uint64) - for _, vote := range votes { - votesMap[vote.Option]++ - } - - return CalculatedPollVotes{ - total: uint64(len(votes)), - actorsWithVeto: actorsWithVeto, - votes: votesMap, - } -} - -func (c CalculatedPollVotes) TotalVotes() uint64 { - return c.total -} - -func (c CalculatedPollVotes) AbstainVotes() uint64 { - return c.votes[PollOptionAbstain] -} - -func (c CalculatedPollVotes) VetoVotes() uint64 { - return c.votes[PollOptionNoWithVeto] -} - -func (c CalculatedPollVotes) ProcessResult() PollResult { - if c.actorsWithVeto != 0 { - percentageActorsWithVeto := (float32(c.votes[PollOptionNoWithVeto]) / float32(c.actorsWithVeto)) * 100 - if percentageActorsWithVeto >= 50 { - return PollRejectedWithVeto - } - } - - yesPercentage := (float32(c.votes[PollOptionCustom]) / float32(c.total)) * 100 - if yesPercentage > 50.00 { - return PollPassed - } - - sumOtherThanYes := c.votes[PollOptionAbstain] + c.votes[PollOptionNoWithVeto] - sumPercentage := (float32(sumOtherThanYes) / float32(c.total)) * 100 - - if sumPercentage >= 50 { - return PollRejected - } - - return PollUnknown -} +package types + +import ( + "fmt" + "github.com/cosmos/cosmos-sdk/types" + "math/big" + "strconv" +) + +type PollVotes []PollVote + +type CalculatedPollVotes struct { + votes map[string]uint64 + actorsWithVeto uint64 + total uint64 +} + +func CalculatePollVotes(votes PollVotes, actorsWithVeto uint64) CalculatedPollVotes { + votesMap := make(map[string]uint64) + for _, vote := range votes { + var mapValue string + + if vote.Option == PollOptionCustom { + mapValue = vote.CustomValue + } else { + mapValue = vote.Option.String() + } + + votesMap[mapValue]++ + } + + return CalculatedPollVotes{ + total: uint64(len(votes)), + actorsWithVeto: actorsWithVeto, + votes: votesMap, + } +} + +func (c CalculatedPollVotes) TotalVotes() uint64 { + return c.total +} + +func (c CalculatedPollVotes) AbstainVotes() uint64 { + return c.votes[PollOptionAbstain.String()] +} + +func (c CalculatedPollVotes) VetoVotes() uint64 { + return c.votes[PollOptionNoWithVeto.String()] +} + +func (c CalculatedPollVotes) ProcessResult(properties *NetworkProperties) PollResult { + if c.actorsWithVeto != 0 { + fmt.Println("voteT", PollOptionNoWithVeto.String()) + fmt.Println("voteC", c.votes[PollOptionNoWithVeto.String()]) + fmt.Println("voteV", c.actorsWithVeto) + resString := strconv.FormatFloat(float64(c.votes[PollOptionNoWithVeto.String()])/float64(c.actorsWithVeto)*100, 'f', -1, 64) + + fmt.Println("resString", resString) + resBig, success := new(big.Int).SetString(resString, 10) + if !success { + return PollUnknown + } + fmt.Println("resBig", resBig.String()) + percentageActorsWithVeto := types.NewDecFromBigIntWithPrec(resBig, 0) + fmt.Println("percentageActorsWithVeto", percentageActorsWithVeto.String()) + fmt.Println("properties.VetoThreshold", properties.VetoThreshold.String()) + if properties.VetoThreshold.LTE(percentageActorsWithVeto) { + return PollRejectedWithVeto + } + } + + for _, count := range c.votes { + yesPercentage := (float32(count) / float32(c.total)) * 100 + if yesPercentage > 50.00 { + return PollPassed + } + } + + var highestVoteCount uint64 = 0 + var highestList []string + + for i, votesCount := range c.votes { + if votesCount > highestVoteCount { + highestVoteCount = votesCount + highestList = []string{i} + } + + if votesCount == highestVoteCount { + highestList = append(highestList, i) + } + } + + if len(highestList) >= 2 { + return PollRejected + } + + sumOtherThanYes := c.votes[PollOptionAbstain.String()] + c.votes[PollOptionNoWithVeto.String()] + sumPercentage := (float32(sumOtherThanYes) / float32(c.total)) * 100 + + if sumPercentage >= 50 { + return PollRejected + } + + return PollUnknown +}