Skip to content

Commit 67e6805

Browse files
authored
Merge pull request #6562 from Jiloc/feat/improve-consensus-test-api
feat: add macros for contract consensus tests
2 parents 7762d88 + d7cd95e commit 67e6805

9 files changed

+1550
-539
lines changed

clarity/src/vm/version.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ impl ClarityVersion {
2929
ClarityVersion::Clarity4
3030
}
3131

32+
pub const ALL: &'static [ClarityVersion] = &[
33+
ClarityVersion::Clarity1,
34+
ClarityVersion::Clarity2,
35+
ClarityVersion::Clarity3,
36+
ClarityVersion::Clarity4,
37+
];
38+
3239
pub fn default_for_epoch(epoch_id: StacksEpochId) -> ClarityVersion {
3340
match epoch_id {
3441
StacksEpochId::Epoch10 => {

stacks-common/src/types/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,13 @@ impl StacksEpochId {
447447
StacksEpochId::Epoch32
448448
}
449449

450+
pub const ALL_GTE_30: &'static [StacksEpochId] = &[
451+
StacksEpochId::Epoch30,
452+
StacksEpochId::Epoch31,
453+
StacksEpochId::Epoch32,
454+
StacksEpochId::Epoch33,
455+
];
456+
450457
/// In this epoch, how should the mempool perform garbage collection?
451458
pub fn mempool_garbage_behavior(&self) -> MempoolCollectionBehavior {
452459
match self {

0 commit comments

Comments
 (0)