proxy

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RequestInfo = abci.RequestInfo{
	Version:      version.TMCoreSemVer,
	BlockVersion: version.BlockProtocol,
	P2PVersion:   version.P2PProtocol,
}

RequestInfo contains all the information for sending the abci.RequestInfo message during handshake with the app. It contains only compile-time version information.

Functions

func NewABCIAdapter

func NewABCIAdapter(app abci.Application) cmtabci.Application

Types

type ABCIAdapter

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

ABCIAdapter adapts local ABCI applications to CometBFT ABCI interface

func (*ABCIAdapter) CheckTx

func (*ABCIAdapter) Commit

func (*ABCIAdapter) Echo

func (*ABCIAdapter) ExtendVote

func (*ABCIAdapter) FinalizeBlock

func (*ABCIAdapter) Flush

func (*ABCIAdapter) Info

func (*ABCIAdapter) InitChain

func (*ABCIAdapter) ListSnapshots

Implement other required methods with default implementations

func (*ABCIAdapter) OfferSnapshot

func (*ABCIAdapter) PrepareProposal

func (*ABCIAdapter) ProcessProposal

func (*ABCIAdapter) Query

type AppConnMempool

type AppConnMempool interface {
	CheckTx(context.Context, *abci.CheckTxRequest) (*abci.CheckTxResponse, error)
	CheckTxAsync(*abci.CheckTxRequest) *abcicli.ReqRes
	Flush(context.Context) error
	SetResponseCallback(func(*abci.Request, *abci.Response))
	Error() error
	FlushAsync() *abcicli.ReqRes
}

func NewAppConnMempool

func NewAppConnMempool(client abcicli.Client) AppConnMempool

type AppConnQuery

func NewAppConnQuery

func NewAppConnQuery(client abcicli.Client) AppConnQuery

type AppConns

type AppConns interface {
	service.Service

	// Mempool connection
	Mempool() AppConnMempool
	// Consensus connection
	Consensus() AppConnConsensus
	// Query connection
	Query() AppConnQuery
	// Snapshot connection
	Snapshot() AppConnSnapshot
}

AppConns is the Tendermint's interface to the application that consists of multiple connections.

func NewAppConns

func NewAppConns(clientCreator ClientCreator) AppConns

NewAppConns calls NewMultiAppConn.

func NewMultiAppConn

func NewMultiAppConn(clientCreator ClientCreator) AppConns

NewMultiAppConn makes all necessary abci connections to the application.

type ClientCreator

type ClientCreator interface {
	// NewABCIClient returns a new ABCI client.
	NewABCIClient() (abcicli.Client, error)
}

ClientCreator creates new ABCI clients.

func DefaultClientCreator

func DefaultClientCreator(addr, transport, dbDir string) ClientCreator

DefaultClientCreator returns a default ClientCreator, which will create a local client if addr is one of: 'kvstore', 'persistent_kvstore' or 'noop', otherwise - a remote client.

func NewLocalClientCreator

func NewLocalClientCreator(app abci.Application) ClientCreator

NewLocalClientCreator returns a ClientCreator for the given app, which will be running locally.

func NewRemoteClientCreator

func NewRemoteClientCreator(addr, transport string, mustConnect bool) ClientCreator

NewRemoteClientCreator returns a ClientCreator for the given address (e.g. "192.168.0.1") and transport (e.g. "tcp"). Set mustConnect to true if you want the client to connect before reporting success.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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