response

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2019 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExecOK = &types.ResponseDeliverTx{
		Code: uint32(codeOK),
	}
	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)",
	}
	MissingContract = &types.ResponseDeliverTx{
		Code: uint32(codeMissingContract),
		Log:  "MissingContract: can't find this contract on the Account Trie. Is it deployed correctly?",
	}
)

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 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 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 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL