bundle

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotBundledYet  = relayerror.NewError(5101, "bundle has not been bundled yet")
	ErrAlreadyBundled = relayerror.NewError(5102, "bundle has already been bundled")
	ErrAlreadyErrored = relayerror.NewError(5103, "bundle has already errored")
)
View Source
var (
	ErrBundleAlreadySubmitted = relayerror.NewError(5000, "bundle for this user operation has already been submitted")
	ErrBundleNotFound         = relayerror.NewError(5001, "bundle not found")
	ErrBundleFailedSimulation = relayerror.NewError(5002, "bundle failed simulation")
)

Functions

This section is empty.

Types

type Bundle

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

func NewBundle

func NewBundle(userOpHash common.Hash, bundleOps *operation.BundleOperations) *Bundle

func (*Bundle) GetResult

func (b *Bundle) GetResult() (common.Hash, *relayerror.Error)

func (*Bundle) SetAtlasTxHash

func (b *Bundle) SetAtlasTxHash(txHash common.Hash) *relayerror.Error

func (*Bundle) SetRelayError

func (b *Bundle) SetRelayError(relayErr *relayerror.Error) *relayerror.Error

type Manager

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

func NewManager

func NewManager(ethClient *ethclient.Client, config *config.Config, atlasDomainSeparator common.Hash, getDAppConfig getDAppConfigFn, isAuctionOngoing isAuctionOngoingFn) *Manager

func (*Manager) GetBundleHash

func (bm *Manager) GetBundleHash(userOpHash common.Hash, completionChan chan *Bundle) (common.Hash, *relayerror.Error)

func (*Manager) NewBundle

func (bm *Manager) NewBundle(bundleOps *operation.BundleOperations) (common.Hash, *Bundle, *relayerror.Error)

func (*Manager) RegisterBundleError added in v1.0.4

func (bm *Manager) RegisterBundleError(userOpHash common.Hash, relayErr *relayerror.Error)

func (*Manager) UnregisterBundle

func (bm *Manager) UnregisterBundle(userOpHash common.Hash)

Jump to

Keyboard shortcuts

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