@aztec/foundation 0.0.1-commit.72dcdcda8 → 0.0.1-commit.7689c7f
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 +5 -2
- package/dest/branded-types/slot.d.ts.map +1 -1
- package/dest/branded-types/slot.js +3 -0
- package/dest/buffer/buffer16.d.ts +3 -1
- package/dest/buffer/buffer16.d.ts.map +1 -1
- package/dest/buffer/buffer32.d.ts +28 -61
- package/dest/buffer/buffer32.d.ts.map +1 -1
- package/dest/buffer/buffer32.js +29 -63
- package/dest/buffer/index.d.ts +2 -1
- package/dest/buffer/index.d.ts.map +1 -1
- package/dest/buffer/index.js +1 -0
- package/dest/buffer/utils.d.ts +3 -0
- package/dest/buffer/utils.d.ts.map +1 -0
- package/dest/buffer/utils.js +7 -0
- package/dest/collection/array.d.ts +11 -1
- package/dest/collection/array.d.ts.map +1 -1
- package/dest/collection/array.js +33 -0
- package/dest/collection/index.d.ts +3 -1
- package/dest/collection/index.d.ts.map +1 -1
- package/dest/collection/index.js +2 -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/collection/lru_set.d.ts +35 -0
- package/dest/collection/lru_set.d.ts.map +1 -0
- package/dest/collection/lru_set.js +95 -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 +47 -30
- package/dest/config/index.d.ts.map +1 -1
- package/dest/config/index.js +44 -44
- package/dest/config/network_config.d.ts +15 -41
- package/dest/config/network_config.d.ts.map +1 -1
- package/dest/config/network_config.js +4 -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 +0 -2
- package/dest/config/secret_value.d.ts +2 -2
- package/dest/config/secret_value.d.ts.map +1 -1
- package/dest/crypto/aes128/index.d.ts +2 -1
- package/dest/crypto/aes128/index.d.ts.map +1 -1
- package/dest/crypto/aes128/index.js +11 -2
- package/dest/crypto/bls/bn254_keystore.d.ts +9 -176
- package/dest/crypto/bls/bn254_keystore.d.ts.map +1 -1
- package/dest/crypto/bls/bn254_keystore.js +0 -17
- package/dest/crypto/poseidon/index.d.ts +1 -1
- package/dest/crypto/poseidon/index.d.ts.map +1 -1
- package/dest/crypto/poseidon/index.js +40 -33
- 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/crypto/secp256k1-signer/utils.d.ts +12 -1
- package/dest/crypto/secp256k1-signer/utils.d.ts.map +1 -1
- package/dest/crypto/secp256k1-signer/utils.js +26 -0
- 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 +14 -28
- package/dest/curves/grumpkin/point.d.ts.map +1 -1
- package/dest/curves/grumpkin/point.js +29 -43
- 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 +3 -2
- package/dest/eth-signature/eth_signature.d.ts.map +1 -1
- package/dest/eth-signature/eth_signature.js +7 -2
- package/dest/fifo/fifo_frame_reader.d.ts +41 -0
- package/dest/fifo/fifo_frame_reader.d.ts.map +1 -0
- package/dest/fifo/fifo_frame_reader.js +74 -0
- package/dest/fifo/index.d.ts +2 -0
- package/dest/fifo/index.d.ts.map +1 -0
- package/dest/fifo/index.js +1 -0
- 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/fetch.d.ts +1 -1
- package/dest/json-rpc/client/fetch.d.ts.map +1 -1
- package/dest/json-rpc/client/fetch.js +4 -3
- 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/client/undici.d.ts +1 -1
- package/dest/json-rpc/client/undici.d.ts.map +1 -1
- package/dest/json-rpc/client/undici.js +5 -3
- 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/bigint-utils.d.ts +1 -1
- package/dest/log/bigint-utils.d.ts.map +1 -1
- package/dest/log/bigint-utils.js +3 -0
- package/dest/log/pino-logger.d.ts +1 -1
- package/dest/log/pino-logger.d.ts.map +1 -1
- package/dest/log/pino-logger.js +17 -2
- 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/queue/batch_queue.d.ts +1 -1
- package/dest/queue/batch_queue.d.ts.map +1 -1
- package/dest/queue/batch_queue.js +1 -0
- package/dest/retry/index.d.ts +12 -1
- package/dest/retry/index.d.ts.map +1 -1
- package/dest/retry/index.js +21 -0
- package/dest/schemas/api.d.ts +12 -10
- 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/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/transport/dispatch/create_dispatch_proxy.d.ts +11 -2
- package/dest/transport/dispatch/create_dispatch_proxy.d.ts.map +1 -1
- package/dest/transport/index.d.ts +1 -2
- package/dest/transport/index.d.ts.map +1 -1
- package/dest/transport/index.js +0 -1
- 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/indexed_merkle_tree_calculator.d.ts +1 -1
- package/dest/trees/indexed_merkle_tree_calculator.d.ts.map +1 -1
- package/dest/trees/indexed_merkle_tree_calculator.js +5 -1
- package/dest/trees/membership_witness.d.ts +2 -2
- package/dest/trees/membership_witness.d.ts.map +1 -1
- 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 +9 -1
- package/dest/types/index.d.ts.map +1 -1
- package/package.json +6 -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 +6 -1
- package/src/buffer/buffer16.ts +3 -0
- package/src/buffer/buffer32.ts +39 -68
- package/src/buffer/index.ts +1 -0
- package/src/buffer/utils.ts +8 -0
- package/src/collection/array.ts +34 -0
- package/src/collection/index.ts +2 -0
- package/src/collection/lru_map.ts +143 -0
- package/src/collection/lru_set.ts +115 -0
- package/src/committable/committable.ts +1 -1
- package/src/config/env_var.ts +41 -23
- package/src/config/index.ts +116 -96
- package/src/config/network_config.ts +3 -0
- package/src/config/network_name.ts +0 -3
- package/src/config/secret_value.ts +1 -1
- package/src/crypto/aes128/index.ts +11 -2
- package/src/crypto/bls/bn254_keystore.ts +0 -23
- package/src/crypto/poseidon/index.ts +42 -34
- package/src/crypto/schnorr/index.ts +9 -8
- package/src/crypto/schnorr/signature.ts +17 -46
- package/src/crypto/secp256k1-signer/utils.ts +32 -0
- package/src/curves/bls12/field.ts +0 -7
- package/src/curves/bn254/field.ts +35 -34
- package/src/curves/grumpkin/point.ts +23 -40
- package/src/eth-address/index.ts +0 -4
- package/src/eth-signature/eth_signature.ts +7 -1
- package/src/fifo/fifo_frame_reader.ts +98 -0
- package/src/fifo/index.ts +1 -0
- package/src/fifo_set/fifo_set.ts +52 -0
- package/src/fifo_set/index.ts +1 -0
- package/src/json-rpc/client/fetch.ts +4 -3
- package/src/json-rpc/client/safe_json_rpc_client.ts +2 -2
- package/src/json-rpc/client/undici.ts +5 -3
- 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/bigint-utils.ts +3 -0
- package/src/log/pino-logger.ts +19 -2
- package/src/noir/noir_package_config.ts +32 -20
- package/src/queue/batch_queue.ts +1 -0
- package/src/retry/index.ts +30 -0
- package/src/schemas/api.ts +25 -25
- 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/timer/index.ts +1 -1
- package/src/timer/timeout.ts +31 -0
- package/src/transport/dispatch/create_dispatch_proxy.ts +11 -1
- package/src/transport/index.ts +0 -1
- package/src/trees/balanced_merkle_tree_root.ts +2 -5
- package/src/trees/hasher.ts +6 -3
- package/src/trees/indexed_merkle_tree_calculator.ts +5 -1
- 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 +14 -0
- package/dest/crypto/serialize.d.ts +0 -51
- package/dest/crypto/serialize.d.ts.map +0 -1
- package/dest/crypto/serialize.js +0 -68
- package/dest/transport/dispatch/create_dispatch_fn.d.ts +0 -25
- package/dest/transport/dispatch/create_dispatch_fn.d.ts.map +0 -1
- package/dest/transport/dispatch/create_dispatch_fn.js +0 -17
- package/src/crypto/serialize.ts +0 -85
- package/src/transport/dispatch/create_dispatch_fn.ts +0 -35
package/src/collection/array.ts
CHANGED
|
@@ -138,6 +138,26 @@ export function unique<T>(arr: T[]): T[] {
|
|
|
138
138
|
return [...new Set(arr)];
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
+
/**
|
|
142
|
+
* Removes duplicates from the given array using a key function. The first occurrence of each key is kept.
|
|
143
|
+
* @param arr - The array.
|
|
144
|
+
* @param keyFn - A function that returns a primitive key for each element. Elements with the same key are
|
|
145
|
+
* considered duplicates.
|
|
146
|
+
* @returns A new array.
|
|
147
|
+
*/
|
|
148
|
+
export function uniqueBy<T, K extends string | number | bigint>(arr: T[], keyFn: (item: T) => K): T[] {
|
|
149
|
+
const seen = new Set<K>();
|
|
150
|
+
const result: T[] = [];
|
|
151
|
+
for (const item of arr) {
|
|
152
|
+
const key = keyFn(item);
|
|
153
|
+
if (!seen.has(key)) {
|
|
154
|
+
seen.add(key);
|
|
155
|
+
result.push(item);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
return result;
|
|
159
|
+
}
|
|
160
|
+
|
|
141
161
|
/**
|
|
142
162
|
* Removes all undefined elements from the array.
|
|
143
163
|
* @param arr - The array.
|
|
@@ -315,3 +335,17 @@ export function partition<T>(items: T[], predicate: (item: T) => boolean): [T[],
|
|
|
315
335
|
}
|
|
316
336
|
return [pass, fail];
|
|
317
337
|
}
|
|
338
|
+
|
|
339
|
+
/** Partitions the given iterable into two arrays based on the predicate. */
|
|
340
|
+
export async function partitionAsync<T>(items: T[], predicate: (item: T) => Promise<boolean>): Promise<[T[], T[]]> {
|
|
341
|
+
const pass: T[] = [];
|
|
342
|
+
const fail: T[] = [];
|
|
343
|
+
for (const item of items) {
|
|
344
|
+
if (await predicate(item)) {
|
|
345
|
+
pass.push(item);
|
|
346
|
+
} else {
|
|
347
|
+
fail.push(item);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
return [pass, fail];
|
|
351
|
+
}
|
package/src/collection/index.ts
CHANGED
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/** Node in a doubly-linked list used by {@link LruSet}. */
|
|
2
|
+
type LruNode<T> = {
|
|
3
|
+
value: T;
|
|
4
|
+
prev: LruNode<T> | undefined;
|
|
5
|
+
next: LruNode<T> | undefined;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A bounded set with Least Recently Used (LRU) eviction.
|
|
10
|
+
* Both {@link has} and {@link add} count as an access and refresh the entry's
|
|
11
|
+
* recency, so items that are actively checked stay in the set longest.
|
|
12
|
+
*
|
|
13
|
+
* Uses a doubly-linked list for O(1) ordering and a Map for O(1) lookup.
|
|
14
|
+
* Head = least recent, tail = most recent.
|
|
15
|
+
*/
|
|
16
|
+
export class LruSet<T> {
|
|
17
|
+
/** Map from value to its linked-list node for O(1) lookup. */
|
|
18
|
+
private readonly map = new Map<T, LruNode<T>>();
|
|
19
|
+
private head: LruNode<T> | undefined;
|
|
20
|
+
private tail: LruNode<T> | undefined;
|
|
21
|
+
|
|
22
|
+
constructor(private readonly maxSize: number) {
|
|
23
|
+
if (maxSize < 1) {
|
|
24
|
+
throw new Error('LruSet maxSize must be at least 1');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** Number of entries in the set. */
|
|
29
|
+
get size(): number {
|
|
30
|
+
return this.map.size;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Returns true if the item is in the set.
|
|
35
|
+
* Refreshes the item's recency so it becomes the most recently used.
|
|
36
|
+
*/
|
|
37
|
+
has(item: T): boolean {
|
|
38
|
+
const node = this.map.get(item);
|
|
39
|
+
if (!node) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
this.moveToTail(node);
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Adds an item to the set. If the item already exists, refreshes its recency.
|
|
48
|
+
* If the set is at capacity, evicts the least recently used item.
|
|
49
|
+
*/
|
|
50
|
+
add(item: T): void {
|
|
51
|
+
const existing = this.map.get(item);
|
|
52
|
+
if (existing) {
|
|
53
|
+
this.moveToTail(existing);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (this.map.size >= this.maxSize) {
|
|
58
|
+
this.evictHead();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const node: LruNode<T> = { value: item, prev: this.tail, next: undefined };
|
|
62
|
+
if (this.tail) {
|
|
63
|
+
this.tail.next = node;
|
|
64
|
+
} else {
|
|
65
|
+
this.head = node;
|
|
66
|
+
}
|
|
67
|
+
this.tail = node;
|
|
68
|
+
this.map.set(item, node);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** Removes all entries from the set. */
|
|
72
|
+
clear(): void {
|
|
73
|
+
this.map.clear();
|
|
74
|
+
this.head = undefined;
|
|
75
|
+
this.tail = undefined;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** Unlinks a node from its current position and relinks it at the tail. */
|
|
79
|
+
private moveToTail(node: LruNode<T>): void {
|
|
80
|
+
if (node === this.tail) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Unlink
|
|
85
|
+
if (node.prev) {
|
|
86
|
+
node.prev.next = node.next;
|
|
87
|
+
} else {
|
|
88
|
+
this.head = node.next;
|
|
89
|
+
}
|
|
90
|
+
if (node.next) {
|
|
91
|
+
node.next.prev = node.prev;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// Relink at tail
|
|
95
|
+
node.prev = this.tail;
|
|
96
|
+
node.next = undefined;
|
|
97
|
+
if (this.tail) {
|
|
98
|
+
this.tail.next = node;
|
|
99
|
+
}
|
|
100
|
+
this.tail = node;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** Evicts the head (least recently used) node. */
|
|
104
|
+
private evictHead(): void {
|
|
105
|
+
const oldHead = this.head!;
|
|
106
|
+
this.map.delete(oldHead.value);
|
|
107
|
+
|
|
108
|
+
this.head = oldHead.next;
|
|
109
|
+
if (this.head) {
|
|
110
|
+
this.head.prev = undefined;
|
|
111
|
+
} else {
|
|
112
|
+
this.tail = undefined;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
package/src/config/env_var.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
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_PROPOSED_BLOCK_PRUNE_GRACE_SECONDS'
|
|
14
14
|
| 'AZTEC_ADMIN_PORT'
|
|
15
|
+
| 'AZTEC_NODE_DEBUG'
|
|
15
16
|
| 'AZTEC_ADMIN_API_KEY_HASH'
|
|
16
17
|
| 'AZTEC_DISABLE_ADMIN_API_KEY'
|
|
17
18
|
| 'AZTEC_RESET_ADMIN_API_KEY'
|
|
@@ -23,6 +24,9 @@ export type EnvVar =
|
|
|
23
24
|
| 'BB_WORKING_DIRECTORY'
|
|
24
25
|
| 'BB_NUM_IVC_VERIFIERS'
|
|
25
26
|
| 'BB_IVC_CONCURRENCY'
|
|
27
|
+
| 'BB_CHONK_VERIFY_MAX_BATCH'
|
|
28
|
+
| 'BB_CHONK_VERIFY_BATCH_CONCURRENCY'
|
|
29
|
+
| 'BB_DEBUG_OUTPUT_DIR'
|
|
26
30
|
| 'BOOTSTRAP_NODES'
|
|
27
31
|
| 'BLOB_ARCHIVE_API_URL'
|
|
28
32
|
| 'BLOB_FILE_STORE_URLS'
|
|
@@ -62,6 +66,7 @@ export type EnvVar =
|
|
|
62
66
|
| 'BLOB_SINK_MAP_SIZE_KB'
|
|
63
67
|
| 'P2P_STORE_MAP_SIZE_KB'
|
|
64
68
|
| 'PROVER_BROKER_STORE_MAP_SIZE_KB'
|
|
69
|
+
| 'SIGNING_PROTECTION_MAP_SIZE_KB'
|
|
65
70
|
| 'WS_DB_MAP_SIZE_KB'
|
|
66
71
|
| 'ARCHIVE_TREE_MAP_SIZE_KB'
|
|
67
72
|
| 'NULLIFIER_TREE_MAP_SIZE_KB'
|
|
@@ -71,6 +76,7 @@ export type EnvVar =
|
|
|
71
76
|
| 'DEBUG'
|
|
72
77
|
| 'DEBUG_P2P_DISABLE_COLOCATION_PENALTY'
|
|
73
78
|
| 'ENABLE_PROVER_NODE'
|
|
79
|
+
| 'USE_AUTOMINE_SEQUENCER'
|
|
74
80
|
| 'ETHEREUM_HOSTS'
|
|
75
81
|
| 'ETHEREUM_DEBUG_HOSTS'
|
|
76
82
|
| 'ETHEREUM_ALLOW_NO_DEBUG_HOSTS'
|
|
@@ -80,6 +86,7 @@ export type EnvVar =
|
|
|
80
86
|
| 'KEY_STORE_DIRECTORY'
|
|
81
87
|
| 'L1_CHAIN_ID'
|
|
82
88
|
| 'L1_CONSENSUS_HOST_URLS'
|
|
89
|
+
| 'ETHEREUM_HTTP_TIMEOUT_MS'
|
|
83
90
|
| 'L1_CONSENSUS_HOST_API_KEYS'
|
|
84
91
|
| 'L1_CONSENSUS_HOST_API_KEY_HEADERS'
|
|
85
92
|
| 'L1_TX_FAILED_STORE'
|
|
@@ -90,14 +97,15 @@ export type EnvVar =
|
|
|
90
97
|
| 'MNEMONIC'
|
|
91
98
|
| 'NETWORK'
|
|
92
99
|
| 'NETWORK_CONFIG_LOCATION'
|
|
93
|
-
| 'NO_PXE'
|
|
94
100
|
| 'USE_GCLOUD_LOGGING'
|
|
95
101
|
| 'OTEL_EXPORTER_OTLP_METRICS_ENDPOINT'
|
|
96
102
|
| 'OTEL_EXPORTER_OTLP_TRACES_ENDPOINT'
|
|
97
103
|
| 'OTEL_EXPORTER_OTLP_LOGS_ENDPOINT'
|
|
98
104
|
| 'OTEL_COLLECT_INTERVAL_MS'
|
|
105
|
+
| 'OTEL_BSP_MAX_QUEUE_SIZE'
|
|
99
106
|
| 'OTEL_EXCLUDE_METRICS'
|
|
100
107
|
| 'OTEL_INCLUDE_METRICS'
|
|
108
|
+
| 'OTEL_MIN_TRACE_DURATION_MS'
|
|
101
109
|
| 'OTEL_EXPORT_TIMEOUT_MS'
|
|
102
110
|
| 'PUBLIC_OTEL_EXPORTER_OTLP_METRICS_ENDPOINT'
|
|
103
111
|
| 'PUBLIC_OTEL_INCLUDE_METRICS'
|
|
@@ -129,8 +137,10 @@ export type EnvVar =
|
|
|
129
137
|
| 'P2P_L2_QUEUE_SIZE'
|
|
130
138
|
| 'P2P_MAX_PEERS'
|
|
131
139
|
| 'P2P_PEER_CHECK_INTERVAL_MS'
|
|
140
|
+
| 'P2P_PEER_FAILED_BAN_TIME_MS'
|
|
132
141
|
| 'P2P_PEER_PENALTY_VALUES'
|
|
133
142
|
| 'P2P_QUERY_FOR_IP'
|
|
143
|
+
| 'P2P_PUBLIC_IP_SERVICES'
|
|
134
144
|
| 'P2P_REQRESP_INDIVIDUAL_REQUEST_TIMEOUT_MS'
|
|
135
145
|
| 'P2P_REQRESP_DIAL_TIMEOUT_MS'
|
|
136
146
|
| 'P2P_REQRESP_OVERALL_REQUEST_TIMEOUT_MS'
|
|
@@ -152,6 +162,9 @@ export type EnvVar =
|
|
|
152
162
|
| 'P2P_DROP_TX_CHANCE'
|
|
153
163
|
| 'P2P_TX_POOL_DELETE_TXS_AFTER_REORG'
|
|
154
164
|
| 'P2P_MIN_TX_POOL_AGE_MS'
|
|
165
|
+
| 'P2P_MISSING_TX_COLLECTION_DEADLINE_SLOTS'
|
|
166
|
+
| 'P2P_RPC_PRICE_BUMP_PERCENTAGE'
|
|
167
|
+
| 'P2P_TX_VALIDATION_CACHE_SIZE'
|
|
155
168
|
| 'DEBUG_P2P_INSTRUMENT_MESSAGES'
|
|
156
169
|
| 'PEER_ID_PRIVATE_KEY'
|
|
157
170
|
| 'PEER_ID_PRIVATE_KEY_PATH'
|
|
@@ -167,6 +180,7 @@ export type EnvVar =
|
|
|
167
180
|
| 'PROVER_BROKER_MAX_EPOCHS_TO_KEEP_RESULTS_FOR'
|
|
168
181
|
| 'PROVER_BROKER_DEBUG_REPLAY_ENABLED'
|
|
169
182
|
| 'PROVER_CANCEL_JOBS_ON_STOP'
|
|
183
|
+
| 'PROVER_ENQUEUE_CONCURRENCY'
|
|
170
184
|
| 'PROVER_COORDINATION_NODE_URLS'
|
|
171
185
|
| 'PROVER_PROOF_STORE'
|
|
172
186
|
| 'PROVER_FAILED_PROOF_STORE'
|
|
@@ -190,6 +204,7 @@ export type EnvVar =
|
|
|
190
204
|
| 'PROVER_TEST_DELAY_MS'
|
|
191
205
|
| 'PROVER_TEST_DELAY_TYPE'
|
|
192
206
|
| 'PROVER_TEST_VERIFICATION_DELAY_MS'
|
|
207
|
+
| 'PXE_AUTO_SYNC'
|
|
193
208
|
| 'PXE_L2_BLOCK_BATCH_SIZE'
|
|
194
209
|
| 'PXE_PROVER_ENABLED'
|
|
195
210
|
| 'PXE_SYNC_CHAIN_TIP'
|
|
@@ -199,43 +214,50 @@ export type EnvVar =
|
|
|
199
214
|
| 'RPC_SIMULATE_PUBLIC_MAX_DEBUG_LOG_MEMORY_READS'
|
|
200
215
|
| 'SENTINEL_ENABLED'
|
|
201
216
|
| 'SENTINEL_HISTORY_LENGTH_IN_EPOCHS'
|
|
202
|
-
| '
|
|
203
|
-
| '
|
|
217
|
+
| 'SENTINEL_HISTORIC_EPOCH_PERFORMANCE_LENGTH_IN_EPOCHS'
|
|
218
|
+
| 'SENTINEL_EPOCH_END_BUFFER_SLOTS'
|
|
219
|
+
| 'SEQ_ENABLE_PROPOSER_PIPELINING'
|
|
204
220
|
| 'SEQ_MAX_TX_PER_BLOCK'
|
|
221
|
+
| 'SEQ_MAX_TX_PER_CHECKPOINT'
|
|
205
222
|
| 'SEQ_MIN_TX_PER_BLOCK'
|
|
206
223
|
| 'SEQ_PUBLISH_TXS_WITH_PROPOSALS'
|
|
207
224
|
| 'SEQ_MAX_DA_BLOCK_GAS'
|
|
208
225
|
| 'SEQ_MAX_L2_BLOCK_GAS'
|
|
226
|
+
| 'SEQ_PER_BLOCK_ALLOCATION_MULTIPLIER'
|
|
227
|
+
| 'SEQ_REDISTRIBUTE_CHECKPOINT_BUDGET'
|
|
209
228
|
| 'SEQ_PUBLISHER_PRIVATE_KEY'
|
|
210
229
|
| 'SEQ_PUBLISHER_PRIVATE_KEYS'
|
|
211
230
|
| 'SEQ_PUBLISHER_ADDRESSES'
|
|
212
231
|
| 'SEQ_PUBLISHER_ALLOW_INVALID_STATES'
|
|
213
232
|
| 'SEQ_PUBLISHER_FORWARDER_ADDRESS'
|
|
233
|
+
| 'PUBLISHER_FUNDING_THRESHOLD'
|
|
234
|
+
| 'PUBLISHER_FUNDING_AMOUNT'
|
|
214
235
|
| 'SEQ_POLLING_INTERVAL_MS'
|
|
215
236
|
| 'SEQ_ENFORCE_TIME_TABLE'
|
|
216
237
|
| 'SEQ_L1_PUBLISHING_TIME_ALLOWANCE_IN_SLOT'
|
|
217
238
|
| 'SEQ_ATTESTATION_PROPAGATION_TIME'
|
|
218
239
|
| 'SEQ_BLOCK_DURATION_MS'
|
|
240
|
+
| 'SEQ_LAST_BLOCK_DURATION_MS'
|
|
219
241
|
| 'SEQ_EXPECTED_BLOCK_PROPOSALS_PER_SLOT'
|
|
220
242
|
| 'SEQ_BUILD_CHECKPOINT_IF_EMPTY'
|
|
221
243
|
| 'SEQ_SECONDS_BEFORE_INVALIDATING_BLOCK_AS_COMMITTEE_MEMBER'
|
|
222
244
|
| 'SEQ_SECONDS_BEFORE_INVALIDATING_BLOCK_AS_NON_COMMITTEE_MEMBER'
|
|
223
245
|
| 'SEQ_SKIP_CHECKPOINT_PUBLISH_PERCENT'
|
|
224
|
-
| 'SLASH_MIN_PENALTY_PERCENTAGE'
|
|
225
|
-
| 'SLASH_MAX_PENALTY_PERCENTAGE'
|
|
226
246
|
| 'SLASH_VALIDATORS_ALWAYS'
|
|
227
247
|
| 'SLASH_VALIDATORS_NEVER'
|
|
228
|
-
| 'SLASH_PRUNE_PENALTY'
|
|
229
248
|
| 'SLASH_DATA_WITHHOLDING_PENALTY'
|
|
249
|
+
| 'SLASH_DATA_WITHHOLDING_TOLERANCE_SLOTS'
|
|
230
250
|
| 'SLASH_INACTIVITY_PENALTY'
|
|
231
251
|
| 'SLASH_INACTIVITY_TARGET_PERCENTAGE'
|
|
232
252
|
| 'SLASH_INACTIVITY_CONSECUTIVE_EPOCH_THRESHOLD'
|
|
233
253
|
| 'SLASH_INVALID_BLOCK_PENALTY'
|
|
254
|
+
| 'SLASH_INVALID_CHECKPOINT_PROPOSAL_PENALTY'
|
|
234
255
|
| 'SLASH_DUPLICATE_PROPOSAL_PENALTY'
|
|
235
256
|
| 'SLASH_DUPLICATE_ATTESTATION_PENALTY'
|
|
236
257
|
| 'SLASH_OVERRIDE_PAYLOAD'
|
|
237
258
|
| 'SLASH_PROPOSE_INVALID_ATTESTATIONS_PENALTY'
|
|
238
|
-
| '
|
|
259
|
+
| 'SLASH_PROPOSE_DESCENDANT_OF_CHECKPOINT_WITH_INVALID_ATTESTATIONS_PENALTY'
|
|
260
|
+
| 'SLASH_ATTEST_INVALID_CHECKPOINT_PROPOSAL_PENALTY'
|
|
239
261
|
| 'SLASH_UNKNOWN_PENALTY'
|
|
240
262
|
| 'SLASH_GRACE_PERIOD_L2_SLOTS'
|
|
241
263
|
| 'SLASH_OFFENSE_EXPIRATION_ROUNDS'
|
|
@@ -247,26 +269,18 @@ export type EnvVar =
|
|
|
247
269
|
| 'TELEMETRY'
|
|
248
270
|
| 'TEST_ACCOUNTS'
|
|
249
271
|
| 'SPONSORED_FPC'
|
|
272
|
+
| 'PREFUND_ADDRESSES'
|
|
250
273
|
| 'TX_COLLECTION_FAST_NODES_TIMEOUT_BEFORE_REQ_RESP_MS'
|
|
251
|
-
| 'TX_COLLECTION_SLOW_NODES_INTERVAL_MS'
|
|
252
|
-
| 'TX_COLLECTION_SLOW_REQ_RESP_INTERVAL_MS'
|
|
253
|
-
| 'TX_COLLECTION_SLOW_REQ_RESP_TIMEOUT_MS'
|
|
254
|
-
| 'TX_COLLECTION_RECONCILE_INTERVAL_MS'
|
|
255
|
-
| 'TX_COLLECTION_DISABLE_SLOW_DURING_FAST_REQUESTS'
|
|
256
274
|
| 'TX_COLLECTION_FAST_NODE_INTERVAL_MS'
|
|
257
275
|
| 'TX_COLLECTION_FAST_MAX_PARALLEL_REQUESTS_PER_NODE'
|
|
258
276
|
| 'TX_COLLECTION_NODE_RPC_MAX_BATCH_SIZE'
|
|
259
277
|
| 'TX_COLLECTION_NODE_RPC_URLS'
|
|
260
278
|
| 'TX_COLLECTION_MISSING_TXS_COLLECTOR_TYPE'
|
|
261
279
|
| 'TX_COLLECTION_FILE_STORE_URLS'
|
|
262
|
-
| 'TX_COLLECTION_FILE_STORE_SLOW_DELAY_MS'
|
|
263
280
|
| 'TX_COLLECTION_FILE_STORE_FAST_DELAY_MS'
|
|
264
281
|
| 'TX_COLLECTION_FILE_STORE_FAST_WORKER_COUNT'
|
|
265
|
-
| 'TX_COLLECTION_FILE_STORE_SLOW_WORKER_COUNT'
|
|
266
282
|
| 'TX_COLLECTION_FILE_STORE_FAST_BACKOFF_BASE_MS'
|
|
267
|
-
| 'TX_COLLECTION_FILE_STORE_SLOW_BACKOFF_BASE_MS'
|
|
268
283
|
| 'TX_COLLECTION_FILE_STORE_FAST_BACKOFF_MAX_MS'
|
|
269
|
-
| 'TX_COLLECTION_FILE_STORE_SLOW_BACKOFF_MAX_MS'
|
|
270
284
|
| 'TX_FILE_STORE_URL'
|
|
271
285
|
| 'TX_FILE_STORE_UPLOAD_CONCURRENCY'
|
|
272
286
|
| 'TX_FILE_STORE_MAX_QUEUE_SIZE'
|
|
@@ -276,9 +290,12 @@ export type EnvVar =
|
|
|
276
290
|
| 'TRANSACTIONS_DISABLED'
|
|
277
291
|
| 'VALIDATOR_ATTESTATIONS_POLLING_INTERVAL_MS'
|
|
278
292
|
| 'VALIDATOR_DISABLED'
|
|
293
|
+
| 'VALIDATOR_MAX_DA_BLOCK_GAS'
|
|
294
|
+
| 'VALIDATOR_MAX_L2_BLOCK_GAS'
|
|
295
|
+
| 'VALIDATOR_MAX_TX_PER_BLOCK'
|
|
296
|
+
| 'VALIDATOR_MAX_TX_PER_CHECKPOINT'
|
|
279
297
|
| 'VALIDATOR_PRIVATE_KEYS'
|
|
280
298
|
| 'VALIDATOR_PRIVATE_KEY'
|
|
281
|
-
| 'VALIDATOR_REEXECUTE'
|
|
282
299
|
| 'VALIDATOR_ADDRESSES'
|
|
283
300
|
| 'ROLLUP_VERSION'
|
|
284
301
|
| 'WS_BLOCK_CHECK_INTERVAL_MS'
|
|
@@ -311,7 +328,7 @@ export type EnvVar =
|
|
|
311
328
|
| 'AZTEC_SLASH_AMOUNT_SMALL'
|
|
312
329
|
| 'AZTEC_SLASH_AMOUNT_MEDIUM'
|
|
313
330
|
| 'AZTEC_SLASH_AMOUNT_LARGE'
|
|
314
|
-
| '
|
|
331
|
+
| 'AZTEC_SLASHER_ENABLED'
|
|
315
332
|
| 'AZTEC_GOVERNANCE_PROPOSER_QUORUM'
|
|
316
333
|
| 'AZTEC_GOVERNANCE_PROPOSER_ROUND_SIZE'
|
|
317
334
|
| 'AZTEC_GOVERNANCE_VOTING_DURATION'
|
|
@@ -340,14 +357,15 @@ export type EnvVar =
|
|
|
340
357
|
| 'K8S_POD_NAME'
|
|
341
358
|
| 'K8S_POD_UID'
|
|
342
359
|
| 'K8S_NAMESPACE_NAME'
|
|
343
|
-
| '
|
|
344
|
-
| 'AUTO_UPDATE'
|
|
345
|
-
| 'AUTO_UPDATE_URL'
|
|
360
|
+
| 'ENABLE_VERSION_CHECK'
|
|
346
361
|
| 'WEB3_SIGNER_URL'
|
|
347
362
|
| 'SKIP_ARCHIVER_INITIAL_SYNC'
|
|
348
363
|
| 'BLOB_ALLOW_EMPTY_SOURCES'
|
|
364
|
+
| 'BLOB_PREFER_FILESTORES'
|
|
365
|
+
| 'BLOB_FILE_STORE_TIMEOUT_MS'
|
|
349
366
|
| 'FISHERMAN_MODE'
|
|
350
367
|
| 'MAX_ALLOWED_ETH_CLIENT_DRIFT_SECONDS'
|
|
368
|
+
| 'MAX_BLOCKS_PER_CHECKPOINT'
|
|
351
369
|
| 'LEGACY_BLS_CLI'
|
|
352
370
|
| 'DEBUG_FORCE_TX_PROOF_VERIFICATION'
|
|
353
371
|
| 'VALIDATOR_HA_SIGNING_ENABLED'
|