reverts

package
v0.6.19 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: GPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionResultRevert added in v0.6.0

type ExecutionResultRevert struct {
	PreOpGas      *big.Int
	Paid          *big.Int
	ValidAfter    *big.Int
	ValidUntil    *big.Int
	TargetSuccess bool
	TargetResult  []byte
}

func NewExecutionResult added in v0.6.0

func NewExecutionResult(err error) (*ExecutionResultRevert, error)

type FailedOpRevert

type FailedOpRevert struct {
	OpIndex int
	Reason  string
}

func NewFailedOp

func NewFailedOp(err error) (*FailedOpRevert, error)

type ReturnInfo

type ReturnInfo struct {
	PreOpGas         *big.Int `json:"preOpGas"`
	Prefund          *big.Int `json:"prefund"`
	SigFailed        bool     `json:"sigFailed"`
	ValidAfter       *big.Int `json:"validAfter"`
	ValidUntil       *big.Int `json:"validUntil"`
	PaymasterContext []byte   `json:"paymasterContext"`
}

type StakeInfo

type StakeInfo struct {
	Stake           *big.Int `json:"stake"`
	UnstakeDelaySec *big.Int `json:"unstakeDelaySec"`
}

type ValidationResultRevert

type ValidationResultRevert struct {
	ReturnInfo    *ReturnInfo
	SenderInfo    *StakeInfo
	FactoryInfo   *StakeInfo
	PaymasterInfo *StakeInfo
}

func NewValidationResult

func NewValidationResult(err error) (*ValidationResultRevert, error)

Jump to

Keyboard shortcuts

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