Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper *Keeper) types.MsgServiceServer
- func NewProposalServer(keeper *Keeper) types.MsgServiceServer
- type Keeper
- func (k *Keeper) AddProvider(p types.CPayloadProvider)
- func (k *Keeper) PrepareProposal(ctx sdk.Context, req *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error)
- func (k *Keeper) RegisterProposalService(server grpc1.Server)
- func (k *Keeper) SetAddressProvider(p types.AddressProvider)
- func (k *Keeper) SetBuildDelay(d time.Duration)
- func (k *Keeper) SetBuildOptimistic(b bool)
- func (k *Keeper) SetCometAPI(c comet.API)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
func NewMsgServerImpl(keeper *Keeper) types.MsgServiceServer
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewProposalServer ¶
func NewProposalServer(keeper *Keeper) types.MsgServiceServer
NewProposalServer 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, engineCl ethclient.EngineClient, txConfig client.TxConfig, ) *Keeper
func (*Keeper) AddProvider ¶
func (k *Keeper) AddProvider(p types.CPayloadProvider)
TODO(corver): Figure out how to use depinject for this.
func (*Keeper) PrepareProposal ¶
func (k *Keeper) PrepareProposal(ctx sdk.Context, req *abci.RequestPrepareProposal) ( *abci.ResponsePrepareProposal, error, )
PrepareProposal returns a proposal for the next block. Note returning an error results in a panic cometbft and CONSENSUS_FAILURE log.
func (*Keeper) RegisterProposalService ¶
RegisterProposalService registers the proposal service on the provided router. This implements abci.ProcessProposal verification of new proposals.
func (*Keeper) SetAddressProvider ¶
func (k *Keeper) SetAddressProvider(p types.AddressProvider)
func (*Keeper) SetBuildDelay ¶
SetBuildDelay sets the build delay parameter.
func (*Keeper) SetBuildOptimistic ¶
SetBuildOptimistic sets the optimistic build parameter.
func (*Keeper) SetCometAPI ¶
SetCometAPI sets the comet API client.