Documentation
¶
Index ¶
Constants ¶
View Source
const FriendbotAddress = "GAIH3ULLFQ4DGSECF2AR555KZ4KNDGEKN4AFI4SU2M7B43MGK3QJZNSR"
FriendbotAddress is the last known public address for the test network friendbot.
Variables ¶
This section is empty.
Functions ¶
func GetTestLumens ¶
GetTestLumens will use the friendbot to get some lumens into kp's account. If not record or live, it is a no-op.
func RandomAssetCode ¶
func RandomAssetCode() string
Types ¶
type Config ¶
type Config struct { AliceSeed string BobSeed string CharlieSeed string RebeccaSeed string IssuerSeed string DistributorSeed string AssetCode string }
Config contains the account seeds for the test users, and any other random data that might be needed (like AssetCode).
type Helper ¶
type Helper struct { Config *Config Alice *keypair.Full Bob *keypair.Full Charlie *keypair.Full Rebecca *keypair.Full Issuer *keypair.Full Distributor *keypair.Full }
Helper makes managing the test users and state easier.
func Setup ¶
Setup is the primary entry point for testclient. It creates a Helper and the horizon client.
Click to show internal directories.
Click to hide internal directories.