supply

package
v0.0.0-...-ad9d088 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller definition.

func NewController

func NewController(serv *supply.Service, logger *zap.Logger) *Controller

NewController create a new controler.

func (*Controller) GetCirculatingSupply

func (c *Controller) GetCirculatingSupply(ctx *fiber.Ctx) error

GetCirculatingSupply godoc @Description Get W token circulation supply. @Tags wormholescan @ID circulating-supply @Success 200 @Router /api/v1/supply/circulating [get]

func (*Controller) GetSupplyInfo

func (c *Controller) GetSupplyInfo(ctx *fiber.Ctx) error

GetSupplyInfo godoc @Description Get W token supply data (circulation and total supply). @Tags wormholescan @ID supply-info @Success 200 {object} SupplyInfoResponse @Router /api/v1/supply [get]

func (*Controller) GetTotalSupply

func (c *Controller) GetTotalSupply(ctx *fiber.Ctx) error

GetTotalSupply godoc @Description Get W token total supply. @Tags wormholescan @ID total-supply @Success 200 @Router /api/v1/supply/total [get]

type SupplyInfoResponse

type SupplyInfoResponse struct {
	CirculatingSupply string `json:"circulating_supply"`
	TotalSupply       string `json:"total_supply"`
}

Jump to

Keyboard shortcuts

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