-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patherrorMap.js
More file actions
65 lines (65 loc) · 1.8 KB
/
Copy patherrorMap.js
File metadata and controls
65 lines (65 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
export const errorMap = {
0: 'succeed',
101: 'noDevice',
102: 'deviceComm',
103: 'deviceConnectFailed',
104: 'deviceDeriveLargerThanN',
105: 'deviceProtocol',
106: 'handShake',
107: 'needPressKey',
108: 'userCancel',
109: 'pinError',
110: 'operationTimeout',
111: 'deviceNotInit',
114: 'deviceNotConnected',
115: 'deviceNeedReauthenticate',
116: 'deviceConditionNotSatisfied',
117: 'pinIsLocked',
118: 'deviceLowBattery',
119: 'deviceDisplayFailed',
201: 'databaseOpenFailed',
202: 'databaseExecFailed',
301: 'lastAccountNoTransaction',
302: 'accountHasTransactions',
400: "networkConnectTimeout",
401: 'networkUnavailable',
402: 'networkNotInitialized',
403: 'networkProviderError',
404: 'networkTxNotFound',
405: 'networkFeeTooSmall',
406: 'networkTooManyPendingTx',
407: 'networkValueTooSmall',
408: 'networkGasTooLow',
409: 'networkGasPriceTooLow',
410: 'refundRequestNotFound',
411: 'ramNotEnough',
412: 'networkNotEnough',
413: 'networkOveruse',
414: 'cpuNotEnough',
415: 'cpuOveruse',
450: 'networkEosTokenNotFound',
451: 'networkEosTxExpired',
452: 'networkEosUnsatisfiedAuth',
501: 'balanceNotEnough',
502: 'tooManyOutputs',
601: 'invalidAddress',
602: 'noAddressCheckSum',
603: 'invalidAddressChecksum',
604: 'valueIsDecimal',
605: 'invalidDataNotHex',
606:'valueIsNotDecimal',
607: 'invalidParams',
608: 'permissionNotFound', // for eos
609: 'permissionNoNeedToConfirmed', // for eos
610: 'invalidPrivateKey', // for eos
611: 'multipleAccounts', // for eos
612: 'keyNotMatch', // for eos,
613: 'keyIsExist', // for eos
701: 'offlineModeNotAllowed',
702: 'offlineModeUnnecessary',
8001: 'transactionTooLong',
8005: 'accountNotExist',
10000: 'notImplemented',
10001: 'unknown',
10002: 'coinNotSupported'
}