approve

package
v0.0.0-...-32dec47 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRoutes

func ApplyRoutes(r *gin.RouterGroup)

ApplyRoutes applies router to gin Router

func SendSuccessResponse

func SendSuccessResponse(c *gin.Context, hash string, userId string)

Types

type ApproveRequest

type ApproveRequest struct {
	UserId          string `json:"userId" binding:"required"`
	ToAddress       string `json:"toAddress" binding:"required"`
	ContractAddress string `json:"contractAddress" binding:"required"`
	TokenId         int64  `json:"tokenId" binding:"required"`
}

type TransferPayload

type TransferPayload struct {
	TrasactionHash string
	Message        string
}

Jump to

Keyboard shortcuts

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