@aztec/node-keystore 0.0.1-commit.d3ec352c → 0.0.1-commit.fcb71a6
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/keystore_manager.d.ts +5 -5
- package/dest/keystore_manager.d.ts.map +1 -1
- package/dest/keystore_manager.js +19 -4
- package/dest/loader.d.ts +1 -1
- package/dest/loader.d.ts.map +1 -1
- package/dest/loader.js +76 -20
- package/dest/schemas.d.ts +1949 -3
- package/dest/schemas.d.ts.map +1 -1
- package/dest/schemas.js +49 -5
- package/dest/signer.d.ts +2 -2
- package/dest/signer.d.ts.map +1 -1
- package/dest/signer.js +7 -6
- package/dest/types.d.ts +13 -6
- package/dest/types.d.ts.map +1 -1
- package/package.json +6 -4
- package/src/keystore_manager.ts +30 -5
- package/src/loader.ts +77 -13
- package/src/schemas.ts +54 -5
- package/src/signer.ts +8 -11
- package/src/types.ts +12 -5
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
|
|
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 (
|
|
118
|
-
schemaVersion:
|
|
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
|
};
|