stellar

package
v0.0.0-...-672f35d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 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
	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

type Status

type Status string

Status describes status of account processing

const (
	StatusCreatingAccount    Status = "creating_account"
	StatusWaitingForSigner   Status = "waiting_for_signer"
	StatusConfiguringAccount Status = "configuring_account"
	StatusRemovingSigner     Status = "removing_signer"
)

Jump to

Keyboard shortcuts

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