GCTCLI: Destination var/arg check usage fixes (#421)

* GCTCLI param and linter fixes

* Linter fixes

* Add more basic validation and address codelingo nits

* Add arg number support to cancelOrder and more validity checks
This commit is contained in:
Adrian Gallagher
2020-01-29 16:27:06 +11:00
committed by GitHub
parent 5ac5ec8fc1
commit 01e2ab1499
28 changed files with 182 additions and 95 deletions

View File

@@ -11,15 +11,17 @@ const (
ErrStrAmountMustBeGreaterThanZero = "amount must be greater than 0"
// ErrStrAddressisInvalid message to return when address is invalid for crypto request
ErrStrAddressisInvalid = "address is not valid"
// ErrStrAddressNotSet message to returh when address is empty
// ErrStrAddressNotSet message to return when address is empty
ErrStrAddressNotSet = "address cannot be empty"
// ErrStrNoCurrencySet message to return when no currency is set
ErrStrNoCurrencySet = "currency not set"
)
var (
// ErrRequestCannotBeNil message to return when a request is nil
ErrRequestCannotBeNil = errors.New("request cannot be nil")
ErrInvalidRequest = errors.New("invalid request type")
// ErrInvalidRequest message to return when a request is invalid
ErrInvalidRequest = errors.New("invalid request type")
)
// GenericInfo stores genric withdraw request info