@ercworldio/blockchain-shared 1.0.1-dev.9 → 1.0.2-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/build/chains/networks_dev.json +50 -8
- package/build/chains/networks_prod-bu.json +98 -7
- package/build/chains/networks_prod-dz.json +194 -12
- package/build/chains/networks_stg-bu.json +14 -7
- package/build/chains/networks_stg-dz.json +60 -20
- package/build/errors/AdminErrors.d.ts +5 -9
- package/build/errors/AdminErrors.d.ts.map +1 -1
- package/build/errors/AdminErrors.js +49 -24
- package/build/errors/AlchemyErrors.d.ts +14 -18
- package/build/errors/AlchemyErrors.d.ts.map +1 -1
- package/build/errors/AlchemyErrors.js +76 -49
- package/build/errors/BalanceErrors.d.ts +3 -7
- package/build/errors/BalanceErrors.d.ts.map +1 -1
- package/build/errors/BalanceErrors.js +47 -26
- package/build/errors/DatabaseErrors.d.ts +5 -9
- package/build/errors/DatabaseErrors.d.ts.map +1 -1
- package/build/errors/DatabaseErrors.js +49 -28
- package/build/errors/TransactionsErrors.d.ts +15 -20
- package/build/errors/TransactionsErrors.d.ts.map +1 -1
- package/build/errors/TransactionsErrors.js +81 -66
- package/build/errors/VoltageErrors.d.ts +8 -13
- package/build/errors/VoltageErrors.d.ts.map +1 -1
- package/build/errors/VoltageErrors.js +58 -45
- package/build/errors/WalletErrors.d.ts +6 -12
- package/build/errors/WalletErrors.d.ts.map +1 -1
- package/build/errors/WalletErrors.js +48 -37
- package/build/errors/errors.d.ts +137 -27
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +230 -66
- package/build/errors/index.d.ts +37 -36
- package/build/errors/index.d.ts.map +1 -1
- package/build/services/AlchemyWebhookAddressManager.d.ts.map +1 -1
- package/build/services/AlchemyWebhookAddressManager.js +3 -1
- package/build/services/quicknode-notifications/QnWebhookAddressManager.d.ts +1 -2
- package/build/services/quicknode-notifications/QnWebhookAddressManager.d.ts.map +1 -1
- package/build/services/quicknode-notifications/QnWebhookAddressManager.js +25 -42
- package/build/services/quicknode-notifications/SetupNotifications.d.ts +1 -0
- package/build/services/quicknode-notifications/SetupNotifications.d.ts.map +1 -1
- package/build/services/quicknode-notifications/SetupNotifications.js +29 -2
- package/build/services/types/chain_manager.d.ts +6 -0
- package/build/services/types/chain_manager.d.ts.map +1 -1
- package/build/utils/Logger.d.ts.map +1 -1
- package/build/utils/Logger.js +13 -2
- package/build/utils/solana.d.ts +2 -1
- package/build/utils/solana.d.ts.map +1 -1
- package/build/utils/solana.js +28 -3
- package/package.json +1 -1
package/build/errors/errors.js
CHANGED
|
@@ -1,5 +1,152 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ErrorCodes = exports.ErrorMessages = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Centralized static error message strings.
|
|
6
|
+
* Keys mirror ErrorCodes — subclasses reference these instead of using inline string literals.
|
|
7
|
+
*/
|
|
8
|
+
exports.ErrorMessages = {
|
|
9
|
+
// BaseErrors
|
|
10
|
+
INTERNAL_SERVER: "Internal Server Error",
|
|
11
|
+
UNAUTHORIZED: "You are not authorized to perform this action",
|
|
12
|
+
// 400
|
|
13
|
+
REQUIRE_PARAMETER: "A required parameter is missing",
|
|
14
|
+
USER_NOT_FOUND: "User not found",
|
|
15
|
+
// 400
|
|
16
|
+
INVALID_VALUE: "One or more values provided are invalid",
|
|
17
|
+
// 400
|
|
18
|
+
INVALID_TOKEN_FORMAT: "Invalid authorization format. Expected: Bearer <token>",
|
|
19
|
+
// 400
|
|
20
|
+
RENEW_NOT_ALLOWED: "Your deposit address is not yet eligible for renewal",
|
|
21
|
+
// 400
|
|
22
|
+
VALIDATION_ERROR: "Request validation failed",
|
|
23
|
+
// 400
|
|
24
|
+
UNSUPPORTED_RESOURCE: "The requested resource is not supported",
|
|
25
|
+
// 400
|
|
26
|
+
INVALID_PAYMENT_TOKEN: "The payment token provided is not recognized",
|
|
27
|
+
// 400
|
|
28
|
+
UNEXPECTED_PAYMENT_TOKEN: "The selected payment token is not supported on this network",
|
|
29
|
+
// 400
|
|
30
|
+
NOT_FOUND: "The requested resource was not found",
|
|
31
|
+
CHAIN_CONFIG_NOT_SET: "Chain configuration is missing. Please contact support",
|
|
32
|
+
UNEXPECTED_ERROR: "An unexpected error occurred. Please try again later",
|
|
33
|
+
DATABASE_NOT_INITIALIZED: "Database connection is not available",
|
|
34
|
+
// 400
|
|
35
|
+
INVALID_USER_ID: "The provided user ID is invalid",
|
|
36
|
+
NO_PAYMENT_TOKENS: "No payment tokens are configured for this network",
|
|
37
|
+
SERVER_NOT_INITIALIZED: "Server is starting up. Please try again in a moment",
|
|
38
|
+
// 400
|
|
39
|
+
SERVER_NOT_RESPONDING: "The server is not responding. Please try again later",
|
|
40
|
+
// 400
|
|
41
|
+
INVALID_ADDRESS: "The provided address is invalid",
|
|
42
|
+
PAYMENT_REQUEST_NOT_APPROVED: "Payment request has not been approved",
|
|
43
|
+
// 400
|
|
44
|
+
REQUIRE_PAYMENT_ID: "Payment ID is required",
|
|
45
|
+
// 409
|
|
46
|
+
ADDRESS_EXISTS: "A deposit address already exists for this account",
|
|
47
|
+
// Admin / webhook
|
|
48
|
+
UNSUPPORTED_ALCHEMY_NETWORK: "The blockchain network is not supported by Alchemy",
|
|
49
|
+
FAILED_INITIALIZE_WEBHOOKS: "Failed to initialize webhooks. Please try again later",
|
|
50
|
+
// Database
|
|
51
|
+
SERVER_UNAVAILABLE: "Service is temporarily unavailable. Please try again later",
|
|
52
|
+
FAILED_GET_TRANSACTIONS: "Failed to retrieve transaction count. Please try again later",
|
|
53
|
+
// Alchemy / Voltage shared
|
|
54
|
+
INVOICE_SUBSCRIBER_ERROR: "Failed to subscribe to the invoice. Please try again",
|
|
55
|
+
// 400
|
|
56
|
+
REQUIRE_MIN_AMOUNT: "The amount is below the minimum required",
|
|
57
|
+
// 400
|
|
58
|
+
PAYMENT_ID_NOT_FOUND: "Invoice not found or expired. Please request a new one",
|
|
59
|
+
// 409
|
|
60
|
+
ALREADY_PAID_INVOICE: "This invoice has already been paid",
|
|
61
|
+
PAYMENT_FAILED: "Payment could not be processed. Please try again",
|
|
62
|
+
FAILED_WEBHOOK_ACTION: "A webhook operation failed. Please try again later",
|
|
63
|
+
ORM_REPO_NOT_INITIALIZED: "A required database repository is not initialized",
|
|
64
|
+
NO_WEBHOOKS: "No webhooks found for this subscription",
|
|
65
|
+
FAILED_GET_WEBHOOK_ADDRESSES: "Failed to retrieve webhook addresses. Please try again later",
|
|
66
|
+
// Wallet
|
|
67
|
+
// 409
|
|
68
|
+
PARENT_INDEX_IN_USE: "The selected wallet index is already in use",
|
|
69
|
+
// Transactions
|
|
70
|
+
// 409
|
|
71
|
+
REQUEST_NOT_APPROVED: "Withdrawal request has not been approved",
|
|
72
|
+
// 400
|
|
73
|
+
RECEIVER_REQUIRED: "Receiver address is missing. Please contact support",
|
|
74
|
+
// 400
|
|
75
|
+
UNEXPECTED_RECEIVER: "Please use the wallet address associated with your deposit",
|
|
76
|
+
// 409
|
|
77
|
+
DUPLICATE_CLAIM_JOB: "A claim for this request is already in progress. Please check back in a few minutes",
|
|
78
|
+
// 400
|
|
79
|
+
INVALID_WALLET_ADDRESS: "The wallet address provided is invalid",
|
|
80
|
+
// 409
|
|
81
|
+
REQUEST_FULFILLED: "This request has already been fulfilled",
|
|
82
|
+
// 400
|
|
83
|
+
WITHDRAW_REQUEST_NOT_FOUND: "Withdrawal request not found",
|
|
84
|
+
// 400
|
|
85
|
+
UNSUPPORTED_NETWORK: "The selected network is not supported",
|
|
86
|
+
// 400
|
|
87
|
+
UNSUPPORTED_ADDRESS: "The address format is not compatible with the selected network",
|
|
88
|
+
// 400
|
|
89
|
+
UNEXPECTED_ADDRESS_FORMAT: "The address does not match the expected format for the selected network",
|
|
90
|
+
// 400
|
|
91
|
+
EMPTY_PAYLOAD: "Request payload cannot be empty",
|
|
92
|
+
// 400
|
|
93
|
+
ONLY_STABLECOIN_WITHDRAWAL: "This network only supports stablecoin withdrawals",
|
|
94
|
+
};
|
|
95
|
+
exports.ErrorCodes = {
|
|
96
|
+
INTERNAL_SERVER: 'error.internal_server_error',
|
|
97
|
+
UNAUTHORIZED: 'error.unauthorized',
|
|
98
|
+
REQUIRE_PARAMETER: 'error.require_parameter',
|
|
99
|
+
USER_NOT_FOUND: 'error.user_not_found',
|
|
100
|
+
INVALID_VALUE: 'error.invalid_value',
|
|
101
|
+
INVALID_TOKEN_FORMAT: 'error.invalid_token_format',
|
|
102
|
+
RENEW_NOT_ALLOWED: 'error.renew_not_allowed',
|
|
103
|
+
VALIDATION_ERROR: 'error.validation_error',
|
|
104
|
+
UNSUPPORTED_RESOURCE: 'error.unsupported_resource',
|
|
105
|
+
INVALID_PAYMENT_TOKEN: 'error.invalid_payment_token',
|
|
106
|
+
UNEXPECTED_PAYMENT_TOKEN: 'error.unexpected_payment_token',
|
|
107
|
+
NOT_FOUND: 'error.not_found',
|
|
108
|
+
CHAIN_CONFIG_NOT_SET: 'error.chain_config_not_set',
|
|
109
|
+
UNEXPECTED_ERROR: 'error.unexpected_error',
|
|
110
|
+
DATABASE_NOT_INITIALIZED: 'error.database_not_initialized',
|
|
111
|
+
INVALID_USER_ID: 'error.invalid_user_id',
|
|
112
|
+
NO_PAYMENT_TOKENS: 'error.no_payment_tokens',
|
|
113
|
+
SERVER_NOT_INITIALIZED: 'error.server_not_initialized',
|
|
114
|
+
SERVER_NOT_RESPONDING: 'error.server_not_responding',
|
|
115
|
+
INVALID_ADDRESS: 'error.invalid_address',
|
|
116
|
+
PAYMENT_REQUEST_NOT_APPROVED: 'error.payment_request_not_approved',
|
|
117
|
+
REQUIRE_PAYMENT_ID: 'error.require_payment_id',
|
|
118
|
+
ADDRESS_EXISTS: 'error.address_exists',
|
|
119
|
+
// Admin / webhook
|
|
120
|
+
UNSUPPORTED_ALCHEMY_NETWORK: 'error.unsupported_alchemy_network',
|
|
121
|
+
FAILED_INITIALIZE_WEBHOOKS: 'error.failed_initialize_webhooks',
|
|
122
|
+
// Database
|
|
123
|
+
SERVER_UNAVAILABLE: 'error.server_unavailable',
|
|
124
|
+
FAILED_GET_TRANSACTIONS: 'error.failed_get_transactions',
|
|
125
|
+
ORM_REPO_NOT_INITIALIZED: 'error.orm_repo_not_initialized',
|
|
126
|
+
// Alchemy / Voltage shared
|
|
127
|
+
INVOICE_SUBSCRIBER_ERROR: 'error.invoice_subscriber_error',
|
|
128
|
+
REQUIRE_MIN_AMOUNT: 'error.require_min_amount',
|
|
129
|
+
PAYMENT_ID_NOT_FOUND: 'error.payment_id_not_found',
|
|
130
|
+
ALREADY_PAID_INVOICE: 'error.already_paid_invoice',
|
|
131
|
+
PAYMENT_FAILED: 'error.payment_failed',
|
|
132
|
+
FAILED_WEBHOOK_ACTION: 'error.failed_webhook_action',
|
|
133
|
+
NO_WEBHOOKS: 'error.no_webhooks',
|
|
134
|
+
FAILED_GET_WEBHOOK_ADDRESSES: 'error.failed_get_webhook_addresses',
|
|
135
|
+
// Wallet
|
|
136
|
+
PARENT_INDEX_IN_USE: 'error.parent_index_in_use',
|
|
137
|
+
// Transactions
|
|
138
|
+
REQUEST_NOT_APPROVED: 'error.request_not_approved',
|
|
139
|
+
RECEIVER_REQUIRED: 'error.receiver_required',
|
|
140
|
+
UNEXPECTED_RECEIVER: 'error.unexpected_receiver',
|
|
141
|
+
DUPLICATE_CLAIM_JOB: 'error.duplicate_claim_job',
|
|
142
|
+
REQUEST_FULFILLED: 'error.request_fulfilled',
|
|
143
|
+
WITHDRAW_REQUEST_NOT_FOUND: 'error.withdraw_request_not_found',
|
|
144
|
+
UNSUPPORTED_NETWORK: 'error.unsupported_network',
|
|
145
|
+
UNSUPPORTED_ADDRESS: 'error.unsupported_address',
|
|
146
|
+
UNEXPECTED_ADDRESS_FORMAT: 'error.unexpected_address_format',
|
|
147
|
+
EMPTY_PAYLOAD: 'error.empty_payload',
|
|
148
|
+
ONLY_STABLECOIN_WITHDRAWAL: 'error.only_stablecoin_withdrawal',
|
|
149
|
+
};
|
|
3
150
|
class BaseErrors {
|
|
4
151
|
constructor() {
|
|
5
152
|
this.codes = {
|
|
@@ -12,106 +159,123 @@ class BaseErrors {
|
|
|
12
159
|
503: { code: 503, error: "Service Unavailable" }
|
|
13
160
|
};
|
|
14
161
|
/** Handler methods */
|
|
15
|
-
// Return status code, error, and message
|
|
16
162
|
this.handle_error = (error, source_method) => {
|
|
17
163
|
const result = {
|
|
18
164
|
status_code: 500,
|
|
165
|
+
source_method,
|
|
19
166
|
response: {
|
|
20
167
|
status: false,
|
|
21
168
|
message: "Unexpected error occured. Please try again later.",
|
|
169
|
+
error_code: null,
|
|
22
170
|
data: {},
|
|
23
171
|
error: "Internal Server Error"
|
|
24
172
|
}
|
|
25
173
|
};
|
|
26
|
-
|
|
174
|
+
const status = this.get_error_code_base(error.message);
|
|
27
175
|
if (!status)
|
|
28
|
-
return
|
|
176
|
+
return result;
|
|
29
177
|
result.status_code = status.code;
|
|
30
|
-
result.response.message = status.code
|
|
178
|
+
result.response.message = status.code === 500 && !error.message
|
|
179
|
+
? "Unexpected error occured. Please try again later."
|
|
180
|
+
: error.message;
|
|
31
181
|
result.response.error = status.error;
|
|
32
|
-
|
|
182
|
+
result.response.error_code = status.error_code;
|
|
183
|
+
return result;
|
|
33
184
|
};
|
|
34
|
-
// Get the status code and error message
|
|
35
185
|
this.get_error_code_base = (message) => {
|
|
36
|
-
if (message.includes("
|
|
37
|
-
return this.codes[
|
|
38
|
-
if (message.includes("Unauthorized"))
|
|
39
|
-
return this.codes[401];
|
|
40
|
-
if (message.includes("User not found"))
|
|
41
|
-
return this.codes[403];
|
|
186
|
+
if (message.includes("not authorized"))
|
|
187
|
+
return Object.assign(Object.assign({}, this.codes[401]), { error_code: exports.ErrorCodes.UNAUTHORIZED });
|
|
42
188
|
if (message.includes("jwt expired"))
|
|
43
|
-
return this.codes[401];
|
|
44
|
-
if (message.includes("
|
|
45
|
-
return this.codes[400];
|
|
46
|
-
if (message.includes("
|
|
47
|
-
return this.codes[400];
|
|
48
|
-
if (message.includes("
|
|
49
|
-
return this.codes[
|
|
50
|
-
if (message.includes(
|
|
51
|
-
return this.codes[400];
|
|
52
|
-
if (message.includes(
|
|
53
|
-
return this.codes[400];
|
|
54
|
-
if (message.includes(
|
|
55
|
-
return this.codes[
|
|
56
|
-
if (message.includes(
|
|
57
|
-
return this.codes[400];
|
|
58
|
-
if (message.includes(
|
|
59
|
-
return this.codes[
|
|
60
|
-
if (message.includes(
|
|
61
|
-
return this.codes[400];
|
|
62
|
-
if (message.includes(
|
|
63
|
-
return this.codes[400];
|
|
64
|
-
if (message.includes("
|
|
65
|
-
return this.codes[400];
|
|
66
|
-
if (message.includes("
|
|
67
|
-
return this.codes[
|
|
68
|
-
if (message.includes("
|
|
69
|
-
return this.codes[
|
|
70
|
-
if (message.includes("
|
|
71
|
-
return this.codes[
|
|
72
|
-
if (message.includes("
|
|
73
|
-
return this.codes[
|
|
189
|
+
return Object.assign(Object.assign({}, this.codes[401]), { error_code: exports.ErrorCodes.UNAUTHORIZED });
|
|
190
|
+
if (message.includes("required parameter is missing"))
|
|
191
|
+
return Object.assign(Object.assign({}, this.codes[400]), { error_code: exports.ErrorCodes.REQUIRE_PARAMETER });
|
|
192
|
+
if (message.includes("Payment ID is required"))
|
|
193
|
+
return Object.assign(Object.assign({}, this.codes[400]), { error_code: exports.ErrorCodes.REQUIRE_PAYMENT_ID });
|
|
194
|
+
if (message.includes("User not found"))
|
|
195
|
+
return Object.assign(Object.assign({}, this.codes[403]), { error_code: exports.ErrorCodes.USER_NOT_FOUND });
|
|
196
|
+
if (message.includes("values provided are invalid"))
|
|
197
|
+
return Object.assign(Object.assign({}, this.codes[400]), { error_code: exports.ErrorCodes.INVALID_VALUE });
|
|
198
|
+
if (message.includes("Invalid authorization format"))
|
|
199
|
+
return Object.assign(Object.assign({}, this.codes[400]), { error_code: exports.ErrorCodes.INVALID_TOKEN_FORMAT });
|
|
200
|
+
if (message.includes("not yet eligible for renewal"))
|
|
201
|
+
return Object.assign(Object.assign({}, this.codes[400]), { error_code: exports.ErrorCodes.RENEW_NOT_ALLOWED });
|
|
202
|
+
if (message.includes("Request validation failed"))
|
|
203
|
+
return Object.assign(Object.assign({}, this.codes[400]), { error_code: exports.ErrorCodes.VALIDATION_ERROR });
|
|
204
|
+
if (message.includes("resource is not supported"))
|
|
205
|
+
return Object.assign(Object.assign({}, this.codes[400]), { error_code: exports.ErrorCodes.UNSUPPORTED_RESOURCE });
|
|
206
|
+
if (message.includes("payment token provided is not recognized"))
|
|
207
|
+
return Object.assign(Object.assign({}, this.codes[400]), { error_code: exports.ErrorCodes.INVALID_PAYMENT_TOKEN });
|
|
208
|
+
if (message.includes("not supported on this network"))
|
|
209
|
+
return Object.assign(Object.assign({}, this.codes[400]), { error_code: exports.ErrorCodes.UNEXPECTED_PAYMENT_TOKEN });
|
|
210
|
+
if (message.includes("resource was not found"))
|
|
211
|
+
return Object.assign(Object.assign({}, this.codes[400]), { error_code: exports.ErrorCodes.NOT_FOUND });
|
|
212
|
+
if (message.includes("Chain configuration is missing"))
|
|
213
|
+
return Object.assign(Object.assign({}, this.codes[500]), { error_code: exports.ErrorCodes.CHAIN_CONFIG_NOT_SET });
|
|
214
|
+
if (message.includes("unexpected error occurred"))
|
|
215
|
+
return Object.assign(Object.assign({}, this.codes[500]), { error_code: exports.ErrorCodes.UNEXPECTED_ERROR });
|
|
216
|
+
if (message.includes("Database connection is not available"))
|
|
217
|
+
return Object.assign(Object.assign({}, this.codes[500]), { error_code: exports.ErrorCodes.DATABASE_NOT_INITIALIZED });
|
|
218
|
+
if (message.includes("user ID is invalid"))
|
|
219
|
+
return Object.assign(Object.assign({}, this.codes[400]), { error_code: exports.ErrorCodes.INVALID_USER_ID });
|
|
220
|
+
if (message.includes("No payment tokens are configured"))
|
|
221
|
+
return Object.assign(Object.assign({}, this.codes[502]), { error_code: exports.ErrorCodes.NO_PAYMENT_TOKENS });
|
|
222
|
+
if (message.includes("Server is starting up"))
|
|
223
|
+
return Object.assign(Object.assign({}, this.codes[503]), { error_code: exports.ErrorCodes.SERVER_NOT_INITIALIZED });
|
|
224
|
+
if (message.includes("server is not responding"))
|
|
225
|
+
return Object.assign(Object.assign({}, this.codes[400]), { error_code: exports.ErrorCodes.SERVER_NOT_RESPONDING });
|
|
226
|
+
if (message.includes("provided address is invalid"))
|
|
227
|
+
return Object.assign(Object.assign({}, this.codes[400]), { error_code: exports.ErrorCodes.INVALID_ADDRESS });
|
|
228
|
+
if (message.includes("Payment request has not been approved"))
|
|
229
|
+
return Object.assign(Object.assign({}, this.codes[401]), { error_code: exports.ErrorCodes.PAYMENT_REQUEST_NOT_APPROVED });
|
|
230
|
+
if (message.includes("deposit address already exists"))
|
|
231
|
+
return Object.assign(Object.assign({}, this.codes[409]), { error_code: exports.ErrorCodes.ADDRESS_EXISTS });
|
|
74
232
|
return null;
|
|
75
233
|
};
|
|
76
234
|
}
|
|
77
|
-
/** Error
|
|
78
|
-
Unauthorized() { return
|
|
235
|
+
/** Error definitions — unchanged, backward compatible */
|
|
236
|
+
Unauthorized(_) { return exports.ErrorMessages.UNAUTHORIZED; }
|
|
237
|
+
;
|
|
238
|
+
RequireParameter(_) { return exports.ErrorMessages.REQUIRE_PARAMETER; }
|
|
239
|
+
;
|
|
240
|
+
NotFoundUser(_) { return exports.ErrorMessages.USER_NOT_FOUND; }
|
|
241
|
+
;
|
|
242
|
+
InvalidValue(_, __) { return exports.ErrorMessages.INVALID_VALUE; }
|
|
243
|
+
;
|
|
244
|
+
InvalidTokenFormat(_) { return exports.ErrorMessages.INVALID_TOKEN_FORMAT; }
|
|
245
|
+
;
|
|
246
|
+
RenewNotAllowed(_, __) { return exports.ErrorMessages.RENEW_NOT_ALLOWED; }
|
|
247
|
+
;
|
|
248
|
+
ValidationError(_) { return exports.ErrorMessages.VALIDATION_ERROR; }
|
|
79
249
|
;
|
|
80
|
-
|
|
250
|
+
UnsupportedResource(_) { return exports.ErrorMessages.UNSUPPORTED_RESOURCE; }
|
|
81
251
|
;
|
|
82
|
-
|
|
252
|
+
InvalidPaymentToken(_) { return exports.ErrorMessages.INVALID_PAYMENT_TOKEN; }
|
|
83
253
|
;
|
|
84
|
-
|
|
254
|
+
UnexpectedPaymentToken(_) { return exports.ErrorMessages.UNEXPECTED_PAYMENT_TOKEN; }
|
|
85
255
|
;
|
|
86
|
-
|
|
256
|
+
NotFound(_) { return exports.ErrorMessages.NOT_FOUND; }
|
|
87
257
|
;
|
|
88
|
-
|
|
89
|
-
ValidationError(validation_type) { return `Failed while validating ${validation_type}`; }
|
|
258
|
+
ChainConfigNotSet(_) { return exports.ErrorMessages.CHAIN_CONFIG_NOT_SET; }
|
|
90
259
|
;
|
|
91
|
-
|
|
260
|
+
UnexpectedError(_) { return exports.ErrorMessages.UNEXPECTED_ERROR; }
|
|
92
261
|
;
|
|
93
|
-
|
|
262
|
+
NotInitializedDatabase(_) { return exports.ErrorMessages.DATABASE_NOT_INITIALIZED; }
|
|
94
263
|
;
|
|
95
|
-
|
|
96
|
-
NotFound(resource_name) { return `${resource_name} not found`; }
|
|
264
|
+
InvalidUserId(_) { return exports.ErrorMessages.INVALID_USER_ID; }
|
|
97
265
|
;
|
|
98
|
-
|
|
266
|
+
NoPaymentTokens(_) { return exports.ErrorMessages.NO_PAYMENT_TOKENS; }
|
|
99
267
|
;
|
|
100
|
-
|
|
101
|
-
NotInitializedDatabase() { return "Database driver is not initialized."; }
|
|
268
|
+
NotInitializedServer(_) { return exports.ErrorMessages.SERVER_NOT_INITIALIZED; }
|
|
102
269
|
;
|
|
103
|
-
|
|
270
|
+
ServerNotResponding(_) { return exports.ErrorMessages.SERVER_NOT_RESPONDING; }
|
|
104
271
|
;
|
|
105
|
-
|
|
272
|
+
InvalidAddress(_) { return exports.ErrorMessages.INVALID_ADDRESS; }
|
|
106
273
|
;
|
|
107
|
-
|
|
108
|
-
ServerNotResponding() { return `The provided server is not responding. Please ensure the server is accepting HTTP requests.`; }
|
|
109
|
-
InvalidAddress(target) { return `The provided ${target} address is invalid`; }
|
|
110
|
-
NotApprovedPaymentRequest() { return "Payment request not approved"; }
|
|
274
|
+
NotApprovedPaymentRequest(_) { return exports.ErrorMessages.PAYMENT_REQUEST_NOT_APPROVED; }
|
|
111
275
|
;
|
|
112
|
-
RequirePaymentId() { return
|
|
276
|
+
RequirePaymentId(_) { return exports.ErrorMessages.REQUIRE_PAYMENT_ID; }
|
|
113
277
|
;
|
|
114
|
-
AddressExists() { return
|
|
278
|
+
AddressExists(_) { return exports.ErrorMessages.ADDRESS_EXISTS; }
|
|
115
279
|
;
|
|
116
280
|
}
|
|
117
281
|
exports.default = BaseErrors;
|
package/build/errors/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import WalletErrors from "./WalletErrors";
|
|
|
5
5
|
import BalanceErrors from "./BalanceErrors";
|
|
6
6
|
import DatabaseErrors from "./DatabaseErrors";
|
|
7
7
|
import VoltageErrors from "./VoltageErrors";
|
|
8
|
-
import BaseErrors from "./errors";
|
|
8
|
+
import BaseErrors, { ErrorCode } from "./errors";
|
|
9
9
|
import { RequestStatus } from "../services/types/claim";
|
|
10
10
|
interface ErrorHandlerResponse {
|
|
11
11
|
status_code: number;
|
|
@@ -17,6 +17,7 @@ interface ResponseObject {
|
|
|
17
17
|
message: string;
|
|
18
18
|
data: any;
|
|
19
19
|
error: string;
|
|
20
|
+
error_code: ErrorCode | null;
|
|
20
21
|
}
|
|
21
22
|
declare class AppErrors extends BaseErrors {
|
|
22
23
|
admin: AdminErrors;
|
|
@@ -27,53 +28,53 @@ declare class AppErrors extends BaseErrors {
|
|
|
27
28
|
database: DatabaseErrors;
|
|
28
29
|
voltage: VoltageErrors;
|
|
29
30
|
/** Delegated AdminErrors */
|
|
30
|
-
adminUnsupportedAlchemyNetwork(chainId: string):
|
|
31
|
-
adminFailedInitializeWebhooks(subscription: string):
|
|
31
|
+
adminUnsupportedAlchemyNetwork(chainId: string): "The blockchain network is not supported by Alchemy";
|
|
32
|
+
adminFailedInitializeWebhooks(subscription: string): "Failed to initialize webhooks. Please try again later";
|
|
32
33
|
handle_admin_error(error: any, source_method: string): ErrorHandlerResponse;
|
|
33
34
|
/** Delegated AlchemyErrors */
|
|
34
|
-
alchemyInvoiceSubscriberError(r_hash: string):
|
|
35
|
-
alchemyRequireMinAmount(min_amount: number):
|
|
36
|
-
alchemyPaymentIdNotFound(paymentId: string):
|
|
37
|
-
alchemyAlreadyPaidInvoice():
|
|
38
|
-
alchemyPaymentFailed(reason: string):
|
|
39
|
-
alchemyFailedWebhookAction(action_type: string, success_count: number, expected_success_count: number):
|
|
40
|
-
alchemyNotInitializedOrmRepo(repo_name: string):
|
|
41
|
-
alchemyNoWebhooks(subscription: string):
|
|
42
|
-
alchemyFailedGetWebhookAddresses(subscription: string, webhook_id: string):
|
|
43
|
-
alchemyUnsupportedAlchemyNetwork(chainId: string):
|
|
44
|
-
alchemyFailedInitializeWebhooks(subscription: string):
|
|
35
|
+
alchemyInvoiceSubscriberError(r_hash: string): "Failed to subscribe to the invoice. Please try again";
|
|
36
|
+
alchemyRequireMinAmount(min_amount: number): "The amount is below the minimum required";
|
|
37
|
+
alchemyPaymentIdNotFound(paymentId: string): "Invoice not found or expired. Please request a new one";
|
|
38
|
+
alchemyAlreadyPaidInvoice(): "This invoice has already been paid";
|
|
39
|
+
alchemyPaymentFailed(reason: string): "Payment could not be processed. Please try again";
|
|
40
|
+
alchemyFailedWebhookAction(action_type: string, success_count: number, expected_success_count: number): "A webhook operation failed. Please try again later";
|
|
41
|
+
alchemyNotInitializedOrmRepo(repo_name: string): "A required database repository is not initialized";
|
|
42
|
+
alchemyNoWebhooks(subscription: string): "No webhooks found for this subscription";
|
|
43
|
+
alchemyFailedGetWebhookAddresses(subscription: string, webhook_id: string): "Failed to retrieve webhook addresses. Please try again later";
|
|
44
|
+
alchemyUnsupportedAlchemyNetwork(chainId: string): "The blockchain network is not supported by Alchemy";
|
|
45
|
+
alchemyFailedInitializeWebhooks(subscription: string): "Failed to initialize webhooks. Please try again later";
|
|
45
46
|
handle_alchemy_error(error: any, source_method: string): ErrorHandlerResponse;
|
|
46
47
|
/** Delegated TransactionsErrors */
|
|
47
|
-
RequestNotApproved(status: RequestStatus):
|
|
48
|
-
ReceiverRequired():
|
|
49
|
-
UnexpectedReceiver():
|
|
50
|
-
DuplicateClaimJob(request_id: number):
|
|
51
|
-
InvalidAddress():
|
|
52
|
-
RequestFulfilled():
|
|
53
|
-
NotExistWithdrawRequest():
|
|
54
|
-
UnsupportedNetwork(suggested_networks: string):
|
|
55
|
-
UnsupportedAddress(network: string):
|
|
56
|
-
UnexpectedAddressFormat(current_network: string, expected_network: string):
|
|
57
|
-
EmptyPayload(action: string):
|
|
58
|
-
OnlyStablecoinWithdrawal():
|
|
48
|
+
RequestNotApproved(status: RequestStatus): "Withdrawal request has not been approved";
|
|
49
|
+
ReceiverRequired(): "Receiver address is missing. Please contact support";
|
|
50
|
+
UnexpectedReceiver(): "Please use the wallet address associated with your deposit";
|
|
51
|
+
DuplicateClaimJob(request_id: number): "A claim for this request is already in progress. Please check back in a few minutes";
|
|
52
|
+
InvalidAddress(): "The wallet address provided is invalid";
|
|
53
|
+
RequestFulfilled(): "This request has already been fulfilled";
|
|
54
|
+
NotExistWithdrawRequest(): "Withdrawal request not found";
|
|
55
|
+
UnsupportedNetwork(suggested_networks: string): "The selected network is not supported";
|
|
56
|
+
UnsupportedAddress(network: string): "The address format is not compatible with the selected network";
|
|
57
|
+
UnexpectedAddressFormat(current_network: string, expected_network: string): "The address does not match the expected format for the selected network";
|
|
58
|
+
EmptyPayload(action: string): "Request payload cannot be empty";
|
|
59
|
+
OnlyStablecoinWithdrawal(): "This network only supports stablecoin withdrawals";
|
|
59
60
|
handle_transactions_error(error: any, source_method: string): ErrorHandlerResponse;
|
|
60
61
|
/** Delegated WalletErrors */
|
|
61
|
-
RenewNotAllowed(remaining_duration_s: number, remaining_threshold_s: number):
|
|
62
|
-
NotAvailableParentIndex(index: number):
|
|
62
|
+
RenewNotAllowed(remaining_duration_s: number, remaining_threshold_s: number): "Your deposit address is not yet eligible for renewal";
|
|
63
|
+
NotAvailableParentIndex(index: number): "The selected wallet index is already in use";
|
|
63
64
|
handle_wallet_error(error: any, source_method: string): ErrorHandlerResponse;
|
|
64
65
|
/** Delegated BalanceErrors */
|
|
65
66
|
handle_balance_error(error: any, source_method: string): ErrorHandlerResponse;
|
|
66
67
|
/** Delegated DatabaseErrors */
|
|
67
|
-
ServerUnavailable():
|
|
68
|
-
FailedGetTransactions(chainId: string, address: string):
|
|
68
|
+
ServerUnavailable(): "Service is temporarily unavailable. Please try again later";
|
|
69
|
+
FailedGetTransactions(chainId: string, address: string): "Failed to retrieve transaction count. Please try again later";
|
|
69
70
|
handle_database_error(error: any, source_method: string): ErrorHandlerResponse;
|
|
70
71
|
/** Delegated VoltageErrors */
|
|
71
|
-
NotApprovedPaymentRequest():
|
|
72
|
-
InvoiceSubscriberError(r_hash: string):
|
|
73
|
-
RequireMinAmount(min_amount: number):
|
|
74
|
-
PaymentIdNotFound(paymentId: string):
|
|
75
|
-
AlreadyPaidInvoice():
|
|
76
|
-
PaymentFailed(reason: string):
|
|
72
|
+
NotApprovedPaymentRequest(): "Payment request has not been approved";
|
|
73
|
+
InvoiceSubscriberError(r_hash: string): "Failed to subscribe to the invoice. Please try again";
|
|
74
|
+
RequireMinAmount(min_amount: number): "The amount is below the minimum required";
|
|
75
|
+
PaymentIdNotFound(paymentId: string): "Invoice not found or expired. Please request a new one";
|
|
76
|
+
AlreadyPaidInvoice(): "This invoice has already been paid";
|
|
77
|
+
PaymentFailed(reason: string): "Payment could not be processed. Please try again";
|
|
77
78
|
handle_voltage_error(error: any, source_method: string): ErrorHandlerResponse;
|
|
78
79
|
handle_error: (error: any, source_method: string) => ErrorHandlerResponse;
|
|
79
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],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Ac,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAYzJ;;;OAGG;IACU,0BAA0B,CAAC,GAAG,EAAE,yBAAyB,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAWjK;AAED,eAAe,4BAA4B,CAAC"}
|
|
@@ -64,7 +64,9 @@ class AlchemyWebhookAddressManager {
|
|
|
64
64
|
}
|
|
65
65
|
return all.filter(w => w.network === network &&
|
|
66
66
|
w.webhook_type === "ADDRESS_ACTIVITY" &&
|
|
67
|
-
w.webhook_url.includes(env)
|
|
67
|
+
w.webhook_url.includes(env) &&
|
|
68
|
+
!w.webhook_url.includes("escrow-events") /// @DEV notice this is hardcoded to exclude escrow webhooks from adding custodial addresses to them
|
|
69
|
+
);
|
|
68
70
|
}
|
|
69
71
|
get_chain_ids_for_blockchain(blockchain) {
|
|
70
72
|
return ChainManager_1.default.getInstance(this.config).blockchain_chainid_map.get(blockchain) || [];
|
|
@@ -14,8 +14,7 @@ declare class QnWebhookAddressManager {
|
|
|
14
14
|
/** Returns the { name, network } pairs for the notification configs of a given chain. */
|
|
15
15
|
private get_webhook_keys_for_chain;
|
|
16
16
|
private get_notif_configs;
|
|
17
|
-
private
|
|
18
|
-
private load;
|
|
17
|
+
private load_entries;
|
|
19
18
|
private ensure_loaded;
|
|
20
19
|
private matches_key;
|
|
21
20
|
add_address(blockchain: BlockchainType, address: string): Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QnWebhookAddressManager.d.ts","sourceRoot":"","sources":["../../../src/services/quicknode-notifications/QnWebhookAddressManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,OAAO,EAAiB,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD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