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
- Variables
- type BlockRes
- type BoundContract
- type EthTxInfo
- type FiscoManager
- func (this *FiscoManager) BindHash()
- func (this *FiscoManager) BlockNumber() (int64, error)
- func (this *FiscoManager) ClientVersion()
- func (this *FiscoManager) FetchLockDepositEvents(height uint64) bool
- func (this *FiscoManager) GetBlance(acc string)
- func (this *FiscoManager) GetProxyHash()
- func (this *FiscoManager) MonitorChain()
- func (this *FiscoManager) NotifyBlockNumber(blockNumber int64)
- func (this *FiscoManager) SendCrossChainInfo(param common2.MakeTxParam) (common.Uint256, error)
- func (this *FiscoManager) SendCrossChainInfoWithRaw(rawInfo []byte) (common.Uint256, error)
- func (this *FiscoManager) StartTransact(toAccAddr string, amount int64)
- func (this *FiscoManager) SubscribeBlockNumber()
- func (this *FiscoManager) SyncFiscoGenesisHeader(poly *sdk.PolySdk, ecmAddr string)
- type FiscoSender
- type FiscoTxInfo
- type PolyManager
Constants ¶
const (
ChanLen = 64
)
Variables ¶
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 BoundContract ¶
type BoundContract struct {
// contains filtered or unexported fields
}
type FiscoManager ¶
type FiscoManager struct {
// contains filtered or unexported fields
}
func NewFiscoManager ¶
func (*FiscoManager) BindHash ¶
func (this *FiscoManager) BindHash()
func (*FiscoManager) BlockNumber ¶
func (this *FiscoManager) BlockNumber() (int64, error)
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 (*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()