Documentation ¶
Index ¶
- type Configurator
- func (c *Configurator) CreateAccount(account string, order *m.UserOrder) error
- func (c *Configurator) ExecuteTransaction(o *m.UserOrder, tx string) (string, error)
- func (c *Configurator) GetAccount(account string) (horizon.Account, bool, error)
- func (c *Configurator) GetPaymentTransaction(o *m.UserOrder) (string, int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurator ¶
type Configurator struct { DB *db.DB ChannelMgr *channel.Manager // contains filtered or unexported fields }
Configurator is responsible for configuring new Stellar accounts that participate in ICO.
func NewAccountConfigurator ¶
NewAccountConfigurator initialises the account configurator
func (*Configurator) CreateAccount ¶
func (c *Configurator) CreateAccount(account string, order *m.UserOrder) error
CreateAccount create the user stellar account it uses the configured distribution account as source and uses autosequence of distribution account
func (*Configurator) ExecuteTransaction ¶
ExecuteTransaction checks the transaction, signs it and executes it
func (*Configurator) GetAccount ¶
GetAccount returns the horizon-account for the given address or false if it does not exist
func (*Configurator) GetPaymentTransaction ¶
GetPaymentTransaction creates the transaction for a valid payment returns the transaction or an error code the transaction is signed with the pre-signer and must be signed againe with the postsigner on execute