Release 2.0.0

This commit is contained in:
Santiago Lezica
2021-01-29 18:51:08 -03:00
parent 8107c4478b
commit cef49eff22
209 changed files with 70157 additions and 926 deletions

22
vendor/github.com/muun/libwallet/errors.go generated vendored Normal file
View File

@@ -0,0 +1,22 @@
package libwallet
const (
ErrUnknown = 1
ErrInvalidURI = 2
ErrNetwork = 3
ErrInvalidPrivateKey = 4
ErrInvalidDerivationPath = 5
ErrInvalidInvoice = 6
)
func ErrorCode(err error) int64 {
type coder interface {
Code() int64
}
switch e := err.(type) {
case coder:
return e.Code()
default:
return ErrUnknown
}
}