Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ optimism_package:
# Offset is in seconds
interop_time_offset: ""

# Alphanet for
# Defaults to None - not activated - decimal value
# Offset is in seconds
alphanet_time_offset: ""

# Additional services to run alongside the network
# Defaults to []
Expand Down
4 changes: 4 additions & 0 deletions src/l2.star
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,8 @@ def get_network_fork_activation(network_params):
env_vars["INTEROP_TIME_OFFSET"] = "0x" + "%x" % int(
network_params.interop_time_offset
)
if network_params.alphanet_time_offset != None:
env_vars["ALPHANET_TIME_OFFSET"] = "0x" + "%x" % int(
network_params.alphanet_time_offset
)
return env_vars
2 changes: 2 additions & 0 deletions src/package_io/input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def input_parser(plan, input_args):
granite_time_offset=result["network_params"]["granite_time_offset"],
holocene_time_offset=result["network_params"]["holocene_time_offset"],
interop_time_offset=result["network_params"]["interop_time_offset"],
alphanet_time_offset=result["network_params"]["alphanet_time_offset"],
),
additional_services=result.get(
"additional_services", DEFAULT_ADDITIONAL_SERVICES
Expand Down Expand Up @@ -146,6 +147,7 @@ def default_network_params():
"granite_time_offset": None,
"holocene_time_offset": None,
"interop_time_offset": None,
"alphanet_time_offset": None,
}


Expand Down
1 change: 1 addition & 0 deletions src/package_io/sanity_check.star
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ SUBCATEGORY_PARAMS = {
"granite_time_offset",
"holocene_time_offset",
"interop_time_offset",
"alphanet_time_offset",
],
"op_contract_deployer_params": ["image"],
}
Expand Down