@certik/skynet 0.9.1 → 0.9.4
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 +14 -2
- package/const.js +4 -3
- package/deploy.js +1 -1
- package/env.js +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.9.4
|
|
4
|
+
|
|
5
|
+
- Update Polygon Node to Certik Node
|
|
6
|
+
|
|
7
|
+
## 0.9.3
|
|
8
|
+
|
|
9
|
+
- Update BSC Archive Node to NodeReal
|
|
10
|
+
|
|
11
|
+
## 0.9.2
|
|
12
|
+
|
|
13
|
+
- Enhanced security by moving secret files into nomad secrets folder
|
|
14
|
+
|
|
3
15
|
## 0.9.1
|
|
4
16
|
|
|
5
|
-
-
|
|
17
|
+
- Supported using `--schedule` argument to override default schedule when deploying
|
|
6
18
|
|
|
7
19
|
## 0.9.0
|
|
8
20
|
|
|
@@ -15,7 +27,7 @@
|
|
|
15
27
|
|
|
16
28
|
## 0.8.15
|
|
17
29
|
|
|
18
|
-
- Fixed OpsGenie message bug
|
|
30
|
+
- Fixed OpsGenie message bug
|
|
19
31
|
|
|
20
32
|
## 0.8.14
|
|
21
33
|
|
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",
|
|
@@ -50,7 +51,7 @@ const PROTOCOLS = {
|
|
|
50
51
|
nativeTokenAddress: "polygon:0x0000000000000000000000000000000000000000",
|
|
51
52
|
nativeTokenLogo: `https://token-logo.certik-assets.com/polygon:0x0000000000000000000000000000000000000000.png`,
|
|
52
53
|
nativeTokenCoinGeckoId: "matic-network",
|
|
53
|
-
endpoint: `https://
|
|
54
|
+
endpoint: `https://poly-full-node.certik-skynet.com`,
|
|
54
55
|
backupEndpoint: `https://matic.getblock.io/mainnet/?api_key=${getGetBlockApiKey()}`,
|
|
55
56
|
archiveEndpoint: `https://polygon-mainnet.g.alchemy.com/v2/${getAlchemyApiKey("POLYGON")}`,
|
|
56
57
|
tokenStandard: "ERC20",
|
|
@@ -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/deploy.js
CHANGED
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
|
};
|