stablecoin

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: GPL-2.0, GPL-3.0 Imports: 15 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// StablecoinCode is the code of the test stablecoin
	StablecoinCode string
	// StablecoinPublicKey is the publickey of the stablecoin
	StablecoinPublicKey string
	// StablecoinSeed is the seed of the stablecoin
	StablecoinSeed string
	// StableCoinSeedFile denotes the file location of the stablecoin's seed file
	StableCoinSeedFile string
	// StablecoinTrustLimit denotes the trust limit of the stablecoin
	StablecoinTrustLimit float64
	// AnchorUSDCode is the code of Anchor's stablecoin
	AnchorUSDCode string
	// AnchorUSDAddress denotes the address of Anchor's stablecoin
	AnchorUSDAddress string
	// AnchorUSDTrustLimit is the default trust limit for trusting Anchor
	AnchorUSDTrustLimit float64
	// Mainnet is a boolena value that should be set to switch to the mainnet Anchor API
	Mainnet bool
)

Functions

func Exchange

func Exchange(recipientPK string, recipientSeed string, convAmount float64) error

Exchange exchanges xlm for STABLEUSD

func GetAnchorUSD

func GetAnchorUSD(recpSeed string, amountUSD float64) (string, error)

GetAnchorUSD exchanges XLM for AnchorUSD

func InitStableCoin

func InitStableCoin() (string, string, error)

InitStableCoin starts the stablecoin daemon

func ListenForPayments

func ListenForPayments()

ListenForPayments listens to all payments to/from the stablecoin address

func SetConsts

func SetConsts(code string, pubkey string, seed string, seedfile string, trustLimit float64,
	anchorUSDCode string, anchorUSDAddress string, anchorUSDTrustLimit float64, mainnet bool)

SetConsts sets stablecoin consts

Types

This section is empty.

Jump to

Keyboard shortcuts

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