Skip to content

Commit

Permalink
feat: update cosmwasm (#303)
Browse files Browse the repository at this point in the history
* feat: udpate cosmwasm

* feat: update build for cosmwasm

* feat: add note
  • Loading branch information
jcstein authored Jan 24, 2024
1 parent d8b3558 commit 75b7eee
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
2 changes: 2 additions & 0 deletions scripts/cosmwasm/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,7 @@ jq --argjson pubKey "$PUB_KEY" '.consensus["validators"]=[{"address": "'$ADDRESS
[ -f restart-wasmd.sh ] && rm restart-wasmd.sh
echo "DA_BLOCK_HEIGHT=$DA_BLOCK_HEIGHT" >> restart-wasmd.sh

echo "wasmd start --rollkit.aggregator true --rollkit.da_address=":26650" --rollkit.da_start_height \$DA_BLOCK_HEIGHT --rpc.laddr tcp://127.0.0.1:36657 --p2p.laddr \"0.0.0.0:36656\" --minimum-gas-prices="0.025stake"" >> restart-wasmd.sh

# start the chain
wasmd start --rollkit.aggregator true --rollkit.da_address=":26650" --rollkit.da_start_height $DA_BLOCK_HEIGHT --rpc.laddr tcp://127.0.0.1:36657 --p2p.laddr "0.0.0.0:36656" --minimum-gas-prices="0.025stake"
22 changes: 17 additions & 5 deletions tutorials/cosmwasm.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# 🗞️ CosmWasm rollup

::: warning
This tutorial is under construction. 🏗️
:::

CosmWasm is a smart contracting platform built for the Cosmos
ecosystem by making use of [WebAssembly](https://webassembly.org) (Wasm)
to build smart contracts for Cosmos-SDK. In this tutorial, we will be
Expand Down Expand Up @@ -127,9 +123,25 @@ Cosmos-SDK applications to connect to Celestia's data availability network.
git clone https://github.com/CosmWasm/wasmd.git
cd wasmd
git checkout tags/v0.50.0
go mod edit -replace github.com/cosmos/cosmos-sdk=github.com/rollkit/[email protected].9-no-fraud-proofs
go mod edit -replace github.com/cosmos/cosmos-sdk=github.com/rollkit/[email protected].19-no-fraud-proofs
go mod tidy -compat=1.17
go mod download
```

Now, comment out lines 902-904 in `app/app.go`:

```go
if err != nil {
panic(err)
}
```
This is a temporary fix until [CosmWasm/wasmd#1785](https://github.com/CosmWasm/wasmd/issues/1785)
is resolved.
And build the binary:
```bash
make install
```
Expand Down

0 comments on commit 75b7eee

Please sign in to comment.