Versions in this module Expand all Collapse all v2 v2.0.1 Jul 5, 2020 Changes in this version + const CREATE_CROSS_CHAIN_TX + const CROSS_CHAIN_ID + const DONE_TX + const MAKE_FROM_ONT_PROOF + const ONT_CHAIN_ID + const PROCESS_CROSS_CHAIN_TX + const REQUEST + const VERIFY_TO_ONT_PROOF + func CreateCrossChainTx(native *native.NativeService) ([]byte, error) + func InitCrossChain() + func MakeFromOntProof(native *native.NativeService, params *CreateCrossChainTxParam) error + func ProcessCrossChainTx(native *native.NativeService) ([]byte, error) + func RegisterCrossChainContract(native *native.NativeService) + func VerifyToOntTx(native *native.NativeService, proof []byte, fromChainid uint64, ...) (*ccom.ToMerkleValue, error) + type CreateCrossChainTxParam struct + Args []byte + Method string + ToChainID uint64 + ToContractAddress []byte + func (this *CreateCrossChainTxParam) Deserialization(source *common.ZeroCopySource) error + func (this *CreateCrossChainTxParam) Serialization(sink *common.ZeroCopySink) + type OngUnlockParam struct + Address common.Address + Amount uint64 + FromChainID uint64 + func (this *OngUnlockParam) Deserialization(source *common.ZeroCopySource) error + func (this *OngUnlockParam) Serialization(sink *common.ZeroCopySink) + type ProcessCrossChainTxParam struct + Address common.Address + FromChainID uint64 + Header []byte + Height uint32 + Proof string + func (this *ProcessCrossChainTxParam) Deserialization(source *common.ZeroCopySource) error + func (this *ProcessCrossChainTxParam) Serialization(sink *common.ZeroCopySink)