Skip to content

Commit

Permalink
not tampering hub contract
Browse files Browse the repository at this point in the history
  • Loading branch information
PavitraAgarwal21 committed Oct 4, 2024
1 parent d5225a2 commit 6439d03
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/hub/hub.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,25 @@ pub mod KarstHub {
};
use karst::profile::profile::ProfileComponent;
use karst::publication::publication::PublicationComponent;
use karst::channel::channel::ChannelComponent;
use karst::interfaces::IFollowNFT::{IFollowNFTDispatcher, IFollowNFTDispatcherTrait};
use karst::interfaces::IHandle::{IHandleDispatcher, IHandleDispatcherTrait};
use karst::interfaces::IHandleRegistry::{
IHandleRegistryDispatcher, IHandleRegistryDispatcherTrait
};

use karst::base::constants::errors::Errors::{
BLOCKED_STATUS, INVALID_PROFILE_ADDRESS, SELF_FOLLOWING
};

// *************************************************************************
// COMPONENTS
// *************************************************************************
component!(path: ChannelComponent, storage: channel, event: ChannelEvent);
component!(path: ProfileComponent, storage: profile, event: ProfileEvent);
component!(path: PublicationComponent, storage: publication, event: PublicationEvent);

#[abi(embed_v0)]
impl ChannelImpl = ChannelComponent::KarstChannel<ContractState>;
impl ProfileImpl = ProfileComponent::KarstProfile<ContractState>;
impl PublicationImpl = PublicationComponent::KarstPublication<ContractState>;


// *************************************************************************
// STORAGE
// *************************************************************************
Expand All @@ -66,8 +61,6 @@ pub mod KarstHub {
profile: ProfileComponent::Storage,
#[substorage(v0)]
publication: PublicationComponent::Storage,
#[substorage(v0)]
channel: ChannelComponent::Storage,
handle_contract_address: ContractAddress,
handle_registry_contract_address: ContractAddress
}
Expand All @@ -79,8 +72,7 @@ pub mod KarstHub {
#[derive(Drop, starknet::Event)]
enum Event {
ProfileEvent: ProfileComponent::Event,
PublicationEvent: PublicationComponent::Event,
ChannelEvent: ChannelComponent::Event
PublicationEvent: PublicationComponent::Event
}

// *************************************************************************
Expand Down

0 comments on commit 6439d03

Please sign in to comment.