manager

package
v0.0.0-...-e558250 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: GPL-3.0 Imports: 40 Imported by: 0

Documentation

Overview

* Copyright (C) 2020 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) 2020 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) 2020 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 (
	ChanLen = 64
)

Variables

View Source
var (
	// ErrNoCode is returned by call and transact operations for which the requested
	// recipient contract to operate on does not exist in the state db or does not
	// have any code associated with it (i.e. suicided).
	ErrNoCode = errors.New("no contract code at given address")

	// This error is raised when attempting to perform a pending state action
	// on a backend that doesn't implement PendingContractCaller.
	ErrNoPendingState = errors.New("backend does not support pending state")

	// This error is returned by WaitDeployed if contract creation leaves an
	// empty contract behind.
	ErrNoCodeAfterDeploy = errors.New("no contract code after deployment")
)

Functions

This section is empty.

Types

type BlockRes

type BlockRes struct {
	Transactions []string `json:"transactions"`
}

type BoundContract

type BoundContract struct {
	// contains filtered or unexported fields
}

type EthTxInfo

type EthTxInfo struct {
	// contains filtered or unexported fields
}

type FiscoManager

type FiscoManager struct {
	// contains filtered or unexported fields
}

func NewFiscoManager

func NewFiscoManager(servconfig *config.ServiceConfig, startheight uint64, startforceheight uint64, ontsdk *sdk.PolySdk, client *client.Client, boltDB *db.BoltDB) (*FiscoManager, error)

func (*FiscoManager) BindHash

func (this *FiscoManager) BindHash()

func (*FiscoManager) BlockNumber

func (this *FiscoManager) BlockNumber() (int64, error)

func (*FiscoManager) ClientVersion

func (this *FiscoManager) ClientVersion()

*

  • ClientVersion

func (*FiscoManager) FetchLockDepositEvents

func (this *FiscoManager) FetchLockDepositEvents(height uint64) bool

func (*FiscoManager) GetBlance

func (this *FiscoManager) GetBlance(acc string)

func (*FiscoManager) GetProxyHash

func (this *FiscoManager) GetProxyHash()

func (*FiscoManager) MonitorChain

func (this *FiscoManager) MonitorChain()

func (*FiscoManager) NotifyBlockNumber

func (this *FiscoManager) NotifyBlockNumber(blockNumber int64)

func (*FiscoManager) SendCrossChainInfo

func (this *FiscoManager) SendCrossChainInfo(param common2.MakeTxParam) (common.Uint256, error)

func (*FiscoManager) SendCrossChainInfoWithRaw

func (this *FiscoManager) SendCrossChainInfoWithRaw(rawInfo []byte) (common.Uint256, error)

func (*FiscoManager) StartTransact

func (this *FiscoManager) StartTransact(toAccAddr string, amount int64)

func (*FiscoManager) SubscribeBlockNumber

func (this *FiscoManager) SubscribeBlockNumber()

*

  • SubscribeBlockNumber

func (*FiscoManager) SyncFiscoGenesisHeader

func (this *FiscoManager) SyncFiscoGenesisHeader(poly *sdk.PolySdk, ecmAddr string)

type FiscoSender

type FiscoSender struct {
	// contains filtered or unexported fields
}

type FiscoTxInfo

type FiscoTxInfo struct {
	// contains filtered or unexported fields
}

type PolyManager

type PolyManager struct {
	// contains filtered or unexported fields
}

func NewPolyManager

func NewPolyManager(servCfg *config.ServiceConfig, startblockHeight uint32, polySdk *sdk.PolySdk, fiscosdk *client.Client, boltDB *db.BoltDB) (*PolyManager, error)

func (*PolyManager) HandleCommitHeader

func (this *PolyManager) HandleCommitHeader(height uint32)

func (*PolyManager) HandleDepositEvents

func (this *PolyManager) HandleDepositEvents(height uint32)

func (*PolyManager) MonitorChain

func (this *PolyManager) MonitorChain()

func (*PolyManager) Stop

func (this *PolyManager) Stop()

Jump to

Keyboard shortcuts

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