chain_interface

package
v0.0.0-...-e0ee87b Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

View Source
const (
	PreAcceptedBlock = ChannelsType(iota)
	RejectedBlock
	AcceptedBlockHeader
	AcceptedBlock
	IrreversibleBlock
	AcceptedTransaction
	AppliedTransaction
	AcceptedConfirmation

	//incoming
	Block
	Transaction

	//compat
	TransactionAck
)
View Source
const (
	GetBlockByNumber = MethodsType(iota)
	GetBlockById
	GetHeadBlockId
	GetLibBlockId

	GetLastIrreversibleBlockNumber

	//incoming
	BlockSync
	TransactionAsync
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptedBlockCaller

type AcceptedBlockCaller = AcceptedBlockHeaderCaller

type AcceptedBlockHeaderCaller

type AcceptedBlockHeaderCaller struct {
	Caller func(b *types.BlockState)
}

func (*AcceptedBlockHeaderCaller) Call

func (a *AcceptedBlockHeaderCaller) Call(data ...interface{})

type AcceptedConfirmationCaller

type AcceptedConfirmationCaller struct {
	Caller func(h *types.HeaderConfirmation)
}

func (*AcceptedConfirmationCaller) Call

func (a *AcceptedConfirmationCaller) Call(data ...interface{})

type AcceptedTransactionCaller

type AcceptedTransactionCaller struct {
	Caller func(t *types.TransactionMetadata)
}

func (*AcceptedTransactionCaller) Call

func (a *AcceptedTransactionCaller) Call(data ...interface{})

type AppliedTransactionCaller

type AppliedTransactionCaller struct {
	Caller func(t *types.TransactionTrace)
}

func (*AppliedTransactionCaller) Call

func (a *AppliedTransactionCaller) Call(data ...interface{})

type BlockCaller

type BlockCaller struct {
	Caller func(s *types.SignedBlock)
}

func (*BlockCaller) Call

func (b *BlockCaller) Call(data ...interface{})

type BlockSyncCaller

type BlockSyncCaller = BlockCaller

type ChannelsType

type ChannelsType int

type IrreversibleBlockCaller

type IrreversibleBlockCaller = AcceptedBlockHeaderCaller

type MethodsType

type MethodsType int

type NextFunction

type NextFunction = func(common.StaticVariant)

type PreAcceptedBlockCaller

type PreAcceptedBlockCaller struct {
	Caller func(s *types.SignedBlock)
}

func (*PreAcceptedBlockCaller) Call

func (p *PreAcceptedBlockCaller) Call(data ...interface{})

type RejectedBlockCaller

type RejectedBlockCaller = PreAcceptedBlockCaller

type TransactionAckCaller

type TransactionAckCaller struct {
	Caller func(p common.Pair) //<Exception, *PackedTransaction>
}

func (*TransactionAckCaller) Call

func (a *TransactionAckCaller) Call(data ...interface{})

type TransactionAsyncCaller

type TransactionAsyncCaller struct {
	Caller func(*types.PackedTransaction, bool, NextFunction)
}

func (*TransactionAsyncCaller) Call

func (t *TransactionAsyncCaller) Call(data ...interface{})

type TransactionCaller

type TransactionCaller struct {
	Caller func(p *types.PackedTransaction)
}

func (*TransactionCaller) Call

func (t *TransactionCaller) Call(data ...interface{})

Jump to

Keyboard shortcuts

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