Versions in this module Expand all Collapse all v0 v0.0.2 Mar 21, 2024 v0.0.1 Mar 13, 2024 Changes in this version + 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 struct + func New(initState schema.State) (h *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)