Documentation ¶
Index ¶
- func ApplyFuncIfNoError(ctx sdk.Context, f func(ctx sdk.Context) error) (err error)
- func PrintPanicRecoveryError(ctx sdk.Context, recoveryError interface{})
- func SortSlice[T constraints.Ordered](s []T)
- func ValidateProofOps(ctx sdk.Context, ibcKeeper *ibcKeeper.Keeper, connectionID string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyFuncIfNoError ¶
ApplyFuncIfNoError This function lets you run the function f, but if theres an error or panic drop the state machine change and log the error. If there is no error, proceeds as normal (but with some slowdown due to SDK store weirdness) Try to avoid usage of iterators in f.
func PrintPanicRecoveryError ¶
PrintPanicRecoveryError error logs the recoveryError, along with the stacktrace, if it can be parsed. If not emits them to stdout.
func SortSlice ¶
func SortSlice[T constraints.Ordered](s []T)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.