Documentation ¶
Index ¶
- Constants
- Variables
- func ErrAccountParamNotFound() sdk.Error
- func ErrBandwidthParamNotFound() sdk.Error
- func ErrCoinDayParamNotFound() sdk.Error
- func ErrDeveloperParamNotFound() sdk.Error
- func ErrEvaluateOfContentValueParamNotFound() sdk.Error
- func ErrFailedToMarshalAccountParam(err error) sdk.Error
- func ErrFailedToMarshalBandwidthParam(err error) sdk.Error
- func ErrFailedToMarshalCoinDayParam(err error) sdk.Error
- func ErrFailedToMarshalDeveloperParam(err error) sdk.Error
- func ErrFailedToMarshalEvaluateOfContentValueParam(err error) sdk.Error
- func ErrFailedToMarshalGlobalAllocationParam(err error) sdk.Error
- func ErrFailedToMarshalInfraInternalAllocationParam(err error) sdk.Error
- func ErrFailedToMarshalPostParam(err error) sdk.Error
- func ErrFailedToMarshalProposalParam(err error) sdk.Error
- func ErrFailedToMarshalReputationParam(err error) sdk.Error
- func ErrFailedToMarshalValidatorParam(err error) sdk.Error
- func ErrFailedToMarshalVoteParam(err error) sdk.Error
- func ErrFailedToUnmarshalAccountParam(err error) sdk.Error
- func ErrFailedToUnmarshalBandwidthParam(err error) sdk.Error
- func ErrFailedToUnmarshalCoinDayParam(err error) sdk.Error
- func ErrFailedToUnmarshalDeveloperParam(err error) sdk.Error
- func ErrFailedToUnmarshalEvaluateOfContentValueParam(err error) sdk.Error
- func ErrFailedToUnmarshalGlobalAllocationParam(err error) sdk.Error
- func ErrFailedToUnmarshalInfraInternalAllocationParam(err error) sdk.Error
- func ErrFailedToUnmarshalPostParam(err error) sdk.Error
- func ErrFailedToUnmarshalProposalParam(err error) sdk.Error
- func ErrFailedToUnmarshalReputationParam(err error) sdk.Error
- func ErrFailedToUnmarshalValidatorParam(err error) sdk.Error
- func ErrFailedToUnmarshalVoteParam(err error) sdk.Error
- func ErrGlobalAllocationParamNotFound() sdk.Error
- func ErrInfraAllocationParamNotFound() sdk.Error
- func ErrInvalidaParameter() sdk.Error
- func ErrParamHolderGenesisFailed() sdk.Error
- func ErrPostParamNotFound() sdk.Error
- func ErrProposalParamNotFound() sdk.Error
- func ErrQueryFailed() sdk.Error
- func ErrReputationParamNotFound() sdk.Error
- func ErrValidatorParamNotFound() sdk.Error
- func ErrVoteParamNotFound() sdk.Error
- func GetAccountParamKey() []byte
- func GetAllocationParamKey() []byte
- func GetBandwidthParamKey() []byte
- func GetCoinDayParamKey() []byte
- func GetDeveloperParamKey() []byte
- func GetEvaluateOfContentValueParamKey() []byte
- func GetInfraInternalAllocationParamKey() []byte
- func GetPostParamKey() []byte
- func GetProposalParamKey() []byte
- func GetReputationParamKey() []byte
- func GetValidatorParamKey() []byte
- func GetVoteParamKey() []byte
- func NewQuerier(ph ParamHolder) sdk.Querier
- type AccountParam
- type BandwidthParam
- type ChangeParamEvent
- type CoinDayParam
- type DeveloperParam
- type GlobalAllocationParam
- type InfraInternalAllocationParam
- type ParamHolder
- func (ph ParamHolder) GetAccountParam(ctx sdk.Context) (*AccountParam, sdk.Error)
- func (ph ParamHolder) GetBandwidthParam(ctx sdk.Context) (*BandwidthParam, sdk.Error)
- func (ph ParamHolder) GetCoinDayParam(ctx sdk.Context) (*CoinDayParam, sdk.Error)
- func (ph ParamHolder) GetDeveloperParam(ctx sdk.Context) (*DeveloperParam, sdk.Error)
- func (ph ParamHolder) GetGlobalAllocationParam(ctx sdk.Context) (*GlobalAllocationParam, sdk.Error)
- func (ph ParamHolder) GetInfraInternalAllocationParam(ctx sdk.Context) (*InfraInternalAllocationParam, sdk.Error)
- func (ph ParamHolder) GetPostParam(ctx sdk.Context) (*PostParam, sdk.Error)
- func (ph ParamHolder) GetProposalParam(ctx sdk.Context) (*ProposalParam, sdk.Error)
- func (ph ParamHolder) GetReputationParam(ctx sdk.Context) (*ReputationParam, sdk.Error)
- func (ph ParamHolder) GetValidatorParam(ctx sdk.Context) (*ValidatorParam, sdk.Error)
- func (ph ParamHolder) GetVoteParam(ctx sdk.Context) (*VoteParam, sdk.Error)
- func (ph ParamHolder) InitParam(ctx sdk.Context) error
- func (ph ParamHolder) InitParamFromConfig(ctx sdk.Context, globalParam GlobalAllocationParam, ...) error
- func (ph ParamHolder) UpdateGlobalGrowthRate(ctx sdk.Context, growthRate sdk.Dec) sdk.Error
- type ParamKeeper
- type Parameter
- type PostParam
- type ProposalParam
- type ReputationParam
- type ValidatorParam
- type VoteParam
Constants ¶
const ( // ModuleKey is the name of the module ModuleName = "param" // RouterKey is the message route for param RouterKey = ModuleName // QuerierRoute is the querier route for param QuerierRoute = ModuleName QueryAllocationParam = "allocation" QueryInfraInternalAllocationParam = "infraInternal" QueryDeveloperParam = "developer" QueryVoteParam = "vote" QueryProposalParam = "proposal" QueryValidatorParam = "validator" QueryBandwidthParam = "bandwidth" QueryAccountParam = "account" QueryPostParam = "post" QueryReputationParam = "reputation" )
Variables ¶
var ( // AnnualInflationCeiling - annual inflation upper bound AnnualInflationCeiling = types.NewDecFromRat(98, 1000) // AnnualInflationFloor - annual inflation lower bound AnnualInflationFloor = types.NewDecFromRat(3, 100) )
Functions ¶
func ErrAccountParamNotFound ¶
ErrAccountParamNotFound - error when account param is empty.
func ErrBandwidthParamNotFound ¶
ErrBandwidthParamNotFound - error when bandwidth param is empty.
func ErrCoinDayParamNotFound ¶
ErrCoinDayParamNotFound - error when coin day param is empty.
func ErrDeveloperParamNotFound ¶
ErrDeveloperParamNotFound - error when developer param is empty.
func ErrEvaluateOfContentValueParamNotFound ¶
ErrEvaluateOfContentValueParamNotFound - error when evaluate of content value param is empty.
func ErrFailedToMarshalAccountParam ¶
ErrFailedToMarshalAccountParam - error when marshal account param failed.
func ErrFailedToMarshalBandwidthParam ¶
ErrFailedToMarshalBandwidthParam - error when marshal bandwidth day param failed.
func ErrFailedToMarshalCoinDayParam ¶
ErrFailedToMarshalCoinDayParam - error when marshal coin day param failed.
func ErrFailedToMarshalDeveloperParam ¶
ErrFailedToMarshalDeveloperParam - error when marshal developer param failed.
func ErrFailedToMarshalEvaluateOfContentValueParam ¶
ErrFailedToMarshalEvaluateOfContentValueParam - error when marshal evaluate of content value param failed.
func ErrFailedToMarshalGlobalAllocationParam ¶
ErrFailedToUnmarshalAccountParam - error when marshal global allocation param failed.
func ErrFailedToMarshalInfraInternalAllocationParam ¶
ErrFailedToMarshalInfraInternalAllocationParam - error when marshal infra internal allocation param failed.
func ErrFailedToMarshalPostParam ¶
ErrFailedToMarshalPostParam - error when marshal post param failed.
func ErrFailedToMarshalProposalParam ¶
ErrFailedToMarshalProposalParam - error when marshal proposal param failed.
func ErrFailedToMarshalReputationParam ¶ added in v0.1.1
ErrFailedToMarshalReputationParam - error when marshal reputation failed.
func ErrFailedToMarshalValidatorParam ¶
ErrFailedToMarshalValidatorParam - error when marshal validator param failed.
func ErrFailedToMarshalVoteParam ¶
ErrFailedToMarshalVoteParam - error when marshal vote param failed.
func ErrFailedToUnmarshalAccountParam ¶
ErrFailedToUnmarshalAccountParam - error when unmarshal account param failed.
func ErrFailedToUnmarshalBandwidthParam ¶
ErrFailedToUnmarshalBandwidthParam - error when unmarshal bandwidth param failed.
func ErrFailedToUnmarshalCoinDayParam ¶
ErrFailedToUnmarshalCoinDayParam - error when unmarshal coin day param failed.
func ErrFailedToUnmarshalDeveloperParam ¶
ErrFailedToUnmarshalDeveloperParam - error when unmarshal developer param failed.
func ErrFailedToUnmarshalEvaluateOfContentValueParam ¶
ErrFailedToUnmarshalEvaluateOfContentValueParam - error when unmarshal evaluate of content value param failed.
func ErrFailedToUnmarshalGlobalAllocationParam ¶
ErrFailedToUnmarshalGlobalAllocationParam - error when unmarshal global allocation param failed.
func ErrFailedToUnmarshalInfraInternalAllocationParam ¶
ErrFailedToUnmarshalInfraInternalAllocationParam - error when unmarshal infra internal allocation param failed.
func ErrFailedToUnmarshalPostParam ¶
ErrFailedToUnmarshalPostParam - error when unmarshal post param failed.
func ErrFailedToUnmarshalProposalParam ¶
ErrFailedToUnmarshalProposalParam - error when unmarshal proposal param failed.
func ErrFailedToUnmarshalReputationParam ¶ added in v0.1.1
ErrFailedToUnmarshalReputationParam - error when unmarshal reputation param failed.
func ErrFailedToUnmarshalValidatorParam ¶
ErrFailedToUnmarshalValidatorParam - error when unmarshal validator param failed.
func ErrFailedToUnmarshalVoteParam ¶
ErrFailedToUnmarshalVoteParam - error when unmarshal vote param failed.
func ErrGlobalAllocationParamNotFound ¶
ErrGlobalAllocationParamNotFound - error when global allocation param is empty.
func ErrInfraAllocationParamNotFound ¶
ErrInfraAllocationParamNotFound - error when infra allocation param is empty.
func ErrInvalidaParameter ¶
ErrInvalidaParameter - error when propose a proposal with invalid parameter.
func ErrParamHolderGenesisFailed ¶
ErrParamHolderGenesisFailed - error when genesis failed.
func ErrPostParamNotFound ¶
ErrPostParamNotFound - error when post param is empty.
func ErrProposalParamNotFound ¶
ErrProposalParamNotFound - error when proposal param is empty.
func ErrQueryFailed ¶ added in v0.2.0
ErrQueryFailed - error when query parameter store failed
func ErrReputationParamNotFound ¶ added in v0.1.1
ErrReputationParamNotFound - error when reputation param is empty.
func ErrValidatorParamNotFound ¶
ErrValidatorParamNotFound - error when validator param is empty.
func ErrVoteParamNotFound ¶
ErrVoteParamNotFound - error when vote param is empty.
func GetAccountParamKey ¶
func GetAccountParamKey() []byte
GetAccountParamKey - "account param substore"
func GetAllocationParamKey ¶
func GetAllocationParamKey() []byte
GetAllocationParamKey - "allocation param substore"
func GetBandwidthParamKey ¶
func GetBandwidthParamKey() []byte
GetBandwidthParamKey - "bandwidth param substore"
func GetCoinDayParamKey ¶
func GetCoinDayParamKey() []byte
GetCoinDayParamKey - "coin day param substore"
func GetDeveloperParamKey ¶
func GetDeveloperParamKey() []byte
GetDeveloperParamKey - "developer param substore"
func GetEvaluateOfContentValueParamKey ¶
func GetEvaluateOfContentValueParamKey() []byte
GetEvaluateOfContentValueParamKey - "evaluate of content value param substore"
func GetInfraInternalAllocationParamKey ¶
func GetInfraInternalAllocationParamKey() []byte
GetInfraInternalAllocationParamKey - "infra internal allocation param substore"
func GetProposalParamKey ¶
func GetProposalParamKey() []byte
GetProposalParamKey - "proposal param substore"
func GetReputationParamKey ¶ added in v0.1.1
func GetReputationParamKey() []byte
GetAccountParamKey - "account param substore"
func GetValidatorParamKey ¶
func GetValidatorParamKey() []byte
GetValidatorParamKey - "validator param substore"
func NewQuerier ¶ added in v0.2.0
func NewQuerier(ph ParamHolder) sdk.Querier
creates a querier for account REST endpoints
Types ¶
type AccountParam ¶
type AccountParam struct { MinimumBalance types.Coin `json:"minimum_balance"` RegisterFee types.Coin `json:"register_fee"` FirstDepositFullCoinDayLimit types.Coin `json:"first_deposit_full_coin_day_limit"` MaxNumFrozenMoney int64 `json:"max_num_frozen_money"` }
AccountParam - account parameters MinimumBalance - minimum balance each account need to maintain RegisterFee - register fee need to pay to developer inflation pool for each account registration FirstDepositFullCoinDayLimit - when register account, some of coin day of register fee to newly open account will be fully charged MaxNumFrozenMoney - the upper limit for each person's ongoing frozen money
type BandwidthParam ¶
type BandwidthParam struct { SecondsToRecoverBandwidth int64 `json:"seconds_to_recover_bandwidth"` CapacityUsagePerTransaction types.Coin `json:"capacity_usage_per_transaction"` VirtualCoin types.Coin `json:"virtual_coin"` GeneralMsgQuotaRatio sdk.Dec `json:"general_msg_quota_ratio"` GeneralMsgEMAFactor sdk.Dec `json:"general_msg_ema_factor"` AppMsgQuotaRatio sdk.Dec `json:"app_msg_quota_ratio"` AppMsgEMAFactor sdk.Dec `json:"app_msg_ema_factor"` ExpectedMaxMPS sdk.Dec `json:"expected_max_mps"` MsgFeeFactorA sdk.Dec `json:"msg_fee_factor_a"` MsgFeeFactorB sdk.Dec `json:"msg_fee_factor_b"` MaxMPSDecayRate sdk.Dec `json:"max_mps_decay_rate"` AppBandwidthPoolSize sdk.Dec `json:"app_bandwidth_pool_size"` AppVacancyFactor sdk.Dec `json:"app_vacancy_factor"` AppPunishmentFactor sdk.Dec `json:"app_punishment_factor"` }
type ChangeParamEvent ¶
type ChangeParamEvent struct {
Param Parameter `json:"param"`
}
ChangeParamEvent - change parameter event
func (ChangeParamEvent) Execute ¶
func (cpe ChangeParamEvent) Execute(ctx sdk.Context, ph ParamHolder) sdk.Error
Execute - execute change parameter event
type CoinDayParam ¶
type CoinDayParam struct {
SecondsToRecoverCoinDay int64 `json:"seconds_to_recover_coin_day"`
}
CoinDayParam - coin day parameters SecondsToRecoverCoinDay - seconds for each incoming balance coin day fully charged
type DeveloperParam ¶
type DeveloperParam struct { DeveloperMinDeposit types.Coin `json:"developer_min_deposit"` DeveloperCoinReturnIntervalSec int64 `json:"developer_coin_return_interval_second"` DeveloperCoinReturnTimes int64 `json:"developer_coin_return_times"` }
DeveloperParam - developer parameters DeveloperMinDeposit - minimum deposit to become a developer DeveloperCoinReturnIntervalSec - when withdraw or revoke, coin return to developer by coin return event DeveloperCoinReturnTimes - when withdraw or revoke, coin return to developer by coin return event
type GlobalAllocationParam ¶
type GlobalAllocationParam struct { GlobalGrowthRate sdk.Dec `json:"global_growth_rate"` InfraAllocation sdk.Dec `json:"infra_allocation"` ContentCreatorAllocation sdk.Dec `json:"content_creator_allocation"` DeveloperAllocation sdk.Dec `json:"developer_allocation"` ValidatorAllocation sdk.Dec `json:"validator_allocation"` }
GlobalAllocationParam - global allocation parameters InfraAllocation - percentage for all infra related allocation ContentCreatorAllocation - percentage for all content creator related allocation DeveloperAllocation - percentage of inflation for developers ValidatorAllocation - percentage of inflation for validators
type InfraInternalAllocationParam ¶
type InfraInternalAllocationParam struct { StorageAllocation sdk.Dec `json:"storage_allocation"` CDNAllocation sdk.Dec `json:"CDN_allocation"` }
InfraInternalAllocationParam - infra internal allocation parameters StorageAllocation - percentage for storage provider (not in use now) CDNAllocation - percentage for CDN provider (not in use now)
type ParamHolder ¶
type ParamHolder struct {
// contains filtered or unexported fields
}
ParamHolder - parameter KVStore
func NewParamHolder ¶
func NewParamHolder(key sdk.StoreKey) ParamHolder
NewParamHolder - create a new parameter KVStore
func (ParamHolder) GetAccountParam ¶
func (ph ParamHolder) GetAccountParam(ctx sdk.Context) (*AccountParam, sdk.Error)
GetAccountParam - get account param
func (ParamHolder) GetBandwidthParam ¶
func (ph ParamHolder) GetBandwidthParam(ctx sdk.Context) (*BandwidthParam, sdk.Error)
GetBandwidthParam - get bandwidth param
func (ParamHolder) GetCoinDayParam ¶
func (ph ParamHolder) GetCoinDayParam(ctx sdk.Context) (*CoinDayParam, sdk.Error)
GetCoinDayParam - get coin day param
func (ParamHolder) GetDeveloperParam ¶
func (ph ParamHolder) GetDeveloperParam(ctx sdk.Context) (*DeveloperParam, sdk.Error)
GetDeveloperParam - get developer param
func (ParamHolder) GetGlobalAllocationParam ¶
func (ph ParamHolder) GetGlobalAllocationParam( ctx sdk.Context) (*GlobalAllocationParam, sdk.Error)
GetGlobalAllocationParam - get global allocation param
func (ParamHolder) GetInfraInternalAllocationParam ¶
func (ph ParamHolder) GetInfraInternalAllocationParam( ctx sdk.Context) (*InfraInternalAllocationParam, sdk.Error)
GetInfraInternalAllocationParam - get infra internal allocation allocation param
func (ParamHolder) GetPostParam ¶
GetPostParam - get post param
func (ParamHolder) GetProposalParam ¶
func (ph ParamHolder) GetProposalParam(ctx sdk.Context) (*ProposalParam, sdk.Error)
GetProposalParam - get proposal param
func (ParamHolder) GetReputationParam ¶ added in v0.1.1
func (ph ParamHolder) GetReputationParam(ctx sdk.Context) (*ReputationParam, sdk.Error)
GetReputationParam - get reputation param
func (ParamHolder) GetValidatorParam ¶
func (ph ParamHolder) GetValidatorParam(ctx sdk.Context) (*ValidatorParam, sdk.Error)
GetValidatorParam - get validator param
func (ParamHolder) GetVoteParam ¶
GetVoteParam - get vote param
func (ParamHolder) InitParam ¶
func (ph ParamHolder) InitParam(ctx sdk.Context) error
InitParam - init all parameters based on code
func (ParamHolder) InitParamFromConfig ¶
func (ph ParamHolder) InitParamFromConfig( ctx sdk.Context, globalParam GlobalAllocationParam, infraInternalParam InfraInternalAllocationParam, postParam PostParam, developerParam DeveloperParam, validatorParam ValidatorParam, voteParam VoteParam, proposalParam ProposalParam, coinDayParam CoinDayParam, bandwidthParam BandwidthParam, accParam AccountParam, repParam ReputationParam) error
InitParamFromConfig - init all parameters based on pass in args
func (ParamHolder) UpdateGlobalGrowthRate ¶ added in v0.1.1
UpdateGlobalGrowthRate - update global growth rate
type ParamKeeper ¶ added in v0.3.0
type ParamKeeper interface { GetInfraInternalAllocationParam( ctx sdk.Context) (*InfraInternalAllocationParam, sdk.Error) GetPostParam(ctx sdk.Context) (*PostParam, sdk.Error) GetDeveloperParam(ctx sdk.Context) (*DeveloperParam, sdk.Error) GetVoteParam(ctx sdk.Context) (*VoteParam, sdk.Error) GetProposalParam(ctx sdk.Context) (*ProposalParam, sdk.Error) GetValidatorParam(ctx sdk.Context) (*ValidatorParam, sdk.Error) GetCoinDayParam(ctx sdk.Context) (*CoinDayParam, sdk.Error) GetBandwidthParam(ctx sdk.Context) (*BandwidthParam, sdk.Error) GetAccountParam(ctx sdk.Context) (*AccountParam, sdk.Error) GetReputationParam(ctx sdk.Context) (*ReputationParam, sdk.Error) UpdateGlobalGrowthRate(ctx sdk.Context, growthRate sdk.Dec) sdk.Error }
type PostParam ¶
type PostParam struct { ReportOrUpvoteIntervalSec int64 `json:"report_or_upvote_interval_second"` PostIntervalSec int64 `json:"post_interval_sec"` MaxReportReputation types.Coin `json:"max_report_reputation"` }
PostParam - post parameters ReportOrUpvoteIntervalSec - report interval second PostIntervalSec - post interval second
type ProposalParam ¶
type ProposalParam struct { ContentCensorshipDecideSec int64 `json:"content_censorship_decide_second"` ContentCensorshipMinDeposit types.Coin `json:"content_censorship_min_deposit"` ContentCensorshipPassRatio sdk.Dec `json:"content_censorship_pass_ratio"` ContentCensorshipPassVotes types.Coin `json:"content_censorship_pass_votes"` ChangeParamDecideSec int64 `json:"change_param_decide_second"` ChangeParamExecutionSec int64 `json:"change_param_execution_second"` ChangeParamMinDeposit types.Coin `json:"change_param_min_deposit"` ChangeParamPassRatio sdk.Dec `json:"change_param_pass_ratio"` ChangeParamPassVotes types.Coin `json:"change_param_pass_votes"` ProtocolUpgradeDecideSec int64 `json:"protocol_upgrade_decide_second"` ProtocolUpgradeMinDeposit types.Coin `json:"protocol_upgrade_min_deposit"` ProtocolUpgradePassRatio sdk.Dec `json:"protocol_upgrade_pass_ratio"` ProtocolUpgradePassVotes types.Coin `json:"protocol_upgrade_pass_votes"` }
ProposalParam - proposal parameters ContentCensorshipDecideSec - seconds after content censorship proposal created till expired ContentCensorshipMinDeposit - minimum deposit to propose content censorship proposal ContentCensorshipPassRatio - upvote and downvote ratio for content censorship proposal ContentCensorshipPassVotes - minimum voting power required to pass content censorship proposal ChangeParamDecideSec - seconds after parameter change proposal created till expired ChangeParamExecutionSec - seconds after parameter change proposal pass till execution ChangeParamMinDeposit - minimum deposit to propose parameter change proposal ChangeParamPassRatio - upvote and downvote ratio for parameter change proposal ChangeParamPassVotes - minimum voting power required to pass parameter change proposal ProtocolUpgradeDecideSec - seconds after protocol upgrade proposal created till expired ProtocolUpgradeMinDeposit - minimum deposit to propose protocol upgrade proposal ProtocolUpgradePassRatio - upvote and downvote ratio for protocol upgrade proposal ProtocolUpgradePassVotes - minimum voting power required to pass protocol upgrade proposal
type ReputationParam ¶ added in v0.1.1
type ReputationParam struct {
BestContentIndexN int `json:"best_content_index_n"`
}
BestContentIndexN - hard cap of how many content can be indexed every round.
type ValidatorParam ¶
type ValidatorParam struct { ValidatorMinWithdraw types.Coin `json:"validator_min_withdraw"` ValidatorMinVotingDeposit types.Coin `json:"validator_min_voting_deposit"` ValidatorMinCommittingDeposit types.Coin `json:"validator_min_committing_deposit"` ValidatorCoinReturnIntervalSec int64 `json:"validator_coin_return_second"` ValidatorCoinReturnTimes int64 `json:"validator_coin_return_times"` PenaltyMissVote types.Coin `json:"penalty_miss_vote"` PenaltyMissCommit types.Coin `json:"penalty_miss_commit"` PenaltyByzantine types.Coin `json:"penalty_byzantine"` ValidatorListSize int64 `json:"validator_list_size"` AbsentCommitLimitation int64 `json:"absent_commit_limitation"` }
ValidatorParam - validator parameters ValidatorMinWithdraw - minimum withdraw requirement ValidatorMinVotingDeposit - minimum voting deposit requirement for user wanna be validator ValidatorMinCommittingDeposit - minimum committing (validator) deposit requirement for user wanna be validator ValidatorCoinReturnIntervalSec - when withdraw or revoke, coin return to validator by coin return event ValidatorCoinReturnTimes - when withdraw or revoke, coin return to validator by coin return event PenaltyMissVote - when missing vote for content censorship or protocol upgrade proposal, minus PenaltyMissCommit amount of Coin from validator deposit PenaltyMissCommit - when missing block till AbsentCommitLimitation, minus PenaltyMissCommit amount of Coin from validator deposit PenaltyByzantine - when validator acts as byzantine (double sign, for example), minus PenaltyByzantine amount of Coin from validator deposit ValidatorListSize - size of oncall validator AbsentCommitLimitation - absent block limitation till penalty
type VoteParam ¶
type VoteParam struct { MinStakeIn types.Coin `json:"min_stake_in"` VoterCoinReturnIntervalSec int64 `json:"voter_coin_return_interval_second"` VoterCoinReturnTimes int64 `json:"voter_coin_return_times"` DelegatorCoinReturnIntervalSec int64 `json:"delegator_coin_return_interval_second"` DelegatorCoinReturnTimes int64 `json:"delegator_coin_return_times"` }
VoteParam - vote parameters MinStakeIn - minimum stake for stake in msg VoterCoinReturnIntervalSec - when withdraw or revoke, the deposit return to voter by return event VoterCoinReturnTimes - when withdraw or revoke, the deposit return to voter by return event DelegatorCoinReturnIntervalSec - when withdraw or revoke, the deposit return to delegator by return event DelegatorCoinReturnTimes - when withdraw or revoke, the deposit return to delegator by return event