@ercworldio/blockchain-shared 1.0.3-dev.1-PROJ-1296.0 → 1.0.3-dev.3

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.
Files changed (96) hide show
  1. package/build/chains/networks_prod-bu.json +5 -2
  2. package/build/chains/networks_prod-dz.json +10 -9
  3. package/build/chains/networks_stg-bu.json +2 -1
  4. package/build/chains/networks_stg-dz.json +2 -1
  5. package/build/chains/networks_stg-sh.json +2 -1
  6. package/build/chains/networks_stg-yb.json +2 -1
  7. package/build/contracts/artifacts/Escrow.json +490 -1979
  8. package/build/contracts/typechain-types/@openzeppelin/contracts/interfaces/index.d.ts +1 -0
  9. package/build/contracts/typechain-types/@openzeppelin/contracts/interfaces/index.d.ts.map +1 -1
  10. package/build/contracts/typechain-types/@openzeppelin/contracts/utils/index.d.ts +6 -0
  11. package/build/contracts/typechain-types/@openzeppelin/contracts/utils/index.d.ts.map +1 -1
  12. package/build/contracts/typechain-types/contracts/escrow/Escrow.d.ts +76 -761
  13. package/build/contracts/typechain-types/contracts/escrow/Escrow.d.ts.map +1 -1
  14. package/build/contracts/typechain-types/contracts/escrow/EscrowAccessControl.d.ts +17 -65
  15. package/build/contracts/typechain-types/contracts/escrow/EscrowAccessControl.d.ts.map +1 -1
  16. package/build/contracts/typechain-types/contracts/index.d.ts +0 -2
  17. package/build/contracts/typechain-types/contracts/index.d.ts.map +1 -1
  18. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/interfaces/index.d.ts +1 -0
  19. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/interfaces/index.d.ts.map +1 -1
  20. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/interfaces/index.js +3 -1
  21. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.d.ts +1 -1
  22. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.d.ts.map +1 -1
  23. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.js +1 -1
  24. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/utils/index.d.ts +4 -0
  25. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/utils/index.d.ts.map +1 -1
  26. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/utils/index.js +7 -1
  27. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowAccessControl__factory.d.ts +12 -286
  28. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowAccessControl__factory.d.ts.map +1 -1
  29. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowAccessControl__factory.js +12 -374
  30. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowErrors__factory.d.ts +1 -137
  31. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowErrors__factory.d.ts.map +1 -1
  32. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowErrors__factory.js +1 -182
  33. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowSignature__factory.d.ts +1 -1
  34. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowSignature__factory.d.ts.map +1 -1
  35. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowSignature__factory.js +1 -1
  36. package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.d.ts +96 -1245
  37. package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.d.ts.map +1 -1
  38. package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.js +241 -1730
  39. package/build/contracts/typechain-types/factories/contracts/escrow/TokensWhitelist__factory.d.ts +1 -1
  40. package/build/contracts/typechain-types/factories/contracts/escrow/TokensWhitelist__factory.d.ts.map +1 -1
  41. package/build/contracts/typechain-types/factories/contracts/escrow/TokensWhitelist__factory.js +1 -1
  42. package/build/contracts/typechain-types/factories/contracts/index.d.ts +0 -1
  43. package/build/contracts/typechain-types/factories/contracts/index.d.ts.map +1 -1
  44. package/build/contracts/typechain-types/factories/contracts/index.js +1 -2
  45. package/build/contracts/typechain-types/factories/contracts/mock/erc20/ERC20Mock__factory.d.ts +1 -1
  46. package/build/contracts/typechain-types/factories/contracts/mock/erc20/ERC20Mock__factory.d.ts.map +1 -1
  47. package/build/contracts/typechain-types/factories/contracts/mock/erc20/ERC20Mock__factory.js +1 -1
  48. package/build/contracts/typechain-types/index.d.ts +10 -4
  49. package/build/contracts/typechain-types/index.d.ts.map +1 -1
  50. package/build/contracts/typechain-types/index.js +11 -5
  51. package/build/errors/errors.d.ts +3 -0
  52. package/build/errors/errors.d.ts.map +1 -1
  53. package/build/errors/errors.js +6 -0
  54. package/package.json +1 -1
  55. package/build/contracts/typechain-types/contracts/lib/Events.d.ts +0 -386
  56. package/build/contracts/typechain-types/contracts/lib/Events.d.ts.map +0 -1
  57. package/build/contracts/typechain-types/contracts/lib/Events.js +0 -2
  58. package/build/contracts/typechain-types/contracts/lib/MultisigLib.d.ts +0 -21
  59. package/build/contracts/typechain-types/contracts/lib/MultisigLib.d.ts.map +0 -1
  60. package/build/contracts/typechain-types/contracts/lib/MultisigLib.js +0 -2
  61. package/build/contracts/typechain-types/contracts/lib/index.d.ts +0 -3
  62. package/build/contracts/typechain-types/contracts/lib/index.d.ts.map +0 -1
  63. package/build/contracts/typechain-types/contracts/lib/index.js +0 -2
  64. package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.d.ts +0 -373
  65. package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.d.ts.map +0 -1
  66. package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.js +0 -473
  67. package/build/contracts/typechain-types/factories/contracts/lib/MultisigLib__factory.d.ts +0 -55
  68. package/build/contracts/typechain-types/factories/contracts/lib/MultisigLib__factory.d.ts.map +0 -1
  69. package/build/contracts/typechain-types/factories/contracts/lib/MultisigLib__factory.js +0 -82
  70. package/build/contracts/typechain-types/factories/contracts/lib/index.d.ts +0 -3
  71. package/build/contracts/typechain-types/factories/contracts/lib/index.d.ts.map +0 -1
  72. package/build/contracts/typechain-types/factories/contracts/lib/index.js +0 -10
  73. package/build/entities/AdminOperationThresholds.d.ts +0 -12
  74. package/build/entities/AdminOperationThresholds.d.ts.map +0 -1
  75. package/build/entities/AdminOperationThresholds.js +0 -56
  76. package/build/entities/EscrowRoles.d.ts +0 -12
  77. package/build/entities/EscrowRoles.d.ts.map +0 -1
  78. package/build/entities/EscrowRoles.js +0 -57
  79. package/build/entities/GlobalTimelock.d.ts +0 -14
  80. package/build/entities/GlobalTimelock.d.ts.map +0 -1
  81. package/build/entities/GlobalTimelock.js +0 -64
  82. package/build/entities/GranularTimelock .d.ts +0 -12
  83. package/build/entities/GranularTimelock .d.ts.map +0 -1
  84. package/build/entities/GranularTimelock .js +0 -56
  85. package/build/entities/OperationType.d.ts +0 -18
  86. package/build/entities/OperationType.d.ts.map +0 -1
  87. package/build/entities/OperationType.js +0 -50
  88. package/build/entities/RoleHash.d.ts +0 -11
  89. package/build/entities/RoleHash.d.ts.map +0 -1
  90. package/build/entities/RoleHash.js +0 -52
  91. package/build/entities/Signatures.d.ts +0 -16
  92. package/build/entities/Signatures.d.ts.map +0 -1
  93. package/build/entities/Signatures.js +0 -72
  94. package/build/entities/TokenExecutionThresholds.d.ts +0 -16
  95. package/build/entities/TokenExecutionThresholds.d.ts.map +0 -1
  96. package/build/entities/TokenExecutionThresholds.js +0 -72
@@ -1,56 +0,0 @@
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", Number)
24
- ], AdminOperationThresholds.prototype, "operation_type", void 0);
25
- __decorate([
26
- (0, typeorm_1.Column)(),
27
- __metadata("design:type", String)
28
- ], AdminOperationThresholds.prototype, "blockchain", void 0);
29
- __decorate([
30
- (0, typeorm_1.Column)({ type: 'varchar' }),
31
- __metadata("design:type", String)
32
- ], AdminOperationThresholds.prototype, "chain_id", void 0);
33
- __decorate([
34
- (0, typeorm_1.Column)({ type: 'varchar' }),
35
- __metadata("design:type", String)
36
- ], AdminOperationThresholds.prototype, "escrow_address", void 0);
37
- __decorate([
38
- (0, typeorm_1.Column)(),
39
- __metadata("design:type", Number)
40
- ], AdminOperationThresholds.prototype, "sigsManager", void 0);
41
- __decorate([
42
- (0, typeorm_1.Column)(),
43
- __metadata("design:type", Number)
44
- ], AdminOperationThresholds.prototype, "sigsExecutive", void 0);
45
- __decorate([
46
- (0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
47
- __metadata("design:type", Date)
48
- ], AdminOperationThresholds.prototype, "created_at", void 0);
49
- __decorate([
50
- (0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
51
- __metadata("design:type", Date)
52
- ], AdminOperationThresholds.prototype, "updated_at", void 0);
53
- exports.AdminOperationThresholds = AdminOperationThresholds = __decorate([
54
- (0, typeorm_1.Entity)({ name: "crypto_admin_operation_thresholds", schema: "" }),
55
- (0, typeorm_1.Unique)(['blockchain', 'operation_type', 'chain_id', 'escrow_address'])
56
- ], AdminOperationThresholds);
@@ -1,12 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,57 +0,0 @@
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: "" }),
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);
@@ -1,14 +0,0 @@
1
- export declare class GlobalTimelock {
2
- id: number;
3
- operation_type: number;
4
- blockchain: string;
5
- chain_id: string;
6
- escrow_address: string;
7
- token_address: string;
8
- thresholdAmount: number;
9
- durationBelow: number;
10
- durationAbove: number;
11
- created_at: Date;
12
- updated_at: Date;
13
- }
14
- //# sourceMappingURL=GlobalTimelock.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GlobalTimelock.d.ts","sourceRoot":"","sources":["../../src/entities/GlobalTimelock.ts"],"names":[],"mappings":"AAEA,qBAEa,cAAc;IAGvB,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,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"}
@@ -1,64 +0,0 @@
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", Number)
24
- ], GlobalTimelock.prototype, "operation_type", void 0);
25
- __decorate([
26
- (0, typeorm_1.Column)(),
27
- __metadata("design:type", String)
28
- ], GlobalTimelock.prototype, "blockchain", void 0);
29
- __decorate([
30
- (0, typeorm_1.Column)({ type: 'varchar' }),
31
- __metadata("design:type", String)
32
- ], GlobalTimelock.prototype, "chain_id", void 0);
33
- __decorate([
34
- (0, typeorm_1.Column)({ type: 'varchar' }),
35
- __metadata("design:type", String)
36
- ], GlobalTimelock.prototype, "escrow_address", void 0);
37
- __decorate([
38
- (0, typeorm_1.Column)({ type: 'varchar' }),
39
- __metadata("design:type", String)
40
- ], GlobalTimelock.prototype, "token_address", void 0);
41
- __decorate([
42
- (0, typeorm_1.Column)({ type: 'numeric' }),
43
- __metadata("design:type", Number)
44
- ], GlobalTimelock.prototype, "thresholdAmount", void 0);
45
- __decorate([
46
- (0, typeorm_1.Column)({ type: 'bigint' }),
47
- __metadata("design:type", Number)
48
- ], GlobalTimelock.prototype, "durationBelow", void 0);
49
- __decorate([
50
- (0, typeorm_1.Column)({ type: 'bigint' }),
51
- __metadata("design:type", Number)
52
- ], GlobalTimelock.prototype, "durationAbove", void 0);
53
- __decorate([
54
- (0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
55
- __metadata("design:type", Date)
56
- ], GlobalTimelock.prototype, "created_at", void 0);
57
- __decorate([
58
- (0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
59
- __metadata("design:type", Date)
60
- ], GlobalTimelock.prototype, "updated_at", void 0);
61
- exports.GlobalTimelock = GlobalTimelock = __decorate([
62
- (0, typeorm_1.Entity)({ name: "crypto_withdrawal_global_timelock", schema: "" }),
63
- (0, typeorm_1.Unique)(['blockchain', 'chain_id', 'escrow_address', 'token_address'])
64
- ], GlobalTimelock);
@@ -1,12 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,56 +0,0 @@
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);
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,50 +0,0 @@
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
- */
@@ -1,11 +0,0 @@
1
- export declare class RoleHash {
2
- id: number;
3
- blockchain: string;
4
- role_name: string;
5
- role_alias: string;
6
- role_hash: string;
7
- operation_type: number;
8
- created_at: Date;
9
- updated_at: Date;
10
- }
11
- //# sourceMappingURL=RoleHash.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,52 +0,0 @@
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: "" }),
51
- (0, typeorm_1.Unique)(['blockchain', 'role_name', 'role_hash'])
52
- ], RoleHash);
@@ -1,16 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,72 +0,0 @@
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);
@@ -1,16 +0,0 @@
1
- export declare class TokenExecutionThresholds {
2
- id: number;
3
- operation_type: number;
4
- blockchain: string;
5
- chain_id: string;
6
- escrow_address: string;
7
- token_address: string;
8
- thresholdAmount: number;
9
- sigsExecutiveBelow: number;
10
- sigsExecutiveAbove: number;
11
- sigsManagerBelow: number;
12
- sigsManagerAbove: number;
13
- created_at: Date;
14
- updated_at: Date;
15
- }
16
- //# sourceMappingURL=TokenExecutionThresholds.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TokenExecutionThresholds.d.ts","sourceRoot":"","sources":["../../src/entities/TokenExecutionThresholds.ts"],"names":[],"mappings":"AAEA,qBAEa,wBAAwB;IAEjC,EAAE,EAAG,MAAM,CAAC;IAGZ,cAAc,EAAG,MAAM,CAAC;IAGxB,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"}
@@ -1,72 +0,0 @@
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", Number)
24
- ], TokenExecutionThresholds.prototype, "operation_type", void 0);
25
- __decorate([
26
- (0, typeorm_1.Column)(),
27
- __metadata("design:type", String)
28
- ], TokenExecutionThresholds.prototype, "blockchain", void 0);
29
- __decorate([
30
- (0, typeorm_1.Column)({ type: 'varchar' }),
31
- __metadata("design:type", String)
32
- ], TokenExecutionThresholds.prototype, "chain_id", void 0);
33
- __decorate([
34
- (0, typeorm_1.Column)({ type: 'varchar' }),
35
- __metadata("design:type", String)
36
- ], TokenExecutionThresholds.prototype, "escrow_address", void 0);
37
- __decorate([
38
- (0, typeorm_1.Column)({ type: 'varchar' }),
39
- __metadata("design:type", String)
40
- ], TokenExecutionThresholds.prototype, "token_address", void 0);
41
- __decorate([
42
- (0, typeorm_1.Column)({ type: 'numeric' }),
43
- __metadata("design:type", Number)
44
- ], TokenExecutionThresholds.prototype, "thresholdAmount", void 0);
45
- __decorate([
46
- (0, typeorm_1.Column)(),
47
- __metadata("design:type", Number)
48
- ], TokenExecutionThresholds.prototype, "sigsExecutiveBelow", void 0);
49
- __decorate([
50
- (0, typeorm_1.Column)(),
51
- __metadata("design:type", Number)
52
- ], TokenExecutionThresholds.prototype, "sigsExecutiveAbove", void 0);
53
- __decorate([
54
- (0, typeorm_1.Column)(),
55
- __metadata("design:type", Number)
56
- ], TokenExecutionThresholds.prototype, "sigsManagerBelow", void 0);
57
- __decorate([
58
- (0, typeorm_1.Column)(),
59
- __metadata("design:type", Number)
60
- ], TokenExecutionThresholds.prototype, "sigsManagerAbove", void 0);
61
- __decorate([
62
- (0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
63
- __metadata("design:type", Date)
64
- ], TokenExecutionThresholds.prototype, "created_at", void 0);
65
- __decorate([
66
- (0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
67
- __metadata("design:type", Date)
68
- ], TokenExecutionThresholds.prototype, "updated_at", void 0);
69
- exports.TokenExecutionThresholds = TokenExecutionThresholds = __decorate([
70
- (0, typeorm_1.Entity)({ name: "crypto_token_execution_thresholds", schema: "" }),
71
- (0, typeorm_1.Unique)(['blockchain', 'chain_id', 'escrow_address', 'token_address'])
72
- ], TokenExecutionThresholds);