Documentation ¶
Index ¶
- type Database
- type Module
- func (m *Module) HandleMsgInstantiateContract(tx *juno.Tx, index int, contractType string) error
- func (m *Module) ParseContractAddress(tx *juno.Tx, index int) (string, error)
- func (m *Module) QuerySmartContractState(height int64, address string, query interface{}) (wasmtypes.RawContractMessage, error)
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 a generic smart contract module that can be extended for custom contracts handling
func NewModule ¶
func NewModule(wasmClient wasmtypes.QueryClient, db Database) *Module
NewModule returns a new Module instance
func (*Module) HandleMsgInstantiateContract ¶
HandleMsgInstantiateContract handles a MsgInstantiateContract instance by refreshing the stored tips contracts
func (*Module) ParseContractAddress ¶
ParseContractAddress returns the contract address that is instantiated with the provided transaction
func (*Module) QuerySmartContractState ¶
func (m *Module) QuerySmartContractState(height int64, address string, query interface{}) (wasmtypes.RawContractMessage, error)
QuerySmartContractState queries a generic smart contract state given its address and the query to perform
Click to show internal directories.
Click to hide internal directories.