Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat deployment alt gas token #20

Merged
merged 31 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
a9e8d35
feat: add contracts for alternative gas token design
zimpha Jul 22, 2024
4be3001
fix: comments
zimpha Jul 22, 2024
0e62f08
feat: add scale to 18 decimals
zimpha Jul 24, 2024
a87c7d7
feat: l1 robust deployment script
yiweichi Jul 24, 2024
591b875
feat: l2 robust deployment script
yiweichi Jul 25, 2024
466c88a
feat: add more comments; use custom error
zimpha Jul 29, 2024
7620c50
merge: feat/alternative_gas_token
yiweichi Jul 29, 2024
1ffb7da
feat: add unit tests
zimpha Jul 29, 2024
b1f9ecf
merge: alternative gas token
yiweichi Jul 30, 2024
a06bb49
feat: alternative gas token deployment script
yiweichi Jul 30, 2024
a411597
fix: example gas token
yiweichi Jul 31, 2024
ab8002e
fix: deployment script L2_WETH_GATEWAY_PROXY_ADDR transfer ownership
yiweichi Aug 2, 2024
3082fc1
Merge branch 'feat-deterministic-deployment' into feat-deployment-alt…
yiweichi Aug 4, 2024
fbd92da
fix: SAFE_GAS_LIMIT in contract L1WrappedTokenGateway
yiweichi Aug 7, 2024
85cd399
Merge branch 'feat-deployment-alt-gas-token' of https://github.com/sc…
yiweichi Aug 7, 2024
b4d7694
feat: add gas_token_gateway to bridge-history config
yiweichi Aug 9, 2024
b4cc238
feat: config example gas token decimal
yiweichi Aug 9, 2024
61ebdd1
fit: add frontend config values
yiweichi Aug 12, 2024
4d2b3c6
fix: emit DepositWrappedToken event (#23)
yiweichi Aug 13, 2024
5489c1d
feat: chain-monitor config support alt-gas-token
yiweichi Aug 14, 2024
ca2acbe
Merge branch 'feat-deployment-alt-gas-token' of https://github.com/sc…
yiweichi Aug 14, 2024
429c441
fixt: load gas_token_gateway to config
yiweichi Aug 15, 2024
ee696f8
feat: lock tokens in bridge after deployment
Thegaram Aug 15, 2024
b8d6ec9
fix: restore chain monitor config confirm block
yiweichi Aug 15, 2024
161b2dd
Merge branch 'feat-deployment-alt-gas-token' into feat-lock-tokens-af…
yiweichi Aug 16, 2024
2f3e91e
fix: use transfer when lock tokens
yiweichi Aug 16, 2024
923ead9
fix: skip check funds if use test gas token
yiweichi Aug 18, 2024
18a483e
fix: remove redundant code from gen-configs.sh
yiweichi Aug 18, 2024
446bd8f
feat: lock tokens in bridge after deployment (#24)
Thegaram Aug 18, 2024
91aee29
fix: predict L1GasTokenGateway address issue
yiweichi Aug 18, 2024
e5bdf6f
Merge branch 'feat-deployment-alt-gas-token' of https://github.com/sc…
yiweichi Aug 18, 2024
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
3 changes: 3 additions & 0 deletions docker/config-example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ MAX_L1_MESSAGE_GAS_LIMIT = 10000000

L1_CONTRACT_DEPLOYMENT_BLOCK = 0

ALTERNATIVE_GAS_TOKEN_ENABLED = true

TEST_ENV_MOCK_FINALIZE_ENABLED = true
TEST_ENV_MOCK_FINALIZE_TIMEOUT_SEC = 3600

Expand Down Expand Up @@ -64,6 +66,7 @@ L1_PLONK_VERIFIER_ADDR = "0x0000000000000000000000000000000000000001"
[contracts.overrides]

# L1_WETH = "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14"
# L1_GAS_TOKEN = "0x0000000000000000000000000000000000000000"

L2_MESSAGE_QUEUE = "0x5300000000000000000000000000000000000000"
L1_GAS_PRICE_ORACLE = "0x5300000000000000000000000000000000000002"
Expand Down
4 changes: 4 additions & 0 deletions docker/templates/config-contracts.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ L1_ERC721_GATEWAY_PROXY_ADDR = ""
L1_ERC1155_GATEWAY_PROXY_ADDR = ""
L2_MESSAGE_QUEUE_ADDR = ""
L1_GAS_PRICE_ORACLE_ADDR = ""
L1_GAS_TOKEN_ADDR = ""
L1_GAS_TOKEN_GATEWAY_IMPLEMENTATION_ADDR = ""
L1_GAS_TOKEN_GATEWAY_PROXY_ADDR = ""
L1_WRAPPED_TOKEN_GATEWAY_ADDR = ""
L2_WHITELIST_ADDR = ""
L2_WETH_ADDR = ""
L2_TX_FEE_VAULT_ADDR = ""
Expand Down
4 changes: 4 additions & 0 deletions scripts/deterministic/Configuration.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ abstract contract Configuration is Script {

uint256 internal L1_CONTRACT_DEPLOYMENT_BLOCK;

bool internal ALTERNATIVE_GAS_TOKEN_ENABLED;

bool internal TEST_ENV_MOCK_FINALIZE_ENABLED;
uint256 internal TEST_ENV_MOCK_FINALIZE_TIMEOUT_SEC;

Expand Down Expand Up @@ -110,6 +112,8 @@ abstract contract Configuration is Script {

L1_CONTRACT_DEPLOYMENT_BLOCK = cfg.readUint(".general.L1_CONTRACT_DEPLOYMENT_BLOCK");

ALTERNATIVE_GAS_TOKEN_ENABLED = cfg.readBool(".general.ALTERNATIVE_GAS_TOKEN_ENABLED");

TEST_ENV_MOCK_FINALIZE_ENABLED = cfg.readBool(".general.TEST_ENV_MOCK_FINALIZE_ENABLED");
TEST_ENV_MOCK_FINALIZE_TIMEOUT_SEC = cfg.readUint(".general.TEST_ENV_MOCK_FINALIZE_TIMEOUT_SEC");

Expand Down
Loading
Loading