Documentation
¶
Index ¶
- func Create3Factory(network netconf.ID) common.Address
- func IsEmptyAddress(addr common.Address) bool
- func PackInitCode(abi *abi.ABI, bytecodeHex string, params ...any) ([]byte, error)
- func UseStagingOmniRPC(rpc string)
- type Addresses
- type Contract
- type FundThresholds
- type Salts
- type Token
- type WithdrawThresholds
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create3Factory ¶ added in v0.3.0
Create3Factory returns the Create3 factory address for the given network.
func IsEmptyAddress ¶ added in v0.10.0
func PackInitCode ¶
PackInitCode packs the init code for a contract deployment.
func UseStagingOmniRPC ¶
func UseStagingOmniRPC(rpc string)
UseStagingOmniRPC overrides the default staging Omni EVM RPC URL.
Types ¶
type Addresses ¶
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.
Click to show internal directories.
Click to hide internal directories.