Documentation
¶
Index ¶
- type CosmosProvider
- func (cc *CosmosProvider) GetBlockAtHeight(ctx context.Context, height int64) (*coretypes.ResultBlock, error)
- func (cc *CosmosProvider) QueryABCI(ctx context.Context, path string, data []byte) (abci.ResponseQuery, error)
- func (cc *CosmosProvider) QueryCelestiaClientState(ctx context.Context) (*celestia.ClientState, error)
- func (cc *CosmosProvider) Status(ctx context.Context) (*coretypes.ResultStatus, error)
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 ¶
func (cc *CosmosProvider) Status(ctx context.Context) (*coretypes.ResultStatus, error)
Status queries the status of this node, can be used to check if it is catching up or a validator
Click to show internal directories.
Click to hide internal directories.