Documentation ¶
Index ¶
- Constants
- func DecodePackageHeader(packageHeader []byte) (packageType sdk.CrossChainPackageType, relayFee big.Int, err error)
- func EncodePackageHeader(packageType sdk.CrossChainPackageType, relayerFee big.Int) []byte
- func GenCommonAckPackage(code uint32) ([]byte, error)
- type ChanPermissionSetting
- type CommonAckPackage
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 EncodePackageHeader ¶
func EncodePackageHeader(packageType sdk.CrossChainPackageType, relayerFee big.Int) []byte
func GenCommonAckPackage ¶
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
Click to show internal directories.
Click to hide internal directories.