Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajames committed Aug 31, 2023
0 parents commit ed7c689
Show file tree
Hide file tree
Showing 130 changed files with 13,772 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/validate_final_genesis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Validate genesis.json
on: # yamllint disable-line rule:truthy
pull_request:
paths:
- 'dydx-testnet-2/genesis.json'
push:
paths:
- 'dydx-testnet-2/genesis.json'
branches:
- main
- master

jobs:
dydx-testnet-2:
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
21 changes: 21 additions & 0 deletions .github/workflows/validate_gentx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Create and validate genesis for gentx
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- main
- master

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

RUN apk add --no-cache jq

ENV HOME /dydxprotocol
WORKDIR /workspace

ENTRYPOINT ["sh", "/workspace/validate.sh"]
11 changes: 11 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Proprietary License © 2023 dYdX Trading Inc.

dYdX Trading Inc. ("dYdX") hereby grants you the right to access, copy and use the code in this repository (the "Licensed Code") solely for purposes of evaluating the Licensed Code and evaluating interoperability of the Licensed Code with your products and services.

You agree not to (i) access, copy or use the Licensed Code for any purpose other than as expressly licensed above, (ii) provide, disclose or distribute the Licensed Code to any third party, or (iii) modify or creative derivative works of the Licensed Code. Any violation of these terms will automatically terminate your rights under these terms.

All copies of the Licensed Code are subject to these terms. You must conspicuously display these terms on each copy of the Licensed Code.

dYdX intends to make the Licensed Code available under an open source license in the near term. The terms of this license apply unless and until the Licensed Code is made available by dYdX under an open source license.

These terms do not grant you any right in any trademarks, service marks or logos of dYdX or its affiliates. TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED CODE IS PROVIDED "AS IS". dYdX HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE.
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
validate-dydx-testnet-2-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_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:
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_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
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# dYdX V4 Public Testnet
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/)
- [Testnet schedule](https://v4-teacher.vercel.app/general_overview/schedule)

## Communication
Please post any questions you have to the Slack channel: #v-dydx-public-testnet-discussion.

Binary file not shown.
Binary file not shown.
Loading

0 comments on commit ed7c689

Please sign in to comment.