feeoraclev2

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳