@effectstream/npm-midnight-indexer 0.200.6 → 0.300.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.
package/binary.js CHANGED
@@ -4,7 +4,7 @@ const axios = require("axios");
4
4
  const extract = require("extract-zip");
5
5
  const path = require("path");
6
6
 
7
- const CURRENT_BINARY_VERSION = "v4.4.0-rc.1";
7
+ const CURRENT_BINARY_VERSION = "v4.4.0-rc.6-ledger9final";
8
8
  const FINAL_BINARY_NAME = "indexer-standalone";
9
9
 
10
10
  /*
@@ -10,8 +10,6 @@ application:
10
10
  active_wallets_query_delay: "500ms"
11
11
  active_wallets_ttl: "30m"
12
12
  transaction_batch_size: 50
13
- # 1 by default
14
- # concurrency_limit:
15
13
 
16
14
  spo:
17
15
  interval: 5000
@@ -22,29 +20,21 @@ spo:
22
20
 
23
21
  infra:
24
22
  run_migrations: true
25
-
26
23
  storage:
27
- cnn_url: "data/indexer.sqlite"
28
-
24
+ cnn_url: "./data/indexer.sqlite"
29
25
  ledger_db:
30
- cache_size: "1kiB"
31
- cnn_url: "data/ledger-db.sqlite"
32
-
26
+ cache_max_nodes: 100000
27
+ cnn_url: "./data/ledger-db.sqlite"
33
28
  node:
34
29
  url: "ws://localhost:9944"
35
- reconnect_max_delay: "10s" # 10ms, 100ms, 1s, 10s
36
- reconnect_max_attempts: 30 # Roughly 5m
37
- subscription_recovery_timeout: "30s" # Re-subscribe if no block received within this time
38
-
30
+ reconnect_max_delay: "10s"
31
+ reconnect_max_attempts: 30
32
+ subscription_recovery_timeout: "30s"
39
33
  spo_node:
40
34
  url: "ws://localhost:9944"
41
35
  reconnect_max_delay: "10s"
42
36
  reconnect_max_attempts: 30
43
- # blockfrost_id is required (must be a non-empty string). SPO/Cardano
44
- # features are not exercised in local undeployed dev, so a placeholder is
45
- # shipped here; override with APP__INFRA__SPO_NODE__BLOCKFROST_ID if needed.
46
37
  blockfrost_id: "dummy-not-using-spo"
47
-
48
38
  api:
49
39
  address: "0.0.0.0"
50
40
  port: 8088
@@ -52,20 +42,13 @@ infra:
52
42
  max_complexity: 200
53
43
  max_depth: 15
54
44
  subscription:
55
- blocks:
56
- batch_size: 20
57
- contract_actions:
58
- batch_size: 20
59
- contract_events:
60
- batch_size: 20
61
- dust_generations:
62
- batch_size: 20
63
- dust_ledger_events:
64
- batch_size: 20
65
- dust_nullifier_transactions:
66
- batch_size: 20
67
- shielded_nullifier_transactions:
68
- batch_size: 20
45
+ blocks: { batch_size: 20 }
46
+ contract_actions: { batch_size: 20 }
47
+ contract_events: { batch_size: 20 }
48
+ dust_generations: { batch_size: 20 }
49
+ dust_ledger_events: { batch_size: 20 }
50
+ dust_nullifier_transactions: { batch_size: 20 }
51
+ shielded_nullifier_transactions: { batch_size: 20 }
69
52
  shielded_transactions:
70
53
  batch_size: 20
71
54
  progress_update_interval: "30s"
@@ -73,14 +56,17 @@ infra:
73
56
  unshielded_transactions:
74
57
  batch_size: 20
75
58
  progress_update_interval: "30s"
76
- zswap_ledger_events:
77
- batch_size: 20
59
+ zswap_ledger_events: { batch_size: 20 }
78
60
  progress_cache:
79
61
  max_capacity: 10000
80
62
  time_to_live: "5s"
81
63
  quota:
82
64
  max_concurrent_per_connection: 20
83
65
  max_session_subscriptions_per_minute: 10
66
+ contract_state_cache:
67
+ max_capacity: "512MiB"
68
+ time_to_idle: "10m"
69
+ max_concurrent_loads: 6
84
70
 
85
71
  telemetry:
86
72
  tracing:
@@ -90,4 +76,4 @@ telemetry:
90
76
  metrics:
91
77
  enabled: false
92
78
  address: "0.0.0.0"
93
- port: 9000
79
+ port: 9000
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effectstream/npm-midnight-indexer",
3
- "version": "0.200.6",
3
+ "version": "0.300.0",
4
4
  "description": "Downloads and runs the Midnight Indexer. It needs a running Midnight Node",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -119,7 +119,7 @@ infra:
119
119
  storage:
120
120
  cnn_url: "${cnnUrl}"
121
121
  ledger_db:
122
- cache_size: "1kiB"
122
+ cache_max_nodes: 100000
123
123
  cnn_url: "${env.APP__INFRA__LEDGER_DB__CNN_URL || "./data/ledger-db.sqlite"}"
124
124
  node:
125
125
  url: "${nodeUrl}"
@@ -159,6 +159,10 @@ infra:
159
159
  quota:
160
160
  max_concurrent_per_connection: 20
161
161
  max_session_subscriptions_per_minute: 10
162
+ contract_state_cache:
163
+ max_capacity: "512MiB"
164
+ time_to_idle: "10m"
165
+ max_concurrent_loads: 6
162
166
 
163
167
  telemetry:
164
168
  tracing: