contracts

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

Module represents the module that allows to handle all smart contracts modules easily

func NewModule

func NewModule(modules []SmartContractModule) *Module

NewModule returns a new Module instance

func (Module) HandleMsg

func (m Module) HandleMsg(index int, msg sdk.Msg, tx *juno.Tx) error

HandleMsg implements modules.MessageModule

func (Module) HandleMsgExec

func (m Module) HandleMsgExec(index int, msgExec *authz.MsgExec, authzMsgIndex int, executedMsg sdk.Msg, tx *juno.Tx) error

HandleMsgExec implements modules.AuthzMessageModule

func (Module) Name

func (m Module) Name() string

Name implements modules.Module

func (Module) RefreshData

func (m Module) RefreshData(height int64, subspaceID uint64) error

RefreshData implements SmartContractModule

type SmartContractModule

type SmartContractModule interface {
	modules.Module
	modules.MessageModule
	modules.AuthzMessageModule

	// RefreshData refreshes the smart contract data for the given height and subspace id
	RefreshData(height int64, subspaceID uint64) error
}

SmartContractModule represents a generic smart contract module

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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