testcase

package
v0.0.0-...-035b7fa Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: GPL-3.0 Imports: 44 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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/>.

* 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

This section is empty.

Variables

This section is empty.

Functions

func BtcCircle

send btc to travel btc->eth->ont->btc and btc->ont->eth->btc

func GetAccountByPath

func GetAccountByPath(path string) (*ontology_go_sdk.Account, error)

func GetRandAmount

func GetRandAmount(high, low uint64) uint64

func MakeEthAuth

func MakeEthAuth(signer *eth.EthSigner, nonce, gasPrice, gasLimit uint64) *bind.TransactOpts

func MakeEthAuthWithChainID

func MakeEthAuthWithChainID(signer *eth.EthSigner, nonce, gasPrice, gasLimit uint64, chainID *big.Int) *bind.TransactOpts

func MakeKaiAuth

func MakeKaiAuth(signer *eth.EthSigner, nonce, gasPrice, gasLimit uint64) *bind.TransactOpts

func OntCircleWithoutCosmos

func OntCircleWithoutCosmos(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus) bool

func SendBnbCrossBsc

func SendBnbCrossBsc(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendBnbCrossEth

func SendBnbCrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendBscEthCrossEth

func SendBscEthCrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendBscNeoCrossNeo

func SendBscNeoCrossNeo(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendBtcCrossCosmos

func SendBtcCrossCosmos(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendBtcCrossEth

func SendBtcCrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount int64) error

func SendBtcCrossOnt

func SendBtcCrossOnt(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount int64) error

func SendBtcFromCosmosToBitcoin

func SendBtcFromCosmosToBitcoin(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amt uint64) error

func SendBtcFromCosmosToEthereum

func SendBtcFromCosmosToEthereum(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amt uint64) error

func SendBtcFromCosmosToOntology

func SendBtcFromCosmosToOntology(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amt uint64) error

func SendBtcFromEthereumToCosmos

func SendBtcFromEthereumToCosmos(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amt uint64) error

func SendBtcFromOntologyToCosmos

func SendBtcFromOntologyToCosmos(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amt uint64) error

func SendBtcToCosmosAndBack

func SendBtcToCosmosAndBack(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus) bool

func SendBtceCrossBtc

func SendBtceCrossBtc(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendBtceCrossBtco

func SendBtceCrossBtco(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendBtcoCrossBtc

func SendBtcoCrossBtc(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendBtcoCrossBtce

func SendBtcoCrossBtce(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendDAICrossOnt

func SendDAICrossOnt(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendENeoCrossNeo

func SendENeoCrossNeo(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendEOEP4CrossOnt

func SendEOEP4CrossOnt(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, oep4 string, amount uint64) error

func SendEOntCrossOnt

func SendEOntCrossOnt(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, onte string, amount uint64) error

func SendEOntdCrossNeo

func SendEOntdCrossNeo(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendEOntdCrossOnt

func SendEOntdCrossOnt(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendERC20CrossOnt

func SendERC20CrossOnt(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, erc20ContractAddress string, amount uint64) error

func SendErc20CrossCosmos

func SendErc20CrossCosmos(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, erc20ContractAddress string, amount uint64) error

func SendErc20FromCosmosToEthereum

func SendErc20FromCosmosToEthereum(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amt uint64) error

func SendErc20FromCosmosToOntology

func SendErc20FromCosmosToOntology(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amt uint64) error

func SendErc20FromOntologyToCosmos

func SendErc20FromOntologyToCosmos(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendErc20ToCosmosAndBack

func SendErc20ToCosmosAndBack(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus) bool

func SendEthBnbCrossBsc

func SendEthBnbCrossBsc(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendEthCrossBsc

func SendEthCrossBsc(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendEthCrossCosmos

func SendEthCrossCosmos(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendEthCrossKai

func SendEthCrossKai(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendEthCrossNeo

func SendEthCrossNeo(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendEthCrossOnt

func SendEthCrossOnt(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendEthFromCosmosToEthereum

func SendEthFromCosmosToEthereum(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amt uint64) error

func SendEthFromCosmosToOntology

func SendEthFromCosmosToOntology(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amt uint64) error

func SendEthFromOntologyToCosmos

func SendEthFromOntologyToCosmos(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendEthToCosmosAndBack

func SendEthToCosmosAndBack(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus) bool

func SendEthoCrossEth

func SendEthoCrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, etho string, amount uint64) error

func SendKaiCrossEth

func SendKaiCrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendMaticCrossBor

func SendMaticCrossBor(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendMxCrossMsc

func SendMxCrossMsc(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendNEthCrossEth

func SendNEthCrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendNOntCrossOnt

func SendNOntCrossOnt(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendNOntdCrossEth

func SendNOntdCrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendNOntdCrossOnt

func SendNOntdCrossOnt(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendNeoCrossBsc

func SendNeoCrossBsc(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendNeoCrossEth

func SendNeoCrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendNeoCrossOnt

func SendNeoCrossOnt(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendO3CrossO3

func SendO3CrossO3(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendODAICrossEth

func SendODAICrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendOEP4CrossEth

func SendOEP4CrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, contractAddress string, amount uint64) error

func SendOERC20CrossEth

func SendOERC20CrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, erc20 string, amount uint64) error

func SendONeoCrossNeo

func SendONeoCrossNeo(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendORenBTCCrossEth

func SendORenBTCCrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendOUSDCCrossEth

func SendOUSDCCrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendOUSDTCrossEth

func SendOUSDTCrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendOWBTCCrossEth

func SendOWBTCCrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendOep4CrossCosmos

func SendOep4CrossCosmos(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus,
	contractAddress string, amount uint64) error

func SendOep4FromCosmosToEthereum

func SendOep4FromCosmosToEthereum(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus,
	ethAddress string, amt uint64) error

func SendOep4FromCosmosToOntology

func SendOep4FromCosmosToOntology(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amt uint64) error

func SendOep4FromEthereumToCosmos

func SendOep4FromEthereumToCosmos(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, signer *eth.EthSigner,
	cosmosAddr string, amount uint64) error

func SendOep4ToCosmosAndBack

func SendOep4ToCosmosAndBack(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus) bool

func SendOngCrossCosmos

func SendOngCrossCosmos(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendOngCrossEth

func SendOngCrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendOngFromCosmosToEthereum

func SendOngFromCosmosToEthereum(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amt uint64) error

func SendOngFromCosmosToOntology

func SendOngFromCosmosToOntology(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amt uint64) error

func SendOngFromEthereumToCosmos

func SendOngFromEthereumToCosmos(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendOngToCosmosAndBack

func SendOngToCosmosAndBack(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus) bool

func SendOngeCrossOnt

func SendOngeCrossOnt(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, onge string, amount uint64) error

func SendOntCrossCosmos

func SendOntCrossCosmos(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendOntCrossEth

func SendOntCrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendOntCrossNeo

func SendOntCrossNeo(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendOntFromCosmosToEthereum

func SendOntFromCosmosToEthereum(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amt uint64) error

func SendOntFromCosmosToOntology

func SendOntFromCosmosToOntology(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amt uint64) error

func SendOntFromEthereumToCosmos

func SendOntFromEthereumToCosmos(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendOntToCosmosAndBack

func SendOntToCosmosAndBack(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus) bool

func SendOntdCrossEth

func SendOntdCrossEth(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendOntdCrossNeo

func SendOntdCrossNeo(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendRenBTCCrossOnt

func SendRenBTCCrossOnt(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendUSDCCrossOnt

func SendUSDCCrossOnt(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendUSDTCrossOnt

func SendUSDTCrossOnt(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func SendWBTCCrossOnt

func SendWBTCCrossOnt(ctx *testframework.TestFrameworkContext, status *testframework.CaseStatus, amount uint64) error

func ToArrayReverse

func ToArrayReverse(arr []byte) []byte

func WaitPolyTx

func WaitPolyTx(txhash common.Uint256, poly *poly_go_sdk.PolySdk)

func WaitTransactionConfirm

func WaitTransactionConfirm(ethclient *ethclient.Client, hash ethcommon.Hash)

func WaitUntilClean

func WaitUntilClean(status *testframework.CaseStatus)

Types

This section is empty.

Jump to

Keyboard shortcuts

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