Browse Source

Post-rebase @joystream/types update

Leszek Wiesner 3 years ago
parent
commit
67ce0cf88a

File diff suppressed because it is too large
+ 1 - 1
types/augment-codec/all.ts


+ 1 - 1
types/augment-codec/augment-api-consts.ts

@@ -101,7 +101,7 @@ declare module '@polkadot/api/types/consts' {
        **/
       candidacyLockId: LockIdentifier & AugmentedConst<ApiType>;
       /**
-       * Exports const - candidacy lock id.
+       * Exports const - councilor lock id.
        **/
       councilorLockId: LockIdentifier & AugmentedConst<ApiType>;
       /**

+ 2 - 8
types/augment-codec/augment-api-events.ts

@@ -1425,10 +1425,11 @@ declare module '@polkadot/api/types/events' {
       /**
        * A proposal was created
        * Params:
+       * - Id of a newly created proposal after it was saved in storage.
        * - General proposal parameter. Parameters shared by all proposals
        * - Proposal Details. Parameter of proposal with a variant for each kind of proposal
        **/
-      ProposalCreated: AugmentedEvent<ApiType, [GeneralProposalParameters, ProposalDetailsOf]>;
+      ProposalCreated: AugmentedEvent<ApiType, [ProposalId, GeneralProposalParameters, ProposalDetailsOf]>;
     };
     proposalsDiscussion: {
       /**
@@ -1460,13 +1461,6 @@ declare module '@polkadot/api/types/events' {
        * - Id of the proposal
        **/
       ProposalCancelled: AugmentedEvent<ApiType, [MemberId, ProposalId]>;
-      /**
-       * Emits on proposal creation.
-       * Params:
-       * - Member id of a proposer.
-       * - Id of a newly created proposal after it was saved in storage.
-       **/
-      ProposalCreated: AugmentedEvent<ApiType, [MemberId, ProposalId]>;
       /**
        * Emits on getting a proposal status decision.
        * Params:

File diff suppressed because it is too large
+ 0 - 0
types/augment-codec/augment-types.ts


+ 1 - 5
types/augment/all/defs.json

@@ -139,14 +139,10 @@
             "Moderator": "ModeratorId"
         }
     },
-    "PollAlternativeInput": {
-        "alternative_text": "Bytes",
-        "vote_count": "u32"
-    },
     "PollInput": {
         "description": "Bytes",
         "end_time": "u64",
-        "poll_alternatives": "Vec<PollAlternativeInput>"
+        "poll_alternatives": "Vec<Bytes>"
     },
     "ThreadOf": {
         "title_hash": "Hash",

+ 1 - 7
types/augment/all/types.ts

@@ -582,17 +582,11 @@ export interface PollAlternative extends Struct {
   readonly vote_count: u32;
 }
 
-/** @name PollAlternativeInput */
-export interface PollAlternativeInput extends Struct {
-  readonly alternative_text: Bytes;
-  readonly vote_count: u32;
-}
-
 /** @name PollInput */
 export interface PollInput extends Struct {
   readonly description: Bytes;
   readonly end_time: u64;
-  readonly poll_alternatives: Vec<PollAlternativeInput>;
+  readonly poll_alternatives: Vec<Bytes>;
 }
 
 /** @name Post */

+ 1 - 1
types/augment/augment-api-consts.ts

@@ -101,7 +101,7 @@ declare module '@polkadot/api/types/consts' {
        **/
       candidacyLockId: LockIdentifier & AugmentedConst<ApiType>;
       /**
-       * Exports const - candidacy lock id.
+       * Exports const - councilor lock id.
        **/
       councilorLockId: LockIdentifier & AugmentedConst<ApiType>;
       /**

+ 2 - 8
types/augment/augment-api-events.ts

@@ -1425,10 +1425,11 @@ declare module '@polkadot/api/types/events' {
       /**
        * A proposal was created
        * Params:
+       * - Id of a newly created proposal after it was saved in storage.
        * - General proposal parameter. Parameters shared by all proposals
        * - Proposal Details. Parameter of proposal with a variant for each kind of proposal
        **/
-      ProposalCreated: AugmentedEvent<ApiType, [GeneralProposalParameters, ProposalDetailsOf]>;
+      ProposalCreated: AugmentedEvent<ApiType, [ProposalId, GeneralProposalParameters, ProposalDetailsOf]>;
     };
     proposalsDiscussion: {
       /**
@@ -1460,13 +1461,6 @@ declare module '@polkadot/api/types/events' {
        * - Id of the proposal
        **/
       ProposalCancelled: AugmentedEvent<ApiType, [MemberId, ProposalId]>;
-      /**
-       * Emits on proposal creation.
-       * Params:
-       * - Member id of a proposer.
-       * - Id of a newly created proposal after it was saved in storage.
-       **/
-      ProposalCreated: AugmentedEvent<ApiType, [MemberId, ProposalId]>;
       /**
        * Emits on getting a proposal status decision.
        * Params:

File diff suppressed because it is too large
+ 0 - 0
types/augment/augment-types.ts


+ 1 - 7
types/src/forum.ts

@@ -62,15 +62,10 @@ export class PrivilegedActor extends JoyEnum({
   Moderator: ModeratorId,
 }) {}
 
-export class PollAlternativeInput extends JoyStructDecorated({
-  alternative_text: Bytes,
-  vote_count: u32,
-}) {}
-
 export class PollInput extends JoyStructDecorated({
   description: Bytes,
   end_time: u64,
-  poll_alternatives: Vec.with(PollAlternativeInput),
+  poll_alternatives: Vec.with(Bytes),
 }) {}
 
 export class PostIdTuple extends ((Tuple.with([CategoryId, ThreadId, PostId]) as unknown) as Constructor<
@@ -90,7 +85,6 @@ export const forumTypes: RegistryTypes = {
   PollAlternative,
   Poll,
   PrivilegedActor,
-  PollAlternativeInput,
   PollInput,
   // runtime alias
   ThreadOf: Thread,

Some files were not shown because too many files changed in this diff