@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 CHANGED
@@ -7,7 +7,7 @@ export type L1AssetConfig = {
7
7
  };
8
8
  export type FaucetConfig = L1ReaderConfig & {
9
9
  l1Mnemonic: string;
10
- mnemonicAccountIndex: number;
10
+ mnemonicAddressIndex: number;
11
11
  interval: number;
12
12
  ethAmount: string;
13
13
  l1Assets: L1AssetConfig[];
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
- mnemonicAccountIndex: {
11
- env: 'FAUCET_MNEMONIC_ACCOUNT_INDEX',
12
- description: 'The account to use',
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.mnemonicAccountIndex
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.87.7",
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.87.7",
63
- "@aztec/foundation": "0.87.7",
64
- "@aztec/l1-artifacts": "0.87.7",
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
- mnemonicAccountIndex: number;
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
- mnemonicAccountIndex: {
25
- env: 'FAUCET_MNEMONIC_ACCOUNT_INDEX',
26
- description: 'The account to use',
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.mnemonicAccountIndex });
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) {