From 3cee8eaf1ef5de30ed2bbe488fd7c73388deda50 Mon Sep 17 00:00:00 2001 From: Suuuuuuperrrrr fred Date: Fri, 20 Sep 2024 07:31:31 +0400 Subject: [PATCH 1/2] delete README.md --- common/bytecode/README.md | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/common/bytecode/README.md b/common/bytecode/README.md index 794bd10690..8b13789179 100644 --- a/common/bytecode/README.md +++ b/common/bytecode/README.md @@ -1,40 +1 @@ -## How to pre deploy contracts? -* Please reference to https://github.com/scroll-tech/genesis-creator. -1. Setup env -```bash - git clone git@github.com:scroll-tech/genesis-creator.git - cd genesis-creator - go get -v github.com/scroll-tech/go-ethereum@develop && go mod tidy - make abi && make genesis-creator - make l2geth-docker -``` -2. Start docker and write pre deployed contracts into genesis file. -```bash - make start-docker - ./bin/genesis-creator -genesis ${SCROLLPATH}/common/docker/l2geth/genesis.json -contract [erc20|greeter] -``` - -3. Rebuild l2geth docker. -```bash - cd ${SCROLLPATH} - make dev_docker -``` - -## How to get contract abi? -* Other contracts' step same to eth20, e.g: -1. Install solc. - - *Reference to https://docs.soliditylang.org/en/latest/installing-solidity.html* - -2. Get abi file. -```bash - cd genesis-creator - solc --combined-json "abi" --optimize ${SCROLLPATH}/common/bytecode/erc20/ERC20Mock.sol | jq > ${SCROLLPATH}/common/bytecode/erc20/ERC20Mock.json -``` - -3. Translate abi to go. -```bash - cd ${SCROLLPATH} - make -C common/bytecode all -``` From 0c647ab0c5d2bb6b330073b6bf732eb7a11f8688 Mon Sep 17 00:00:00 2001 From: Fredrika Date: Fri, 20 Sep 2024 11:34:06 +0800 Subject: [PATCH 2/2] delete --- common/bytecode/README.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 common/bytecode/README.md diff --git a/common/bytecode/README.md b/common/bytecode/README.md deleted file mode 100644 index 8b13789179..0000000000 --- a/common/bytecode/README.md +++ /dev/null @@ -1 +0,0 @@ -