Skip to content

Commit a54386f

Browse files
authored
Merge branch 'main' into feat/blobstorage-tests
2 parents 7e9de27 + 215a600 commit a54386f

File tree

6 files changed

+58
-243
lines changed

6 files changed

+58
-243
lines changed

packages/protocol/contracts/team/airdrop/ERC721Airdrop.sol

-63
This file was deleted.

packages/protocol/genesis/mainnet.js

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
"use strict";
2+
const ADDRESS_LENGTH = 40;
3+
4+
module.exports = {
5+
contractOwner: "0xf8ff2AF0DC1D5BA4811f22aCb02936A1529fd2Be",
6+
l1ChainId: 1,
7+
chainId: 167000,
8+
seedAccounts: [
9+
{
10+
"0x69AA0361Dbb0527d4F1e5312403Bd41788fe61Fe": 199,
11+
},
12+
{
13+
"0x00000968bfe78aa27cd380d629d61c89bd6b03e8": 1,
14+
},
15+
],
16+
get contractAddresses() {
17+
return {
18+
// ============ Implementations ============
19+
// Shared Contracts
20+
BridgeImpl: getConstantAddress(`0${this.chainId}`, 1),
21+
ERC20VaultImpl: getConstantAddress(`0${this.chainId}`, 2),
22+
ERC721VaultImpl: getConstantAddress(`0${this.chainId}`, 3),
23+
ERC1155VaultImpl: getConstantAddress(`0${this.chainId}`, 4),
24+
SignalServiceImpl: getConstantAddress(`0${this.chainId}`, 5),
25+
SharedAddressManagerImpl: getConstantAddress(`0${this.chainId}`, 6),
26+
BridgedERC20Impl: getConstantAddress(`0${this.chainId}`, 10096),
27+
BridgedERC721Impl: getConstantAddress(`0${this.chainId}`, 10097),
28+
BridgedERC1155Impl: getConstantAddress(`0${this.chainId}`, 10098),
29+
// Rollup Contracts
30+
TaikoL2Impl: getConstantAddress(`0${this.chainId}`, 10001),
31+
RollupAddressManagerImpl: getConstantAddress(`0${this.chainId}`, 10002),
32+
// ============ Proxies ============
33+
// Shared Contracts
34+
Bridge: getConstantAddress(this.chainId, 1),
35+
ERC20Vault: getConstantAddress(this.chainId, 2),
36+
ERC721Vault: getConstantAddress(this.chainId, 3),
37+
ERC1155Vault: getConstantAddress(this.chainId, 4),
38+
SignalService: getConstantAddress(this.chainId, 5),
39+
SharedAddressManager: getConstantAddress(this.chainId, 6),
40+
// Rollup Contracts
41+
TaikoL2: getConstantAddress(this.chainId, 10001),
42+
RollupAddressManager: getConstantAddress(this.chainId, 10002),
43+
};
44+
},
45+
param1559: {
46+
gasExcess: 1,
47+
},
48+
predeployERC20: false,
49+
};
50+
51+
function getConstantAddress(prefix, suffix) {
52+
return `0x${prefix}${"0".repeat(
53+
ADDRESS_LENGTH - String(prefix).length - String(suffix).length,
54+
)}${suffix}`;
55+
}

packages/protocol/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"clean": "rm -rf abis cache* && forge clean",
88
"compile": "forge build --build-info --extra-output storage-layout",
99
"test:deploy": "./script/download_solc.sh && ./script/test_deploy_on_l1.sh",
10-
"eslint": "pnpm exec eslint --ignore-path .eslintignore --ext .js,.ts .",
10+
"eslint": "pnpm exec eslint --fix --ignore-path .eslintignore --ext .js,.ts .",
1111
"fmt:sol": "forge fmt",
1212
"generate:genesis": "ts-node ./utils/generate_genesis/main.ts",
1313
"lint:sol": "forge fmt && pnpm solhint 'contracts/**/*.sol'",

packages/protocol/test/TaikoTest.sol

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import "../contracts/L2/DelegateOwner.sol";
2222

2323
import "../contracts/team/airdrop/ERC20Airdrop.sol";
2424
import "../contracts/team/airdrop/ERC20Airdrop2.sol";
25-
import "../contracts/team/airdrop/ERC721Airdrop.sol";
2625

2726
import "../test/common/erc20/FreeMintERC20.sol";
2827
import "../test/L2/TaikoL2EIP1559Configurable.sol";

packages/protocol/test/team/airdrop/ERC721Airdrop.t.sol

-176
This file was deleted.

packages/protocol/utils/generate_genesis/taikoL2.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export async function deployTaikoL2(
1818

1919
const alloc: any = {};
2020

21-
// Premint 1 billion ethers to the bridge, current Ethereum's supply is ~120.27M.
22-
let bridgeInitialEtherBalance = ethers.utils.parseEther(`${1_000_000_000}`);
21+
// Premint 999_999_800 ethers to the bridge, current Ethereum's supply is ~120.27M.
22+
let bridgeInitialEtherBalance = ethers.utils.parseEther(`${999_999_800}`);
2323

2424
for (const seedAccount of seedAccounts) {
2525
const accountAddress = Object.keys(seedAccount)[0];

0 commit comments

Comments
 (0)