forked from iotaledger/goshimmer
/
errors.go
24 lines (22 loc) · 1.42 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package faucet
import (
"github.com/cockroachdb/errors"
)
var (
// ErrNotEnoughFundingOutputs if there are not enough funding outputs in the faucet.
ErrNotEnoughFundingOutputs = errors.New("not enough funding outputs to complete the request")
// ErrMissingRemainderOutput is returned if the remainder output can not be found.
ErrMissingRemainderOutput = errors.New("can't find faucet remainder output")
// ErrNotEnoughFunds is returned when not enough funds are left in the faucet.
ErrNotEnoughFunds = errors.New("not enough funds in the faucet")
// ErrConfirmationTimeoutExpired is returned when a faucet transaction was not confirmed in expected time.
ErrConfirmationTimeoutExpired = errors.New("tx confirmation time expired")
// ErrFundingCanceled is returned when a faucet funding is canceled.
ErrFundingCanceled = errors.New("tx funding canceled")
// ErrSupplyPreparationFailed is returned when a supply transaction preparation failed.
ErrSupplyPreparationFailed = errors.New("supply transaction preparation failed")
// ErrSplittingFundsFailed is returned when none of funding outputs has been confirmed during funds preparation.
ErrSplittingFundsFailed = errors.New("none of funding outputs has been confirmed during funds preparation")
// ErrNotEnoughSupplyOutputs if there are not enough supply outputs in the faucet.
ErrNotEnoughSupplyOutputs = errors.New("not enough supply outputs to prepare more funds in the faucet")
)