Documentation ¶
Index ¶
- func BeginBlocker(ctx sdk.Context, k Keeper) error
- func HashCairoPayload(cairoPayload []string) (*big.Int, error)
- func MaybeSettleTx(k Keeper, ctx sdk.Context, txHash []byte) error
- func NewMsgServerImpl(keeper Keeper) zktx.MsgServer
- func NewQueryServerImpl(k Keeper) zktx.QueryServer
- func ParseCairoPayload(payload []byte) []string
- type Keeper
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashCairoPayload ¶
HashCairoPayload hashes cairo payload
func MaybeSettleTx ¶
MaybeSettleTx attemps to settle whole transactions. Public for testing.
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 ParseCairoPayload ¶
ParseCairoPayload parses cairo payload
Types ¶
type Keeper ¶
type Keeper struct { // state management Schema collections.Schema Params collections.Item[zktx.Params] Contracts collections.Map[string, zktx.Contract] // Proof stuff ProvenPayload collections.Map[collections.Pair[[]byte, uint32], zktx.PayloadMetadata] Timeout collections.Map[int64, zktx.TxTimeout] // Optimisation for Cosmos SettledTx collections.Map[[]byte, bool] // if present, TX is fully settled, then true/false for accepted/rejected // 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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.