Documentation
¶
Index ¶
- func DeployAndInit(client ethinterface.EthClientSpec, para *ethtxs.DeployPara) (*ethtxs.X2EthContracts, *ethtxs.X2EthDeployInfo, error)
- func DeployBridgeBank(client ethinterface.EthClientSpec, privateKey *ecdsa.PrivateKey, ...) (*generated.BridgeBank, *ethtxs.DeployResult, error)
- func DeployBridgeRegistry(client ethinterface.EthClientSpec, privateKey *ecdsa.PrivateKey, ...) (*generated.BridgeRegistry, *ethtxs.DeployResult, error)
- func DeployChain33Bridge(client ethinterface.EthClientSpec, privateKey *ecdsa.PrivateKey, ...) (*generated.Chain33Bridge, *ethtxs.DeployResult, error)
- func DeployContracts() (*ethtxs.DeployPara, *ethinterface.SimExtend, *ethtxs.X2EthContracts, ...)
- func DeployOracle(client ethinterface.EthClientSpec, privateKey *ecdsa.PrivateKey, ...) (*generated.Oracle, *ethtxs.DeployResult, error)
- func DeployValset(client ethinterface.EthClientSpec, privateKey *ecdsa.PrivateKey, ...) (*generated.Valset, *ethtxs.DeployResult, error)
- func PrepareTestEnv() (*ethinterface.SimExtend, *ethtxs.DeployPara)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeployAndInit ¶
func DeployAndInit(client ethinterface.EthClientSpec, para *ethtxs.DeployPara) (*ethtxs.X2EthContracts, *ethtxs.X2EthDeployInfo, error)
DeployAndInit ...
func DeployBridgeBank ¶
func DeployBridgeBank(client ethinterface.EthClientSpec, privateKey *ecdsa.PrivateKey, deployer, operator, oracle, chain33Bridge common.Address) (*generated.BridgeBank, *ethtxs.DeployResult, error)
DeployBridgeBank : 部署BridgeBank
func DeployBridgeRegistry ¶
func DeployBridgeRegistry(client ethinterface.EthClientSpec, privateKey *ecdsa.PrivateKey, deployer, chain33BridgeAddr, bridgeBankAddr, oracleAddr, valsetAddr common.Address) (*generated.BridgeRegistry, *ethtxs.DeployResult, error)
DeployBridgeRegistry : 部署BridgeRegistry
func DeployChain33Bridge ¶
func DeployChain33Bridge(client ethinterface.EthClientSpec, privateKey *ecdsa.PrivateKey, deployer common.Address, operator, valset common.Address) (*generated.Chain33Bridge, *ethtxs.DeployResult, error)
DeployChain33Bridge : 部署Chain33Bridge
func DeployContracts ¶
func DeployContracts() (*ethtxs.DeployPara, *ethinterface.SimExtend, *ethtxs.X2EthContracts, *ethtxs.X2EthDeployInfo, error)
DeployContracts ...
func DeployOracle ¶
func DeployOracle(client ethinterface.EthClientSpec, privateKey *ecdsa.PrivateKey, deployer, operator, valset, chain33Bridge common.Address) (*generated.Oracle, *ethtxs.DeployResult, error)
DeployOracle : 部署Oracle
func DeployValset ¶
func DeployValset(client ethinterface.EthClientSpec, privateKey *ecdsa.PrivateKey, deployer common.Address, operator common.Address, initValidators []common.Address, initPowers []*big.Int) (*generated.Valset, *ethtxs.DeployResult, error)
DeployValset : 部署Valset
func PrepareTestEnv ¶
func PrepareTestEnv() (*ethinterface.SimExtend, *ethtxs.DeployPara)
PrepareTestEnv ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.