Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion yarn-project/aztec/src/cli/aztec_start_options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,16 @@ export const getOptions = (namespace: string, configMappings: Record<string, Con
};

// These are options used by multiple modules so should be inputted once
export const universalOptions = ['l1RpcUrls', 'l1ChainId', 'l1Contracts', 'p2pEnabled', 'dataDirectory'];
export const universalOptions = [
'l1RpcUrls',
'l1ConsensusHostUrl',
'l1ConsensusHostApiKey',
'l1ConsensusHostApiKeyHeader',
'l1ChainId',
'l1Contracts',
'p2pEnabled',
'dataDirectory',
];

// Define categories and options
export const aztecStartOptions: { [key: string]: AztecStartOption[] } = {
Expand Down Expand Up @@ -121,6 +130,25 @@ export const aztecStartOptions: { [key: string]: AztecStartOption[] } = {
defaultValue: DefaultMnemonic,
envVar: 'MNEMONIC',
},
{
flag: '--l1-consensus-host-url <value>',
description: 'URL of the Ethereum consensus node that services will connect to',
defaultValue: undefined,
envVar: 'L1_CONSENSUS_HOST_URL',
},
{
flag: '--l1-consensus-host-api-key <value>',
description: 'API key for the Ethereum consensus node',
defaultValue: undefined,
envVar: 'L1_CONSENSUS_HOST_API_KEY',
},
{
flag: '--l1-consensus-host-api-key-header <value>',
description:
'API key header for the Ethereum consensus node. If not set, the api key will be appended to the URL as ?key=<api-key>',
defaultValue: undefined,
envVar: 'L1_CONSENSUS_HOST_API_KEY_HEADER',
},
],
'L1 CONTRACT ADDRESSES': [
{
Expand Down
Loading