Skip to content

Commit

Permalink
fix: add imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Adegbite Ademola Kelvin authored and Adegbite Ademola Kelvin committed Jun 3, 2024
1 parent 24d9721 commit 9f03518
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/base/types.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ pub struct MirrorParams {
// * @param pointed_profile_address The profile address of the publication author that is quoted.
// * @param pointed_pub_id The publication ID that is quoted.
// */
struct QuoteParams {
#[derive(Drop, Serde, starknet::Store)]
pub struct QuoteParams {
profile_address: ContractAddress,
content_URI: ByteArray,
pointed_profile_address: ContractAddress,
Expand Down
12 changes: 8 additions & 4 deletions src/publication/publication.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// [Len Publication Contract](https://github.com/lens-protocol/core/blob/master/contracts/libraries/PublicationLib.sol)
use starknet::{ContractAddress, get_caller_address};
use karst::base::types::{
PostParams, PublicationType, CommentParams, ReferencePubParams, Publication
PostParams, PublicationType, CommentParams, ReferencePubParams, Publication,MirrorParams, QuoteParams
};
use karst::interfaces::IProfile::{IKarstProfileDispatcher, IKarstProfileDispatcherTrait};
use core::option::OptionTrait;
Expand Down Expand Up @@ -49,7 +49,7 @@ pub mod Publications {
// *************************************************************************
use starknet::{ContractAddress, get_contract_address, get_caller_address};
use karst::base::types::{
PostParams, Publication, PublicationType, ReferencePubParams, CommentParams
PostParams, Publication, PublicationType, ReferencePubParams, CommentParams,QuoteParams,MirrorParams
};
use super::IKarstPublications;
use karst::interfaces::IProfile::{IKarstProfileDispatcher, IKarstProfileDispatcherTrait};
Expand Down Expand Up @@ -157,10 +157,14 @@ pub mod Publications {
// *
// * @return uint256 The created publication's pubId.
// */
fn mirror(ref self: ContractState, mirrorParams: MirrorParams) -> u256 { // logic here
fn mirror(ref self: ContractState, mirrorParams: MirrorParams) -> u256 {
// logic here
0
}

fn quote(ref self: ContractState, quoteParams: QuoteParams) -> u256 { // logic here
fn quote(ref self: ContractState, quoteParams: QuoteParams) -> u256 {
// logic here
0
}
//////////////////////////////////////////////////////////////
/// GETTERS//////////////////////////////////////////////////
Expand Down

0 comments on commit 9f03518

Please sign in to comment.