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 ¶
Click to show internal directories.
Click to hide internal directories.