@sentio/runtime 2.40.0-rc.35 → 2.40.0-rc.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
- "version": "2.40.0-rc.35",
3
+ "version": "2.40.0-rc.37",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
package/src/provider.ts CHANGED
@@ -32,7 +32,7 @@ export function getProvider(chainId?: EthChainId): Provider {
32
32
  const address = Endpoints.INSTANCE.chainServer.get(chainId)
33
33
  const key = network.chainId.toString() + '-' + address
34
34
 
35
- console.debug(`init provider for ${chainId}, address: ${address}`)
35
+ // console.debug(`init provider for ${chainId}, address: ${address}`)
36
36
  let provider = providers.get(key)
37
37
 
38
38
  if (provider) {
package/src/service.ts CHANGED
@@ -161,7 +161,7 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
161
161
  dbContext?: StoreContext,
162
162
  options?: CallContext
163
163
  ): Promise<PreparedData> {
164
- console.debug(`preprocessBindings start, bindings: ${bindings.length}`)
164
+ // console.debug(`preprocessBindings start, bindings: ${bindings.length}`)
165
165
  const promises = []
166
166
  for (const binding of bindings) {
167
167
  promises.push(this.preprocessBinding(binding, preprocessStore, dbContext, options))
@@ -256,9 +256,9 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
256
256
  } catch (e) {
257
257
  console.error(`eth call error: ${e}`)
258
258
  }
259
- console.debug(
260
- `${Object.keys(results).length} calls finished, actual calls: ${callPromises.length + multicallPromises.length}, elapsed: ${Date.now() - start}ms`
261
- )
259
+ // console.debug(
260
+ // `${Object.keys(results).length} calls finished, actual calls: ${callPromises.length + multicallPromises.length}, elapsed: ${Date.now() - start}ms`
261
+ // )
262
262
  return {
263
263
  ethCallResults: results
264
264
  }
@@ -8,6 +8,8 @@ export default defineConfig({
8
8
  },
9
9
  entry: ['src/index.ts', 'src/processor-runner.ts'],
10
10
  outDir: 'lib',
11
+ minify: true,
12
+ sourcemap: true,
11
13
  clean: true,
12
14
  dts: true,
13
15
  format: 'esm'