agent

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BxhClient added in v1.4.0

type BxhClient struct {
	rpcx.Appchain
	// contains filtered or unexported fields
}

BxhClient represents plugin client fo relaychain, by packing operations of relaychain to an appchain plugin-client, we can easily excute ibtp.Payload on relaychain just like what we used to do on an appchain.

func CreateClient added in v1.4.0

func CreateClient(agent rpcx.Client) *BxhClient

CreateClient creates plugin client from agent

func (*BxhClient) CommitCallback added in v1.4.0

func (client *BxhClient) CommitCallback(ibtp *pb.IBTP) error

CommitCallback .

func (*BxhClient) GetCallbackMeta added in v1.4.0

func (client *BxhClient) GetCallbackMeta() (map[string]uint64, error)

GetCallbackMeta gets an index map, which implicates the greatest index of executed callback txs for each receiving chain TODO

func (*BxhClient) GetIBTP added in v1.4.0

func (client *BxhClient) GetIBTP() chan *pb.IBTP

GetIBTP .

func (*BxhClient) GetInMessage added in v1.4.0

func (client *BxhClient) GetInMessage(from string, idx uint64) ([][]byte, error)

GetInMessage gets receipt by index and source chain_id TODO

func (*BxhClient) GetInMeta added in v1.4.0

func (client *BxhClient) GetInMeta() (map[string]uint64, error)

GetInMeta gets an index map, which implicates the greatest index of ingoing interchain txs for each source chain

func (*BxhClient) GetOutMessage added in v1.4.0

func (client *BxhClient) GetOutMessage(to string, idx uint64) (*pb.IBTP, error)

GetOutMessage .

func (*BxhClient) GetOutMeta added in v1.4.0

func (client *BxhClient) GetOutMeta() (map[string]uint64, error)

GetOutMeta .

func (*BxhClient) GetReceipt added in v1.6.0

func (client *BxhClient) GetReceipt(ibtp *pb.IBTP) (*pb.IBTP, error)

func (*BxhClient) IncreaseInMeta added in v1.6.1

func (client *BxhClient) IncreaseInMeta(ibtp *pb.IBTP) (*pb.IBTP, error)

func (*BxhClient) Initialize added in v1.4.0

func (client *BxhClient) Initialize(configPath string, pierID string, extra []byte) error

Initialize .

func (*BxhClient) Name added in v1.4.0

func (client *BxhClient) Name() string

Name .

func (*BxhClient) RollbackIBTP added in v1.6.1

func (client *BxhClient) RollbackIBTP(ibtp *pb.IBTP, isSrcChain bool) (*pb.RollbackIBTPResponse, error)

func (*BxhClient) Start added in v1.4.0

func (client *BxhClient) Start() error

Start .

func (*BxhClient) Stop added in v1.4.0

func (client *BxhClient) Stop() error

Stop .

func (*BxhClient) SubmitIBTP added in v1.4.0

func (client *BxhClient) SubmitIBTP(ibtp *pb.IBTP) (*pb.SubmitIBTPResponse, error)

SubmitIBTP submits the inter-relaychain ibtp to relaychain to execute ibtp.Payload

func (*BxhClient) Type added in v1.4.0

func (client *BxhClient) Type() string

Type .

Jump to

Keyboard shortcuts

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