@riocrypto/common 1.0.2610 → 1.0.2614
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/events/rio-settings-updated-event.d.ts +13 -0
- package/build/types/fireblocks-transfer-status.d.ts +2 -0
- package/build/types/fireblocks-transfer-status.js +2 -0
- package/build/types/fireblocks-transfer.d.ts +2 -0
- package/build/types/platform-fee-range.d.ts +3 -0
- package/build/types/rio-settings-update.d.ts +13 -0
- package/build/types/rio-settings.d.ts +14 -0
- package/build/types/twap-session.d.ts +5 -0
- package/build/types/twap-settlement.d.ts +1 -0
- package/package.json +2 -2
|
@@ -43,6 +43,12 @@ export interface RioSettingsUpdatedEvent {
|
|
|
43
43
|
sellOrderGeneralExchangeRateMarkup?: {
|
|
44
44
|
[key: string]: number;
|
|
45
45
|
};
|
|
46
|
+
buyOrderAssetPriceMarkup?: {
|
|
47
|
+
[key: string]: number;
|
|
48
|
+
};
|
|
49
|
+
sellOrderAssetPriceMarkup?: {
|
|
50
|
+
[key: string]: number;
|
|
51
|
+
};
|
|
46
52
|
additionalBuyOrderLiquidityUSD?: number;
|
|
47
53
|
additionalSellOrderLiquidityUSD?: number;
|
|
48
54
|
previousDayUSDMXNConversionRate?: number;
|
|
@@ -76,6 +82,13 @@ export interface RioSettingsUpdatedEvent {
|
|
|
76
82
|
};
|
|
77
83
|
};
|
|
78
84
|
};
|
|
85
|
+
defaultTWAPTwoWaySettlementDateOffsetFee?: {
|
|
86
|
+
[key in Country]?: {
|
|
87
|
+
[key in Side]?: {
|
|
88
|
+
[key: number]: number;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
79
92
|
holidays?: {
|
|
80
93
|
[key in Country]: {
|
|
81
94
|
dates: string[];
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FireblocksTransferStatus = void 0;
|
|
4
4
|
var FireblocksTransferStatus;
|
|
5
5
|
(function (FireblocksTransferStatus) {
|
|
6
|
+
FireblocksTransferStatus["Queued"] = "queued";
|
|
7
|
+
FireblocksTransferStatus["Dispatching"] = "dispatching";
|
|
6
8
|
FireblocksTransferStatus["PendingApproval"] = "pendingApproval";
|
|
7
9
|
FireblocksTransferStatus["Initiated"] = "initiated";
|
|
8
10
|
FireblocksTransferStatus["Completed"] = "completed";
|
|
@@ -11,11 +11,13 @@ export interface FireblocksTransfer {
|
|
|
11
11
|
partsCompleted?: number;
|
|
12
12
|
fireblocksTransfers: {
|
|
13
13
|
uuid: string;
|
|
14
|
+
rioId?: string;
|
|
14
15
|
fireblocksTransferId?: string;
|
|
15
16
|
amount: number;
|
|
16
17
|
partNumber?: number;
|
|
17
18
|
status: FireblocksTransferStatus;
|
|
18
19
|
retryCount: number;
|
|
20
|
+
dispatchAttemptedAt?: Date;
|
|
19
21
|
}[];
|
|
20
22
|
netAmountTransfered?: number;
|
|
21
23
|
}
|
|
@@ -22,6 +22,12 @@ export interface RioSettingsUpdate {
|
|
|
22
22
|
sellOrderGeneralExchangeRateMarkup?: {
|
|
23
23
|
[key: string]: number;
|
|
24
24
|
};
|
|
25
|
+
buyOrderAssetPriceMarkup?: {
|
|
26
|
+
[key: string]: number;
|
|
27
|
+
};
|
|
28
|
+
sellOrderAssetPriceMarkup?: {
|
|
29
|
+
[key: string]: number;
|
|
30
|
+
};
|
|
25
31
|
isAfterHours?: {
|
|
26
32
|
[key: string]: {
|
|
27
33
|
value: boolean;
|
|
@@ -63,6 +69,13 @@ export interface RioSettingsUpdate {
|
|
|
63
69
|
};
|
|
64
70
|
};
|
|
65
71
|
};
|
|
72
|
+
defaultTWAPTwoWaySettlementDateOffsetFee?: {
|
|
73
|
+
[key in Country]?: {
|
|
74
|
+
[key in Side]?: {
|
|
75
|
+
[key: number]: number;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
66
79
|
holidays?: {
|
|
67
80
|
[key in Country]: {
|
|
68
81
|
dates: string[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Country } from "./country";
|
|
2
|
+
import { Crypto } from "./crypto";
|
|
2
3
|
import { DeferredPaymentType } from "./deferred-payment-type";
|
|
3
4
|
import { Fiat } from "./fiat";
|
|
4
5
|
import { FXProvider } from "./fx-provider";
|
|
@@ -40,6 +41,12 @@ export interface RioSettings {
|
|
|
40
41
|
sellOrderGeneralExchangeRateMarkup: {
|
|
41
42
|
[key: string]: number;
|
|
42
43
|
};
|
|
44
|
+
buyOrderAssetPriceMarkup?: {
|
|
45
|
+
[key in Crypto]?: number;
|
|
46
|
+
};
|
|
47
|
+
sellOrderAssetPriceMarkup?: {
|
|
48
|
+
[key in Crypto]?: number;
|
|
49
|
+
};
|
|
43
50
|
additionalBuyOrderLiquidityUSD?: number;
|
|
44
51
|
additionalSellOrderLiquidityUSD?: number;
|
|
45
52
|
previousDayUSDMXNConversionRate?: number;
|
|
@@ -76,6 +83,13 @@ export interface RioSettings {
|
|
|
76
83
|
};
|
|
77
84
|
};
|
|
78
85
|
};
|
|
86
|
+
defaultTWAPTwoWaySettlementDateOffsetFee?: {
|
|
87
|
+
[key in Country]?: {
|
|
88
|
+
[key in Side]?: {
|
|
89
|
+
[key: number]: number;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
79
93
|
holidays: {
|
|
80
94
|
[key in Country]: {
|
|
81
95
|
dates: string[];
|
|
@@ -20,6 +20,11 @@ export interface TWAPSession {
|
|
|
20
20
|
maxOriginAmount?: number;
|
|
21
21
|
tradeCurrency: Fiat | Crypto;
|
|
22
22
|
spread: number;
|
|
23
|
+
spreadHistory: {
|
|
24
|
+
spread: number;
|
|
25
|
+
appliedAt: Date;
|
|
26
|
+
firstOrderId?: string;
|
|
27
|
+
}[];
|
|
23
28
|
clipSize: number;
|
|
24
29
|
interval: number;
|
|
25
30
|
isRunning: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2614",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"typescript": "^4.9.5"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"axios": "1.
|
|
23
|
+
"axios": "1.16.0",
|
|
24
24
|
"express-validator": "^6.15.0",
|
|
25
25
|
"node-nats-streaming": "^0.3.2"
|
|
26
26
|
},
|