@ercworldio/blockchain-shared 1.0.3-dev.3-PROJ-1296.43 → 1.0.3-dev.3-PROJ-1296.45
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.
|
@@ -3,7 +3,8 @@ import { WithdrawRequestDetails } from "./types";
|
|
|
3
3
|
import { WithdrawalCommitment } from "../entities";
|
|
4
4
|
declare class WithdrawalService {
|
|
5
5
|
static get_crypto_withdrawal_request: (pool: Pool, request_id: number) => Promise<WithdrawRequestDetails | null>;
|
|
6
|
-
static get_withdrawal_commitments: (pool: Pool, blockchain: string, chainId: string, escrowAddress: string) => Promise<WithdrawalCommitment>;
|
|
6
|
+
static get_withdrawal_commitments: (pool: Pool, blockchain: string, chainId: string, escrowAddress: string) => Promise<WithdrawalCommitment[]>;
|
|
7
|
+
static get_withdrawal_commitment: (pool: Pool, request_id: number) => Promise<WithdrawalCommitment>;
|
|
7
8
|
}
|
|
8
9
|
export default WithdrawalService;
|
|
9
10
|
//# sourceMappingURL=WithdrawalService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawalService.d.ts","sourceRoot":"","sources":["../../src/services/WithdrawalService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAoB,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAErE,cAAM,iBAAiB;IACnB,MAAM,CAAC,6BAA6B,GAAU,MAAM,IAAI,EAAE,YAAY,MAAM,4CAQ3E;IAED,MAAM,CAAC,0BAA0B,GAAU,MAAM,IAAI,EAAE,YAAY,MAAM,EAAE,SAAS,MAAM,EAAE,eAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"WithdrawalService.d.ts","sourceRoot":"","sources":["../../src/services/WithdrawalService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAoB,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAErE,cAAM,iBAAiB;IACnB,MAAM,CAAC,6BAA6B,GAAU,MAAM,IAAI,EAAE,YAAY,MAAM,4CAQ3E;IAED,MAAM,CAAC,0BAA0B,GAAU,MAAM,IAAI,EAAE,YAAY,MAAM,EAAE,SAAS,MAAM,EAAE,eAAe,MAAM,qCAUhH;IAED,MAAM,CAAC,yBAAyB,GAAU,MAAM,IAAI,EAAE,YAAY,MAAM,mCAUvE;CACJ;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -26,4 +26,11 @@ WithdrawalService.get_withdrawal_commitments = (pool, blockchain, chainId, escro
|
|
|
26
26
|
`, [blockchain, chainId, escrowAddress, status]);
|
|
27
27
|
return result.rows[0].fn_get_withdrawal_commitments;
|
|
28
28
|
});
|
|
29
|
+
WithdrawalService.get_withdrawal_commitment = (pool, request_id) => __awaiter(void 0, void 0, void 0, function* () {
|
|
30
|
+
const result = yield pool.query(`
|
|
31
|
+
SELECT * from multisig.crypto_withdrawal_commitment
|
|
32
|
+
WHERE request_id = $1::bigint
|
|
33
|
+
`, [request_id]);
|
|
34
|
+
return result.rows[0];
|
|
35
|
+
});
|
|
29
36
|
exports.default = WithdrawalService;
|
package/package.json
CHANGED