Skip to content

Commit

Permalink
feat: expose DOMAIN_APPLICATION_MASK in config/spec api (#7296)
Browse files Browse the repository at this point in the history
* feat: expose DOMAIN_APPLICATION_MASK in config/spec api

* Lint
  • Loading branch information
nflaig authored Dec 13, 2024
1 parent 99794d3 commit 879f99b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/beacon-node/src/api/impl/config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
DEPOSIT_CONTRACT_TREE_DEPTH,
DOMAIN_AGGREGATE_AND_PROOF,
DOMAIN_APPLICATION_BUILDER,
DOMAIN_APPLICATION_MASK,
DOMAIN_BEACON_ATTESTER,
DOMAIN_BEACON_PROPOSER,
DOMAIN_BLS_TO_EXECUTION_CHANGE,
Expand Down Expand Up @@ -67,6 +68,7 @@ export const specConstants = {
DOMAIN_VOLUNTARY_EXIT,
DOMAIN_SELECTION_PROOF,
DOMAIN_AGGREGATE_AND_PROOF,
DOMAIN_APPLICATION_MASK,
DOMAIN_APPLICATION_BUILDER,

// phase0/validator.md
Expand Down
2 changes: 1 addition & 1 deletion packages/beacon-node/test/e2e/api/impl/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async function downloadRemoteConstants(commit: string): Promise<string[]> {
const constantNames: string[] = [];

for (const spec of await Promise.all(downloadedSpecs)) {
const matches = spec.matchAll(/\|\s`*([A-Z_]+)`\s\|/g);
const matches = spec.matchAll(/\|\s`*([A-Z_]+)`\s+\|/g);
for (const match of matches) {
constantNames.push(match[1]);
}
Expand Down

0 comments on commit 879f99b

Please sign in to comment.