Documentation ¶
Index ¶
- Variables
- func Exchange(recipientPK string, recipientSeed string, convAmount float64) error
- func GetAnchorUSD(recpSeed string, amountUSD float64) (string, error)
- func InitStableCoin() (string, string, error)
- func ListenForPayments()
- func SetConsts(code string, pubkey string, seed string, seedfile string, trustLimit float64, ...)
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 GetAnchorUSD ¶
GetAnchorUSD exchanges XLM for AnchorUSD
func InitStableCoin ¶
InitStableCoin starts the stablecoin daemon
func ListenForPayments ¶
func ListenForPayments()
ListenForPayments listens to all payments to/from the stablecoin address
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.