@riocrypto/common-server 1.0.1199 → 1.0.1200
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.
|
@@ -53,7 +53,7 @@ declare class BridgeClient {
|
|
|
53
53
|
to_address?: string;
|
|
54
54
|
wire_message?: string;
|
|
55
55
|
};
|
|
56
|
-
state: "awaiting_funds" | "funds_received" | "payment_submitted" | "
|
|
56
|
+
state: "awaiting_funds" | "funds_received" | "payment_submitted" | "payment_processed" | "canceled" | "error";
|
|
57
57
|
source_deposit_instructions: {
|
|
58
58
|
payment_rail: "ach_push" | "wire" | "avalanche_c_chain" | "ethereum" | "polygon";
|
|
59
59
|
amount: string;
|
|
@@ -87,7 +87,7 @@ declare class BridgeClient {
|
|
|
87
87
|
to_address?: string;
|
|
88
88
|
wire_message?: string;
|
|
89
89
|
};
|
|
90
|
-
state: "awaiting_funds" | "funds_received" | "payment_submitted" | "
|
|
90
|
+
state: "awaiting_funds" | "funds_received" | "payment_submitted" | "payment_processed" | "canceled" | "error";
|
|
91
91
|
source_deposit_instructions: {
|
|
92
92
|
payment_rail: "ach_push" | "wire" | "avalanche_c_chain" | "ethereum" | "polygon";
|
|
93
93
|
amount: string;
|
|
@@ -120,7 +120,7 @@ declare class BridgeClient {
|
|
|
120
120
|
to_address?: string;
|
|
121
121
|
wire_message?: string;
|
|
122
122
|
};
|
|
123
|
-
state: "awaiting_funds" | "funds_received" | "payment_submitted" | "
|
|
123
|
+
state: "awaiting_funds" | "funds_received" | "payment_submitted" | "payment_processed" | "canceled" | "error";
|
|
124
124
|
source_deposit_instructions: {
|
|
125
125
|
payment_rail: "ach_push" | "wire" | "avalanche_c_chain" | "ethereum" | "polygon";
|
|
126
126
|
amount: string;
|
|
@@ -9,7 +9,6 @@ declare class FireblocksClient {
|
|
|
9
9
|
getVaultCryptoBalance(vaultId: string, crypto: Crypto): Promise<number>;
|
|
10
10
|
getVaultCryptoAddress(vaultId: string, crypto: Crypto): Promise<string>;
|
|
11
11
|
getTotalVaultUSDBalance(vaultId: string): Promise<number>;
|
|
12
|
-
getAllAssets(): Promise<any>;
|
|
13
12
|
getExchangeCryptoBalance(crypto: Crypto): Promise<number>;
|
|
14
13
|
getExchangeFiatBalance(): Promise<number>;
|
|
15
14
|
getTransactions(vaultId: string, crypto: Crypto, nextPage?: string): Promise<any>;
|
|
@@ -97,6 +97,7 @@ class FireblocksClient {
|
|
|
97
97
|
if ([
|
|
98
98
|
common_1.Crypto.USDC,
|
|
99
99
|
common_1.Crypto.USDCPolygon,
|
|
100
|
+
common_1.Crypto.USDCPolygonBridged,
|
|
100
101
|
common_1.Crypto.USDCSolana,
|
|
101
102
|
common_1.Crypto.USDTEthereum,
|
|
102
103
|
common_1.Crypto.USDTPolygon,
|
|
@@ -109,12 +110,6 @@ class FireblocksClient {
|
|
|
109
110
|
return balance;
|
|
110
111
|
});
|
|
111
112
|
}
|
|
112
|
-
getAllAssets() {
|
|
113
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
-
const response = yield this.fireblocks.getSupportedAssets();
|
|
115
|
-
return response;
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
113
|
getExchangeCryptoBalance(crypto) {
|
|
119
114
|
return __awaiter(this, void 0, void 0, function* () {
|
|
120
115
|
let exchanges = yield this.fireblocks.getExchangeAccounts();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1200",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@aws-sdk/client-s3": "^3.297.0",
|
|
27
27
|
"@everapi/currencyapi-js": "^1.0.6",
|
|
28
28
|
"@google-cloud/storage": "^6.9.5",
|
|
29
|
-
"@riocrypto/common": "^1.0.
|
|
29
|
+
"@riocrypto/common": "^1.0.1085",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^0.27.2",
|
|
32
32
|
"ccxt": "^3.0.30",
|