Skip to content

Commit

Permalink
fix: address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Nov 7, 2024
1 parent 3744589 commit a39cbf4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
5 changes: 4 additions & 1 deletion contracts/scripts/standard-bridge/DeployStandardBridge.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ contract BridgeBase is Script {
// Amount of ETH to initially fund the relayer account on both chains.
uint256 public constant RELAYER_INITIAL_FUNDING = 1 ether;

// Amount of ETH to initially fund the oracle account on L1 chain.
uint256 public constant ORACLE_INITIAL_FUNDING = 1 ether;

// Amount of ETH required by the contract deployer to initialize all bridge and core contract state,
// AND initially fund the relayer, all on mev-commit chain.
// This amount of ETH must be initially locked in the L1 gateway contract to ensure a 1:1 peg
// between mev-commit chain ETH and L1 ETH.
uint256 public constant MEV_COMMIT_CHAIN_SETUP_COST = 1 ether + RELAYER_INITIAL_FUNDING;
uint256 public constant MEV_COMMIT_CHAIN_SETUP_COST = 1 ether + RELAYER_INITIAL_FUNDING + ORACLE_INITIAL_FUNDING;

// Amount of ETH required on L1 to initialize the L1 gateway, make transfer calls, and initially fund the relayer on L1.
uint256 public constant L1_SETUP_COST = 1 ether + RELAYER_INITIAL_FUNDING;
Expand Down
19 changes: 7 additions & 12 deletions infrastructure/nomad/playbooks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -489,18 +489,13 @@
exit 1
fi
ALLOC=$(echo '{}' | jq '.')
for ADDRESS in ${ALLOCATIONS}; do
ALLOC=$(
echo "${ALLOC}" | jq --arg address "0x${ADDRESS}" '
. + {
($address): {
"balance": "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
}
}
'
)
done
ALLOC=$(jq -n --arg address "0x${ALLOCATIONS}" '
{
($address): {
"balance": "0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
}
}
')
ADDRESS_COUNT=0
EXTRADATA="0x$(printf '0%.0s' {1..64})"
Expand Down

0 comments on commit a39cbf4

Please sign in to comment.