Documentation ¶
Index ¶
- Constants
- Variables
- type Auction
- type Manager
- func (am *Manager) GetSolverOperationStatus(solverOpHash common.Hash, completionChan chan *SolverStatus) (*SolverStatus, *relayerror.Error)
- func (am *Manager) GetSolverOperations(userOpHash common.Hash, ...) ([]*operation.SolverOperationWithScore, *relayerror.Error)
- func (am *Manager) IsAuctionOngoing(userOpHash common.Hash) bool
- func (am *Manager) NewSolverOperation(solverOp *operation.SolverOperation) (common.Hash, *relayerror.Error)
- func (am *Manager) NewUserOperation(userOp *operation.UserOperation, hints []common.Address) (common.Hash, *operation.UserOperationPartialRaw, *relayerror.Error)
- type SolverStatus
Constants ¶
View Source
const ( SolverStatusCodeFailure = iota SolverStatusCodeSuccess SolverStatusCodePending )
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") ErrSolverAlreadyParticipating = relayerror.NewError(4102, "solver is already participating in this auction") ErrSolverOperationNotFound = relayerror.NewError(4103, "solver operation not found") )
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 ( SolverStatusIncluded = NewSolverStatus(SolverStatusCodeSuccess, "included in auction") SolverStatusAuctionPending = NewSolverStatus(SolverStatusCodePending, "auction is pending") SolverStatusFailedSimulation = NewSolverStatus(SolverStatusCodeFailure, "failed simulation") SolverStatusNotIncluded = NewSolverStatus(SolverStatusCodeFailure, "not included in auction") )
View Source
var (
ATLETH_BONDED_BALANCE_MULTI_REQ = big.NewInt(1)
)
Functions ¶
This section is empty.
Types ¶
type Auction ¶
type Auction struct {
// contains filtered or unexported fields
}
func NewAuction ¶
func NewAuction(duration time.Duration, maxSolutions uint64, userOp *operation.UserOperation, userOperationPartialRaw *operation.UserOperationPartialRaw, userOpHash common.Hash, solverGasLimit uint32, simulateSolverOperation simulateSolverOperationFn, auctionCompleteCallback auctionCompleteCallbackFn) *Auction
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) GetSolverOperationStatus ¶ added in v1.0.3
func (am *Manager) GetSolverOperationStatus(solverOpHash common.Hash, completionChan chan *SolverStatus) (*SolverStatus, *relayerror.Error)
func (*Manager) GetSolverOperations ¶
func (am *Manager) GetSolverOperations(userOpHash common.Hash, completionChan chan []*operation.SolverOperationWithScore) ([]*operation.SolverOperationWithScore, *relayerror.Error)
func (*Manager) IsAuctionOngoing ¶ added in v1.0.4
func (*Manager) NewSolverOperation ¶
func (am *Manager) NewSolverOperation(solverOp *operation.SolverOperation) (common.Hash, *relayerror.Error)
func (*Manager) NewUserOperation ¶
func (am *Manager) NewUserOperation(userOp *operation.UserOperation, hints []common.Address) (common.Hash, *operation.UserOperationPartialRaw, *relayerror.Error)
type SolverStatus ¶ added in v1.0.3
func NewSolverStatus ¶ added in v1.0.3
func NewSolverStatus(code int, message string) *SolverStatus
Click to show internal directories.
Click to hide internal directories.