@ercworldio/blockchain-shared 1.0.3-dev.4 → 1.0.3-dev.4-PROJ-1296.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/build/chains/networks_dev copy.json +793 -0
- package/build/chains/networks_dev.json +12 -12
- package/build/chains/networks_prod-sh.json +40 -4
- package/build/chains/networks_prod-yb.json +40 -4
- package/build/contracts/Escrow.d.ts +66 -5
- package/build/contracts/Escrow.d.ts.map +1 -1
- package/build/contracts/Escrow.js +93 -2
- package/build/contracts/EscrowErrors.d.ts +85 -1
- package/build/contracts/EscrowErrors.d.ts.map +1 -1
- package/build/contracts/EscrowErrors.js +59 -14
- package/build/contracts/artifacts/Escrow.json +0 -12
- package/build/contracts/contract-events/AccessControlEvents.d.ts +12 -2
- package/build/contracts/contract-events/AccessControlEvents.d.ts.map +1 -1
- package/build/contracts/contract-events/AccessControlEvents.js +29 -5
- package/build/contracts/contract-events/EscrowEvents.d.ts +134 -2
- package/build/contracts/contract-events/EscrowEvents.d.ts.map +1 -1
- package/build/contracts/contract-events/EscrowEvents.js +67 -17
- package/build/contracts/contract-events/types/events.d.ts +35 -1
- package/build/contracts/contract-events/types/events.d.ts.map +1 -1
- package/build/contracts/typechain-types/contracts/escrow/Escrow.d.ts +1 -4
- package/build/contracts/typechain-types/contracts/escrow/Escrow.d.ts.map +1 -1
- package/build/contracts/typechain-types/contracts/lib/Events.d.ts +1 -4
- package/build/contracts/typechain-types/contracts/lib/Events.d.ts.map +1 -1
- package/build/contracts/typechain-types/factories/contracts/escrow/EscrowAccessControl__factory.d.ts +1 -1
- package/build/contracts/typechain-types/factories/contracts/escrow/EscrowAccessControl__factory.js +1 -1
- package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.d.ts +1 -6
- package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.d.ts.map +1 -1
- package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.js +1 -7
- package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.d.ts +1 -6
- package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.d.ts.map +1 -1
- package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.js +1 -7
- package/build/contracts/types/escrow.d.ts +13 -1
- package/build/contracts/types/escrow.d.ts.map +1 -1
- package/build/contracts/types/escrow.js +4 -0
- package/build/entities/AdminOperationThresholds.d.ts +0 -1
- package/build/entities/AdminOperationThresholds.d.ts.map +1 -1
- package/build/entities/AdminOperationThresholds.js +1 -5
- package/build/entities/AdminWithdrawal.d.ts +20 -0
- package/build/entities/AdminWithdrawal.d.ts.map +1 -0
- package/build/entities/AdminWithdrawal.js +88 -0
- package/build/entities/ClaimJob.d.ts +1 -0
- package/build/entities/ClaimJob.d.ts.map +1 -1
- package/build/entities/ClaimJob.js +4 -0
- 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.d.ts +0 -1
- package/build/entities/GlobalTimelock.d.ts.map +1 -1
- package/build/entities/GlobalTimelock.js +1 -5
- package/build/entities/GranularTimelock .d.ts +0 -1
- package/build/entities/GranularTimelock .d.ts.map +1 -1
- package/build/entities/GranularTimelock .js +0 -4
- 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.d.ts +0 -1
- package/build/entities/TokenExecutionThresholds.d.ts.map +1 -1
- package/build/entities/TokenExecutionThresholds.js +1 -5
- package/build/entities/WithdrawalCommitment.d.ts +15 -0
- package/build/entities/WithdrawalCommitment.d.ts.map +1 -0
- package/build/entities/WithdrawalCommitment.js +64 -0
- 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/errors/errors.d.ts +30 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +64 -2
- package/build/index.d.ts +6 -9
- package/build/index.d.ts.map +1 -1
- package/build/index.js +22 -11
- package/build/interfaces.d.ts +2 -2
- package/build/interfaces.d.ts.map +1 -1
- package/build/services/AlchemyWebhooks.d.ts.map +1 -1
- package/build/services/AlchemyWebhooks.js +33 -29
- package/build/services/AzureEventHubHandler.d.ts.map +1 -1
- package/build/services/AzureEventHubHandler.js +17 -5
- package/build/services/ClaimJobService.d.ts +5 -2
- package/build/services/ClaimJobService.d.ts.map +1 -1
- package/build/services/ClaimJobService.js +135 -24
- package/build/services/ClaimJobServiceStatic.d.ts +9 -0
- package/build/services/ClaimJobServiceStatic.d.ts.map +1 -0
- package/build/services/ClaimJobServiceStatic.js +54 -0
- package/build/services/SweepJobService.d.ts +3 -3
- package/build/services/SweepJobService.d.ts.map +1 -1
- package/build/services/SweepJobService.js +7 -12
- package/build/services/WithdrawalService.d.ts +10 -0
- package/build/services/WithdrawalService.d.ts.map +1 -0
- package/build/services/WithdrawalService.js +36 -0
- package/build/services/db/multisig/MultisigService.d.ts +31 -0
- package/build/services/db/multisig/MultisigService.d.ts.map +1 -0
- package/build/services/db/multisig/MultisigService.js +134 -0
- package/build/services/db/roles/ContractRoles.d.ts +2 -2
- package/build/services/db/roles/ContractRoles.d.ts.map +1 -1
- package/build/services/db/roles/ContractRoles.js +18 -12
- 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 +32 -0
- package/build/services/db/timelock/ScheduleTransactionService.d.ts.map +1 -0
- package/build/services/db/timelock/ScheduleTransactionService.js +212 -0
- package/build/services/types/azure_event_hub_handler.d.ts +9 -1
- package/build/services/types/azure_event_hub_handler.d.ts.map +1 -1
- package/build/services/types/azure_event_hub_handler.js +8 -0
- package/build/services/types/claim.d.ts +17 -1
- package/build/services/types/claim.d.ts.map +1 -1
- package/build/services/types/claim_job_service.d.ts +9 -1
- package/build/services/types/claim_job_service.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/multisig_service.d.ts +154 -0
- package/build/services/types/db/multisig_service.d.ts.map +1 -0
- package/build/services/types/db/multisig_service.js +2 -0
- package/build/services/types/db/timelock.d.ts +28 -0
- package/build/services/types/db/timelock.d.ts.map +1 -0
- package/build/services/types/db/timelock.js +2 -0
- package/build/services/types/db/withdrawal_service.d.ts +16 -0
- package/build/services/types/db/withdrawal_service.d.ts.map +1 -0
- package/build/services/types/db/withdrawal_service.js +2 -0
- package/build/services/types/index.d.ts +1 -0
- package/build/services/types/index.d.ts.map +1 -1
- package/build/services/types/index.js +1 -0
- package/build/services/types/watchdog.d.ts +9 -0
- package/build/services/types/watchdog.d.ts.map +1 -0
- package/build/services/types/watchdog.js +2 -0
- package/build/utils/custodial.d.ts +8 -0
- package/build/utils/custodial.d.ts.map +1 -1
- package/build/utils/custodial.js +23 -2
- package/package.json +6 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare class AdminWithdrawal {
|
|
2
|
+
id: number;
|
|
3
|
+
blockchain: string;
|
|
4
|
+
chain_id: string;
|
|
5
|
+
confirmed: boolean;
|
|
6
|
+
contract: string;
|
|
7
|
+
sender: string;
|
|
8
|
+
tx_hash: string;
|
|
9
|
+
timestamp: bigint;
|
|
10
|
+
blocknumber: bigint;
|
|
11
|
+
gasUsed: bigint;
|
|
12
|
+
request_id: bigint;
|
|
13
|
+
amount_wei: bigint;
|
|
14
|
+
amount_decimals: bigint;
|
|
15
|
+
token_address: string;
|
|
16
|
+
receiver_address: string;
|
|
17
|
+
created_at: Date;
|
|
18
|
+
updated_at: Date;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=AdminWithdrawal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdminWithdrawal.d.ts","sourceRoot":"","sources":["../../src/entities/AdminWithdrawal.ts"],"names":[],"mappings":"AAEA,qBAEa,eAAe;IAExB,EAAE,EAAG,MAAM,CAAC;IAGZ,UAAU,EAAG,MAAM,CAAC;IAGpB,QAAQ,EAAG,MAAM,CAAC;IAGlB,SAAS,EAAG,OAAO,CAAA;IAGnB,QAAQ,EAAG,MAAM,CAAC;IAGlB,MAAM,EAAG,MAAM,CAAC;IAGhB,OAAO,EAAG,MAAM,CAAC;IAGjB,SAAS,EAAG,MAAM,CAAC;IAGnB,WAAW,EAAG,MAAM,CAAC;IAGrB,OAAO,EAAG,MAAM,CAAC;IAGjB,UAAU,EAAG,MAAM,CAAC;IAGpB,UAAU,EAAG,MAAM,CAAC;IAGpB,eAAe,EAAG,MAAM,CAAC;IAGzB,aAAa,EAAG,MAAM,CAAC;IAGvB,gBAAgB,EAAG,MAAM,CAAC;IAI1B,UAAU,EAAG,IAAI,CAAC;IAGlB,UAAU,EAAG,IAAI,CAAC;CACrB"}
|
|
@@ -0,0 +1,88 @@
|
|
|
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.AdminWithdrawal = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let AdminWithdrawal = class AdminWithdrawal {
|
|
15
|
+
};
|
|
16
|
+
exports.AdminWithdrawal = AdminWithdrawal;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint' }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], AdminWithdrawal.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], AdminWithdrawal.prototype, "blockchain", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], AdminWithdrawal.prototype, "chain_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], AdminWithdrawal.prototype, "confirmed", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], AdminWithdrawal.prototype, "contract", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], AdminWithdrawal.prototype, "sender", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], AdminWithdrawal.prototype, "tx_hash", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)(),
|
|
47
|
+
__metadata("design:type", typeof BigInt === "function" ? BigInt : Object)
|
|
48
|
+
], AdminWithdrawal.prototype, "timestamp", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)(),
|
|
51
|
+
__metadata("design:type", typeof BigInt === "function" ? BigInt : Object)
|
|
52
|
+
], AdminWithdrawal.prototype, "blocknumber", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)(),
|
|
55
|
+
__metadata("design:type", typeof BigInt === "function" ? BigInt : Object)
|
|
56
|
+
], AdminWithdrawal.prototype, "gasUsed", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)(),
|
|
59
|
+
__metadata("design:type", typeof BigInt === "function" ? BigInt : Object)
|
|
60
|
+
], AdminWithdrawal.prototype, "request_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'numeric' }),
|
|
63
|
+
__metadata("design:type", typeof BigInt === "function" ? BigInt : Object)
|
|
64
|
+
], AdminWithdrawal.prototype, "amount_wei", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'numeric' }),
|
|
67
|
+
__metadata("design:type", typeof BigInt === "function" ? BigInt : Object)
|
|
68
|
+
], AdminWithdrawal.prototype, "amount_decimals", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], AdminWithdrawal.prototype, "token_address", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)(),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], AdminWithdrawal.prototype, "receiver_address", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
79
|
+
__metadata("design:type", Date)
|
|
80
|
+
], AdminWithdrawal.prototype, "created_at", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
83
|
+
__metadata("design:type", Date)
|
|
84
|
+
], AdminWithdrawal.prototype, "updated_at", void 0);
|
|
85
|
+
exports.AdminWithdrawal = AdminWithdrawal = __decorate([
|
|
86
|
+
(0, typeorm_1.Entity)({ name: "crypto_admin_withdrawal", schema: "" }),
|
|
87
|
+
(0, typeorm_1.Unique)(['tx_hash'])
|
|
88
|
+
], AdminWithdrawal);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClaimJob.d.ts","sourceRoot":"","sources":["../../src/entities/ClaimJob.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGjE,qBAGa,SAAS;IAElB,EAAE,EAAG,MAAM,CAAC;IAGZ,UAAU,EAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IAGvC,QAAQ,EAAG,MAAM,CAAC;IAGlB,YAAY,EAAG,WAAW,CAAC;IAG3B,UAAU,EAAG,SAAS,CAAC;IAGvB,UAAU,EAAG,MAAM,CAAC;IAGpB,OAAO,EAAG,MAAM,CAAC;IAGjB,QAAQ,EAAG,MAAM,CAAC;IAGlB,MAAM,EAAG,MAAM,CAAC;IAGhB,KAAK,EAAG,MAAM,CAAC;IAGf,QAAQ,EAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ClaimJob.d.ts","sourceRoot":"","sources":["../../src/entities/ClaimJob.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGjE,qBAGa,SAAS;IAElB,EAAE,EAAG,MAAM,CAAC;IAGZ,UAAU,EAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IAGvC,QAAQ,EAAG,MAAM,CAAC;IAGlB,YAAY,EAAG,WAAW,CAAC;IAG3B,UAAU,EAAG,SAAS,CAAC;IAGvB,UAAU,EAAG,MAAM,CAAC;IAGpB,OAAO,EAAG,MAAM,CAAC;IAGjB,QAAQ,EAAG,MAAM,CAAC;IAGlB,MAAM,EAAG,MAAM,CAAC;IAGhB,KAAK,EAAG,MAAM,CAAC;IAGf,QAAQ,EAAG,MAAM,CAAC;IAGlB,YAAY,EAAG,OAAO,CAAC;IAIvB,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;IAGf,cAAc,EAAG,MAAM,GAAG,IAAI,CAAC;IAG/B,UAAU,EAAG,IAAI,CAAC;IAGlB,UAAU,EAAG,IAAI,CAAC;CACrB"}
|
|
@@ -58,6 +58,10 @@ __decorate([
|
|
|
58
58
|
(0, typeorm_1.Column)(),
|
|
59
59
|
__metadata("design:type", Number)
|
|
60
60
|
], ClaimJobs.prototype, "decimals", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: true, default: false }),
|
|
63
|
+
__metadata("design:type", Boolean)
|
|
64
|
+
], ClaimJobs.prototype, "has_timelock", void 0);
|
|
61
65
|
__decorate([
|
|
62
66
|
(0, typeorm_1.Column)({ type: "timestamptz", nullable: true }),
|
|
63
67
|
__metadata("design:type", Object)
|
|
@@ -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);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalTimelock.d.ts","sourceRoot":"","sources":["../../src/entities/GlobalTimelock.ts"],"names":[],"mappings":"AAEA,qBAEa,cAAc;IAGvB,EAAE,EAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"GlobalTimelock.d.ts","sourceRoot":"","sources":["../../src/entities/GlobalTimelock.ts"],"names":[],"mappings":"AAEA,qBAEa,cAAc;IAGvB,EAAE,EAAG,MAAM,CAAC;IAGZ,UAAU,EAAG,MAAM,CAAC;IAGpB,QAAQ,EAAG,MAAM,CAAC;IAGlB,cAAc,EAAG,MAAM,CAAC;IAGxB,aAAa,EAAG,MAAM,CAAC;IAGvB,eAAe,EAAG,MAAM,CAAC;IAGzB,aAAa,EAAG,MAAM,CAAC;IAGvB,aAAa,EAAG,MAAM,CAAC;IAGvB,UAAU,EAAG,IAAI,CAAC;IAGlB,UAAU,EAAG,IAAI,CAAC;CAErB"}
|
|
@@ -18,10 +18,6 @@ __decorate([
|
|
|
18
18
|
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint' }),
|
|
19
19
|
__metadata("design:type", Number)
|
|
20
20
|
], GlobalTimelock.prototype, "id", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, typeorm_1.Column)(),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], GlobalTimelock.prototype, "operation_type", void 0);
|
|
25
21
|
__decorate([
|
|
26
22
|
(0, typeorm_1.Column)(),
|
|
27
23
|
__metadata("design:type", String)
|
|
@@ -59,6 +55,6 @@ __decorate([
|
|
|
59
55
|
__metadata("design:type", Date)
|
|
60
56
|
], GlobalTimelock.prototype, "updated_at", void 0);
|
|
61
57
|
exports.GlobalTimelock = GlobalTimelock = __decorate([
|
|
62
|
-
(0, typeorm_1.Entity)({ name: "crypto_withdrawal_global_timelock", schema: "" }),
|
|
58
|
+
(0, typeorm_1.Entity)({ name: "crypto_withdrawal_global_timelock", schema: "multisig" }),
|
|
63
59
|
(0, typeorm_1.Unique)(['blockchain', 'chain_id', 'escrow_address', 'token_address'])
|
|
64
60
|
], GlobalTimelock);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GranularTimelock .d.ts","sourceRoot":"","sources":["../../src/entities/GranularTimelock .ts"],"names":[],"mappings":"AAEA,qBAEa,gBAAgB;IAGzB,EAAE,EAAG,MAAM,CAAC;
|
|
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"}
|
|
@@ -18,10 +18,6 @@ __decorate([
|
|
|
18
18
|
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint' }),
|
|
19
19
|
__metadata("design:type", Number)
|
|
20
20
|
], GranularTimelock.prototype, "id", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, typeorm_1.Column)(),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], GranularTimelock.prototype, "operation_type", void 0);
|
|
25
21
|
__decorate([
|
|
26
22
|
(0, typeorm_1.Column)(),
|
|
27
23
|
__metadata("design:type", String)
|
|
@@ -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,qBAEa,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", 'operation_type'])
|
|
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);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenExecutionThresholds.d.ts","sourceRoot":"","sources":["../../src/entities/TokenExecutionThresholds.ts"],"names":[],"mappings":"AAEA,qBAEa,wBAAwB;IAEjC,EAAE,EAAG,MAAM,CAAC;IAGZ,
|
|
1
|
+
{"version":3,"file":"TokenExecutionThresholds.d.ts","sourceRoot":"","sources":["../../src/entities/TokenExecutionThresholds.ts"],"names":[],"mappings":"AAEA,qBAEa,wBAAwB;IAEjC,EAAE,EAAG,MAAM,CAAC;IAGZ,UAAU,EAAG,MAAM,CAAC;IAGpB,QAAQ,EAAG,MAAM,CAAC;IAGlB,cAAc,EAAG,MAAM,CAAC;IAGxB,aAAa,EAAG,MAAM,CAAC;IAGvB,eAAe,EAAG,MAAM,CAAC;IAGzB,kBAAkB,EAAG,MAAM,CAAC;IAG5B,kBAAkB,EAAG,MAAM,CAAC;IAG5B,gBAAgB,EAAG,MAAM,CAAC;IAG1B,gBAAgB,EAAG,MAAM,CAAC;IAG1B,UAAU,EAAG,IAAI,CAAC;IAGlB,UAAU,EAAG,IAAI,CAAC;CACrB"}
|
|
@@ -18,10 +18,6 @@ __decorate([
|
|
|
18
18
|
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint' }),
|
|
19
19
|
__metadata("design:type", Number)
|
|
20
20
|
], TokenExecutionThresholds.prototype, "id", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, typeorm_1.Column)(),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], TokenExecutionThresholds.prototype, "operation_type", void 0);
|
|
25
21
|
__decorate([
|
|
26
22
|
(0, typeorm_1.Column)(),
|
|
27
23
|
__metadata("design:type", String)
|
|
@@ -67,6 +63,6 @@ __decorate([
|
|
|
67
63
|
__metadata("design:type", Date)
|
|
68
64
|
], TokenExecutionThresholds.prototype, "updated_at", void 0);
|
|
69
65
|
exports.TokenExecutionThresholds = TokenExecutionThresholds = __decorate([
|
|
70
|
-
(0, typeorm_1.Entity)({ name: "crypto_token_execution_thresholds", schema: "" }),
|
|
66
|
+
(0, typeorm_1.Entity)({ name: "crypto_token_execution_thresholds", schema: "multisig" }),
|
|
71
67
|
(0, typeorm_1.Unique)(['blockchain', 'chain_id', 'escrow_address', 'token_address'])
|
|
72
68
|
], TokenExecutionThresholds);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type CommitmentStatus = "scheduled" | "executed" | "cancelled";
|
|
2
|
+
export declare class WithdrawalCommitment {
|
|
3
|
+
blockchain: string;
|
|
4
|
+
chain_id: number;
|
|
5
|
+
escrow_contract: string;
|
|
6
|
+
commitment_hash: string;
|
|
7
|
+
request_id: number;
|
|
8
|
+
status: CommitmentStatus;
|
|
9
|
+
tx_hash: string | null;
|
|
10
|
+
finalized_at: Date | null;
|
|
11
|
+
execute_at: Date;
|
|
12
|
+
created_at: Date;
|
|
13
|
+
updated_at: Date;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=WithdrawalCommitment.d.ts.map
|
|
@@ -0,0 +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,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"}
|