Versions in this module Expand all Collapse all v1 v1.0.2 Jan 27, 2022 v1.0.1 Dec 1, 2021 Changes in this version + type KernMethod struct + BcName string + Percent int64 + func NewKernContractMethod(bcName string) *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) SetPercent(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 interface + GetTipXMSnapshotReader func() (ledger.XMSnapshotReader, error) + type Manager struct + Ctx *ProposeCtx + func (mgr *Manager) GetObjectBySnapshot(bucket string, object []byte) ([]byte, error) + func (mgr *Manager) GetProposalByID(proposalID string) (*pb.Proposal, error) + type ProposalID struct + ProposalID string + type ProposeCtx struct + BcName string + Contract contract.Manager + Ledger LedgerRely + func NewProposeCtx(bcName string, leg LedgerRely, contract contract.Manager) (*ProposeCtx, error) + type ProposeManager interface + GetProposalByID func(proposalID string) (*pb.Proposal, error) + func NewProposeManager(ctx *ProposeCtx) (ProposeManager, error)