@riocrypto/common-server 1.0.2014 → 1.0.2016
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.
|
@@ -45,11 +45,12 @@ declare class ClusterClient {
|
|
|
45
45
|
deleteRecord(id: string): Promise<void>;
|
|
46
46
|
registerUserWithCoincover(userId: string): Promise<void>;
|
|
47
47
|
importOrder(orderToImport: ImportOrderData): Promise<void>;
|
|
48
|
-
createInternalTransfer({ amount, currency, origin, destination, }: {
|
|
48
|
+
createInternalTransfer({ amount, currency, origin, destination, liquidityAutomationId, }: {
|
|
49
49
|
amount: number;
|
|
50
50
|
currency: Fiat | Crypto;
|
|
51
51
|
origin: TreasuryProvider;
|
|
52
52
|
destination: TreasuryProvider;
|
|
53
|
+
liquidityAutomationId: string;
|
|
53
54
|
}): Promise<void>;
|
|
54
55
|
}
|
|
55
56
|
export declare const buildClusterClient: () => Promise<ClusterClient>;
|
|
@@ -346,9 +346,9 @@ class ClusterClient {
|
|
|
346
346
|
});
|
|
347
347
|
});
|
|
348
348
|
}
|
|
349
|
-
createInternalTransfer({ amount, currency, origin, destination, }) {
|
|
349
|
+
createInternalTransfer({ amount, currency, origin, destination, liquidityAutomationId, }) {
|
|
350
350
|
return __awaiter(this, void 0, void 0, function* () {
|
|
351
|
-
yield this.axios.post(`${this.baseUrl}/api/liquidity/transfers`, { amount, currency, origin, destination }, {
|
|
351
|
+
yield this.axios.post(`${this.baseUrl}/api/liquidity/transfers`, { amount, currency, origin, destination, liquidityAutomationId }, {
|
|
352
352
|
headers: {
|
|
353
353
|
"x-cluster-api-key": this.clusterApiKey,
|
|
354
354
|
},
|
|
@@ -3,6 +3,7 @@ import { InternalTransferType, TreasuryProvider, InternalTransferStatus, Fiat, C
|
|
|
3
3
|
interface InternalTransferAttrs {
|
|
4
4
|
createdAt: Date;
|
|
5
5
|
adminId: string;
|
|
6
|
+
liquidityAutomationId?: string;
|
|
6
7
|
transferType: InternalTransferType;
|
|
7
8
|
origin: TreasuryProvider;
|
|
8
9
|
destination: TreasuryProvider;
|
|
@@ -13,6 +14,7 @@ interface InternalTransferAttrs {
|
|
|
13
14
|
interface InternalTransferDoc extends mongoose.Document {
|
|
14
15
|
id: string;
|
|
15
16
|
adminId: string;
|
|
17
|
+
liquidityAutomationId?: string;
|
|
16
18
|
createdAt: Date;
|
|
17
19
|
transferType: InternalTransferType;
|
|
18
20
|
origin: TreasuryProvider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2016",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@google-cloud/secret-manager": "^5.3.0",
|
|
29
29
|
"@google-cloud/storage": "^6.9.5",
|
|
30
30
|
"@hyperdx/node-opentelemetry": "^0.7.0",
|
|
31
|
-
"@riocrypto/common": "^1.0.
|
|
31
|
+
"@riocrypto/common": "^1.0.1768",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|