Documentation ¶
Index ¶
- type KernMethod
- func (t *KernMethod) CheckVoteResult(ctx contract.KContext) (*contract.Response, error)
- func (t *KernMethod) Propose(ctx contract.KContext) (*contract.Response, error)
- func (t *KernMethod) Query(ctx contract.KContext) (*contract.Response, error)
- func (t *KernMethod) Thaw(ctx contract.KContext) (*contract.Response, error)
- func (t *KernMethod) Trigger(ctx contract.KContext) (*contract.Response, error)
- func (t *KernMethod) Vote(ctx contract.KContext) (*contract.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.XMSnapshotReader, 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 { // 基础上下文 xcontext.BaseCtx BcName string Ledger LedgerRely Contract contract.Manager }
func NewProposeCtx ¶
func NewProposeCtx(bcName string, leg LedgerRely, contract contract.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.