From 44f6864053acba71564c1b1aee6e76baf8dfbcb4 Mon Sep 17 00:00:00 2001 From: Ethan Zhang Date: Fri, 25 Oct 2024 06:50:31 +0000 Subject: [PATCH] to add workflows for erc20 and uniswap on 0g --- .github/workflows/tps-erc20-0g.yml | 34 ++++++++++++++++++++++++++++ .github/workflows/tps-uniswap-0g.yml | 34 ++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 .github/workflows/tps-erc20-0g.yml create mode 100644 .github/workflows/tps-uniswap-0g.yml diff --git a/.github/workflows/tps-erc20-0g.yml b/.github/workflows/tps-erc20-0g.yml new file mode 100644 index 0000000..e6191c1 --- /dev/null +++ b/.github/workflows/tps-erc20-0g.yml @@ -0,0 +1,34 @@ +name: Signal Node - 0G - ERC20 + +on: + workflow_dispatch: + + pull_request: + types: + - opened + - synchronize + - reopened + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.23' + - name: Build Tool + run: | + make build + - name: Build Chain + run: | + git clone -b v0.4.0 https://github.com/0glabs/0g-chain.git + cd 0g-chain + sudo LINK_STATICALLY=true make build-release + sed -i '/$BINARY config broadcast-mode sync/a sed -i '\''s/timeout_commit = "5s"/timeout_commit = "1s"/'\'' ~/.0gchain/config/config.toml' localtestnet.sh + tail localtestnet.sh + ./localtestnet.sh &> chain.log & + while ! nc -z localhost 8546; do sleep 1; done + cd ../../evmchainbench + ./bin/evmchainbench run --faucet-private-key 58095A53EA065B7DC3065365B2A8F6797F26464381BB6A34F8337F010A63CB63 --sender-count 2 --tx-count 20000 --mempool 2500 -p erc20 diff --git a/.github/workflows/tps-uniswap-0g.yml b/.github/workflows/tps-uniswap-0g.yml new file mode 100644 index 0000000..80025a3 --- /dev/null +++ b/.github/workflows/tps-uniswap-0g.yml @@ -0,0 +1,34 @@ +name: Signal Node - 0G - Uniswap + +on: + workflow_dispatch: + + pull_request: + types: + - opened + - synchronize + - reopened + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.23' + - name: Build Tool + run: | + make build + - name: Build Chain + run: | + git clone -b v0.4.0 https://github.com/0glabs/0g-chain.git + cd 0g-chain + sudo LINK_STATICALLY=true make build-release + sed -i '/$BINARY config broadcast-mode sync/a sed -i '\''s/timeout_commit = "5s"/timeout_commit = "1s"/'\'' ~/.0gchain/config/config.toml' localtestnet.sh + tail localtestnet.sh + ./localtestnet.sh &> chain.log & + while ! nc -z localhost 8546; do sleep 1; done + cd ../../evmchainbench + ./bin/evmchainbench run --faucet-private-key 58095A53EA065B7DC3065365B2A8F6797F26464381BB6A34F8337F010A63CB63 --sender-count 2 --tx-count 20000 --mempool 2500 -p uniswap