contract

package
v0.4.9-rc9 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AspectNativeContract

type AspectNativeContract struct {
	// contains filtered or unexported fields
}

func NewAspectNativeContract

func NewAspectNativeContract(
	evmStoreKey storetypes.StoreKey,
	aspectStoreKey storetypes.StoreKey,
	evm *vm.EVM,
	evmState *states.StateDB,
	logger log.Logger,
) *AspectNativeContract

func (*AspectNativeContract) ApplyMessage

func (c *AspectNativeContract) ApplyMessage(ctx sdk.Context, msg *core.Message, gas uint64, commit bool) (ret []byte, remainingGas uint64, err error)

func (*AspectNativeContract) Init

func (c *AspectNativeContract) Init()

type BindHandler

type BindHandler struct{}

func (BindHandler) Handle

func (b BindHandler) Handle(ctx *HandlerContext, gas uint64) (ret []byte, remainingGas uint64, err error)

func (BindHandler) Method

func (b BindHandler) Method() string

type ChangeVersionHandler

type ChangeVersionHandler struct{}

func (ChangeVersionHandler) Handle

func (c ChangeVersionHandler) Handle(ctx *HandlerContext, gas uint64) (ret []byte, remainingGas uint64, err error)

func (ChangeVersionHandler) Method

func (c ChangeVersionHandler) Method() string

type DeployHandler

type DeployHandler struct{}

func (DeployHandler) Handle

func (h DeployHandler) Handle(ctx *HandlerContext, gas uint64) ([]byte, uint64, error)

func (DeployHandler) Method

func (h DeployHandler) Method() string

type GetBindingHandler

type GetBindingHandler struct{}

func (GetBindingHandler) Handle

func (g GetBindingHandler) Handle(ctx *HandlerContext, gas uint64) (ret []byte, remainingGas uint64, err error)

func (GetBindingHandler) Method

func (g GetBindingHandler) Method() string

type GetBoundAddressHandler

type GetBoundAddressHandler struct{}

func (GetBoundAddressHandler) Handle

func (g GetBoundAddressHandler) Handle(ctx *HandlerContext, gas uint64) (ret []byte, remainingGas uint64, err error)

func (GetBoundAddressHandler) Method

func (g GetBoundAddressHandler) Method() string

type GetVersionHandler

type GetVersionHandler struct{}

func (GetVersionHandler) Handle

func (g GetVersionHandler) Handle(ctx *HandlerContext, gas uint64) (ret []byte, remainingGas uint64, err error)

func (GetVersionHandler) Method

func (g GetVersionHandler) Method() string

type Handler

type Handler interface {
	Handle(ctx *HandlerContext, gas uint64) (ret []byte, remainingGas uint64, err error)
	Method() string
}

type HandlerContext

type HandlerContext struct {
	// contains filtered or unexported fields
}

type OperationHandler

type OperationHandler struct{}

func (OperationHandler) Handle

func (o OperationHandler) Handle(ctx *HandlerContext, gas uint64) (ret []byte, remainingGas uint64, err error)

func (OperationHandler) Method

func (o OperationHandler) Method() string

type UnbindHandler

type UnbindHandler struct{}

func (UnbindHandler) Handle

func (u UnbindHandler) Handle(ctx *HandlerContext, gas uint64) (ret []byte, remainingGas uint64, err error)

func (UnbindHandler) Method

func (u UnbindHandler) Method() string

type UpgradeHandler

type UpgradeHandler struct{}

func (UpgradeHandler) Handle

func (h UpgradeHandler) Handle(ctx *HandlerContext, gas uint64) ([]byte, uint64, error)

func (UpgradeHandler) Method

func (h UpgradeHandler) Method() string

Jump to

Keyboard shortcuts

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