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)
Execute contract, recover from panic
func IsOutOfGasError ¶
Check if error is out of gas error
Types ¶
type PV ¶
type PV struct {
PrivKey cryptotypes.PrivKey
}
PV implements PrivValidator without any safety or persistence. Only use it for testing.
func (PV) SignProposal ¶
SignProposal implements PrivValidator interface
Click to show internal directories.
Click to hide internal directories.