Skip to content

Commit 4e85667

Browse files
committed
Merge branch 'release/3.2.0.0.0-rc2' into feat/clarity-serialization-crate
2 parents ad702c4 + 13097c6 commit 4e85667

File tree

14 files changed

+1290
-70
lines changed

14 files changed

+1290
-70
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to the versioning scheme outlined in the [README.md](README.md).
77

8-
## Unreleased
8+
## [3.2.0.0.0]
99

1010
### Added
1111

1212
- Added `/v3/contracts/fast-call-read/:principal/:contract_name/:func_name` api endpoint. It allows to run read-only calls faster by disabling the cost and memory trackers. This endpoint requires authentication.
13+
- **SIP-031 consensus rules, activating in epoch 3.2 at block 907_740**
1314

1415
### Changed
1516

stacks-common/src/types/mod.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,23 @@ impl StacksEpochId {
549549
),
550550
}
551551
}
552+
553+
/// Whether or not this epoch is part of the SIP-031 schedule
554+
pub fn includes_sip_031(&self) -> bool {
555+
match self {
556+
StacksEpochId::Epoch10
557+
| StacksEpochId::Epoch20
558+
| StacksEpochId::Epoch2_05
559+
| StacksEpochId::Epoch21
560+
| StacksEpochId::Epoch22
561+
| StacksEpochId::Epoch23
562+
| StacksEpochId::Epoch24
563+
| StacksEpochId::Epoch25
564+
| StacksEpochId::Epoch30
565+
| StacksEpochId::Epoch31 => false,
566+
StacksEpochId::Epoch32 => true,
567+
}
568+
}
552569
}
553570

554571
impl std::fmt::Display for StacksEpochId {

0 commit comments

Comments
 (0)