Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventTypeError = "error" AttributeKeyError = "message" AttributeKeyHeight = "height" )
Variables ¶
This section is empty.
Functions ¶
func EmitErrorEvent ¶
EmitErrorEvent emits an error event. Example of an error event:
- attributes:
- key: ibccallbackerror-height value: "439"
- key: ibccallbackerror-message value: 'transfer genesis: get valid transfer: get rollapp id: rollapp canonical channel mapping has not been set: rollappeve_1235-1: unmet precondition' type: ibccallbackerror-error
Example query to get the error event: dymd q txs --events ibccallbackerror-error.ibccallbackerror-height=439
func EmitTypedEvent ¶
EmitTypedEvent takes a typed event and emits it. The original EmitTypedEvent from cosmos-sdk adds double quotes around the string attributes, which makes it difficult, if not impossible to query/subscribe to those events. See https://github.com/cosmos/cosmos-sdk/issues/12592 and https://github.com/dymensionxyz/sdk-utils/pull/5#discussion_r1724688379
func NewErrorAcknowledgement ¶
func NewErrorAcknowledgement(ctx sdk.Context, err error) types.Acknowledgement
NewErrorAcknowledgement wraps the standard error acknowledgement with an error event.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.