bxh_adapter

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TargetAppchainNotAvailable = "target appchain not available"
	SrcBitXHubNotAvailable     = "source bitxhub not available"
	TargetBitXHubNotAvailable  = "target bitxhub not available"
	SrcServiceNotAvailable     = "1080007"

	InvalidTargetService = "invalid target service"
)

Variables

View Source
var (
	ErrIBTPNotFound  = fmt.Errorf("receipt from bitxhub failed")
	ErrMetaOutOfDate = fmt.Errorf("interchain meta is out of date")
)

Functions

This section is empty.

Types

type BxhAdapter

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

BxhAdapter represents the necessary data for sync tx from bitxhub

func New

func New(mode, appchainId string, client rpcx.Client, logger logrus.FieldLogger, tss *repo.TSS) (*BxhAdapter, error)

New creates instance of WrapperSyncer given agent interacting with bitxhub, validators addresses of bitxhub and local storage

func (*BxhAdapter) GetServiceIDList

func (b *BxhAdapter) GetServiceIDList() ([]string, error)

func (*BxhAdapter) ID added in v1.18.0

func (b *BxhAdapter) ID() string

func (*BxhAdapter) MonitorIBTP

func (b *BxhAdapter) MonitorIBTP() chan *pb.IBTP

func (*BxhAdapter) MonitorUpdatedMeta added in v1.18.0

func (b *BxhAdapter) MonitorUpdatedMeta() chan *[]byte

func (*BxhAdapter) Name

func (b *BxhAdapter) Name() string

func (*BxhAdapter) QueryIBTP

func (b *BxhAdapter) QueryIBTP(id string, isReq bool) (*pb.IBTP, error)

func (*BxhAdapter) QueryInterchain

func (b *BxhAdapter) QueryInterchain(serviceID string) (*pb.Interchain, error)

func (*BxhAdapter) SendIBTP

func (b *BxhAdapter) SendIBTP(ibtp *pb.IBTP) error

func (*BxhAdapter) SendUpdatedMeta added in v1.18.0

func (b *BxhAdapter) SendUpdatedMeta(byte []byte) error

func (*BxhAdapter) Start

func (b *BxhAdapter) Start() error

func (*BxhAdapter) Stop

func (b *BxhAdapter) Stop() error

Jump to

Keyboard shortcuts

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