Documentation ¶
Index ¶
- Variables
- func BalanceOverflow(userName string) *types.ResponseDeliverTx
- func CommitAccTrieError(err error) *types.ResponseDeliverTx
- func CommitTxTrieError(err error) *types.ResponseDeliverTx
- func DecodeAccountInfoError(err error) *types.ResponseDeliverTx
- func DecodeBalanceError() *types.ResponseDeliverTx
- func DecodeFAPairError(err error) *types.ResponseDeliverTx
- func DecodeJsonError(err error) *types.ResponseDeliverTx
- func DecodeTxHeaderError(err error) *types.ResponseDeliverTx
- func EncodeAccountInfoError(err error) *types.ResponseDeliverTx
- func ExecContractError(err error) *types.ResponseDeliverTx
- func ExecOK() *types.ResponseDeliverTx
- func InsufficientBalanceToTransfer(userName string) *types.ResponseDeliverTx
- func InvalidFuncTypeError(err error) *types.ResponseDeliverTx
- func ReTrieveTxError(err error) *types.ResponseDeliverTx
- func RequestStorageError(err error) *types.ResponseDeliverTx
- func UnauthorizedError(key []byte) *types.ResponseDeliverTx
- func UpdateAccTrieError(err error) *types.ResponseDeliverTx
- func UpdateBalanceIn(value *math.Uint256) *types.ResponseDeliverTx
- func UpdateBalanceOut(value *math.Uint256) *types.ResponseDeliverTx
- func UpdateTxTrieError(err error) *types.ResponseDeliverTx
- type ResponseCode
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DuplicateTxError = &types.ResponseDeliverTx{ Code: uint32(codeDuplicateTxError), Log: "DuplicateTxError: this transaction is already on the Transaction Trie", } InvalidTxInputFormatWrongx18 = &types.ResponseDeliverTx{ Code: uint32(codeInvalidTxInputFormat), Log: "InvalidInputFormat: mismatch of format (TransactionHeader\\x18Transaction)", } InvalidTxInputFormatWrongx19 = &types.ResponseDeliverTx{ Code: uint32(codeInvalidTxInputFormat), Log: "InvalidInputFormat: mismatch of format (TransactionHeader\\x19Transaction)", } InvalidTxInputFormatWrongFunctionName = &types.ResponseDeliverTx{ Code: uint32(codeInvalidTxInputFormat), Log: "InvalidTxInputFormat: the system function name must be in format of ContractName@FunctionName", } InvalidTxInputFormatTooShort = &types.ResponseDeliverTx{ Code: uint32(codeInvalidTxInputFormat), Log: "InvalidTxInputFormat: there should be a byte that tells which type this transaction is", } MissingContract = &types.ResponseDeliverTx{ Code: uint32(codeMissingContract), Log: "MissingContract: can't find this contract on the Account Trie. Is it deployed correctly?", } ConflictAddress = &types.ResponseDeliverTx{ Code: uint32(codeConflictAddress), Log: "ConflictAddress: the generating address is already on the Account Trie. Bad nonce?", } )
Functions ¶
func BalanceOverflow ¶
func BalanceOverflow(userName string) *types.ResponseDeliverTx
func CommitAccTrieError ¶
func CommitAccTrieError(err error) *types.ResponseDeliverTx
func CommitTxTrieError ¶
func CommitTxTrieError(err error) *types.ResponseDeliverTx
func DecodeAccountInfoError ¶
func DecodeAccountInfoError(err error) *types.ResponseDeliverTx
func DecodeBalanceError ¶
func DecodeBalanceError() *types.ResponseDeliverTx
func DecodeFAPairError ¶
func DecodeFAPairError(err error) *types.ResponseDeliverTx
func DecodeJsonError ¶
func DecodeJsonError(err error) *types.ResponseDeliverTx
func DecodeTxHeaderError ¶
func DecodeTxHeaderError(err error) *types.ResponseDeliverTx
func EncodeAccountInfoError ¶
func EncodeAccountInfoError(err error) *types.ResponseDeliverTx
func ExecContractError ¶
func ExecContractError(err error) *types.ResponseDeliverTx
func ExecOK ¶
func ExecOK() *types.ResponseDeliverTx
func InsufficientBalanceToTransfer ¶
func InsufficientBalanceToTransfer(userName string) *types.ResponseDeliverTx
func InvalidFuncTypeError ¶
func InvalidFuncTypeError(err error) *types.ResponseDeliverTx
func ReTrieveTxError ¶
func ReTrieveTxError(err error) *types.ResponseDeliverTx
func RequestStorageError ¶
func RequestStorageError(err error) *types.ResponseDeliverTx
func UnauthorizedError ¶
func UnauthorizedError(key []byte) *types.ResponseDeliverTx
func UpdateAccTrieError ¶
func UpdateAccTrieError(err error) *types.ResponseDeliverTx
func UpdateBalanceIn ¶
func UpdateBalanceIn(value *math.Uint256) *types.ResponseDeliverTx
func UpdateBalanceOut ¶
func UpdateBalanceOut(value *math.Uint256) *types.ResponseDeliverTx
func UpdateTxTrieError ¶
func UpdateTxTrieError(err error) *types.ResponseDeliverTx
Types ¶
type ResponseCode ¶
type ResponseCode uint32
func CodeContractPanic ¶
func CodeContractPanic() ResponseCode
func CodeDecodeBytesError ¶
func CodeDecodeBytesError() ResponseCode
func CodeInvalidTxType ¶
func CodeInvalidTxType() ResponseCode
func CodeOK ¶
func CodeOK() ResponseCode
func CodeTODO ¶
func CodeTODO() ResponseCode
func CodeUpdateBalanceIn ¶
func CodeUpdateBalanceIn() ResponseCode
func CodeUpdateBalanceOut ¶
func CodeUpdateBalanceOut() ResponseCode
Click to show internal directories.
Click to hide internal directories.