Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountConfigurator ¶
type AccountConfigurator struct { Horizon horizon.ClientInterface `inject:""` NetworkPassphrase string IssuerPublicKey string DistributionPublicKey string SignerSecretKey string LockUnixTimestamp uint64 NeedsAuthorize bool TokenAssetCode string TokenPriceBTC string TokenPriceETH string StartingBalance string OnAccountCreated func(destination string) OnExchanged func(destination string) OnExchangedTimelocked func(destination, transaction string) // contains filtered or unexported fields }
AccountConfigurator is responsible for configuring new Stellar accounts that participate in ICO.
func (*AccountConfigurator) ConfigureAccount ¶
func (ac *AccountConfigurator) ConfigureAccount(destination, assetCode, amount string)
ConfigureAccount configures a new account that participated in ICO. * First it creates a new account. * Once a signer is replaced on the account, it creates trust lines and exchanges assets.
func (*AccountConfigurator) Start ¶
func (ac *AccountConfigurator) Start() error
Click to show internal directories.
Click to hide internal directories.