github.com/Finschia/finschia-sdk@v0.49.1/proto/cosmos/distribution/v1beta1/genesis.proto (about) 1 syntax = "proto3"; 2 package cosmos.distribution.v1beta1; 3 4 option go_package = "github.com/Finschia/finschia-sdk/x/distribution/types"; 5 option (gogoproto.equal_all) = true; 6 7 import "gogoproto/gogo.proto"; 8 import "cosmos/base/v1beta1/coin.proto"; 9 import "cosmos/distribution/v1beta1/distribution.proto"; 10 11 // DelegatorWithdrawInfo is the address for where distributions rewards are 12 // withdrawn to by default this struct is only used at genesis to feed in 13 // default withdraw addresses. 14 message DelegatorWithdrawInfo { 15 option (gogoproto.equal) = false; 16 option (gogoproto.goproto_getters) = false; 17 18 // delegator_address is the address of the delegator. 19 string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; 20 21 // withdraw_address is the address to withdraw the delegation rewards to. 22 string withdraw_address = 2 [(gogoproto.moretags) = "yaml:\"withdraw_address\""]; 23 } 24 25 // ValidatorOutstandingRewardsRecord is used for import/export via genesis json. 26 message ValidatorOutstandingRewardsRecord { 27 option (gogoproto.equal) = false; 28 option (gogoproto.goproto_getters) = false; 29 30 // validator_address is the address of the validator. 31 string validator_address = 1 [(gogoproto.moretags) = "yaml:\"validator_address\""]; 32 33 // outstanding_rewards represents the oustanding rewards of a validator. 34 repeated cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [ 35 (gogoproto.castrepeated) = "github.com/Finschia/finschia-sdk/types.DecCoins", 36 (gogoproto.nullable) = false, 37 (gogoproto.moretags) = "yaml:\"outstanding_rewards\"" 38 ]; 39 } 40 41 // ValidatorAccumulatedCommissionRecord is used for import / export via genesis 42 // json. 43 message ValidatorAccumulatedCommissionRecord { 44 option (gogoproto.equal) = false; 45 option (gogoproto.goproto_getters) = false; 46 47 // validator_address is the address of the validator. 48 string validator_address = 1 [(gogoproto.moretags) = "yaml:\"validator_address\""]; 49 50 // accumulated is the accumulated commission of a validator. 51 ValidatorAccumulatedCommission accumulated = 2 52 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"accumulated\""]; 53 } 54 55 // ValidatorHistoricalRewardsRecord is used for import / export via genesis 56 // json. 57 message ValidatorHistoricalRewardsRecord { 58 option (gogoproto.equal) = false; 59 option (gogoproto.goproto_getters) = false; 60 61 // validator_address is the address of the validator. 62 string validator_address = 1 [(gogoproto.moretags) = "yaml:\"validator_address\""]; 63 64 // period defines the period the historical rewards apply to. 65 uint64 period = 2; 66 67 // rewards defines the historical rewards of a validator. 68 ValidatorHistoricalRewards rewards = 3 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"rewards\""]; 69 } 70 71 // ValidatorCurrentRewardsRecord is used for import / export via genesis json. 72 message ValidatorCurrentRewardsRecord { 73 option (gogoproto.equal) = false; 74 option (gogoproto.goproto_getters) = false; 75 76 // validator_address is the address of the validator. 77 string validator_address = 1 [(gogoproto.moretags) = "yaml:\"validator_address\""]; 78 79 // rewards defines the current rewards of a validator. 80 ValidatorCurrentRewards rewards = 2 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"rewards\""]; 81 } 82 83 // DelegatorStartingInfoRecord used for import / export via genesis json. 84 message DelegatorStartingInfoRecord { 85 option (gogoproto.equal) = false; 86 option (gogoproto.goproto_getters) = false; 87 88 // delegator_address is the address of the delegator. 89 string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; 90 91 // validator_address is the address of the validator. 92 string validator_address = 2 [(gogoproto.moretags) = "yaml:\"validator_address\""]; 93 94 // starting_info defines the starting info of a delegator. 95 DelegatorStartingInfo starting_info = 3 96 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"starting_info\""]; 97 } 98 99 // ValidatorSlashEventRecord is used for import / export via genesis json. 100 message ValidatorSlashEventRecord { 101 option (gogoproto.equal) = false; 102 option (gogoproto.goproto_getters) = false; 103 104 // validator_address is the address of the validator. 105 string validator_address = 1 [(gogoproto.moretags) = "yaml:\"validator_address\""]; 106 // height defines the block height at which the slash event occured. 107 uint64 height = 2; 108 // period is the period of the slash event. 109 uint64 period = 3; 110 // validator_slash_event describes the slash event. 111 ValidatorSlashEvent validator_slash_event = 4 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"event\""]; 112 } 113 114 // GenesisState defines the distribution module's genesis state. 115 message GenesisState { 116 option (gogoproto.equal) = false; 117 option (gogoproto.goproto_getters) = false; 118 119 // params defines all the paramaters of the module. 120 Params params = 1 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"params\""]; 121 122 // fee_pool defines the fee pool at genesis. 123 FeePool fee_pool = 2 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"fee_pool\""]; 124 125 // fee_pool defines the delegator withdraw infos at genesis. 126 repeated DelegatorWithdrawInfo delegator_withdraw_infos = 3 127 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; 128 129 // fee_pool defines the previous proposer at genesis. 130 string previous_proposer = 4 [(gogoproto.moretags) = "yaml:\"previous_proposer\""]; 131 132 // fee_pool defines the outstanding rewards of all validators at genesis. 133 repeated ValidatorOutstandingRewardsRecord outstanding_rewards = 5 134 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; 135 136 // fee_pool defines the accumulated commisions of all validators at genesis. 137 repeated ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 138 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; 139 140 // fee_pool defines the historical rewards of all validators at genesis. 141 repeated ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 142 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; 143 144 // fee_pool defines the current rewards of all validators at genesis. 145 repeated ValidatorCurrentRewardsRecord validator_current_rewards = 8 146 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; 147 148 // fee_pool defines the delegator starting infos at genesis. 149 repeated DelegatorStartingInfoRecord delegator_starting_infos = 9 150 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; 151 152 // fee_pool defines the validator slash events at genesis. 153 repeated ValidatorSlashEventRecord validator_slash_events = 10 154 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"validator_slash_events\""]; 155 }