Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ members = [
"runtime-modules/constitution",
"runtime-modules/staking-handler",
# "runtime-modules/bounty",
"runtime-modules/blog",
"runtime-modules/utility",
"runtime-modules/project-token",
"node",
Expand Down
2 changes: 1 addition & 1 deletion chain-metadata.json

Large diffs are not rendered by default.

30 changes: 0 additions & 30 deletions cli/src/graphql/generated/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6948,13 +6948,6 @@ export type CouncilStageUpdateWhereUniqueInput = {
id: Scalars['ID']
}

export type CreateBlogPostProposalDetails = {
/** Blog post title */
title: Scalars['String']
/** Blog post content (md-formatted) */
body: Scalars['String']
}

export type CreateWorkingGroupLeadOpeningProposalDetails = {
/** The opening metadata */
metadata?: Maybe<WorkingGroupOpeningMetadata>
Expand Down Expand Up @@ -7853,15 +7846,6 @@ export type DistributionBucketWhereUniqueInput = {
id: Scalars['ID']
}

export type EditBlogPostProposalDetails = {
/** The related blog post */
blogPost: Scalars['String']
/** The new blog post title (if should be updated) */
newTitle?: Maybe<Scalars['String']>
/** The new blog post body (if should be updated) */
newBody?: Maybe<Scalars['String']>
}

export type ElectedCouncil = BaseGraphQlObject & {
id: Scalars['ID']
createdAt: Scalars['DateTime']
Expand Down Expand Up @@ -10903,11 +10887,6 @@ export type LicenseWhereUniqueInput = {
id: Scalars['ID']
}

export type LockBlogPostProposalDetails = {
/** The blog post that should be locked */
blogPost: Scalars['String']
}

export type MemberAccountsUpdatedEvent = Event &
BaseGraphQlObject & {
/** Hash of the extrinsic which caused the event to be emitted */
Expand Down Expand Up @@ -16664,10 +16643,6 @@ export type ProposalDetails =
| SetInitialInvitationCountProposalDetails
| SetMembershipLeadInvitationQuotaProposalDetails
| SetReferralCutProposalDetails
| CreateBlogPostProposalDetails
| EditBlogPostProposalDetails
| LockBlogPostProposalDetails
| UnlockBlogPostProposalDetails
| VetoProposalDetails

export type ProposalDiscussionPost = BaseGraphQlObject & {
Expand Down Expand Up @@ -26915,11 +26890,6 @@ export type TransactionalStatusUpdateWhereUniqueInput = {
id: Scalars['ID']
}

export type UnlockBlogPostProposalDetails = {
/** The blog post that should be unlocked */
blogPost: Scalars['String']
}

export type UpcomingOpeningAdded = {
upcomingOpeningId: Scalars['String']
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6948,13 +6948,6 @@ export type CouncilStageUpdateWhereUniqueInput = {
id: Scalars['ID']
}

export type CreateBlogPostProposalDetails = {
/** Blog post title */
title: Scalars['String']
/** Blog post content (md-formatted) */
body: Scalars['String']
}

export type CreateWorkingGroupLeadOpeningProposalDetails = {
/** The opening metadata */
metadata?: Maybe<WorkingGroupOpeningMetadata>
Expand Down Expand Up @@ -7853,15 +7846,6 @@ export type DistributionBucketWhereUniqueInput = {
id: Scalars['ID']
}

export type EditBlogPostProposalDetails = {
/** The related blog post */
blogPost: Scalars['String']
/** The new blog post title (if should be updated) */
newTitle?: Maybe<Scalars['String']>
/** The new blog post body (if should be updated) */
newBody?: Maybe<Scalars['String']>
}

export type ElectedCouncil = BaseGraphQlObject & {
id: Scalars['ID']
createdAt: Scalars['DateTime']
Expand Down Expand Up @@ -10903,11 +10887,6 @@ export type LicenseWhereUniqueInput = {
id: Scalars['ID']
}

export type LockBlogPostProposalDetails = {
/** The blog post that should be locked */
blogPost: Scalars['String']
}

export type MemberAccountsUpdatedEvent = Event &
BaseGraphQlObject & {
/** Hash of the extrinsic which caused the event to be emitted */
Expand Down Expand Up @@ -16664,10 +16643,6 @@ export type ProposalDetails =
| SetInitialInvitationCountProposalDetails
| SetMembershipLeadInvitationQuotaProposalDetails
| SetReferralCutProposalDetails
| CreateBlogPostProposalDetails
| EditBlogPostProposalDetails
| LockBlogPostProposalDetails
| UnlockBlogPostProposalDetails
| VetoProposalDetails

export type ProposalDiscussionPost = BaseGraphQlObject & {
Expand Down Expand Up @@ -26915,11 +26890,6 @@ export type TransactionalStatusUpdateWhereUniqueInput = {
id: Scalars['ID']
}

export type UnlockBlogPostProposalDetails = {
/** The blog post that should be unlocked */
blogPost: Scalars['String']
}

export type UpcomingOpeningAdded = {
upcomingOpeningId: Scalars['String']
}
Expand Down
37 changes: 0 additions & 37 deletions query-node/mappings/src/proposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ import {
SetInitialInvitationCountProposalDetails,
SetMembershipLeadInvitationQuotaProposalDetails,
SetReferralCutProposalDetails,
CreateBlogPostProposalDetails,
EditBlogPostProposalDetails,
LockBlogPostProposalDetails,
UnlockBlogPostProposalDetails,
VetoProposalDetails,
ProposalDetails,
FundingRequestDestinationsList,
Expand Down Expand Up @@ -279,39 +275,6 @@ async function parseProposalDetails(
details.newReferralCut = specificDetails.toNumber()
return details
}
// CreateBlogPostProposalDetails:
else if (proposalDetails.isCreateBlogPost) {
const details = new CreateBlogPostProposalDetails()
const specificDetails = proposalDetails.asCreateBlogPost
const [title, body] = specificDetails
details.title = perpareString(title.toString())
details.body = perpareString(body.toString())
return details
}
// EditBlogPostProposalDetails:
else if (proposalDetails.isEditBlogPost) {
const details = new EditBlogPostProposalDetails()
const specificDetails = proposalDetails.asEditBlogPost
const [postId, optTitle, optBody] = specificDetails
details.blogPost = postId.toString()
details.newTitle = optTitle.isSome ? perpareString(optTitle.unwrap().toString()) : undefined
details.newBody = optBody.isSome ? perpareString(optBody.unwrap().toString()) : undefined
return details
}
// LockBlogPostProposalDetails:
else if (proposalDetails.isLockBlogPost) {
const details = new LockBlogPostProposalDetails()
const postId = proposalDetails.asLockBlogPost
details.blogPost = postId.toString()
return details
}
// UnlockBlogPostProposalDetails:
else if (proposalDetails.isUnlockBlogPost) {
const details = new UnlockBlogPostProposalDetails()
const postId = proposalDetails.asUnlockBlogPost
details.blogPost = postId.toString()
return details
}
// VetoProposalDetails:
else if (proposalDetails.isVetoProposal) {
const details = new VetoProposalDetails()
Expand Down
36 changes: 0 additions & 36 deletions query-node/schemas/proposals.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -310,38 +310,6 @@ type SetReferralCutProposalDetails @variant {
newReferralCut: Int!
}

type CreateBlogPostProposalDetails @variant {
"Blog post title"
title: String!

"Blog post content (md-formatted)"
body: String!
}

type EditBlogPostProposalDetails @variant {
"The related blog post"
# TODO: Change to relationship once Blog module is supported
blogPost: ID!

"The new blog post title (if should be updated)"
newTitle: String

"The new blog post body (if should be updated)"
newBody: String
}

type LockBlogPostProposalDetails @variant {
"The blog post that should be locked"
# TODO: Change to relationship once Blog module is supported
blogPost: ID!
}

type UnlockBlogPostProposalDetails @variant {
"The blog post that should be unlocked"
# TODO: Change to relationship once Blog module is supported
blogPost: ID!
}

type VetoProposalDetails @variant {
"Proposal to be vetoed"
proposal: Proposal!
Expand All @@ -368,8 +336,4 @@ union ProposalDetails =
| SetInitialInvitationCountProposalDetails
| SetMembershipLeadInvitationQuotaProposalDetails
| SetReferralCutProposalDetails
| CreateBlogPostProposalDetails
| EditBlogPostProposalDetails
| LockBlogPostProposalDetails
| UnlockBlogPostProposalDetails
| VetoProposalDetails
2 changes: 0 additions & 2 deletions runtime-modules/blog/.gitattributes

This file was deleted.

3 changes: 0 additions & 3 deletions runtime-modules/blog/.gitignore

This file was deleted.

44 changes: 0 additions & 44 deletions runtime-modules/blog/Cargo.toml

This file was deleted.

2 changes: 0 additions & 2 deletions runtime-modules/blog/README.md

This file was deleted.

Loading