Skip to content

Commit

Permalink
Add dydxprotocol
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesJUDITH committed Oct 27, 2023
1 parent 1dc2629 commit d173ab3
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
version: v4.8.0
- project: dig
version: v3.3.1
- project: dydxprotocol
version: v1.0.0
- project: emoney
version: v1.2.0
- project: empowerchain
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ tagged with the form `$COSMOS_OMNIBUS_VERSION-$PROJECT-$PROJECT_VERSION`.
|[defund](https://github.com/defund-labs/defund)|`v0.1.0-alpha`|`ghcr.io/akash-network/cosmos-omnibus:v0.3.51-defund-v0.1.0-alpha`|[Example](./defund)|
|[desmos](https://github.com/desmos-labs/desmos)|`v4.8.0`|`ghcr.io/akash-network/cosmos-omnibus:v0.3.51-desmos-v4.8.0`|[Example](./desmos)|
|[dig](https://github.com/notional-labs/dig)|`v3.3.1`|`ghcr.io/akash-network/cosmos-omnibus:v0.3.51-dig-v3.3.1`|[Example](./dig)|
|[dydxprotocol](https://github.com/dydxprotocol/v4-chain)|`v1.0.0`|`ghcr.io/akash-network/cosmos-omnibus:v0.3.51-dydxprotocol-1.0.0`|[Example](./dydxprotocol)|
|[emoney](https://github.com/e-money/em-ledger)|`v1.2.0`|`ghcr.io/akash-network/cosmos-omnibus:v0.3.51-emoney-v1.2.0`|[Example](./emoney)|
|[empowerchain](https://github.com/empowerchain/empowerchain)|`v1.0.0`|`ghcr.io/akash-network/cosmos-omnibus:v0.3.51-empowerchain-v1.0.0`|[Example](./empowerchain)|
|[evmos](https://github.com/evmos/evmos)|`v14.1.0`|`ghcr.io/akash-network/cosmos-omnibus:v0.3.51-evmos-v14.1.0`|[Example](./evmos)|
Expand Down
34 changes: 34 additions & 0 deletions dydxprotocol/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Cosmos Hub

| | |
|---|---|
|Version|`v1.0.0`|
|Binary|`dydxprotocold`|
|Directory|`.dydxprotocol`|
|ENV namespace|`DYDXPROTOCOL`|
|Repository|`https://github.com/dydxprotocol/v4-chain`|
|Image|`ghcr.io/akash-network/cosmos-omnibus:v0.3.51-dydxprotocol-v1.0.0`|

## Examples

- Run on Akash with the [example deploy.yml](./deploy.yml)
- Run locally using the [example docker-compose.yml](./docker-compose.yml)

## Chain information

The [Cosmos Chain Registry](https://github.com/cosmos/chain-registry) publishes up to date chain info for DYDX protocol.

|Variable|Value|
|---|---|
|`CHAIN_JSON`|`https://raw.githubusercontent.com/cosmos/chain-registry/master/dydx/chain.json`|

## Polkachu Chain Services

[Polkachu's Chain Services](https://www.polkachu.com/) make bootstrapping a node extremely easy. They provide live peers, statesync and pruned snapshots.

Note you should choose between statesync and snapshot bootstrapping, snapshot will take precedence.

|Variable|Value|
|---|---|
|`P2P_POLKACHU`|`1`|
|`STATESYNC_POLKACHU`|`1`|
28 changes: 28 additions & 0 deletions dydxprotocol/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3.4'

services:
node_1:
build:
context: ../
args:
PROJECT: dydxprotocol
PROJECT_BIN: dydxprotocold
PROJECT_DIR: .dydxprotocol
VERSION: protocol/v1.0.0
REPOSITORY: https://github.com/dydxprotocol/v4-chain
NAMESPACE: DYDXPROTOCOLD
BUILD_CMD: make install -C protocol
GOLANG_VERSION: 1.21-bullseye
ports:
- '26656:26656'
- '26657:26657'
- '1317:1317'
environment:
- MONIKER=node_1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/master/dydx/chain.json
- P2P_POLKACHU=1
- STATESYNC_POLKACHU=1
env_file:
- ../.env
volumes:
- ./node-data:/root/.dydxprotocol
56 changes: 56 additions & 0 deletions dydxprotocol/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
version: "2.0"

services:
node:
image: ghcr.io/akash-network/cosmos-omnibus:v0.3.51-dydxprotocol-v1.0.0
env:
- MONIKER=node_1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/master/dydx/chain.json
- P2P_POLKACHU=1
- STATESYNC_POLKACHU=1
expose:
- port: 26657
as: 80
to:
- global: true
- port: 26656
to:
- global: true
# params:
# storage:
# data:
# mount: /root/.dydxprotocol

profiles:
compute:
node:
resources:
cpu:
units: 4
memory:
size: 16Gi
storage:
size: 100Gi
# - size: 100Mi
# - name: data
# size: 400Gi
# attributes:
# persistent: true
placement:
dcloud:
attributes:
host: akash
signedBy:
anyOf:
- akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63
pricing:
node:
denom: uakt
amount: 1000

deployment:
node:
dcloud:
profile: node
count: 1
16 changes: 16 additions & 0 deletions dydxprotocol/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3.4'

services:
node_1:
image: ghcr.io/akash-network/cosmos-omnibus:v0.3.51-dydxprotocol-v1.0.0
ports:
- '26656:26656'
- '26657:26657'
- '1317:1317'
environment:
- MONIKER=node_1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/master/dydx/chain.json
- P2P_POLKACHU=1
- STATESYNC_POLKACHU=1
volumes:
- ./node-data:/root/.dydxprotocol

0 comments on commit d173ab3

Please sign in to comment.