cw-ibc-example icon indicating copy to clipboard operation
cw-ibc-example copied to clipboard

Explore using Apalache to verify contract

Open 0xekez opened this issue 1 year ago • 0 comments

Informal has a CosmWasm Apalache example here: https://github.com/informalsystems/atomkraft/blob/dev/examples/cosmwasm/counter/models/counter.tla

We should explore what we can formally verify about this contract using Apalache. This learning will be very useful for our other IBC work. Some ideas for invariants for this contract:

  1. Counterparty count should be the same as the number of times Increment {} has been called.
  2. Closing a channel should reset the count to zero.

It might be good to keep things simple like this for our first try.

0xekez avatar Mar 21 '23 18:03 0xekez