Skip to content

feat: scroll sdk #63

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

Closed
wants to merge 49 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
003c9fe
feat: deterministic deployment scripts
Thegaram Jul 9, 2024
0d9b852
install ca-certificates
Thegaram Jul 10, 2024
0277a66
make isCurie configurable
Thegaram Jul 10, 2024
01f2db0
fix: add rollup config fields (#7)
yiweichi Jul 17, 2024
54d9b75
feat: add workflow to deploy docker images with github action (#8)
sbaizet-ledger Jul 17, 2024
ffa830b
fix: make env.frontend fields generate from config (#9)
yiweichi Jul 18, 2024
7b0b840
fix: log addresses script mode (#15)
yiweichi Jul 24, 2024
cdc9db1
feat: generate rollup explorer backend config (#14)
yiweichi Jul 25, 2024
f18a59a
feat: robust deployment script (#16)
yiweichi Jul 29, 2024
45bcd6c
docs: manual deployment document (#17)
yiweichi Jul 29, 2024
51f9917
fix: generate startHeight for bridge-history config (#18)
yiweichi Jul 29, 2024
cc9b579
fix: rollup config file
yiweichi Jul 30, 2024
1da6067
fix: dockerfile gen-config
yiweichi Jul 31, 2024
2fc37bd
feat: read max_chunks_per_batch from config.toml
yiweichi Aug 1, 2024
1f9cdd7
feat: log broadcast files
yiweichi Aug 1, 2024
244dc4f
feat: change name and placement of env.frontend
yiweichi Aug 7, 2024
b08cdc5
Revert "feat: change name and placement of env.frontend"
yiweichi Aug 14, 2024
4ca3a3c
fix: set l2 deployer balance in genesis
yiweichi Aug 20, 2024
65c5b4e
feat: alternative gas token (#20)
yiweichi Aug 20, 2024
0251956
fix: l2 genesis file owner
yiweichi Aug 20, 2024
9fe3780
fix: change frontend config name
yiweichi Aug 21, 2024
560aad6
feat: enable Darwin for deterministic deployment (#25)
Thegaram Aug 28, 2024
3b5ddcd
Merge branch 'main' into feat-deterministic-deployment
Thegaram Aug 30, 2024
4ad655b
clean up
Thegaram Aug 30, 2024
05e82c6
feat: enable darwinV2 (#29)
Thegaram Aug 30, 2024
187d29a
feat: use v2 zkevm verifier during initial deployment (#28)
Thegaram Aug 30, 2024
9adfdf5
refactor: clean up config.toml file (#32)
yiweichi Sep 2, 2024
3a2ab27
feat: remove dsn strings from configs (#34)
yiweichi Sep 4, 2024
3f9e8e4
fix: script check balance (#33)
yiweichi Sep 4, 2024
3793c18
Update genesis.json
Thegaram Sep 5, 2024
611913c
feat: add test to check deterministic addresses (#35)
Thegaram Sep 6, 2024
574c783
feat: remove private keys from rollup config (#36)
yiweichi Sep 10, 2024
0c993a7
feat: add admin system (#27)
yiweichi Sep 18, 2024
e5dfde6
fix: remove L2GasPriceOracle from deployment (#38)
yiweichi Sep 20, 2024
5b84246
feat: refactor config files to suit helm chart (#39)
yiweichi Sep 20, 2024
0414a23
fix: config file format (#41)
yiweichi Sep 24, 2024
45cdd68
fix: update rollup config confirmation value (#42)
yiweichi Sep 24, 2024
6ea11af
fix: l2 fee vault withdraw when using alt-gas-token (#44)
yiweichi Sep 26, 2024
128cdd0
fix: clean up
yiweichi Sep 26, 2024
e14c751
feat: configurable coordinator collection time sec (#51)
yiweichi Oct 11, 2024
f1454a1
ci: use workflow dispatch (#52)
sbaizet-ledger Oct 11, 2024
aa80925
feat: gas oracle support volatile gas token exchange rate (#49)
yiweichi Oct 14, 2024
0bcc998
fix: update config file for gas token
yiweichi Oct 16, 2024
848f31a
feat: support deploy plonk verifier (#56)
yiweichi Oct 23, 2024
40bd3e7
update chain monitor config (#59)
yiweichi Oct 30, 2024
a507de4
chore: clean up rollup config values (#60)
yiweichi Oct 31, 2024
a976769
feat: support contracts verification (#57)
yiweichi Nov 4, 2024
8ff2948
fix: contracts verification (#62)
yiweichi Nov 18, 2024
ba93025
fix: out-of-gas error when deploy contracts (#67)
yiweichi Nov 28, 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
Prev Previous commit
Next Next commit
make isCurie configurable
  • Loading branch information
Thegaram committed Jul 10, 2024
commit 0277a66e7ff8bcd9b8bc65f8ab567bdf109cfdf2
2 changes: 1 addition & 1 deletion scripts/deterministic/DeployScroll.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ contract DeployScroll is DeterminsticDeployment {
}

function deployL1GasPriceOracle() private {
bytes memory args = abi.encode(DEPLOYER_ADDR);
bytes memory args = abi.encode(DEPLOYER_ADDR, true);
L1_GAS_PRICE_ORACLE_ADDR = deploy("L1_GAS_PRICE_ORACLE", type(L1GasPriceOracle).creationCode, args);
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/deterministic/GenerateGenesis.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ contract GenerateGenesis is DeployScroll {
}

// set code
L1GasPriceOracle _oracle = new L1GasPriceOracle(OWNER_ADDR);
L1GasPriceOracle _oracle = new L1GasPriceOracle(OWNER_ADDR, true);
vm.etch(predeployAddr, address(_oracle).code);

// set storage
Expand Down
2 changes: 1 addition & 1 deletion scripts/foundry/DeployL2BridgeContracts.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ contract DeployL2BridgeContracts is Script {
}

address owner = vm.addr(L2_DEPLOYER_PRIVATE_KEY);
oracle = new L1GasPriceOracle(owner);
oracle = new L1GasPriceOracle(owner, true);

logAddress("L1_GAS_PRICE_ORACLE_ADDR", address(oracle));
}
Expand Down
5 changes: 2 additions & 3 deletions src/L2/predeploys/L1GasPriceOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,10 @@ contract L1GasPriceOracle is OwnableBase, IL1GasPriceOracle {
* Constructor *
***************/

constructor(address _owner) {
constructor(address _owner, bool _isCurie) {
_transferOwnership(_owner);

// by default we enable Curie from genesis
isCurie = true;
isCurie = _isCurie;
}

/*************************
Expand Down
2 changes: 1 addition & 1 deletion src/test/L1GasPriceOracle.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ contract L1GasPriceOracleTest is DSTestPlus {

function setUp() public {
whitelist = new Whitelist(address(this));
oracle = new L1GasPriceOracle(address(this));
oracle = new L1GasPriceOracle(address(this), false);
oracle.updateWhitelist(address(whitelist));

address[] memory _accounts = new address[](1);
Expand Down
2 changes: 1 addition & 1 deletion src/test/L2GatewayTestBase.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ abstract contract L2GatewayTestBase is DSTestPlus {
whitelist = new Whitelist(address(this));
l1BlockContainer = new L1BlockContainer(address(this));
l2MessageQueue = new L2MessageQueue(address(this));
l1GasOracle = new L1GasPriceOracle(address(this));
l1GasOracle = new L1GasPriceOracle(address(this), false);
l2Messenger = L2ScrollMessenger(payable(_deployProxy(address(0))));

// Upgrade the L2ScrollMessenger implementation and initialize
Expand Down
2 changes: 1 addition & 1 deletion src/test/L2ScrollMessenger.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ contract L2ScrollMessengerTest is DSTestPlus {
whitelist = new Whitelist(address(this));
l1BlockContainer = new L1BlockContainer(address(this));
l2MessageQueue = new L2MessageQueue(address(this));
l1GasOracle = new L1GasPriceOracle(address(this));
l1GasOracle = new L1GasPriceOracle(address(this), false);
l2Messenger = L2ScrollMessenger(
payable(
new ERC1967Proxy(
Expand Down
Loading