package
0.43.1
Repository: https://github.com/puneetsingh166/onomy-sdk.git
Documentation: pkg.go.dev

# Functions

ABCIError will resolve an error code/log from an abci result into an error message.
ABCIInfo returns the ABCI error information as consumed by the tendermint client.
No description provided by the author
QueryResult returns a ResponseQuery from an error.
Recover captures a panic and stop its propagation.
Redact replaces an error that is not initialized as an ABCI Error with a generic internal error instance.
Register returns an error instance that should be used as the base for creating error instances during runtime.
ResponseCheckTx returns an ABCI ResponseCheckTx object with fields filled in from the given error and gas values.
ResponseDeliverTx returns an ABCI ResponseDeliverTx object with fields filled in from the given error and gas values.
WithType is a helper to augment an error with a corresponding type message.
Wrap extends given error with an additional information.
Wrapf extends given error with an additional information.

# Constants

RootCodespace is the codespace for all errors defined in this package.
SuccessABCICode declares an ABCI response use 0 to signal that the processing was successful and no error is returned.
UndefinedCodespace when we explicitly declare no codespace.

# Variables

ErrConflict defines a conflict error, e.g.
ErrInsufficientFee to doc.
ErrInsufficientFunds is used when the account cannot pay requested amount.
ErrInvalidAddress to doc.
ErrInvalidChainID defines an error when the chain-id is invalid.
ErrInvalidCoins to doc.
ErrInvalidHeight defines an error for an invalid height.
ErrInvalidPubKey to doc.
ErrInvalidRequest defines an ABCI typed error where the request contains invalid data.
ErrInvalidSequence is used the sequence number (nonce) is incorrect for the signature.
ErrInvalidType defines an error an invalid type.
ErrInvalidVersion defines a general error for an invalid version.
ErrJSONMarshal defines an ABCI typed JSON marshalling error.
ErrJSONUnmarshal defines an ABCI typed JSON unmarshalling error.
ErrKeyNotFound defines an error when the key doesn't exist.
ErrLogic defines an internal logic error, e.g.
ErrMemoTooLarge to doc.
ErrMempoolIsFull defines an ABCI typed error where the mempool is full.
ErrNoSignatures to doc.
ErrNotSupported is returned when we call a branch of a code which is currently not supported.
ErrorInvalidGasAdjustment defines an error for an invalid gas adjustment.
ErrorInvalidSigner defines an error when the tx intended signer does not match the given signer.
ErrOutOfGas to doc.
ErrPackAny defines an error when packing a protobuf message to Any fails.
ErrPanic is only set when we recover from a panic, so we know to redact potentially sensitive system info.
ErrTooManySignatures to doc.
ErrTxDecode is returned if we cannot parse a transaction.
ErrTxInMempoolCache defines an ABCI typed error where a tx already exists in the mempool.
ErrTxTimeoutHeight defines an error for when a tx is rejected out due to an explicitly set timeout height.
ErrTxTooLarge defines an ABCI typed error where tx is too large.
ErrUnauthorized is used whenever a request without sufficient authorization is handled.
ErrUnknownAddress to doc.
ErrUnknownExtensionOptions defines an error for unknown extension options.
ErrUnknownRequest to doc.
ErrUnpackAny defines an error when unpacking a protobuf message from Any fails.
ErrWrongPassword defines an error when the key password is invalid.
ErrWrongSequence defines an error where the account sequence defined in the signer info doesn't match the account's actual sequence number.

# Structs

Error represents a root error.