|
@@ -4,7 +4,7 @@
|
|
|
import { AnyNumber, ITuple } from '@polkadot/types/types';
|
|
|
import { BTreeMap, BTreeSet, Compact, Option, Vec } from '@polkadot/types/codec';
|
|
|
import { Bytes, bool, u16, u32, u64, u8 } from '@polkadot/types/primitive';
|
|
|
-import { Actor, ActorId, ApplicationId, ApplyOnOpeningParameters, BalanceKind, BountyActor, BountyCreationParameters, BountyId, BuyMembershipParameters, CategoryId, ClassId, ClassPermissions, ContentId, CuratorGroupId, CuratorId, DataObjectStorageRelationshipId, DataObjectType, DataObjectTypeId, DataObjectsMap, EntityController, EntityId, EntryId, ForumUserId, FundingRequestParameters, GeneralProposalParameters, InputPropertyValue, InputValue, InviteMembershipParameters, MemberId, MemoText, ModeratorId, Nonce, OpeningId, OpeningType, OperationType, OracleJudgment, ParticipantId, Poll, PostId, PostReactionId, PrivilegedActor, Property, PropertyId, ProposalDetailsOf, ProposalId, ReplyId, SchemaId, StakePolicy, StorageProviderId, ThreadId, ThreadMode, Url, VecMaxLength, VoteKind, WorkerId, WorkingGroup } from './all';
|
|
|
+import { Actor, ActorId, ApplicationId, ApplyOnOpeningParameters, BalanceKind, BountyActor, BountyCreationParameters, BountyId, BuyMembershipParameters, CategoryId, ClassId, ClassPermissions, ContentId, CuratorGroupId, CuratorId, DataObjectStorageRelationshipId, DataObjectType, DataObjectTypeId, DataObjectsMap, EntityController, EntityId, EntryId, ForumUserId, FundingRequestParameters, GeneralProposalParameters, InputPropertyValue, InputValue, InviteMembershipParameters, MemberId, MemoText, ModeratorId, Nonce, OpeningId, OpeningType, OperationType, OracleJudgment, ParticipantId, Poll, PostId, PostReactionId, PrivilegedActor, Property, PropertyId, ProposalDetailsOf, ProposalId, ReplyId, ReplyToDelete, SchemaId, StakePolicy, StorageProviderId, ThreadId, ThreadMode, Url, VecMaxLength, VoteKind, WorkerId, WorkingGroup } from './all';
|
|
|
import { BabeEquivocationProof } from '@polkadot/types/interfaces/babe';
|
|
|
import { Extrinsic, Signature } from '@polkadot/types/interfaces/extrinsics';
|
|
|
import { GrandpaEquivocationProof, KeyOwnerProof } from '@polkadot/types/interfaces/grandpa';
|
|
@@ -146,7 +146,20 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
* - O(1) doesn't depend on the state or parameters
|
|
|
* # </weight>
|
|
|
**/
|
|
|
- createReply: AugmentedSubmittable<(participantId: ParticipantId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, replyId: Option<ReplyId> | null | object | string | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
+ createReply: AugmentedSubmittable<(participantId: ParticipantId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, replyId: Option<ReplyId> | null | object | string | Uint8Array, text: Bytes | string | Uint8Array, editable: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
+ /**
|
|
|
+ * Remove reply from storage
|
|
|
+ *
|
|
|
+ * <weight>
|
|
|
+ *
|
|
|
+ * ## Weight
|
|
|
+ * `O (R)` where
|
|
|
+ * - R is the number of replies to be deleted
|
|
|
+ * - DB:
|
|
|
+ * - O(R)
|
|
|
+ * # </weight>
|
|
|
+ **/
|
|
|
+ deleteReplies: AugmentedSubmittable<(participantId: ParticipantId | AnyNumber | Uint8Array, replies: Vec<ReplyToDelete> | (ReplyToDelete | { post_id?: any; reply_id?: any; hide?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>>;
|
|
|
/**
|
|
|
* Blog owner can edit post, related to a given blog (if unlocked)
|
|
|
* with a new title and/or body
|
|
@@ -1054,19 +1067,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
* # </weight>
|
|
|
**/
|
|
|
updateCategoryMembershipOfModerator: AugmentedSubmittable<(moderatorId: ModeratorId | AnyNumber | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, newValue: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
- /**
|
|
|
- * Update thread archival status
|
|
|
- *
|
|
|
- * <weight>
|
|
|
- *
|
|
|
- * ## Weight
|
|
|
- * `O (W)` where:
|
|
|
- * - `W` is the category depth
|
|
|
- * - DB:
|
|
|
- * - O(W)
|
|
|
- * # </weight>
|
|
|
- **/
|
|
|
- updateThreadArchivalStatus: AugmentedSubmittable<(actor: PrivilegedActor | { Lead: any } | { Moderator: any } | string | Uint8Array, categoryId: CategoryId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, newArchivalStatus: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
/**
|
|
|
* Submit a poll
|
|
|
*
|