@certik/skynet 0.10.6 → 0.10.7

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 CHANGED
@@ -1,372 +1,372 @@
1
- # Changelog
2
-
3
- ## 0.10.6
4
-
5
- - Fixed producer check function
6
-
7
- ## 0.10.5
8
-
9
- - BREAKING Changed the signature of `postGenieMessage` function in `opsgenie` to make it more customizable
10
-
11
- ## 0.10.4
12
-
13
- - Fixed typo in coinmarketcap ids in `PROTOCOLS` in `const`
14
-
15
- ## 0.10.3
16
-
17
- - Added coinmarketcap ids to `PROTOCOLS` in `const`
18
-
19
- ## 0.10.2
20
-
21
- - Added opsgenie api key to check job automatically so it is not required to be defined in jobs
22
-
23
- ## 0.10.1
24
-
25
- - Fixed a bug for the new api app type
26
-
27
- ## 0.10.0
28
-
29
- - Added a new application type `api` to the `app` library
30
-
31
- ## 0.9.7
32
-
33
- - Added Polygon multicall support
34
-
35
- ## 0.9.6
36
-
37
- - Updated `inline` method in `log` library to print a timestamp in front of each log line
38
-
39
- ## 0.9.5
40
-
41
- - Fixed deploy issue when selector value contains special characters
42
-
43
- ## 0.9.4
44
-
45
- - Updated Polygon Node to Certik Node
46
-
47
- ## 0.9.3
48
-
49
- - Updated BSC Archive Node to NodeReal
50
-
51
- ## 0.9.2
52
-
53
- - Enhanced security by moving secret files into nomad secrets folder
54
-
55
- ## 0.9.1
56
-
57
- - Supported using `--schedule` argument to override default schedule when deploying
58
-
59
- ## 0.9.0
60
-
61
- - Added `web3` library with call support
62
-
63
- ## 0.8.16
64
-
65
- - Changed monitor exit behavior
66
- - Improved OpsGenie message for service checks
67
-
68
- ## 0.8.15
69
-
70
- - Fixed OpsGenie message bug
71
-
72
- ## 0.8.14
73
-
74
- - Switched monitor to send to opsgenie only
75
-
76
- ## 0.8.13
77
-
78
- - Added `inline.error` function to `log` library
79
-
80
- ## 0.8.12
81
-
82
- - Added `log` library to print one line log
83
-
84
- ## 0.8.11
85
-
86
- - Improved `updateRecordByKeys` in `dynamodb` library to support fields deletion
87
- - Added `opsgenie` library
88
-
89
- ## 0.8.10
90
-
91
- - Improved `postMessage` in `slack` library to support private channels
92
-
93
- ## 0.8.7
94
-
95
- - Changed polygon node endpoint
96
-
97
- ## 0.8.6
98
-
99
- - Fixed a const.js error
100
- - Support more options in snowflake.js
101
-
102
- ## 0.8.5
103
-
104
- - Improved cross-OS compatibility of `detectDirectory` function
105
-
106
- ## 0.8.4
107
-
108
- - Added `every` tool to make it easier to build schedule parameter
109
-
110
- ## 0.8.2 && 0.8.3
111
-
112
- - Made check optional for new indexer/producer app
113
-
114
- ## 0.8.1
115
-
116
- - Fixed some bug in new `app` library and `monitor`
117
-
118
- ## 0.8.0
119
-
120
- - Added `app` library to support one binary developer experience
121
-
122
- ## 0.7.20
123
-
124
- - Added `listKeys` method to `s3.js`
125
-
126
- ## 0.7.19
127
-
128
- - BREAKING: change the behavior of mode indexer, allow buildBatchSize & buildConcurrency to control the build window
129
-
130
- ## 0.7.18
131
-
132
- - Added the configurability for getTokenPriceAt function in `token` library
133
-
134
- ## 0.7.17
135
-
136
- - Added the missing snowflake dependency
137
-
138
- ## 0.7.16
139
-
140
- - Updated mode indexer to update cursor for each batch
141
-
142
- ## 0.7.15
143
-
144
- - Fixed `transaction` library missing receipt error
145
-
146
- ## 0.7.14
147
-
148
- - Fixed missing require in `labelling.js`
149
- - Only keep distinct tags in `labelling.js`
150
-
151
- ## 0.7.13
152
-
153
- - Update `labelling.js` to support auto db entry creation and address label fetching.
154
-
155
- ## 0.7.12
156
-
157
- - Fixed a bug in `kafka.js`
158
-
159
- ## 0.7.11
160
-
161
- - Added low level API for sending and receiving messages directly from kafka instance.
162
- - Added unit tests for `kafka.js`
163
-
164
- ## 0.7.10
165
-
166
- Added `reset` option to producer in `kafka`
167
-
168
- ## 0.7.9
169
-
170
- Removed console.log statement that printed credentials from `snowflake`
171
-
172
- ## 0.7.8
173
-
174
- - Added `TIME` constants to `const`
175
- - Added `proxyFetch` in `proxy`
176
- - Added `executeSql` in `snowflake`
177
-
178
- ## 0.7.7
179
-
180
- Use getblock as our polygon node endpoint.
181
-
182
- ## 0.7.6
183
-
184
- - Fix a bug in kafka producer
185
-
186
- If the producer is waiting for new `maxId`, the `i` will keep increasing. Therefore, the
187
- `produce` function will not be called anymore.
188
-
189
- ## 0.7.5
190
-
191
- - add consts for polygon chain
192
-
193
- ## 0.7.4
194
-
195
- - add small fix of `slack`
196
-
197
- ## 0.7.3
198
-
199
- - add `slack.js` to find conversationID and send messages
200
-
201
- ## 0.7.2
202
-
203
- - added `isProduction` and `isDev` to env library
204
-
205
- ## 0.7.1
206
-
207
- - BREAKING rename createProducerApp option `serviceName` to `name`
208
-
209
- ## 0.7.0
210
-
211
- - this release contains a lot of BREAKING CHANGES
212
- - introduced `createProducerApp` and `createConsumerApp` in `kafka` library, original exports were removed
213
- - redesigned `createIndexerApp` and `createModeIndexerApp` in `indexer` library
214
- - redesigned `createDeploy` and `createModeDeploy` in `deploy` library
215
- - introduced examples folder which contains many examples explaining indexer/kafka/deploy usage
216
-
217
- ## 0.6.14
218
-
219
- - changed `producerDisconnect` to take timeout as argument for `kafka` library
220
- - changed `createProducer` to hard code security.protocol and sasl.mechanisms for `kafka` library
221
-
222
- ## 0.6.13
223
-
224
- - added `createProducer` and `producerDisconnect` for `kafka` library
225
-
226
- ## 0.6.12
227
-
228
- - add restart options in nomad jobs
229
-
230
- ## 0.6.11
231
-
232
- - fixed some issues with `deploy` library
233
- - added functional cron schedules in `deploy` library and added `ensureAndGet` in `env` library
234
-
235
- ## 0.6.9
236
-
237
- - fixed some issues with `writeToKafka` for `kafka` library
238
- - added `kafka` library
239
-
240
- ## 0.6.7
241
-
242
- - added `scanUrl` to `const.js`.
243
-
244
- ## 0.6.6
245
-
246
- - added `getIndexerValidatedId` and `getIndexerState` for `indexer` library
247
-
248
- ## 0.6.5
249
-
250
- - fixed rate limit issue with `scan` library
251
-
252
- ## 0.6.4
253
-
254
- - added `buildConcurrency` and `validateConcurrency` for `createIndexerApp` function in `indexer` library
255
-
256
- ## 0.6.3
257
-
258
- - added `labelling` library and `scan` library
259
-
260
- ## 0.6.2
261
-
262
- - added `isRateLimited` function.
263
-
264
- ```js
265
- /**
266
- * Record the api access and return the rate limit result.
267
- * @async
268
- * @param {string} name - The name of the key.
269
- * @param {number} unitTime - The sliding window for rate limiting, in seconds.
270
- * @param {number} maxAccess - The total count of allowed accesses in a sliding window.
271
- * @returns {Promise<boolean>} This request should be allowed or not.
272
- */
273
- ```
274
-
275
- ## 0.6.1
276
-
277
- - fixed `deployer` duplicated job name
278
-
279
- ## 0.6.0
280
-
281
- - BREAKING added `--periodic` option to `deployer` to explicitly deploy periodical jobs
282
- - BREAKING redesigned indexer `validate` mode to be stateful
283
-
284
- ## 0.5.9
285
-
286
- - fixed deploy resouces allocation, for rebuild/resume-rebuild/validate mode all uses rebuildCpu and rebuildMem
287
-
288
- ## 0.5.8
289
-
290
- - added `hasFile` function in `s3` library
291
- - added `validate` mode to `indexer` library
292
- - added `env` option to `deploy` library
293
-
294
- ## 0.5.7
295
-
296
- - fixed bug introduced in 0.5.5 by always returning default value in `ensureAndGet`.
297
-
298
- ## 0.5.6
299
-
300
- - renamed library `overrides` to `primitive`
301
- - replaced `scan` with `get` for a better performance
302
-
303
- ## 0.5.5
304
-
305
- - added `getSQS`, `toNativeDecimal` and `toHumanDecimal` functions.
306
- - only loads AWS keys in environment variables with `SKYNET_` prefix.
307
-
308
- ## 0.5.4
309
-
310
- - fixed a typo of a variable in `overrides` library
311
-
312
- ## 0.5.3
313
-
314
- - remove Optional chaining " ?. " in `overrides` library
315
-
316
- ## 0.5.2
317
-
318
- - added `overrides` library
319
-
320
- ## 0.5.1
321
-
322
- - added colors to deployer cli output
323
-
324
- ## 0.5.0
325
-
326
- - added `createStatelessIndexerApp` to `indexer` library
327
- - added `createStatelessDeploy` to `deploy` library
328
- - BREAKING changed signature for `writeFile` in `s3` library, added skipIfExists & acl options
329
- - added `abi` library
330
-
331
- ## 0.4.7
332
-
333
- - added `getIndexerLatestId` to `indexer` library
334
- - BREAKING renamed `getLargestId` to `getLatestId` for `indexer` library
335
-
336
- ## 0.4.6
337
-
338
- - improved `batchCreateRecords` to sleep in exponential duration
339
-
340
- ## 0.4.5
341
-
342
- - added `transaction` library
343
- - added `arrayGroup` function to `util` library
344
- - added `exponentialRetry` function to `availability` library
345
-
346
- ## 0.4.4
347
-
348
- - added `to` option to indexer and deployer cli
349
-
350
- ## 0.4.2
351
-
352
- - added `readFile` and `writeFile` functions in `s3` library
353
-
354
- ## 0.4.1
355
-
356
- - added `price` library
357
-
358
- ## 0.4.0
359
-
360
- - BREAKING added required `selector` parameter when creating indexer to allow more general patterns
361
-
362
- ## 0.3.3
363
-
364
- - BREAKING changed buildSince signature to buildSince({ protocol, since, to, verbose })
365
-
366
- ## 0.3.2
367
-
368
- - added `--stop` flag for deployer to stop job
369
-
370
- ## 0.3.0
371
-
372
- - added `block` `address` and `token` library
1
+ # Changelog
2
+
3
+ ## 0.10.6
4
+
5
+ - Fixed producer check function
6
+
7
+ ## 0.10.5
8
+
9
+ - BREAKING Changed the signature of `postGenieMessage` function in `opsgenie` to make it more customizable
10
+
11
+ ## 0.10.4
12
+
13
+ - Fixed typo in coinmarketcap ids in `PROTOCOLS` in `const`
14
+
15
+ ## 0.10.3
16
+
17
+ - Added coinmarketcap ids to `PROTOCOLS` in `const`
18
+
19
+ ## 0.10.2
20
+
21
+ - Added opsgenie api key to check job automatically so it is not required to be defined in jobs
22
+
23
+ ## 0.10.1
24
+
25
+ - Fixed a bug for the new api app type
26
+
27
+ ## 0.10.0
28
+
29
+ - Added a new application type `api` to the `app` library
30
+
31
+ ## 0.9.7
32
+
33
+ - Added Polygon multicall support
34
+
35
+ ## 0.9.6
36
+
37
+ - Updated `inline` method in `log` library to print a timestamp in front of each log line
38
+
39
+ ## 0.9.5
40
+
41
+ - Fixed deploy issue when selector value contains special characters
42
+
43
+ ## 0.9.4
44
+
45
+ - Updated Polygon Node to Certik Node
46
+
47
+ ## 0.9.3
48
+
49
+ - Updated BSC Archive Node to NodeReal
50
+
51
+ ## 0.9.2
52
+
53
+ - Enhanced security by moving secret files into nomad secrets folder
54
+
55
+ ## 0.9.1
56
+
57
+ - Supported using `--schedule` argument to override default schedule when deploying
58
+
59
+ ## 0.9.0
60
+
61
+ - Added `web3` library with call support
62
+
63
+ ## 0.8.16
64
+
65
+ - Changed monitor exit behavior
66
+ - Improved OpsGenie message for service checks
67
+
68
+ ## 0.8.15
69
+
70
+ - Fixed OpsGenie message bug
71
+
72
+ ## 0.8.14
73
+
74
+ - Switched monitor to send to opsgenie only
75
+
76
+ ## 0.8.13
77
+
78
+ - Added `inline.error` function to `log` library
79
+
80
+ ## 0.8.12
81
+
82
+ - Added `log` library to print one line log
83
+
84
+ ## 0.8.11
85
+
86
+ - Improved `updateRecordByKeys` in `dynamodb` library to support fields deletion
87
+ - Added `opsgenie` library
88
+
89
+ ## 0.8.10
90
+
91
+ - Improved `postMessage` in `slack` library to support private channels
92
+
93
+ ## 0.8.7
94
+
95
+ - Changed polygon node endpoint
96
+
97
+ ## 0.8.6
98
+
99
+ - Fixed a const.js error
100
+ - Support more options in snowflake.js
101
+
102
+ ## 0.8.5
103
+
104
+ - Improved cross-OS compatibility of `detectDirectory` function
105
+
106
+ ## 0.8.4
107
+
108
+ - Added `every` tool to make it easier to build schedule parameter
109
+
110
+ ## 0.8.2 && 0.8.3
111
+
112
+ - Made check optional for new indexer/producer app
113
+
114
+ ## 0.8.1
115
+
116
+ - Fixed some bug in new `app` library and `monitor`
117
+
118
+ ## 0.8.0
119
+
120
+ - Added `app` library to support one binary developer experience
121
+
122
+ ## 0.7.20
123
+
124
+ - Added `listKeys` method to `s3.js`
125
+
126
+ ## 0.7.19
127
+
128
+ - BREAKING: change the behavior of mode indexer, allow buildBatchSize & buildConcurrency to control the build window
129
+
130
+ ## 0.7.18
131
+
132
+ - Added the configurability for getTokenPriceAt function in `token` library
133
+
134
+ ## 0.7.17
135
+
136
+ - Added the missing snowflake dependency
137
+
138
+ ## 0.7.16
139
+
140
+ - Updated mode indexer to update cursor for each batch
141
+
142
+ ## 0.7.15
143
+
144
+ - Fixed `transaction` library missing receipt error
145
+
146
+ ## 0.7.14
147
+
148
+ - Fixed missing require in `labelling.js`
149
+ - Only keep distinct tags in `labelling.js`
150
+
151
+ ## 0.7.13
152
+
153
+ - Update `labelling.js` to support auto db entry creation and address label fetching.
154
+
155
+ ## 0.7.12
156
+
157
+ - Fixed a bug in `kafka.js`
158
+
159
+ ## 0.7.11
160
+
161
+ - Added low level API for sending and receiving messages directly from kafka instance.
162
+ - Added unit tests for `kafka.js`
163
+
164
+ ## 0.7.10
165
+
166
+ Added `reset` option to producer in `kafka`
167
+
168
+ ## 0.7.9
169
+
170
+ Removed console.log statement that printed credentials from `snowflake`
171
+
172
+ ## 0.7.8
173
+
174
+ - Added `TIME` constants to `const`
175
+ - Added `proxyFetch` in `proxy`
176
+ - Added `executeSql` in `snowflake`
177
+
178
+ ## 0.7.7
179
+
180
+ Use getblock as our polygon node endpoint.
181
+
182
+ ## 0.7.6
183
+
184
+ - Fix a bug in kafka producer
185
+
186
+ If the producer is waiting for new `maxId`, the `i` will keep increasing. Therefore, the
187
+ `produce` function will not be called anymore.
188
+
189
+ ## 0.7.5
190
+
191
+ - add consts for polygon chain
192
+
193
+ ## 0.7.4
194
+
195
+ - add small fix of `slack`
196
+
197
+ ## 0.7.3
198
+
199
+ - add `slack.js` to find conversationID and send messages
200
+
201
+ ## 0.7.2
202
+
203
+ - added `isProduction` and `isDev` to env library
204
+
205
+ ## 0.7.1
206
+
207
+ - BREAKING rename createProducerApp option `serviceName` to `name`
208
+
209
+ ## 0.7.0
210
+
211
+ - this release contains a lot of BREAKING CHANGES
212
+ - introduced `createProducerApp` and `createConsumerApp` in `kafka` library, original exports were removed
213
+ - redesigned `createIndexerApp` and `createModeIndexerApp` in `indexer` library
214
+ - redesigned `createDeploy` and `createModeDeploy` in `deploy` library
215
+ - introduced examples folder which contains many examples explaining indexer/kafka/deploy usage
216
+
217
+ ## 0.6.14
218
+
219
+ - changed `producerDisconnect` to take timeout as argument for `kafka` library
220
+ - changed `createProducer` to hard code security.protocol and sasl.mechanisms for `kafka` library
221
+
222
+ ## 0.6.13
223
+
224
+ - added `createProducer` and `producerDisconnect` for `kafka` library
225
+
226
+ ## 0.6.12
227
+
228
+ - add restart options in nomad jobs
229
+
230
+ ## 0.6.11
231
+
232
+ - fixed some issues with `deploy` library
233
+ - added functional cron schedules in `deploy` library and added `ensureAndGet` in `env` library
234
+
235
+ ## 0.6.9
236
+
237
+ - fixed some issues with `writeToKafka` for `kafka` library
238
+ - added `kafka` library
239
+
240
+ ## 0.6.7
241
+
242
+ - added `scanUrl` to `const.js`.
243
+
244
+ ## 0.6.6
245
+
246
+ - added `getIndexerValidatedId` and `getIndexerState` for `indexer` library
247
+
248
+ ## 0.6.5
249
+
250
+ - fixed rate limit issue with `scan` library
251
+
252
+ ## 0.6.4
253
+
254
+ - added `buildConcurrency` and `validateConcurrency` for `createIndexerApp` function in `indexer` library
255
+
256
+ ## 0.6.3
257
+
258
+ - added `labelling` library and `scan` library
259
+
260
+ ## 0.6.2
261
+
262
+ - added `isRateLimited` function.
263
+
264
+ ```js
265
+ /**
266
+ * Record the api access and return the rate limit result.
267
+ * @async
268
+ * @param {string} name - The name of the key.
269
+ * @param {number} unitTime - The sliding window for rate limiting, in seconds.
270
+ * @param {number} maxAccess - The total count of allowed accesses in a sliding window.
271
+ * @returns {Promise<boolean>} This request should be allowed or not.
272
+ */
273
+ ```
274
+
275
+ ## 0.6.1
276
+
277
+ - fixed `deployer` duplicated job name
278
+
279
+ ## 0.6.0
280
+
281
+ - BREAKING added `--periodic` option to `deployer` to explicitly deploy periodical jobs
282
+ - BREAKING redesigned indexer `validate` mode to be stateful
283
+
284
+ ## 0.5.9
285
+
286
+ - fixed deploy resouces allocation, for rebuild/resume-rebuild/validate mode all uses rebuildCpu and rebuildMem
287
+
288
+ ## 0.5.8
289
+
290
+ - added `hasFile` function in `s3` library
291
+ - added `validate` mode to `indexer` library
292
+ - added `env` option to `deploy` library
293
+
294
+ ## 0.5.7
295
+
296
+ - fixed bug introduced in 0.5.5 by always returning default value in `ensureAndGet`.
297
+
298
+ ## 0.5.6
299
+
300
+ - renamed library `overrides` to `primitive`
301
+ - replaced `scan` with `get` for a better performance
302
+
303
+ ## 0.5.5
304
+
305
+ - added `getSQS`, `toNativeDecimal` and `toHumanDecimal` functions.
306
+ - only loads AWS keys in environment variables with `SKYNET_` prefix.
307
+
308
+ ## 0.5.4
309
+
310
+ - fixed a typo of a variable in `overrides` library
311
+
312
+ ## 0.5.3
313
+
314
+ - remove Optional chaining " ?. " in `overrides` library
315
+
316
+ ## 0.5.2
317
+
318
+ - added `overrides` library
319
+
320
+ ## 0.5.1
321
+
322
+ - added colors to deployer cli output
323
+
324
+ ## 0.5.0
325
+
326
+ - added `createStatelessIndexerApp` to `indexer` library
327
+ - added `createStatelessDeploy` to `deploy` library
328
+ - BREAKING changed signature for `writeFile` in `s3` library, added skipIfExists & acl options
329
+ - added `abi` library
330
+
331
+ ## 0.4.7
332
+
333
+ - added `getIndexerLatestId` to `indexer` library
334
+ - BREAKING renamed `getLargestId` to `getLatestId` for `indexer` library
335
+
336
+ ## 0.4.6
337
+
338
+ - improved `batchCreateRecords` to sleep in exponential duration
339
+
340
+ ## 0.4.5
341
+
342
+ - added `transaction` library
343
+ - added `arrayGroup` function to `util` library
344
+ - added `exponentialRetry` function to `availability` library
345
+
346
+ ## 0.4.4
347
+
348
+ - added `to` option to indexer and deployer cli
349
+
350
+ ## 0.4.2
351
+
352
+ - added `readFile` and `writeFile` functions in `s3` library
353
+
354
+ ## 0.4.1
355
+
356
+ - added `price` library
357
+
358
+ ## 0.4.0
359
+
360
+ - BREAKING added required `selector` parameter when creating indexer to allow more general patterns
361
+
362
+ ## 0.3.3
363
+
364
+ - BREAKING changed buildSince signature to buildSince({ protocol, since, to, verbose })
365
+
366
+ ## 0.3.2
367
+
368
+ - added `--stop` flag for deployer to stop job
369
+
370
+ ## 0.3.0
371
+
372
+ - added `block` `address` and `token` library