Skip to content

Commit b4d7694

Browse files
committed
feat: add gas_token_gateway to bridge-history config
1 parent 85cd399 commit b4d7694

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

docker/templates/bridge-history-config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"USDCGatewayAddr": "0x0000000000000000000000000000000000000000",
1919
"LIDOGatewayAddr": "0x0000000000000000000000000000000000000000",
2020
"DAIGatewayAddr": "0x0000000000000000000000000000000000000000",
21-
"PufferGatewayAddr": "0x0000000000000000000000000000000000000000"
21+
"PufferGatewayAddr": "0x0000000000000000000000000000000000000000",
22+
"GasTokenGatewayAddr": null
2223
},
2324
"L2": {
2425
"confirmation": 0,

scripts/deterministic/DeployScroll.s.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ contract DeployScroll is DeterminsticDeployment {
638638
);
639639
}
640640

641-
function deployGasToken() private {
641+
function deployGasToken() private gasToken(true) {
642642
bytes memory args = abi.encode(
643643
"ScrollGasToken", // _name
644644
"GasToken", // _symbol
@@ -650,7 +650,7 @@ contract DeployScroll is DeterminsticDeployment {
650650
L1_GAS_TOKEN_ADDR = deploy("L1_GAS_TOKEN", type(GasTokenExample).creationCode, args);
651651
}
652652

653-
function deployL1GasTokenGatewayProxy() private {
653+
function deployL1GasTokenGatewayProxy() private gasToken(true) {
654654
bytes memory args = abi.encode(
655655
notnull(L1_PROXY_IMPLEMENTATION_PLACEHOLDER_ADDR),
656656
notnull(L1_PROXY_ADMIN_ADDR),

scripts/deterministic/GenerateConfigs.s.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ contract GenerateBridgeHistoryConfig is DeployScroll {
186186
vm.writeJson(vm.toString(L1_CUSTOM_ERC20_GATEWAY_PROXY_ADDR), BRIDGE_HISTORY_CONFIG_PATH, ".L1.CustomERC20GatewayAddr");
187187
vm.writeJson(vm.toString(L1_ERC721_GATEWAY_PROXY_ADDR), BRIDGE_HISTORY_CONFIG_PATH, ".L1.ERC721GatewayAddr");
188188
vm.writeJson(vm.toString(L1_ERC1155_GATEWAY_PROXY_ADDR), BRIDGE_HISTORY_CONFIG_PATH, ".L1.ERC1155GatewayAddr");
189+
vm.writeJson(vm.toString(L1_GAS_TOKEN_GATEWAY_PROXY_ADDR), BRIDGE_HISTORY_CONFIG_PATH, ".L1.GasTokenGatewayAddr");
189190

190191
// L2 contracts
191192
vm.writeJson(vm.toString(L2_MESSAGE_QUEUE_ADDR), BRIDGE_HISTORY_CONFIG_PATH, ".L2.MessageQueueAddr");

0 commit comments

Comments
 (0)