governor

package
v0.0.0-...-efbd42f Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package governor handle the request of governor data from governor endpoint defined in the api.

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 *governor.Service, logger *zap.Logger) *Controller

NewController create a new controler.

func (*Controller) FindGovernorConfigurationByPhylaxAddress

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

FindGovernorConfigurationByPhylaxAddress godoc @Description Returns governor configuration for a given phylax. @Tags deltaswapscan @ID governor-config-by-phylax-address @Success 200 {object} response.Response[governor.GovConfig] @Failure 400 @Failure 500 @Router /api/v1/governor/config/:phylax_address [get]

func (*Controller) FindGovernorConfigurations

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

FindGovernorConfigurations godoc @Description Returns governor configuration for all phylaxs. @Tags deltaswapscan @ID governor-config @Param page query integer false "Page number." @Param pageSize query integer false "Number of elements per page." @Success 200 {object} response.Response[governor.GovConfig] @Failure 400 @Failure 500 @Router /api/v1/governor/config [get]

func (*Controller) FindGovernorStatus

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

FindGovernorStatus godoc @Description Returns the governor status for all phylaxs. @Tags deltaswapscan @ID governor-status @Param page query integer false "Page number." @Param pageSize query integer false "Number of elements per page." @Success 200 {object} response.Response[[]governor.GovStatus] @Failure 400 @Failure 500 @Router /api/v1/governor/status [get]

func (*Controller) FindGovernorStatusByPhylaxAddress

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

FindGovernorStatusByPhylaxAddress godoc @Description Returns the governor status for a given phylax. @Tags deltaswapscan @ID governor-status-by-phylax-address @Param page query integer false "Page number." @Param pageSize query integer false "Number of elements per page." @Success 200 {object} response.Response[governor.GovStatus] @Failure 400 @Failure 500 @Router /api/v1/governor/status/:phylax_address [get]

func (*Controller) FindNotionalLimit

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

FindNotionalLimit godoc @Description Returns the detailed notional limit for all blockchains. @Tags deltaswapscan @ID governor-notional-limit-detail @Param page query integer false "Page number." @Param pageSize query integer false "Number of elements per page." @Success 200 {object} response.Response[[]governor.NotionalLimitDetail] @Failure 400 @Failure 500 @Router /api/v1/governor/notional/limit [get]

func (*Controller) GetAvailableNotional

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

GetAvailableNotional godoc @Description Returns the amount of notional value available for each blockchain. @Tags deltaswapscan @ID governor-notional-available @Param page query integer false "Page number." @Param pageSize query integer false "Number of elements per page." @Param sortOrder query string false "Sort results in ascending or descending order." Enums(ASC, DESC) @Success 200 {object} response.Response[[]governor.NotionalAvailable] @Failure 400 @Failure 500 @Router /api/v1/governor/notional/available [get]

func (*Controller) GetAvailableNotionalByChainID

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

GetAvailableNotionalByChainID godoc @Description Returns the amount of notional value available for a given blockchain. @Tags deltaswapscan @ID governor-notional-available-by-chain @Param page query integer false "Page number." @Param pageSize query integer false "Number of elements per page." @Success 200 {object} response.Response[[]governor.NotionalAvailableDetail] @Failure 400 @Failure 500 @Router /api/v1/governor/notional/available/:chain [get]

func (*Controller) GetEnqueuedVaas

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

GetEnqueuedVaas godoc @Description Returns enqueued VAAs for each blockchain. @Tags deltaswapscan @ID governor-enqueued-vaas @Param page query integer false "Page number." @Param pageSize query integer false "Number of elements per page." @Param sortOrder query string false "Sort results in ascending or descending order." Enums(ASC, DESC) @Success 200 {object} response.Response[[]governor.EnqueuedVaas] @Failure 400 @Failure 500 @Router /api/v1/governor/enqueued_vaas/ [get]

func (*Controller) GetEnqueuedVaasByChainID

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

GetEnqueuedVaasByChainID godoc @Description Returns all enqueued VAAs for a given blockchain. @Tags deltaswapscan @ID phylaxs-enqueued-vaas-by-chain @Param page query integer false "Page number." @Param pageSize query integer false "Number of elements per page." @Param sortOrder query string false "Sort results in ascending or descending order." Enums(ASC, DESC) @Success 200 {object} response.Response[[]governor.EnqueuedVaaDetail] @Failure 400 @Failure 500 @Router /api/v1/governor/enqueued_vaas/:chain [get]

func (*Controller) GetGovernorLimit

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

GetGovernorLimit godoc @Description Returns the governor limit for all blockchains. @Tags deltaswapscan @ID governor-notional-limit @Param page query integer false "Page number." @Param pageSize query integer false "Number of elements per page." @Success 200 {object} response.Response[[]governor.GovernorLimit] @Failure 400 @Failure 500 @Router /api/v1/governor/limit [get]

func (*Controller) GetMaxNotionalAvailableByChainID

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

GetMaxNotionalAvailableByChainID godoc @Description Returns the maximum amount of notional value available for a given blockchain. @Tags deltaswapscan @ID governor-max-notional-available-by-chain @Success 200 {object} response.Response[governor.MaxNotionalAvailableRecord] @Failure 400 @Failure 500 @Router /api/v1/governor/notional/max_available/:chain [get]

func (*Controller) GetNotionalLimitByChainID

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

GetNotionalLimitByChainID godoc @Description Returns the detailed notional limit available for a given blockchain. @Tags deltaswapscan @ID governor-notional-limit-detail-by-chain @Param page query integer false "Page number." @Param pageSize query integer false "Number of elements per page." @Success 200 {object} response.Response[[]governor.NotionalLimitDetail] @Failure 400 @Failure 500 @Router /api/v1/governor/notional/limit/:chain [get]

Jump to

Keyboard shortcuts

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