|
@@ -1,4 +1,4 @@
|
|
|
-import { Option, Vec, BTreeMap, u64, bool, Text, Null, Bytes } from '@polkadot/types'
|
|
|
+import { BTreeMap, u64, bool, Text, Null, Bytes } from '@polkadot/types'
|
|
|
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
|
|
@@ -26,13 +26,9 @@ export class ContentId extends Hash {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class ContentIds extends Vec.with(ContentId) {}
|
|
|
export class DataObjectTypeId extends u64 {}
|
|
|
export class DataObjectStorageRelationshipId extends u64 {}
|
|
|
|
|
|
-export class VecContentId extends Vec.with(ContentId) {}
|
|
|
-export class OptionVecContentId extends Option.with(VecContentId) {}
|
|
|
-
|
|
|
export const LiaisonJudgementDef = {
|
|
|
Pending: Null,
|
|
|
Accepted: Null,
|
|
@@ -61,8 +57,6 @@ export class ContentParameters extends JoyStructDecorated({
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class Content extends Vec.with(ContentParameters) {}
|
|
|
-
|
|
|
export class DataObject extends JoyStructDecorated({
|
|
|
owner: StorageObjectOwner,
|
|
|
added_at: BlockAndTime,
|
|
@@ -100,14 +94,12 @@ export class Voucher extends JoyStructDecorated({
|
|
|
objects_used: u64,
|
|
|
}) {}
|
|
|
|
|
|
+// These types names only in the data_directory Events, do they really need a type name alias?
|
|
|
export class VoucherLimit extends u64 {}
|
|
|
export class UploadingStatus extends bool {}
|
|
|
|
|
|
-// Add 'Voucher' ? used as extrinsic parameter..
|
|
|
-
|
|
|
export const mediaTypes: RegistryTypes = {
|
|
|
ContentId,
|
|
|
- ContentIds,
|
|
|
LiaisonJudgement,
|
|
|
DataObject,
|
|
|
DataObjectStorageRelationshipId,
|
|
@@ -117,7 +109,7 @@ export const mediaTypes: RegistryTypes = {
|
|
|
DataObjectsMap,
|
|
|
ContentParameters,
|
|
|
StorageObjectOwner,
|
|
|
- Content,
|
|
|
+ ObjectOwner: StorageObjectOwner,
|
|
|
Voucher,
|
|
|
VoucherLimit,
|
|
|
UploadingStatus,
|