@ercworldio/blockchain-shared 1.0.2-dev-PROJ-1265.1 → 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/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
package/build/contracts/typechain-types/factories/contracts/test/DelegatecallProbe__factory.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DelegatecallProbe__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "address",
|
|
13
|
+
name: "target",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "bytes",
|
|
18
|
+
name: "data",
|
|
19
|
+
type: "bytes",
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
stateMutability: "nonpayable",
|
|
23
|
+
type: "constructor",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
inputs: [],
|
|
27
|
+
name: "callSucceeded",
|
|
28
|
+
outputs: [
|
|
29
|
+
{
|
|
30
|
+
internalType: "bool",
|
|
31
|
+
name: "",
|
|
32
|
+
type: "bool",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
stateMutability: "view",
|
|
36
|
+
type: "function",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
inputs: [],
|
|
40
|
+
name: "returnData",
|
|
41
|
+
outputs: [
|
|
42
|
+
{
|
|
43
|
+
internalType: "bytes",
|
|
44
|
+
name: "",
|
|
45
|
+
type: "bytes",
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
stateMutability: "view",
|
|
49
|
+
type: "function",
|
|
50
|
+
},
|
|
51
|
+
];
|
|
52
|
+
const _bytecode = "0x6080604052346100a55761048180380380610019816100bd565b92833981016040828203126100a5578151916001600160a01b03831683036100a5576020810151906001600160401b0382116100a557019181601f840112156100a557825161006f61006a826100e7565b6100bd565b92818452602082860101116100a5576020815f928261009697018387015e84010152610189565b6040516101c290816102bf8239f35b5f80fd5b634e487b7160e01b5f52604160045260245ffd5b6040519190601f01601f191682016001600160401b038111838210176100e257604052565b6100a9565b6001600160401b0381116100e257601f01601f191660200190565b90600182811c92168015610130575b602083101461011c57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610111565b601f8111610146575050565b5f805260205f20906020601f840160051c8301931061017f575b601f0160051c01905b818110610174575050565b5f8155600101610169565b9091508190610160565b5f918291602082519201905af4903d156102b6573d916101ab61006a846100e7565b9283523d5f602085013e5b159160ff196001541660ff8415161760015580519260018060401b0384116100e2576101eb846101e65f54610102565b61013a565b602093601f8111600114610238578061021b929394955f9161022d575b508160011b915f199060031b1c19161790565b5f555b6102255750565b602081519101fd5b90508401515f610208565b5f8052601f198116947f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563905f5b87811061029e57508260019495969710610286575b5050811b015f5561021e565b8501515f1960f88460031b161c191690555f8061027a565b90916020600181928589015181550193019101610265565b6060916101b656fe6080806040526004361015610012575f80fd5b5f3560e01c90816379b76a501461016d575063ebddbaf614610032575f80fd5b34610169575f366003190112610169576040515f5f54908160011c6001831692831561015f575b60208210841461014b57818552602085019390811561013257506001146100de575b50829003601f01601f191682019167ffffffffffffffff8311818410176100ca576040918391828452602083525180918160208501528484015e5f828201840152601f01601f19168101030190f35b634e487b7160e01b5f52604160045260245ffd5b90505f80527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635f905b82821061011c5750602091508301015f61007b565b6001816020925483858901015201910190610107565b60ff1916845250151560051b830160200190505f61007b565b634e487b7160e01b5f52602260045260245ffd5b90607f1690610059565b5f80fd5b34610169575f3660031901126101695760209060ff6001541615158152f3fea26469706673582212200c95f4424c22e74ca0cb4875360f9aa245ef8f251e136c8d41d8ab5a08fd6f8964736f6c634300081c0033";
|
|
53
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
54
|
+
class DelegatecallProbe__factory extends ethers_1.ContractFactory {
|
|
55
|
+
constructor(...args) {
|
|
56
|
+
if (isSuperArgs(args)) {
|
|
57
|
+
super(...args);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
super(_abi, _bytecode, args[0]);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
getDeployTransaction(target, data, overrides) {
|
|
64
|
+
return super.getDeployTransaction(target, data, overrides || {});
|
|
65
|
+
}
|
|
66
|
+
deploy(target, data, overrides) {
|
|
67
|
+
return super.deploy(target, data, overrides || {});
|
|
68
|
+
}
|
|
69
|
+
connect(runner) {
|
|
70
|
+
return super.connect(runner);
|
|
71
|
+
}
|
|
72
|
+
static createInterface() {
|
|
73
|
+
return new ethers_1.Interface(_abi);
|
|
74
|
+
}
|
|
75
|
+
static connect(address, runner) {
|
|
76
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.DelegatecallProbe__factory = DelegatecallProbe__factory;
|
|
80
|
+
DelegatecallProbe__factory.bytecode = _bytecode;
|
|
81
|
+
DelegatecallProbe__factory.abi = _abi;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/contracts/typechain-types/factories/contracts/test/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DelegatecallProbe__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
var DelegatecallProbe__factory_1 = require("./DelegatecallProbe__factory");
|
|
8
|
+
Object.defineProperty(exports, "DelegatecallProbe__factory", { enumerable: true, get: function () { return DelegatecallProbe__factory_1.DelegatecallProbe__factory; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class AdminOperationThresholds {
|
|
2
|
+
id: number;
|
|
3
|
+
blockchain: string;
|
|
4
|
+
chain_id: string;
|
|
5
|
+
escrow_address: string;
|
|
6
|
+
sigsManager: number;
|
|
7
|
+
sigsExecutive: number;
|
|
8
|
+
created_at: Date;
|
|
9
|
+
updated_at: Date;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=AdminOperationThresholds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdminOperationThresholds.d.ts","sourceRoot":"","sources":["../../src/entities/AdminOperationThresholds.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;IAIxB,WAAW,EAAG,MAAM,CAAC;IAGrB,aAAa,EAAG,MAAM,CAAC;IAGvB,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.AdminOperationThresholds = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let AdminOperationThresholds = class AdminOperationThresholds {
|
|
15
|
+
};
|
|
16
|
+
exports.AdminOperationThresholds = AdminOperationThresholds;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint' }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], AdminOperationThresholds.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], AdminOperationThresholds.prototype, "blockchain", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], AdminOperationThresholds.prototype, "chain_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], AdminOperationThresholds.prototype, "escrow_address", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], AdminOperationThresholds.prototype, "sigsManager", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], AdminOperationThresholds.prototype, "sigsExecutive", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
43
|
+
__metadata("design:type", Date)
|
|
44
|
+
], AdminOperationThresholds.prototype, "created_at", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
47
|
+
__metadata("design:type", Date)
|
|
48
|
+
], AdminOperationThresholds.prototype, "updated_at", void 0);
|
|
49
|
+
exports.AdminOperationThresholds = AdminOperationThresholds = __decorate([
|
|
50
|
+
(0, typeorm_1.Entity)({ name: "crypto_admin_operation_thresholds", schema: "multisig" }),
|
|
51
|
+
(0, typeorm_1.Unique)(['blockchain', 'operation_type', 'chain_id', 'escrow_address'])
|
|
52
|
+
], AdminOperationThresholds);
|
|
@@ -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);
|
|
@@ -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
|
+
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class EscrowRoles {
|
|
2
|
+
id: number;
|
|
3
|
+
user_id: number;
|
|
4
|
+
blockchain: string;
|
|
5
|
+
chain_id: string;
|
|
6
|
+
contract_address: string;
|
|
7
|
+
wallet_address: string;
|
|
8
|
+
role_id: number;
|
|
9
|
+
created_at: Date;
|
|
10
|
+
updated_at: Date;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=EscrowRoles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EscrowRoles.d.ts","sourceRoot":"","sources":["../../src/entities/EscrowRoles.ts"],"names":[],"mappings":"AAEA,qBAGa,WAAW;IAEpB,EAAE,EAAG,MAAM,CAAC;IAGZ,OAAO,EAAG,MAAM,CAAC;IAGjB,UAAU,EAAG,MAAM,CAAC;IAGpB,QAAQ,EAAG,MAAM,CAAC;IAGlB,gBAAgB,EAAG,MAAM,CAAC;IAG1B,cAAc,EAAG,MAAM,CAAC;IAKxB,OAAO,EAAG,MAAM,CAAC;IAIjB,UAAU,EAAG,IAAI,CAAC;IAGlB,UAAU,EAAG,IAAI,CAAC;CACrB"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.EscrowRoles = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let EscrowRoles = class EscrowRoles {
|
|
15
|
+
};
|
|
16
|
+
exports.EscrowRoles = EscrowRoles;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint' }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], EscrowRoles.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], EscrowRoles.prototype, "user_id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], EscrowRoles.prototype, "blockchain", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], EscrowRoles.prototype, "chain_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], EscrowRoles.prototype, "contract_address", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], EscrowRoles.prototype, "wallet_address", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'bigint' }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], EscrowRoles.prototype, "role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
47
|
+
__metadata("design:type", Date)
|
|
48
|
+
], EscrowRoles.prototype, "created_at", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
51
|
+
__metadata("design:type", Date)
|
|
52
|
+
], EscrowRoles.prototype, "updated_at", void 0);
|
|
53
|
+
exports.EscrowRoles = EscrowRoles = __decorate([
|
|
54
|
+
(0, typeorm_1.Entity)({ name: "crypto_escrow_roles", schema: "multisig" }),
|
|
55
|
+
(0, typeorm_1.Unique)(['blockchain', 'chain_id', 'contract_address', 'wallet_address', 'role_id']),
|
|
56
|
+
(0, typeorm_1.Index)(['wallet_address', 'role_id', 'user_id'])
|
|
57
|
+
], EscrowRoles);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class GlobalTimelock {
|
|
2
|
+
id: number;
|
|
3
|
+
blockchain: string;
|
|
4
|
+
chain_id: string;
|
|
5
|
+
escrow_address: string;
|
|
6
|
+
token_address: string;
|
|
7
|
+
thresholdAmount: number;
|
|
8
|
+
durationBelow: number;
|
|
9
|
+
durationAbove: number;
|
|
10
|
+
created_at: Date;
|
|
11
|
+
updated_at: Date;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=GlobalTimelock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.GlobalTimelock = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let GlobalTimelock = class GlobalTimelock {
|
|
15
|
+
};
|
|
16
|
+
exports.GlobalTimelock = GlobalTimelock;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint' }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], GlobalTimelock.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GlobalTimelock.prototype, "blockchain", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], GlobalTimelock.prototype, "chain_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GlobalTimelock.prototype, "escrow_address", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], GlobalTimelock.prototype, "token_address", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'numeric' }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], GlobalTimelock.prototype, "thresholdAmount", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'bigint' }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], GlobalTimelock.prototype, "durationBelow", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'bigint' }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], GlobalTimelock.prototype, "durationAbove", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
51
|
+
__metadata("design:type", Date)
|
|
52
|
+
], GlobalTimelock.prototype, "created_at", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
55
|
+
__metadata("design:type", Date)
|
|
56
|
+
], GlobalTimelock.prototype, "updated_at", void 0);
|
|
57
|
+
exports.GlobalTimelock = GlobalTimelock = __decorate([
|
|
58
|
+
(0, typeorm_1.Entity)({ name: "crypto_withdrawal_global_timelock", schema: "multisig" }),
|
|
59
|
+
(0, typeorm_1.Unique)(['blockchain', 'chain_id', 'escrow_address', 'token_address'])
|
|
60
|
+
], GlobalTimelock);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class GranularTimelock {
|
|
2
|
+
id: number;
|
|
3
|
+
operation_type: number;
|
|
4
|
+
blockchain: string;
|
|
5
|
+
chain_id: string;
|
|
6
|
+
escrow_address: string;
|
|
7
|
+
receiver_address: string;
|
|
8
|
+
duration: number;
|
|
9
|
+
created_at: Date;
|
|
10
|
+
updated_at: Date;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=GranularTimelock%20.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;IAIZ,cAAc,EAAG,MAAM,CAAC;IAGxB,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,56 @@
|
|
|
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", Number)
|
|
24
|
+
], GranularTimelock.prototype, "operation_type", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], GranularTimelock.prototype, "blockchain", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GranularTimelock.prototype, "chain_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], GranularTimelock.prototype, "escrow_address", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], GranularTimelock.prototype, "receiver_address", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'bigint' }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], GranularTimelock.prototype, "duration", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
47
|
+
__metadata("design:type", Date)
|
|
48
|
+
], GranularTimelock.prototype, "created_at", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
51
|
+
__metadata("design:type", Date)
|
|
52
|
+
], GranularTimelock.prototype, "updated_at", void 0);
|
|
53
|
+
exports.GranularTimelock = GranularTimelock = __decorate([
|
|
54
|
+
(0, typeorm_1.Entity)({ name: "crypto_withdrawal_granular_timelock", schema: "" }),
|
|
55
|
+
(0, typeorm_1.Unique)(['blockchain', 'chain_id', 'escrow_address', 'receiver_address'])
|
|
56
|
+
], GranularTimelock);
|
|
@@ -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"}
|