Documentation ¶
Index ¶
- func DeepCopyTx(src, dst *schema.Transaction) error
- func FindProposal(proposals []*schema.Proposal, proposalID string) *schema.Proposal
- func InSlice(slice []string, item string) bool
- func NewExecutor(source string) (executor *schema.Executor, err error)
- func NewProposal(name string, start, end, runTimes int64, source, initData string, ...) *schema.Proposal
- func ProposalExecute(proposal *schema.Proposal, tx *schema.Transaction, ...) (*schema.StateForProposal, error)
- func RemoveFromSlice(slice []string, item string) []string
- func TxCallParamsVerify(txParams string) (proposalID, function, callParams string, err error)
- func TxJoinParamsVerify(txParams string) (routerState *schema.RouterState, err error)
- func TxProposeParamsVerify(params schema.TxProposeParams) (start, end, runTimes int64, source, initData string, ...)
- func TxStakeParamsVerify(txParams string) (stakePool string, amount *big.Int, err error)
- func TxTransferParamsVerify(txParams string) (to string, amount *big.Int, err error)
- func TxUnstakeParamsVerify(txParams string) (stakePool string, amount *big.Int, err error)
- type HVM
- func (h *HVM) ExecuteTx(tx schema.Transaction, oracle *schema.Oracle) (err error)
- func (h *HVM) ProposalVerify(tx schema.Transaction, nonce int64) (*schema.Proposal, error)
- func (h *HVM) TxVerify(tx schema.Transaction, dryRun bool) (acc *account.Account, nonce int64, fee *big.Int, err error)
- func (h *HVM) VerifyTx(tx schema.Transaction, oracle *schema.Oracle) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepCopyTx ¶
func DeepCopyTx(src, dst *schema.Transaction) error
func FindProposal ¶
func NewProposal ¶
func ProposalExecute ¶
func ProposalExecute(proposal *schema.Proposal, tx *schema.Transaction, state *schema.StateForProposal, oracle *schema.Oracle) (*schema.StateForProposal, error)
func RemoveFromSlice ¶
func TxCallParamsVerify ¶
func TxJoinParamsVerify ¶
func TxJoinParamsVerify(txParams string) (routerState *schema.RouterState, err error)
func TxProposeParamsVerify ¶
func TxStakeParamsVerify ¶
func TxTransferParamsVerify ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.