Documentation
¶
Index ¶
- Constants
- func Avs(network netconf.ID) common.Address
- func Create3Address(network netconf.ID, salt string) common.Address
- func Create3Factory(network netconf.ID) common.Address
- func IsDeployed(ctx context.Context, client ethclient.Client, addr common.Address) (bool, error)
- func IsEmptyAddress(addr common.Address) bool
- func PackInitCode(abi *abi.ABI, bytecodeHex string, params ...any) ([]byte, error)
- func StagingID(ctx context.Context) (string, error)
- func TokenAddr(network netconf.ID) common.Address
- func UseStagingOmniRPC(rpc string)
- type Addresses
- type Contract
- type FundThresholds
- type Salts
- type Token
- type Versions
- type WithdrawThresholds
Constants ¶
const ( NameAVS = "avs" NameCreate3Factory = "create3-factory" NameGasPump = "gas-pump" NameGasStation = "gas-station" NameL1Bridge = "l1-bridge" NamePortal = "portal" NameToken = "token" NameSolverNetInbox = "solvernet-inbox" NameSolverNetOutbox = "solvernet-outbox" NameSolverNetMiddleman = "solvernet-middleman" NameSovlerNetExecutor = "solvernet-executor" NameFeeOracleV2 = "fee-oracle-v2" )
Variables ¶
This section is empty.
Functions ¶
func Create3Address ¶ added in v0.13.0
Create3Address returns the Create3 address for the given network and salt.
func Create3Factory ¶ added in v0.3.0
Create3Factory returns the Create3 factory address for the given network.
func IsDeployed ¶ added in v0.13.0
func IsEmptyAddress ¶ added in v0.10.0
func PackInitCode ¶
PackInitCode packs the init code for a contract deployment.
func TokenAddr ¶ added in v0.13.0
TokenAddr returns the Omni ERC20 token contract address for the given network.
func UseStagingOmniRPC ¶
func UseStagingOmniRPC(rpc string)
UseStagingOmniRPC overrides the default staging Omni EVM RPC URL.
Types ¶
type Addresses ¶
type Addresses struct { AVS common.Address Create3Factory common.Address GasPump common.Address GasStation common.Address L1Bridge common.Address Portal common.Address Token common.Address SolverNetInbox common.Address SolverNetOutbox common.Address SolverNetMiddleman common.Address SolverNetExecutor common.Address FeeOracleV2 common.Address }
type Contract ¶ added in v0.11.0
type Contract struct { Name string Address common.Address FundThresholds *FundThresholds WithdrawThresholds *WithdrawThresholds IsDeployedOn func(chainID uint64, network netconf.ID) bool Tokens func(chainID uint64, network netconf.ID) []Token }
Contract defines a contract to monitor.
type FundThresholds ¶
type FundThresholds struct {
// contains filtered or unexported fields
}
FundThresholds defines the thresholds for funding a contract.
func (FundThresholds) MinBalance ¶
func (t FundThresholds) MinBalance() *big.Int
MinBalance returns the minimum balance required for funding a contract.
func (FundThresholds) TargetBalance ¶
func (t FundThresholds) TargetBalance() *big.Int
TargetBalance returns the target balance to fund a contract to.
type Salts ¶
type WithdrawThresholds ¶ added in v0.11.0
type WithdrawThresholds struct {
// contains filtered or unexported fields
}
WithdrawThresholds defines the thresholds for withdrawing from a contract.
func (WithdrawThresholds) MaxBalance ¶ added in v0.11.0
func (t WithdrawThresholds) MaxBalance() *big.Int
MaxBalance returns the max balance a contract can have before a withdrawal.