@riocrypto/common-server 1.0.604 → 1.0.606
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.
|
@@ -25,5 +25,15 @@ class EtherscanClient {
|
|
|
25
25
|
return data.result;
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
+
getTokenTransactions(contractAddress, address) {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
const ETHERSCAN_API_KEY = yield secret_manager_client_1.secretManagerClient.getSecretValue("ETHERSCAN_API_KEY");
|
|
31
|
+
if (!ETHERSCAN_API_KEY) {
|
|
32
|
+
throw new Error("Unable to get ETHERSCAN_API_KEY");
|
|
33
|
+
}
|
|
34
|
+
const { data } = yield this.axios.get(`https://api.etherscan.io/api?module=account&action=tokentx&&contractaddress=${contractAddress}address=${address}&startblock=0&endblock=99999999&page=1&offset=100&sort=asc&apikey=${ETHERSCAN_API_KEY}`);
|
|
35
|
+
return data.result;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
28
38
|
}
|
|
29
39
|
exports.EtherscanClient = EtherscanClient;
|
|
@@ -22,7 +22,7 @@ class FireblocksClient {
|
|
|
22
22
|
assetId: crypto,
|
|
23
23
|
source: {
|
|
24
24
|
type: fireblocks_sdk_1.PeerType.VAULT_ACCOUNT,
|
|
25
|
-
id: "
|
|
25
|
+
id: "2",
|
|
26
26
|
},
|
|
27
27
|
destination: {
|
|
28
28
|
type: fireblocks_sdk_1.PeerType.ONE_TIME_ADDRESS,
|
|
@@ -42,7 +42,7 @@ class FireblocksClient {
|
|
|
42
42
|
assetId: crypto,
|
|
43
43
|
source: {
|
|
44
44
|
type: fireblocks_sdk_1.PeerType.VAULT_ACCOUNT,
|
|
45
|
-
id: "
|
|
45
|
+
id: "2",
|
|
46
46
|
},
|
|
47
47
|
destination: {
|
|
48
48
|
type: fireblocks_sdk_1.PeerType.ONE_TIME_ADDRESS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.606",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-sdk/client-s3": "^3.297.0",
|
|
25
25
|
"@google-cloud/storage": "^6.9.5",
|
|
26
|
-
"@riocrypto/common": "^1.0.
|
|
26
|
+
"@riocrypto/common": "^1.0.580",
|
|
27
27
|
"@types/express": "^4.17.13",
|
|
28
28
|
"axios": "^0.27.2",
|
|
29
29
|
"ccxt": "^3.0.30",
|