Documentation
¶
Index ¶
Constants ¶
View Source
const ( DeployerAddress = "SP1Y5YSTAHZ88XYK1VPDH24GY0HPX5J4JECTMY4A1" DeployerAddressV2 = "SP20X3DC5R091J8B6YPQT638J8NR1W83KN6TN5BJY" VelarCoreAddress = DeployerAddress + ".univ2-core" VelarURL = "https://api.velar.co" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SwapEvent ¶ added in v1.4.569
type SwapEvent struct { TxID string TickerID string AmountIn *big.Int AmountOut *big.Int TokenIn string TokenOut string Timestamp int }
func DecodeSwapEvents ¶ added in v1.4.569
func DecodeSwapEvents(tx stacks.Transaction) ([]SwapEvent, error)
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.