Skip to content

Commit

Permalink
chore: creation of protocol V2 (#2104)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumExplorer authored Sep 4, 2024
1 parent 0294c90 commit 76cfbd9
Show file tree
Hide file tree
Showing 2 changed files with 1,255 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/rs-platform-version/src/version/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod protocol_version;
use crate::version::v1::PROTOCOL_VERSION_1;
use crate::version::v2::PROTOCOL_VERSION_2;
pub use protocol_version::*;

pub mod contracts;
Expand All @@ -12,8 +12,9 @@ mod limits;
pub mod mocks;
pub mod patches;
pub mod v1;
pub mod v2;

pub type ProtocolVersion = u32;

pub const LATEST_VERSION: ProtocolVersion = PROTOCOL_VERSION_1;
pub const LATEST_VERSION: ProtocolVersion = PROTOCOL_VERSION_2;
pub const INITIAL_PROTOCOL_VERSION: ProtocolVersion = 1;
Loading

0 comments on commit 76cfbd9

Please sign in to comment.