@ercworldio/blockchain-shared 1.0.2-dev-PROJ-1265.0 → 1.0.2-dev-PROJ-1265.1.fix
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_prod-ab120.json +644 -0
- package/build/chains/networks_prod-dz-v1.json +727 -0
- package/build/chains/networks_prod-sh.json +645 -0
- package/build/chains/networks_prod-yb.json +645 -0
- package/build/chains/networks_stg-ab120-mainnet.json +681 -0
- package/build/chains/networks_stg-ab120.json +597 -0
- package/build/chains/networks_stg-bu-v1.json +635 -0
- package/build/chains/networks_stg-yb-v1.json +574 -0
- package/build/contracts/artifacts/Escrow.json +16 -0
- package/build/contracts/typechain-types/contracts/lib/Events.d.ts +394 -0
- package/build/contracts/typechain-types/contracts/lib/Events.d.ts.map +1 -0
- package/build/contracts/typechain-types/contracts/lib/Events.js +2 -0
- package/build/contracts/typechain-types/contracts/lib/MultisigLib.d.ts +21 -0
- package/build/contracts/typechain-types/contracts/lib/MultisigLib.d.ts.map +1 -0
- package/build/contracts/typechain-types/contracts/lib/MultisigLib.js +2 -0
- package/build/contracts/typechain-types/contracts/lib/index.d.ts +3 -0
- package/build/contracts/typechain-types/contracts/lib/index.d.ts.map +1 -0
- package/build/contracts/typechain-types/contracts/lib/index.js +2 -0
- package/build/contracts/typechain-types/contracts/mock/ReentrantReceiver.d.ts +54 -0
- package/build/contracts/typechain-types/contracts/mock/ReentrantReceiver.d.ts.map +1 -0
- package/build/contracts/typechain-types/contracts/mock/ReentrantReceiver.js +2 -0
- package/build/contracts/typechain-types/contracts/mock/SelfDestructForcer.d.ts +26 -0
- package/build/contracts/typechain-types/contracts/mock/SelfDestructForcer.d.ts.map +1 -0
- package/build/contracts/typechain-types/contracts/mock/SelfDestructForcer.js +2 -0
- package/build/contracts/typechain-types/contracts/test/DelegatecallProbe.d.ts +30 -0
- package/build/contracts/typechain-types/contracts/test/DelegatecallProbe.d.ts.map +1 -0
- package/build/contracts/typechain-types/contracts/test/DelegatecallProbe.js +2 -0
- package/build/contracts/typechain-types/contracts/test/index.d.ts +2 -0
- package/build/contracts/typechain-types/contracts/test/index.d.ts.map +1 -0
- package/build/contracts/typechain-types/contracts/test/index.js +2 -0
- package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.d.ts +373 -0
- package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.d.ts.map +1 -0
- package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.js +474 -0
- package/build/contracts/typechain-types/factories/contracts/lib/MultisigLib__factory.d.ts +99 -0
- package/build/contracts/typechain-types/factories/contracts/lib/MultisigLib__factory.d.ts.map +1 -0
- package/build/contracts/typechain-types/factories/contracts/lib/MultisigLib__factory.js +140 -0
- package/build/contracts/typechain-types/factories/contracts/lib/index.d.ts +3 -0
- package/build/contracts/typechain-types/factories/contracts/lib/index.d.ts.map +1 -0
- package/build/contracts/typechain-types/factories/contracts/lib/index.js +10 -0
- package/build/contracts/typechain-types/factories/contracts/mock/ReentrantReceiver__factory.d.ts +112 -0
- package/build/contracts/typechain-types/factories/contracts/mock/ReentrantReceiver__factory.d.ts.map +1 -0
- package/build/contracts/typechain-types/factories/contracts/mock/ReentrantReceiver__factory.js +156 -0
- package/build/contracts/typechain-types/factories/contracts/mock/SelfDestructForcer__factory.d.ts +37 -0
- package/build/contracts/typechain-types/factories/contracts/mock/SelfDestructForcer__factory.d.ts.map +1 -0
- package/build/contracts/typechain-types/factories/contracts/mock/SelfDestructForcer__factory.js +57 -0
- package/build/contracts/typechain-types/factories/contracts/test/DelegatecallProbe__factory.d.ts +55 -0
- package/build/contracts/typechain-types/factories/contracts/test/DelegatecallProbe__factory.d.ts.map +1 -0
- package/build/contracts/typechain-types/factories/contracts/test/DelegatecallProbe__factory.js +81 -0
- package/build/contracts/typechain-types/factories/contracts/test/index.d.ts +2 -0
- package/build/contracts/typechain-types/factories/contracts/test/index.d.ts.map +1 -0
- package/build/contracts/typechain-types/factories/contracts/test/index.js +8 -0
- package/build/entities/AdminOperationThresholds.d.ts +11 -0
- package/build/entities/AdminOperationThresholds.d.ts.map +1 -0
- package/build/entities/AdminOperationThresholds.js +52 -0
- 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/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.d.ts +12 -0
- package/build/entities/EscrowRoles.d.ts.map +1 -0
- package/build/entities/EscrowRoles.js +57 -0
- package/build/entities/GlobalTimelock.d.ts +13 -0
- package/build/entities/GlobalTimelock.d.ts.map +1 -0
- package/build/entities/GlobalTimelock.js +60 -0
- package/build/entities/GranularTimelock .d.ts +12 -0
- package/build/entities/GranularTimelock .d.ts.map +1 -0
- package/build/entities/GranularTimelock .js +56 -0
- 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/OperationType.d.ts +18 -0
- package/build/entities/OperationType.d.ts.map +1 -0
- package/build/entities/OperationType.js +50 -0
- package/build/entities/RoleHash.d.ts +11 -0
- package/build/entities/RoleHash.d.ts.map +1 -0
- package/build/entities/RoleHash.js +52 -0
- 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/Signatures.d.ts +16 -0
- package/build/entities/Signatures.d.ts.map +1 -0
- package/build/entities/Signatures.js +72 -0
- package/build/entities/TokenExecutionThresholds.d.ts +15 -0
- package/build/entities/TokenExecutionThresholds.d.ts.map +1 -0
- package/build/entities/TokenExecutionThresholds.js +68 -0
- 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/services/AccountingService.d.ts +2 -0
- package/build/services/AccountingService.d.ts.map +1 -1
- package/build/services/AccountingService.js +35 -6
- package/build/services/AccountingServiceStatic.d.ts +14 -0
- package/build/services/AccountingServiceStatic.d.ts.map +1 -0
- package/build/services/AccountingServiceStatic.js +38 -0
- 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/WithdrawalService.d.ts +10 -0
- package/build/services/WithdrawalService.d.ts.map +1 -0
- package/build/services/WithdrawalService.js +38 -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 +54 -0
- package/build/services/db/roles/ContractRoles.d.ts.map +1 -0
- package/build/services/db/roles/ContractRoles.js +87 -0
- 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 +46 -0
- package/build/services/db/timelock/ScheduleTransactionService.d.ts.map +1 -0
- package/build/services/db/timelock/ScheduleTransactionService.js +476 -0
- package/build/services/rpc/RPC.d.ts +20 -0
- package/build/services/rpc/RPC.d.ts.map +1 -0
- package/build/services/rpc/RPC.js +49 -0
- package/build/services/solana/escrow/services/TreasuryWithdrawalSignature.d.ts +58 -0
- package/build/services/solana/escrow/services/TreasuryWithdrawalSignature.d.ts.map +1 -0
- package/build/services/solana/escrow/services/TreasuryWithdrawalSignature.js +109 -0
- 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 +84 -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/watchdog.d.ts +9 -0
- package/build/services/types/watchdog.d.ts.map +1 -0
- package/build/services/types/watchdog.js +2 -0
- package/package.json +1 -1
|
@@ -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);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class OperationType {
|
|
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=OperationType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationType.d.ts","sourceRoot":"","sources":["../../src/entities/OperationType.ts"],"names":[],"mappings":"AAEA,qBAEa,aAAa;IAEtB,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.OperationType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let OperationType = class OperationType {
|
|
15
|
+
};
|
|
16
|
+
exports.OperationType = OperationType;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.Column)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], OperationType.prototype, "blockchain", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], OperationType.prototype, "operation_id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], OperationType.prototype, "operation_name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
31
|
+
__metadata("design:type", Date)
|
|
32
|
+
], OperationType.prototype, "created_at", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
35
|
+
__metadata("design:type", Date)
|
|
36
|
+
], OperationType.prototype, "updated_at", void 0);
|
|
37
|
+
exports.OperationType = OperationType = __decorate([
|
|
38
|
+
(0, typeorm_1.Entity)({ name: "crypto_operation_type", schema: "" }),
|
|
39
|
+
(0, typeorm_1.Unique)(['blockchain', 'operation_id'])
|
|
40
|
+
], OperationType);
|
|
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
|
+
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RoleHash.d.ts","sourceRoot":"","sources":["../../src/entities/RoleHash.ts"],"names":[],"mappings":"AAEA,qBAEa,QAAQ;IAEjB,EAAE,EAAG,MAAM,CAAC;IAGZ,UAAU,EAAG,MAAM,CAAC;IAIpB,SAAS,EAAG,MAAM,CAAC;IAInB,UAAU,EAAG,MAAM,CAAC;IAKpB,SAAS,EAAG,MAAM,CAAC;IAGnB,cAAc,EAAG,MAAM,CAAC;IAGxB,UAAU,EAAG,IAAI,CAAC;IAGlB,UAAU,EAAG,IAAI,CAAC;CACrB"}
|
|
@@ -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.RoleHash = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let RoleHash = class RoleHash {
|
|
15
|
+
};
|
|
16
|
+
exports.RoleHash = RoleHash;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint' }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], RoleHash.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], RoleHash.prototype, "blockchain", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], RoleHash.prototype, "role_name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], RoleHash.prototype, "role_alias", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], RoleHash.prototype, "role_hash", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'enum' }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], RoleHash.prototype, "operation_type", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
43
|
+
__metadata("design:type", Date)
|
|
44
|
+
], RoleHash.prototype, "created_at", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
47
|
+
__metadata("design:type", Date)
|
|
48
|
+
], RoleHash.prototype, "updated_at", void 0);
|
|
49
|
+
exports.RoleHash = RoleHash = __decorate([
|
|
50
|
+
(0, typeorm_1.Entity)({ name: "crypto_role_hash", schema: "multisig" }),
|
|
51
|
+
(0, typeorm_1.Unique)(['blockchain', 'role_name', 'role_hash'])
|
|
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);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class Signatures {
|
|
2
|
+
id: number;
|
|
3
|
+
operation_type: number;
|
|
4
|
+
commitment_hash: string | null;
|
|
5
|
+
blockchain: string;
|
|
6
|
+
chain_id: string;
|
|
7
|
+
contract_address: string;
|
|
8
|
+
type_data_hash: string | null;
|
|
9
|
+
signer_address: string | null;
|
|
10
|
+
v: number | null;
|
|
11
|
+
r: string | null;
|
|
12
|
+
s: string | null;
|
|
13
|
+
created_at: Date;
|
|
14
|
+
updated_at: Date;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=Signatures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Signatures.d.ts","sourceRoot":"","sources":["../../src/entities/Signatures.ts"],"names":[],"mappings":"AAEA,qBAEa,UAAU;IAEnB,EAAE,EAAG,MAAM,CAAC;IAGZ,cAAc,EAAG,MAAM,CAAC;IAGxB,eAAe,EAAG,MAAM,GAAG,IAAI,CAAC;IAGhC,UAAU,EAAG,MAAM,CAAC;IAGpB,QAAQ,EAAG,MAAM,CAAC;IAGlB,gBAAgB,EAAG,MAAM,CAAC;IAG1B,cAAc,EAAG,MAAM,GAAG,IAAI,CAAC;IAG/B,cAAc,EAAG,MAAM,GAAG,IAAI,CAAC;IAG/B,CAAC,EAAG,MAAM,GAAG,IAAI,CAAC;IAGlB,CAAC,EAAG,MAAM,GAAG,IAAI,CAAC;IAGlB,CAAC,EAAG,MAAM,GAAG,IAAI,CAAC;IAGlB,UAAU,EAAG,IAAI,CAAC;IAGlB,UAAU,EAAG,IAAI,CAAC;CACrB"}
|
|
@@ -0,0 +1,72 @@
|
|
|
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.Signatures = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let Signatures = class Signatures {
|
|
15
|
+
};
|
|
16
|
+
exports.Signatures = Signatures;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint' }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], Signatures.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], Signatures.prototype, "operation_type", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], Signatures.prototype, "commitment_hash", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Signatures.prototype, "blockchain", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Signatures.prototype, "chain_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Signatures.prototype, "contract_address", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true, default: null }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], Signatures.prototype, "type_data_hash", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true, default: null }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], Signatures.prototype, "signer_address", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true, default: null }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], Signatures.prototype, "v", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true, default: null }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], Signatures.prototype, "r", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true, default: null }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], Signatures.prototype, "s", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
63
|
+
__metadata("design:type", Date)
|
|
64
|
+
], Signatures.prototype, "created_at", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
67
|
+
__metadata("design:type", Date)
|
|
68
|
+
], Signatures.prototype, "updated_at", void 0);
|
|
69
|
+
exports.Signatures = Signatures = __decorate([
|
|
70
|
+
(0, typeorm_1.Entity)({ name: "crypto_signatures", schema: "" }),
|
|
71
|
+
(0, typeorm_1.Unique)(['blockchain', 'chain_id', 'contract_address', 'operation_type', 'reference_id', 'signer_address'])
|
|
72
|
+
], Signatures);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class TokenExecutionThresholds {
|
|
2
|
+
id: number;
|
|
3
|
+
blockchain: string;
|
|
4
|
+
chain_id: string;
|
|
5
|
+
escrow_address: string;
|
|
6
|
+
token_address: string;
|
|
7
|
+
thresholdAmount: number;
|
|
8
|
+
sigsExecutiveBelow: number;
|
|
9
|
+
sigsExecutiveAbove: number;
|
|
10
|
+
sigsManagerBelow: number;
|
|
11
|
+
sigsManagerAbove: number;
|
|
12
|
+
created_at: Date;
|
|
13
|
+
updated_at: Date;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=TokenExecutionThresholds.d.ts.map
|
|
@@ -0,0 +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,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"}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.TokenExecutionThresholds = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let TokenExecutionThresholds = class TokenExecutionThresholds {
|
|
15
|
+
};
|
|
16
|
+
exports.TokenExecutionThresholds = TokenExecutionThresholds;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint' }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], TokenExecutionThresholds.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], TokenExecutionThresholds.prototype, "blockchain", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], TokenExecutionThresholds.prototype, "chain_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], TokenExecutionThresholds.prototype, "escrow_address", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], TokenExecutionThresholds.prototype, "token_address", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'numeric' }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], TokenExecutionThresholds.prototype, "thresholdAmount", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], TokenExecutionThresholds.prototype, "sigsExecutiveBelow", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)(),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], TokenExecutionThresholds.prototype, "sigsExecutiveAbove", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], TokenExecutionThresholds.prototype, "sigsManagerBelow", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)(),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], TokenExecutionThresholds.prototype, "sigsManagerAbove", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
59
|
+
__metadata("design:type", Date)
|
|
60
|
+
], TokenExecutionThresholds.prototype, "created_at", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
63
|
+
__metadata("design:type", Date)
|
|
64
|
+
], TokenExecutionThresholds.prototype, "updated_at", void 0);
|
|
65
|
+
exports.TokenExecutionThresholds = TokenExecutionThresholds = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)({ name: "crypto_token_execution_thresholds", schema: "multisig" }),
|
|
67
|
+
(0, typeorm_1.Unique)(['blockchain', 'chain_id', 'escrow_address', 'token_address'])
|
|
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"}
|