@steerprotocol/data-connector-loader 5.0.0-next.1 → 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.
Files changed (50) hide show
  1. package/README.md +102 -0
  2. package/lib/bundle/bundleBase.d.ts +11 -14
  3. package/lib/bundle/bundleBase.js +56 -88
  4. package/lib/bundle/bundleDataConnector.d.ts +2 -6
  5. package/lib/bundle/bundleDataConnector.js +22 -47
  6. package/lib/esm/bundle/bundleBase.d.ts +11 -14
  7. package/lib/esm/bundle/bundleBase.js +77 -91
  8. package/lib/esm/bundle/bundleDataConnector.d.ts +2 -6
  9. package/lib/esm/bundle/bundleDataConnector.js +26 -49
  10. package/lib/esm/execution/executionApp.d.ts +16 -15
  11. package/lib/esm/execution/executionApp.js +364 -321
  12. package/lib/esm/execution/executionBase.d.ts +7 -7
  13. package/lib/esm/execution/executionBase.js +27 -13
  14. package/lib/esm/execution/executionDataConnector.d.ts +6 -3
  15. package/lib/esm/execution/executionDataConnector.js +128 -69
  16. package/lib/esm/index.d.ts +7 -7
  17. package/lib/esm/index.js +4 -4
  18. package/lib/esm/types.d.ts +20 -24
  19. package/lib/esm/types.js +5 -5
  20. package/lib/esm/utils/blockFinder.d.ts +2 -2
  21. package/lib/esm/utils/blockFinder.js +3 -3
  22. package/lib/esm/utils/consts.js +39 -39
  23. package/lib/esm/utils/pluginManager.d.ts +1 -1
  24. package/lib/esm/utils/pluginManager.js +6 -5
  25. package/lib/esm/utils/replace-old-subgraphs.js +79 -61
  26. package/lib/esm/utils/rpc.d.ts +4 -0
  27. package/lib/esm/utils/rpc.js +32 -0
  28. package/lib/esm/utils/utils.d.ts +8 -11
  29. package/lib/esm/utils/utils.js +61 -55
  30. package/lib/execution/executionApp.d.ts +16 -15
  31. package/lib/execution/executionApp.js +353 -315
  32. package/lib/execution/executionBase.d.ts +7 -7
  33. package/lib/execution/executionBase.js +27 -13
  34. package/lib/execution/executionDataConnector.d.ts +6 -3
  35. package/lib/execution/executionDataConnector.js +130 -64
  36. package/lib/index.d.ts +7 -7
  37. package/lib/index.js +1 -1
  38. package/lib/types.d.ts +20 -24
  39. package/lib/types.js +5 -5
  40. package/lib/utils/blockFinder.d.ts +2 -2
  41. package/lib/utils/blockFinder.js +3 -3
  42. package/lib/utils/consts.js +39 -39
  43. package/lib/utils/pluginManager.d.ts +1 -1
  44. package/lib/utils/pluginManager.js +5 -4
  45. package/lib/utils/replace-old-subgraphs.js +79 -61
  46. package/lib/utils/rpc.d.ts +4 -0
  47. package/lib/utils/rpc.js +47 -0
  48. package/lib/utils/utils.d.ts +8 -11
  49. package/lib/utils/utils.js +55 -60
  50. package/package.json +15 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steerprotocol/data-connector-loader",
3
- "version": "5.0.0-next.1",
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",
@@ -18,19 +18,23 @@
18
18
  "build": "npm run build:cjs && npm run build:esm",
19
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": "prettier --write \"src/**/*.(js|ts)\"",
22
- "lint": "eslint src --ext .js,.ts",
21
+ "format": "biome format --write .",
22
+ "lint": "biome lint .",
23
23
  "lint:commit": "commitlint --from=HEAD~1 --to=HEAD",
24
- "lint:fix": "eslint src --fix --ext .js,.ts",
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 test && npm run lint",
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",
@@ -79,6 +83,7 @@
79
83
  ]
80
84
  },
81
85
  "devDependencies": {
86
+ "@biomejs/biome": "2.6.6",
82
87
  "@commitlint/cli": "^20.5.0",
83
88
  "@commitlint/config-conventional": "^20.5.0",
84
89
  "@semantic-release/commit-analyzer": "^13.0.1",
@@ -86,13 +91,9 @@
86
91
  "@semantic-release/npm": "^13.1.5",
87
92
  "@semantic-release/release-notes-generator": "^14.1.0",
88
93
  "@types/jest": "29.2.4",
89
- "@typescript-eslint/eslint-plugin": "5.46.0",
90
- "@typescript-eslint/parser": "5.47.1",
91
- "eslint": "8.30.0",
92
- "eslint-plugin-jest": "27.1.7",
94
+ "ethers": "^6.16.0",
93
95
  "husky": "^9.1.7",
94
96
  "jest": "29.3.1",
95
- "prettier": "2.8.1",
96
97
  "semantic-release": "^25.0.3",
97
98
  "ts-jest": "29.0.3",
98
99
  "typescript": "5.0.4"
@@ -101,11 +102,10 @@
101
102
  "lib/**/*"
102
103
  ],
103
104
  "dependencies": {
104
- "@steerprotocol/app-loader": "^3.0.6",
105
- "@steerprotocol/sdk": "^3.3.0",
105
+ "@steerprotocol/app-loader": "^4.0.0",
106
106
  "@steerprotocol/strategy-utils": "^3.1.2",
107
107
  "axios": "^1.3.4",
108
- "ethers": "^6.16.0",
109
- "timestring": "^7.0.0"
108
+ "timestring": "^7.0.0",
109
+ "viem": "^2.57.16"
110
110
  }
111
111
  }