setup

package
v0.0.0-...-b770cea Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployAndInit

DeployAndInit ...

func DeployBridgeBank

func DeployBridgeBank(client ethinterface.EthClientSpec, privateKey *ecdsa.PrivateKey, deployer, operator, oracle, chainBridge common.Address) (*generated.BridgeBank, *ethtxs.DeployResult, error)

DeployBridgeBank : 部署BridgeBank

func DeployBridgeRegistry

func DeployBridgeRegistry(client ethinterface.EthClientSpec, privateKey *ecdsa.PrivateKey, deployer, chainBridgeAddr, bridgeBankAddr, oracleAddr, valsetAddr common.Address) (*generated.BridgeRegistry, *ethtxs.DeployResult, error)

DeployBridgeRegistry : 部署BridgeRegistry

func DeployChainBridge

func DeployChainBridge(client ethinterface.EthClientSpec, privateKey *ecdsa.PrivateKey, deployer common.Address, operator, valset common.Address) (*generated.ChainBridge, *ethtxs.DeployResult, error)

DeployChainBridge : 部署ChainBridge

func DeployContracts

DeployContracts ...

func DeployOracle

func DeployOracle(client ethinterface.EthClientSpec, privateKey *ecdsa.PrivateKey, deployer, operator, valset, chainBridge 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.

Jump to

Keyboard shortcuts

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