Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add crescent blockchain #574

Merged
merged 1 commit into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
version: v11.5.0
- project: cosmoshub
version: v10.0.2
- project: crescent
version: v4.2.0
- project: cronos
version: v1.0.4
- project: cryptoorgchain
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ tagged with the form `$COSMOS_OMNIBUS_VERSION-$PROJECT-$PROJECT_VERSION`.
|[chihuahua](https://github.com/ChihuahuaChain/chihuahua)|`v4.2.3`|`ghcr.io/akash-network/cosmos-omnibus:v0.3.39-chihuahua-v4.2.3`|[Example](./chihuahua)|
|[comdex](https://github.com/comdex-official/comdex)|`v11.5.0`|`ghcr.io/akash-network/cosmos-omnibus:v0.3.39-comdex-v11.5.0`|[Example](./comdex)|
|[cosmoshub](https://github.com/cosmos/gaia)|`v10.0.2`|`ghcr.io/akash-network/cosmos-omnibus:v0.3.39-cosmoshub-v10.0.2`|[Example](./cosmoshub)|
|[crescent](https://github.com/crescent-network/crescent)|`v4.2.0`|`ghcr.io/akash-network/cosmos-omnibus:v0.3.39-crescent-v4.2.0`|[Example](./crescent)|
|[cronos](https://github.com/crypto-org-chain/cronos)|`v1.0.4`|`ghcr.io/akash-network/cosmos-omnibus:v0.3.39-cronos-v1.0.4`|[Example](./cronos)|
|[cryptoorgchain](https://github.com/crypto-org-chain/chain-main)|`v4.2.6`|`ghcr.io/akash-network/cosmos-omnibus:v0.3.39-cryptoorgchain-v4.2.6`|[Example](./cryptoorgchain)|
|[decentr](https://github.com/Decentr-net/decentr)|`v1.6.2`|`ghcr.io/akash-network/cosmos-omnibus:v0.3.39-decentr-v1.6.2`|[Example](./decentr)|
Expand Down
34 changes: 34 additions & 0 deletions crescent/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Crescent

| | |
|---|---|
|Version|`v4.2.0`|
|Binary|`crescentd`|
|Directory|`.crescent`|
|ENV namespace|`CRESCENTD`|
|Repository|`https://github.com/crescent-network/crescent`|
|Image|`ghcr.io/akash-network/cosmos-omnibus:v0.3.39-crescent-v4.2.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 Crescent.

|Variable|Value|
|---|---|
|`CHAIN_JSON`|`https://raw.githubusercontent.com/cosmos/chain-registry/master/crescent/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`|
27 changes: 27 additions & 0 deletions crescent/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: '3.4'

services:
node_1:
build:
context: ../
args:
PROJECT: crescent
PROJECT_BIN: crescentd
VERSION: v4.2.0
REPOSITORY: https://github.com/crescent-network/crescent
NAMESPACE: CRESCENTD
PROJECT_DIR: .crescent
GOLANG_VERSION: 1.19-buster
ports:
- '26656:26656'
- '26657:26657'
- '1317:1317'
environment:
- MONIKER=node_1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/master/crescent/chain.json
- P2P_POLKACHU=1
- STATESYNC_POLKACHU=1
env_file:
- ../.env
volumes:
- ./node-data:/root/.crescent
56 changes: 56 additions & 0 deletions crescent/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.39-crescent-v4.2.0
env:
- MONIKER=my-moniker-1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/master/crescent/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/.crescent

profiles:
compute:
node:
resources:
cpu:
units: 4
memory:
size: 8Gi
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 crescent/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.39-crescent-v4.2.0
ports:
- '26656:26656'
- '26657:26657'
- '1317:1317'
environment:
- MONIKER=node_1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/master/crescent/chain.json
- P2P_POLKACHU=1
- STATESYNC_POLKACHU=1
volumes:
- ./node-data:/root/.crescent