Skip to content

Commit

Permalink
Update canisters post release (#4841)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Nov 24, 2023
1 parent f7bf50a commit 7b506b1
Show file tree
Hide file tree
Showing 27 changed files with 25 additions and 44 deletions.
1 change: 0 additions & 1 deletion backend/bots/examples/group_prize_bot/impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ struct Data {
pub prizes_sent: Vec<Prize>,
pub groups: HashSet<CanisterId>,
pub started: bool,
#[serde(default)]
pub rng_seed: [u8; 32],
}

Expand Down
1 change: 0 additions & 1 deletion backend/bots/examples/icp_dispenser/impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ struct Data {
pub reward_codes: RewardCodes,
pub pending_actions: PendingActions,
pub avatar: Timestamped<Option<Document>>,
#[serde(default)]
pub rng_seed: [u8; 32],
pub test_mode: bool,
}
Expand Down
1 change: 0 additions & 1 deletion backend/bots/examples/satoshi_dice/impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ struct Data {
pub users: UserMap,
pub pending_actions_queue: PendingActionsQueue,
pub initialized: bool,
#[serde(default)]
pub rng_seed: [u8; 32],
pub test_mode: bool,
}
Expand Down
1 change: 0 additions & 1 deletion backend/bots/examples/sns1_airdrop/impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ struct Data {
pub principals: HashSet<Principal>,
pub avatar: Timestamped<Option<Document>>,
pub completed: bool,
#[serde(default)]
pub rng_seed: [u8; 32],
pub test_mode: bool,
}
Expand Down
2 changes: 2 additions & 0 deletions backend/canisters/community/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [unreleased]

## [[2.0.945](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.945-community)] - 2023-11-24

### Added

- Support cancelling invites ([#4831](https://github.com/open-chat-labs/open-chat/pull/4831))
Expand Down
3 changes: 0 additions & 3 deletions backend/canisters/community/impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,8 @@ struct Data {
next_event_expiry: Option<TimestampMillis>,
test_mode: bool,
cached_chat_metrics: Timestamped<ChatMetrics>,
#[serde(default)]
rng_seed: [u8; 32],
#[serde(default)]
pub pending_payments_queue: PendingPaymentsQueue,
#[serde(default)]
pub total_payment_receipts: PaymentReceipts,
}

Expand Down
2 changes: 2 additions & 0 deletions backend/canisters/group/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [unreleased]

## [[2.0.946](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.946-group)] - 2023-11-24

### Added

- Support cancelling invites ([#4831](https://github.com/open-chat-labs/open-chat/pull/4831))
Expand Down
3 changes: 0 additions & 3 deletions backend/canisters/group/impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,8 @@ struct Data {
pub community_being_imported_into: Option<CommunityBeingImportedInto>,
pub serialized_chat_state: Option<ByteBuf>,
pub next_event_expiry: Option<TimestampMillis>,
#[serde(default)]
pub rng_seed: [u8; 32],
#[serde(default)]
pub pending_payments_queue: PendingPaymentsQueue,
#[serde(default)]
pub total_payment_receipts: PaymentReceipts,
}

Expand Down
2 changes: 2 additions & 0 deletions backend/canisters/group_index/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [unreleased]

## [[2.0.942](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.942-group_index)] - 2023-11-24

### Changed

- Avoid reseeding random number generator after each upgrade ([#4755](https://github.com/open-chat-labs/open-chat/pull/4755))
Expand Down
1 change: 0 additions & 1 deletion backend/canisters/group_index/impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ struct Data {
pub cached_metrics: CachedMetrics,
pub local_index_map: LocalGroupIndexMap,
pub fire_and_forget_handler: FireAndForgetHandler,
#[serde(default)]
pub rng_seed: [u8; 32],
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ pub struct CachedPublicGroupSummary {
pub latest_message_index: Option<MessageIndex>,
pub participant_count: u32,
pub events_ttl: Option<Milliseconds>,
#[serde(default)]
pub events_ttl_last_updated: TimestampMillis,
pub gate: Option<AccessGate>,
}
Expand Down
2 changes: 2 additions & 0 deletions backend/canisters/local_group_index/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [unreleased]

## [[2.0.944](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.944-local_group_index)] - 2023-11-24

### Changed

- Avoid reseeding random number generator after each upgrade ([#4755](https://github.com/open-chat-labs/open-chat/pull/4755))
Expand Down
1 change: 0 additions & 1 deletion backend/canisters/local_group_index/impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ struct Data {
pub group_upgrade_concurrency: u32,
pub max_concurrent_community_upgrades: u32,
pub community_upgrade_concurrency: u32,
#[serde(default)]
pub rng_seed: [u8; 32],
}

Expand Down
7 changes: 6 additions & 1 deletion backend/canisters/local_user_index/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [unreleased]

## [[2.0.943](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.943-local_user_index)] - 2023-11-24

### Changed

- Add crypto payment access gate ([#4823](https://github.com/open-chat-labs/open-chat/pull/4823))

## [[2.0.940](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.940-local_user_index)] - 2023-11-21

### Changed

- Refund ckBTC which Dfinity provided for the Bitcoin Miami promotion ([#4795](https://github.com/open-chat-labs/open-chat/pull/4795))
- Regenerate random number generator seed across upgrades ([#4814](https://github.com/open-chat-labs/open-chat/pull/4814))
- Add crypto payment access gate ([#4823](https://github.com/open-chat-labs/open-chat/pull/4823))

## [[2.0.936](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.936-local_user_index)] - 2023-11-16

Expand Down
2 changes: 2 additions & 0 deletions backend/canisters/registry/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [unreleased]

## [[2.0.941](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.941-registry)] - 2023-10-30

### Changed

- Use dynamic buffer size when reading from stable memory ([#4683](https://github.com/open-chat-labs/open-chat/pull/4683))
Expand Down
1 change: 0 additions & 1 deletion backend/canisters/registry/api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ pub struct TokenDetails {
pub info_url: String,
pub how_to_buy_url: String,
pub transaction_url_format: String,
#[serde(default)]
pub supported_standards: Vec<String>,
pub added: TimestampMillis,
pub last_updated: TimestampMillis,
Expand Down
1 change: 0 additions & 1 deletion backend/canisters/registry/impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ struct Data {
tokens: Tokens,
nervous_systems: NervousSystems,
failed_sns_launches: HashSet<CanisterId>,
#[serde(default)]
rng_seed: [u8; 32],
test_mode: bool,
}
Expand Down
2 changes: 2 additions & 0 deletions backend/canisters/user/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [unreleased]

## [[2.0.947](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.947-user)] - 2023-11-24

### Added

- Support paying in CHAT for Diamond membership ([#4748](https://github.com/open-chat-labs/open-chat/pull/4748))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ pub enum Response {
#[derive(CandidType, Serialize, Deserialize, Debug)]
pub struct SuccessResult {
pub groups: Vec<ChatId>,
#[serde(default)]
pub communities: Vec<CommunityId>,
}
2 changes: 0 additions & 2 deletions backend/canisters/user/impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,7 @@ struct Data {
pub fire_and_forget_handler: FireAndForgetHandler,
pub saved_crypto_accounts: Vec<NamedAccount>,
pub next_event_expiry: Option<TimestampMillis>,
#[serde(default)]
pub token_swaps: TokenSwaps,
#[serde(default)]
pub rng_seed: [u8; 32],
}

Expand Down
1 change: 0 additions & 1 deletion backend/canisters/user/impl/src/model/direct_chats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ pub struct DirectChats {
direct_chats: HashMap<ChatId, DirectChat>,
pinned: Timestamped<Vec<ChatId>>,
metrics: ChatMetricsInternal,
#[serde(default)]
chats_removed: BTreeSet<(TimestampMillis, ChatId)>,
}

Expand Down
1 change: 0 additions & 1 deletion backend/libraries/group_chat_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1899,7 +1899,6 @@ pub struct SummaryUpdates {
pub struct AccessRulesInternal {
pub text: Versioned<String>,
pub enabled: bool,
#[serde(default)]
pub version_last_updated: TimestampMillis,
}

Expand Down
1 change: 0 additions & 1 deletion backend/libraries/group_chat_core/src/members.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ pub struct GroupMembers {
pub moderator_count: u32,
pub admin_count: u32,
pub owner_count: u32,
#[serde(default)]
updates: BTreeSet<(TimestampMillis, UserId, MemberUpdate)>,
}

Expand Down
2 changes: 0 additions & 2 deletions backend/libraries/types/src/channel_summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ pub struct CommunityCanisterChannelSummary {
pub metrics: ChatMetrics,
pub date_last_pinned: Option<TimestampMillis>,
pub events_ttl: Option<Milliseconds>,
#[serde(default)]
pub events_ttl_last_updated: TimestampMillis,
pub gate: Option<AccessGate>,
pub membership: Option<GroupMembership>,
Expand All @@ -51,7 +50,6 @@ pub struct CommunityCanisterChannelSummaryUpdates {
pub metrics: Option<ChatMetrics>,
pub date_last_pinned: Option<TimestampMillis>,
pub events_ttl: OptionUpdate<Milliseconds>,
#[serde(default)]
pub events_ttl_last_updated: Option<TimestampMillis>,
pub gate: OptionUpdate<AccessGate>,
pub membership: Option<GroupMembershipUpdates>,
Expand Down
8 changes: 0 additions & 8 deletions backend/libraries/types/src/chat_summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ pub struct DirectChatSummary {
pub my_metrics: ChatMetrics,
pub archived: bool,
pub events_ttl: Option<Milliseconds>,
#[serde(default)]
pub events_ttl_last_updated: TimestampMillis,
}

Expand Down Expand Up @@ -65,7 +64,6 @@ pub struct GroupChatSummary {
pub date_last_pinned: Option<TimestampMillis>,
pub date_read_pinned: Option<TimestampMillis>,
pub events_ttl: Option<Milliseconds>,
#[serde(default)]
pub events_ttl_last_updated: TimestampMillis,
pub gate: Option<AccessGate>,
pub rules_accepted: bool,
Expand All @@ -86,7 +84,6 @@ pub struct DirectChatSummaryUpdates {
pub my_metrics: Option<ChatMetrics>,
pub archived: Option<bool>,
pub events_ttl: OptionUpdate<Milliseconds>,
#[serde(default)]
pub events_ttl_last_updated: Option<TimestampMillis>,
}

Expand All @@ -110,7 +107,6 @@ pub struct PublicGroupSummary {
pub is_public: bool,
pub frozen: Option<FrozenGroupInfo>,
pub events_ttl: Option<Milliseconds>,
#[serde(default)]
pub events_ttl_last_updated: TimestampMillis,
pub gate: Option<AccessGate>,
}
Expand Down Expand Up @@ -143,11 +139,9 @@ pub struct GroupCanisterGroupChatSummary {
pub frozen: Option<FrozenGroupInfo>,
pub date_last_pinned: Option<TimestampMillis>,
pub events_ttl: Option<Milliseconds>,
#[serde(default)]
pub events_ttl_last_updated: TimestampMillis,
pub gate: Option<AccessGate>,
pub rules_accepted: bool,
#[serde(default)]
pub membership: Option<GroupMembership>,
}

Expand Down Expand Up @@ -251,11 +245,9 @@ pub struct GroupCanisterGroupChatSummaryUpdates {
pub frozen: OptionUpdate<FrozenGroupInfo>,
pub date_last_pinned: Option<TimestampMillis>,
pub events_ttl: OptionUpdate<Milliseconds>,
#[serde(default)]
pub events_ttl_last_updated: Option<TimestampMillis>,
pub gate: OptionUpdate<AccessGate>,
pub rules_accepted: Option<bool>,
#[serde(default)]
pub membership: Option<GroupMembershipUpdates>,
}

Expand Down
5 changes: 0 additions & 5 deletions backend/libraries/types/src/polls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ use candid::CandidType;
use serde::{Deserialize, Serialize};
use std::collections::{HashMap, HashSet};

fn allow_change_default() -> bool {
true
}

#[derive(CandidType, Serialize, Deserialize, Clone, Debug)]
pub struct PollConfig {
pub text: Option<String>,
Expand All @@ -15,7 +11,6 @@ pub struct PollConfig {
pub anonymous: bool,
pub show_votes_before_end_date: bool,
pub allow_multiple_votes_per_user: bool,
#[serde(default = "allow_change_default")]
pub allow_user_to_change_vote: bool,
}

Expand Down
14 changes: 7 additions & 7 deletions canister_commit_ids.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"community": "e34ad4a8fcd63158c4e672e6830831cb88bcd24a",
"community": "ce3033cea45ce8aa6647c3124d7b99b94caa00c4",
"cycles_dispenser": "496fd2aa54d194c29a7ba014ee1b6d7d1a2f9a00",
"group": "e34ad4a8fcd63158c4e672e6830831cb88bcd24a",
"group_index": "dd8b65c6459af56aa731a95ff5fba01f657edfb5",
"local_group_index": "d8e2664932ab0c2a70a4b50512f1d67720056a96",
"local_user_index": "e72f5d2e886d84ec2acc220b72101262ee78c7f3",
"group": "e38e72c517886c34b81626e791e5669acdc7acbb",
"group_index": "ce3033cea45ce8aa6647c3124d7b99b94caa00c4",
"local_group_index": "ce3033cea45ce8aa6647c3124d7b99b94caa00c4",
"local_user_index": "ce3033cea45ce8aa6647c3124d7b99b94caa00c4",
"market_maker": "9a6a38f86194b57dc8718c2a595ef4b00cf82d47",
"neuron_controller": "70cd194427a9eb48972ae8924b6e8a6be74199f4",
"notifications": "b72fb44d4d34c1b9f34dc6eb650144944b57860a",
"notifications_index": "b72fb44d4d34c1b9f34dc6eb650144944b57860a",
"online_users": "9a6a38f86194b57dc8718c2a595ef4b00cf82d47",
"proposals_bot": "45d105cb2e7b10198102f940c3a2a12953ef3f82",
"proposal_validation": "03647d5475bd4cb1b6299c5688e6d4f97928559a",
"registry": "ba4c610d94d77eb0741ac673c20fc8e500a49831",
"registry": "ce3033cea45ce8aa6647c3124d7b99b94caa00c4",
"storage_bucket": "5c4fb8d98e68053c6d93050dfafbd2dbb4c3c9b9",
"storage_index": "8426b83456957cdc997374c8a01d9b641d1d3d08",
"user": "e34ad4a8fcd63158c4e672e6830831cb88bcd24a",
"user": "e38e72c517886c34b81626e791e5669acdc7acbb",
"user_index": "58f0e174f283f3ccea672e87e825250309c5ebc5"
}

0 comments on commit 7b506b1

Please sign in to comment.