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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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