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

feat: update cosmwasm #303

Merged
merged 4 commits into from
Jan 24, 2024
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 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

Manav-Aggarwal marked this conversation as resolved.
Show resolved Hide resolved
# 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`:
jcstein marked this conversation as resolved.
Show resolved Hide resolved

```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
Loading