handlers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInsufficienciesAmount = errors.New("amount is insufficient to pay tx fee")

Functions

func BuildPermitHash

func BuildPermitHash(w http.ResponseWriter, r *http.Request)

func CreateAirdrop

func CreateAirdrop(w http.ResponseWriter, r *http.Request)

func DBCloneMiddleware

func DBCloneMiddleware(db *pgdb.DB) func(http.Handler) http.Handler

DBCloneMiddleware is designed to clone DB session on each request. You must put all new DB handlers here instead of ape.CtxMiddleware, unless you have a reason to do otherwise.

func GetAirdrop

func GetAirdrop(w http.ResponseWriter, r *http.Request)

func GetAirdropParams

func GetAirdropParams(w http.ResponseWriter, r *http.Request)

func GetBalance added in v0.2.1

func GetBalance(w http.ResponseWriter, r *http.Request)

func GetTokenDetails added in v0.3.0

func GetTokenDetails(w http.ResponseWriter, r *http.Request)

func GetTransferParams

func GetTransferParams(w http.ResponseWriter, r *http.Request)

func SendTransfer

func SendTransfer(w http.ResponseWriter, r *http.Request)

Types

type TransferTxParams

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

Jump to

Keyboard shortcuts

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