Skip to content

Commit

Permalink
Start working on spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Oct 31, 2022
1 parent 2c42f87 commit 3f3e546
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions x/ccv/provider/keeper/keymap_api.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CONSTANTS
p0 = p0
p1 = p1
p2 = p2
SYMMETRY PIDSymmetry
INIT Init
NEXT Next
INVARIANT LeastCountInvariant

27 changes: 27 additions & 0 deletions x/ccv/provider/keeper/keymap_api.tla
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---- MODULE keymap_api ----

EXTENDS Integers, Naturals, FiniteSets, Sequences, TLC

Validators == 0..2

VARIABLES
consumerIndex,
consumerIndexMatured,
mappings,
valsets

Init ==
/\ consumerVscid = 1,
/\ consumerVscidMatured = 0,
/\ mappings = [],
/\ valsets = []

Next ==
\/ Map(providerKey, consumerKey)
\/ Increase(providerKey, consumerKey)
\/ Map(providerKey, consumerKey)


Inv ==

====

0 comments on commit 3f3e546

Please sign in to comment.