@certik/skynet 0.9.2 → 0.9.3
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/CHANGELOG.md +5 -1
- package/const.js +3 -2
- package/env.js +6 -0
- package/examples/consumer +0 -0
- package/examples/indexer +0 -0
- package/examples/legacy-deploy-consumer +0 -0
- package/examples/legacy-deploy-indexer +0 -0
- package/examples/legacy-deploy-mode-indexer +0 -0
- package/examples/legacy-deploy-producer +0 -0
- package/examples/legacy-indexer +0 -0
- package/examples/legacy-kafka-consumer +0 -0
- package/examples/legacy-kafka-producer +0 -0
- package/examples/legacy-mode-indexer +0 -0
- package/examples/mode-indexer +0 -0
- package/examples/producer +0 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.9.3
|
|
4
|
+
|
|
5
|
+
- Update BSC Archive Node to NodeReal
|
|
6
|
+
|
|
3
7
|
## 0.9.2
|
|
4
8
|
|
|
5
9
|
- Enhanced security by moving secret files into nomad secrets folder
|
|
@@ -19,7 +23,7 @@
|
|
|
19
23
|
|
|
20
24
|
## 0.8.15
|
|
21
25
|
|
|
22
|
-
- Fixed OpsGenie message bug
|
|
26
|
+
- Fixed OpsGenie message bug
|
|
23
27
|
|
|
24
28
|
## 0.8.14
|
|
25
29
|
|
package/const.js
CHANGED
|
@@ -4,6 +4,7 @@ const {
|
|
|
4
4
|
getPolygonScanApiKey,
|
|
5
5
|
getGetBlockApiKey,
|
|
6
6
|
getAlchemyApiKey,
|
|
7
|
+
getNodeRealApiKey,
|
|
7
8
|
} = require("./env");
|
|
8
9
|
|
|
9
10
|
const SKYNET_API_PREFIX = "https://api.certik-skynet.com";
|
|
@@ -34,7 +35,7 @@ const PROTOCOLS = {
|
|
|
34
35
|
nativeTokenLogo: `https://token-logo.certik-assets.com/bsc:0x0000000000000000000000000000000000000000.png`,
|
|
35
36
|
nativeTokenCoinGeckoId: "binance-coin",
|
|
36
37
|
endpoint: "https://bsc-full-node.certik-skynet.com",
|
|
37
|
-
archiveEndpoint:
|
|
38
|
+
archiveEndpoint: `https://bsc-mainnet.nodereal.io/v1/${getNodeRealApiKey("BSC")}`,
|
|
38
39
|
tokenStandard: "BEP20",
|
|
39
40
|
scanApi: {
|
|
40
41
|
endpoint: "https://api.bscscan.com/api",
|
|
@@ -60,7 +61,7 @@ const PROTOCOLS = {
|
|
|
60
61
|
},
|
|
61
62
|
multiCallProvider: "", // TODO
|
|
62
63
|
scanUrl: "https://polygonscan.com/",
|
|
63
|
-
}
|
|
64
|
+
},
|
|
64
65
|
};
|
|
65
66
|
|
|
66
67
|
const TIME = {
|
package/env.js
CHANGED
|
@@ -35,6 +35,11 @@ function getAlchemyApiKey(identifier) {
|
|
|
35
35
|
return ensureAndGet(`SKYNET_ALCHEMY_API_${identifier.toUpperCase()}_KEY`);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
function getNodeRealApiKey(identifier) {
|
|
39
|
+
// NodeReal API keys are different for each NodeReal app
|
|
40
|
+
return ensureAndGet(`SKYNET_NODEREAL_API_${identifier.toUpperCase()}_KEY`);
|
|
41
|
+
}
|
|
42
|
+
|
|
38
43
|
function ensureAndGet(envName, defaultValue) {
|
|
39
44
|
if (Array.isArray(envName)) {
|
|
40
45
|
for (let name of envName) {
|
|
@@ -81,4 +86,5 @@ module.exports = {
|
|
|
81
86
|
getPolygonScanApiKey,
|
|
82
87
|
getGetBlockApiKey,
|
|
83
88
|
getAlchemyApiKey,
|
|
89
|
+
getNodeRealApiKey,
|
|
84
90
|
};
|
package/examples/consumer
CHANGED
|
File without changes
|
package/examples/indexer
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/examples/legacy-indexer
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/examples/mode-indexer
CHANGED
|
File without changes
|
package/examples/producer
CHANGED
|
File without changes
|
package/package.json
CHANGED