@ercworldio/blockchain-shared 1.0.3-dev.3-PROJ-1296.24 → 1.0.3-dev.3-PROJ-1296.26
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/build/chains/networks_prod-sh.json +40 -4
- package/build/chains/networks_prod-yb.json +40 -4
- package/build/errors/errors.d.ts +12 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +24 -0
- package/build/services/db/timelock/ScheduleTransactionService.d.ts +11 -5
- package/build/services/db/timelock/ScheduleTransactionService.d.ts.map +1 -1
- package/build/services/db/timelock/ScheduleTransactionService.js +145 -120
- package/build/services/types/claim.d.ts +1 -1
- package/build/services/types/claim.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -48,7 +48,16 @@
|
|
|
48
48
|
"type": "Escrow",
|
|
49
49
|
"version": "1",
|
|
50
50
|
"startingBlock": 24496423,
|
|
51
|
-
"escrowAlchemyWebhooks": [
|
|
51
|
+
"escrowAlchemyWebhooks": [
|
|
52
|
+
{
|
|
53
|
+
"chainId": "1",
|
|
54
|
+
"network_symbol": "eth",
|
|
55
|
+
"network": "ETH_MAINNET",
|
|
56
|
+
"type": "GRAPHQL",
|
|
57
|
+
"endpoint": "webhook/alchemy/escrow-events",
|
|
58
|
+
"source": "contract"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
52
61
|
"addresses": [
|
|
53
62
|
"0xB28BE79Ffe7CC1f352a8EFF3E3E8f4faFD05a881"
|
|
54
63
|
]
|
|
@@ -157,7 +166,16 @@
|
|
|
157
166
|
"type": "Escrow",
|
|
158
167
|
"version": "1",
|
|
159
168
|
"startingBlock": 82263026,
|
|
160
|
-
"escrowAlchemyWebhooks": [
|
|
169
|
+
"escrowAlchemyWebhooks": [
|
|
170
|
+
{
|
|
171
|
+
"chainId": "56",
|
|
172
|
+
"network_symbol": "bnb",
|
|
173
|
+
"network": "BNB_MAINNET",
|
|
174
|
+
"type": "GRAPHQL",
|
|
175
|
+
"endpoint": "webhook/alchemy/escrow-events",
|
|
176
|
+
"source": "contract"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
161
179
|
"addresses": [
|
|
162
180
|
"0xa4f0f80b1f4b2dBDD7cE553342Ad5542ba7758Ec"
|
|
163
181
|
]
|
|
@@ -357,7 +375,16 @@
|
|
|
357
375
|
"type": "Escrow",
|
|
358
376
|
"version": "1",
|
|
359
377
|
"startingBlock": 82937871,
|
|
360
|
-
"escrowAlchemyWebhooks": [
|
|
378
|
+
"escrowAlchemyWebhooks": [
|
|
379
|
+
{
|
|
380
|
+
"chainId": "137",
|
|
381
|
+
"network_symbol": "pol",
|
|
382
|
+
"network": "MATIC_MAINNET",
|
|
383
|
+
"type": "GRAPHQL",
|
|
384
|
+
"endpoint": "webhook/alchemy/escrow-events",
|
|
385
|
+
"source": "contract"
|
|
386
|
+
}
|
|
387
|
+
],
|
|
361
388
|
"addresses": [
|
|
362
389
|
"0x0074D8ed3168bEF415337064670e0bf90981A1F5"
|
|
363
390
|
]
|
|
@@ -452,7 +479,16 @@
|
|
|
452
479
|
"type": "Escrow",
|
|
453
480
|
"version": "1",
|
|
454
481
|
"startingBlock": 78523433,
|
|
455
|
-
"escrowAlchemyWebhooks": [
|
|
482
|
+
"escrowAlchemyWebhooks": [
|
|
483
|
+
{
|
|
484
|
+
"chainId": "43114",
|
|
485
|
+
"network_symbol": "avax",
|
|
486
|
+
"network": "AVAX_MAINNET",
|
|
487
|
+
"type": "GRAPHQL",
|
|
488
|
+
"endpoint": "webhook/alchemy/escrow-events",
|
|
489
|
+
"source": "contract"
|
|
490
|
+
}
|
|
491
|
+
],
|
|
456
492
|
"addresses": [
|
|
457
493
|
"0x28DE9CeCd83D9b20Ee6A438d39114Add08ED5FF7"
|
|
458
494
|
]
|
|
@@ -48,7 +48,16 @@
|
|
|
48
48
|
"type": "Escrow",
|
|
49
49
|
"version": "1",
|
|
50
50
|
"startingBlock": 24754256,
|
|
51
|
-
"escrowAlchemyWebhooks": [
|
|
51
|
+
"escrowAlchemyWebhooks": [
|
|
52
|
+
{
|
|
53
|
+
"chainId": "1",
|
|
54
|
+
"network_symbol": "eth",
|
|
55
|
+
"network": "ETH_MAINNET",
|
|
56
|
+
"type": "GRAPHQL",
|
|
57
|
+
"endpoint": "webhook/alchemy/escrow-events",
|
|
58
|
+
"source": "contract"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
52
61
|
"addresses": [
|
|
53
62
|
"0xBC88D756b866854C02410c8d3e62E5648279dc70"
|
|
54
63
|
]
|
|
@@ -157,7 +166,16 @@
|
|
|
157
166
|
"type": "Escrow",
|
|
158
167
|
"version": "1",
|
|
159
168
|
"startingBlock": 89178576,
|
|
160
|
-
"escrowAlchemyWebhooks": [
|
|
169
|
+
"escrowAlchemyWebhooks": [
|
|
170
|
+
{
|
|
171
|
+
"chainId": "56",
|
|
172
|
+
"network_symbol": "bnb",
|
|
173
|
+
"network": "BNB_MAINNET",
|
|
174
|
+
"type": "GRAPHQL",
|
|
175
|
+
"endpoint": "webhook/alchemy/escrow-events",
|
|
176
|
+
"source": "contract"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
161
179
|
"addresses": [
|
|
162
180
|
"0x0074D8ed3168bEF415337064670e0bf90981A1F5"
|
|
163
181
|
]
|
|
@@ -357,7 +375,16 @@
|
|
|
357
375
|
"type": "Escrow",
|
|
358
376
|
"version": "1",
|
|
359
377
|
"startingBlock": 84779780,
|
|
360
|
-
"escrowAlchemyWebhooks": [
|
|
378
|
+
"escrowAlchemyWebhooks": [
|
|
379
|
+
{
|
|
380
|
+
"chainId": "137",
|
|
381
|
+
"network_symbol": "pol",
|
|
382
|
+
"network": "MATIC_MAINNET",
|
|
383
|
+
"type": "GRAPHQL",
|
|
384
|
+
"endpoint": "webhook/alchemy/escrow-events",
|
|
385
|
+
"source": "contract"
|
|
386
|
+
}
|
|
387
|
+
],
|
|
361
388
|
"addresses": [
|
|
362
389
|
"0x251824258e218293d79036Be1423388bf3476Ef4"
|
|
363
390
|
]
|
|
@@ -452,7 +479,16 @@
|
|
|
452
479
|
"type": "Escrow",
|
|
453
480
|
"version": "1",
|
|
454
481
|
"startingBlock": 81474572,
|
|
455
|
-
"escrowAlchemyWebhooks": [
|
|
482
|
+
"escrowAlchemyWebhooks": [
|
|
483
|
+
{
|
|
484
|
+
"chainId": "43114",
|
|
485
|
+
"network_symbol": "avax",
|
|
486
|
+
"network": "AVAX_MAINNET",
|
|
487
|
+
"type": "GRAPHQL",
|
|
488
|
+
"endpoint": "webhook/alchemy/escrow-events",
|
|
489
|
+
"source": "contract"
|
|
490
|
+
}
|
|
491
|
+
],
|
|
456
492
|
"addresses": [
|
|
457
493
|
"0x6d47B7230F5D466677795E271db3aEE4C59c0B47"
|
|
458
494
|
]
|
package/build/errors/errors.d.ts
CHANGED
|
@@ -71,6 +71,10 @@ export declare const ErrorMessages: {
|
|
|
71
71
|
readonly FAILED_CANCEL_WITHDRAWAL: "Failed to cancel scheduled withdrawal";
|
|
72
72
|
readonly WITHDRAWAL_INSUFFICIENT_SIGNATURES: "Insufficient signatures for withdrawal scheduling";
|
|
73
73
|
readonly WITHDRAWAL_INVALID_SIGNATURES: "One or more signatures are invalid for withdrawal scheduling";
|
|
74
|
+
readonly UNDEFINED_DESTINATION_DETAILS: "Lightning withdrawal has no destination payment details";
|
|
75
|
+
readonly UNDEFINED_WITHDRAWAL_TOKEN: "Token address does not exist in withdraw request";
|
|
76
|
+
readonly MISSING_WITHDRAWAL_DETAILS: "Withdraw request details is missing";
|
|
77
|
+
readonly REQUEST_ALREADY_FULFILLED: "Withdraw request is already fulfilled";
|
|
74
78
|
};
|
|
75
79
|
export declare const ErrorCodes: {
|
|
76
80
|
readonly INTERNAL_SERVER: "error.internal_server_error";
|
|
@@ -138,6 +142,10 @@ export declare const ErrorCodes: {
|
|
|
138
142
|
readonly FAILED_CANCEL_WITHDRAWAL: "error.failed_cancel_withdrawal";
|
|
139
143
|
readonly WITHDRAWAL_INSUFFICIENT_SIGNATURES: "error.withdrawal_insufficient_signatures";
|
|
140
144
|
readonly WITHDRAWAL_INVALID_SIGNATURES: "error.withdrawal_invalid_signatures";
|
|
145
|
+
readonly UNDEFINED_DESTINATION_DETAILS: "error.undefined_destination_details";
|
|
146
|
+
readonly UNDEFINED_WITHDRAWAL_TOKEN: "error.undefined_withdrawawal_token";
|
|
147
|
+
readonly MISSING_WITHDRAWAL_DETAILS: "error.invalid_withdraw_request";
|
|
148
|
+
readonly REQUEST_ALREADY_FULFILLED: "error.request_already_fulfilled";
|
|
141
149
|
};
|
|
142
150
|
export type ErrorCode = typeof ErrorCodes[keyof typeof ErrorCodes];
|
|
143
151
|
export interface ErrorCodeEntry {
|
|
@@ -229,6 +237,10 @@ declare class BaseErrors {
|
|
|
229
237
|
FailedCancelWithdrawal(): "Failed to cancel scheduled withdrawal";
|
|
230
238
|
WithdrawalInvalidSignatures(): "One or more signatures are invalid for withdrawal scheduling";
|
|
231
239
|
WithdrawalInsufficientSignatures(): "Insufficient signatures for withdrawal scheduling";
|
|
240
|
+
MissingWithdrawDetails(): "Withdraw request details is missing";
|
|
241
|
+
UndefinedWithdrawalToken(): "Token address does not exist in withdraw request";
|
|
242
|
+
UndefinedDestinationDetails(): "Lightning withdrawal has no destination payment details";
|
|
243
|
+
RequestAlreadyFulfilled(): "Withdraw request is already fulfilled";
|
|
232
244
|
/** Handler methods */
|
|
233
245
|
handle_error: (error: any, source_method: string) => ErrorHandlerResponse;
|
|
234
246
|
get_error_code_base: (message: string) => ErrorCodeEntry | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors/errors.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqFtB,2BAA2B;;;;IAK3B,sBAAsB
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src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6 +110,10 @@ exports.ErrorMessages = {
|
|
|
110
110
|
FAILED_CANCEL_WITHDRAWAL: `Failed to cancel scheduled withdrawal`,
|
|
111
111
|
WITHDRAWAL_INSUFFICIENT_SIGNATURES: `Insufficient signatures for withdrawal scheduling`,
|
|
112
112
|
WITHDRAWAL_INVALID_SIGNATURES: `One or more signatures are invalid for withdrawal scheduling`,
|
|
113
|
+
UNDEFINED_DESTINATION_DETAILS: `Lightning withdrawal has no destination payment details`,
|
|
114
|
+
UNDEFINED_WITHDRAWAL_TOKEN: `Token address does not exist in withdraw request`,
|
|
115
|
+
MISSING_WITHDRAWAL_DETAILS: `Withdraw request details is missing`,
|
|
116
|
+
REQUEST_ALREADY_FULFILLED: `Withdraw request is already fulfilled`,
|
|
113
117
|
};
|
|
114
118
|
exports.ErrorCodes = {
|
|
115
119
|
INTERNAL_SERVER: 'error.internal_server_error',
|
|
@@ -184,6 +188,10 @@ exports.ErrorCodes = {
|
|
|
184
188
|
FAILED_CANCEL_WITHDRAWAL: `error.failed_cancel_withdrawal`,
|
|
185
189
|
WITHDRAWAL_INSUFFICIENT_SIGNATURES: `error.withdrawal_insufficient_signatures`,
|
|
186
190
|
WITHDRAWAL_INVALID_SIGNATURES: `error.withdrawal_invalid_signatures`,
|
|
191
|
+
UNDEFINED_DESTINATION_DETAILS: `error.undefined_destination_details`,
|
|
192
|
+
UNDEFINED_WITHDRAWAL_TOKEN: `error.undefined_withdrawawal_token`,
|
|
193
|
+
MISSING_WITHDRAWAL_DETAILS: `error.invalid_withdraw_request`,
|
|
194
|
+
REQUEST_ALREADY_FULFILLED: `error.request_already_fulfilled`,
|
|
187
195
|
};
|
|
188
196
|
class BaseErrors {
|
|
189
197
|
constructor() {
|
|
@@ -301,6 +309,14 @@ class BaseErrors {
|
|
|
301
309
|
return Object.assign(Object.assign({}, this.codes[500]), { error_code: exports.ErrorCodes.WITHDRAWAL_INSUFFICIENT_SIGNATURES });
|
|
302
310
|
if (message.includes(exports.ErrorMessages.WITHDRAWAL_INVALID_SIGNATURES))
|
|
303
311
|
return Object.assign(Object.assign({}, this.codes[500]), { error_code: exports.ErrorCodes.WITHDRAWAL_INVALID_SIGNATURES });
|
|
312
|
+
if (message.includes(exports.ErrorMessages.UNDEFINED_DESTINATION_DETAILS))
|
|
313
|
+
return Object.assign(Object.assign({}, this.codes[500]), { error_code: exports.ErrorCodes.UNDEFINED_DESTINATION_DETAILS });
|
|
314
|
+
if (message.includes(exports.ErrorMessages.UNDEFINED_WITHDRAWAL_TOKEN))
|
|
315
|
+
return Object.assign(Object.assign({}, this.codes[500]), { error_code: exports.ErrorCodes.UNDEFINED_WITHDRAWAL_TOKEN });
|
|
316
|
+
if (message.includes(exports.ErrorMessages.MISSING_WITHDRAWAL_DETAILS))
|
|
317
|
+
return Object.assign(Object.assign({}, this.codes[500]), { error_code: exports.ErrorCodes.MISSING_WITHDRAWAL_DETAILS });
|
|
318
|
+
if (message.includes(exports.ErrorMessages.REQUEST_ALREADY_FULFILLED))
|
|
319
|
+
return Object.assign(Object.assign({}, this.codes[500]), { error_code: exports.ErrorCodes.REQUEST_ALREADY_FULFILLED });
|
|
304
320
|
return null;
|
|
305
321
|
};
|
|
306
322
|
}
|
|
@@ -383,5 +399,13 @@ class BaseErrors {
|
|
|
383
399
|
;
|
|
384
400
|
WithdrawalInsufficientSignatures() { return exports.ErrorMessages.WITHDRAWAL_INSUFFICIENT_SIGNATURES; }
|
|
385
401
|
;
|
|
402
|
+
MissingWithdrawDetails() { return exports.ErrorMessages.MISSING_WITHDRAWAL_DETAILS; }
|
|
403
|
+
;
|
|
404
|
+
UndefinedWithdrawalToken() { return exports.ErrorMessages.UNDEFINED_WITHDRAWAL_TOKEN; }
|
|
405
|
+
;
|
|
406
|
+
UndefinedDestinationDetails() { return exports.ErrorMessages.UNDEFINED_DESTINATION_DETAILS; }
|
|
407
|
+
;
|
|
408
|
+
RequestAlreadyFulfilled() { return exports.ErrorMessages.REQUEST_ALREADY_FULFILLED; }
|
|
409
|
+
;
|
|
386
410
|
}
|
|
387
411
|
exports.default = BaseErrors;
|
|
@@ -17,16 +17,22 @@ declare class ScheduleTransactionService {
|
|
|
17
17
|
* @param max_retries
|
|
18
18
|
* @returns
|
|
19
19
|
*/
|
|
20
|
-
requeue_expired_jobs: (pool: Pool, current_status: ScheduleJobStatus, limit: number, lock_owner: string, lock_reason: string, max_retries: number) => Promise<ScheduleTransactionJob[]>;
|
|
21
|
-
batch_update_status: (pool: Pool, operation_type: OperationType, request_ids: number[], new_status: ScheduleJobStatus) => Promise<void>;
|
|
22
|
-
batch_update_failed_jobs: (pool: Pool, request_ids: number[], new_status: ScheduleJobStatus, error_message?: string, retryable?: boolean) => Promise<void>;
|
|
23
|
-
|
|
20
|
+
static requeue_expired_jobs: (pool: Pool, current_status: ScheduleJobStatus, limit: number, lock_owner: string, lock_reason: string, max_retries: number) => Promise<ScheduleTransactionJob[]>;
|
|
21
|
+
static batch_update_status: (pool: Pool, operation_type: OperationType, request_ids: number[], new_status: ScheduleJobStatus) => Promise<void>;
|
|
22
|
+
static batch_update_failed_jobs: (pool: Pool, operation_type: OperationType, request_ids: number[], new_status: ScheduleJobStatus, error_message?: string, retryable?: boolean) => Promise<void>;
|
|
23
|
+
static batch_update_failed_jobs_custom_error: (pool: Pool, operation_type: OperationType, jobs: {
|
|
24
|
+
request_id: number;
|
|
25
|
+
new_status: ScheduleJobStatus;
|
|
26
|
+
error_message: string;
|
|
27
|
+
retryable: boolean;
|
|
28
|
+
}[]) => Promise<void>;
|
|
29
|
+
static batch_update_executed_jobs: (pool: Pool, data: {
|
|
24
30
|
operation_type: OperationType;
|
|
25
31
|
request_id: number;
|
|
26
32
|
tx_hash: string;
|
|
27
33
|
sent_at: Date;
|
|
28
34
|
}[]) => Promise<void>;
|
|
29
|
-
mark_complete: (pool: Pool, payloads: MarkCompleteScheduleJob[]) => Promise<void>;
|
|
35
|
+
static mark_complete: (pool: Pool, payloads: MarkCompleteScheduleJob[]) => Promise<void>;
|
|
30
36
|
}
|
|
31
37
|
export default ScheduleTransactionService;
|
|
32
38
|
//# sourceMappingURL=ScheduleTransactionService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduleTransactionService.d.ts","sourceRoot":"","sources":["../../../../src/services/db/timelock/ScheduleTransactionService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AACrG,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,iCAAiC,EAAE,MAAM,gBAAgB,CAAC;AAE5F,cAAM,0BAA0B;IAE5B,MAAM,CAAC,kBAAkB,GAAU,MAAM,IAAI,EAAE,QAAO,MAAW,EAAE,YAAW,MAAY,EAAE,gBAAe,oBAA0F,KAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAwCxO;IAGD,4FAA4F;IAC5F,MAAM,CAAC,+BAA+B,GAAU,MAAM,IAAI,EAAE,QAAO,MAAW,EAAE,YAAW,MAAY,EAAE,gBAAe,oBAA0F,KAAG,OAAO,CAAC,iCAAiC,EAAE,CAAC,CA4ChQ;IAGD;;;;;;;;;OASG;
|
|
1
|
+
{"version":3,"file":"ScheduleTransactionService.d.ts","sourceRoot":"","sources":["../../../../src/services/db/timelock/ScheduleTransactionService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AACrG,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,iCAAiC,EAAE,MAAM,gB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AAU,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,IAAI,CAAA;KAAE,EAAE,KAC9F,OAAO,CAAC,IAAI,CAAC,CAyBd;IAKF,MAAM,CAAC,aAAa,GAAU,MAAM,IAAI,EAAE,UAAU,uBAAuB,EAAE,mBAuB5E;CAGJ;AAED,eAAe,0BAA0B,CAAC"}
|
|
@@ -12,19 +12,95 @@ var _a;
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
const uuid_1 = require("uuid");
|
|
14
14
|
class ScheduleTransactionService {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
}
|
|
16
|
+
_a = ScheduleTransactionService;
|
|
17
|
+
ScheduleTransactionService.get_available_jobs = (pool_1, ...args_1) => __awaiter(void 0, [pool_1, ...args_1], void 0, function* (pool, limit = 10, job_ttl_s = 120, lock_metadata = { lock_owner: "schedule-tx-worker", lock_reason: "process_queued" }) {
|
|
18
|
+
const ttlSeconds = job_ttl_s;
|
|
19
|
+
const batchGroupId = (0, uuid_1.v4)();
|
|
20
|
+
const res = yield pool.query(`
|
|
21
|
+
WITH candidates AS (
|
|
22
|
+
SELECT id
|
|
23
|
+
FROM multisig.schedule_transaction_jobs
|
|
24
|
+
WHERE status = 'queued'
|
|
25
|
+
AND (lock_expires_at IS NULL OR lock_expires_at < now())
|
|
26
|
+
ORDER BY blockchain, chain_id ASC
|
|
27
|
+
LIMIT $1
|
|
28
|
+
FOR UPDATE SKIP LOCKED
|
|
29
|
+
)
|
|
30
|
+
UPDATE multisig.schedule_transaction_jobs cj
|
|
31
|
+
SET
|
|
32
|
+
status = 'processing',
|
|
33
|
+
locked_at = now(),
|
|
34
|
+
lock_expires_at = now() + ($2 || ' seconds')::interval,
|
|
35
|
+
batch_group_id = $3,
|
|
36
|
+
metadata = jsonb_set(
|
|
37
|
+
jsonb_set(
|
|
38
|
+
coalesce(cj.metadata, '{}'::jsonb),
|
|
39
|
+
'{lock_owner}',
|
|
40
|
+
to_jsonb($4::text)
|
|
41
|
+
),
|
|
42
|
+
'{lock_reason}',
|
|
43
|
+
to_jsonb($5::text)
|
|
44
|
+
),
|
|
45
|
+
updated_at = now()
|
|
46
|
+
FROM candidates c
|
|
47
|
+
WHERE cj.id = c.id
|
|
48
|
+
RETURNING cj.*;
|
|
49
|
+
`, [limit, ttlSeconds, batchGroupId, lock_metadata.lock_owner, lock_metadata.lock_reason]);
|
|
50
|
+
return res.rows;
|
|
51
|
+
});
|
|
52
|
+
/** Same as get_available_jobs but joins withdrawal details from accounting for each job. */
|
|
53
|
+
ScheduleTransactionService.get_available_jobs_with_details = (pool_1, ...args_1) => __awaiter(void 0, [pool_1, ...args_1], void 0, function* (pool, limit = 10, job_ttl_s = 120, lock_metadata = { lock_owner: "schedule-tx-worker", lock_reason: "process_queued" }) {
|
|
54
|
+
const ttlSeconds = job_ttl_s;
|
|
55
|
+
const batchGroupId = (0, uuid_1.v4)();
|
|
56
|
+
const res = yield pool.query(`
|
|
57
|
+
WITH candidates AS (
|
|
58
|
+
SELECT id
|
|
59
|
+
FROM multisig.schedule_transaction_jobs
|
|
60
|
+
WHERE status = 'queued'
|
|
61
|
+
AND (lock_expires_at IS NULL OR lock_expires_at < now())
|
|
62
|
+
ORDER BY blockchain, chain_id ASC
|
|
63
|
+
LIMIT $1
|
|
64
|
+
FOR UPDATE SKIP LOCKED
|
|
65
|
+
),
|
|
66
|
+
updated AS (
|
|
67
|
+
UPDATE multisig.schedule_transaction_jobs cj
|
|
68
|
+
SET
|
|
69
|
+
status = 'processing',
|
|
70
|
+
locked_at = now(),
|
|
71
|
+
lock_expires_at = now() + ($2 || ' seconds')::interval,
|
|
72
|
+
batch_group_id = $3,
|
|
73
|
+
metadata = jsonb_set(
|
|
74
|
+
jsonb_set(
|
|
75
|
+
coalesce(cj.metadata, '{}'::jsonb),
|
|
76
|
+
'{lock_owner}',
|
|
77
|
+
to_jsonb($4::text)
|
|
78
|
+
),
|
|
79
|
+
'{lock_reason}',
|
|
80
|
+
to_jsonb($5::text)
|
|
81
|
+
),
|
|
82
|
+
updated_at = now()
|
|
83
|
+
FROM candidates c
|
|
84
|
+
WHERE cj.id = c.id
|
|
85
|
+
RETURNING cj.*
|
|
86
|
+
)
|
|
87
|
+
SELECT u.*, accounting.fn_get_crypto_withdrawal_details(u.request_id) AS withdrawal_details
|
|
88
|
+
FROM updated u;
|
|
89
|
+
`, [limit, ttlSeconds, batchGroupId, lock_metadata.lock_owner, lock_metadata.lock_reason]);
|
|
90
|
+
return res.rows;
|
|
91
|
+
});
|
|
92
|
+
/**
|
|
93
|
+
* Requeues all jobs in the given status to "queued"
|
|
94
|
+
* @param pool
|
|
95
|
+
* @param current_status
|
|
96
|
+
* @param limit
|
|
97
|
+
* @param lock_owner
|
|
98
|
+
* @param lock_reason
|
|
99
|
+
* @param max_retries
|
|
100
|
+
* @returns
|
|
101
|
+
*/
|
|
102
|
+
ScheduleTransactionService.requeue_expired_jobs = (pool, current_status, limit, lock_owner, lock_reason, max_retries) => __awaiter(void 0, void 0, void 0, function* () {
|
|
103
|
+
const res = yield pool.query(`
|
|
28
104
|
WITH expired AS (
|
|
29
105
|
SELECT id
|
|
30
106
|
FROM multisig.schedule_transaction_jobs
|
|
@@ -59,19 +135,19 @@ class ScheduleTransactionService {
|
|
|
59
135
|
WHERE cj.id = e.id
|
|
60
136
|
RETURNING cj.*;
|
|
61
137
|
`, [limit, lock_owner, lock_reason, current_status, max_retries]);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
138
|
+
return res.rows;
|
|
139
|
+
});
|
|
140
|
+
ScheduleTransactionService.batch_update_status = (pool, operation_type, request_ids, new_status) => __awaiter(void 0, void 0, void 0, function* () {
|
|
141
|
+
const status = new_status;
|
|
142
|
+
yield pool.query(`
|
|
67
143
|
UPDATE multisig.schedule_transaction_jobs
|
|
68
144
|
SET status = $1, updated_at = CURRENT_TIMESTAMP
|
|
69
145
|
WHERE operation_type = $2::int AND request_id = ANY($2)
|
|
70
146
|
`, [status, operation_type, request_ids]);
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
147
|
+
return;
|
|
148
|
+
});
|
|
149
|
+
ScheduleTransactionService.batch_update_failed_jobs = (pool, operation_type, request_ids, new_status, error_message, retryable) => __awaiter(void 0, void 0, void 0, function* () {
|
|
150
|
+
yield pool.query(`
|
|
75
151
|
UPDATE multisig.schedule_transaction_jobs
|
|
76
152
|
SET
|
|
77
153
|
status = $1,
|
|
@@ -85,20 +161,47 @@ class ScheduleTransactionService {
|
|
|
85
161
|
WHEN $3 = true THEN retry_count + 1
|
|
86
162
|
ELSE retry_count
|
|
87
163
|
END
|
|
88
|
-
WHERE request_id = ANY($4)
|
|
164
|
+
WHERE operation_type = $5 AND request_id = ANY($4)
|
|
89
165
|
`, [
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
166
|
+
new_status,
|
|
167
|
+
error_message || null,
|
|
168
|
+
retryable === true,
|
|
169
|
+
request_ids,
|
|
170
|
+
operation_type
|
|
171
|
+
]);
|
|
172
|
+
});
|
|
173
|
+
ScheduleTransactionService.batch_update_failed_jobs_custom_error = (pool, operation_type, jobs) => __awaiter(void 0, void 0, void 0, function* () {
|
|
174
|
+
const operationTypes = jobs.map(() => operation_type);
|
|
175
|
+
const requestIds = jobs.map(j => j.request_id);
|
|
176
|
+
const newStatuses = jobs.map(j => j.new_status);
|
|
177
|
+
const errorMessages = jobs.map(j => j.error_message);
|
|
178
|
+
const retryables = jobs.map(j => j.retryable);
|
|
179
|
+
yield pool.query(`
|
|
180
|
+
UPDATE multisig.schedule_transaction_jobs AS t
|
|
181
|
+
SET
|
|
182
|
+
status = c.status,
|
|
183
|
+
error_message = c.error_message,
|
|
184
|
+
last_error_at = CURRENT_TIMESTAMP,
|
|
185
|
+
retry_count = CASE WHEN c.retryable THEN t.retry_count + 1 ELSE t.retry_count END,
|
|
186
|
+
updated_at = CURRENT_TIMESTAMP
|
|
187
|
+
FROM (
|
|
188
|
+
SELECT
|
|
189
|
+
UNNEST($1::int[]) AS operation_type,
|
|
190
|
+
UNNEST($2::int[]) AS request_id,
|
|
191
|
+
UNNEST($3::text[]) AS status,
|
|
192
|
+
UNNEST($4::text[]) AS error_message,
|
|
193
|
+
UNNEST($5::boolean[]) AS retryable
|
|
194
|
+
) AS c
|
|
195
|
+
WHERE t.operation_type = c.operation_type
|
|
196
|
+
AND t.request_id = c.request_id
|
|
197
|
+
`, [operationTypes, requestIds, newStatuses, errorMessages, retryables]);
|
|
198
|
+
});
|
|
199
|
+
ScheduleTransactionService.batch_update_executed_jobs = (pool, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
200
|
+
const requestIds = data.map(d => d.request_id);
|
|
201
|
+
const operationTypes = data.map(d => d.operation_type);
|
|
202
|
+
const txHashes = data.map(d => d.tx_hash);
|
|
203
|
+
const sentAts = data.map(d => d.sent_at);
|
|
204
|
+
yield pool.query(`
|
|
102
205
|
UPDATE multisig.schedule_transaction_jobs AS t
|
|
103
206
|
SET
|
|
104
207
|
tx_hash = c.tx_hash,
|
|
@@ -115,13 +218,13 @@ class ScheduleTransactionService {
|
|
|
115
218
|
WHERE t.request_id = c.request_id
|
|
116
219
|
AND t.operation_type = c.operation_type
|
|
117
220
|
`, [operationTypes, requestIds, txHashes, sentAts]);
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
221
|
+
});
|
|
222
|
+
ScheduleTransactionService.mark_complete = (pool, payloads) => __awaiter(void 0, void 0, void 0, function* () {
|
|
223
|
+
if (payloads.length === 0)
|
|
224
|
+
return;
|
|
225
|
+
const requestIds = payloads.map(d => d.requestId);
|
|
226
|
+
const operationTypes = payloads.map(d => d.operationType);
|
|
227
|
+
yield pool.query(`
|
|
125
228
|
UPDATE multisig.schedule_transaction_jobs AS t
|
|
126
229
|
SET
|
|
127
230
|
status = 'completed',
|
|
@@ -134,83 +237,5 @@ class ScheduleTransactionService {
|
|
|
134
237
|
WHERE t.request_id = c.request_id
|
|
135
238
|
AND t.operation_type = c.operation_type
|
|
136
239
|
`, [requestIds, operationTypes]);
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
_a = ScheduleTransactionService;
|
|
141
|
-
ScheduleTransactionService.get_available_jobs = (pool_1, ...args_1) => __awaiter(void 0, [pool_1, ...args_1], void 0, function* (pool, limit = 10, job_ttl_s = 120, lock_metadata = { lock_owner: "schedule-tx-worker", lock_reason: "process_queued" }) {
|
|
142
|
-
const ttlSeconds = job_ttl_s;
|
|
143
|
-
const batchGroupId = (0, uuid_1.v4)();
|
|
144
|
-
const res = yield pool.query(`
|
|
145
|
-
WITH candidates AS (
|
|
146
|
-
SELECT id
|
|
147
|
-
FROM multisig.schedule_transaction_jobs
|
|
148
|
-
WHERE status = 'queued'
|
|
149
|
-
AND (lock_expires_at IS NULL OR lock_expires_at < now())
|
|
150
|
-
ORDER BY blockchain, chain_id ASC
|
|
151
|
-
LIMIT $1
|
|
152
|
-
FOR UPDATE SKIP LOCKED
|
|
153
|
-
)
|
|
154
|
-
UPDATE multisig.schedule_transaction_jobs cj
|
|
155
|
-
SET
|
|
156
|
-
status = 'processing',
|
|
157
|
-
locked_at = now(),
|
|
158
|
-
lock_expires_at = now() + ($2 || ' seconds')::interval,
|
|
159
|
-
batch_group_id = $3,
|
|
160
|
-
metadata = jsonb_set(
|
|
161
|
-
jsonb_set(
|
|
162
|
-
coalesce(cj.metadata, '{}'::jsonb),
|
|
163
|
-
'{lock_owner}',
|
|
164
|
-
to_jsonb($4::text)
|
|
165
|
-
),
|
|
166
|
-
'{lock_reason}',
|
|
167
|
-
to_jsonb($5::text)
|
|
168
|
-
),
|
|
169
|
-
updated_at = now()
|
|
170
|
-
FROM candidates c
|
|
171
|
-
WHERE cj.id = c.id
|
|
172
|
-
RETURNING cj.*;
|
|
173
|
-
`, [limit, ttlSeconds, batchGroupId, lock_metadata.lock_owner, lock_metadata.lock_reason]);
|
|
174
|
-
return res.rows;
|
|
175
|
-
});
|
|
176
|
-
/** Same as get_available_jobs but joins withdrawal details from accounting for each job. */
|
|
177
|
-
ScheduleTransactionService.get_available_jobs_with_details = (pool_1, ...args_1) => __awaiter(void 0, [pool_1, ...args_1], void 0, function* (pool, limit = 10, job_ttl_s = 120, lock_metadata = { lock_owner: "schedule-tx-worker", lock_reason: "process_queued" }) {
|
|
178
|
-
const ttlSeconds = job_ttl_s;
|
|
179
|
-
const batchGroupId = (0, uuid_1.v4)();
|
|
180
|
-
const res = yield pool.query(`
|
|
181
|
-
WITH candidates AS (
|
|
182
|
-
SELECT id
|
|
183
|
-
FROM multisig.schedule_transaction_jobs
|
|
184
|
-
WHERE status = 'queued'
|
|
185
|
-
AND (lock_expires_at IS NULL OR lock_expires_at < now())
|
|
186
|
-
ORDER BY blockchain, chain_id ASC
|
|
187
|
-
LIMIT $1
|
|
188
|
-
FOR UPDATE SKIP LOCKED
|
|
189
|
-
),
|
|
190
|
-
updated AS (
|
|
191
|
-
UPDATE multisig.schedule_transaction_jobs cj
|
|
192
|
-
SET
|
|
193
|
-
status = 'processing',
|
|
194
|
-
locked_at = now(),
|
|
195
|
-
lock_expires_at = now() + ($2 || ' seconds')::interval,
|
|
196
|
-
batch_group_id = $3,
|
|
197
|
-
metadata = jsonb_set(
|
|
198
|
-
jsonb_set(
|
|
199
|
-
coalesce(cj.metadata, '{}'::jsonb),
|
|
200
|
-
'{lock_owner}',
|
|
201
|
-
to_jsonb($4::text)
|
|
202
|
-
),
|
|
203
|
-
'{lock_reason}',
|
|
204
|
-
to_jsonb($5::text)
|
|
205
|
-
),
|
|
206
|
-
updated_at = now()
|
|
207
|
-
FROM candidates c
|
|
208
|
-
WHERE cj.id = c.id
|
|
209
|
-
RETURNING cj.*
|
|
210
|
-
)
|
|
211
|
-
SELECT u.*, accounting.fn_get_crypto_withdrawal_details(u.request_id) AS withdrawal_details
|
|
212
|
-
FROM updated u;
|
|
213
|
-
`, [limit, ttlSeconds, batchGroupId, lock_metadata.lock_owner, lock_metadata.lock_reason]);
|
|
214
|
-
return res.rows;
|
|
215
240
|
});
|
|
216
241
|
exports.default = ScheduleTransactionService;
|
|
@@ -19,7 +19,7 @@ export interface WithdrawRequestDetails {
|
|
|
19
19
|
blockchain: BlockchainType;
|
|
20
20
|
receiver: string;
|
|
21
21
|
paymentType: PaymentType;
|
|
22
|
-
destinationBlockchain?: BLOCKCHAINS.EVM | BLOCKCHAINS.SOLANA;
|
|
22
|
+
destinationBlockchain?: BLOCKCHAINS.EVM | BLOCKCHAINS.SOLANA | BLOCKCHAINS.TRON;
|
|
23
23
|
destinationChainId?: number;
|
|
24
24
|
destinationToken?: string;
|
|
25
25
|
sigsExecutiveRequired?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claim.d.ts","sourceRoot":"","sources":["../../../src/services/types/claim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEhD,MAAM,WAAW,mBAAmB;IAChC,UAAU,EAAE,cAAc,CAAC;IAC3B,YAAY,EAAE,WAAW,CAAC;CAC7B;AACD,MAAM,MAAM,aAAa,GACnB,SAAS,GACT,YAAY,GACZ,UAAU,GACV,UAAU,GACV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