controller

package
v0.0.1-rc8 Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// JSON-RPC Standard Errors
	ParseErrorCode     = -32700
	InvalidRequestCode = -32600
	MethodNotFoundCode = -32601
	InvalidParamsCode  = -32602

	// Custom Paymaster Errors
	UnauthorizedErrorCode     = -32000
	UnsupportedChainIDCode    = -32001
	UnsupportedEntryPointCode = -32002
	PaymasterDataGenErrorCode = -32003
	UnsupportedTokenErrorCode = -32004
)

Constants for RPC Errors (as per JSON-RPC 2.0 spec and EIP-1474)

Variables

This section is empty.

Functions

func InitAPI

func InitAPI(cfg *config.Config)

InitAPI init the api controller

Types

type PaymasterController

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

PaymasterController the controller of paymaster

var PaymasterCtl *PaymasterController

PaymasterCtl the paymaster controller

func NewPaymasterController

func NewPaymasterController(cfg *config.Config) *PaymasterController

NewPaymasterController creates and initializes a new PaymasterController.

func (*PaymasterController) Paymaster

func (pc *PaymasterController) Paymaster(c *gin.Context)

Paymaster the handler of paymaster

Jump to

Keyboard shortcuts

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