poller

package
v0.0.0-...-0ab412c Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(pool *pgxpool.Pool, ctx *CosmosCallContext, triggers ...chan<- int64)

Types

type BlockResult

type BlockResult struct {
	Block struct {
		Header struct {
			Height int64  `json:"height"`
			Time   string `json:"time"`
		} `json:"header"`
		Data struct {
			Txs tmTypes.Txs `json:"txs"`
		} `json:"data"`
	} `json:"block"`
}

func GetBlock

func GetBlock(ctx *CosmosCallContext, height int64) (*BlockResult, error)

type CosmosCallContext

type CosmosCallContext struct {
	Codec       *amino.Codec
	Client      *http.Client
	LcdEndpoint string
}

Jump to

Keyboard shortcuts

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