Browse Source

Update type DAOId to DaoId

Edvin 3 years ago
parent
commit
62f9722ead

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


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


+ 4 - 4
types/augment/all/defs.json

@@ -104,7 +104,7 @@
     "Address": "AccountId",
     "LookupSource": "AccountId",
     "ChannelId": "u64",
-    "DAOId": "u64",
+    "DaoId": "u64",
     "Url": "Text",
     "EntryMethod": {
         "_enum": {
@@ -521,7 +521,7 @@
         "_enum": {
             "Member": "MemberId",
             "Channel": "ChannelId",
-            "DAO": "DAOId",
+            "DAO": "DaoId",
             "Council": "Null",
             "WorkingGroup": "WorkingGroup"
         }
@@ -530,7 +530,7 @@
         "_enum": {
             "Member": "MemberId",
             "Channel": "ChannelId",
-            "DAO": "DAOId",
+            "DAO": "DaoId",
             "Council": "Null",
             "WorkingGroup": "WorkingGroup"
         }
@@ -721,7 +721,7 @@
         "_enum": {
             "Member": "MemberId",
             "Curators": "CuratorGroupId",
-            "Dao": "DAOId"
+            "Dao": "DaoId"
         }
     },
     "ChannelCategoryId": "u64",

+ 5 - 5
types/augment/all/types.ts

@@ -224,7 +224,7 @@ export interface ChannelOwner extends Enum {
   readonly isCurators: boolean;
   readonly asCurators: CuratorGroupId;
   readonly isDao: boolean;
-  readonly asDao: DAOId;
+  readonly asDao: DaoId;
 }
 
 /** @name ChannelOwnershipTransferRequest */
@@ -336,8 +336,8 @@ export interface CuratorOpening extends Null {}
 /** @name CuratorOpeningId */
 export interface CuratorOpeningId extends Null {}
 
-/** @name DAOId */
-export interface DAOId extends u64 {}
+/** @name DaoId */
+export interface DaoId extends u64 {}
 
 /** @name DataObject */
 export interface DataObject extends Struct {
@@ -606,7 +606,7 @@ export interface ObjectOwner extends Enum {
   readonly isChannel: boolean;
   readonly asChannel: ChannelId;
   readonly isDao: boolean;
-  readonly asDao: DAOId;
+  readonly asDao: DaoId;
   readonly isCouncil: boolean;
   readonly isWorkingGroup: boolean;
   readonly asWorkingGroup: WorkingGroup;
@@ -1139,7 +1139,7 @@ export interface StorageObjectOwner extends Enum {
   readonly isChannel: boolean;
   readonly asChannel: ChannelId;
   readonly isDao: boolean;
-  readonly asDao: DAOId;
+  readonly asDao: DaoId;
   readonly isCouncil: boolean;
   readonly isWorkingGroup: boolean;
   readonly asWorkingGroup: WorkingGroup;

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


+ 2 - 2
types/src/common.ts

@@ -47,7 +47,7 @@ export function JoyBTreeSet<V extends UInt>(valType: Constructor<V>): Constructo
 export class Url extends Text {}
 
 export class ChannelId extends u64 {}
-export class DAOId extends u64 {}
+export class DaoId extends u64 {}
 
 // common types between Forum and Proposal Discussions modules
 export class ThreadId extends u64 {}
@@ -157,7 +157,7 @@ export const commonTypes: RegistryTypes = {
   Address,
   LookupSource,
   ChannelId,
-  DAOId,
+  DaoId,
   Url,
 }
 

+ 2 - 2
types/src/content/index.ts

@@ -1,7 +1,7 @@
 import { Vec, Option, Tuple } from '@polkadot/types'
 import { bool, u64, u32, u128, Null, Bytes } from '@polkadot/types/primitive'
 import { MemberId } from '../members'
-import { JoyStructDecorated, JoyEnum, ChannelId, JoyBTreeSet, DAOId, Url } from '../common'
+import { JoyStructDecorated, JoyEnum, ChannelId, JoyBTreeSet, DaoId, Url } from '../common'
 import { ContentParameters } from '../storage'
 import { GenericAccountId as AccountId } from '@polkadot/types/generic/AccountId'
 
@@ -36,7 +36,7 @@ export class ContentActor extends JoyEnum({
 export class ChannelOwner extends JoyEnum({
   Member: MemberId,
   Curators: CuratorGroupId,
-  Dao: DAOId,
+  Dao: DaoId,
 }) {}
 
 export class Channel extends JoyStructDecorated({

+ 2 - 2
types/src/storage.ts

@@ -1,5 +1,5 @@
 import { BTreeMap, u64, bool, Text, Null, Bytes, Option } from '@polkadot/types'
-import { BlockAndTime, JoyEnum, JoyStructDecorated, Hash, ChannelId, DAOId, WorkingGroup } from './common'
+import { BlockAndTime, JoyEnum, JoyStructDecorated, Hash, ChannelId, DaoId, WorkingGroup } from './common'
 import { MemberId } from './members'
 import { StorageProviderId } from './working-group' // this should be in discovery really
 import { randomAsU8a } from '@polkadot/util-crypto'
@@ -39,7 +39,7 @@ export class LiaisonJudgement extends JoyEnum(LiaisonJudgementDef) {}
 export class StorageObjectOwner extends JoyEnum({
   Member: MemberId,
   Channel: ChannelId,
-  DAO: DAOId,
+  DAO: DaoId,
   Council: Null,
   WorkingGroup: WorkingGroup,
 }) {}

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