Documentation
¶
Index ¶
- func ConvIDFromStr(IDStr string) (uint32, error)
- type AMOAppConfig
- type Address
- type Currency
- type Delegate
- type Draft
- type DraftEx
- type Extra
- type IncentiveInfo
- type Parcel
- type ParcelEx
- type PubKeyEd25519
- type Request
- type RequestEx
- type Stake
- type Storage
- type Usage
- type UsageEx
- type Vote
- type VoteInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvIDFromStr ¶ added in v1.4.1
Types ¶
type AMOAppConfig ¶ added in v1.3.0
type AMOAppConfig struct {
MaxValidators uint64 `json:"max_validators"`
WeightValidator uint64 `json:"weight_validator"`
WeightDelegator uint64 `json:"weight_delegator"`
MinStakingUnit Currency `json:"min_staking_unit"`
BlkReward Currency `json:"blk_reward"`
TxReward Currency `json:"tx_reward"`
PenaltyRatioM float64 `json:"penalty_ratio_m"` // malicious validator
PenaltyRatioL float64 `json:"penalty_ratio_l"` // lazy validators
LazinessCounterWindow int64 `json:"laziness_counter_window"`
LazinessThreshold float64 `json:"laziness_threshold"`
BlockBoundTxGracePeriod uint64 `json:"block_bound_tx_grace_period"`
LockupPeriod uint64 `json:"lockup_period"`
DraftOpenCount uint64 `json:"draft_open_count"`
DraftCloseCount uint64 `json:"draft_close_count"`
DraftApplyCount uint64 `json:"draft_apply_count"`
DraftDeposit Currency `json:"draft_deposit"`
DraftQuorumRate float64 `json:"draft_quorum_rate"`
DraftPassRate float64 `json:"draft_pass_rate"`
DraftRefundRate float64 `json:"draft_refund_rate"`
}
type Draft ¶ added in v1.4.1
type Draft struct {
Proposer Address `json:"proposer"`
Config AMOAppConfig `json:"config"`
Desc string `json:"desc"`
OpenCount uint64 `json:"open_count"`
CloseCount uint64 `json:"close_count"`
ApplyCount uint64 `json:"apply_count"`
Deposit Currency `json:"deposit"`
TallyQuorum Currency `json:"tally_quorum"`
TallyApprove Currency `json:"tally_approve"`
TallyReject Currency `json:"tally_reject"`
}
type Extra ¶ added in v1.4.1
type Extra struct {
Register json.RawMessage `json:"register,omitempty"`
Request json.RawMessage `json:"request,omitempty"`
Grant json.RawMessage `json:"grant,omitempty"`
}
type IncentiveInfo ¶ added in v1.2.0
type PubKeyEd25519 ¶
type PubKeyEd25519 []byte
type Stake ¶
type Stake struct {
Validator PubKeyEd25519 `json:"validator"`
Amount Currency `json:"amount"`
Delegates []Delegate `json:"delegates"`
}
Click to show internal directories.
Click to hide internal directories.