@sentio/runtime 2.5.0 → 2.5.1-rc.2
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/lib/decode-benchmark.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"decode-benchmark.js","sourceRoot":"","sources":["../src/decode-benchmark.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,IAAI,CAAA;
|
1
|
+
{"version":3,"file":"decode-benchmark.js","sourceRoot":"","sources":["../src/decode-benchmark.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,IAAI,CAAA;AAEnB,MAAM,WAAW,GAAG,EAAE,CAAC,YAAY,CAAC,iDAAiD,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAA;AAC7G,2BAA2B;AAE3B,MAAM,QAAQ,GAAa,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAA;AAElD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;AAE5B,MAAM,IAAI,GAAiB,EAAE,CAAA;AAC7B,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;IAC9B,IAAI,CAAC,IAAI,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;CAC7D;AAED,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;AAEzB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;AAExB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;IAC3B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;QACtB,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;KACpD;CACF;AAED,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;AACtB,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,MAAM,EAAE,SAAS,CAAC,CAAA","sourcesContent":["#!/usr/bin/env node\n\nimport fs from 'fs'\n\nconst fileContent = fs.readFileSync('../../../chain/aptos/testdata/block-0-9999.json', { encoding: 'utf-8' })\n// console.log(fileContent)\n\nconst contents: object[] = JSON.parse(fileContent)\n\nconsole.log(contents.length)\n\nconst raws: Uint8Array[] = []\nfor (const content of contents) {\n raws.push(new TextEncoder().encode(JSON.stringify(content)))\n}\n\nconsole.log('test begin')\n\nconst start = Date.now()\n\nfor (let i = 0; i < 10; i++) {\n for (const raw of raws) {\n const x = JSON.parse(new TextDecoder().decode(raw))\n }\n}\n\nconst end = Date.now()\nconsole.log((end - start) / 1000.0, 'seconds')\n"]}
|
package/lib/endpoints.js
CHANGED
package/lib/endpoints.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../src/endpoints.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,SAAS;IACpB,MAAM,CAAC,QAAQ,GAAc,IAAI,SAAS,EAAE,CAAA;IAE5C,
|
1
|
+
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../src/endpoints.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,SAAS;IACpB,MAAM,CAAC,QAAQ,GAAc,IAAI,SAAS,EAAE,CAAA;IAE5C,WAAW,GAAG,CAAC,CAAA;IACf,aAAa,GAAG,EAAE,CAAA;IAClB,YAAY,GAAG,EAAE,CAAA;IAEjB,WAAW,GAAG,IAAI,GAAG,EAAkB,CAAA","sourcesContent":["export class Endpoints {\n static INSTANCE: Endpoints = new Endpoints()\n\n concurrency = 4\n chainQueryAPI = ''\n priceFeedAPI = ''\n\n chainServer = new Map<string, string>()\n}\n"]}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sentio/runtime",
|
3
3
|
"license": "Apache-2.0",
|
4
|
-
"version": "2.5.
|
4
|
+
"version": "2.5.1-rc.2",
|
5
5
|
"scripts": {
|
6
6
|
"compile": "tsc",
|
7
7
|
"build": "yarn compile",
|
@@ -13,7 +13,7 @@
|
|
13
13
|
"start_js": "ts-node-esm --files ./lib/processor-runner.js $PWD/../../debug/dist/lib.js"
|
14
14
|
},
|
15
15
|
"dependencies": {
|
16
|
-
"@sentio/protos": "^2.5.
|
16
|
+
"@sentio/protos": "^2.5.1-rc.2",
|
17
17
|
"command-line-args": "^5.2.1",
|
18
18
|
"command-line-usage": "^6.1.3",
|
19
19
|
"fs-extra": "^11.0.0",
|
@@ -27,7 +27,6 @@
|
|
27
27
|
"@types/chai": "^4.3.1",
|
28
28
|
"@types/command-line-args": "^5.2.0",
|
29
29
|
"@types/command-line-usage": "^5.0.2",
|
30
|
-
"@types/expect": "^24.3.0",
|
31
30
|
"@types/fs-extra": "^11.0.1",
|
32
31
|
"@types/google-protobuf": "^3.15.6"
|
33
32
|
},
|
@@ -46,5 +45,5 @@
|
|
46
45
|
"!{lib,src}/tests",
|
47
46
|
"!**/*.test.{js,ts}"
|
48
47
|
],
|
49
|
-
"gitHead": "
|
48
|
+
"gitHead": "f5757c9ddde1fd436447c2570acaa4429ddd3fd9"
|
50
49
|
}
|
package/src/decode-benchmark.ts
CHANGED
package/src/endpoints.ts
CHANGED
@@ -1,12 +1,6 @@
|
|
1
1
|
export class Endpoints {
|
2
2
|
static INSTANCE: Endpoints = new Endpoints()
|
3
3
|
|
4
|
-
// static reset() {
|
5
|
-
// Endpoints.INSTANCE = new Endpoints()
|
6
|
-
// }
|
7
|
-
// evm providers
|
8
|
-
// providers = new Map<bigint, Provider>()
|
9
|
-
|
10
4
|
concurrency = 4
|
11
5
|
chainQueryAPI = ''
|
12
6
|
priceFeedAPI = ''
|