envio 3.0.0-alpha.22 → 3.0.0-alpha.24

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 (53) hide show
  1. package/README.md +3 -3
  2. package/evm.schema.json +1 -8
  3. package/fuel.schema.json +0 -7
  4. package/index.d.ts +223 -166
  5. package/package.json +6 -6
  6. package/src/Bin.res +8 -12
  7. package/src/Bin.res.mjs +2 -3
  8. package/src/ChainFetcher.res +5 -1
  9. package/src/ChainFetcher.res.mjs +5 -5
  10. package/src/ChainManager.res +11 -0
  11. package/src/ChainManager.res.mjs +7 -3
  12. package/src/Config.res +122 -7
  13. package/src/Config.res.mjs +138 -5
  14. package/src/Core.res +0 -6
  15. package/src/Core.res.mjs +0 -6
  16. package/src/Env.res +1 -1
  17. package/src/Env.res.mjs +2 -2
  18. package/src/Envio.res +12 -5
  19. package/src/Envio.res.mjs +9 -3
  20. package/src/EventProcessing.res +8 -8
  21. package/src/EventProcessing.res.mjs +4 -6
  22. package/src/GlobalState.res +12 -16
  23. package/src/GlobalState.res.mjs +26 -13
  24. package/src/GlobalStateManager.res +4 -2
  25. package/src/GlobalStateManager.res.mjs +2 -2
  26. package/src/HandlerLoader.res.mjs +3 -21
  27. package/src/Internal.res +3 -3
  28. package/src/Main.res +45 -32
  29. package/src/Main.res.mjs +39 -44
  30. package/src/Persistence.res +23 -2
  31. package/src/Persistence.res.mjs +5 -2
  32. package/src/PgStorage.res +22 -6
  33. package/src/PgStorage.res.mjs +15 -7
  34. package/src/SimulateItems.res.mjs +3 -21
  35. package/src/TestIndexer.res +4 -1
  36. package/src/TestIndexer.res.mjs +7 -25
  37. package/src/TestIndexerProxyStorage.res +2 -1
  38. package/src/TestIndexerProxyStorage.res.mjs +3 -2
  39. package/src/UserContext.res +4 -2
  40. package/src/UserContext.res.mjs +3 -1
  41. package/src/Utils.res +5 -0
  42. package/src/bindings/Postgres.res +5 -0
  43. package/src/bindings/Vitest.res +6 -0
  44. package/src/bindings/Vitest.res.mjs +12 -2
  45. package/src/db/InternalTable.res +45 -15
  46. package/src/db/InternalTable.res.mjs +36 -9
  47. package/src/sources/Source.res +1 -1
  48. package/src/sources/SourceManager.res +59 -55
  49. package/src/sources/SourceManager.res.mjs +30 -30
  50. package/src/sources/SourceManager.resi +11 -6
  51. package/src/tui/Tui.res +1 -1
  52. package/src/tui/Tui.res.mjs +1 -2
  53. package/svm.schema.json +0 -7
package/README.md CHANGED
@@ -107,9 +107,9 @@ This scaffolds your entire indexer project, config, schema, and handler function
107
107
 
108
108
  From there, three files define your indexer:
109
109
 
110
- - `config.yaml` networks, contracts, events, and indexing behaviour
111
- - `schema.graphql` the shape of your indexed data
112
- - `src/EventHandlers.*` your handler logic in TypeScript, JavaScript, or ReScript
110
+ - `config.yaml`: networks, contracts, events, and indexing behaviour
111
+ - `schema.graphql`: the shape of your indexed data
112
+ - `src/EventHandlers.*`: your handler logic in TypeScript, JavaScript, or ReScript
113
113
 
114
114
  [Full getting started guide →](https://docs.envio.dev/docs/HyperIndex/getting-started)
115
115
 
package/evm.schema.json CHANGED
@@ -22,13 +22,6 @@
22
22
  "null"
23
23
  ]
24
24
  },
25
- "output": {
26
- "description": "Path where the generated directory will be placed. By default it's 'generated' relative to the current working directory. If set, it'll be a path relative to the config file location.",
27
- "type": [
28
- "string",
29
- "null"
30
- ]
31
- },
32
25
  "handlers": {
33
26
  "description": "Optional relative path to handlers directory for auto-loading. Defaults to 'src/handlers' if not specified.",
34
27
  "type": [
@@ -568,7 +561,7 @@
568
561
  {
569
562
  "description": "Use RPC for real-time indexing only. HyperSync will be used for historical sync, then automatically switch to this RPC once synced for lower latency.",
570
563
  "type": "string",
571
- "const": "live"
564
+ "const": "realtime"
572
565
  }
573
566
  ]
574
567
  },
package/fuel.schema.json CHANGED
@@ -22,13 +22,6 @@
22
22
  "null"
23
23
  ]
24
24
  },
25
- "output": {
26
- "description": "Path where the generated directory will be placed. By default it's 'generated' relative to the current working directory. If set, it'll be a path relative to the config file location.",
27
- "type": [
28
- "string",
29
- "null"
30
- ]
31
- },
32
25
  "handlers": {
33
26
  "description": "Optional relative path to handlers directory for auto-loading. Defaults to 'src/handlers' if not specified.",
34
27
  "type": [