@aztec/aztec-faucet 0.87.7 → 1.0.0-nightly.20250604
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/config.d.ts +1 -1
- package/dest/config.js +3 -3
- package/dest/faucet.js +1 -1
- package/package.json +4 -4
- package/src/config.ts +4 -4
- package/src/faucet.ts +1 -1
package/dest/config.d.ts
CHANGED
package/dest/config.js
CHANGED
|
@@ -7,9 +7,9 @@ export const faucetConfigMapping = {
|
|
|
7
7
|
env: 'MNEMONIC',
|
|
8
8
|
description: 'The mnemonic for the faucet account'
|
|
9
9
|
},
|
|
10
|
-
|
|
11
|
-
env: '
|
|
12
|
-
description: 'The
|
|
10
|
+
mnemonicAddressIndex: {
|
|
11
|
+
env: 'FAUCET_MNEMONIC_ADDRESS_INDEX',
|
|
12
|
+
description: 'The address to use',
|
|
13
13
|
...numberConfigHelper(0)
|
|
14
14
|
},
|
|
15
15
|
interval: {
|
package/dest/faucet.js
CHANGED
|
@@ -26,7 +26,7 @@ export class Faucet {
|
|
|
26
26
|
throw new Error('Missing faucet mnemonic');
|
|
27
27
|
}
|
|
28
28
|
const account = mnemonicToAccount(config.l1Mnemonic, {
|
|
29
|
-
addressIndex: config.
|
|
29
|
+
addressIndex: config.mnemonicAddressIndex
|
|
30
30
|
});
|
|
31
31
|
const faucet = new Faucet(config, account);
|
|
32
32
|
for (const asset of config.l1Assets){
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/aztec-faucet",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-nightly.20250604",
|
|
4
4
|
"main": "dest/bin/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "./dest/bin/index.js",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@aztec/ethereum": "0.
|
|
63
|
-
"@aztec/foundation": "0.
|
|
64
|
-
"@aztec/l1-artifacts": "0.
|
|
62
|
+
"@aztec/ethereum": "1.0.0-nightly.20250604",
|
|
63
|
+
"@aztec/foundation": "1.0.0-nightly.20250604",
|
|
64
|
+
"@aztec/l1-artifacts": "1.0.0-nightly.20250604",
|
|
65
65
|
"@koa/cors": "^5.0.0",
|
|
66
66
|
"koa": "^2.16.1",
|
|
67
67
|
"koa-bodyparser": "^4.4.1",
|
package/src/config.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type L1AssetConfig = {
|
|
|
9
9
|
|
|
10
10
|
export type FaucetConfig = L1ReaderConfig & {
|
|
11
11
|
l1Mnemonic: string;
|
|
12
|
-
|
|
12
|
+
mnemonicAddressIndex: number;
|
|
13
13
|
interval: number;
|
|
14
14
|
ethAmount: string;
|
|
15
15
|
l1Assets: L1AssetConfig[];
|
|
@@ -21,9 +21,9 @@ export const faucetConfigMapping: ConfigMappingsType<FaucetConfig> = {
|
|
|
21
21
|
env: 'MNEMONIC',
|
|
22
22
|
description: 'The mnemonic for the faucet account',
|
|
23
23
|
},
|
|
24
|
-
|
|
25
|
-
env: '
|
|
26
|
-
description: 'The
|
|
24
|
+
mnemonicAddressIndex: {
|
|
25
|
+
env: 'FAUCET_MNEMONIC_ADDRESS_INDEX',
|
|
26
|
+
description: 'The address to use',
|
|
27
27
|
...numberConfigHelper(0),
|
|
28
28
|
},
|
|
29
29
|
interval: {
|
package/src/faucet.ts
CHANGED
|
@@ -44,7 +44,7 @@ export class Faucet {
|
|
|
44
44
|
throw new Error('Missing faucet mnemonic');
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
const account = mnemonicToAccount(config.l1Mnemonic, { addressIndex: config.
|
|
47
|
+
const account = mnemonicToAccount(config.l1Mnemonic, { addressIndex: config.mnemonicAddressIndex });
|
|
48
48
|
const faucet = new Faucet(config, account);
|
|
49
49
|
|
|
50
50
|
for (const asset of config.l1Assets) {
|