burrow

package
v0.34.4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block exec.BlockExecution

func NewBurrowBlock

func NewBurrowBlock(block *exec.BlockExecution) *Block

func (*Block) GetHeight

func (b *Block) GetHeight() uint64

func (*Block) GetMetadata

func (b *Block) GetMetadata(columns types.SQLColumnNames) (map[string]interface{}, error)

func (*Block) GetTxs

func (b *Block) GetTxs() []chain.Transaction

type Chain

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

func New

func New(conn *grpc.ClientConn, filter *chain.Filter) (*Chain, error)

func (*Chain) Close

func (b *Chain) Close() error

func (*Chain) Connectivity

func (b *Chain) Connectivity() connectivity.State

func (*Chain) ConsumeBlocks

func (b *Chain) ConsumeBlocks(ctx context.Context, in *rpcevents.BlockRange, consumer func(chain.Block) error) error

func (*Chain) GetABI

func (b *Chain) GetABI(ctx context.Context, address crypto.Address) (string, error)

func (*Chain) GetChainID

func (b *Chain) GetChainID() string

func (*Chain) GetVersion

func (b *Chain) GetVersion() string

func (*Chain) StatusMessage

func (b *Chain) StatusMessage(ctx context.Context, lastProcessedHeight uint64) []interface{}

type Event

type Event exec.Event

func (*Event) Get

func (ev *Event) Get(key string) (value interface{}, ok bool)

Tags

func (*Event) GetAddress

func (ev *Event) GetAddress() crypto.Address

func (*Event) GetData

func (ev *Event) GetData() []byte

func (*Event) GetIndex

func (ev *Event) GetIndex() uint64

func (*Event) GetTopics

func (ev *Event) GetTopics() []binary.Word256

func (*Event) GetTransactionHash

func (ev *Event) GetTransactionHash() binary.HexBytes

type Transaction

type Transaction exec.TxExecution

func (*Transaction) GetEvents

func (tx *Transaction) GetEvents() []chain.Event

func (*Transaction) GetException

func (tx *Transaction) GetException() *errors.Exception

func (*Transaction) GetHash

func (tx *Transaction) GetHash() binary.HexBytes

func (*Transaction) GetMetadata

func (tx *Transaction) GetMetadata(columns types.SQLColumnNames) (map[string]interface{}, error)

func (*Transaction) GetOrigin

func (tx *Transaction) GetOrigin() *chain.Origin

Jump to

Keyboard shortcuts

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