-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
to add workflows for erc20 and uniswap on 0g
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |