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 SignerSecretKey string NeedsAuthorize bool TokenAssetCode string StartingBalance string OnAccountCreated func(destination string) OnAccountCredited func(destination string, assetCode string, amount 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 trusline exists, it credits it with received number of ETH or BTC.
func (*AccountConfigurator) Start ¶
func (ac *AccountConfigurator) Start() error
Click to show internal directories.
Click to hide internal directories.