Skip to content

Commit

Permalink
feat: complete channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Darlington02 committed Oct 11, 2024
1 parent 78239de commit 2cf634b
Show file tree
Hide file tree
Showing 5 changed files with 236 additions and 179 deletions.
12 changes: 6 additions & 6 deletions src/base/constants/errors.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ pub mod Errors {
pub const AUTO_RENEW_DURATION_ENDED: felt252 = 'Karst: auto renew ended!';
pub const INVALID_JOLT: felt252 = 'Karst: invalid jolt!';
pub const INVALID_JOLT_RECIPIENT: felt252 = 'Karst: not request recipient!';
pub const NOT_CHANNEL_OWNER: felt252 = 'Channel: not channel owner';
pub const NOT_CHANNEL_MODERATOR: felt252 = 'Channel: not channel moderator';
pub const NOT_CHANNEL_MEMBER: felt252 = 'Channel: not channel member';
pub const BANNED_FROM_CHANNEL: felt252 = 'Channel: banned from channel';
pub const CHANNEL_HAS_NO_MEMBER: felt252 = 'Channel has no members';
pub const UNAUTHORIZED_ACESS: felt252 = 'Karst : Unauthorized access';
pub const NOT_CHANNEL_OWNER: felt252 = 'Karst: not channel owner';
pub const NOT_CHANNEL_MODERATOR: felt252 = 'Karst: not channel moderator';
pub const NOT_CHANNEL_MEMBER: felt252 = 'Karst: not channel member';
pub const BANNED_FROM_CHANNEL: felt252 = 'Karst: banned from channel';
pub const CHANNEL_HAS_NO_MEMBER: felt252 = 'Karst: channel has no members';
pub const INVALID_LENGTH: felt252 = 'Karst: array mismatch';
}
4 changes: 2 additions & 2 deletions src/base/constants/types.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ pub enum CommunityType {
// *************************************************************************

#[derive(Drop, Serde, Clone, starknet::Store)]
pub struct channelDetails {
pub struct ChannelDetails {
pub channel_id: u256,
pub community_id: u256,
pub channel_owner: ContractAddress,
Expand All @@ -253,7 +253,7 @@ pub struct channelDetails {


#[derive(Drop, Serde, Clone, starknet::Store)]
pub struct channelMember {
pub struct ChannelMember {
pub profile: ContractAddress,
pub channel_id: u256,
pub total_publications: u256,
Expand Down
Loading

0 comments on commit 2cf634b

Please sign in to comment.