stellar

package
v0.0.0-...-3597e88 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

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