Documentation ¶
Overview ¶
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library. * * The poly network is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The poly network is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General Public License * along with The poly network . If not, see <http://www.gnu.org/licenses/>.
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library. * * The poly network is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The poly network is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General Public License * along with The poly network . If not, see <http://www.gnu.org/licenses/>.
Index ¶
- Constants
- func BlackChain(native *native.NativeService) ([]byte, error)
- func CheckIfChainBlacked(native *native.NativeService, chainID uint64) (bool, error)
- func GetChainHandler(router uint64) (scom.ChainHandler, error)
- func ImportExTransfer(native *native.NativeService) ([]byte, error)
- func MakeTransaction(service *native.NativeService, params *scom.MakeTxParam, fromChainID uint64) error
- func MultiSign(native *native.NativeService) ([]byte, error)
- func PutBlackChain(native *native.NativeService, chainID uint64)
- func PutRequest(native *native.NativeService, txHash []byte, chainID uint64, request []byte) error
- func RegisterCrossChainManagerContract(native *native.NativeService)
- func RemoveBlackChain(native *native.NativeService, chainID uint64)
- func WhiteChain(native *native.NativeService) ([]byte, error)
- type BlackChainParam
Constants ¶
const ( IMPORT_OUTER_TRANSFER_NAME = "ImportOuterTransfer" MULTI_SIGN = "MultiSign" BLACK_CHAIN = "BlackChain" WHITE_CHAIN = "WhiteChain" BLACKED_CHAIN = "BlackedChain" )
Variables ¶
This section is empty.
Functions ¶
func BlackChain ¶
func BlackChain(native *native.NativeService) ([]byte, error)
func CheckIfChainBlacked ¶
func CheckIfChainBlacked(native *native.NativeService, chainID uint64) (bool, error)
func GetChainHandler ¶
func GetChainHandler(router uint64) (scom.ChainHandler, error)
func ImportExTransfer ¶
func ImportExTransfer(native *native.NativeService) ([]byte, error)
func MakeTransaction ¶
func MakeTransaction(service *native.NativeService, params *scom.MakeTxParam, fromChainID uint64) error
func PutBlackChain ¶
func PutBlackChain(native *native.NativeService, chainID uint64)
func PutRequest ¶
func RegisterCrossChainManagerContract ¶
func RegisterCrossChainManagerContract(native *native.NativeService)
func RemoveBlackChain ¶
func RemoveBlackChain(native *native.NativeService, chainID uint64)
func WhiteChain ¶
func WhiteChain(native *native.NativeService) ([]byte, error)
Types ¶
type BlackChainParam ¶
type BlackChainParam struct {
ChainID uint64
}
func (*BlackChainParam) Deserialization ¶
func (this *BlackChainParam) Deserialization(source *common.ZeroCopySource) error
func (*BlackChainParam) Serialization ¶
func (this *BlackChainParam) Serialization(sink *common.ZeroCopySink)
Directories ¶
Path | Synopsis |
---|---|
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library.
|
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library. |
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library.
|
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library. |
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library.
|
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library. |
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library.
|
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library. |
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library.
|
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library. |
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library.
|
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library. |
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library.
|
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library. |
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library.
|
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library. |
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library.
|
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library. |
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library.
|
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library. |
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library.
|
* Copyright (C) 2021 The poly network Authors * This file is part of The poly network library. |