Skip to content

Commit

Permalink
Improve chain identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorenesduarte committed Feb 10, 2021
1 parent 7e24841 commit 5d6bf08
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion modules/tests/support/model_based/IBC.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CONSTANTS
ChainIds = {"chain-A", "chain-B"}
ChainIds = {"chainA-0", "chainB-0"}
MaxClientsPerChain = 1
MaxClientHeight = 2

Expand Down
2 changes: 1 addition & 1 deletion modules/tests/support/model_based/IBCTests.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CONSTANTS
ChainIds = {"chain-A", "chain-B"}
ChainIds = {"chainA-0", "chainB-0"}
MaxClientsPerChain = 1
MaxClientHeight = 2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,43 +5,43 @@
},
"actionOutcome": "None",
"chains": {
"chain-A": {
"chainA-0": {
"height": 0
},
"chain-B": {
"chainB-0": {
"height": 0
}
}
},
{
"action": {
"chainId": "chain-B",
"chainId": "chainB-0",
"clientHeight": 1,
"type": "ICS02CreateClient"
},
"actionOutcome": "ICS02CreateOK",
"chains": {
"chain-A": {
"chainA-0": {
"height": 0
},
"chain-B": {
"chainB-0": {
"height": 1
}
}
},
{
"action": {
"chainId": "chain-B",
"chainId": "chainB-0",
"clientHeight": 1,
"clientId": 0,
"type": "ICS02UpdateClient"
},
"actionOutcome": "ICS02HeaderVerificationFailure",
"chains": {
"chain-A": {
"chainA-0": {
"height": 0
},
"chain-B": {
"chainB-0": {
"height": 1
}
}
Expand Down
40 changes: 20 additions & 20 deletions modules/tests/support/model_based/tests/ICS02UpdateOKTest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,109 +5,109 @@
},
"actionOutcome": "None",
"chains": {
"chain-A": {
"chainA-0": {
"height": 0
},
"chain-B": {
"chainB-0": {
"height": 0
}
}
},
{
"action": {
"chainId": "chain-B",
"chainId": "chainB-0",
"clientHeight": 1,
"type": "ICS02CreateClient"
},
"actionOutcome": "ICS02CreateOK",
"chains": {
"chain-A": {
"chainA-0": {
"height": 0
},
"chain-B": {
"chainB-0": {
"height": 1
}
}
},
{
"action": {
"chainId": "chain-B",
"chainId": "chainB-0",
"clientHeight": 2,
"clientId": 0,
"type": "ICS02UpdateClient"
},
"actionOutcome": "ICS02UpdateOK",
"chains": {
"chain-A": {
"chainA-0": {
"height": 0
},
"chain-B": {
"chainB-0": {
"height": 2
}
}
},
{
"action": {
"chainId": "chain-A",
"chainId": "chainA-0",
"clientHeight": 1,
"type": "ICS02CreateClient"
},
"actionOutcome": "ICS02CreateOK",
"chains": {
"chain-A": {
"chainA-0": {
"height": 1
},
"chain-B": {
"chainB-0": {
"height": 2
}
}
},
{
"action": {
"chainId": "chain-A",
"chainId": "chainA-0",
"clientHeight": 2,
"clientId": 0,
"type": "ICS02UpdateClient"
},
"actionOutcome": "ICS02UpdateOK",
"chains": {
"chain-A": {
"chainA-0": {
"height": 2
},
"chain-B": {
"chainB-0": {
"height": 2
}
}
},
{
"action": {
"chainId": "chain-A",
"chainId": "chainA-0",
"clientHeight": 1,
"type": "ICS02CreateClient"
},
"actionOutcome": "ICS02CreateOK",
"chains": {
"chain-A": {
"chainA-0": {
"height": 3
},
"chain-B": {
"chainB-0": {
"height": 2
}
}
},
{
"action": {
"chainId": "chain-A",
"chainId": "chainA-0",
"clientHeight": 2,
"clientId": 1,
"type": "ICS02UpdateClient"
},
"actionOutcome": "ICS02UpdateOK",
"chains": {
"chain-A": {
"chainA-0": {
"height": 4
},
"chain-B": {
"chainB-0": {
"height": 2
}
}
Expand Down

0 comments on commit 5d6bf08

Please sign in to comment.