@ercworldio/blockchain-shared 1.0.3-dev.3-PROJ-1296.21 → 1.0.3-dev.3-PROJ-1296.23
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/entities/AdminOperationThresholds.js +1 -1
- package/build/entities/CryptoOperationType.d.ts +18 -0
- package/build/entities/CryptoOperationType.d.ts.map +1 -0
- package/build/entities/CryptoOperationType.js +50 -0
- package/build/entities/EscrowRoles.js +1 -1
- package/build/entities/GlobalTimelock.js +1 -1
- package/build/entities/GranularTimelock.d.ts +11 -0
- package/build/entities/GranularTimelock.d.ts.map +1 -0
- package/build/entities/GranularTimelock.js +52 -0
- package/build/entities/RoleHash.js +1 -1
- package/build/entities/ScheduleTransactionJob.d.ts +23 -0
- package/build/entities/ScheduleTransactionJob.d.ts.map +1 -0
- package/build/entities/ScheduleTransactionJob.js +89 -0
- package/build/entities/ScheduleTransactionJobHistory.d.ts +17 -0
- package/build/entities/ScheduleTransactionJobHistory.d.ts.map +1 -0
- package/build/entities/ScheduleTransactionJobHistory.js +66 -0
- package/build/entities/TokenExecutionThresholds.js +1 -1
- package/build/entities/WithdrawalCommitment.d.ts +1 -1
- package/build/entities/WithdrawalCommitment.d.ts.map +1 -1
- package/build/entities/WithdrawalCommitment.js +17 -17
- package/build/entities/index.d.ts +22 -0
- package/build/entities/index.d.ts.map +1 -0
- package/build/entities/index.js +37 -0
- package/build/index.d.ts +3 -9
- package/build/index.d.ts.map +1 -1
- package/build/index.js +16 -11
- package/build/services/db/timelock/ScheduleTransactionJobHistoryService.d.ts +14 -0
- package/build/services/db/timelock/ScheduleTransactionJobHistoryService.d.ts.map +1 -0
- package/build/services/db/timelock/ScheduleTransactionJobHistoryService.js +63 -0
- package/build/services/db/timelock/ScheduleTransactionService.d.ts +30 -0
- package/build/services/db/timelock/ScheduleTransactionService.d.ts.map +1 -0
- package/build/services/db/timelock/ScheduleTransactionService.js +176 -0
- package/build/services/types/claim.d.ts +3 -0
- package/build/services/types/claim.d.ts.map +1 -1
- package/build/services/types/db/index.d.ts +3 -0
- package/build/services/types/db/index.d.ts.map +1 -0
- package/build/services/types/db/index.js +18 -0
- package/build/services/types/db/timelock.d.ts +6 -0
- package/build/services/types/db/timelock.d.ts.map +1 -0
- package/build/services/types/db/timelock.js +2 -0
- package/package.json +1 -1
|
@@ -47,6 +47,6 @@ __decorate([
|
|
|
47
47
|
__metadata("design:type", Date)
|
|
48
48
|
], AdminOperationThresholds.prototype, "updated_at", void 0);
|
|
49
49
|
exports.AdminOperationThresholds = AdminOperationThresholds = __decorate([
|
|
50
|
-
(0, typeorm_1.Entity)({ name: "crypto_admin_operation_thresholds", schema: "" }),
|
|
50
|
+
(0, typeorm_1.Entity)({ name: "crypto_admin_operation_thresholds", schema: "multisig" }),
|
|
51
51
|
(0, typeorm_1.Unique)(['blockchain', 'operation_type', 'chain_id', 'escrow_address'])
|
|
52
52
|
], AdminOperationThresholds);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class CryptoOperationType {
|
|
2
|
+
blockchain: string;
|
|
3
|
+
operation_id: number;
|
|
4
|
+
operation_name: string;
|
|
5
|
+
created_at: Date;
|
|
6
|
+
updated_at: Date;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
enum OperationType {
|
|
10
|
+
DEPOSIT, // 0
|
|
11
|
+
WITHDRAWAL, // 1
|
|
12
|
+
SETTLE, // 2
|
|
13
|
+
ADMIN_WITHDRAWAL, // 3
|
|
14
|
+
MANAGE_MULTISIG, //4 // Admin conf: Configure Withdrawal and Admin withdrawal thresholds
|
|
15
|
+
CONFIG_TIMELOCK // 5
|
|
16
|
+
}
|
|
17
|
+
*/
|
|
18
|
+
//# sourceMappingURL=CryptoOperationType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CryptoOperationType.d.ts","sourceRoot":"","sources":["../../src/entities/CryptoOperationType.ts"],"names":[],"mappings":"AAEA,qBAEa,mBAAmB;IAE5B,UAAU,EAAG,MAAM,CAAC;IAIpB,YAAY,EAAG,MAAM,CAAC;IAItB,cAAc,EAAG,MAAM,CAAC;IAGxB,UAAU,EAAG,IAAI,CAAC;IAGlB,UAAU,EAAG,IAAI,CAAC;CACrB;AAGD;;;;;;;;;GASG"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CryptoOperationType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let CryptoOperationType = class CryptoOperationType {
|
|
15
|
+
};
|
|
16
|
+
exports.CryptoOperationType = CryptoOperationType;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.Column)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], CryptoOperationType.prototype, "blockchain", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], CryptoOperationType.prototype, "operation_id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CryptoOperationType.prototype, "operation_name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
31
|
+
__metadata("design:type", Date)
|
|
32
|
+
], CryptoOperationType.prototype, "created_at", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
35
|
+
__metadata("design:type", Date)
|
|
36
|
+
], CryptoOperationType.prototype, "updated_at", void 0);
|
|
37
|
+
exports.CryptoOperationType = CryptoOperationType = __decorate([
|
|
38
|
+
(0, typeorm_1.Entity)({ name: "crypto_operation_type", schema: "multisig" }),
|
|
39
|
+
(0, typeorm_1.Unique)(['blockchain', 'operation_id'])
|
|
40
|
+
], CryptoOperationType);
|
|
41
|
+
/**
|
|
42
|
+
enum OperationType {
|
|
43
|
+
DEPOSIT, // 0
|
|
44
|
+
WITHDRAWAL, // 1
|
|
45
|
+
SETTLE, // 2
|
|
46
|
+
ADMIN_WITHDRAWAL, // 3
|
|
47
|
+
MANAGE_MULTISIG, //4 // Admin conf: Configure Withdrawal and Admin withdrawal thresholds
|
|
48
|
+
CONFIG_TIMELOCK // 5
|
|
49
|
+
}
|
|
50
|
+
*/
|
|
@@ -51,7 +51,7 @@ __decorate([
|
|
|
51
51
|
__metadata("design:type", Date)
|
|
52
52
|
], EscrowRoles.prototype, "updated_at", void 0);
|
|
53
53
|
exports.EscrowRoles = EscrowRoles = __decorate([
|
|
54
|
-
(0, typeorm_1.Entity)({ name: "crypto_escrow_roles", schema: "" }),
|
|
54
|
+
(0, typeorm_1.Entity)({ name: "crypto_escrow_roles", schema: "multisig" }),
|
|
55
55
|
(0, typeorm_1.Unique)(['blockchain', 'chain_id', 'contract_address', 'wallet_address', 'role_id']),
|
|
56
56
|
(0, typeorm_1.Index)(['wallet_address', 'role_id', 'user_id'])
|
|
57
57
|
], EscrowRoles);
|
|
@@ -55,6 +55,6 @@ __decorate([
|
|
|
55
55
|
__metadata("design:type", Date)
|
|
56
56
|
], GlobalTimelock.prototype, "updated_at", void 0);
|
|
57
57
|
exports.GlobalTimelock = GlobalTimelock = __decorate([
|
|
58
|
-
(0, typeorm_1.Entity)({ name: "crypto_withdrawal_global_timelock", schema: "" }),
|
|
58
|
+
(0, typeorm_1.Entity)({ name: "crypto_withdrawal_global_timelock", schema: "multisig" }),
|
|
59
59
|
(0, typeorm_1.Unique)(['blockchain', 'chain_id', 'escrow_address', 'token_address'])
|
|
60
60
|
], GlobalTimelock);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class GranularTimelock {
|
|
2
|
+
id: number;
|
|
3
|
+
blockchain: string;
|
|
4
|
+
chain_id: string;
|
|
5
|
+
escrow_address: string;
|
|
6
|
+
receiver_address: string;
|
|
7
|
+
duration: number;
|
|
8
|
+
created_at: Date;
|
|
9
|
+
updated_at: Date;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=GranularTimelock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GranularTimelock.d.ts","sourceRoot":"","sources":["../../src/entities/GranularTimelock.ts"],"names":[],"mappings":"AAEA,qBAEa,gBAAgB;IAGzB,EAAE,EAAG,MAAM,CAAC;IAGZ,UAAU,EAAG,MAAM,CAAC;IAGpB,QAAQ,EAAG,MAAM,CAAC;IAGlB,cAAc,EAAG,MAAM,CAAC;IAGxB,gBAAgB,EAAG,MAAM,CAAC;IAI1B,QAAQ,EAAG,MAAM,CAAC;IAGlB,UAAU,EAAG,IAAI,CAAC;IAGlB,UAAU,EAAG,IAAI,CAAC;CAErB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GranularTimelock = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let GranularTimelock = class GranularTimelock {
|
|
15
|
+
};
|
|
16
|
+
exports.GranularTimelock = GranularTimelock;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint' }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], GranularTimelock.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GranularTimelock.prototype, "blockchain", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], GranularTimelock.prototype, "chain_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GranularTimelock.prototype, "escrow_address", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], GranularTimelock.prototype, "receiver_address", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'bigint' }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], GranularTimelock.prototype, "duration", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
43
|
+
__metadata("design:type", Date)
|
|
44
|
+
], GranularTimelock.prototype, "created_at", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
47
|
+
__metadata("design:type", Date)
|
|
48
|
+
], GranularTimelock.prototype, "updated_at", void 0);
|
|
49
|
+
exports.GranularTimelock = GranularTimelock = __decorate([
|
|
50
|
+
(0, typeorm_1.Entity)({ name: "crypto_withdrawal_granular_timelock", schema: "multisig" }),
|
|
51
|
+
(0, typeorm_1.Unique)(['blockchain', 'chain_id', 'escrow_address', 'receiver_address'])
|
|
52
|
+
], GranularTimelock);
|
|
@@ -47,6 +47,6 @@ __decorate([
|
|
|
47
47
|
__metadata("design:type", Date)
|
|
48
48
|
], RoleHash.prototype, "updated_at", void 0);
|
|
49
49
|
exports.RoleHash = RoleHash = __decorate([
|
|
50
|
-
(0, typeorm_1.Entity)({ name: "crypto_role_hash", schema: "" }),
|
|
50
|
+
(0, typeorm_1.Entity)({ name: "crypto_role_hash", schema: "multisig" }),
|
|
51
51
|
(0, typeorm_1.Unique)(['blockchain', 'role_name', 'role_hash'])
|
|
52
52
|
], RoleHash);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OperationType } from "../contracts/types/escrow";
|
|
2
|
+
import { BlockchainType } from "../interfaces";
|
|
3
|
+
export type ScheduleJobStatus = 'queued' | 'processing' | 'confirming' | 'completed' | 'failed_retryable' | 'failed_permanent';
|
|
4
|
+
export declare class ScheduleTransactionJob {
|
|
5
|
+
id: number;
|
|
6
|
+
request_id: number;
|
|
7
|
+
operation_type: OperationType;
|
|
8
|
+
status: ScheduleJobStatus;
|
|
9
|
+
blockchain: BlockchainType;
|
|
10
|
+
chain_id: string;
|
|
11
|
+
lock_expires_at: Date | null;
|
|
12
|
+
locked_at: Date | null;
|
|
13
|
+
tx_hash: string | null;
|
|
14
|
+
sent_at: Date | null;
|
|
15
|
+
confirmed_at: Date | null;
|
|
16
|
+
retry_count: number;
|
|
17
|
+
error_message: string | null;
|
|
18
|
+
last_error_at: Date | null;
|
|
19
|
+
metadata: any;
|
|
20
|
+
created_at: Date;
|
|
21
|
+
updated_at: Date;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=ScheduleTransactionJob.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScheduleTransactionJob.d.ts","sourceRoot":"","sources":["../../src/entities/ScheduleTransactionJob.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,YAAY,GAAG,YAAY,GAAG,WAAW,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAG/H,qBAGa,sBAAsB;IAE/B,EAAE,EAAG,MAAM,CAAC;IAGZ,UAAU,EAAG,MAAM,CAAC;IAGpB,cAAc,EAAG,aAAa,CAAC;IAG/B,MAAM,EAAG,iBAAiB,CAAC;IAG3B,UAAU,EAAG,cAAc,CAAC;IAG5B,QAAQ,EAAG,MAAM,CAAC;IAIlB,eAAe,EAAG,IAAI,GAAG,IAAI,CAAC;IAG9B,SAAS,EAAG,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,EAAG,MAAM,GAAG,IAAI,CAAC;IAGxB,OAAO,EAAG,IAAI,GAAG,IAAI,CAAC;IAGtB,YAAY,EAAG,IAAI,GAAG,IAAI,CAAC;IAG3B,WAAW,EAAG,MAAM,CAAC;IAGrB,aAAa,EAAG,MAAM,GAAG,IAAI,CAAC;IAG9B,aAAa,EAAG,IAAI,GAAG,IAAI,CAAC;IAG5B,QAAQ,EAAG,GAAG,CAAC;IAIf,UAAU,EAAG,IAAI,CAAC;IAGlB,UAAU,EAAG,IAAI,CAAC;CACrB"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ScheduleTransactionJob = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const escrow_1 = require("../contracts/types/escrow");
|
|
15
|
+
let ScheduleTransactionJob = class ScheduleTransactionJob {
|
|
16
|
+
};
|
|
17
|
+
exports.ScheduleTransactionJob = ScheduleTransactionJob;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint' }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], ScheduleTransactionJob.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], ScheduleTransactionJob.prototype, "request_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'enum' }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], ScheduleTransactionJob.prototype, "operation_type", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], ScheduleTransactionJob.prototype, "status", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], ScheduleTransactionJob.prototype, "blockchain", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ScheduleTransactionJob.prototype, "chain_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "timestamptz", nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], ScheduleTransactionJob.prototype, "lock_expires_at", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "timestamptz", nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], ScheduleTransactionJob.prototype, "locked_at", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], ScheduleTransactionJob.prototype, "tx_hash", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], ScheduleTransactionJob.prototype, "sent_at", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], ScheduleTransactionJob.prototype, "confirmed_at", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: "int", default: 0 }),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], ScheduleTransactionJob.prototype, "retry_count", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], ScheduleTransactionJob.prototype, "error_message", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], ScheduleTransactionJob.prototype, "last_error_at", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], ScheduleTransactionJob.prototype, "metadata", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
80
|
+
__metadata("design:type", Date)
|
|
81
|
+
], ScheduleTransactionJob.prototype, "created_at", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
84
|
+
__metadata("design:type", Date)
|
|
85
|
+
], ScheduleTransactionJob.prototype, "updated_at", void 0);
|
|
86
|
+
exports.ScheduleTransactionJob = ScheduleTransactionJob = __decorate([
|
|
87
|
+
(0, typeorm_1.Entity)({ name: "schedule_transaction_jobs", schema: "multisig" }),
|
|
88
|
+
(0, typeorm_1.Unique)(["request_id"])
|
|
89
|
+
], ScheduleTransactionJob);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OperationType } from "../contracts/types/escrow";
|
|
2
|
+
import { BlockchainType } from "../interfaces";
|
|
3
|
+
import { ScheduleJobStatus } from "./ScheduleTransactionJob";
|
|
4
|
+
export declare class ScheduleTransactionJobHistory {
|
|
5
|
+
id: number;
|
|
6
|
+
job_id: number;
|
|
7
|
+
request_id: number;
|
|
8
|
+
operation_type: OperationType;
|
|
9
|
+
blockchain: BlockchainType;
|
|
10
|
+
chain_id: string;
|
|
11
|
+
status: ScheduleJobStatus;
|
|
12
|
+
tx_hash: string | null;
|
|
13
|
+
retry_count: number;
|
|
14
|
+
error_message: string | null;
|
|
15
|
+
created_at: Date;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=ScheduleTransactionJobHistory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScheduleTransactionJobHistory.d.ts","sourceRoot":"","sources":["../../src/entities/ScheduleTransactionJobHistory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,qBAGa,6BAA6B;IAGtC,EAAE,EAAG,MAAM,CAAC;IAGZ,MAAM,EAAG,MAAM,CAAC;IAGhB,UAAU,EAAG,MAAM,CAAC;IAGpB,cAAc,EAAG,aAAa,CAAC;IAG/B,UAAU,EAAG,cAAc,CAAC;IAG5B,QAAQ,EAAG,MAAM,CAAC;IAGlB,MAAM,EAAG,iBAAiB,CAAC;IAG3B,OAAO,EAAG,MAAM,GAAG,IAAI,CAAC;IAGxB,WAAW,EAAG,MAAM,CAAC;IAGrB,aAAa,EAAG,MAAM,GAAG,IAAI,CAAC;IAG9B,UAAU,EAAG,IAAI,CAAC;CACrB"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ScheduleTransactionJobHistory = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const escrow_1 = require("../contracts/types/escrow");
|
|
15
|
+
let ScheduleTransactionJobHistory = class ScheduleTransactionJobHistory {
|
|
16
|
+
};
|
|
17
|
+
exports.ScheduleTransactionJobHistory = ScheduleTransactionJobHistory;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: "bigint" }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], ScheduleTransactionJobHistory.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "bigint" }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], ScheduleTransactionJobHistory.prototype, "job_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], ScheduleTransactionJobHistory.prototype, "request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "enum" }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], ScheduleTransactionJobHistory.prototype, "operation_type", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "varchar" }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], ScheduleTransactionJobHistory.prototype, "blockchain", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "varchar" }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ScheduleTransactionJobHistory.prototype, "chain_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "enum" }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], ScheduleTransactionJobHistory.prototype, "status", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], ScheduleTransactionJobHistory.prototype, "tx_hash", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "int" }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], ScheduleTransactionJobHistory.prototype, "retry_count", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], ScheduleTransactionJobHistory.prototype, "error_message", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "timestamptz", default: () => "CURRENT_TIMESTAMP" }),
|
|
60
|
+
__metadata("design:type", Date)
|
|
61
|
+
], ScheduleTransactionJobHistory.prototype, "created_at", void 0);
|
|
62
|
+
exports.ScheduleTransactionJobHistory = ScheduleTransactionJobHistory = __decorate([
|
|
63
|
+
(0, typeorm_1.Entity)({ name: "schedule_transaction_jobs_history", schema: "multisig" }),
|
|
64
|
+
(0, typeorm_1.Index)(["job_id"]),
|
|
65
|
+
(0, typeorm_1.Index)(["request_id", "operation_type"])
|
|
66
|
+
], ScheduleTransactionJobHistory);
|
|
@@ -63,6 +63,6 @@ __decorate([
|
|
|
63
63
|
__metadata("design:type", Date)
|
|
64
64
|
], TokenExecutionThresholds.prototype, "updated_at", void 0);
|
|
65
65
|
exports.TokenExecutionThresholds = TokenExecutionThresholds = __decorate([
|
|
66
|
-
(0, typeorm_1.Entity)({ name: "crypto_token_execution_thresholds", schema: "" }),
|
|
66
|
+
(0, typeorm_1.Entity)({ name: "crypto_token_execution_thresholds", schema: "multisig" }),
|
|
67
67
|
(0, typeorm_1.Unique)(['blockchain', 'chain_id', 'escrow_address', 'token_address'])
|
|
68
68
|
], TokenExecutionThresholds);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawalCommitment.d.ts","sourceRoot":"","sources":["../../src/entities/WithdrawalCommitment.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,UAAU,GAAG,WAAW,CAAC;AAEtE,qBAEa,
|
|
1
|
+
{"version":3,"file":"WithdrawalCommitment.d.ts","sourceRoot":"","sources":["../../src/entities/WithdrawalCommitment.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,UAAU,GAAG,WAAW,CAAC;AAEtE,qBAEa,oBAAoB;IAE7B,UAAU,EAAG,MAAM,CAAC;IAGpB,QAAQ,EAAG,MAAM,CAAC;IAIlB,eAAe,EAAG,MAAM,CAAC;IAGzB,eAAe,EAAG,MAAM,CAAC;IAGzB,UAAU,EAAG,MAAM,CAAC;IAGpB,MAAM,EAAG,gBAAgB,CAAC;IAG1B,OAAO,EAAG,MAAM,GAAG,IAAI,CAAC;IAGxB,YAAY,EAAG,IAAI,GAAG,IAAI,CAAC;IAI3B,UAAU,EAAG,IAAI,CAAC;IAIlB,UAAU,EAAG,IAAI,CAAC;IAGlB,UAAU,EAAG,IAAI,CAAC;CACrB"}
|
|
@@ -9,56 +9,56 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.WithdrawalCommitment = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
let
|
|
14
|
+
let WithdrawalCommitment = class WithdrawalCommitment {
|
|
15
15
|
};
|
|
16
|
-
exports.
|
|
16
|
+
exports.WithdrawalCommitment = WithdrawalCommitment;
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, typeorm_1.Column)(),
|
|
19
19
|
__metadata("design:type", String)
|
|
20
|
-
],
|
|
20
|
+
], WithdrawalCommitment.prototype, "blockchain", void 0);
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, typeorm_1.Column)(),
|
|
23
23
|
__metadata("design:type", Number)
|
|
24
|
-
],
|
|
24
|
+
], WithdrawalCommitment.prototype, "chain_id", void 0);
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, typeorm_1.Column)({ type: "varchar" }),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
28
|
+
], WithdrawalCommitment.prototype, "escrow_contract", void 0);
|
|
29
29
|
__decorate([
|
|
30
30
|
(0, typeorm_1.Column)({ type: "varchar", nullable: false }),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
|
-
],
|
|
32
|
+
], WithdrawalCommitment.prototype, "commitment_hash", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, typeorm_1.Column)({ type: "bigint" }),
|
|
35
35
|
__metadata("design:type", Number)
|
|
36
|
-
],
|
|
36
|
+
], WithdrawalCommitment.prototype, "request_id", void 0);
|
|
37
37
|
__decorate([
|
|
38
38
|
(0, typeorm_1.Column)({ type: "enum" }),
|
|
39
39
|
__metadata("design:type", String)
|
|
40
|
-
],
|
|
40
|
+
], WithdrawalCommitment.prototype, "status", void 0);
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
43
43
|
__metadata("design:type", Object)
|
|
44
|
-
],
|
|
44
|
+
], WithdrawalCommitment.prototype, "tx_hash", void 0);
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
47
47
|
__metadata("design:type", Object)
|
|
48
|
-
],
|
|
48
|
+
], WithdrawalCommitment.prototype, "finalized_at", void 0);
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, typeorm_1.Column)({ type: 'timestamptz' }),
|
|
51
51
|
__metadata("design:type", Date)
|
|
52
|
-
],
|
|
52
|
+
], WithdrawalCommitment.prototype, "execute_at", void 0);
|
|
53
53
|
__decorate([
|
|
54
54
|
(0, typeorm_1.Column)({ type: 'timestamptz', default: () => 'CURRENT_TIMESTAMP' }),
|
|
55
55
|
__metadata("design:type", Date)
|
|
56
|
-
],
|
|
56
|
+
], WithdrawalCommitment.prototype, "created_at", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, typeorm_1.Column)({ type: 'timestamptz', default: () => 'CURRENT_TIMESTAMP' }),
|
|
59
59
|
__metadata("design:type", Date)
|
|
60
|
-
],
|
|
61
|
-
exports.
|
|
62
|
-
(0, typeorm_1.Entity)({ name: "crypto_withdrawal_commitment", schema: "" }),
|
|
60
|
+
], WithdrawalCommitment.prototype, "updated_at", void 0);
|
|
61
|
+
exports.WithdrawalCommitment = WithdrawalCommitment = __decorate([
|
|
62
|
+
(0, typeorm_1.Entity)({ name: "crypto_withdrawal_commitment", schema: "multisig" }),
|
|
63
63
|
(0, typeorm_1.Unique)(['blockchain', 'chain_id', 'escrow_contract', 'commitment_hash', 'request_id'])
|
|
64
|
-
],
|
|
64
|
+
], WithdrawalCommitment);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from "./AdminOperationThresholds";
|
|
2
|
+
export * from "./Checkpoint";
|
|
3
|
+
export * from "./ClaimHistory";
|
|
4
|
+
export * from "./ClaimJob";
|
|
5
|
+
export * from "./CryptoConfirmationLocks";
|
|
6
|
+
export * from "./CryptoOperationType";
|
|
7
|
+
export * from "./DepositAddress";
|
|
8
|
+
export * from "./DepositAddressArchive";
|
|
9
|
+
export * from "./DepositWalletBalance";
|
|
10
|
+
export * from "./EscrowRoles";
|
|
11
|
+
export * from "./GlobalTimelock";
|
|
12
|
+
export * from "./GranularTimelock";
|
|
13
|
+
export * from "./RoleHash";
|
|
14
|
+
export * from "./ScheduleTransactionJob";
|
|
15
|
+
export * from "./ScheduleTransactionJobHistory";
|
|
16
|
+
export * from "./Signatures";
|
|
17
|
+
export * from "./SweepHistory";
|
|
18
|
+
export * from "./SweepJob";
|
|
19
|
+
export * from "./TokenExecutionThresholds";
|
|
20
|
+
export * from "./WalletIndex";
|
|
21
|
+
export * from "./WithdrawalCommitment";
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AdminOperationThresholds"), exports);
|
|
18
|
+
__exportStar(require("./Checkpoint"), exports);
|
|
19
|
+
__exportStar(require("./ClaimHistory"), exports);
|
|
20
|
+
__exportStar(require("./ClaimJob"), exports);
|
|
21
|
+
__exportStar(require("./CryptoConfirmationLocks"), exports);
|
|
22
|
+
__exportStar(require("./CryptoOperationType"), exports);
|
|
23
|
+
__exportStar(require("./DepositAddress"), exports);
|
|
24
|
+
__exportStar(require("./DepositAddressArchive"), exports);
|
|
25
|
+
__exportStar(require("./DepositWalletBalance"), exports);
|
|
26
|
+
__exportStar(require("./EscrowRoles"), exports);
|
|
27
|
+
__exportStar(require("./GlobalTimelock"), exports);
|
|
28
|
+
__exportStar(require("./GranularTimelock"), exports);
|
|
29
|
+
__exportStar(require("./RoleHash"), exports);
|
|
30
|
+
__exportStar(require("./ScheduleTransactionJob"), exports);
|
|
31
|
+
__exportStar(require("./ScheduleTransactionJobHistory"), exports);
|
|
32
|
+
__exportStar(require("./Signatures"), exports);
|
|
33
|
+
__exportStar(require("./SweepHistory"), exports);
|
|
34
|
+
__exportStar(require("./SweepJob"), exports);
|
|
35
|
+
__exportStar(require("./TokenExecutionThresholds"), exports);
|
|
36
|
+
__exportStar(require("./WalletIndex"), exports);
|
|
37
|
+
__exportStar(require("./WithdrawalCommitment"), exports);
|
package/build/index.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export { default as TronHelper } from "./services/tron/services/TronHelper";
|
|
|
34
34
|
export { default as TronHotWallet } from "./services/tron/services/TronHotWallet";
|
|
35
35
|
export { default as TronCustodialWallet } from "./services/tron/services/TronCustodialWallet";
|
|
36
36
|
export { default as TronFundingWallet } from "./services/tron/services/TronFundingWallet";
|
|
37
|
+
export { default as ScheduleTransactionService } from "./services/db/timelock/ScheduleTransactionService";
|
|
38
|
+
export { default as ScheduleTransactionJobHistoryService } from "./services/db/timelock/ScheduleTransactionJobHistoryService";
|
|
37
39
|
export { default as Provider } from './chains/Provider';
|
|
38
40
|
export { default as ProviderManager } from './services/ProviderManager';
|
|
39
41
|
export { default as StorageService } from './services/StorageService';
|
|
@@ -61,15 +63,7 @@ export * from './utils/solana';
|
|
|
61
63
|
export * from './utils/Parsing';
|
|
62
64
|
export * from './services/utils/alchemy';
|
|
63
65
|
export * from './constants';
|
|
64
|
-
export * from './entities/
|
|
65
|
-
export * from './entities/ClaimHistory';
|
|
66
|
-
export * from './entities/ClaimJob';
|
|
67
|
-
export * from './entities/DepositAddress';
|
|
68
|
-
export * from './entities/DepositAddressArchive';
|
|
69
|
-
export * from './entities/DepositWalletBalance';
|
|
70
|
-
export * from './entities/SweepHistory';
|
|
71
|
-
export * from './entities/SweepJob';
|
|
72
|
-
export * from './entities/WalletIndex';
|
|
66
|
+
export * from './entities/index';
|
|
73
67
|
export * from './contracts/deployment/config';
|
|
74
68
|
export { default as EscrowInteraction } from './contracts/Escrow';
|
|
75
69
|
export * from './contracts/EscrowErrors';
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,IAAI,gB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AM,qDAAqD,CAAC;AAG/I,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AAEvC,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGtD,cAAc,cAAc,CAAC;AAG7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC"}
|
package/build/index.js
CHANGED
|
@@ -40,8 +40,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
40
40
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
41
41
|
};
|
|
42
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
exports.
|
|
44
|
-
exports.AppErrors = exports.EscrowIdl = exports.CoverageInfo = exports.EscrowEvents = exports.Erc20Events = exports.AccessControlEvents = exports.ERC20Abi = exports.ErrorAbi = exports.EscrowAbi = exports.ERC20MockAbi = exports.BaseErrors = exports.VoltageErrors = exports.AlchemyErrors = exports.WalletErrors = exports.DatabaseErrors = exports.BalanceErrors = exports.AdminErrors = exports.TransactionsErrors = exports.EscrowInteraction = void 0;
|
|
43
|
+
exports.QnNotificationsApi = exports.QuicknodeWebhookSignature = exports.Worker = exports.WithdrawalManager = exports.WalletManagerHelper = exports.WalletManager = exports.WalletIndexService = exports.SweepHistoryService = exports.SweepJobService = exports.StorageService = exports.ProviderManager = exports.Provider = exports.ScheduleTransactionJobHistoryService = exports.ScheduleTransactionService = exports.TronFundingWallet = exports.TronCustodialWallet = exports.TronHotWallet = exports.TronHelper = exports.TronTransaction = exports.TronSigner = exports.TimerManager = exports.RpcLimiter = exports.RedisPubSub = exports.RedisListQueue = exports.RedisQueue = exports.Redis = exports.MultisigService = exports.MemoryMonitor = exports.Logger = exports.KeyVaultHandler = exports.InvoiceQueue = exports.EscrowService = exports.EventsService = exports.EventsHandler = exports.ElasticSearch = exports.DepositAddressArchiveService = exports.DepositAddressService = exports.ClaimJobService = exports.ClaimHistoryService = exports.ContractRoles = exports.ChainManager = exports.BalanceService = exports.AlchemyWebhookSignature = exports.AlchemyWebhooks = exports.AlchemyWebhookAddressManager = exports.AlchemyService = exports.AccountingService = exports.AzureEventHubHandler = exports.AsyncTTLCache = exports.AsyncRateLimiter = void 0;
|
|
44
|
+
exports.AppErrors = exports.EscrowIdl = exports.CoverageInfo = exports.EscrowEvents = exports.Erc20Events = exports.AccessControlEvents = exports.ERC20Abi = exports.ErrorAbi = exports.EscrowAbi = exports.ERC20MockAbi = exports.BaseErrors = exports.VoltageErrors = exports.AlchemyErrors = exports.WalletErrors = exports.DatabaseErrors = exports.BalanceErrors = exports.AdminErrors = exports.TransactionsErrors = exports.EscrowInteraction = exports.QnWebhookAddressManager = exports.SetupNotifications = void 0;
|
|
45
45
|
// Services
|
|
46
46
|
var AsyncRateLimiter_1 = require("./utils/AsyncRateLimiter");
|
|
47
47
|
Object.defineProperty(exports, "AsyncRateLimiter", { enumerable: true, get: function () { return __importDefault(AsyncRateLimiter_1).default; } });
|
|
@@ -114,6 +114,10 @@ var TronCustodialWallet_1 = require("./services/tron/services/TronCustodialWalle
|
|
|
114
114
|
Object.defineProperty(exports, "TronCustodialWallet", { enumerable: true, get: function () { return __importDefault(TronCustodialWallet_1).default; } });
|
|
115
115
|
var TronFundingWallet_1 = require("./services/tron/services/TronFundingWallet");
|
|
116
116
|
Object.defineProperty(exports, "TronFundingWallet", { enumerable: true, get: function () { return __importDefault(TronFundingWallet_1).default; } });
|
|
117
|
+
var ScheduleTransactionService_1 = require("./services/db/timelock/ScheduleTransactionService");
|
|
118
|
+
Object.defineProperty(exports, "ScheduleTransactionService", { enumerable: true, get: function () { return __importDefault(ScheduleTransactionService_1).default; } });
|
|
119
|
+
var ScheduleTransactionJobHistoryService_1 = require("./services/db/timelock/ScheduleTransactionJobHistoryService");
|
|
120
|
+
Object.defineProperty(exports, "ScheduleTransactionJobHistoryService", { enumerable: true, get: function () { return __importDefault(ScheduleTransactionJobHistoryService_1).default; } });
|
|
117
121
|
var Provider_1 = require("./chains/Provider");
|
|
118
122
|
Object.defineProperty(exports, "Provider", { enumerable: true, get: function () { return __importDefault(Provider_1).default; } });
|
|
119
123
|
var ProviderManager_1 = require("./services/ProviderManager");
|
|
@@ -160,15 +164,16 @@ __exportStar(require("./services/utils/alchemy"), exports);
|
|
|
160
164
|
// Constants
|
|
161
165
|
__exportStar(require("./constants"), exports);
|
|
162
166
|
// Entities (TypeORM)
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
167
|
+
// export * from './entities/Checkpoint';
|
|
168
|
+
// export * from './entities/ClaimHistory';
|
|
169
|
+
// export * from './entities/ClaimJob';
|
|
170
|
+
// export * from './entities/DepositAddress';
|
|
171
|
+
// export * from './entities/DepositAddressArchive';
|
|
172
|
+
// export * from './entities/DepositWalletBalance';
|
|
173
|
+
// export * from './entities/SweepHistory';
|
|
174
|
+
// export * from './entities/SweepJob';
|
|
175
|
+
// export * from './entities/WalletIndex';
|
|
176
|
+
__exportStar(require("./entities/index"), exports);
|
|
172
177
|
// Contracts (type-safe wrappers and artifacts)
|
|
173
178
|
__exportStar(require("./contracts/deployment/config"), exports);
|
|
174
179
|
var Escrow_1 = require("./contracts/Escrow");
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Pool } from "pg";
|
|
2
|
+
import { OperationType } from "../../../contracts/types/escrow";
|
|
3
|
+
import { ScheduleTransactionJob } from "../../../entities/ScheduleTransactionJob";
|
|
4
|
+
import { ScheduleTransactionJobHistory } from "../../../entities/ScheduleTransactionJobHistory";
|
|
5
|
+
declare class ScheduleTransactionJobHistoryService {
|
|
6
|
+
/** Inserts a history snapshot for each job in the batch. */
|
|
7
|
+
static batch_insert: (pool: Pool, jobs: ScheduleTransactionJob[]) => Promise<void>;
|
|
8
|
+
/** Returns the full transition history for a job. */
|
|
9
|
+
static get_by_job_id: (pool: Pool, job_id: number) => Promise<ScheduleTransactionJobHistory[]>;
|
|
10
|
+
/** Returns the full transition history for a specific request and operation type. */
|
|
11
|
+
static get_by_request: (pool: Pool, request_id: number, operation_type: OperationType) => Promise<ScheduleTransactionJobHistory[]>;
|
|
12
|
+
}
|
|
13
|
+
export default ScheduleTransactionJobHistoryService;
|
|
14
|
+
//# sourceMappingURL=ScheduleTransactionJobHistoryService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScheduleTransactionJobHistoryService.d.ts","sourceRoot":"","sources":["../../../../src/services/db/timelock/ScheduleTransactionJobHistoryService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EAAE,6BAA6B,EAAE,MAAM,iDAAiD,CAAC;AAEhG,cAAM,oCAAoC;IAEtC,4DAA4D;IAC5D,MAAM,CAAC,YAAY,GAAU,MAAM,IAAI,EAAE,MAAM,sBAAsB,EAAE,KAAG,OAAO,CAAC,IAAI,CAAC,CA2BrF;IAEF,qDAAqD;IACrD,MAAM,CAAC,aAAa,GAAU,MAAM,IAAI,EAAE,QAAQ,MAAM,KAAG,OAAO,CAAC,6BAA6B,EAAE,CAAC,CAQjG;IAEF,qFAAqF;IACrF,MAAM,CAAC,cAAc,GAAU,MAAM,IAAI,EAAE,YAAY,MAAM,EAAE,gBAAgB,aAAa,KAAG,OAAO,CAAC,6BAA6B,EAAE,CAAC,CASrI;CAEL;AAED,eAAe,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var _a;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
class ScheduleTransactionJobHistoryService {
|
|
14
|
+
}
|
|
15
|
+
_a = ScheduleTransactionJobHistoryService;
|
|
16
|
+
/** Inserts a history snapshot for each job in the batch. */
|
|
17
|
+
ScheduleTransactionJobHistoryService.batch_insert = (pool, jobs) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
if (jobs.length === 0)
|
|
19
|
+
return;
|
|
20
|
+
const jobIds = jobs.map(j => j.id);
|
|
21
|
+
const requestIds = jobs.map(j => j.request_id);
|
|
22
|
+
const opTypes = jobs.map(j => j.operation_type);
|
|
23
|
+
const blockchains = jobs.map(j => j.blockchain);
|
|
24
|
+
const chainIds = jobs.map(j => j.chain_id);
|
|
25
|
+
const statuses = jobs.map(j => j.status);
|
|
26
|
+
const txHashes = jobs.map(j => { var _b; return (_b = j.tx_hash) !== null && _b !== void 0 ? _b : null; });
|
|
27
|
+
const retryCounts = jobs.map(j => j.retry_count);
|
|
28
|
+
const errorMessages = jobs.map(j => { var _b; return (_b = j.error_message) !== null && _b !== void 0 ? _b : null; });
|
|
29
|
+
yield pool.query(`
|
|
30
|
+
INSERT INTO multisig.schedule_transaction_jobs_history
|
|
31
|
+
(job_id, request_id, operation_type, blockchain, chain_id, status, tx_hash, retry_count, error_message)
|
|
32
|
+
SELECT
|
|
33
|
+
UNNEST($1::bigint[]),
|
|
34
|
+
UNNEST($2::int[]),
|
|
35
|
+
UNNEST($3::int[]),
|
|
36
|
+
UNNEST($4::text[]),
|
|
37
|
+
UNNEST($5::text[]),
|
|
38
|
+
UNNEST($6::text[]),
|
|
39
|
+
UNNEST($7::text[]),
|
|
40
|
+
UNNEST($8::int[]),
|
|
41
|
+
UNNEST($9::text[])
|
|
42
|
+
`, [jobIds, requestIds, opTypes, blockchains, chainIds, statuses, txHashes, retryCounts, errorMessages]);
|
|
43
|
+
});
|
|
44
|
+
/** Returns the full transition history for a job. */
|
|
45
|
+
ScheduleTransactionJobHistoryService.get_by_job_id = (pool, job_id) => __awaiter(void 0, void 0, void 0, function* () {
|
|
46
|
+
const res = yield pool.query(`
|
|
47
|
+
SELECT * FROM multisig.schedule_transaction_jobs_history
|
|
48
|
+
WHERE job_id = $1
|
|
49
|
+
ORDER BY created_at ASC
|
|
50
|
+
`, [job_id]);
|
|
51
|
+
return res.rows;
|
|
52
|
+
});
|
|
53
|
+
/** Returns the full transition history for a specific request and operation type. */
|
|
54
|
+
ScheduleTransactionJobHistoryService.get_by_request = (pool, request_id, operation_type) => __awaiter(void 0, void 0, void 0, function* () {
|
|
55
|
+
const res = yield pool.query(`
|
|
56
|
+
SELECT * FROM multisig.schedule_transaction_jobs_history
|
|
57
|
+
WHERE request_id = $1
|
|
58
|
+
AND operation_type = $2
|
|
59
|
+
ORDER BY created_at ASC
|
|
60
|
+
`, [request_id, operation_type]);
|
|
61
|
+
return res.rows;
|
|
62
|
+
});
|
|
63
|
+
exports.default = ScheduleTransactionJobHistoryService;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ScheduleJobStatus, ScheduleTransactionJob } from "../../../entities/ScheduleTransactionJob";
|
|
2
|
+
import { ClaimJobLockMetadata } from "../../types";
|
|
3
|
+
import { Pool } from "pg";
|
|
4
|
+
import { OperationType } from "../../../contracts/types/escrow";
|
|
5
|
+
import { MarkCompleteScheduleJob } from "../../types/db";
|
|
6
|
+
declare class ScheduleTransactionService {
|
|
7
|
+
static get_available_jobs: (pool: Pool, limit?: number, job_ttl_s?: number, lock_metadata?: ClaimJobLockMetadata) => Promise<ScheduleTransactionJob[]>;
|
|
8
|
+
/**
|
|
9
|
+
* Requeues all jobs in the given status to "queued"
|
|
10
|
+
* @param pool
|
|
11
|
+
* @param current_status
|
|
12
|
+
* @param limit
|
|
13
|
+
* @param lock_owner
|
|
14
|
+
* @param lock_reason
|
|
15
|
+
* @param max_retries
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
requeue_expired_jobs: (pool: Pool, current_status: ScheduleJobStatus, limit: number, lock_owner: string, lock_reason: string, max_retries: number) => Promise<ScheduleTransactionJob[]>;
|
|
19
|
+
batch_update_status: (pool: Pool, operation_type: OperationType, request_ids: number[], new_status: ScheduleJobStatus) => Promise<void>;
|
|
20
|
+
batch_update_failed_jobs: (pool: Pool, request_ids: number[], new_status: ScheduleJobStatus, error_message?: string, retryable?: boolean) => Promise<void>;
|
|
21
|
+
batch_update_executed_jobs: (pool: Pool, data: {
|
|
22
|
+
operation_type: OperationType;
|
|
23
|
+
request_id: number;
|
|
24
|
+
tx_hash: string;
|
|
25
|
+
sent_at: Date;
|
|
26
|
+
}[]) => Promise<void>;
|
|
27
|
+
mark_complete: (pool: Pool, payloads: MarkCompleteScheduleJob[]) => Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
export default ScheduleTransactionService;
|
|
30
|
+
//# sourceMappingURL=ScheduleTransactionService.d.ts.map
|
|
@@ -0,0 +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,MAAM,gBAAgB,CAAC;AAEzD,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;IAID;;;;;;;;;OASG;IACI,oBAAoB,GACvB,MAAM,IAAI,EACV,gBAAgB,iBAAiB,EACjC,OAAO,MAAM,EACb,YAAY,MAAM,EAClB,aAAa,MAAM,EACnB,aAAa,MAAM,KACpB,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAwClC;IAIK,mBAAmB,GAAU,MAAM,IAAI,EAAE,gBAAgB,aAAa,EAAE,aAAa,MAAM,EAAE,EAAE,YAAY,iBAAiB,KAAG,OAAO,CAAC,IAAI,CAAC,CAUjJ;IAGK,wBAAwB,GAC3B,MAAM,IAAI,EACV,aAAa,MAAM,EAAE,EACrB,YAAY,iBAAiB,EAC7B,gBAAgB,MAAM,EACtB,YAAY,OAAO,KACpB,OAAO,CAAC,IAAI,CAAC,CAwBd;IAGK,0BAA0B,GAC7B,MAAM,IAAI,EACV,MAAM;QAAE,cAAc,EAAE,aAAa,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,IAAI,CAAA;KAAE,EAAE,KAC9F,OAAO,CAAC,IAAI,CAAC,CAyBd;IAGK,aAAa,GAAU,MAAM,IAAI,EAAE,UAAU,uBAAuB,EAAE,mBAuB5E;CAGJ;AAED,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var _a;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
const uuid_1 = require("uuid");
|
|
14
|
+
class ScheduleTransactionService {
|
|
15
|
+
constructor() {
|
|
16
|
+
/**
|
|
17
|
+
* Requeues all jobs in the given status to "queued"
|
|
18
|
+
* @param pool
|
|
19
|
+
* @param current_status
|
|
20
|
+
* @param limit
|
|
21
|
+
* @param lock_owner
|
|
22
|
+
* @param lock_reason
|
|
23
|
+
* @param max_retries
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
this.requeue_expired_jobs = (pool, current_status, limit, lock_owner, lock_reason, max_retries) => __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
const res = yield pool.query(`
|
|
28
|
+
WITH expired AS (
|
|
29
|
+
SELECT id
|
|
30
|
+
FROM multisig.schedule_transaction_jobs
|
|
31
|
+
WHERE status = $4
|
|
32
|
+
AND (
|
|
33
|
+
lock_expires_at IS NULL
|
|
34
|
+
OR lock_expires_at < now()
|
|
35
|
+
)
|
|
36
|
+
AND retry_count < $5
|
|
37
|
+
ORDER BY lock_expires_at ASC
|
|
38
|
+
LIMIT $1
|
|
39
|
+
FOR UPDATE SKIP LOCKED
|
|
40
|
+
)
|
|
41
|
+
UPDATE multisig.schedule_transaction_jobs cj
|
|
42
|
+
SET
|
|
43
|
+
status = 'queued',
|
|
44
|
+
locked_at = NULL,
|
|
45
|
+
lock_expires_at = NULL,
|
|
46
|
+
metadata = jsonb_set(
|
|
47
|
+
jsonb_set(
|
|
48
|
+
coalesce(metadata, '{}'::jsonb),
|
|
49
|
+
'{requeued_by}',
|
|
50
|
+
to_jsonb($2::text),
|
|
51
|
+
true
|
|
52
|
+
),
|
|
53
|
+
'{requeue_reason}',
|
|
54
|
+
to_jsonb($3::text),
|
|
55
|
+
true
|
|
56
|
+
),
|
|
57
|
+
updated_at = now()
|
|
58
|
+
FROM expired e
|
|
59
|
+
WHERE cj.id = e.id
|
|
60
|
+
RETURNING cj.*;
|
|
61
|
+
`, [limit, lock_owner, lock_reason, current_status, max_retries]);
|
|
62
|
+
return res.rows;
|
|
63
|
+
});
|
|
64
|
+
this.batch_update_status = (pool, operation_type, request_ids, new_status) => __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const status = new_status;
|
|
66
|
+
yield pool.query(`
|
|
67
|
+
UPDATE multisig.schedule_transaction_jobs
|
|
68
|
+
SET status = $1, updated_at = CURRENT_TIMESTAMP
|
|
69
|
+
WHERE operation_type = $2::int AND request_id = ANY($2)
|
|
70
|
+
`, [status, operation_type, request_ids]);
|
|
71
|
+
return;
|
|
72
|
+
});
|
|
73
|
+
this.batch_update_failed_jobs = (pool, request_ids, new_status, error_message, retryable) => __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
yield pool.query(`
|
|
75
|
+
UPDATE multisig.schedule_transaction_jobs
|
|
76
|
+
SET
|
|
77
|
+
status = $1,
|
|
78
|
+
updated_at = CURRENT_TIMESTAMP,
|
|
79
|
+
error_message = COALESCE($2, error_message),
|
|
80
|
+
last_error_at = CASE
|
|
81
|
+
WHEN $2 IS NOT NULL THEN CURRENT_TIMESTAMP
|
|
82
|
+
ELSE last_error_at
|
|
83
|
+
END,
|
|
84
|
+
retry_count = CASE
|
|
85
|
+
WHEN $3 = true THEN retry_count + 1
|
|
86
|
+
ELSE retry_count
|
|
87
|
+
END
|
|
88
|
+
WHERE request_id = ANY($4)
|
|
89
|
+
`, [
|
|
90
|
+
new_status,
|
|
91
|
+
error_message || null,
|
|
92
|
+
retryable === true,
|
|
93
|
+
request_ids
|
|
94
|
+
]);
|
|
95
|
+
});
|
|
96
|
+
this.batch_update_executed_jobs = (pool, data) => __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
const requestIds = data.map(d => d.request_id);
|
|
98
|
+
const operationTypes = data.map(d => d.operation_type);
|
|
99
|
+
const txHashes = data.map(d => d.tx_hash);
|
|
100
|
+
const sentAts = data.map(d => d.sent_at);
|
|
101
|
+
yield pool.query(`
|
|
102
|
+
UPDATE multisig.schedule_transaction_jobs AS t
|
|
103
|
+
SET
|
|
104
|
+
tx_hash = c.tx_hash,
|
|
105
|
+
sent_at = c.sent_at,
|
|
106
|
+
status = 'confirming',
|
|
107
|
+
updated_at = CURRENT_TIMESTAMP
|
|
108
|
+
FROM (
|
|
109
|
+
SELECT
|
|
110
|
+
UNNEST($1::int[]) AS operation_type,
|
|
111
|
+
UNNEST($2::int[]) AS request_id,
|
|
112
|
+
UNNEST($3::text[]) AS tx_hash,
|
|
113
|
+
UNNEST($4::timestamptz[]) AS sent_at
|
|
114
|
+
) AS c
|
|
115
|
+
WHERE t.request_id = c.request_id
|
|
116
|
+
AND t.operation_type = c.operation_type
|
|
117
|
+
`, [operationTypes, requestIds, txHashes, sentAts]);
|
|
118
|
+
});
|
|
119
|
+
this.mark_complete = (pool, payloads) => __awaiter(this, void 0, void 0, function* () {
|
|
120
|
+
if (payloads.length === 0)
|
|
121
|
+
return;
|
|
122
|
+
const requestIds = payloads.map(d => d.requestId);
|
|
123
|
+
const operationTypes = payloads.map(d => d.operationType);
|
|
124
|
+
yield pool.query(`
|
|
125
|
+
UPDATE multisig.schedule_transaction_jobs AS t
|
|
126
|
+
SET
|
|
127
|
+
status = 'completed',
|
|
128
|
+
updated_at = CURRENT_TIMESTAMP
|
|
129
|
+
FROM (
|
|
130
|
+
SELECT
|
|
131
|
+
UNNEST($1::int[]) AS request_id,
|
|
132
|
+
UNNEST($2::int[]) AS operation_type,
|
|
133
|
+
) AS c
|
|
134
|
+
WHERE t.request_id = c.request_id
|
|
135
|
+
AND t.operation_type = c.operation_type
|
|
136
|
+
`, [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
|
+
exports.default = ScheduleTransactionService;
|
|
@@ -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,UAAU,GACV,MAAM,GACN,aAAa,CAAC;AAEpB,MAAM,MAAM,SAAS,GACf,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,aAAa,GACb,kBAAkB,GAClB,QAAQ,CAAC;AAEf,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IAGd,UAAU,EAAE,cAAc,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;IAEzB,qBAAqB,CAAC,EAAE,WAAW,CAAC,GAAG,GAAG,WAAW,CAAC,MAAM,CAAC;IAC7D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,sB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Y,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./multisig_service"), exports);
|
|
18
|
+
__exportStar(require("./timelock"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timelock.d.ts","sourceRoot":"","sources":["../../../../src/services/types/db/timelock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,MAAM,WAAW,uBAAuB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,aAAa,CAAC;CAChC"}
|
package/package.json
CHANGED