Documentation ¶
Overview ¶
Package eoa defines well-known (non-fireblocks) eoa private keys used in an omni network.
Index ¶
- Constants
- func Address(network netconf.ID, role Role) (common.Address, bool)
- func Admin(network netconf.ID) (common.Address, error)
- func Funder() common.Address
- func MustAddress(network netconf.ID, role Role) common.Address
- func MustAddresses(network netconf.ID, roles ...Role) []common.Address
- func PrivateKey(ctx context.Context, network netconf.ID, role Role) (*ecdsa.PrivateKey, error)
- type Account
- type FundThresholds
- type Role
- type Type
Constants ¶
View Source
const (
ZeroXDead = "0x000000000000000000000000000000000000dead"
)
Variables ¶
This section is empty.
Functions ¶
func MustAddress ¶
MustAddress returns the address for the EOA identified by the network and role.
func MustAddresses ¶
MustAddresses returns the addresses for the network and roles.
func PrivateKey ¶
PrivateKey returns the private key for the EOA identified by the network and role.
Types ¶
type Account ¶
type Account struct { Type Type Role Role Address common.Address // contains filtered or unexported fields }
Account defines a EOA account used within the Omni network.
func AccountForRole ¶
AccountForRole returns the account for the network and role.
type FundThresholds ¶
type FundThresholds struct {
// contains filtered or unexported fields
}
func GetFundThresholds ¶
func GetFundThresholds(network netconf.ID, role Role) (FundThresholds, bool)
func (FundThresholds) MinBalance ¶
func (t FundThresholds) MinBalance() *big.Int
func (FundThresholds) TargetBalance ¶
func (t FundThresholds) TargetBalance() *big.Int
type Role ¶
type Role string
const ( RoleRelayer Role = "relayer" RoleMonitor Role = "monitor" RoleCreate3Deployer Role = "create3-deployer" RoleDeployer Role = "deployer" RoleProxyAdminOwner Role = "proxy-admin-owner" RolePortalAdmin Role = "portal-admin" RoleAVSAdmin Role = "avs-admin" RoleFbDev Role = "fb-dev" // TODO(corver): fb-dev isn't a role... )
Click to show internal directories.
Click to hide internal directories.