@certik/skynet 0.10.0 → 0.10.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 +12 -0
- package/app.js +1 -1
- package/const.js +3 -0
- package/deploy.js +12 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.10.3
|
|
4
|
+
|
|
5
|
+
- Added coinmarketcap ids to `PROTOCOLS` in `const`
|
|
6
|
+
|
|
7
|
+
## 0.10.2
|
|
8
|
+
|
|
9
|
+
- Added opsgenie api key to check job automatically so it is not required to be defined in jobs
|
|
10
|
+
|
|
11
|
+
## 0.10.1
|
|
12
|
+
|
|
13
|
+
- Fixed a bug for the new api app type
|
|
14
|
+
|
|
3
15
|
## 0.10.0
|
|
4
16
|
|
|
5
17
|
- Added a new application type `api` to the `app` library
|
package/app.js
CHANGED
|
@@ -594,7 +594,7 @@ function api({ name, routes, serve, env = {}, region = "us-east-1" }) {
|
|
|
594
594
|
func: async () => {
|
|
595
595
|
const errors = [];
|
|
596
596
|
|
|
597
|
-
const url =
|
|
597
|
+
const url = `http://localhost:9999${serve.prefix}/`;
|
|
598
598
|
const res = await fetch(url);
|
|
599
599
|
|
|
600
600
|
if (!res.ok) {
|
package/const.js
CHANGED
|
@@ -17,6 +17,7 @@ const PROTOCOLS = {
|
|
|
17
17
|
nativeTokenAddress: "eth:0x0000000000000000000000000000000000000000",
|
|
18
18
|
nativeTokenLogo: `https://token-logo.certik-assets.com/eth:0x0000000000000000000000000000000000000000.png`,
|
|
19
19
|
nativeTokenCoinGeckoId: "ethereum",
|
|
20
|
+
nativeTokenCmcId: 1027,
|
|
20
21
|
endpoint: "https://eth-full-node.certik-skynet.com",
|
|
21
22
|
archiveEndpoint: "https://eth-node.certik-skynet.com",
|
|
22
23
|
tokenStandard: "ERC20",
|
|
@@ -34,6 +35,7 @@ const PROTOCOLS = {
|
|
|
34
35
|
nativeTokenAddress: "bsc:0x0000000000000000000000000000000000000000",
|
|
35
36
|
nativeTokenLogo: `https://token-logo.certik-assets.com/bsc:0x0000000000000000000000000000000000000000.png`,
|
|
36
37
|
nativeTokenCoinGeckoId: "binance-coin",
|
|
38
|
+
nativeTokenCmcId: 1839,
|
|
37
39
|
endpoint: "https://bsc-full-node.certik-skynet.com",
|
|
38
40
|
archiveEndpoint: `https://bsc-mainnet.nodereal.io/v1/${getNodeRealApiKey("BSC")}`,
|
|
39
41
|
tokenStandard: "BEP20",
|
|
@@ -51,6 +53,7 @@ const PROTOCOLS = {
|
|
|
51
53
|
nativeTokenAddress: "polygon:0x0000000000000000000000000000000000000000",
|
|
52
54
|
nativeTokenLogo: `https://token-logo.certik-assets.com/polygon:0x0000000000000000000000000000000000000000.png`,
|
|
53
55
|
nativeTokenCoinGeckoId: "matic-network",
|
|
56
|
+
nativeTokenCmcId: 3890,
|
|
54
57
|
endpoint: `https://poly-full-node.certik-skynet.com`,
|
|
55
58
|
backupEndpoint: `https://matic.getblock.io/mainnet/?api_key=${getGetBlockApiKey()}`,
|
|
56
59
|
archiveEndpoint: `https://polygon-mainnet.g.alchemy.com/v2/${getAlchemyApiKey("POLYGON")}`,
|
package/deploy.js
CHANGED
|
@@ -84,6 +84,16 @@ const genConfig = ({
|
|
|
84
84
|
unlimited = false
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
${
|
|
88
|
+
service
|
|
89
|
+
? `# Setup Service Network
|
|
90
|
+
network {
|
|
91
|
+
port "http" {
|
|
92
|
+
static = ${service.port}
|
|
93
|
+
}
|
|
94
|
+
}` : ""
|
|
95
|
+
}
|
|
96
|
+
|
|
87
97
|
task "log-shipper" {
|
|
88
98
|
driver = "raw_exec"
|
|
89
99
|
|
|
@@ -127,12 +137,6 @@ const genConfig = ({
|
|
|
127
137
|
${
|
|
128
138
|
service
|
|
129
139
|
? `# Setup API Routes
|
|
130
|
-
network {
|
|
131
|
-
port "http" {
|
|
132
|
-
static = ${service.port}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
140
|
service {
|
|
137
141
|
name = "${jobName}"
|
|
138
142
|
port = "http"
|
|
@@ -432,6 +436,7 @@ function createModeDeploy({
|
|
|
432
436
|
...env,
|
|
433
437
|
SKYNET_NOMAD_PRODUCTION_ADDR: null,
|
|
434
438
|
SKYNET_SLACK_TOKEN: null,
|
|
439
|
+
OPSGENIE_API_KEY: null,
|
|
435
440
|
},
|
|
436
441
|
region,
|
|
437
442
|
cmd: `${check.bin} ${args} ${production ? "--production" : ""}`,
|
|
@@ -590,6 +595,7 @@ function createDeploy({
|
|
|
590
595
|
...env,
|
|
591
596
|
SKYNET_NOMAD_PRODUCTION_ADDR: null,
|
|
592
597
|
SKYNET_SLACK_TOKEN: null,
|
|
598
|
+
OPSGENIE_API_KEY: null,
|
|
593
599
|
},
|
|
594
600
|
region,
|
|
595
601
|
cmd: `${check.bin} ${args} ${production ? "--production" : ""}`,
|