Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) zktx.MsgServer
- func NewQueryServerImpl(k Keeper) zktx.QueryServer
- func SetContextIfNeeded(proofData zktx.HyleOutput, hyleContext *zktx.HyleContext) error
- func ValidateProofData(proofData zktx.HyleOutput, initialState []byte, hyleContext *zktx.HyleContext) error
- type Keeper
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the module MsgServer interface.
func NewQueryServerImpl ¶
func NewQueryServerImpl(k Keeper) zktx.QueryServer
NewQueryServerImpl returns an implementation of the module QueryServer.
func SetContextIfNeeded ¶
func SetContextIfNeeded(proofData zktx.HyleOutput, hyleContext *zktx.HyleContext) error
For clarity, split from ValidateProofData
func ValidateProofData ¶
func ValidateProofData(proofData zktx.HyleOutput, initialState []byte, hyleContext *zktx.HyleContext) error
TODO check block number, block time and tx hash
Types ¶
type Keeper ¶
type Keeper struct { // state management Schema collections.Schema Params collections.Item[zktx.Params] Contracts collections.Map[string, zktx.Contract] // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, addressCodec address.Codec, storeService storetypes.KVStoreService, authority string) Keeper
NewKeeper creates a new Keeper instance
func (*Keeper) ExportGenesis ¶
ExportGenesis exports the module state to a genesis state.
func (Keeper) GetAuthority ¶
GetAuthority returns the module's authority.
func (*Keeper) InitGenesis ¶
InitGenesis initializes the module state from a genesis state.
Click to show internal directories.
Click to hide internal directories.