local

package
v0.0.0-...-4ef5390 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CosmosProvider

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

func NewProvider

func NewProvider(cdc codec.BinaryCodec) (*CosmosProvider, error)

NewProvider validates the CosmosProviderConfig, instantiates a ChainClient and then instantiates a CosmosProvider

func (*CosmosProvider) GetBlockAtHeight

func (cc *CosmosProvider) GetBlockAtHeight(ctx context.Context, height int64) (*coretypes.ResultBlock, error)

GetBlockAtHeight queries the block at a given height

func (*CosmosProvider) QueryABCI

func (cc *CosmosProvider) QueryABCI(ctx context.Context, path string, data []byte) (abci.ResponseQuery, error)

QueryABCI performs an ABCI query and returns the appropriate response and error sdk error code.

func (*CosmosProvider) QueryCelestiaClientState

func (cc *CosmosProvider) QueryCelestiaClientState(ctx context.Context) (*celestia.ClientState, error)

func (*CosmosProvider) Status

Status queries the status of this node, can be used to check if it is catching up or a validator

Jump to

Keyboard shortcuts

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