governance

package
v0.0.0-...-70b9e4c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2019 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

View Source
const PROMISE_POS = 200000

Variables

View Source
var DnaIDVersion = byte(0)

Functions

func AddInitPos

func AddInitPos(ontSdk *sdk.DNASdk) bool

func ApproveCandidate

func ApproveCandidate(ontSdk *sdk.DNASdk) bool

func AssignDnaIDsToRole

func AssignDnaIDsToRole(ontSdk *sdk.DNASdk) bool

func AssignDnaIDsToRoleAny

func AssignDnaIDsToRoleAny(ontSdk *sdk.DNASdk) bool

func AssignFuncsToRole

func AssignFuncsToRole(ontSdk *sdk.DNASdk) bool

func AssignFuncsToRoleAny

func AssignFuncsToRoleAny(ontSdk *sdk.DNASdk) bool

func AuthorizeForPeer

func AuthorizeForPeer(ontSdk *sdk.DNASdk) bool

func BlackNode

func BlackNode(ontSdk *sdk.DNASdk) bool

func ChangeMaxAuthorization

func ChangeMaxAuthorization(ontSdk *sdk.DNASdk) bool

func CommitDpos

func CommitDpos(ontSdk *sdk.DNASdk) bool

func DestroyContract

func DestroyContract(ontSdk *sdk.DNASdk) bool

func GetAddressMultiSign

func GetAddressMultiSign(ontSdk *sdk.DNASdk) bool

func GetAttributes

func GetAttributes(ontSdk *sdk.DNASdk) bool

func GetAuthorizeInfo

func GetAuthorizeInfo(ontSdk *sdk.DNASdk) bool

func GetGlobalParam

func GetGlobalParam(ontSdk *sdk.DNASdk) bool

func GetGlobalParam2

func GetGlobalParam2(ontSdk *sdk.DNASdk) bool

func GetGovernanceView

func GetGovernanceView(ontSdk *sdk.DNASdk) bool

func GetPeerPoolItem

func GetPeerPoolItem(ontSdk *sdk.DNASdk) bool

func GetPeerPoolMap

func GetPeerPoolMap(ontSdk *sdk.DNASdk) bool

func GetPenaltyStake

func GetPenaltyStake(ontSdk *sdk.DNASdk) bool

func GetPromisePos

func GetPromisePos(ontSdk *sdk.DNASdk) bool

func GetSplitCurve

func GetSplitCurve(ontSdk *sdk.DNASdk) bool

func GetSplitFee

func GetSplitFee(ontSdk *sdk.DNASdk) bool

func GetSplitFeeAddress

func GetSplitFeeAddress(ontSdk *sdk.DNASdk) bool

func GetTotalStake

func GetTotalStake(ontSdk *sdk.DNASdk) bool

func GetVbftConfig

func GetVbftConfig(ontSdk *sdk.DNASdk) bool

func GetVbftInfo

func GetVbftInfo(ontSdk *sdk.DNASdk) bool

func InBlackList

func InBlackList(ontSdk *sdk.DNASdk) bool

func MultiTransferOng

func MultiTransferOng(ontSdk *sdk.DNASdk) bool

func MultiTransferOnt

func MultiTransferOnt(ontSdk *sdk.DNASdk) bool

func QuitNode

func QuitNode(ontSdk *sdk.DNASdk) bool

func ReduceInitPos

func ReduceInitPos(ontSdk *sdk.DNASdk) bool

func RegIdWithPublicKey

func RegIdWithPublicKey(ontSdk *sdk.DNASdk) bool

func RegisterCandidate

func RegisterCandidate(ontSdk *sdk.DNASdk) bool

func RegisterCandidate2Sign

func RegisterCandidate2Sign(ontSdk *sdk.DNASdk) bool

func RegisterGovernance

func RegisterGovernance()

func RejectCandidate

func RejectCandidate(ontSdk *sdk.DNASdk) bool

func SetPeerCost

func SetPeerCost(ontSdk *sdk.DNASdk) bool

func SetPromisePos

func SetPromisePos(ontSdk *sdk.DNASdk) bool

func TransferFromOngMultiSign

func TransferFromOngMultiSign(ontSdk *sdk.DNASdk) bool

func TransferFromOngMultiSignAddress

func TransferFromOngMultiSignAddress(ontSdk *sdk.DNASdk) bool

func TransferFromOngMultiSignToMultiSign

func TransferFromOngMultiSignToMultiSign(ontSdk *sdk.DNASdk) bool

func TransferOngMultiSign

func TransferOngMultiSign(ontSdk *sdk.DNASdk) bool

func TransferOngMultiSignAddress

func TransferOngMultiSignAddress(ontSdk *sdk.DNASdk) bool

func TransferOngMultiSignToMultiSign

func TransferOngMultiSignToMultiSign(ontSdk *sdk.DNASdk) bool

func TransferOntMultiSign

func TransferOntMultiSign(ontSdk *sdk.DNASdk) bool

func TransferOntMultiSignAddress

func TransferOntMultiSignAddress(ontSdk *sdk.DNASdk) bool

func TransferOntMultiSignToMultiSign

func TransferOntMultiSignToMultiSign(ontSdk *sdk.DNASdk) bool

func TransferPenalty

func TransferPenalty(ontSdk *sdk.DNASdk) bool

func UnAuthorizeForPeer

func UnAuthorizeForPeer(ontSdk *sdk.DNASdk) bool

func UnRegisterCandidate

func UnRegisterCandidate(ontSdk *sdk.DNASdk) bool

func UpdateConfig

func UpdateConfig(ontSdk *sdk.DNASdk) bool

func UpdateGlobalParam

func UpdateGlobalParam(ontSdk *sdk.DNASdk) bool

func UpdateGlobalParam2

func UpdateGlobalParam2(ontSdk *sdk.DNASdk) bool

func UpdateSplitCurve

func UpdateSplitCurve(ontSdk *sdk.DNASdk) bool

func Vrf

func Vrf(ontSdk *sdk.DNASdk) bool

func WhiteNode

func WhiteNode(ontSdk *sdk.DNASdk) bool

func Withdraw

func Withdraw(ontSdk *sdk.DNASdk) bool

func WithdrawOng

func WithdrawOng(ontSdk *sdk.DNASdk) bool

Types

type Account

type Account struct {
	Path string
}

type AddInitPosParam

type AddInitPosParam struct {
	Path       string
	PeerPubkey string
	Pos        uint32
}

type ApproveCandidateParam

type ApproveCandidateParam struct {
	Path       []string
	PeerPubkey []string
}

type AssignDnaIDsToRoleAnyParam

type AssignDnaIDsToRoleAnyParam struct {
	Path1           string
	ContractAddress string
	Role            string
	Dnaid           []string
}

type AssignDnaIDsToRoleParam

type AssignDnaIDsToRoleParam struct {
	Path1 string
	Dnaid []string
}

type AssignFuncsToRoleAnyParam

type AssignFuncsToRoleAnyParam struct {
	Path            string
	ContractAddress string
	Role            string
	Function        string
}

type AuthorizeForPeerParam

type AuthorizeForPeerParam struct {
	Path           string
	PeerPubkeyList []string
	PosList        []uint32
}

type BlackNodeParam

type BlackNodeParam struct {
	Path           []string
	PeerPubkeyList []string
}

type ChangeMaxAuthorizationParam

type ChangeMaxAuthorizationParam struct {
	PathList         []string
	PeerPubkeyList   []string
	MaxAuthorizeList []uint32
}

type DestroyContractParam

type DestroyContractParam struct {
	Path            []string
	ContractAddress string
}

type GetAddressMultiSignParam

type GetAddressMultiSignParam struct {
	PubKeys []string
}

type GetAttributesParam

type GetAttributesParam struct {
	PeerPubkey string
}

type GetAuthorizeInfoParam

type GetAuthorizeInfoParam struct {
	Address    string
	PeerPubkey string
}

type GetPeerPoolItemParam

type GetPeerPoolItemParam struct {
	PeerPubkey string
}

type GetPenaltyStakeParam

type GetPenaltyStakeParam struct {
	PeerPubkey string
}

type GetPromisePosParam

type GetPromisePosParam struct {
	PeerPubkey string
}

type GetSplitFeeAddressParam

type GetSplitFeeAddressParam struct {
	Address string
}

type GetTotalStakeParam

type GetTotalStakeParam struct {
	Address string
}

type InBlackListParam

type InBlackListParam struct {
	PeerPubkey string
}

type MultiAccount

type MultiAccount struct {
	Path []string
}

type MultiTransferParam

type MultiTransferParam struct {
	FromPath  []string
	ToAddress []string
	Amount    []uint64
}

type QuitNodeParam

type QuitNodeParam struct {
	Path       []string
	PeerPubkey []string
}

type ReduceInitPosParam

type ReduceInitPosParam struct {
	Path       string
	PeerPubkey string
	Pos        uint32
}

type RegIDWithPublicKeyParam

type RegIDWithPublicKeyParam struct {
	DnaID  []byte
	Pubkey []byte
}

type RegisterCandidate2SignParam

type RegisterCandidate2SignParam struct {
	Key        string
	Address    string
	Salt       string
	Path       string
	PeerPubkey string
	InitPos    uint32
}

type RegisterCandidateParam

type RegisterCandidateParam struct {
	Path       []string
	PeerPubkey []string
	InitPos    []uint32
}

type RejectCandidateParam

type RejectCandidateParam struct {
	Path       []string
	PeerPubkey string
}

type SetPeerCostParam

type SetPeerCostParam struct {
	PathList       []string
	PeerPubkeyList []string
	PeerCostList   []uint32
}

type SetPromisePosParam

type SetPromisePosParam struct {
	Path       []string
	PeerPubkey []string
	PromisePos []uint64
}

type TransferFromMultiSignAddressParam

type TransferFromMultiSignAddressParam struct {
	Path1   []string
	Address []string
	Amount  []uint64
}

type TransferFromMultiSignParam

type TransferFromMultiSignParam struct {
	Path1  []string
	Path2  []string
	Amount []uint64
}

type TransferFromMultiSignToMultiSignParam

type TransferFromMultiSignToMultiSignParam struct {
	Path1   []string
	PubKeys []string
	Amount  uint64
}

type TransferMultiSignAddressParam

type TransferMultiSignAddressParam struct {
	Path1   []string
	PubKeys []string
	Address []string
	Amount  []uint64
}

type TransferMultiSignParam

type TransferMultiSignParam struct {
	Path1  []string
	Path2  []string
	Amount []uint64
}

type TransferMultiSignToMultiSignParam

type TransferMultiSignToMultiSignParam struct {
	Path1   []string
	PubKeys []string
	Amount  uint64
}

type TransferPenaltyParam

type TransferPenaltyParam struct {
	Path1      []string
	PeerPubkey string
	Path2      string
}

type UnRegisterCandidateParam

type UnRegisterCandidateParam struct {
	Path       string
	PeerPubkey string
}

type UpdateConfigParam

type UpdateConfigParam struct {
	Path                 []string
	N                    uint32
	C                    uint32
	K                    uint32
	L                    uint32
	BlockMsgDelay        uint32
	HashMsgDelay         uint32
	PeerHandshakeTimeout uint32
	MaxBlockChangeView   uint32
}

type UpdateGlobalParamParam

type UpdateGlobalParamParam struct {
	Path         []string
	CandidateFee uint64
	MinInitStake uint32
	CandidateNum uint32
	PosLimit     uint32
	A            uint32
	B            uint32
	Yita         uint32
	Penalty      uint32
}

type UpdateGlobalParamParam2

type UpdateGlobalParamParam2 struct {
	Path                 []string
	MinAuthorizePos      uint32
	CandidateFeeSplitNum uint32
}

type UpdateSplitCurveParam

type UpdateSplitCurveParam struct {
	Path []string
	Yi   []uint32
}

type VrfParam

type VrfParam struct {
	Path string
}

type WhiteNodeParam

type WhiteNodeParam struct {
	Path       []string
	PeerPubkey string
}

type WithdrawOngParam

type WithdrawOngParam struct {
	Path       string
	PeerPubkey string
}

type WithdrawParam

type WithdrawParam struct {
	Path           string
	PeerPubkeyList []string
	WithdrawList   []uint32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL