Documentation ¶
Index ¶
- type KernMethod
- func (t *KernMethod) CheckVoteResult(ctx base.KContext) (*base.Response, error)
- func (t *KernMethod) Propose(ctx base.KContext) (*base.Response, error)
- func (t *KernMethod) Query(ctx base.KContext) (*base.Response, error)
- func (t *KernMethod) Thaw(ctx base.KContext) (*base.Response, error)
- func (t *KernMethod) Trigger(ctx base.KContext) (*base.Response, error)
- func (t *KernMethod) Vote(ctx base.KContext) (*base.Response, error)
- type LedgerRely
- type Manager
- type ProposalID
- type ProposeCtx
- type ProposeManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KernMethod ¶
type KernMethod struct {
BcName string
}
func NewKernContractMethod ¶
func NewKernContractMethod(bcName string) *KernMethod
func (*KernMethod) CheckVoteResult ¶
type LedgerRely ¶
type LedgerRely interface { // 获取状态机最新确认快照 GetTipXMSnapshotReader() (ledger.SnapshotReader, error) }
type Manager ¶
type Manager struct {
Ctx *ProposeCtx
}
Manager manages all timer releated data, providing read/write interface
func (*Manager) GetObjectBySnapshot ¶
type ProposalID ¶
type ProposalID struct {
ProposalID string `json:"proposal_id"`
}
type ProposeCtx ¶
type ProposeCtx struct { // 基础上下文 xctx.BaseCtx BcName string Ledger LedgerRely Contract base.Manager }
func NewProposeCtx ¶
func NewProposeCtx(bcName string, leg LedgerRely, contract base.Manager) (*ProposeCtx, error)
type ProposeManager ¶
func NewProposeManager ¶
func NewProposeManager(ctx *ProposeCtx) (ProposeManager, error)
NewTimerManager create instance of ProposeManager
Click to show internal directories.
Click to hide internal directories.