asc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: LGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CrossChainPackageEventName = "crossChainPackage"

	CrossChainPackageEventHash = common.HexToHash("0x3a6e0fc61675aa2a100bcba0568368bb92bcec91c97673391074f11138f0cffe")
)

Functions

This section is empty.

Types

type ContractEvent

type ContractEvent interface {
	ToTxLog(log *types.Log) interface{}
}

type CrossChainPackageEvent

type CrossChainPackageEvent struct {
	ChainId         uint16
	OracleSequence  uint64
	PackageSequence uint64
	ChannelId       uint8
	Payload         []byte
}

func ParseCrossChainPackageEvent

func ParseCrossChainPackageEvent(abi *abi.ABI, log *types.Log) (*CrossChainPackageEvent, error)

func (*CrossChainPackageEvent) ToTxLog

func (ev *CrossChainPackageEvent) ToTxLog(log *types.Log) interface{}

type Executor

type Executor struct {
	Config *util.Config

	CrossChainAbi abi.ABI
	Clients       []*ethclient.Client
	// contains filtered or unexported fields
}

func NewExecutor

func NewExecutor(providers []string, config *util.Config) *Executor

NewExecutor returns the asc executor instance

func (*Executor) GetBlockAndPackages

func (e *Executor) GetBlockAndPackages(height int64) (*common.BlockAndPackageLogs, error)

GetBlockAndPackages returns the block and cross-chain packages of the given height

func (*Executor) GetLogs

func (e *Executor) GetLogs(client *ethclient.Client, header *types.Header) ([]interface{}, error)

GetLogs return the cross-chain packages of the given height

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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