stellar

package
v0.0.0-...-798156f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountConfigurator

type AccountConfigurator struct {
	Horizon           frontier.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 DigitalBits 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL