controller

package
v0.0.4-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package controller provides the admin API controller for managing policies and paymaster data.

Package controller provides the main controller for handling JSON-RPC requests in the Scroll paymaster service.

Package controller provides the ERC-7677 paymaster controller for handling JSON-RPC requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAPI

func InitAPI(cfg *config.Config, db *gorm.DB)

InitAPI init api handler

func UnifiedHandler

func UnifiedHandler(c *gin.Context)

UnifiedHandler handles all JSON-RPC requests

Types

type AdminController

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

AdminController handles admin API requests

func NewAdminController

func NewAdminController(cfg *config.Config, db *gorm.DB) *AdminController

NewAdminController creates a new AdminController

type PaymasterController

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

PaymasterController the controller of paymaster

func NewPaymasterController

func NewPaymasterController(cfg *config.Config, db *gorm.DB) *PaymasterController

NewPaymasterController creates and initializes a new PaymasterController.

Jump to

Keyboard shortcuts

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