From 9f035188e2f9eab09d658cf08a5cf9cd67c3eb76 Mon Sep 17 00:00:00 2001 From: Adegbite Ademola Kelvin Date: Mon, 3 Jun 2024 02:06:25 +0100 Subject: [PATCH] fix: add imports --- src/base/types.cairo | 3 ++- src/publication/publication.cairo | 12 ++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/base/types.cairo b/src/base/types.cairo index 53fb3a1..d142524 100644 --- a/src/base/types.cairo +++ b/src/base/types.cairo @@ -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, diff --git a/src/publication/publication.cairo b/src/publication/publication.cairo index 5713eb7..4bf7d71 100644 --- a/src/publication/publication.cairo +++ b/src/publication/publication.cairo @@ -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; @@ -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}; @@ -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//////////////////////////////////////////////////