From 4ee394de9c7d38dcc2507a14ec2d69a4c5387547 Mon Sep 17 00:00:00 2001 From: Collins Ikechukwu Date: Thu, 23 Jul 2026 19:20:16 +0100 Subject: [PATCH] chore: bump versions (events 1.4.0, profile 1.2.0) and reconcile contractmeta MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Version stamps had drifted and were internally inconsistent: events contractmeta said 1.2.0 while INITIAL_VERSION said 1.3.0, and neither reflected the public-surface / storage changes merged since (#86 submission cap, #88 manager two-step, #96 OpSeen namespacing). Profile was still 1.1.0 despite #95 namespacing its OpSeen. Bump both contracts coherently — INITIAL_VERSION, contractmeta, and the Cargo package version all set to: events 1.3.0 -> 1.4.0 (submission cap, manager two-step, OpSeen ns) profile 1.1.0 -> 1.2.0 (namespaced OpSeen) version()-asserting admin tests updated to match. 225 events + 66 profile tests green; make build OK (events 56,091 B, profile 15,893 B, both under the 64 KB ceiling); fmt clean. --- Cargo.lock | 4 ++-- contracts/events/Cargo.toml | 2 +- contracts/events/src/admin.rs | 2 +- contracts/events/src/lib.rs | 2 +- contracts/events/src/tests/admin.rs | 8 ++++---- contracts/profile/Cargo.toml | 2 +- contracts/profile/src/admin.rs | 2 +- contracts/profile/src/lib.rs | 2 +- contracts/profile/src/tests/admin.rs | 4 ++-- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9e720e6..6c40a2e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -215,7 +215,7 @@ dependencies = [ [[package]] name = "boundless-events" -version = "1.3.0" +version = "1.4.0" dependencies = [ "boundless-profile", "soroban-sdk", @@ -223,7 +223,7 @@ dependencies = [ [[package]] name = "boundless-profile" -version = "1.1.0" +version = "1.2.0" dependencies = [ "soroban-sdk", ] diff --git a/contracts/events/Cargo.toml b/contracts/events/Cargo.toml index 10e2525..588f1e7 100644 --- a/contracts/events/Cargo.toml +++ b/contracts/events/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "boundless-events" -version = "1.3.0" +version = "1.4.0" edition = "2021" publish = false diff --git a/contracts/events/src/admin.rs b/contracts/events/src/admin.rs index 12233cb..a6c1e7f 100644 --- a/contracts/events/src/admin.rs +++ b/contracts/events/src/admin.rs @@ -15,7 +15,7 @@ const UPGRADE_TIMELOCK_LEDGERS: u32 = 17_280; const UPGRADE_TIMELOCK_LEDGERS: u32 = 0; const PENDING_UPGRADE_TTL_LEDGERS: u32 = 518_400; -pub const INITIAL_VERSION: &str = "1.3.0"; +pub const INITIAL_VERSION: &str = "1.4.0"; // ============================================================ // INITIALIZATION diff --git a/contracts/events/src/lib.rs b/contracts/events/src/lib.rs index 97c2e2a..95888c8 100644 --- a/contracts/events/src/lib.rs +++ b/contracts/events/src/lib.rs @@ -24,7 +24,7 @@ mod tests; use crate::errors::Error; use crate::types::*; -contractmeta!(key = "version", val = "1.2.0"); +contractmeta!(key = "version", val = "1.4.0"); contractmeta!( key = "description", val = "Boundless events contract: hackathon, bounty, grant + escrow" diff --git a/contracts/events/src/tests/admin.rs b/contracts/events/src/tests/admin.rs index 916d6fe..e18cc70 100644 --- a/contracts/events/src/tests/admin.rs +++ b/contracts/events/src/tests/admin.rs @@ -19,7 +19,7 @@ fn initializes_with_expected_config() { assert_eq!(ctx.client.get_fee_bps(), 250); assert_eq!(ctx.client.get_profile_contract(), ctx.profile_contract); assert_eq!(ctx.client.is_paused(), false); - assert_eq!(ctx.client.version(), String::from_str(&ctx.env, "1.3.0")); + assert_eq!(ctx.client.version(), String::from_str(&ctx.env, "1.4.0")); assert_eq!(ctx.client.get_pending_upgrade(), None); assert_eq!(ctx.client.get_migrated_to_version(), None); } @@ -96,7 +96,7 @@ fn apply_upgrade_before_timelock_reverts() { .expect("timelock blocks") .unwrap(); assert_eq!(err, Error::UpgradeTimelockNotElapsed); - assert_eq!(ctx.client.version(), String::from_str(&ctx.env, "1.3.0")); + assert_eq!(ctx.client.version(), String::from_str(&ctx.env, "1.4.0")); } #[test] @@ -130,7 +130,7 @@ fn cancel_pending_upgrade_clears_proposal() { ctx.client.cancel_pending_upgrade(); assert_eq!(ctx.client.get_pending_upgrade(), None); - assert_eq!(ctx.client.version(), String::from_str(&ctx.env, "1.3.0")); + assert_eq!(ctx.client.version(), String::from_str(&ctx.env, "1.4.0")); } #[test] @@ -152,7 +152,7 @@ fn migrate_marks_current_version_and_blocks_replay() { ctx.client.migrate(); assert_eq!( ctx.client.get_migrated_to_version(), - Some(String::from_str(&ctx.env, "1.3.0")) + Some(String::from_str(&ctx.env, "1.4.0")) ); let err = ctx diff --git a/contracts/profile/Cargo.toml b/contracts/profile/Cargo.toml index 0b24057..b771693 100644 --- a/contracts/profile/Cargo.toml +++ b/contracts/profile/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "boundless-profile" -version = "1.1.0" +version = "1.2.0" edition = "2021" publish = false diff --git a/contracts/profile/src/admin.rs b/contracts/profile/src/admin.rs index 59480cd..f7c47bc 100644 --- a/contracts/profile/src/admin.rs +++ b/contracts/profile/src/admin.rs @@ -13,7 +13,7 @@ const UPGRADE_TIMELOCK_LEDGERS: u32 = 17_280; const UPGRADE_TIMELOCK_LEDGERS: u32 = 0; const PENDING_UPGRADE_TTL_LEDGERS: u32 = 518_400; -pub const INITIAL_VERSION: &str = "1.1.0"; +pub const INITIAL_VERSION: &str = "1.2.0"; const EVENTS_CONTRACT_TIMELOCK_LEDGERS: u32 = 17_280; diff --git a/contracts/profile/src/lib.rs b/contracts/profile/src/lib.rs index 11b40df..2628916 100644 --- a/contracts/profile/src/lib.rs +++ b/contracts/profile/src/lib.rs @@ -19,7 +19,7 @@ mod tests; use crate::errors::Error; use crate::types::{PendingEventsContract, PendingUpgrade, Profile}; -contractmeta!(key = "version", val = "1.1.0"); +contractmeta!(key = "version", val = "1.2.0"); contractmeta!( key = "description", val = "Boundless profile contract: reputation + earnings" diff --git a/contracts/profile/src/tests/admin.rs b/contracts/profile/src/tests/admin.rs index 70ab770..635c7fb 100644 --- a/contracts/profile/src/tests/admin.rs +++ b/contracts/profile/src/tests/admin.rs @@ -21,7 +21,7 @@ fn initializes_with_expected_config() { assert_eq!(ctx.client.is_paused(), false); assert_eq!(ctx.client.get_events_contract(), None); assert_eq!(ctx.client.get_pending_events_contract(), None); - assert_eq!(ctx.client.version(), String::from_str(&ctx.env, "1.1.0")); + assert_eq!(ctx.client.version(), String::from_str(&ctx.env, "1.2.0")); assert_eq!(ctx.client.get_pending_upgrade(), None); assert_eq!(ctx.client.get_migrated_to_version(), None); } @@ -232,7 +232,7 @@ fn migrate_marks_version_and_blocks_replay_profile() { ctx.client.migrate(); assert_eq!( ctx.client.get_migrated_to_version(), - Some(String::from_str(&ctx.env, "1.1.0")) + Some(String::from_str(&ctx.env, "1.2.0")) ); let err = ctx