methods

package
v0.6.47 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BalanceOfMethod = abi.NewMethod(
		"balanceOf",
		"balanceOf",
		abi.Function,
		"",
		false,
		false,
		abi.Arguments{
			{Name: "account", Type: address},
		},
		abi.Arguments{
			{Type: uint256},
		},
	)
	BalanceOfSelector = hexutil.Encode(BalanceOfMethod.ID)
)
View Source
var (
	CreateSenderMethod = abi.NewMethod(
		"createSender",
		"createSender",
		abi.Function,
		"",
		false,
		false,
		abi.Arguments{
			{Name: "initCode", Type: bytes},
		},
		abi.Arguments{
			{Name: "sender", Type: address},
		},
	)
	CreateSenderSelector = hexutil.Encode(CreateSenderMethod.ID)
)
View Source
var (
	HandleOpsMethod = abi.NewMethod(
		"handleOps",
		"handleOps",
		abi.Function,
		"",
		false,
		false,
		abi.Arguments{
			{Name: "ops", Type: userop.UserOpArr},
			{Name: "beneficiary", Type: address},
		},
		nil,
	)
	HandleOpsSelector = hexutil.Encode(HandleOpsMethod.ID)
)
View Source
var (
	ValidatePaymasterUserOpMethod = abi.NewMethod(
		"validatePaymasterUserOp",
		"validatePaymasterUserOp",
		abi.Function,
		"",
		false,
		false,
		abi.Arguments{
			{Name: "userOp", Type: userop.UserOpType},
			{Name: "userOpHash", Type: bytes32},
			{Name: "maxCost", Type: uint256},
		},
		abi.Arguments{
			{Name: "context", Type: bytes},
			{Name: "deadline", Type: uint256},
		},
	)
	ValidatePaymasterUserOpSelector = hexutil.Encode(ValidatePaymasterUserOpMethod.ID)
)

Functions

func DecodeValidatePaymasterUserOpOutput

func DecodeValidatePaymasterUserOpOutput(ret any) (*validatePaymasterUserOpOutput, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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