Documentation ¶
Index ¶
- Constants
- Variables
- func DecorateHardFailError(err error) error
- func Filter[T any](slice []T, lambda func(t T) bool) []T
- func FilterUInt64Slice(slice []uint64, item uint64) []uint64
- func LogPanicCallback(ctx sdk.Context, r any) func(any)
- func Map[I any, O any](input []I, lambda func(i I) O) []O
- func MetricsPanicCallback(err any, ctx sdk.Context, key string)
- func PanicHandler(recoverCallback func(any)) func()
- func Reduce[I, O any](input []I, reducer func(I, O) O, initial O) O
- func SliceCopy[T any](slice []T) []T
Constants ¶
View Source
const HardFailPrefix = "hard fail error occurred"
Variables ¶
View Source
var Big0 = big.NewInt(0)
View Source
var Big1 = big.NewInt(1)
View Source
var Big2 = big.NewInt(2)
View Source
var Big27 = big.NewInt(27)
View Source
var Big35 = big.NewInt(35)
View Source
var Big8 = big.NewInt(8)
View Source
var BigMaxI64 = big.NewInt(math.MaxInt64)
View Source
var Sdk0 = sdk.NewInt(0)
Functions ¶
func DecorateHardFailError ¶
func FilterUInt64Slice ¶
func LogPanicCallback ¶
LogPanicCallback returns a callback function, given a context and a recovered error value, that logs the error and a stack trace.
func PanicHandler ¶
func PanicHandler(recoverCallback func(any)) func()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.