gasbank

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler handles Gas Bank API requests

func NewHandler

func NewHandler(gasBankService *gasbank.Service, logger *logger.Logger) *Handler

NewHandler creates a new gas bank handler

func (*Handler) DepositGas

func (h *Handler) DepositGas(c *gin.Context)

DepositGas handles gas deposits

func (*Handler) EstimateGas

func (h *Handler) EstimateGas(c *gin.Context)

EstimateGas estimates gas for an operation

func (*Handler) GetAccount

func (h *Handler) GetAccount(c *gin.Context)

GetAccount returns a specific gas account

func (*Handler) GetAccountTransactions

func (h *Handler) GetAccountTransactions(c *gin.Context)

GetAccountTransactions returns transactions for a specific account

func (*Handler) GetAccounts

func (h *Handler) GetAccounts(c *gin.Context)

GetAccounts returns all gas accounts for a user

func (*Handler) GetTransactions

func (h *Handler) GetTransactions(c *gin.Context)

GetTransactions returns all gas transactions for a user

func (*Handler) Register

func (h *Handler) Register(router *gin.RouterGroup)

Register registers the gas bank routes

func (*Handler) WithdrawGas

func (h *Handler) WithdrawGas(c *gin.Context)

WithdrawGas handles gas withdrawals

Jump to

Keyboard shortcuts

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