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

Explore using Apalache to verify contract #4

Open
0xekez opened this issue Mar 21, 2023 · 0 comments
Open

Explore using Apalache to verify contract #4

0xekez opened this issue Mar 21, 2023 · 0 comments

Comments

@0xekez
Copy link
Owner

0xekez commented Mar 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant