@aztec/ethereum 0.82.2-alpha-testnet.3 → 0.82.2-alpha-testnet.4

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
@@ -1,5 +1,11 @@
1
1
  import { type ConfigMappingsType } from '@aztec/foundation/config';
2
2
  import { type L1TxUtilsConfig } from './l1_tx_utils.js';
3
+ export type GenesisStateConfig = {
4
+ /** Whether to populate the genesis state with initial fee juice for the test accounts */
5
+ testAccounts: boolean;
6
+ /** Whether to populate the genesis state with initial fee juice for the sponsored FPC */
7
+ sponsoredFPC: boolean;
8
+ };
3
9
  export type L1ContractsConfig = {
4
10
  /** How many seconds an L1 slot lasts. */
5
11
  ethereumSlotDuration: number;
@@ -41,5 +47,7 @@ export declare const DefaultL1ContractsConfig: {
41
47
  provingCostPerMana: bigint;
42
48
  };
43
49
  export declare const l1ContractsConfigMappings: ConfigMappingsType<L1ContractsConfig>;
50
+ export declare const genesisStateConfigMappings: ConfigMappingsType<GenesisStateConfig>;
44
51
  export declare function getL1ContractsConfigEnvVars(): L1ContractsConfig;
52
+ export declare function getGenesisStateConfigEnvVars(): GenesisStateConfig;
45
53
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EAIxB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,KAAK,eAAe,EAA2B,MAAM,kBAAkB,CAAC;AAEjF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,yCAAyC;IACzC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,uFAAuF;IACvF,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wCAAwC;IACxC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,wBAAwB,EAAE,MAAM,CAAC;IACjC,sFAAsF;IACtF,0BAA0B,EAAE,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C9B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kCAAkC;IAClC,wBAAwB,EAAE,MAAM,CAAC;IACjC,sCAAsC;IACtC,2BAA2B,EAAE,MAAM,CAAC;IACpC,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,gCAAgC;IAChC,kBAAkB,EAAE,MAAM,CAAC;CAC5B,GAAG,eAAe,CAAC;AAEpB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;CAaR,CAAC;AAE9B,eAAO,MAAM,yBAAyB,EAAE,kBAAkB,CAAC,iBAAiB,CA+D3E,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,kBAAkB,CAAC,kBAAkB,CAW7E,CAAC;AAEF,wBAAgB,2BAA2B,IAAI,iBAAiB,CAE/D;AAED,wBAAgB,4BAA4B,IAAI,kBAAkB,CAEjE"}
package/dest/config.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bigintConfigHelper, getConfigFromMappings, numberConfigHelper } from '@aztec/foundation/config';
1
+ import { bigintConfigHelper, booleanConfigHelper, getConfigFromMappings, numberConfigHelper } from '@aztec/foundation/config';
2
2
  import { l1TxUtilsConfigMappings } from './l1_tx_utils.js';
3
3
  export const DefaultL1ContractsConfig = {
4
4
  ethereumSlotDuration: 12,
@@ -77,6 +77,21 @@ export const l1ContractsConfigMappings = {
77
77
  },
78
78
  ...l1TxUtilsConfigMappings
79
79
  };
80
+ export const genesisStateConfigMappings = {
81
+ testAccounts: {
82
+ env: 'TEST_ACCOUNTS',
83
+ description: 'Whether to populate the genesis state with initial fee juice for the test accounts.',
84
+ ...booleanConfigHelper(false)
85
+ },
86
+ sponsoredFPC: {
87
+ env: 'SPONSORED_FPC',
88
+ description: 'Whether to populate the genesis state with initial fee juice for the sponsored FPC.',
89
+ ...booleanConfigHelper(false)
90
+ }
91
+ };
80
92
  export function getL1ContractsConfigEnvVars() {
81
93
  return getConfigFromMappings(l1ContractsConfigMappings);
82
94
  }
95
+ export function getGenesisStateConfigEnvVars() {
96
+ return getConfigFromMappings(genesisStateConfigMappings);
97
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/ethereum",
3
- "version": "0.82.2-alpha-testnet.3",
3
+ "version": "0.82.2-alpha-testnet.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/index.js",
@@ -33,9 +33,9 @@
33
33
  "../package.common.json"
34
34
  ],
35
35
  "dependencies": {
36
- "@aztec/blob-lib": "0.82.2-alpha-testnet.3",
37
- "@aztec/foundation": "0.82.2-alpha-testnet.3",
38
- "@aztec/l1-artifacts": "0.82.2-alpha-testnet.3",
36
+ "@aztec/blob-lib": "0.82.2-alpha-testnet.4",
37
+ "@aztec/foundation": "0.82.2-alpha-testnet.4",
38
+ "@aztec/l1-artifacts": "0.82.2-alpha-testnet.4",
39
39
  "@viem/anvil": "^0.0.10",
40
40
  "dotenv": "^16.0.3",
41
41
  "tslib": "^2.4.0",
package/src/config.ts CHANGED
@@ -1,12 +1,20 @@
1
1
  import {
2
2
  type ConfigMappingsType,
3
3
  bigintConfigHelper,
4
+ booleanConfigHelper,
4
5
  getConfigFromMappings,
5
6
  numberConfigHelper,
6
7
  } from '@aztec/foundation/config';
7
8
 
8
9
  import { type L1TxUtilsConfig, l1TxUtilsConfigMappings } from './l1_tx_utils.js';
9
10
 
11
+ export type GenesisStateConfig = {
12
+ /** Whether to populate the genesis state with initial fee juice for the test accounts */
13
+ testAccounts: boolean;
14
+ /** Whether to populate the genesis state with initial fee juice for the sponsored FPC */
15
+ sponsoredFPC: boolean;
16
+ };
17
+
10
18
  export type L1ContractsConfig = {
11
19
  /** How many seconds an L1 slot lasts. */
12
20
  ethereumSlotDuration: number;
@@ -114,6 +122,23 @@ export const l1ContractsConfigMappings: ConfigMappingsType<L1ContractsConfig> =
114
122
  ...l1TxUtilsConfigMappings,
115
123
  };
116
124
 
125
+ export const genesisStateConfigMappings: ConfigMappingsType<GenesisStateConfig> = {
126
+ testAccounts: {
127
+ env: 'TEST_ACCOUNTS',
128
+ description: 'Whether to populate the genesis state with initial fee juice for the test accounts.',
129
+ ...booleanConfigHelper(false),
130
+ },
131
+ sponsoredFPC: {
132
+ env: 'SPONSORED_FPC',
133
+ description: 'Whether to populate the genesis state with initial fee juice for the sponsored FPC.',
134
+ ...booleanConfigHelper(false),
135
+ },
136
+ };
137
+
117
138
  export function getL1ContractsConfigEnvVars(): L1ContractsConfig {
118
139
  return getConfigFromMappings(l1ContractsConfigMappings);
119
140
  }
141
+
142
+ export function getGenesisStateConfigEnvVars(): GenesisStateConfig {
143
+ return getConfigFromMappings(genesisStateConfigMappings);
144
+ }