cross_chain_manager

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: LGPL-3.0 Imports: 26 Imported by: 0

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

View Source
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 MultiSign

func MultiSign(native *native.NativeService) ([]byte, error)

func PutBlackChain

func PutBlackChain(native *native.NativeService, chainID uint64)

func PutRequest

func PutRequest(native *native.NativeService, txHash []byte, chainID uint64, request []byte) error

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.

Jump to

Keyboard shortcuts

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