handler

package
v0.0.0-...-1567bb8 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorUnsupportedPlatform = errors.New("unsupported platform")

Functions

func New

func New(database *pgx.Conn, ethereumConfig *ethereum.Config) (*internal, error)

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

type GetPoolRequest

type GetPoolRequest struct {
	Network         string `param:"network" validate:"network"`
	Platform        string `param:"platform"`
	ContractAddress string `param:"contract_address" validate:"ethereum_address"`
}

type GetPoolResponse

type GetPoolResponse struct {
	ContractAddress common.MixedcaseAddress `json:"contract_address"`
	TokenLeft       *model.Token            `json:"token_left"`
	TokenRight      *model.Token            `json:"token_right"`
	Fee             string                  `json:"fee"`
	Metrics         []model.PoolMetric      `json:"metrics"`
}

Jump to

Keyboard shortcuts

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