auction

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAuctionClosed  = relayerror.NewError(4100, "auction for this user operation has already ended")
	ErrAuctionOngoing = relayerror.NewError(4101, "auction for this user operation is ongoing")
)
View Source
var (
	ErrAuctionAlreadyStarted    = relayerror.NewError(4000, "auction for this user operation has already started")
	ErrAuctionNotFound          = relayerror.NewError(4001, "auction not found")
	ErrUserOpFailedSimulation   = relayerror.NewError(4002, "user operation failed simulation")
	ErrSolverOpFailedSimulation = relayerror.NewError(4003, "solver operation failed simulation")
	ErrNotEnoughBondedBalance   = relayerror.NewError(4004, "not enough atlEth bonded balance")
)
View Source
var (
	ATLETH_BONDED_BALANCE_MULTI_REQ = big.NewInt(3)
)

Functions

func SolverGasLimit

func SolverGasLimit(dAppControlAddress common.Address, ethClient *ethclient.Client) (uint32, error)

Types

type Auction

type Auction struct {
	// contains filtered or unexported fields
}

func NewAuction

func NewAuction(duration time.Duration, userOp *operation.UserOperation, userOperationPartial *operation.UserOperationPartial, userOpHash common.Hash) *Auction

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(ethClient *ethclient.Client, config *config.Config, atlasDomainSeparator common.Hash, balanceOfBonded balanceOfBondedFn) *Manager

func (*Manager) GetSolverOperations

func (am *Manager) GetSolverOperations(userOpHash common.Hash, completionChan chan []*operation.SolverOperation) ([]*operation.SolverOperation, *relayerror.Error)

func (*Manager) NewSolverOperation

func (am *Manager) NewSolverOperation(solverOp *operation.SolverOperation) *relayerror.Error

func (*Manager) NewUserOperation

func (am *Manager) NewUserOperation(userOp *operation.UserOperation, hints []common.Address) (common.Hash, *operation.UserOperationPartial, *relayerror.Error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL