envio 2.31.1 → 2.32.0

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.
@@ -165,7 +165,7 @@ module Chains = {
165
165
  ],
166
166
  )
167
167
 
168
- let initialFromConfig = (chainConfig: InternalConfig.chain) => {
168
+ let initialFromConfig = (chainConfig: Config.chain) => {
169
169
  {
170
170
  id: chainConfig.id,
171
171
  startBlock: chainConfig.startBlock,
@@ -182,7 +182,7 @@ module Chains = {
182
182
  }
183
183
  }
184
184
 
185
- let makeInitialValuesQuery = (~pgSchema, ~chainConfigs: array<InternalConfig.chain>) => {
185
+ let makeInitialValuesQuery = (~pgSchema, ~chainConfigs: array<Config.chain>) => {
186
186
  if chainConfigs->Array.length === 0 {
187
187
  None
188
188
  } else {
@@ -218,7 +218,7 @@ let getNextPage = (
218
218
  ~addresses,
219
219
  ~topicQuery,
220
220
  ~loadBlock,
221
- ~syncConfig as sc: InternalConfig.sourceSync,
221
+ ~syncConfig as sc: Config.sourceSync,
222
222
  ~provider,
223
223
  ~mutSuggestedBlockIntervals,
224
224
  ~partitionId,
@@ -465,7 +465,7 @@ let sanitizeUrl = (url: string) => {
465
465
 
466
466
  type options = {
467
467
  sourceFor: Source.sourceFor,
468
- syncConfig: InternalConfig.sourceSync,
468
+ syncConfig: Config.sourceSync,
469
469
  url: string,
470
470
  chain: ChainMap.Chain.t,
471
471
  contracts: array<Internal.evmContractConfig>,
@@ -1,48 +0,0 @@
1
- // TODO: rename the file to Config.res after finishing the migration from codegen
2
- // And turn it into PublicConfig instead
3
- // For internal use we should create Indexer.res with a stateful type
4
-
5
- type ecosystem = | @as("evm") Evm | @as("fuel") Fuel
6
-
7
- type sourceSyncOptions = {
8
- initialBlockInterval?: int,
9
- backoffMultiplicative?: float,
10
- accelerationAdditive?: int,
11
- intervalCeiling?: int,
12
- backoffMillis?: int,
13
- queryTimeoutMillis?: int,
14
- fallbackStallTimeout?: int,
15
- }
16
-
17
- type historyFlag = FullHistory | MinHistory
18
- type rollbackFlag = RollbackOnReorg | NoRollback
19
- type historyConfig = {rollbackFlag: rollbackFlag, historyFlag: historyFlag}
20
-
21
- type contract = {
22
- name: string,
23
- abi: EvmTypes.Abi.t,
24
- addresses: array<Address.t>,
25
- events: array<Internal.eventConfig>,
26
- startBlock: option<int>,
27
- }
28
-
29
- type chain = {
30
- id: int,
31
- startBlock: int,
32
- endBlock?: int,
33
- maxReorgDepth: int,
34
- contracts: array<contract>,
35
- sources: array<Source.t>,
36
- }
37
-
38
- type sourceSync = {
39
- initialBlockInterval: int,
40
- backoffMultiplicative: float,
41
- accelerationAdditive: int,
42
- intervalCeiling: int,
43
- backoffMillis: int,
44
- queryTimeoutMillis: int,
45
- fallbackStallTimeout: int,
46
- }
47
-
48
- type multichain = | @as("ordered") Ordered | @as("unordered") Unordered
File without changes