Skip to content

Commit

Permalink
to add workflows for erc20 and uniswap on 0g
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanz0g committed Oct 25, 2024
1 parent e9aeeb8 commit 44f6864
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/tps-erc20-0g.yml
Original file line number Diff line number Diff line change
@@ -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
34 changes: 34 additions & 0 deletions .github/workflows/tps-uniswap-0g.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 44f6864

Please sign in to comment.