Documentation ¶
Index ¶
- Constants
- func AddrForNetwork(network netconf.ID) (common.Address, bool)
- func Deploy(ctx context.Context, network netconf.ID, backend *ethbackend.Backend, ...) (common.Address, *ethtypes.Receipt, error)
- func IsDeployed(ctx context.Context, network netconf.ID, backend *ethbackend.Backend) (bool, common.Address, error)
- type DeploymentConfig
Constants ¶
View Source
const ( XMsgMinGasLimit = 21_000 XMsgMaxGasLimit = 5_000_000 XReceiptMaxErrorBytes = uint16(256) GenesisCChainXMsgOffset = uint64(1) GenesisCChainXBlockOffset = uint64(1) )
Variables ¶
This section is empty.
Functions ¶
func AddrForNetwork ¶ added in v0.1.2
func Deploy ¶
func Deploy(ctx context.Context, network netconf.ID, backend *ethbackend.Backend, feeOracle common.Address, valSetID uint64, validators []bindings.Validator, ) (common.Address, *ethtypes.Receipt, error)
Deploy deploys a new Portal contract and returns the address and receipt. It only allows deployments to explicitly supported chains.
Types ¶
type DeploymentConfig ¶ added in v0.1.2
type DeploymentConfig struct { Create3Factory common.Address Create3Salt string ProxyAdmin common.Address Deployer common.Address Owner common.Address OmniChainID uint64 OmniCChainID uint64 XMsgMinGasLimit uint64 XMsgMaxGasLimit uint64 XReceiptMaxErrorBytes uint16 CChainXMsgOffset uint64 CChainXBlockOffset uint64 ExpectedAddr common.Address }
func (DeploymentConfig) Validate ¶ added in v0.1.2
func (cfg DeploymentConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.