-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: PSS enable per-consumer chain commission (#1657)
* add draft commission * implement consumer commission draft * formatting * add msg handling * improve UT * nits * Update x/ccv/provider/keeper/keeper.go Co-authored-by: insumity <[email protected]> * Update proto/interchain_security/ccv/provider/v1/tx.proto Co-authored-by: Marius Poke <[email protected]> * optimize keys * Update x/ccv/provider/keeper/keeper.go Co-authored-by: insumity <[email protected]> * address comments * address comments * remove unnecessary check * Revert "remove unnecessary check" This reverts commit 2951e9b. * fix minor bug in StopConsumerChain --------- Co-authored-by: insumity <[email protected]> Co-authored-by: Marius Poke <[email protected]>
- Loading branch information
1 parent
7497fc0
commit c689111
Showing
10 changed files
with
6 additions
and
181 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,6 @@ | ||
#!/bin/bash | ||
|
||
<<<<<<< HEAD | ||
# to stop on any errors | ||
set -e | ||
|
||
quint test ccv_model.qnt | ||
quint test ccv_test.qnt | ||
quint run --invariant "all{ValidatorUpdatesArePropagatedInv,ValidatorSetHasExistedInv,SameVscPacketsInv,MatureOnTimeInv,EventuallyMatureOnProviderInv}" ccv_model.qnt --max-steps 200 --max-samples 200 | ||
quint run --invariant "all{ValidatorUpdatesArePropagatedKeyAssignmentInv,ValidatorSetHasExistedKeyAssignmentInv,SameVscPacketsKeyAssignmentInv,MatureOnTimeInv,EventuallyMatureOnProviderInv,KeyAssignmentRulesInv}" ccv_model.qnt --step stepKeyAssignment --max-steps 200 --max-samples 200 | ||
|
||
|
||
# do not stop on errors anymore, so we can give better output if we error | ||
set +e | ||
|
||
run_invariant() { | ||
local invariant=$1 | ||
local step=$2 | ||
local match=$3 | ||
|
||
if [[ -z "$step" ]]; then | ||
quint run --invariant $invariant ccv_model.qnt | grep -q $match | ||
else | ||
quint run --invariant $invariant --step $step ccv_model.qnt | grep -q $match | ||
fi | ||
|
||
if [[ $? -eq 0 ]]; then | ||
echo "sanity check $invariant ok" | ||
else | ||
echo "sanity check $invariant not ok" | ||
exit 1 | ||
fi | ||
} | ||
|
||
run_invariant "CanRunConsumer" "" '[violation]' | ||
run_invariant "CanStopConsumer" "" '[violation]' | ||
run_invariant "CanTimeoutConsumer" "" '[violation]' | ||
run_invariant "CanSendVscPackets" "" '[violation]' | ||
run_invariant "CanSendVscMaturedPackets" "" '[violation]' | ||
run_invariant "CanAssignConsumerKey" "stepKeyAssignment" '[violation]' | ||
run_invariant "CanHaveConsumerAddresses" "stepKeyAssignment" '[violation]' | ||
run_invariant "CanReceiveMaturations" "stepKeyAssignment" '[violation]' | ||
======= | ||
quint test ccv_model.qnt | ||
quint test ccv_test.qnt | ||
quint run --invariant "all{ValidatorUpdatesArePropagatedInv,ValidatorSetHasExistedInv,SameVscPacketsInv,MatureOnTimeInv,EventuallyMatureOnProviderInv}" ccv_model.qnt --max-steps 200 --max-samples 200 | ||
quint run --invariant "all{ValidatorUpdatesArePropagatedKeyAssignmentInv,ValidatorSetHasExistedKeyAssignmentInv,SameVscPacketsKeyAssignmentInv,MatureOnTimeInv,EventuallyMatureOnProviderInv,KeyAssignmentRulesInv}" ccv_model.qnt --step stepKeyAssignment --max-steps 200 --max-samples 200 | ||
>>>>>>> 6e075652 (test: MBT: Add partial set security to model (feature branch version) (#1627)) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters