bitflowhelper

package
v1.4.549 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DeployerAddress = "SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M"

Variables

View Source
var StableSwapContracts = [...]string{
	"stableswap-stx-ststx-v-1-2",
	"stableswap-usda-susdt-v-1-2",
	"stableswap-aeusdc-susdt-v-1-2",
	"stableswap-usda-aeusdc-v-1-2",
	"stableswap-usda-aeusdc-v-1-4",
	"stableswap-abtc-xbtc-v-1-2",
}

Functions

This section is empty.

Types

type BitflowClient

type BitflowClient struct {
	// contains filtered or unexported fields
}

func NewBitflowClient

func NewBitflowClient(apiHost, apiKey string, logger *logrus.Entry, isDebug bool) *BitflowClient

func (*BitflowClient) GetAllTokens

func (c *BitflowClient) GetAllTokens() ([]TokenMetadata, error)

type GetAllTokensResponse

type GetAllTokensResponse struct {
	Tokens []TokenMetadata `json:"tokens"`
}

type TokenMetadata

type TokenMetadata struct {
	TokenID       string `json:"token-id"`
	Name          string `json:"name"`
	Symbol        string `json:"symbol"`
	TokenDecimals uint   `json:"tokenDecimals"`
	TokenContract string `json:"tokenContract"`
}

Jump to

Keyboard shortcuts

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