@steerprotocol/data-connector-loader 4.1.0 → 5.0.0-next.10
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/README.md +136 -20
- package/lib/bundle/bundleBase.d.ts +11 -14
- package/lib/bundle/bundleBase.js +58 -90
- package/lib/bundle/bundleDataConnector.d.ts +2 -6
- package/lib/bundle/bundleDataConnector.js +22 -47
- package/lib/esm/bundle/bundleBase.d.ts +11 -14
- package/lib/esm/bundle/bundleBase.js +79 -93
- package/lib/esm/bundle/bundleDataConnector.d.ts +2 -6
- package/lib/esm/bundle/bundleDataConnector.js +26 -49
- package/lib/esm/execution/executionApp.d.ts +18 -17
- package/lib/esm/execution/executionApp.js +390 -370
- package/lib/esm/execution/executionBase.d.ts +6 -6
- package/lib/esm/execution/executionBase.js +27 -13
- package/lib/esm/execution/executionDataConnector.d.ts +7 -4
- package/lib/esm/execution/executionDataConnector.js +143 -76
- package/lib/esm/index.d.ts +7 -7
- package/lib/esm/index.js +4 -4
- package/lib/esm/types.d.ts +23 -25
- package/lib/esm/types.js +5 -5
- package/lib/esm/utils/blockFinder.d.ts +2 -2
- package/lib/esm/utils/blockFinder.js +3 -3
- package/lib/esm/utils/consts.js +39 -39
- package/lib/esm/utils/pluginManager.d.ts +1 -1
- package/lib/esm/utils/pluginManager.js +6 -5
- package/lib/esm/utils/replace-old-subgraphs.js +79 -61
- package/lib/esm/utils/rpc.d.ts +4 -0
- package/lib/esm/utils/rpc.js +32 -0
- package/lib/esm/utils/utils.d.ts +8 -11
- package/lib/esm/utils/utils.js +61 -55
- package/lib/execution/executionApp.d.ts +18 -17
- package/lib/execution/executionApp.js +379 -364
- package/lib/execution/executionBase.d.ts +6 -6
- package/lib/execution/executionBase.js +27 -13
- package/lib/execution/executionDataConnector.d.ts +7 -4
- package/lib/execution/executionDataConnector.js +146 -71
- package/lib/index.d.ts +7 -7
- package/lib/index.js +1 -1
- package/lib/package.json +1 -0
- package/lib/types.d.ts +23 -25
- package/lib/types.js +5 -5
- package/lib/utils/blockFinder.d.ts +2 -2
- package/lib/utils/blockFinder.js +3 -3
- package/lib/utils/consts.js +39 -39
- package/lib/utils/pluginManager.d.ts +1 -1
- package/lib/utils/pluginManager.js +5 -4
- package/lib/utils/replace-old-subgraphs.js +79 -61
- package/lib/utils/rpc.d.ts +4 -0
- package/lib/utils/rpc.js +47 -0
- package/lib/utils/utils.d.ts +8 -11
- package/lib/utils/utils.js +55 -60
- package/package.json +22 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steerprotocol/data-connector-loader",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-next.10",
|
|
4
4
|
"description": "App Loader for Steer Protocol",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -16,21 +16,25 @@
|
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build": "npm run build:cjs && npm run build:esm",
|
|
19
|
-
"build:cjs": "tsc -p tsconfig.json",
|
|
19
|
+
"build:cjs": "tsc -p tsconfig.json && echo '{\"type\": \"commonjs\"}' > lib/package.json",
|
|
20
20
|
"build:esm": "tsc -p tsconfig.esm.json && echo '{\"type\": \"module\"}' > lib/esm/package.json",
|
|
21
|
-
"format": "
|
|
22
|
-
"lint": "
|
|
21
|
+
"format": "biome format --write .",
|
|
22
|
+
"lint": "biome lint .",
|
|
23
23
|
"lint:commit": "commitlint --from=HEAD~1 --to=HEAD",
|
|
24
|
-
"lint:fix": "
|
|
24
|
+
"lint:fix": "biome lint --write .",
|
|
25
25
|
"test": "jest --config jest.config.cjs",
|
|
26
26
|
"pack:local": "npm pack",
|
|
27
27
|
"test:packed-consumer": "node scripts/packed-consumer-smoke.cjs",
|
|
28
28
|
"publish:test": "node scripts/publish-test.cjs",
|
|
29
29
|
"prepare": "husky && npm run build",
|
|
30
|
-
"prepublishOnly": "npm
|
|
30
|
+
"prepublishOnly": "npm run check:code && npm test",
|
|
31
31
|
"preversion": "npm run lint",
|
|
32
32
|
"version": "npm run format && git add -A src",
|
|
33
|
-
"postversion": "git push && git push --tags"
|
|
33
|
+
"postversion": "git push && git push --tags",
|
|
34
|
+
"format:check": "biome format .",
|
|
35
|
+
"check": "npm run check:code && npm run build && npm test -- --runInBand",
|
|
36
|
+
"check:code": "biome ci .",
|
|
37
|
+
"fix": "biome check --write ."
|
|
34
38
|
},
|
|
35
39
|
"repository": {
|
|
36
40
|
"type": "git",
|
|
@@ -54,7 +58,12 @@
|
|
|
54
58
|
"homepage": "https://github.com/SteerProtocol/data-connector-loader#readme",
|
|
55
59
|
"release": {
|
|
56
60
|
"branches": [
|
|
57
|
-
"main"
|
|
61
|
+
"main",
|
|
62
|
+
{
|
|
63
|
+
"name": "next",
|
|
64
|
+
"prerelease": "next",
|
|
65
|
+
"channel": "next"
|
|
66
|
+
}
|
|
58
67
|
],
|
|
59
68
|
"plugins": [
|
|
60
69
|
[
|
|
@@ -74,6 +83,7 @@
|
|
|
74
83
|
]
|
|
75
84
|
},
|
|
76
85
|
"devDependencies": {
|
|
86
|
+
"@biomejs/biome": "2.6.6",
|
|
77
87
|
"@commitlint/cli": "^20.5.0",
|
|
78
88
|
"@commitlint/config-conventional": "^20.5.0",
|
|
79
89
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
@@ -81,13 +91,9 @@
|
|
|
81
91
|
"@semantic-release/npm": "^13.1.5",
|
|
82
92
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
83
93
|
"@types/jest": "29.2.4",
|
|
84
|
-
"
|
|
85
|
-
"@typescript-eslint/parser": "5.47.1",
|
|
86
|
-
"eslint": "8.30.0",
|
|
87
|
-
"eslint-plugin-jest": "27.1.7",
|
|
94
|
+
"ethers": "^6.16.0",
|
|
88
95
|
"husky": "^9.1.7",
|
|
89
96
|
"jest": "29.3.1",
|
|
90
|
-
"prettier": "2.8.1",
|
|
91
97
|
"semantic-release": "^25.0.3",
|
|
92
98
|
"ts-jest": "29.0.3",
|
|
93
99
|
"typescript": "5.0.4"
|
|
@@ -96,11 +102,10 @@
|
|
|
96
102
|
"lib/**/*"
|
|
97
103
|
],
|
|
98
104
|
"dependencies": {
|
|
99
|
-
"@steerprotocol/app-loader": "^
|
|
100
|
-
"@steerprotocol/sdk": "^3.3.0",
|
|
105
|
+
"@steerprotocol/app-loader": "^4.0.0",
|
|
101
106
|
"@steerprotocol/strategy-utils": "^3.1.2",
|
|
102
107
|
"axios": "^1.3.4",
|
|
103
|
-
"
|
|
104
|
-
"
|
|
108
|
+
"timestring": "^7.0.0",
|
|
109
|
+
"viem": "^2.57.16"
|
|
105
110
|
}
|
|
106
111
|
}
|