Skip to content

Commit

Permalink
add cosntant
Browse files Browse the repository at this point in the history
  • Loading branch information
toni-calvin committed Feb 5, 2024
1 parent ab0fa6b commit 16d1633
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions infrastructure/zk/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const VALIDIUM_COMPUTE_OVERHEAD_PART: number = 1.0;
export const ROLLUP_COMPUTE_OVERHEAD_PART: number = 0.0;
export const VALIDIUM_PUBDATA_OVERHEAD_PART: number = 0.0;
export const ROLLUP_PUBDATA_OVERHEAD_PART: number = 1.0;
export const VALIDIUM_BATCH_OVERHEAD_L1_GAS: number = 1000000;
Expand Down
3 changes: 3 additions & 0 deletions infrastructure/zk/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ function updateConfigFile(path: string, modeConstantValues: any) {
}
function updateChainConfig(validiumMode: boolean) {
const modeConstantValues = {
compute_overhead_part: validiumMode
? constants.VALIDIUM_COMPUTE_OVERHEAD_PART
: constants.ROLLUP_COMPUTE_OVERHEAD_PART,
pubdata_overhead_part: validiumMode
? constants.VALIDIUM_PUBDATA_OVERHEAD_PART
: constants.ROLLUP_PUBDATA_OVERHEAD_PART,
Expand Down

0 comments on commit 16d1633

Please sign in to comment.