# Functions
AmountStringAsFloat converts a string amount to a float amount.
Asset2Asset converts a horizon.Asset to a txnbuild.Asset.
Asset2Asset2 converts a txnbuild.Asset to a horizon.Asset.
Asset2CodeString extracts the code out of a horizon.Asset.
Asset2String converts a horizon.Asset to a string representation, using "native" for the native XLM.
AssetOnlyCodeEquals only checks the type and code of these assets, i.e.
AssetsEqual is a convenience method to compare horizon.Asset and base.Asset because they are not type aliased.
CheckConfigError checks configs for errors, crashes app if there's an error.
CheckedFloatPtr returns "<nil>" if the object is nil, otherwise calls the String() function on the object.
CheckedString returns "<nil>" if the object is nil, otherwise calls the String() function on the object.
CheckFetchFloat tries to fetch and then cast the value for the provided key.
Dedupe removes duplicates from the list.
FilterOffers filters out the offers into selling and buying, where sellOffers sells the sellAsset and buyOffers buys the sellAsset.
GetCreditBalance is a drop-in for the function in the GoSDK, we want it to return nil if there's no balance (as opposed to "0").
GetInvertedPrice gets the inverted price from an offer.
GetJSON is a helper method to get json from a URL.
GetPrice gets the price from an offer.
Hide returns an empty string.
IsSelling helper method.
LoadAllOffers loads all the offers for a given account.
LogConfig logs out the config file.
Offer2TxnBuildSellOffer converts an hProtocol.Offer to a txnbuild.ManageSellOffer.
ParseAsset returns a horizon asset a string.
ParseMaybeFloat parses an optional string value as a float pointer.
ParseNetwork checks the horizon url and returns the test network if it contains "test".
ParseOfferAmount is a convenience method to parse an offer amount.
ParseSecret returns the address from the secret.
PriceAsFloat converts a string price to a float price.
PrintErrorHintf shows a helpful hint for the user when there is an error (likely recoverable).
SecretKey2PublicKey converts a secret key to a public key.
Shuffle any string slice.
SignWithSeed modifies the passed in tx with the signatures of the passed in seeds.
String2Asset converts a code:issuer to a horizon.Asset.
StringSet converts a string slice to a map of string to bool values to represent a Set.
StructString is a helper method that serizlies configs; the transform keys are always flattened, i.e specify the key meant to be on an inner object at a top level key on the transform map.
# Constants
No description provided by the author
Native is the string representing the type for the native lumen asset.
SdexPrecision defines the number of decimals used in SDEX.
# Variables
NativeAsset represents the native asset.
# Type aliases
ByPrice implements sort.Interface for []horizon.Offer based on the price.