Versions in this module Expand all Collapse all v2 v2.0.1 Jun 3, 2020 Changes in this version + var ErrBadSequence = &FailedTransactionError + var ErrCanceled = errors.New("canceled") + var ErrNoAccount = &FailedTransactionError + var ErrNoResults = errors.New("No result found") + var ErrTimeout = errors.New("timeout") + type FailedTransactionError struct + ResultXDR string + func (err *FailedTransactionError) Error() string + func (fte *FailedTransactionError) OperationResultCodes() (result []string, err error) + func (fte *FailedTransactionError) Result() (result xdr.TransactionResult, err error) + func (fte *FailedTransactionError) TransactionResultCode(transactionHash string) (result string, err error) + type Listener chan<- Result + type MockResultProvider struct + ResultForInnerHash map[string]Result + Results []Result + func (results *MockResultProvider) ResultByHash(ctx context.Context, hash string) Result + type MockSequenceProvider struct + func (o *MockSequenceProvider) GetSequenceNumbers(addresses []string) (map[string]uint64, error) + type MockSubmitter struct + R SubmissionResult + WasSubmittedTo bool + func (sub *MockSubmitter) Submit(ctx context.Context, env string) SubmissionResult + type OpenSubmissionList interface + Add func(context.Context, string, Listener) error + Clean func(context.Context, time.Duration) (int, error) + Finish func(context.Context, string, Result) error + Pending func(context.Context) []string + func NewDefaultSubmissionList() OpenSubmissionList + type Result struct + Err error + Transaction history.Transaction + type ResultProvider interface + ResultByHash func(context.Context, string) Result + type SequenceProvider interface + GetSequenceNumbers func(addresses []string) (map[string]uint64, error) + type SubmissionResult struct + Duration time.Duration + Err error + func (s SubmissionResult) IsBadSeq() (bool, error) + type Submitter interface + Submit func(context.Context, string) SubmissionResult + func NewDefaultSubmitter(h *http.Client, url string) Submitter + type System struct + Log *log.Entry + Metrics struct{ ... } + Pending OpenSubmissionList + Results ResultProvider + Sequences SequenceProvider + SubmissionQueue *sequence.Manager + SubmissionTimeout time.Duration + Submitter Submitter + func (sys *System) Init() + func (sys *System) Submit(ctx context.Context, rawTx string, envelope xdr.TransactionEnvelope, ...) (result <-chan Result) + func (sys *System) Tick(ctx context.Context)