Documentation
¶
Index ¶
- func Deploy(ctx context.Context, network netconf.ID, chainID uint64, destChainIDs []uint64, ...) (common.Address, *ethtypes.Receipt, error)
- func DeployIfNeeded(ctx context.Context, network netconf.ID, chainID uint64, destChainIDs []uint64, ...) (common.Address, *ethtypes.Receipt, error)
- type DeploymentConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deploy ¶
func Deploy(ctx context.Context, network netconf.ID, chainID uint64, destChainIDs []uint64, backend *ethbackend.Backend, backends ethbackend.Backends) (common.Address, *ethtypes.Receipt, error)
Deploy deploys a new FeeOracleV2 contract and returns the address and receipt.
func DeployIfNeeded ¶
func DeployIfNeeded(ctx context.Context, network netconf.ID, chainID uint64, destChainIDs []uint64, backends ethbackend.Backends) (common.Address, *ethtypes.Receipt, error)
DeployIfNeeded deploys a new oracle contract if it is not already deployed. If the contract is already deployed, the receipt is nil.
Types ¶
type DeploymentConfig ¶
type DeploymentConfig struct { Create3Salt string Create3Factory common.Address ExpectedAddr common.Address ProxyAdminOwner common.Address Owner common.Address Deployer common.Address Manager common.Address // manager is the address that can set fee parameters (gas price, conversion rates) ProtocolFee *big.Int // must fit in uint96 }
func (DeploymentConfig) Validate ¶
func (cfg DeploymentConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.