@aztec/foundation 0.0.1-commit.4d3c002 → 0.0.1-commit.4d9804df
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/dest/bigint-buffer/index.d.ts +1 -1
- package/dest/bigint-buffer/index.d.ts.map +1 -1
- package/dest/bigint-buffer/index.js +6 -1
- package/dest/branded-types/block_number.d.ts +3 -3
- package/dest/branded-types/block_number.d.ts.map +1 -1
- package/dest/branded-types/block_number.js +15 -4
- package/dest/branded-types/buffer32_hash.d.ts +27 -0
- package/dest/branded-types/buffer32_hash.d.ts.map +1 -0
- package/dest/branded-types/buffer32_hash.js +12 -0
- package/dest/branded-types/checkpoint_number.d.ts +9 -3
- package/dest/branded-types/checkpoint_number.d.ts.map +1 -1
- package/dest/branded-types/checkpoint_number.js +11 -0
- package/dest/branded-types/epoch.d.ts +2 -2
- package/dest/branded-types/epoch.d.ts.map +1 -1
- package/dest/branded-types/index.d.ts +2 -1
- package/dest/branded-types/index.d.ts.map +1 -1
- package/dest/branded-types/index.js +1 -0
- package/dest/branded-types/index_within_checkpoint.d.ts +2 -2
- package/dest/branded-types/index_within_checkpoint.d.ts.map +1 -1
- package/dest/branded-types/slot.d.ts +2 -2
- package/dest/branded-types/slot.d.ts.map +1 -1
- package/dest/buffer/buffer16.d.ts +3 -3
- package/dest/buffer/buffer16.d.ts.map +1 -1
- package/dest/buffer/buffer32.d.ts +28 -63
- package/dest/buffer/buffer32.d.ts.map +1 -1
- package/dest/buffer/buffer32.js +29 -63
- package/dest/collection/array.d.ts +9 -1
- package/dest/collection/array.d.ts.map +1 -1
- package/dest/collection/array.js +18 -0
- package/dest/collection/index.d.ts +2 -1
- package/dest/collection/index.d.ts.map +1 -1
- package/dest/collection/index.js +1 -0
- package/dest/collection/lru_map.d.ts +41 -0
- package/dest/collection/lru_map.d.ts.map +1 -0
- package/dest/collection/lru_map.js +119 -0
- package/dest/committable/committable.js +1 -1
- package/dest/config/env_var.d.ts +2 -2
- package/dest/config/env_var.d.ts.map +1 -1
- package/dest/config/index.d.ts +67 -37
- package/dest/config/index.d.ts.map +1 -1
- package/dest/config/index.js +72 -71
- package/dest/config/network_config.d.ts +11 -55
- package/dest/config/network_config.d.ts.map +1 -1
- package/dest/config/network_name.d.ts +2 -2
- package/dest/config/network_name.d.ts.map +1 -1
- package/dest/config/network_name.js +1 -3
- package/dest/config/secret_value.d.ts +2 -2
- package/dest/config/secret_value.d.ts.map +1 -1
- package/dest/crypto/bls/bn254_keystore.d.ts +10 -168
- package/dest/crypto/bls/bn254_keystore.d.ts.map +1 -1
- package/dest/crypto/bls/bn254_keystore.js +22 -17
- package/dest/crypto/keys/index.d.ts +3 -2
- package/dest/crypto/keys/index.d.ts.map +1 -1
- package/dest/crypto/keys/index.js +30 -6
- package/dest/crypto/schnorr/index.d.ts +8 -7
- package/dest/crypto/schnorr/index.d.ts.map +1 -1
- package/dest/crypto/schnorr/index.js +6 -6
- package/dest/crypto/schnorr/signature.d.ts +9 -29
- package/dest/crypto/schnorr/signature.d.ts.map +1 -1
- package/dest/crypto/schnorr/signature.js +20 -36
- package/dest/curves/bls12/field.d.ts +3 -3
- package/dest/curves/bls12/field.d.ts.map +1 -1
- package/dest/curves/bls12/field.js +0 -5
- package/dest/curves/bls12/point.d.ts +2 -2
- package/dest/curves/bls12/point.d.ts.map +1 -1
- package/dest/curves/bn254/field.d.ts +23 -19
- package/dest/curves/bn254/field.d.ts.map +1 -1
- package/dest/curves/bn254/field.js +23 -17
- package/dest/curves/grumpkin/point.d.ts +13 -27
- package/dest/curves/grumpkin/point.d.ts.map +1 -1
- package/dest/curves/grumpkin/point.js +28 -42
- package/dest/eth-address/index.d.ts +2 -2
- package/dest/eth-address/index.d.ts.map +1 -1
- package/dest/eth-address/index.js +0 -3
- package/dest/eth-signature/eth_signature.d.ts +2 -2
- package/dest/eth-signature/eth_signature.d.ts.map +1 -1
- package/dest/fifo/fifo_frame_reader.d.ts +2 -2
- package/dest/fifo/fifo_frame_reader.d.ts.map +1 -1
- package/dest/fifo/fifo_frame_reader.js +21 -4
- package/dest/fifo_set/fifo_set.d.ts +15 -0
- package/dest/fifo_set/fifo_set.d.ts.map +1 -0
- package/dest/fifo_set/fifo_set.js +39 -0
- package/dest/fifo_set/index.d.ts +2 -0
- package/dest/fifo_set/index.d.ts.map +1 -0
- package/dest/fifo_set/index.js +1 -0
- package/dest/json-rpc/client/safe_json_rpc_client.d.ts +1 -1
- package/dest/json-rpc/client/safe_json_rpc_client.d.ts.map +1 -1
- package/dest/json-rpc/client/safe_json_rpc_client.js +2 -2
- package/dest/json-rpc/fixtures/test_state.d.ts +4 -8
- package/dest/json-rpc/fixtures/test_state.d.ts.map +1 -1
- package/dest/json-rpc/fixtures/test_state.js +57 -17
- package/dest/json-rpc/server/safe_json_rpc_server.d.ts +8 -3
- package/dest/json-rpc/server/safe_json_rpc_server.d.ts.map +1 -1
- package/dest/json-rpc/server/safe_json_rpc_server.js +27 -13
- package/dest/log/pino-logger.js +15 -1
- package/dest/noir/noir_package_config.d.ts +19 -104
- package/dest/noir/noir_package_config.d.ts.map +1 -1
- package/dest/noir/noir_package_config.js +1 -1
- package/dest/promise/running-promise.d.ts +5 -4
- package/dest/promise/running-promise.d.ts.map +1 -1
- package/dest/promise/running-promise.js +7 -3
- package/dest/retry/index.d.ts +20 -3
- package/dest/retry/index.d.ts.map +1 -1
- package/dest/retry/index.js +23 -2
- package/dest/schemas/api.d.ts +11 -9
- package/dest/schemas/api.d.ts.map +1 -1
- package/dest/schemas/api.js +7 -1
- package/dest/schemas/parse.d.ts +4 -4
- package/dest/schemas/parse.d.ts.map +1 -1
- package/dest/schemas/parse.js +6 -5
- package/dest/schemas/schemas.d.ts +15 -15
- package/dest/schemas/types.d.ts +3 -3
- package/dest/schemas/types.d.ts.map +1 -1
- package/dest/schemas/utils.d.ts +7 -11
- package/dest/schemas/utils.d.ts.map +1 -1
- package/dest/schemas/utils.js +2 -18
- package/dest/serialize/buffer_sink.d.ts +134 -0
- package/dest/serialize/buffer_sink.d.ts.map +1 -0
- package/dest/serialize/buffer_sink.js +297 -0
- package/dest/serialize/index.d.ts +2 -1
- package/dest/serialize/index.d.ts.map +1 -1
- package/dest/serialize/index.js +1 -0
- package/dest/string/index.js +1 -1
- package/dest/testing/files/index.d.ts +2 -3
- package/dest/testing/files/index.d.ts.map +1 -1
- package/dest/testing/files/index.js +1 -2
- package/dest/timer/index.d.ts +2 -2
- package/dest/timer/index.d.ts.map +1 -1
- package/dest/timer/index.js +1 -1
- package/dest/timer/timeout.d.ts +3 -1
- package/dest/timer/timeout.d.ts.map +1 -1
- package/dest/timer/timeout.js +26 -0
- package/dest/trees/balanced_merkle_tree_root.d.ts +2 -3
- package/dest/trees/balanced_merkle_tree_root.d.ts.map +1 -1
- package/dest/trees/balanced_merkle_tree_root.js +2 -3
- package/dest/trees/hasher.d.ts +3 -2
- package/dest/trees/hasher.d.ts.map +1 -1
- package/dest/trees/hasher.js +5 -5
- package/dest/trees/membership_witness.d.ts +2 -6
- package/dest/trees/membership_witness.d.ts.map +1 -1
- package/dest/trees/membership_witness.js +0 -9
- package/dest/trees/merkle_tree_calculator.d.ts +4 -2
- package/dest/trees/merkle_tree_calculator.d.ts.map +1 -1
- package/dest/trees/merkle_tree_calculator.js +1 -5
- package/dest/trees/sibling_path.d.ts +5 -4
- package/dest/trees/sibling_path.d.ts.map +1 -1
- package/dest/trees/sibling_path.js +10 -8
- package/dest/trees/unbalanced_merkle_tree_root.d.ts +2 -3
- package/dest/trees/unbalanced_merkle_tree_root.d.ts.map +1 -1
- package/dest/trees/unbalanced_merkle_tree_root.js +2 -3
- package/dest/types/index.d.ts +23 -1
- package/dest/types/index.d.ts.map +1 -1
- package/dest/types/index.js +15 -0
- package/package.json +5 -4
- package/src/bigint-buffer/index.ts +6 -1
- package/src/branded-types/block_number.ts +20 -2
- package/src/branded-types/buffer32_hash.ts +38 -0
- package/src/branded-types/checkpoint_number.ts +16 -1
- package/src/branded-types/epoch.ts +1 -1
- package/src/branded-types/index.ts +1 -0
- package/src/branded-types/index_within_checkpoint.ts +1 -1
- package/src/branded-types/slot.ts +1 -1
- package/src/buffer/buffer16.ts +2 -2
- package/src/buffer/buffer32.ts +39 -71
- package/src/collection/array.ts +20 -0
- package/src/collection/index.ts +1 -0
- package/src/collection/lru_map.ts +143 -0
- package/src/committable/committable.ts +1 -1
- package/src/config/env_var.ts +42 -22
- package/src/config/index.ts +143 -122
- package/src/config/network_name.ts +2 -5
- package/src/config/secret_value.ts +1 -1
- package/src/crypto/bls/bn254_keystore.ts +33 -20
- package/src/crypto/keys/index.ts +20 -4
- package/src/crypto/schnorr/index.ts +9 -8
- package/src/crypto/schnorr/signature.ts +17 -46
- package/src/curves/bls12/field.ts +0 -7
- package/src/curves/bn254/field.ts +35 -34
- package/src/curves/grumpkin/point.ts +22 -39
- package/src/eth-address/index.ts +0 -4
- package/src/fifo/fifo_frame_reader.ts +17 -2
- package/src/fifo_set/fifo_set.ts +52 -0
- package/src/fifo_set/index.ts +1 -0
- package/src/json-rpc/client/safe_json_rpc_client.ts +2 -2
- package/src/json-rpc/fixtures/test_state.ts +10 -10
- package/src/json-rpc/server/safe_json_rpc_server.ts +31 -13
- package/src/log/pino-logger.ts +16 -1
- package/src/noir/noir_package_config.ts +32 -20
- package/src/promise/running-promise.ts +8 -5
- package/src/retry/index.ts +36 -4
- package/src/schemas/api.ts +21 -24
- package/src/schemas/parse.ts +9 -6
- package/src/schemas/schemas.ts +4 -4
- package/src/schemas/types.ts +2 -2
- package/src/schemas/utils.ts +4 -38
- package/src/serialize/buffer_sink.ts +350 -0
- package/src/serialize/index.ts +1 -0
- package/src/string/index.ts +1 -1
- package/src/testing/files/index.ts +1 -2
- package/src/timer/index.ts +1 -1
- package/src/timer/timeout.ts +31 -0
- package/src/trees/balanced_merkle_tree_root.ts +2 -5
- package/src/trees/hasher.ts +6 -3
- package/src/trees/membership_witness.ts +0 -8
- package/src/trees/merkle_tree_calculator.ts +4 -10
- package/src/trees/sibling_path.ts +11 -6
- package/src/trees/unbalanced_merkle_tree_root.ts +2 -5
- package/src/types/index.ts +47 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/** Node in a doubly-linked list used by {@link LruMap}. */
|
|
2
|
+
type LruNode<K, V> = {
|
|
3
|
+
key: K;
|
|
4
|
+
value: V;
|
|
5
|
+
prev: LruNode<K, V> | undefined;
|
|
6
|
+
next: LruNode<K, V> | undefined;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A bounded key-value map with Least Recently Used (LRU) eviction.
|
|
11
|
+
* Both {@link get} and {@link set} count as an access and refresh the entry's
|
|
12
|
+
* recency, so entries that are actively used stay in the map longest.
|
|
13
|
+
*
|
|
14
|
+
* Uses a doubly-linked list for O(1) ordering and a Map for O(1) lookup.
|
|
15
|
+
* Head = least recent, tail = most recent.
|
|
16
|
+
*/
|
|
17
|
+
export class LruMap<K, V> {
|
|
18
|
+
/** Map from key to its linked-list node for O(1) lookup. */
|
|
19
|
+
private readonly map = new Map<K, LruNode<K, V>>();
|
|
20
|
+
private head: LruNode<K, V> | undefined;
|
|
21
|
+
private tail: LruNode<K, V> | undefined;
|
|
22
|
+
|
|
23
|
+
constructor(private readonly maxSize: number) {
|
|
24
|
+
if (maxSize < 1) {
|
|
25
|
+
throw new Error('LruMap maxSize must be at least 1');
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** Number of entries in the map. */
|
|
30
|
+
get size(): number {
|
|
31
|
+
return this.map.size;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** Returns true if the key is present, without refreshing its recency. */
|
|
35
|
+
has(key: K): boolean {
|
|
36
|
+
return this.map.has(key);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Returns the value for the key, or undefined if absent.
|
|
41
|
+
* Refreshes the entry's recency so it becomes the most recently used.
|
|
42
|
+
*/
|
|
43
|
+
get(key: K): V | undefined {
|
|
44
|
+
const node = this.map.get(key);
|
|
45
|
+
if (!node) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
this.moveToTail(node);
|
|
49
|
+
return node.value;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Stores a value for the key, refreshing its recency. If the key already exists, overwrites the value.
|
|
54
|
+
* If the map is at capacity, evicts the least recently used entry.
|
|
55
|
+
*/
|
|
56
|
+
set(key: K, value: V): void {
|
|
57
|
+
const existing = this.map.get(key);
|
|
58
|
+
if (existing) {
|
|
59
|
+
existing.value = value;
|
|
60
|
+
this.moveToTail(existing);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (this.map.size >= this.maxSize) {
|
|
65
|
+
this.evictHead();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const node: LruNode<K, V> = { key, value, prev: this.tail, next: undefined };
|
|
69
|
+
if (this.tail) {
|
|
70
|
+
this.tail.next = node;
|
|
71
|
+
} else {
|
|
72
|
+
this.head = node;
|
|
73
|
+
}
|
|
74
|
+
this.tail = node;
|
|
75
|
+
this.map.set(key, node);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** Removes the entry for the key, returning true if it was present. */
|
|
79
|
+
delete(key: K): boolean {
|
|
80
|
+
const node = this.map.get(key);
|
|
81
|
+
if (!node) {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
this.unlink(node);
|
|
85
|
+
this.map.delete(key);
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** Removes all entries from the map. */
|
|
90
|
+
clear(): void {
|
|
91
|
+
this.map.clear();
|
|
92
|
+
this.head = undefined;
|
|
93
|
+
this.tail = undefined;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** Unlinks a node from its current position and relinks it at the tail. */
|
|
97
|
+
private moveToTail(node: LruNode<K, V>): void {
|
|
98
|
+
if (node === this.tail) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
this.unlink(node);
|
|
102
|
+
|
|
103
|
+
node.prev = this.tail;
|
|
104
|
+
node.next = undefined;
|
|
105
|
+
if (this.tail) {
|
|
106
|
+
this.tail.next = node;
|
|
107
|
+
} else {
|
|
108
|
+
this.head = node;
|
|
109
|
+
}
|
|
110
|
+
this.tail = node;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** Detaches a node from the linked list, fixing up its neighbours and the head/tail pointers. */
|
|
114
|
+
private unlink(node: LruNode<K, V>): void {
|
|
115
|
+
if (node.prev) {
|
|
116
|
+
node.prev.next = node.next;
|
|
117
|
+
} else {
|
|
118
|
+
this.head = node.next;
|
|
119
|
+
}
|
|
120
|
+
if (node.next) {
|
|
121
|
+
node.next.prev = node.prev;
|
|
122
|
+
} else {
|
|
123
|
+
this.tail = node.prev;
|
|
124
|
+
}
|
|
125
|
+
node.prev = undefined;
|
|
126
|
+
node.next = undefined;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/** Evicts the head (least recently used) node. */
|
|
130
|
+
private evictHead(): void {
|
|
131
|
+
const oldHead = this.head;
|
|
132
|
+
if (!oldHead) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
this.head = oldHead.next;
|
|
136
|
+
if (this.head) {
|
|
137
|
+
this.head.prev = undefined;
|
|
138
|
+
} else {
|
|
139
|
+
this.tail = undefined;
|
|
140
|
+
}
|
|
141
|
+
this.map.delete(oldHead.key);
|
|
142
|
+
}
|
|
143
|
+
}
|
package/src/config/env_var.ts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
export type EnvVar =
|
|
2
2
|
| 'REGISTRY_CONTRACT_ADDRESS'
|
|
3
3
|
| 'FEE_ASSET_HANDLER_CONTRACT_ADDRESS'
|
|
4
|
-
| 'SLASH_FACTORY_CONTRACT_ADDRESS'
|
|
5
4
|
| 'ACVM_BINARY_PATH'
|
|
6
5
|
| 'ACVM_WORKING_DIRECTORY'
|
|
7
6
|
| 'API_KEY'
|
|
8
7
|
| 'API_PREFIX'
|
|
9
|
-
| 'ARCHIVER_MAX_LOGS'
|
|
10
8
|
| 'ARCHIVER_POLLING_INTERVAL_MS'
|
|
9
|
+
| 'ARCHIVER_SKIP_HISTORICAL_LOGS_CHECK'
|
|
11
10
|
| 'ARCHIVER_URL'
|
|
12
11
|
| 'ARCHIVER_VIEM_POLLING_INTERVAL_MS'
|
|
13
12
|
| 'ARCHIVER_BATCH_SIZE'
|
|
13
|
+
| 'ARCHIVER_ORPHAN_PRUNE_NO_PROPOSAL_TOLERANCE'
|
|
14
|
+
| 'ARCHIVER_SKIP_ORPHAN_PROPOSED_BLOCK_PRUNING'
|
|
14
15
|
| 'AZTEC_ADMIN_PORT'
|
|
16
|
+
| 'AZTEC_NODE_DEBUG'
|
|
15
17
|
| 'AZTEC_ADMIN_API_KEY_HASH'
|
|
16
18
|
| 'AZTEC_DISABLE_ADMIN_API_KEY'
|
|
17
19
|
| 'AZTEC_RESET_ADMIN_API_KEY'
|
|
@@ -25,6 +27,7 @@ export type EnvVar =
|
|
|
25
27
|
| 'BB_IVC_CONCURRENCY'
|
|
26
28
|
| 'BB_CHONK_VERIFY_MAX_BATCH'
|
|
27
29
|
| 'BB_CHONK_VERIFY_BATCH_CONCURRENCY'
|
|
30
|
+
| 'BB_DEBUG_OUTPUT_DIR'
|
|
28
31
|
| 'BOOTSTRAP_NODES'
|
|
29
32
|
| 'BLOB_ARCHIVE_API_URL'
|
|
30
33
|
| 'BLOB_FILE_STORE_URLS'
|
|
@@ -74,6 +77,8 @@ export type EnvVar =
|
|
|
74
77
|
| 'DEBUG'
|
|
75
78
|
| 'DEBUG_P2P_DISABLE_COLOCATION_PENALTY'
|
|
76
79
|
| 'ENABLE_PROVER_NODE'
|
|
80
|
+
| 'USE_AUTOMINE_SEQUENCER'
|
|
81
|
+
| 'AUTOMINE_ENABLE_PROVE_EPOCH'
|
|
77
82
|
| 'ETHEREUM_HOSTS'
|
|
78
83
|
| 'ETHEREUM_DEBUG_HOSTS'
|
|
79
84
|
| 'ETHEREUM_ALLOW_NO_DEBUG_HOSTS'
|
|
@@ -94,14 +99,16 @@ export type EnvVar =
|
|
|
94
99
|
| 'MNEMONIC'
|
|
95
100
|
| 'NETWORK'
|
|
96
101
|
| 'NETWORK_CONFIG_LOCATION'
|
|
97
|
-
| '
|
|
102
|
+
| 'ALLOW_OVERRIDING_NETWORK_CONFIG'
|
|
98
103
|
| 'USE_GCLOUD_LOGGING'
|
|
99
104
|
| 'OTEL_EXPORTER_OTLP_METRICS_ENDPOINT'
|
|
100
105
|
| 'OTEL_EXPORTER_OTLP_TRACES_ENDPOINT'
|
|
101
106
|
| 'OTEL_EXPORTER_OTLP_LOGS_ENDPOINT'
|
|
102
107
|
| 'OTEL_COLLECT_INTERVAL_MS'
|
|
108
|
+
| 'OTEL_BSP_MAX_QUEUE_SIZE'
|
|
103
109
|
| 'OTEL_EXCLUDE_METRICS'
|
|
104
110
|
| 'OTEL_INCLUDE_METRICS'
|
|
111
|
+
| 'OTEL_MIN_TRACE_DURATION_MS'
|
|
105
112
|
| 'OTEL_EXPORT_TIMEOUT_MS'
|
|
106
113
|
| 'PUBLIC_OTEL_EXPORTER_OTLP_METRICS_ENDPOINT'
|
|
107
114
|
| 'PUBLIC_OTEL_INCLUDE_METRICS'
|
|
@@ -112,7 +119,6 @@ export type EnvVar =
|
|
|
112
119
|
| 'P2P_BATCH_TX_REQUESTER_TX_BATCH_SIZE'
|
|
113
120
|
| 'P2P_BATCH_TX_REQUESTER_BAD_PEER_THRESHOLD'
|
|
114
121
|
| 'P2P_BLOCK_CHECK_INTERVAL_MS'
|
|
115
|
-
| 'P2P_SLOT_CHECK_INTERVAL_MS'
|
|
116
122
|
| 'P2P_BLOCK_REQUEST_BATCH_SIZE'
|
|
117
123
|
| 'P2P_BOOTSTRAP_NODE_ENR_VERSION_CHECK'
|
|
118
124
|
| 'P2P_BOOTSTRAP_NODES_AS_FULL_PEERS'
|
|
@@ -131,11 +137,14 @@ export type EnvVar =
|
|
|
131
137
|
| 'P2P_GOSSIPSUB_TX_INVALID_MESSAGE_DELIVERIES_WEIGHT'
|
|
132
138
|
| 'P2P_GOSSIPSUB_TX_TOPIC_WEIGHT'
|
|
133
139
|
| 'P2P_L2_QUEUE_SIZE'
|
|
140
|
+
| 'P2P_MAX_GOSSIP_CLOCK_DISPARITY_MS'
|
|
134
141
|
| 'P2P_MAX_PEERS'
|
|
142
|
+
| 'P2P_PEER_BAN_DURATION_SECONDS'
|
|
135
143
|
| 'P2P_PEER_CHECK_INTERVAL_MS'
|
|
136
144
|
| 'P2P_PEER_FAILED_BAN_TIME_MS'
|
|
137
145
|
| 'P2P_PEER_PENALTY_VALUES'
|
|
138
146
|
| 'P2P_QUERY_FOR_IP'
|
|
147
|
+
| 'P2P_PUBLIC_IP_SERVICES'
|
|
139
148
|
| 'P2P_REQRESP_INDIVIDUAL_REQUEST_TIMEOUT_MS'
|
|
140
149
|
| 'P2P_REQRESP_DIAL_TIMEOUT_MS'
|
|
141
150
|
| 'P2P_REQRESP_OVERALL_REQUEST_TIMEOUT_MS'
|
|
@@ -157,7 +166,10 @@ export type EnvVar =
|
|
|
157
166
|
| 'P2P_DROP_TX_CHANCE'
|
|
158
167
|
| 'P2P_TX_POOL_DELETE_TXS_AFTER_REORG'
|
|
159
168
|
| 'P2P_MIN_TX_POOL_AGE_MS'
|
|
169
|
+
| 'P2P_MISSING_TX_COLLECTION_DEADLINE_SLOTS'
|
|
160
170
|
| 'P2P_RPC_PRICE_BUMP_PERCENTAGE'
|
|
171
|
+
| 'P2P_KEEP_FINALIZED_TXS_FOR_SLOTS'
|
|
172
|
+
| 'P2P_TX_VALIDATION_CACHE_SIZE'
|
|
161
173
|
| 'DEBUG_P2P_INSTRUMENT_MESSAGES'
|
|
162
174
|
| 'PEER_ID_PRIVATE_KEY'
|
|
163
175
|
| 'PEER_ID_PRIVATE_KEY_PATH'
|
|
@@ -179,6 +191,7 @@ export type EnvVar =
|
|
|
179
191
|
| 'PROVER_FAILED_PROOF_STORE'
|
|
180
192
|
| 'PROVER_NODE_FAILED_EPOCH_STORE'
|
|
181
193
|
| 'PROVER_NODE_DISABLE_PROOF_PUBLISH'
|
|
194
|
+
| 'PROVER_NODE_PROOF_SUBMISSION_TARGET_ADDRESS'
|
|
182
195
|
| 'PROVER_ID'
|
|
183
196
|
| 'PROVER_NODE_POLLING_INTERVAL_MS'
|
|
184
197
|
| 'PROVER_NODE_MAX_PENDING_JOBS'
|
|
@@ -197,6 +210,7 @@ export type EnvVar =
|
|
|
197
210
|
| 'PROVER_TEST_DELAY_MS'
|
|
198
211
|
| 'PROVER_TEST_DELAY_TYPE'
|
|
199
212
|
| 'PROVER_TEST_VERIFICATION_DELAY_MS'
|
|
213
|
+
| 'PXE_AUTO_SYNC'
|
|
200
214
|
| 'PXE_L2_BLOCK_BATCH_SIZE'
|
|
201
215
|
| 'PXE_PROVER_ENABLED'
|
|
202
216
|
| 'PXE_SYNC_CHAIN_TIP'
|
|
@@ -204,10 +218,11 @@ export type EnvVar =
|
|
|
204
218
|
| 'RPC_MAX_BODY_SIZE'
|
|
205
219
|
| 'RPC_SIMULATE_PUBLIC_MAX_GAS_LIMIT'
|
|
206
220
|
| 'RPC_SIMULATE_PUBLIC_MAX_DEBUG_LOG_MEMORY_READS'
|
|
221
|
+
| 'OFFENSE_COLLECTION_ENABLED'
|
|
207
222
|
| 'SENTINEL_ENABLED'
|
|
208
223
|
| 'SENTINEL_HISTORY_LENGTH_IN_EPOCHS'
|
|
209
|
-
| '
|
|
210
|
-
| '
|
|
224
|
+
| 'SENTINEL_HISTORIC_EPOCH_PERFORMANCE_LENGTH_IN_EPOCHS'
|
|
225
|
+
| 'SENTINEL_EPOCH_END_BUFFER_SLOTS'
|
|
211
226
|
| 'SEQ_MAX_TX_PER_BLOCK'
|
|
212
227
|
| 'SEQ_MAX_TX_PER_CHECKPOINT'
|
|
213
228
|
| 'SEQ_MIN_TX_PER_BLOCK'
|
|
@@ -215,39 +230,45 @@ export type EnvVar =
|
|
|
215
230
|
| 'SEQ_MAX_DA_BLOCK_GAS'
|
|
216
231
|
| 'SEQ_MAX_L2_BLOCK_GAS'
|
|
217
232
|
| 'SEQ_PER_BLOCK_ALLOCATION_MULTIPLIER'
|
|
233
|
+
| 'SEQ_PER_BLOCK_DA_ALLOCATION_MULTIPLIER'
|
|
218
234
|
| 'SEQ_REDISTRIBUTE_CHECKPOINT_BUDGET'
|
|
219
235
|
| 'SEQ_PUBLISHER_PRIVATE_KEY'
|
|
220
236
|
| 'SEQ_PUBLISHER_PRIVATE_KEYS'
|
|
221
237
|
| 'SEQ_PUBLISHER_ADDRESSES'
|
|
222
238
|
| 'SEQ_PUBLISHER_ALLOW_INVALID_STATES'
|
|
223
239
|
| 'SEQ_PUBLISHER_FORWARDER_ADDRESS'
|
|
240
|
+
| 'SEQ_PUBLISHER_PREVIOUS_L1_BLOCK_WAIT_TIMEOUT_MS'
|
|
241
|
+
| 'SEQ_PUBLISHER_PREVIOUS_L1_BLOCK_WAIT_POLL_INTERVAL_MS'
|
|
224
242
|
| 'PUBLISHER_FUNDING_THRESHOLD'
|
|
225
243
|
| 'PUBLISHER_FUNDING_AMOUNT'
|
|
226
244
|
| 'SEQ_POLLING_INTERVAL_MS'
|
|
227
|
-
| 'SEQ_ENFORCE_TIME_TABLE'
|
|
228
245
|
| 'SEQ_L1_PUBLISHING_TIME_ALLOWANCE_IN_SLOT'
|
|
229
246
|
| 'SEQ_ATTESTATION_PROPAGATION_TIME'
|
|
247
|
+
| 'SEQ_CHECKPOINT_PROPOSAL_PREPARE_TIME'
|
|
248
|
+
| 'CHECKPOINT_PROPOSAL_SYNC_GRACE_SECONDS'
|
|
249
|
+
| 'SEQ_MIN_BLOCK_DURATION'
|
|
230
250
|
| 'SEQ_BLOCK_DURATION_MS'
|
|
251
|
+
| 'SEQ_LAST_BLOCK_DURATION_MS'
|
|
231
252
|
| 'SEQ_EXPECTED_BLOCK_PROPOSALS_PER_SLOT'
|
|
232
253
|
| 'SEQ_BUILD_CHECKPOINT_IF_EMPTY'
|
|
233
254
|
| 'SEQ_SECONDS_BEFORE_INVALIDATING_BLOCK_AS_COMMITTEE_MEMBER'
|
|
234
255
|
| 'SEQ_SECONDS_BEFORE_INVALIDATING_BLOCK_AS_NON_COMMITTEE_MEMBER'
|
|
235
256
|
| 'SEQ_SKIP_CHECKPOINT_PUBLISH_PERCENT'
|
|
236
|
-
| 'SLASH_MIN_PENALTY_PERCENTAGE'
|
|
237
|
-
| 'SLASH_MAX_PENALTY_PERCENTAGE'
|
|
238
257
|
| 'SLASH_VALIDATORS_ALWAYS'
|
|
239
258
|
| 'SLASH_VALIDATORS_NEVER'
|
|
240
|
-
| 'SLASH_PRUNE_PENALTY'
|
|
241
259
|
| 'SLASH_DATA_WITHHOLDING_PENALTY'
|
|
260
|
+
| 'SLASH_DATA_WITHHOLDING_TOLERANCE_SLOTS'
|
|
242
261
|
| 'SLASH_INACTIVITY_PENALTY'
|
|
243
262
|
| 'SLASH_INACTIVITY_TARGET_PERCENTAGE'
|
|
244
263
|
| 'SLASH_INACTIVITY_CONSECUTIVE_EPOCH_THRESHOLD'
|
|
245
264
|
| 'SLASH_INVALID_BLOCK_PENALTY'
|
|
265
|
+
| 'SLASH_INVALID_CHECKPOINT_PROPOSAL_PENALTY'
|
|
246
266
|
| 'SLASH_DUPLICATE_PROPOSAL_PENALTY'
|
|
247
267
|
| 'SLASH_DUPLICATE_ATTESTATION_PENALTY'
|
|
248
268
|
| 'SLASH_OVERRIDE_PAYLOAD'
|
|
249
269
|
| 'SLASH_PROPOSE_INVALID_ATTESTATIONS_PENALTY'
|
|
250
|
-
| '
|
|
270
|
+
| 'SLASH_PROPOSE_DESCENDANT_OF_CHECKPOINT_WITH_INVALID_ATTESTATIONS_PENALTY'
|
|
271
|
+
| 'SLASH_ATTEST_INVALID_CHECKPOINT_PROPOSAL_PENALTY'
|
|
251
272
|
| 'SLASH_UNKNOWN_PENALTY'
|
|
252
273
|
| 'SLASH_GRACE_PERIOD_L2_SLOTS'
|
|
253
274
|
| 'SLASH_OFFENSE_EXPIRATION_ROUNDS'
|
|
@@ -261,25 +282,16 @@ export type EnvVar =
|
|
|
261
282
|
| 'SPONSORED_FPC'
|
|
262
283
|
| 'PREFUND_ADDRESSES'
|
|
263
284
|
| 'TX_COLLECTION_FAST_NODES_TIMEOUT_BEFORE_REQ_RESP_MS'
|
|
264
|
-
| 'TX_COLLECTION_SLOW_NODES_INTERVAL_MS'
|
|
265
|
-
| 'TX_COLLECTION_SLOW_REQ_RESP_INTERVAL_MS'
|
|
266
|
-
| 'TX_COLLECTION_SLOW_REQ_RESP_TIMEOUT_MS'
|
|
267
|
-
| 'TX_COLLECTION_RECONCILE_INTERVAL_MS'
|
|
268
|
-
| 'TX_COLLECTION_DISABLE_SLOW_DURING_FAST_REQUESTS'
|
|
269
285
|
| 'TX_COLLECTION_FAST_NODE_INTERVAL_MS'
|
|
270
286
|
| 'TX_COLLECTION_FAST_MAX_PARALLEL_REQUESTS_PER_NODE'
|
|
271
287
|
| 'TX_COLLECTION_NODE_RPC_MAX_BATCH_SIZE'
|
|
272
288
|
| 'TX_COLLECTION_NODE_RPC_URLS'
|
|
273
289
|
| 'TX_COLLECTION_MISSING_TXS_COLLECTOR_TYPE'
|
|
274
290
|
| 'TX_COLLECTION_FILE_STORE_URLS'
|
|
275
|
-
| 'TX_COLLECTION_FILE_STORE_SLOW_DELAY_MS'
|
|
276
291
|
| 'TX_COLLECTION_FILE_STORE_FAST_DELAY_MS'
|
|
277
292
|
| 'TX_COLLECTION_FILE_STORE_FAST_WORKER_COUNT'
|
|
278
|
-
| 'TX_COLLECTION_FILE_STORE_SLOW_WORKER_COUNT'
|
|
279
293
|
| 'TX_COLLECTION_FILE_STORE_FAST_BACKOFF_BASE_MS'
|
|
280
|
-
| 'TX_COLLECTION_FILE_STORE_SLOW_BACKOFF_BASE_MS'
|
|
281
294
|
| 'TX_COLLECTION_FILE_STORE_FAST_BACKOFF_MAX_MS'
|
|
282
|
-
| 'TX_COLLECTION_FILE_STORE_SLOW_BACKOFF_MAX_MS'
|
|
283
295
|
| 'TX_FILE_STORE_URL'
|
|
284
296
|
| 'TX_FILE_STORE_UPLOAD_CONCURRENCY'
|
|
285
297
|
| 'TX_FILE_STORE_MAX_QUEUE_SIZE'
|
|
@@ -327,11 +339,16 @@ export type EnvVar =
|
|
|
327
339
|
| 'AZTEC_SLASH_AMOUNT_SMALL'
|
|
328
340
|
| 'AZTEC_SLASH_AMOUNT_MEDIUM'
|
|
329
341
|
| 'AZTEC_SLASH_AMOUNT_LARGE'
|
|
330
|
-
| '
|
|
342
|
+
| 'AZTEC_SLASHER_ENABLED'
|
|
331
343
|
| 'AZTEC_GOVERNANCE_PROPOSER_QUORUM'
|
|
332
344
|
| 'AZTEC_GOVERNANCE_PROPOSER_ROUND_SIZE'
|
|
333
345
|
| 'AZTEC_GOVERNANCE_VOTING_DURATION'
|
|
334
346
|
| 'AZTEC_EXIT_DELAY_SECONDS'
|
|
347
|
+
| 'AZTEC_ENTRY_QUEUE_BOOTSTRAP_VALIDATOR_SET_SIZE'
|
|
348
|
+
| 'AZTEC_ENTRY_QUEUE_BOOTSTRAP_FLUSH_SIZE'
|
|
349
|
+
| 'AZTEC_ENTRY_QUEUE_FLUSH_SIZE_MIN'
|
|
350
|
+
| 'AZTEC_ENTRY_QUEUE_FLUSH_SIZE_QUOTIENT'
|
|
351
|
+
| 'AZTEC_ENTRY_QUEUE_MAX_FLUSH_SIZE'
|
|
335
352
|
| 'L1_GAS_LIMIT_BUFFER_PERCENTAGE'
|
|
336
353
|
| 'L1_GAS_PRICE_MAX'
|
|
337
354
|
| 'L1_FEE_PER_GAS_GWEI_MAX'
|
|
@@ -356,7 +373,7 @@ export type EnvVar =
|
|
|
356
373
|
| 'K8S_POD_NAME'
|
|
357
374
|
| 'K8S_POD_UID'
|
|
358
375
|
| 'K8S_NAMESPACE_NAME'
|
|
359
|
-
| '
|
|
376
|
+
| 'ENABLE_AUTO_SHUTDOWN'
|
|
360
377
|
| 'WEB3_SIGNER_URL'
|
|
361
378
|
| 'SKIP_ARCHIVER_INITIAL_SYNC'
|
|
362
379
|
| 'BLOB_ALLOW_EMPTY_SOURCES'
|
|
@@ -364,12 +381,15 @@ export type EnvVar =
|
|
|
364
381
|
| 'BLOB_FILE_STORE_TIMEOUT_MS'
|
|
365
382
|
| 'FISHERMAN_MODE'
|
|
366
383
|
| 'MAX_ALLOWED_ETH_CLIENT_DRIFT_SECONDS'
|
|
384
|
+
| 'MAX_BLOCKS_PER_CHECKPOINT'
|
|
367
385
|
| 'LEGACY_BLS_CLI'
|
|
368
386
|
| 'DEBUG_FORCE_TX_PROOF_VERIFICATION'
|
|
387
|
+
| 'VALIDATOR_ALLOW_EPHEMERAL_SIGNING_PROTECTION'
|
|
369
388
|
| 'VALIDATOR_HA_SIGNING_ENABLED'
|
|
370
389
|
| 'VALIDATOR_HA_NODE_ID'
|
|
371
390
|
| 'VALIDATOR_HA_POLLING_INTERVAL_MS'
|
|
372
391
|
| 'VALIDATOR_HA_SIGNING_TIMEOUT_MS'
|
|
392
|
+
| 'VALIDATOR_SIGNER_CALL_TIMEOUT_MS'
|
|
373
393
|
| 'VALIDATOR_HA_MAX_STUCK_DUTIES_AGE_MS'
|
|
374
394
|
| 'VALIDATOR_HA_OLD_DUTIES_MAX_AGE_H'
|
|
375
395
|
| 'VALIDATOR_HA_DATABASE_URL'
|