Skip to content

Commit

Permalink
Update text to testnet and add in docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Dusek committed Mar 11, 2024
1 parent b316439 commit 9fd21c3
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 21 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Docker Build & Push

on:
push:
branches:
- 'dev'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish to Docker Hub
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: true
tags: onomy/onex-dev:latest
38 changes: 19 additions & 19 deletions chain/onex-testnet-5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

## Detail

The `onex-mainnet-1` chain will be launched as a consumer chain in Onomy mainnet.
The `onex-testnet-1` chain will be launched as a consumer chain in Onomy testnet.

- Network information: https://github.com/onomyprotocol/validator/tree/main/testnet
- Chain ID: `onex-mainnet-1`
- Chain ID: `onex-testnet-1`
* Spawn time: `March 4th, 2024` (Will be updated soon)
* Genesis file (without CCV): https://raw.githubusercontent.com/onomyprotocol/validator/main/testnet/onex-mainnet-1/genesis-without-ccv.json
* Genesis file (without CCV): https://raw.githubusercontent.com/onomyprotocol/validator/main/testnet/onex-testnet-1/genesis-without-ccv.json
* Genesis with CCV: Available soon
- Current version: `v1.0.3-onex`
- Current version: `v1.0.0-dev`
* Binary:
* Version: [v1.0.3-onex](https://github.com/onomyprotocol/onex/releases/tag/v1.0.3-onex)
* SHA256: `e719ac86618953dee759e111c414cded126d54b8b8ae4f9f8b21015b06c1d91c`
* Version: [v1.0.0-dev](https://github.com/onomyprotocol/onex/releases/tag/v1.0.0-dev)
* SHA256: `b3164391a1f2121ee4765c06ae6ca05dddac2ea7`
* Onex GitHub repository: https://github.com/onomyprotocol/onex
- Peers: ``
- Endpoints:
Expand All @@ -22,21 +22,21 @@ The `onex-mainnet-1` chain will be launched as a consumer chain in Onomy mainnet
- Block Explorer: ``

## IBC detail
| | onex-mainnet-1 | onomy-mainnet-1 |
| | onex-testnet-1 | onomy-testnet-1 |
|-------------|---------------------|-----------------|
|Client |`Available soon`| `Available soon`|
|Connections | `Available soon` | `Available soon` |
|Channels | `transfer`: `Available soon` <br/><br/> `consumer`: `Available soon` | `transfer`: `Available soon` <br/><br/> `consumer`: `Available soon` |

## Setup Instruction

### 1. Joining Onomy provider chain (onomy-mainnet-1) as a validator
First, validators need to run the Onomy provider chain. To set up the node and join the network, please follow the instructions in [mainnet documentation](https://github.com/onomyprotocol/validator/blob/main/mainnet/readme.md).
### 1. Joining Onomy provider chain (onomy-testnet-1) as a validator
First, validators need to run the Onomy provider chain. To set up the node and join the network, please follow the instructions in [testnet documentation](https://github.com/onomyprotocol/validator/blob/main/testnet/readme.md).

Here is the detail of the Onomy provider chain:
- Chain ID: `onomy-mainnet-1`
- Chain ID: `onomy-testnet-1`
- Version: [v1.1.4](https://github.com/onomyprotocol/onomy/releases/tag/v1.1.4)
- Genesis: https://raw.githubusercontent.com/onomyprotocol/validator/main/mainnet/genesis/genesis-mainnet-1.json
- Genesis: https://raw.githubusercontent.com/onomyprotocol/validator/main/testnet/genesis/genesis-testnet-1.json
- Seeds:
```
[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:52756
Expand All @@ -48,24 +48,24 @@ Here is the detail of the Onomy provider chain:


### 4. Setup Onex consumer chain
The validators also need to set up the `onex-mainnet-1` consumer chain. Here are the commands to install the binary and set up the new chain.
The validators also need to set up the `onex-testnet-1` consumer chain. Here are the commands to install the binary and set up the new chain.
```bash
# detail of setup will appear here
cd $HOME/go/bin
wget -O onexd https://github.com/onomyprotocol/onex/releases/download/v1.0.3-onex/onexd && chmod +x onexd
onexd version # v1.0.3-onex
onexd init <moniker> --chain-id onex-mainnet-1
onexd init <moniker> --chain-id onex-testnet-1
cd $HOME/.onex/
wget -O config/genesis.json https://raw.githubusercontent.com/onomyprotocol/validator/main/testnet/onex-mainnet-1/genesis-without-ccv.json
wget -O config/genesis.json https://raw.githubusercontent.com/onomyprotocol/validator/main/testnet/onex-testnet-1/genesis-without-ccv.json
```

The validators **MUST NOT** run the node but wait until the new genesis is published on the Onomy repository, which will be detailed in step **[5. Vote the consumer-addition proposal](#5-vote-the-consumer-addition-proposal)**.

### 5. Vote on the consumer-addition proposal
The proposal to launch `onex-mainnet-1` as a consumer chain will be submitted on the Onomy provider mainnet and the validators should participate in voting for the proposal. After the proposal is passed, the validators should wait until the `spawn_time` and replace the old genesis file with the new `genesis-with-ccv.json` file from the Onomy repository.
The proposal to launch `onex-testnet-1` as a consumer chain will be submitted on the Onomy provider testnet and the validators should participate in voting for the proposal. After the proposal is passed, the validators should wait until the `spawn_time` and replace the old genesis file with the new `genesis-with-ccv.json` file from the Onomy repository.

```bash
wget -O /$HOME/.onex/config/genesis.json https://raw.githubusercontent.com/onomyprotocol/validator/main/testnet/onex-mainnet-1/genesis.json
wget -O /$HOME/.onex/config/genesis.json https://raw.githubusercontent.com/onomyprotocol/validator/main/testnet/onex-testnet-1/genesis.json
```

### 6. Wait for genesis and run
Expand All @@ -79,9 +79,9 @@ onexd start
## Launch Stages
|Step|When?|What do you need to do?|What is happening?|
|----|--------------------------------------------------|----------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|
|1 |ASAP |Join the Onomy mainnet `onomy-mainnet-1` as a full node and sync to the tip of the chain.|Validator machines getting caught up on existing Composable chain's history |
|1 |ASAP |Join the Onomy testnet `onomy-testnet-1` as a full node and sync to the tip of the chain.|Validator machines getting caught up on existing Composable chain's history |
|2 | Consumer Addition proposal on provider chain | [PROVIDER] Optional: Vote for the consumer-addition proposal. | The proposals that provide new details for the launch. |
|3 |The proposals passed |Nothing | The proposals passed, `spawn_time` is set. After `spawn_time` is reached, the `ccv.json` file containing `ccv` state will be provided from the provider chain.
|4 |`spawn_time` reached |The `genesis-with-ccv.json` file will be provided in the testnets repo. Replace the old `genesis.json` in the `$HOME/.onex/config` directory with the new `genesis-with-ccv.json`. The new `genesis-with-ccv.json` file with ccv data will be published in [onomyprotocol/valiadtor](https://github.com/onomyprotocol/validator/tree/main/testnet/onex-mainnet-1) |
|5 |Genesis reached | Start your node with the consumer binary | onex-mainnet-1 chain will start and become a consumer chain. |
|4 |`spawn_time` reached |The `genesis-with-ccv.json` file will be provided in the testnets repo. Replace the old `genesis.json` in the `$HOME/.onex/config` directory with the new `genesis-with-ccv.json`. The new `genesis-with-ccv.json` file with ccv data will be published in [onomyprotocol/valiadtor](https://github.com/onomyprotocol/validator/tree/main/testnet/onex-testnet-1) |
|5 |Genesis reached | Start your node with the consumer binary | onex-testnet-1 chain will start and become a consumer chain. |
|6 |3 blocks after upgrade height |Celebrate! :tada: 🥂 |<chain> blocks are now produced by the provider validator set|
2 changes: 1 addition & 1 deletion chain/onex-testnet-5/genesis-without-ccv-accounts.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"genesis_time": "2024-03-13T16:00:00.000Z",
"chain_id": "onex-mainnet-1",
"chain_id": "onex-testnet-1",
"initial_height": "1",
"consensus_params": {
"block": {
Expand Down
2 changes: 1 addition & 1 deletion chain/onex-testnet-5/proposal.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Adding Onex as a new consumer chain",
"description": "# Launching Onex as a consumer chain\r\n\r\nThis is the proposal to launch the Onex consumer chain, \"onex-mainnet-1\".\r\n\r\nPlease visit the [onomyprotocol/onex](https://github.com/onomyprotocol/onex) repo for additional details.",
"chain_id": "onex-mainnet-1",
"chain_id": "onex-testnet-1",
"initial_height": {
"revision_number": 0,
"revision_height": 1
Expand Down

0 comments on commit 9fd21c3

Please sign in to comment.