Skip to content

Commit

Permalink
modifying contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciejo committed Jan 30, 2024
1 parent 3f98e87 commit aaa24e8
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions hyperspace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,36 @@ A template configuration file (which is needed to run the CLI) can be found

### Configuration

1. Compile the WASM file using `cargo +nightly-2023-02-07 build -p icsxx-ethereum-cw --release --target wasm32-unknown-unknown --lib --no-default-features --features no_beacon` (install the toolchain if needed).
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`:

```
Expand Down Expand Up @@ -253,7 +279,13 @@ finality_protocol = "Grandpa"

4. Upload the contract
```
hyperspace upload-wasm --config picasso-local.toml --wasm-path icsxx_ethereum_cw.wasm
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)
Expand Down

0 comments on commit aaa24e8

Please sign in to comment.