utils

package
v31.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidAddress            = sdkerrors.ErrInvalidAddress
	ErrContractNotRegistered     = errorsmod.Register(codespace, 1, "contract not registered")
	ErrContractAlreadyRegistered = errorsmod.Register(codespace, 2, "contract already registered")
	ErrContractNotAdmin          = errorsmod.Register(codespace, 3, "sender is not the contract admin")
	ErrContractNotCreator        = errorsmod.Register(codespace, 4, "sender is not the contract creator")
	ErrInvalidCWContract         = errorsmod.Register(codespace, 5, "invalid CosmWasm contract")
	ErrOutOfGas                  = errorsmod.Register(codespace, 6, "contract execution ran out of gas")
	ErrContractExecutionPanic    = errorsmod.Register(codespace, 7, "contract execution panicked")
)

Functions

func ExecuteContract

func ExecuteContract(k wasmtypes.ContractOpsKeeper, childCtx sdk.Context, contractAddr sdk.AccAddress, msgBz []byte, err *error)

ExecuteContract executes a contract and recovers from panic

func IsOutOfGasError

func IsOutOfGasError(err any) (bool, string)

IsOutOfGasError checks if error is out of gas error

Types

This section is empty.

Jump to

Keyboard shortcuts

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