Documentation ¶
Index ¶
- Constants
- func DecodeValidators(method *abi.Method, returnValue []byte) ([]types.Address, error)
- func IsDepositTransactionSignture(in []byte) bool
- func IsSlashTransactionSignture(in []byte) bool
- func MakeDepositTx(t NonceHub, from types.Address) (*types.Transaction, error)
- func MakeSlashTx(t NonceHub, from types.Address, needPunished types.Address) (*types.Transaction, error)
- func QueryValidators(t TxQueryHandler, from types.Address, gasLimit uint64) ([]types.Address, error)
- type NonceHub
- type TxQueryHandler
Constants ¶
View Source
const ( // Gas limit used when querying the validator set SystemTransactionGasLimit uint64 = 1_000_000 )
Variables ¶
This section is empty.
Functions ¶
func DecodeValidators ¶
func IsDepositTransactionSignture ¶ added in v1.2.0
func IsSlashTransactionSignture ¶ added in v1.2.0
func MakeDepositTx ¶ added in v1.2.0
func MakeSlashTx ¶ added in v1.2.0
func QueryValidators ¶
Types ¶
type TxQueryHandler ¶
type TxQueryHandler interface { NonceHub Apply(*types.Transaction) (*runtime.ExecutionResult, error) }
Click to show internal directories.
Click to hide internal directories.