bundler

package
v0.0.0-...-5882973 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundler

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

func New

func New(ctx context.Context, endpoint, origin string) (*Bundler, error)

func (*Bundler) Close

func (e *Bundler) Close()

func (*Bundler) GetUserOperationByHash

func (b *Bundler) GetUserOperationByHash(hash string) (*UserOperationResult, error)

type UserOperation

type UserOperation struct {
	Sender               string `json:"sender"`
	Nonce                string `json:"nonce"`
	InitCode             string `json:"initCode"`
	CallData             string `json:"callData"`
	CallGasLimit         string `json:"callGasLimit"`
	VerificationGasLimit string `json:"verificationGasLimit"`
	PreVerificationGas   string `json:"preVerificationGas"`
	MaxFeePerGas         string `json:"maxFeePerGas"`
	MaxPriorityFeePerGas string `json:"maxPriorityFeePerGas"`
	PaymasterAndData     string `json:"paymasterAndData"`
	Signature            string `json:"signature"`
}

type UserOperationResult

type UserOperationResult struct {
	UserOperation   UserOperation `json:"userOperation"`
	EntryPoint      string        `json:"entryPoint"`
	BlockNumber     int64         `json:"blockNumber"`
	BlockHash       string        `json:"blockHash"`
	TransactionHash string        `json:"transactionHash"`
}

Jump to

Keyboard shortcuts

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