types

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxSideChainIdLength = 20

	GovChannelId = sdk.ChannelID(9)
)
View Source
const (
	CrossChainFeeLength = 32
	PackageTypeLength   = 1
	PackageHeaderLength = CrossChainFeeLength + PackageTypeLength
)

Variables

This section is empty.

Functions

func DecodePackageHeader

func DecodePackageHeader(packageHeader []byte) (packageType sdk.CrossChainPackageType, relayFee big.Int, err error)

func EncodePackageHeader

func EncodePackageHeader(packageType sdk.CrossChainPackageType, relayerFee big.Int) []byte

func GenCommonAckPackage

func GenCommonAckPackage(code uint32) ([]byte, error)

Types

type ChanPermissionSetting

type ChanPermissionSetting struct {
	SideChainId string                `json:"side_chain_id"`
	ChannelId   sdk.ChannelID         `json:"channel_id"`
	Permission  sdk.ChannelPermission `json:"permission"`
}

func (*ChanPermissionSetting) Check

func (c *ChanPermissionSetting) Check() error

type CommonAckPackage

type CommonAckPackage struct {
	Code uint32
}

func (CommonAckPackage) IsOk

func (p CommonAckPackage) IsOk() bool

Jump to

Keyboard shortcuts

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