@aztec/node-keystore 0.0.1-commit.d3ec352c → 0.0.1-commit.e61ad554

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/src/types.ts CHANGED
@@ -91,18 +91,19 @@ export type ValidatorKeyStore = {
91
91
  attester: AttesterAccounts;
92
92
  /**
93
93
  * Coinbase address to use when proposing an L2 block as any of the validators in this configuration block.
94
- * Falls back to the attester address if not set.
94
+ * Falls back to the keystore-level coinbase, then to the attester address if not set.
95
95
  */
96
96
  coinbase?: EthAddress;
97
97
  /**
98
98
  * One or more EOAs used for sending block proposal L1 txs for all validators in this configuration block.
99
- * Falls back to the attester account if not set.
99
+ * Falls back to the keystore-level publisher, then to the attester account if not set.
100
100
  */
101
101
  publisher?: EthAccounts;
102
102
  /**
103
103
  * Fee recipient address to use when proposing an L2 block as any of the validators in this configuration block.
104
+ * Falls back to the keystore-level feeRecipient if not set.
104
105
  */
105
- feeRecipient: AztecAddress;
106
+ feeRecipient?: AztecAddress;
106
107
  /**
107
108
  * Default remote signer for all accounts in this block.
108
109
  */
@@ -114,8 +115,8 @@ export type ValidatorKeyStore = {
114
115
  };
115
116
 
116
117
  export type KeyStore = {
117
- /** Schema version of this keystore file (initially 1). */
118
- schemaVersion: number;
118
+ /** Schema version of this keystore file (1 or 2). */
119
+ schemaVersion: 1 | 2;
119
120
  /** Validator configurations. */
120
121
  validators?: ValidatorKeyStore[];
121
122
  /** One or more accounts used for creating slash payloads on L1. Does not create slash payloads if not set. */
@@ -126,4 +127,10 @@ export type KeyStore = {
126
127
  prover?: ProverKeyStore;
127
128
  /** Used for automatically funding publisher accounts if there is none defined in the corresponding ValidatorKeyStore*/
128
129
  fundingAccount?: EthAccount;
130
+ /** Default publisher accounts for all validators in this keystore. Can be overridden by individual validator configs. */
131
+ publisher?: EthAccounts;
132
+ /** Default coinbase address for all validators in this keystore. Can be overridden by individual validator configs. */
133
+ coinbase?: EthAddress;
134
+ /** Default fee recipient address for all validators in this keystore. Can be overridden by individual validator configs. */
135
+ feeRecipient?: AztecAddress;
129
136
  };