Skip to content

Commit

Permalink
ready to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciejo committed Feb 5, 2024
1 parent 0951dac commit 28f0c39
Showing 1 changed file with 104 additions and 0 deletions.
104 changes: 104 additions & 0 deletions hyperspace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,26 @@ these chunks are then submitted as individual transactions.

### How to build Hyperspace

In order to deploy a relayer, there are some things to install first:

1. Install [go](https://go.dev/doc/install)

2. Install [rust](https://rustup.rs/)

3. Install Protobuf -->

```
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v24.2/protoc-24.2-linux-x86_64.zip && \
unzip protoc-24.2-linux-x86_64.zip -d /usr/local/protoc && \
export PATH=$PATH:/usr/local/protoc/bin
```

4. Install clang, solc, rocksdb (this can be installed through apt)

Then, run:

```
cd hyperspace/
make build-release-hyperspace
```

Expand Down Expand Up @@ -185,6 +204,91 @@ A template configuration file (which is needed to run the CLI) can be found
between both chains.
The config file must have a valid client and connection id.

### Configuration

1. Compile the WASM file using `cargo +nightly-2023-02-07 build -p ics10-grandpa-cw --release --target wasm32-unknown-unknown --lib --no-default-features` (install the toolchain if needed).

2. How to create a [`gov`](https://www.youtube.com/watch?v=leFIbW9e2zY) proposal

- Generate draft gov proposal
```
centaurid tx gov draft-proposal
```

- submit gov proposal
```
# centaurid tx gov submit-proposal /home/ubuntu/draft_proposal.json --from validator --fees=300ppica
```

- list governance proposals
```
# centaurid q gov proposals
```

- vote "yes" for gov proposal (`id=3`)

```
# centaurid tx gov vote 3 yes --from validator --fees=300ppica
```

- check votes for gov proposal (`id=3`)
```
# centaurid q gov votes 3
```

3. You will need two config files in order to start the relayer. In the following example you will have a config file for `centauri` and for `picasso`:

```
type = "cosmos"
name = "centauri"
rpc_url = "http://127.0.0.1:26657/"
grpc_url = "http://127.0.0.1:9090/"
websocket_url = "ws://127.0.0.1:26657/websocket"
chain_id = "banksy-testnet-4"
client_id = "07-tendermint-0"
connection_id = "connection-2"
account_prefix = "layer"
fee_denom = "ppica"
fee_amount = "4000"
gas_limit = 9223372036854775806
store_prefix = "ibc"
max_tx_size = 200000
wasm_code_id = "here_goes_the_wasm_code_id"
channel_whitelist = [["channel-2", "transfer"]]
mnemonic = "mnemonic phrase example ....."
skip_optional_client_updates = true
max_packets_to_process = 200
```

```
chain_id = "picasso_kusama"
type = "picasso_kusama"
name = "picasso"
para_id = 2087
parachain_rpc_url = "ws://127.0.0.1:8833"
relay_chain_rpc_url = "ws://127.0.0.1:8834"
client_id = "10-grandpa-28"
connection_id = "connection-23"
channel_whitelist = [["channel-15", "transfer"]]
commitment_prefix = "0x6962632f"
private_key = "here goes the private key"
ss58_version = 49
key_type = "sr25519"
finality_protocol = "Grandpa"
```

4. Upload the contract
```
hyperspace upload-wasm --config picasso-local.toml --wasm-path ics10-grandpa-cw
```

or

```
centaurid tx 08-wasm push-wasm ics10-grandpa-cw --keyring-backend test --gas auto --fees 1000016pica -y --from mykey
```

5. Build the [`connection`](./contract.toml)

### Metrics

Expand Down

0 comments on commit 28f0c39

Please sign in to comment.