@aztec/foundation 0.0.1-commit.9ef841308 → 0.0.1-commit.a5db02d
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 -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/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/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 +10 -177
- package/dest/crypto/bls/bn254_keystore.d.ts.map +1 -1
- package/dest/crypto/bls/bn254_keystore.js +22 -34
- 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 +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 +2 -2
- package/dest/eth-signature/eth_signature.d.ts.map +1 -1
- 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/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/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/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 +31 -3
- package/dest/retry/index.d.ts.map +1 -1
- package/dest/retry/index.js +44 -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/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/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 +3 -0
- package/src/buffer/buffer32.ts +39 -68
- 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 +37 -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/aes128/index.ts +11 -2
- package/src/crypto/bls/bn254_keystore.ts +33 -43
- 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 +23 -40
- package/src/eth-address/index.ts +0 -4
- 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/pino-logger.ts +19 -2
- package/src/noir/noir_package_config.ts +32 -20
- package/src/promise/running-promise.ts +8 -5
- package/src/queue/batch_queue.ts +1 -0
- package/src/retry/index.ts +66 -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/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/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
- 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/transport/dispatch/create_dispatch_fn.ts +0 -35
|
@@ -89,5 +89,5 @@ SlotNumber.ZERO = SlotNumber(0);
|
|
|
89
89
|
*/
|
|
90
90
|
export const SlotNumberSchema = z
|
|
91
91
|
.union([z.number(), z.bigint(), z.string()])
|
|
92
|
-
.pipe(z.coerce.number().int().min(0))
|
|
92
|
+
.pipe(z.coerce.number<string | number | bigint>().int().min(0))
|
|
93
93
|
.transform(value => SlotNumber(value));
|
package/src/buffer/buffer16.ts
CHANGED
|
@@ -10,6 +10,9 @@ import { bufferToHex } from '../string/index.js';
|
|
|
10
10
|
* A class representing a 16 byte Buffer.
|
|
11
11
|
*/
|
|
12
12
|
export class Buffer16 {
|
|
13
|
+
/** Branding for nominal typing. */
|
|
14
|
+
declare private readonly _branding: 'Buffer16';
|
|
15
|
+
|
|
13
16
|
/**
|
|
14
17
|
* The size of the hash in bytes.
|
|
15
18
|
*/
|
package/src/buffer/buffer32.ts
CHANGED
|
@@ -7,69 +7,39 @@ import { inspect } from 'util';
|
|
|
7
7
|
import { bufferToHex } from '../string/index.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Abstract unbranded base class for 32-byte buffers.
|
|
11
|
+
* Extend this instead of Buffer32 when defining a branded subtype
|
|
12
|
+
* to avoid inheriting Buffer32's `_branding`.
|
|
11
13
|
*/
|
|
12
|
-
export class
|
|
13
|
-
/**
|
|
14
|
-
* The size of the hash in bytes.
|
|
15
|
-
*/
|
|
14
|
+
export abstract class BaseBuffer32 {
|
|
15
|
+
/** The size of the buffer in bytes. */
|
|
16
16
|
public static SIZE = 32;
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* Buffer32 with value zero.
|
|
20
|
-
*/
|
|
21
|
-
public static ZERO = new Buffer32(Buffer.alloc(Buffer32.SIZE));
|
|
22
|
-
|
|
23
18
|
constructor(
|
|
24
|
-
/**
|
|
25
|
-
* The buffer containing the hash.
|
|
26
|
-
*/
|
|
19
|
+
/** The buffer containing the data. */
|
|
27
20
|
public buffer: Buffer,
|
|
28
21
|
) {
|
|
29
|
-
if (buffer.length !==
|
|
30
|
-
throw new Error(`Expected buffer to have length ${
|
|
22
|
+
if (buffer.length !== BaseBuffer32.SIZE) {
|
|
23
|
+
throw new Error(`Expected buffer to have length ${BaseBuffer32.SIZE} but was ${buffer.length}`);
|
|
31
24
|
}
|
|
32
25
|
}
|
|
33
26
|
|
|
34
|
-
/**
|
|
35
|
-
* Returns the raw buffer of the hash.
|
|
36
|
-
* @returns The buffer containing the hash.
|
|
37
|
-
*/
|
|
27
|
+
/** Returns the raw buffer. */
|
|
38
28
|
public toBuffer() {
|
|
39
29
|
return this.buffer;
|
|
40
30
|
}
|
|
41
31
|
|
|
42
|
-
/**
|
|
43
|
-
|
|
44
|
-
* @param buffer - The buffer to create from.
|
|
45
|
-
* @returns A new Buffer32 object.
|
|
46
|
-
*/
|
|
47
|
-
public static fromBuffer(buffer: Buffer | BufferReader) {
|
|
48
|
-
const reader = BufferReader.asReader(buffer);
|
|
49
|
-
return new Buffer32(reader.readBytes(Buffer32.SIZE));
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Checks if this hash and another hash are equal.
|
|
54
|
-
* @param hash - A hash to compare with.
|
|
55
|
-
* @returns True if the hashes are equal, false otherwise.
|
|
56
|
-
*/
|
|
57
|
-
public equals(hash: Buffer32): boolean {
|
|
32
|
+
/** Checks if this and another buffer are equal. */
|
|
33
|
+
public equals(hash: BaseBuffer32): boolean {
|
|
58
34
|
return this.buffer.equals(hash.buffer);
|
|
59
35
|
}
|
|
60
36
|
|
|
61
|
-
/**
|
|
62
|
-
* Returns true if this hash is zero.
|
|
63
|
-
* @returns True if this hash is zero.
|
|
64
|
-
*/
|
|
37
|
+
/** Returns true if all bytes are zero. */
|
|
65
38
|
public isZero(): boolean {
|
|
66
39
|
return this.buffer.equals(Buffer.alloc(32, 0));
|
|
67
40
|
}
|
|
68
41
|
|
|
69
|
-
/**
|
|
70
|
-
* Convert this hash to a hex string.
|
|
71
|
-
* @returns The hex string.
|
|
72
|
-
*/
|
|
42
|
+
/** Convert to a hex string. */
|
|
73
43
|
public toString() {
|
|
74
44
|
return bufferToHex(this.buffer);
|
|
75
45
|
}
|
|
@@ -82,16 +52,27 @@ export class Buffer32 {
|
|
|
82
52
|
return this.toString();
|
|
83
53
|
}
|
|
84
54
|
|
|
85
|
-
/**
|
|
86
|
-
* Convert this hash to a big int.
|
|
87
|
-
* @returns The big int.
|
|
88
|
-
*/
|
|
55
|
+
/** Convert to a big int. */
|
|
89
56
|
public toBigInt() {
|
|
90
|
-
return deserializeBigInt(this.buffer, 0,
|
|
57
|
+
return deserializeBigInt(this.buffer, 0, BaseBuffer32.SIZE).elem;
|
|
91
58
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** A branded 32-byte buffer. */
|
|
62
|
+
export class Buffer32 extends BaseBuffer32 {
|
|
63
|
+
/** Branding for nominal typing. */
|
|
64
|
+
declare private readonly _branding: 'Buffer32';
|
|
65
|
+
|
|
66
|
+
/** Buffer32 with value zero. */
|
|
67
|
+
public static ZERO = new Buffer32(Buffer.alloc(Buffer32.SIZE));
|
|
68
|
+
|
|
69
|
+
/** Creates a Buffer32 from a buffer. */
|
|
70
|
+
public static fromBuffer(buffer: Buffer | BufferReader) {
|
|
71
|
+
const reader = BufferReader.asReader(buffer);
|
|
72
|
+
return new Buffer32(reader.readBytes(Buffer32.SIZE));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** Creates a Buffer32 from a bigint. */
|
|
95
76
|
public static fromBigInt(hash: bigint) {
|
|
96
77
|
return new Buffer32(serializeBigInt(hash, Buffer32.SIZE));
|
|
97
78
|
}
|
|
@@ -101,8 +82,7 @@ export class Buffer32 {
|
|
|
101
82
|
}
|
|
102
83
|
|
|
103
84
|
/**
|
|
104
|
-
* Converts
|
|
105
|
-
* Verifies the input is 28 bytes.
|
|
85
|
+
* Converts from a buffer of 28 bytes.
|
|
106
86
|
* @param buffer - The 28 byte buffer to construct from.
|
|
107
87
|
* @returns A Buffer32 created from the input buffer with 4 bytes 0 padding at the front.
|
|
108
88
|
*/
|
|
@@ -110,36 +90,27 @@ export class Buffer32 {
|
|
|
110
90
|
if (buffer.length != 28) {
|
|
111
91
|
throw new Error(`Expected Buffer32 input buffer to be 28 bytes`);
|
|
112
92
|
}
|
|
113
|
-
const padded = Buffer.concat([Buffer.alloc(
|
|
93
|
+
const padded = Buffer.concat([Buffer.alloc(Buffer32.SIZE - 28), buffer]);
|
|
114
94
|
return new Buffer32(padded);
|
|
115
95
|
}
|
|
116
96
|
|
|
117
|
-
/**
|
|
118
|
-
* Converts a string into a Buffer32 object.
|
|
119
|
-
*/
|
|
97
|
+
/** Converts a string into a Buffer32 object. */
|
|
120
98
|
public static fromString(str: string): Buffer32 {
|
|
121
99
|
if (str.startsWith('0x')) {
|
|
122
100
|
str = str.slice(2);
|
|
123
101
|
}
|
|
124
|
-
if (str.length !==
|
|
125
|
-
throw new Error(`Expected string to be ${
|
|
102
|
+
if (str.length !== Buffer32.SIZE * 2) {
|
|
103
|
+
throw new Error(`Expected string to be ${Buffer32.SIZE * 2} characters long, but was ${str.length}`);
|
|
126
104
|
}
|
|
127
105
|
return new Buffer32(Buffer.from(str, 'hex'));
|
|
128
106
|
}
|
|
129
107
|
|
|
130
|
-
/**
|
|
131
|
-
* Converts a number into a Buffer32 object.
|
|
132
|
-
* @param num - The number to convert.
|
|
133
|
-
* @returns A new Buffer32 object.
|
|
134
|
-
*/
|
|
108
|
+
/** Converts a number into a Buffer32 object. */
|
|
135
109
|
public static fromNumber(num: number): Buffer32 {
|
|
136
110
|
return new Buffer32(serializeBigInt(BigInt(num), Buffer32.SIZE));
|
|
137
111
|
}
|
|
138
112
|
|
|
139
|
-
/**
|
|
140
|
-
* Generates a random Buffer32.
|
|
141
|
-
* @returns A new Buffer32 object.
|
|
142
|
-
*/
|
|
113
|
+
/** Generates a random Buffer32. */
|
|
143
114
|
public static random(): Buffer32 {
|
|
144
115
|
return new Buffer32(Buffer.from(randomBytes(Buffer32.SIZE)));
|
|
145
116
|
}
|
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.
|
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
|
+
}
|
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'
|
|
@@ -197,6 +209,7 @@ export type EnvVar =
|
|
|
197
209
|
| 'PROVER_TEST_DELAY_MS'
|
|
198
210
|
| 'PROVER_TEST_DELAY_TYPE'
|
|
199
211
|
| 'PROVER_TEST_VERIFICATION_DELAY_MS'
|
|
212
|
+
| 'PXE_AUTO_SYNC'
|
|
200
213
|
| 'PXE_L2_BLOCK_BATCH_SIZE'
|
|
201
214
|
| 'PXE_PROVER_ENABLED'
|
|
202
215
|
| 'PXE_SYNC_CHAIN_TIP'
|
|
@@ -204,10 +217,11 @@ export type EnvVar =
|
|
|
204
217
|
| 'RPC_MAX_BODY_SIZE'
|
|
205
218
|
| 'RPC_SIMULATE_PUBLIC_MAX_GAS_LIMIT'
|
|
206
219
|
| 'RPC_SIMULATE_PUBLIC_MAX_DEBUG_LOG_MEMORY_READS'
|
|
220
|
+
| 'OFFENSE_COLLECTION_ENABLED'
|
|
207
221
|
| 'SENTINEL_ENABLED'
|
|
208
222
|
| 'SENTINEL_HISTORY_LENGTH_IN_EPOCHS'
|
|
209
|
-
| '
|
|
210
|
-
| '
|
|
223
|
+
| 'SENTINEL_HISTORIC_EPOCH_PERFORMANCE_LENGTH_IN_EPOCHS'
|
|
224
|
+
| 'SENTINEL_EPOCH_END_BUFFER_SLOTS'
|
|
211
225
|
| 'SEQ_MAX_TX_PER_BLOCK'
|
|
212
226
|
| 'SEQ_MAX_TX_PER_CHECKPOINT'
|
|
213
227
|
| 'SEQ_MIN_TX_PER_BLOCK'
|
|
@@ -215,39 +229,45 @@ export type EnvVar =
|
|
|
215
229
|
| 'SEQ_MAX_DA_BLOCK_GAS'
|
|
216
230
|
| 'SEQ_MAX_L2_BLOCK_GAS'
|
|
217
231
|
| 'SEQ_PER_BLOCK_ALLOCATION_MULTIPLIER'
|
|
232
|
+
| 'SEQ_PER_BLOCK_DA_ALLOCATION_MULTIPLIER'
|
|
218
233
|
| 'SEQ_REDISTRIBUTE_CHECKPOINT_BUDGET'
|
|
219
234
|
| 'SEQ_PUBLISHER_PRIVATE_KEY'
|
|
220
235
|
| 'SEQ_PUBLISHER_PRIVATE_KEYS'
|
|
221
236
|
| 'SEQ_PUBLISHER_ADDRESSES'
|
|
222
237
|
| 'SEQ_PUBLISHER_ALLOW_INVALID_STATES'
|
|
223
238
|
| 'SEQ_PUBLISHER_FORWARDER_ADDRESS'
|
|
239
|
+
| 'SEQ_PUBLISHER_PREVIOUS_L1_BLOCK_WAIT_TIMEOUT_MS'
|
|
240
|
+
| 'SEQ_PUBLISHER_PREVIOUS_L1_BLOCK_WAIT_POLL_INTERVAL_MS'
|
|
224
241
|
| 'PUBLISHER_FUNDING_THRESHOLD'
|
|
225
242
|
| 'PUBLISHER_FUNDING_AMOUNT'
|
|
226
243
|
| 'SEQ_POLLING_INTERVAL_MS'
|
|
227
|
-
| 'SEQ_ENFORCE_TIME_TABLE'
|
|
228
244
|
| 'SEQ_L1_PUBLISHING_TIME_ALLOWANCE_IN_SLOT'
|
|
229
245
|
| 'SEQ_ATTESTATION_PROPAGATION_TIME'
|
|
246
|
+
| 'SEQ_CHECKPOINT_PROPOSAL_PREPARE_TIME'
|
|
247
|
+
| 'CHECKPOINT_PROPOSAL_SYNC_GRACE_SECONDS'
|
|
248
|
+
| 'SEQ_MIN_BLOCK_DURATION'
|
|
230
249
|
| 'SEQ_BLOCK_DURATION_MS'
|
|
250
|
+
| 'SEQ_LAST_BLOCK_DURATION_MS'
|
|
231
251
|
| 'SEQ_EXPECTED_BLOCK_PROPOSALS_PER_SLOT'
|
|
232
252
|
| 'SEQ_BUILD_CHECKPOINT_IF_EMPTY'
|
|
233
253
|
| 'SEQ_SECONDS_BEFORE_INVALIDATING_BLOCK_AS_COMMITTEE_MEMBER'
|
|
234
254
|
| 'SEQ_SECONDS_BEFORE_INVALIDATING_BLOCK_AS_NON_COMMITTEE_MEMBER'
|
|
235
255
|
| 'SEQ_SKIP_CHECKPOINT_PUBLISH_PERCENT'
|
|
236
|
-
| 'SLASH_MIN_PENALTY_PERCENTAGE'
|
|
237
|
-
| 'SLASH_MAX_PENALTY_PERCENTAGE'
|
|
238
256
|
| 'SLASH_VALIDATORS_ALWAYS'
|
|
239
257
|
| 'SLASH_VALIDATORS_NEVER'
|
|
240
|
-
| 'SLASH_PRUNE_PENALTY'
|
|
241
258
|
| 'SLASH_DATA_WITHHOLDING_PENALTY'
|
|
259
|
+
| 'SLASH_DATA_WITHHOLDING_TOLERANCE_SLOTS'
|
|
242
260
|
| 'SLASH_INACTIVITY_PENALTY'
|
|
243
261
|
| 'SLASH_INACTIVITY_TARGET_PERCENTAGE'
|
|
244
262
|
| 'SLASH_INACTIVITY_CONSECUTIVE_EPOCH_THRESHOLD'
|
|
245
263
|
| 'SLASH_INVALID_BLOCK_PENALTY'
|
|
264
|
+
| 'SLASH_INVALID_CHECKPOINT_PROPOSAL_PENALTY'
|
|
246
265
|
| 'SLASH_DUPLICATE_PROPOSAL_PENALTY'
|
|
247
266
|
| 'SLASH_DUPLICATE_ATTESTATION_PENALTY'
|
|
248
267
|
| 'SLASH_OVERRIDE_PAYLOAD'
|
|
249
268
|
| 'SLASH_PROPOSE_INVALID_ATTESTATIONS_PENALTY'
|
|
250
|
-
| '
|
|
269
|
+
| 'SLASH_PROPOSE_DESCENDANT_OF_CHECKPOINT_WITH_INVALID_ATTESTATIONS_PENALTY'
|
|
270
|
+
| 'SLASH_ATTEST_INVALID_CHECKPOINT_PROPOSAL_PENALTY'
|
|
251
271
|
| 'SLASH_UNKNOWN_PENALTY'
|
|
252
272
|
| 'SLASH_GRACE_PERIOD_L2_SLOTS'
|
|
253
273
|
| 'SLASH_OFFENSE_EXPIRATION_ROUNDS'
|
|
@@ -258,28 +278,20 @@ export type EnvVar =
|
|
|
258
278
|
| 'SYNC_SNAPSHOTS_URL'
|
|
259
279
|
| 'TELEMETRY'
|
|
260
280
|
| 'TEST_ACCOUNTS'
|
|
281
|
+
| 'TEST_PRELOAD_STANDARD_CONTRACTS'
|
|
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,7 +339,7 @@ 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'
|
|
@@ -356,7 +368,7 @@ export type EnvVar =
|
|
|
356
368
|
| 'K8S_POD_NAME'
|
|
357
369
|
| 'K8S_POD_UID'
|
|
358
370
|
| 'K8S_NAMESPACE_NAME'
|
|
359
|
-
| '
|
|
371
|
+
| 'ENABLE_AUTO_SHUTDOWN'
|
|
360
372
|
| 'WEB3_SIGNER_URL'
|
|
361
373
|
| 'SKIP_ARCHIVER_INITIAL_SYNC'
|
|
362
374
|
| 'BLOB_ALLOW_EMPTY_SOURCES'
|
|
@@ -364,12 +376,15 @@ export type EnvVar =
|
|
|
364
376
|
| 'BLOB_FILE_STORE_TIMEOUT_MS'
|
|
365
377
|
| 'FISHERMAN_MODE'
|
|
366
378
|
| 'MAX_ALLOWED_ETH_CLIENT_DRIFT_SECONDS'
|
|
379
|
+
| 'MAX_BLOCKS_PER_CHECKPOINT'
|
|
367
380
|
| 'LEGACY_BLS_CLI'
|
|
368
381
|
| 'DEBUG_FORCE_TX_PROOF_VERIFICATION'
|
|
382
|
+
| 'VALIDATOR_ALLOW_EPHEMERAL_SIGNING_PROTECTION'
|
|
369
383
|
| 'VALIDATOR_HA_SIGNING_ENABLED'
|
|
370
384
|
| 'VALIDATOR_HA_NODE_ID'
|
|
371
385
|
| 'VALIDATOR_HA_POLLING_INTERVAL_MS'
|
|
372
386
|
| 'VALIDATOR_HA_SIGNING_TIMEOUT_MS'
|
|
387
|
+
| 'VALIDATOR_SIGNER_CALL_TIMEOUT_MS'
|
|
373
388
|
| 'VALIDATOR_HA_MAX_STUCK_DUTIES_AGE_MS'
|
|
374
389
|
| 'VALIDATOR_HA_OLD_DUTIES_MAX_AGE_H'
|
|
375
390
|
| 'VALIDATOR_HA_DATABASE_URL'
|