Documentation ¶
Index ¶
- Variables
- func BuildTransaction(source string, signers []string, sequence uint64, ...) (string, error)
- func DecodeFromBase64(encodedXdr string) (*build.TransactionEnvelopeBuilder, error)
- func InitHorizon(DB *dbc.DB, Cnf *config.Config) error
- func SubmitTransaction(o *m.UserOrder, transaction string, log *logrus.Entry, saveOrderTxLog bool) (hash string, resultString string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Horizon server Horizon *horizon.Client )
Functions ¶
func BuildTransaction ¶
func BuildTransaction(source string, signers []string, sequence uint64, mutators ...build.TransactionMutator) (string, error)
BuildTransaction creates a stellar transaction we use AutoSequence on the source, which is the user account mostly signer is the seed of the source
func DecodeFromBase64 ¶
func DecodeFromBase64(encodedXdr string) (*build.TransactionEnvelopeBuilder, error)
DecodeFromBase64 decodes the transaction from a base64 string into a TransactionEnvelopeBuilder
func InitHorizon ¶
InitHorizon initializes the horizon configuration
func SubmitTransaction ¶
func SubmitTransaction(o *m.UserOrder, transaction string, log *logrus.Entry, saveOrderTxLog bool) (hash string, resultString string, err error)
SubmitTransaction submits the transaction to the network and returns the hash if successfull if saveOrderTxLog is set, we will save a log in OrderTransactions, if not, we will return the result as a string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.