keeper

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VerificationCountLimit uint64 = 4
)

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeService store.KVStoreService,
	logger log.Logger,
	authority string,

	stakingKeeper types.StakingKeeper,
	bitvmstakerKeeper types.BitvmstakerKeeper,
) Keeper

func (Keeper) AddPendingProofIndex

func (k Keeper) AddPendingProofIndex(ctx context.Context, proofId []byte)

AddPendingProofIndex adds a proof ID to the pending proofs index

func (*Keeper) BeginBlocker

func (k *Keeper) BeginBlocker(ctx context.Context) error

BeginBlocker will persist the current header and validator set as a historical entry and prune the oldest entry based on the HistoricalEntries parameter

func (Keeper) DASubmissionQueueStore

func (k Keeper) DASubmissionQueueStore(ctx context.Context) prefix.Store

DASubmissionQueueStore returns a prefix store for the DA submission data

func (Keeper) DASubmissionResultsStore

func (k Keeper) DASubmissionResultsStore(ctx context.Context) prefix.Store

DASubmissionResultsStore returns a prefix store for the DA submission results

func (Keeper) DASubmitterStore

func (k Keeper) DASubmitterStore(ctx context.Context) prefix.Store

DASubmitterStore returns a prefix store for the DA submitter

func (Keeper) DequeueDASubmission

func (k Keeper) DequeueDASubmission(ctx context.Context, proofId []byte)

func (*Keeper) EndBlocker

func (k *Keeper) EndBlocker(ctx context.Context) error

EndBlocker Called every block, update validator set

func (Keeper) EnqueueDASubmission

func (k Keeper) EnqueueDASubmission(ctx context.Context, proofId []byte, daSubmissionData types.DASubmissionData)

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx context.Context) *types.GenesisState

ExportGenesis returns the module's exported genesis

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the module's authority.

func (Keeper) GetBitVMChallengeData

func (k Keeper) GetBitVMChallengeData(ctx context.Context, proofId []byte) (types.BitVMChallengeData, bool)

GetBitVMChallengeData retrieves witness data from the chain

func (Keeper) GetBlockProposer

func (k Keeper) GetBlockProposer(ctx context.Context, height int64) string

func (Keeper) GetDASubmissionData

func (k Keeper) GetDASubmissionData(ctx context.Context, proofId []byte) (types.DASubmissionData, bool)

func (Keeper) GetDASubmissionQueue

func (k Keeper) GetDASubmissionQueue(ctx context.Context, pagination *query.PageRequest) ([]types.DASubmissionData, *query.PageResponse, error)

func (Keeper) GetDASubmissionResult

func (k Keeper) GetDASubmissionResult(ctx context.Context, proofId []byte) (types.DASubmissionResult, bool)

func (Keeper) GetDASubmitter

func (k Keeper) GetDASubmitter(ctx context.Context) string

func (Keeper) GetParams

func (k Keeper) GetParams(ctx context.Context) (params types.Params)

GetParams get all parameters as types.Params

func (Keeper) GetProofData

func (k Keeper) GetProofData(ctx context.Context, proofId []byte) (types.ProofData, bool)

GetProofData retrieves proof information

func (Keeper) GetProofId

func (k Keeper) GetProofId(proofData types.ProofData) ([32]byte, error)

GetProofId returns the proof id

func (Keeper) GetVerifyResult

func (k Keeper) GetVerifyResult(ctx context.Context, proofId []byte) (types.VerifyResult, bool)

GetVerifyResult retrieves proof verification information

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx context.Context, gs types.GenesisState) error

InitGenesis initializes the module's state from a provided genesis state.

func (Keeper) IsPendingProof

func (k Keeper) IsPendingProof(ctx context.Context, proofId []byte) bool

IsPendingProof checks if a proof ID is in the pending proofs index

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

Logger returns a module-specific logger.

func (Keeper) Params

func (Keeper) PendingProofsIndexStore

func (k Keeper) PendingProofsIndexStore(ctx context.Context) prefix.Store

PendingProofsIndexStore returns a prefix store for the pending proofs index

func (Keeper) ProofData

func (Keeper) RemovePendingProofIndex

func (k Keeper) RemovePendingProofIndex(ctx context.Context, proofId []byte)

RemovePendingProofIndex removes a proof ID from the pending proofs index

func (Keeper) SetBitVMChallengeData

func (k Keeper) SetBitVMChallengeData(ctx context.Context, proofId []byte, challengeData types.BitVMChallengeData)

SetBitVMChallengeData stores witness data

func (Keeper) SetBlockProposer

func (k Keeper) SetBlockProposer(ctx context.Context, height int64, proposer string)

func (Keeper) SetDASubmissionResult

func (k Keeper) SetDASubmissionResult(ctx context.Context, proofId []byte, result *types.DASubmissionResult)

func (Keeper) SetDASubmitter

func (k Keeper) SetDASubmitter(ctx context.Context, submitter string)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx context.Context, params types.Params) error

SetParams set the params

func (Keeper) SetProofData

func (k Keeper) SetProofData(ctx context.Context, proofId []byte, proofData types.ProofData)

SetProofData stores proof information

func (Keeper) SetVerifyResult

func (k Keeper) SetVerifyResult(ctx sdk.Context, proofId []byte, verifyResult types.VerifyResult)

SetVerifyResult stores proof verification information

func (Keeper) VerifyResultStore

func (k Keeper) VerifyResultStore(ctx context.Context) prefix.Store

Jump to

Keyboard shortcuts

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