-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into likecoin/update/4.0.2
- Loading branch information
Showing
39 changed files
with
221 additions
and
73 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
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
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
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
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
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
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 @@ | ||
# dYdX | ||
|
||
| | | | ||
|---|---| | ||
|Version|`v1.0.0`| | ||
|Binary|`dydxprotocold`| | ||
|Directory|`.dydxprotocol`| | ||
|ENV namespace|`DYDXPROTOCOLD`| | ||
|Repository|`https://github.com/dydxprotocol/v4-chain`| | ||
|Image|`ghcr.io/akash-network/cosmos-omnibus:v0.3.51-dydx-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`| |
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,29 @@ | ||
version: '3.4' | ||
|
||
services: | ||
node_1: | ||
build: | ||
context: ../ | ||
args: | ||
PROJECT: dydx | ||
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 | ||
DEBIAN_VERSION: 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 |
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,56 @@ | ||
--- | ||
version: "2.0" | ||
|
||
services: | ||
node: | ||
image: ghcr.io/akash-network/cosmos-omnibus:v0.3.51-dydx-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 |
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,16 @@ | ||
version: '3.4' | ||
|
||
services: | ||
node_1: | ||
image: ghcr.io/akash-network/cosmos-omnibus:v0.3.51-dydx-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 |
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
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
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
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
Oops, something went wrong.