Documentation ¶
Index ¶
Constants ¶
View Source
const ( DeployerAddress = "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1" VelarCoreAddress = DeployerAddress + ".univ2-core" VelarURL = "https://api.velar.co" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SwapInfo ¶
type SwapInfo struct { AmountIn *big.Int AmountOut *big.Int TokenIn string TokenOut string Symbol string LpToken string Token0 string Token1 string ProtocolFee Fee SwapFee Fee }
func ExtractSwapInfo ¶
type TokenMetadata ¶
type VelarClient ¶
type VelarClient struct {
// contains filtered or unexported fields
}
func NewVelarClient ¶
func NewVelarClient(logger *logrus.Entry, isDebug bool) *VelarClient
func (*VelarClient) GetAllTickers ¶
func (c *VelarClient) GetAllTickers() ([]Ticker, error)
func (*VelarClient) GetAllTokens ¶
func (c *VelarClient) GetAllTokens() ([]TokenMetadata, error)
Click to show internal directories.
Click to hide internal directories.