Documentation ¶
Index ¶
- func GetName() string
- func Init(name string, cfg *types.Chain33Config, sub []byte)
- func InitExecType()
- func IsAutonomyApprovedItem(db dbm.KV, req *types.ReqMultiStrings) (types.Message, error)
- func NewBoardTable(kvdb db.KV) *table.Table
- func NewChangeTable(kvdb db.KV) *table.Table
- func NewItemTable(kvdb db.KV) *table.Table
- func NewProjectTable(kvdb db.KV) *table.Table
- func NewRuleTable(kvdb db.KV) *table.Table
- type Autonomy
- func (a *Autonomy) ExecDelLocal(tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_CommentProp(payload *auty.Comment, tx *types.Transaction, receiptData *types.ReceiptData, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_PropBoard(payload *auty.ProposalBoard, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_PropChange(payload *auty.ProposalChange, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_PropItem(payload *auty.ProposalItem, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_PropProject(payload *auty.ProposalProject, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_PropRule(payload *auty.ProposalRule, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_PubVotePropProject(payload *auty.PubVoteProposalProject, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_RvkPropBoard(payload *auty.RevokeProposalBoard, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_RvkPropChange(payload *auty.RevokeProposalChange, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_RvkPropItem(payload *auty.RevokeProposalItem, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_RvkPropProject(payload *auty.RevokeProposalProject, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_RvkPropRule(payload *auty.RevokeProposalRule, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_TmintPropBoard(payload *auty.TerminateProposalBoard, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_TmintPropChange(payload *auty.TerminateProposalChange, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_TmintPropItem(payload *auty.TerminateProposalItem, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_TmintPropProject(payload *auty.TerminateProposalProject, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_TmintPropRule(payload *auty.TerminateProposalRule, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_VotePropBoard(payload *auty.VoteProposalBoard, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_VotePropChange(payload *auty.VoteProposalChange, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_VotePropItem(payload *auty.VoteProposalItem, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_VotePropProject(payload *auty.VoteProposalProject, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) ExecLocal_VotePropRule(payload *auty.VoteProposalRule, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (a *Autonomy) Exec_CommentProp(payload *auty.Comment, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_PropBoard(payload *auty.ProposalBoard, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_PropChange(payload *auty.ProposalChange, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_PropItem(payload *auty.ProposalItem, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_PropProject(payload *auty.ProposalProject, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_PropRule(payload *auty.ProposalRule, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_PubVotePropProject(payload *auty.PubVoteProposalProject, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_RvkPropBoard(payload *auty.RevokeProposalBoard, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_RvkPropChange(payload *auty.RevokeProposalChange, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_RvkPropItem(payload *auty.RevokeProposalItem, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_RvkPropProject(payload *auty.RevokeProposalProject, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_RvkPropRule(payload *auty.RevokeProposalRule, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_TmintPropBoard(payload *auty.TerminateProposalBoard, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_TmintPropChange(payload *auty.TerminateProposalChange, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_TmintPropItem(payload *auty.TerminateProposalItem, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_TmintPropProject(payload *auty.TerminateProposalProject, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_TmintPropRule(payload *auty.TerminateProposalRule, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_Transfer(payload *auty.TransferFund, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_VotePropBoard(payload *auty.VoteProposalBoard, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_VotePropChange(payload *auty.VoteProposalChange, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_VotePropItem(payload *auty.VoteProposalItem, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_VotePropProject(payload *auty.VoteProposalProject, tx *types.Transaction, index int) (*types.Receipt, error)
- func (a *Autonomy) Exec_VotePropRule(payload *auty.VoteProposalRule, tx *types.Transaction, index int) (*types.Receipt, error)
- func (u *Autonomy) GetDriverName() string
- func (a *Autonomy) Query_GetActiveBoard(in *types.ReqString) (types.Message, error)
- func (a *Autonomy) Query_GetActiveRule(in *types.ReqString) (types.Message, error)
- func (a *Autonomy) Query_GetProposalBoard(in *types.ReqString) (types.Message, error)
- func (a *Autonomy) Query_GetProposalChange(in *types.ReqString) (types.Message, error)
- func (a *Autonomy) Query_GetProposalItem(in *types.ReqString) (types.Message, error)
- func (a *Autonomy) Query_GetProposalProject(in *types.ReqString) (types.Message, error)
- func (a *Autonomy) Query_GetProposalRule(in *types.ReqString) (types.Message, error)
- func (a *Autonomy) Query_IsAutonomyApprovedItem(in *types.ReqMultiStrings) (types.Message, error)
- func (a *Autonomy) Query_ListProposalBoard(in *auty.ReqQueryProposalBoard) (types.Message, error)
- func (a *Autonomy) Query_ListProposalChange(in *auty.ReqQueryProposalChange) (types.Message, error)
- func (a *Autonomy) Query_ListProposalComment(in *auty.ReqQueryProposalComment) (types.Message, error)
- func (a *Autonomy) Query_ListProposalItem(in *auty.ReqQueryProposalItem) (types.Message, error)
- func (a *Autonomy) Query_ListProposalProject(in *auty.ReqQueryProposalProject) (types.Message, error)
- func (a *Autonomy) Query_ListProposalRule(in *auty.ReqQueryProposalRule) (types.Message, error)
- type AutonomyParam
- type BoardRow
- type ChangeRow
- type ItemRow
- type ProjectRow
- type RuleRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAutonomyApprovedItem ¶ added in v1.66.0
IsAutonomyApprovedItem get 2 parameters: autonomyItemID, applyTxHash
Types ¶
type Autonomy ¶
type Autonomy struct {
drivers.DriverBase
}
Autonomy 执行器结构体
func (*Autonomy) ExecDelLocal ¶
func (a *Autonomy) ExecDelLocal(tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecDelLocal 回退自动删除,重写基类
func (*Autonomy) ExecLocal_CommentProp ¶
func (a *Autonomy) ExecLocal_CommentProp(payload *auty.Comment, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_CommentProp 评论提案
func (*Autonomy) ExecLocal_PropBoard ¶
func (a *Autonomy) ExecLocal_PropBoard(payload *auty.ProposalBoard, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_PropBoard 创建提案
func (*Autonomy) ExecLocal_PropChange ¶
func (a *Autonomy) ExecLocal_PropChange(payload *auty.ProposalChange, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_PropChange 创建提案规则
func (*Autonomy) ExecLocal_PropItem ¶ added in v1.66.0
func (a *Autonomy) ExecLocal_PropItem(payload *auty.ProposalItem, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_PropItem 创建事项规则
func (*Autonomy) ExecLocal_PropProject ¶
func (a *Autonomy) ExecLocal_PropProject(payload *auty.ProposalProject, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_PropProject 创建提案项目
func (*Autonomy) ExecLocal_PropRule ¶
func (a *Autonomy) ExecLocal_PropRule(payload *auty.ProposalRule, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_PropRule 创建提案规则
func (*Autonomy) ExecLocal_PubVotePropProject ¶
func (a *Autonomy) ExecLocal_PubVotePropProject(payload *auty.PubVoteProposalProject, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_PubVotePropProject 全体投票提案项目
func (*Autonomy) ExecLocal_RvkPropBoard ¶
func (a *Autonomy) ExecLocal_RvkPropBoard(payload *auty.RevokeProposalBoard, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_RvkPropBoard 撤销提案
func (*Autonomy) ExecLocal_RvkPropChange ¶
func (a *Autonomy) ExecLocal_RvkPropChange(payload *auty.RevokeProposalChange, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_RvkPropChange 撤销提案规则
func (*Autonomy) ExecLocal_RvkPropItem ¶ added in v1.66.0
func (a *Autonomy) ExecLocal_RvkPropItem(payload *auty.RevokeProposalItem, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_RvkPropItem 撤销事项规则
func (*Autonomy) ExecLocal_RvkPropProject ¶
func (a *Autonomy) ExecLocal_RvkPropProject(payload *auty.RevokeProposalProject, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_RvkPropProject 撤销提案项目
func (*Autonomy) ExecLocal_RvkPropRule ¶
func (a *Autonomy) ExecLocal_RvkPropRule(payload *auty.RevokeProposalRule, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_RvkPropRule 撤销提案规则
func (*Autonomy) ExecLocal_TmintPropBoard ¶
func (a *Autonomy) ExecLocal_TmintPropBoard(payload *auty.TerminateProposalBoard, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_TmintPropBoard 终止提案
func (*Autonomy) ExecLocal_TmintPropChange ¶
func (a *Autonomy) ExecLocal_TmintPropChange(payload *auty.TerminateProposalChange, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_TmintPropChange 终止提案规则
func (*Autonomy) ExecLocal_TmintPropItem ¶ added in v1.66.0
func (a *Autonomy) ExecLocal_TmintPropItem(payload *auty.TerminateProposalItem, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_TmintPropItem 终止事项规则
func (*Autonomy) ExecLocal_TmintPropProject ¶
func (a *Autonomy) ExecLocal_TmintPropProject(payload *auty.TerminateProposalProject, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_TmintPropProject 终止提案项目
func (*Autonomy) ExecLocal_TmintPropRule ¶
func (a *Autonomy) ExecLocal_TmintPropRule(payload *auty.TerminateProposalRule, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_TmintPropRule 终止提案规则
func (*Autonomy) ExecLocal_VotePropBoard ¶
func (a *Autonomy) ExecLocal_VotePropBoard(payload *auty.VoteProposalBoard, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_VotePropBoard 投票提案
func (*Autonomy) ExecLocal_VotePropChange ¶
func (a *Autonomy) ExecLocal_VotePropChange(payload *auty.VoteProposalChange, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_VotePropChange 投票提案规则
func (*Autonomy) ExecLocal_VotePropItem ¶ added in v1.66.0
func (a *Autonomy) ExecLocal_VotePropItem(payload *auty.VoteProposalItem, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_VotePropItem 投票事项规则
func (*Autonomy) ExecLocal_VotePropProject ¶
func (a *Autonomy) ExecLocal_VotePropProject(payload *auty.VoteProposalProject, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_VotePropProject 投票提案项目
func (*Autonomy) ExecLocal_VotePropRule ¶
func (a *Autonomy) ExecLocal_VotePropRule(payload *auty.VoteProposalRule, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_VotePropRule 投票提案规则
func (*Autonomy) Exec_CommentProp ¶
func (a *Autonomy) Exec_CommentProp(payload *auty.Comment, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_CommentProp 评论提案
func (*Autonomy) Exec_PropBoard ¶
func (a *Autonomy) Exec_PropBoard(payload *auty.ProposalBoard, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_PropBoard 创建提案
func (*Autonomy) Exec_PropChange ¶
func (a *Autonomy) Exec_PropChange(payload *auty.ProposalChange, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_PropChange 创建提案规则
func (*Autonomy) Exec_PropItem ¶ added in v1.66.0
func (a *Autonomy) Exec_PropItem(payload *auty.ProposalItem, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_PropChange 创建事项规则
func (*Autonomy) Exec_PropProject ¶
func (a *Autonomy) Exec_PropProject(payload *auty.ProposalProject, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_PropProject 创建提案项目
func (*Autonomy) Exec_PropRule ¶
func (a *Autonomy) Exec_PropRule(payload *auty.ProposalRule, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_PropRule 创建提案规则
func (*Autonomy) Exec_PubVotePropProject ¶
func (a *Autonomy) Exec_PubVotePropProject(payload *auty.PubVoteProposalProject, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_PubVotePropProject 投票提案项目
func (*Autonomy) Exec_RvkPropBoard ¶
func (a *Autonomy) Exec_RvkPropBoard(payload *auty.RevokeProposalBoard, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_RvkPropBoard 撤销提案
func (*Autonomy) Exec_RvkPropChange ¶
func (a *Autonomy) Exec_RvkPropChange(payload *auty.RevokeProposalChange, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_RvkPropChange 撤销提案规则
func (*Autonomy) Exec_RvkPropItem ¶ added in v1.66.0
func (a *Autonomy) Exec_RvkPropItem(payload *auty.RevokeProposalItem, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_RvkPropItem 撤销事项规则
func (*Autonomy) Exec_RvkPropProject ¶
func (a *Autonomy) Exec_RvkPropProject(payload *auty.RevokeProposalProject, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_RvkPropProject 撤销提案项目
func (*Autonomy) Exec_RvkPropRule ¶
func (a *Autonomy) Exec_RvkPropRule(payload *auty.RevokeProposalRule, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_RvkPropRule 撤销提案规则
func (*Autonomy) Exec_TmintPropBoard ¶
func (a *Autonomy) Exec_TmintPropBoard(payload *auty.TerminateProposalBoard, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_TmintPropBoard 终止提案
func (*Autonomy) Exec_TmintPropChange ¶
func (a *Autonomy) Exec_TmintPropChange(payload *auty.TerminateProposalChange, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_TmintPropChange 终止提案规则
func (*Autonomy) Exec_TmintPropItem ¶ added in v1.66.0
func (a *Autonomy) Exec_TmintPropItem(payload *auty.TerminateProposalItem, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_TmintPropItem 终止事项规则
func (*Autonomy) Exec_TmintPropProject ¶
func (a *Autonomy) Exec_TmintPropProject(payload *auty.TerminateProposalProject, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_TmintPropProject 终止提案项目
func (*Autonomy) Exec_TmintPropRule ¶
func (a *Autonomy) Exec_TmintPropRule(payload *auty.TerminateProposalRule, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_TmintPropRule 终止提案规则
func (*Autonomy) Exec_Transfer ¶
func (a *Autonomy) Exec_Transfer(payload *auty.TransferFund, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Transfer 资金转入自治系统合约中
func (*Autonomy) Exec_VotePropBoard ¶
func (a *Autonomy) Exec_VotePropBoard(payload *auty.VoteProposalBoard, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_VotePropBoard 投票提案
func (*Autonomy) Exec_VotePropChange ¶
func (a *Autonomy) Exec_VotePropChange(payload *auty.VoteProposalChange, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_VotePropChange 投票提案规则
func (*Autonomy) Exec_VotePropItem ¶ added in v1.66.0
func (a *Autonomy) Exec_VotePropItem(payload *auty.VoteProposalItem, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_VotePropItem 投票事项规则
func (*Autonomy) Exec_VotePropProject ¶
func (a *Autonomy) Exec_VotePropProject(payload *auty.VoteProposalProject, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_VotePropProject 投票提案项目
func (*Autonomy) Exec_VotePropRule ¶
func (a *Autonomy) Exec_VotePropRule(payload *auty.VoteProposalRule, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_VotePropRule 投票提案规则
func (*Autonomy) Query_GetActiveBoard ¶
Query_GetActiveBoard 查询当前board
func (*Autonomy) Query_GetActiveRule ¶
Query_GetActiveRule 查询当前rule
func (*Autonomy) Query_GetProposalBoard ¶
Query_GetProposalBoard 查询提案董事会
func (*Autonomy) Query_GetProposalChange ¶
Query_GetProposalChange 查询提案修改董事会成员
func (*Autonomy) Query_GetProposalItem ¶ added in v1.66.0
Query_GetProposalItem 查询提案
func (*Autonomy) Query_GetProposalProject ¶
Query_GetProposalProject 查询提案项目
func (*Autonomy) Query_GetProposalRule ¶
Query_GetProposalRule 查询提案规则
func (*Autonomy) Query_IsAutonomyApprovedItem ¶ added in v1.66.0
Query_GetProposalChange 查询提案修改董事会成员
func (*Autonomy) Query_ListProposalBoard ¶
Query_ListProposalBoard 批量查询
func (*Autonomy) Query_ListProposalChange ¶
Query_ListProposalChange 批量查询
func (*Autonomy) Query_ListProposalComment ¶
func (a *Autonomy) Query_ListProposalComment(in *auty.ReqQueryProposalComment) (types.Message, error)
Query_ListProposalComment 批量查询提案评论
func (*Autonomy) Query_ListProposalItem ¶ added in v1.66.0
Query_ListProposalItem 批量查询
func (*Autonomy) Query_ListProposalProject ¶
func (a *Autonomy) Query_ListProposalProject(in *auty.ReqQueryProposalProject) (types.Message, error)
Query_ListProposalProject 批量查询
func (*Autonomy) Query_ListProposalRule ¶
Query_ListProposalRule 批量查询
type AutonomyParam ¶ added in v1.67.3
type AutonomyParam struct { MinBoards int64 MaxBoards int64 PublicPeriod int32 // 公示一周时间,以区块高度计算 TicketPrice int64 // 单张票价 LargeProjectAmount int64 // 重大项目公示金额阈值 ProposalAmount int64 // 创建者消耗金额 BoardApproveRatio int32 // 董事会成员赞成率,以%计,可修改 PubAttendRatio int32 // 全体持票人参与率,以%计 PubApproveRatio int32 // 全体持票人赞成率,以%计 PubOpposeRatio int32 // 全体持票人否决率,以%计 StartEndBlockPeriod int64 // 提案开始结束最小周期 PropEndBlockPeriod int64 // 提案高度 结束高度最大周期 100W MinBoardApproveRatio int64 // 最小董事会赞成率 MaxBoardApproveRatio int64 // 最大董事会赞成率 MinPubOpposeRatio int64 // 最小全体持票人否决率 MaxPubOpposeRatio int64 // 最大全体持票人否决率 MinPubAttendRatio int64 // 最小全体持票人参与率 MaxPubAttendRatio int64 // 最大全体持票人参与率 MinPubApproveRatio int64 // 最小全体持票人赞成率 MaxPubApproveRatio int64 // 最大全体持票人赞成率 MinPublicPeriod int32 // 最小公示周期 MaxPublicPeriod int32 // 最大公示周期 MinLargeProjectAmount int64 // 最小重大项目阈值(coin) MaxLargeProjectAmount int64 // 最大重大项目阈值(coin) MinProposalAmount int64 // 最小提案金(coin) MaxProposalAmount int64 // 最大提案金(coin) ItemWaitBlockNumber int64 //4w高度,大概2天 MaxBoardPeriodAmount int64 // 每个时期董事会审批最大额度300万 BoardPeriod int64 // 时期为一个月 }
func GetAutonomyParam ¶ added in v1.67.3
func GetAutonomyParam(cfg *types.Chain33Config, height int64) *AutonomyParam
GetAutonomyParam 获取autonomy config params
type BoardRow ¶
type BoardRow struct {
*auty.AutonomyProposalBoard
}
BoardRow table meta 结构
type ChangeRow ¶
type ChangeRow struct {
*auty.AutonomyProposalChange
}
ChangeRow table meta 结构
type ItemRow ¶ added in v1.66.0
type ItemRow struct {
*auty.AutonomyProposalItem
}
ItemRow table meta 结构
type ProjectRow ¶
type ProjectRow struct {
*auty.AutonomyProposalProject
}
ProjectRow table meta 结构
func (*ProjectRow) CreateRow ¶
func (r *ProjectRow) CreateRow() *table.Row
CreateRow 新建数据行(注意index 数据一定也要保存到数据中,不能就保存heightindex)
func (*ProjectRow) Get ¶
func (r *ProjectRow) Get(key string) ([]byte, error)
Get 按照indexName 查询 indexValue
func (*ProjectRow) SetPayload ¶
func (r *ProjectRow) SetPayload(data types.Message) error
SetPayload 设置数据