@ercworldio/blockchain-shared 1.0.3-dev.3-PROJ-1296.15 → 1.0.3-dev.3-PROJ-1296.16

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.
@@ -44,7 +44,7 @@ declare class EscrowInteraction extends Errors {
44
44
  transactionHash: null;
45
45
  receipt: null;
46
46
  error: {
47
- name: "ContractBusy" | "ContractPaused" | "InvalidSignature" | "SignatureAlreadyUsed" | "ZeroValue" | "ZeroAddress" | "RequestAlreadyFulfilled" | "EtherDirectTransferNotAllowed" | "DepositOnlyERC20" | "TokenNotAllowed" | "InsufficientBalance" | "InsufficientReserves" | "TransferError" | "NotAdmin" | "NotAuthorized" | "UnknownError";
47
+ name: "ContractBusy" | "ContractPaused" | "InvalidSignature" | "SignatureAlreadyUsed" | "ZeroValue" | "ZeroAddress" | "RequestAlreadyFulfilled" | "EtherDirectTransferNotAllowed" | "DepositOnlyERC20" | "TokenNotAllowed" | "InsufficientBalance" | "InsufficientReserves" | "TransferError" | "NotAdmin" | "NotAuthorized" | "ExceedsLimit" | "UnknownError";
48
48
  message: string;
49
49
  data?: any;
50
50
  };
@@ -61,7 +61,7 @@ declare class EscrowInteraction extends Errors {
61
61
  transactionHash: null;
62
62
  receipt: null;
63
63
  error: {
64
- name: "ContractBusy" | "ContractPaused" | "InvalidSignature" | "SignatureAlreadyUsed" | "ZeroValue" | "ZeroAddress" | "RequestAlreadyFulfilled" | "EtherDirectTransferNotAllowed" | "DepositOnlyERC20" | "TokenNotAllowed" | "InsufficientBalance" | "InsufficientReserves" | "TransferError" | "NotAdmin" | "NotAuthorized" | "UnknownError";
64
+ name: "ContractBusy" | "ContractPaused" | "InvalidSignature" | "SignatureAlreadyUsed" | "ZeroValue" | "ZeroAddress" | "RequestAlreadyFulfilled" | "EtherDirectTransferNotAllowed" | "DepositOnlyERC20" | "TokenNotAllowed" | "InsufficientBalance" | "InsufficientReserves" | "TransferError" | "NotAdmin" | "NotAuthorized" | "ExceedsLimit" | "UnknownError";
65
65
  message: string;
66
66
  data?: any;
67
67
  };
@@ -108,7 +108,7 @@ declare class EscrowInteraction extends Errors {
108
108
  receipt: null;
109
109
  executed_at: Date;
110
110
  error: {
111
- name: "ContractBusy" | "ContractPaused" | "InvalidSignature" | "SignatureAlreadyUsed" | "ZeroValue" | "ZeroAddress" | "RequestAlreadyFulfilled" | "EtherDirectTransferNotAllowed" | "DepositOnlyERC20" | "TokenNotAllowed" | "InsufficientBalance" | "InsufficientReserves" | "TransferError" | "NotAdmin" | "NotAuthorized" | "UnknownError";
111
+ name: "ContractBusy" | "ContractPaused" | "InvalidSignature" | "SignatureAlreadyUsed" | "ZeroValue" | "ZeroAddress" | "RequestAlreadyFulfilled" | "EtherDirectTransferNotAllowed" | "DepositOnlyERC20" | "TokenNotAllowed" | "InsufficientBalance" | "InsufficientReserves" | "TransferError" | "NotAdmin" | "NotAuthorized" | "ExceedsLimit" | "UnknownError";
112
112
  message: string;
113
113
  data?: any;
114
114
  };
@@ -148,7 +148,7 @@ declare class EscrowInteraction extends Errors {
148
148
  transactionHash: null;
149
149
  receipt: null;
150
150
  error: {
151
- name: "ContractBusy" | "ContractPaused" | "InvalidSignature" | "SignatureAlreadyUsed" | "ZeroValue" | "ZeroAddress" | "RequestAlreadyFulfilled" | "EtherDirectTransferNotAllowed" | "DepositOnlyERC20" | "TokenNotAllowed" | "InsufficientBalance" | "InsufficientReserves" | "TransferError" | "NotAdmin" | "NotAuthorized" | "UnknownError";
151
+ name: "ContractBusy" | "ContractPaused" | "InvalidSignature" | "SignatureAlreadyUsed" | "ZeroValue" | "ZeroAddress" | "RequestAlreadyFulfilled" | "EtherDirectTransferNotAllowed" | "DepositOnlyERC20" | "TokenNotAllowed" | "InsufficientBalance" | "InsufficientReserves" | "TransferError" | "NotAdmin" | "NotAuthorized" | "ExceedsLimit" | "UnknownError";
152
152
  message: string;
153
153
  data?: any;
154
154
  };
@@ -59,7 +59,7 @@ export interface NotAuthorizedError {
59
59
  name: "NotAuthorized";
60
60
  args: [];
61
61
  }
62
- type ErrorName = "NotAuthorized" | "NotAdmin" | "TransferError" | "InsufficientReserves" | "InsufficientBalance" | "TokenNotAllowed" | "DepositOnlyERC20" | "EtherDirectTransferNotAllowed" | "RequestAlreadyFulfilled" | "ZeroAddress" | "ZeroValue" | "SignatureAlreadyUsed" | "InvalidSignature" | "ContractPaused" | "ContractBusy" | "UnknownError";
62
+ type ErrorName = "NotAuthorized" | "NotAdmin" | "TransferError" | "InsufficientReserves" | "InsufficientBalance" | "TokenNotAllowed" | "DepositOnlyERC20" | "EtherDirectTransferNotAllowed" | "RequestAlreadyFulfilled" | "ZeroAddress" | "ZeroValue" | "SignatureAlreadyUsed" | "InvalidSignature" | "ContractPaused" | "ContractBusy" | "ExceedsLimit" | "UnknownError";
63
63
  export interface EscrowErrorMessage {
64
64
  name: ErrorName;
65
65
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"EscrowErrors.d.ts","sourceRoot":"","sources":["../../src/contracts/EscrowErrors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1C,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,cAAc,CAAC;IACrB,IAAI,EAAE,EAAE,CAAC;CACZ;AAED,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,gBAAgB,CAAC;IACvB,IAAI,EAAE,EAAE,CAAC;CACZ;AAED,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,EAAE,EAAE,CAAC;CACZ;AAED,MAAM,WAAW,yBAAyB;IACtC,IAAI,EAAE,sBAAsB,CAAC;IAC7B,IAAI,EAAE,EAAE,CAAC;CACZ;AAED,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,EAAE,CAAC;CACZ;AAED,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,aAAa,CA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 @@ const parseDecodedError = (decodedError) => {
40
40
  return { name: decodedError.name, message: `Transfer to the Ethereum Zero Address is not allowed.` };
41
41
  case "ZeroValue":
42
42
  return { name: decodedError.name, message: `Token amount cannot be zero.` };
43
+ case "ExceedsLimit":
44
+ return { name: decodedError.name, message: "Funding amount exceeded hard limit." };
43
45
  default:
44
46
  return { name: "UnknownError", message: "Unexpected error occured." };
45
47
  }
@@ -0,0 +1,15 @@
1
+ export type CommitmentStatus = "scheduled" | "executed" | "cancelled";
2
+ export declare class OperationType {
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,aAAa;IAEtB,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"}
@@ -0,0 +1,64 @@
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, "chain_id", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: "varchar" }),
27
+ __metadata("design:type", String)
28
+ ], OperationType.prototype, "escrow_contract", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: "varchar", nullable: false }),
31
+ __metadata("design:type", String)
32
+ ], OperationType.prototype, "commitment_hash", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: "bigint" }),
35
+ __metadata("design:type", Number)
36
+ ], OperationType.prototype, "request_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: "enum" }),
39
+ __metadata("design:type", String)
40
+ ], OperationType.prototype, "status", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: "varchar", nullable: true }),
43
+ __metadata("design:type", Object)
44
+ ], OperationType.prototype, "tx_hash", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], OperationType.prototype, "finalized_at", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'timestamptz' }),
51
+ __metadata("design:type", Date)
52
+ ], OperationType.prototype, "execute_at", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'timestamptz', default: () => 'CURRENT_TIMESTAMP' }),
55
+ __metadata("design:type", Date)
56
+ ], OperationType.prototype, "created_at", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'timestamptz', default: () => 'CURRENT_TIMESTAMP' }),
59
+ __metadata("design:type", Date)
60
+ ], OperationType.prototype, "updated_at", void 0);
61
+ exports.OperationType = OperationType = __decorate([
62
+ (0, typeorm_1.Entity)({ name: "crypto_withdrawal_commitment", schema: "" }),
63
+ (0, typeorm_1.Unique)(['blockchain', 'chain_id', 'escrow_contract', 'commitment_hash', 'request_id'])
64
+ ], OperationType);
@@ -1,5 +1,5 @@
1
1
  import { Pool } from "pg";
2
- import { GetAdminOperationThreshold, UpsertAdminOperationThreshold, GetGlobalTimelock, UpsertGlobalTimelock, GetGranularTimelock, UpsertGranularTimelock, GetTokenExecutionThreshold, UpsertTokenExecutionThreshold } from "../../types";
2
+ import { GetAdminOperationThreshold, UpsertAdminOperationThreshold, GetGlobalTimelock, UpsertGlobalTimelock, GetGranularTimelock, UpsertGranularTimelock, GetTokenExecutionThreshold, UpsertTokenExecutionThreshold, FnWithdrawalScheduledPayload, FnWithdrawalScheduledResult, FnWithdrawalExecutedResult, FnWithdrawalExecutedPayload, FnWithdrawalCancelledPayload, FnWithdrawalCancelledResult, FnGetWithdrawalCommitmentsResult, FnGetWithdrawalCommitmentsPayload } from "../../types";
3
3
  import { OperationType } from "../../../contracts/types/escrow";
4
4
  /**
5
5
  * Adapter class for interfacing the DB functions
@@ -22,6 +22,10 @@ declare class MultisigService {
22
22
  static fn_get_token_execution_thresholds(pool: Pool, blockchain: string, chainId: string, escrow_address: string): Promise<GetTokenExecutionThreshold[]>;
23
23
  /** Inserts or updates the above/below signature thresholds for a token/escrow pair. */
24
24
  static fn_upsert_token_execution_threshold(pool: Pool, blockchain: string, chainId: string, escrow_address: string, token_address: string, threshold_amount: number, sigs_executive_below: number, sigs_executive_above: number, sigs_manager_below: number, sigs_manager_above: number): Promise<UpsertTokenExecutionThreshold>;
25
+ static fn_get_withdrawal_commitments(pool: Pool, data: FnGetWithdrawalCommitmentsPayload): Promise<FnGetWithdrawalCommitmentsResult[]>;
26
+ static fn_withdrawal_scheduled(pool: Pool, data: FnWithdrawalScheduledPayload): Promise<FnWithdrawalScheduledResult>;
27
+ static fn_withdrawal_executed(pool: Pool, data: FnWithdrawalExecutedPayload): Promise<FnWithdrawalExecutedResult>;
28
+ static fn_withdrawal_cancelled(pool: Pool, data: FnWithdrawalCancelledPayload): Promise<FnWithdrawalCancelledResult>;
25
29
  }
26
30
  export default MultisigService;
27
31
  //# sourceMappingURL=MultisigService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MultisigService.d.ts","sourceRoot":"","sources":["../../../../src/services/db/multisig/MultisigService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAE1B,OAAO,EACH,0BAA0B,EAC1B,6BAA6B,EAC7B,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAChC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAGhE;;;GAGG;AACH,cAAM,eAAe;IAMjB,6EAA6E;WAChE,iCAAiC,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC;IAS9J,0FAA0F;WAC7E,mCAAmC,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,cAA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AAgC,EAAE,CAAC;WAW/H,uBAAuB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,2BAA2B,CAAC;WAS7G,sBAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,0BAA0B,CAAC;WAW1G,uBAAuB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAW7H;AAED,eAAe,eAAe,CAAC"}
@@ -95,5 +95,40 @@ class MultisigService {
95
95
  return result.rows[0].fn_upsert_token_execution_threshold;
96
96
  });
97
97
  }
98
+ ///////////////////////////////////////////
99
+ /// Withdrawal Commitment
100
+ ///////////////////////////////////////////
101
+ static fn_get_withdrawal_commitments(pool, data) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ const result = yield pool.query(`SELECT multisig.fn_get_withdrawal_commitments($1::text,$2::text,$3::text,$4::text)`, [data.p_blockchain, data.p_chain_id, data.p_escrow_contract, data.p_status]);
104
+ if (!result)
105
+ throw new Error(`DB FN error: multisig.fn_get_withdrawal_commitments()`);
106
+ return result.rows[0].fn_get_withdrawal_commitments;
107
+ });
108
+ }
109
+ static fn_withdrawal_scheduled(pool, data) {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ const result = yield pool.query(`SELECT multisig.fn_withdrawal_scheduled($1::text,$2::text,$3::text,$4::text,$5::bigint,$6::bigint,$7::numeric,$8::text,$9::text,$10::boolean,$11::text,$12::text,$13::text,$14::bigint,$15::bigint,$16::numeric)`, [data.p_blockchain, data.p_chain_id, data.p_escrow_contract, data.p_commitment_hash, data.p_request_id, data.p_execute_at, data.p_amount, data.p_token_address, data.p_receiver_address, data.p_confirmed, data.p_caller, data.p_sender, data.p_tx_hash, data.p_timestamp, data.p_block_number, data.p_gas_used]);
112
+ if (!result)
113
+ throw new Error(`DB FN error: multisig.fn_withdrawal_scheduled()`);
114
+ return result.rows[0].fn_withdrawal_scheduled;
115
+ });
116
+ }
117
+ static fn_withdrawal_executed(pool, data) {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ const result = yield pool.query(`SELECT multisig.fn_withdrawal_executed($1::text,$2::text,$3::text,$4::text,$5::bigint,$6::boolean,$7::text,$8::text,$9::text,$10::bigint,$11:bigint,$12::numeric)`, [data.p_blockchain, data.p_chain_id, data.p_escrow_contract, data.p_commitment_hash, data.p_request_id, data.p_confirmed, data.p_caller, data.p_sender, data.p_tx_hash, data.p_timestamp, data.p_block_number, data.p_gas_used]);
120
+ if (!result)
121
+ throw new Error(`DB FN error: multisig.fn_withdrawal_executed()`);
122
+ return result.rows[0].fn_withdrawal_executed;
123
+ });
124
+ }
125
+ static fn_withdrawal_cancelled(pool, data) {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ const result = yield pool.query(`SELECT multisig.fn_withdrawal_cancelled($1::text,$2::text,$3::text,$4::text,$5::bigint,$6::boolean,$7::text,$8::text,$9::text,$10::bigint,$11::bigint,$12::numeric)`, [data.p_blockchain, data.p_chain_id, data.p_escrow_contract, data.p_commitment_hash, data.p_request_id, data.p_confirmed, data.p_caller, data.p_sender, data.p_tx_hash, data.p_timestamp, data.p_block_number, data.p_gas_used]);
128
+ if (!result)
129
+ throw new Error(`DB FN error: multisig.fn_withdrawal_cancelled()`);
130
+ return result.rows[0].fn_withdrawal_cancelled;
131
+ });
132
+ }
98
133
  }
99
134
  exports.default = MultisigService;
@@ -85,4 +85,70 @@ export interface UpsertTokenExecutionThreshold {
85
85
  sigsManagerBelow: number;
86
86
  sigsManagerAbove: number;
87
87
  }
88
+ interface WithdrawalCommitment {
89
+ id: number;
90
+ blockchain: string;
91
+ chainId: string;
92
+ escrowContract: string;
93
+ commitmentHash: string;
94
+ requestId: number;
95
+ statusId: number;
96
+ status: string;
97
+ txHash: string | null;
98
+ }
99
+ export interface FnWithdrawalScheduledPayload {
100
+ p_blockchain: string;
101
+ p_chain_id: string;
102
+ p_escrow_contract: string;
103
+ p_commitment_hash: string;
104
+ p_request_id: number;
105
+ p_execute_at: number;
106
+ p_amount: number;
107
+ p_token_address: string;
108
+ p_receiver_address: string;
109
+ p_confirmed: boolean;
110
+ p_caller: string;
111
+ p_sender: string;
112
+ p_tx_hash: string;
113
+ p_timestamp: number;
114
+ p_block_number: number;
115
+ p_gas_used: number;
116
+ }
117
+ export interface FnWithdrawalScheduledResult extends WithdrawalCommitment {
118
+ executeAt: Date | null;
119
+ }
120
+ export interface FnWithdrawalExecutedPayload {
121
+ p_blockchain: string;
122
+ p_chain_id: string;
123
+ p_escrow_contract: string;
124
+ p_commitment_hash: string;
125
+ p_request_id: number;
126
+ p_confirmed: boolean;
127
+ p_caller: string;
128
+ p_sender: string;
129
+ p_tx_hash: string;
130
+ p_timestamp: number;
131
+ p_block_number: number;
132
+ p_gas_used: number;
133
+ }
134
+ export interface FnWithdrawalExecutedResult extends WithdrawalCommitment {
135
+ finalizedAt: Date;
136
+ }
137
+ export interface FnWithdrawalCancelledPayload extends FnWithdrawalExecutedPayload {
138
+ }
139
+ export interface FnWithdrawalCancelledResult extends FnWithdrawalExecutedResult {
140
+ }
141
+ export interface FnGetWithdrawalCommitmentsPayload {
142
+ p_blockchain: string;
143
+ p_chain_id: string;
144
+ p_escrow_contract: string;
145
+ p_status: string;
146
+ }
147
+ export interface FnGetWithdrawalCommitmentsResult extends WithdrawalCommitment {
148
+ finalizedAt: Date | null;
149
+ executeAt: Date | null;
150
+ createdAt: Date | null;
151
+ updatedAt: Date | null;
152
+ }
153
+ export {};
88
154
  //# sourceMappingURL=multisig_service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"multisig_service.d.ts","sourceRoot":"","sources":["../../../../src/services/types/db/multisig_service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,MAAM,WAAW,0BAA0B;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE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;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,0BAA0B;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,6BAA6B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;CAC5B"}
1
+ {"version":3,"file":"multisig_service.d.ts","sourceRoot":"","sources":["../../../../src/services/types/db/multisig_service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE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E,MAAM,CAAC;CACtB;AACD,MAAM,WAAW,0BAA2B,SAAQ,oBAAoB;IACpE,WAAW,EAAE,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,4BAA6B,SAAQ,2BAA2B;CAAI;AACrF,MAAM,WAAW,2BAA4B,SAAQ,0BAA0B;CAAI;AAGnF,MAAM,WAAW,iCAAiC;IAC9C,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,gCAAiC,SAAQ,oBAAoB;IAC1E,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;CAC1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ercworldio/blockchain-shared",
3
- "version": "1.0.3-dev.3-PROJ-1296.15",
3
+ "version": "1.0.3-dev.3-PROJ-1296.16",
4
4
  "description": "Shared library for blockchain projects",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",