Skip to content

Commit

Permalink
Add dydx-testnet-3 (#3)
Browse files Browse the repository at this point in the history
* Add dydx-testnet-3

* update github workflows

* Update README
  • Loading branch information
jiajames authored Sep 18, 2023
1 parent 6e5d9bb commit 9a7523b
Show file tree
Hide file tree
Showing 74 changed files with 9,345 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/validate_final_genesis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ name: Validate genesis.json
on: # yamllint disable-line rule:truthy
pull_request:
paths:
- 'dydx-testnet-2/genesis.json'
- 'dydx-testnet-3/genesis.json'
push:
paths:
- 'dydx-testnet-2/genesis.json'
- 'dydx-testnet-3/genesis.json'
branches:
- main
- master

jobs:
dydx-testnet-2:
dydx-testnet-3:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Validate final genesis file
run: make validate-dydx-testnet-2-final-genesis
run: make validate-dydx-testnet-3-final-genesis
6 changes: 3 additions & 3 deletions .github/workflows/validate_gentx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on: # yamllint disable-line rule:truthy
- master

jobs:
dydx-testnet-2:
dydx-testnet-3:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Validate genesis for gentx
run: make validate-dydx-testnet-2-gentx
run: make validate-dydx-testnet-3-gentx
- uses: actions/upload-artifact@v3
with:
name: genesis.new.json
path: dydx-testnet-2/genesis.new.json
path: dydx-testnet-3/genesis.new.json
if-no-files-found: error
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.18

RUN apk add --no-cache jq
RUN apk add --no-cache jq curl

ENV HOME /dydxprotocol
WORKDIR /workspace
Expand Down
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
validate-dydx-testnet-2-gentx:
validate-dydx-testnet-3-gentx:
docker build --platform linux/amd64 --tag public-testnet-validate $(CURDIR)
docker run --platform linux/amd64 \
-e VALIDATE_GENESIS_DIR_PATH=./dydx-testnet-2 \
-e VALIDATE_GENESIS_TAR_PATH=./dydx-testnet-2/binaries/v0.1.4/dydxprotocold-v0.1.4-linux-amd64.tar.gz \
-e VALIDATE_GENESIS_DIR_PATH=./dydx-testnet-3 \
-e VALIDATE_GENESIS_TAR_URL='https://github.com/dydxprotocol/v4-chain/releases/download/protocol%2Fv0.2.1/dydxprotocold-v0.2.1-linux-amd64.tar.gz' \
-e VALIDATE_GENESIS_STAKE_TOKEN=dv4tnt \
-e GENESIS_FILE_NAME=pregenesis.json \
-e ADD_GENTXS=true \
-v $(CURDIR):/workspace \
public-testnet-validate

validate-dydx-testnet-2-final-genesis:
validate-dydx-testnet-3-final-genesis:
docker build --platform linux/amd64 --tag public-testnet-validate $(CURDIR)
docker run --platform linux/amd64 \
-e VALIDATE_GENESIS_DIR_PATH=./dydx-testnet-2 \
-e VALIDATE_GENESIS_TAR_PATH=./dydx-testnet-2/binaries/v0.1.4/dydxprotocold-v0.1.4-linux-amd64.tar.gz \
-e VALIDATE_GENESIS_DIR_PATH=./dydx-testnet-3 \
-e VALIDATE_GENESIS_TAR_URL='https://github.com/dydxprotocol/v4-chain/releases/download/protocol%2Fv0.2.1/dydxprotocold-v0.2.1-linux-amd64.tar.gz' \
-e VALIDATE_GENESIS_STAKE_TOKEN=dv4tnt \
-e GENESIS_FILE_NAME=genesis.json \
-e ADD_GENTXS=false \
-v $(CURDIR):/workspace \
public-testnet-validate

.PHONY: validate-dydx-testnet-2-gentx validate-dydx-testnet-2-final-genesis
.PHONY: validate-dydx-testnet-3-gentx validate-dydx-testnet-3-final-genesis
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# dYdX V4 Public Testnet
We'll be using this repo for coordinating the genesis process for testnets.
Welcome to the public testnet for dYdX V4! We'll be using this repo for distributing binaries, coordinating genesis, etc.

## Useful Links
- [Testnet documentations](https://v4-teacher.vercel.app/)
Expand Down
Loading

0 comments on commit 9a7523b

Please sign in to comment.