فهرست منبع

types: Add more working groups.

- fixes BagId bug from the storage node
Shamil Gadelshin 3 سال پیش
والد
کامیت
bd17096673
4فایلهای تغییر یافته به همراه10 افزوده شده و 1 حذف شده
  1. 4 0
      runtime-modules/common/src/working_group.rs
  2. 2 0
      types/augment/all/defs.json
  3. 2 0
      types/augment/all/types.ts
  4. 2 1
      types/src/common.ts

+ 4 - 0
runtime-modules/common/src/working_group.rs

@@ -11,6 +11,10 @@ use strum_macros::EnumIter;
 #[cfg_attr(feature = "std", derive(Serialize, Deserialize, EnumIter))]
 #[derive(Encode, Decode, Clone, PartialEq, Eq, Copy, Debug, PartialOrd, Ord)]
 pub enum WorkingGroup {
+    /* Reserved
+        // working_group::Instance0.
+        Reserved,
+    */
     /* Reserved
         /// Forum working group: working_group::Instance1.
         Forum,

+ 2 - 0
types/augment/all/defs.json

@@ -82,6 +82,8 @@
     },
     "WorkingGroup": {
         "_enum": [
+            "Reserved",
+            "Forum",
             "Storage",
             "Content",
             "Operations",

+ 2 - 0
types/augment/all/types.ts

@@ -1404,6 +1404,8 @@ export interface WorkerOf extends Struct {
 
 /** @name WorkingGroup */
 export interface WorkingGroup extends Enum {
+  readonly isReserved: boolean;
+  readonly isForum: boolean;
   readonly isStorage: boolean;
   readonly isContent: boolean;
   readonly isOperations: boolean;

+ 2 - 1
types/src/common.ts

@@ -107,7 +107,8 @@ export class InputValidationLengthConstraint
 }
 
 export const WorkingGroupDef = {
-  // TODO: Forum: Null,
+  Reserved: Null,
+  Forum: Null,
   Storage: Null,
   Content: Null,
   Operations: Null,