Browse Source

generated types

ignazio 3 years ago
parent
commit
a6d433f0da
4 changed files with 259 additions and 394 deletions
  1. 0 0
      chain-metadata.json
  2. 19 71
      types/augment/all/defs.json
  3. 24 107
      types/augment/all/types.ts
  4. 216 216
      types/src/content/index.ts

File diff suppressed because it is too large
+ 0 - 0
chain-metadata.json


+ 19 - 71
types/augment/all/defs.json

@@ -675,20 +675,12 @@
         "assets_to_remove": "BTreeSet<DataObjectId>",
         "collaborators": "Option<BTreeSet<MemberId>>"
     },
-    "ChannelOwnershipTransferRequestId": "u64",
-    "ChannelOwnershipTransferRequest": {
-        "channel_id": "ChannelId",
-        "new_owner": "ChannelOwner",
-        "payment": "u128",
-        "new_reward_account": "Option<GenericAccountId>"
-    },
     "Video": {
         "in_channel": "ChannelId",
-        "in_series": "Option<SeriesId>",
         "is_censored": "bool",
         "enable_comments": "bool",
         "video_post_id": "Option<VideoPostId>",
-        "nft_status": "Option<OwnedNFT>"
+        "nft_status": "Option<OwnedNft>"
     },
     "VideoId": "u64",
     "VideoCategoryId": "u64",
@@ -702,7 +694,8 @@
     "VideoCreationParameters": {
         "assets": "Option<StorageAssets>",
         "meta": "Option<Bytes>",
-        "enable_comments": "bool"
+        "enable_comments": "bool",
+        "auto_issue_nft": "Option<NftIssuanceParameters>"
     },
     "VideoUpdateParameters": {
         "assets_to_upload": "Option<StorageAssets>",
@@ -710,64 +703,6 @@
         "assets_to_remove": "BTreeSet<DataObjectId>",
         "enable_comments": "Option<bool>"
     },
-    "Person": {
-        "controlled_by": "PersonController"
-    },
-    "PersonId": "u64",
-    "PersonController": {
-        "_enum": {
-            "Member": "MemberId",
-            "Curators": "Null"
-        }
-    },
-    "PersonActor": {
-        "_enum": {
-            "Member": "MemberId",
-            "Curator": "CuratorId"
-        }
-    },
-    "PersonCreationParameters": {
-        "assets": "StorageAssets",
-        "meta": "Bytes"
-    },
-    "PersonUpdateParameters": {
-        "assets": "Option<StorageAssets>",
-        "meta": "Option<Bytes>"
-    },
-    "Playlist": {
-        "in_channel": "ChannelId"
-    },
-    "PlaylistId": "u64",
-    "PlaylistCreationParameters": {
-        "meta": "Bytes"
-    },
-    "PlaylistUpdateParameters": {
-        "new_meta": "Bytes"
-    },
-    "SeriesId": "u64",
-    "Series": {
-        "in_channel": "ChannelId",
-        "seasons": "Vec<Season>"
-    },
-    "Season": {
-        "episodes": "Vec<VideoId>"
-    },
-    "SeriesParameters": {
-        "assets": "Option<StorageAssets>",
-        "seasons": "Option<Vec<Option<SeasonParameters>>>",
-        "meta": "Option<Bytes>"
-    },
-    "SeasonParameters": {
-        "assets": "Option<StorageAssets>",
-        "episodes": "Option<Vec<Option<EpisodeParemters>>>",
-        "meta": "Option<Bytes>"
-    },
-    "EpisodeParemters": {
-        "_enum": {
-            "NewVideo": "VideoCreationParameters",
-            "ExistingVideo": "VideoId"
-        }
-    },
     "MaxNumber": "u32",
     "IsCensored": "bool",
     "VideoMigrationConfig": {
@@ -855,14 +790,14 @@
             "BuyNow": "u128"
         }
     },
-    "NFTOwner": {
+    "NftOwner": {
         "_enum": {
             "ChannelOwner": "Null",
             "Member": "MemberId"
         }
     },
-    "OwnedNFT": {
-        "owner": "NFTOwner",
+    "OwnedNft": {
+        "owner": "NftOwner",
         "transactional_status": "TransactionalStatus",
         "creator_royalty": "Option<Royalty>"
     },
@@ -876,5 +811,18 @@
     },
     "CurrencyOf": "u128",
     "CurrencyAmount": "u128",
+    "InitTransactionalStatus": {
+        "_enum": {
+            "Idle": "Null",
+            "InitiatedOfferToMember": "(MemberId,Option<u128>)",
+            "Auction": "AuctionParams"
+        }
+    },
+    "NftIssuanceParameters": {
+        "royalty": "Option<Royalty>",
+        "nft_metadata": "Bytes",
+        "non_channel_owner": "Option<MemberId>",
+        "init_transactional_status": "InitTransactionalStatus"
+    },
     "AccountInfo": "AccountInfoWithRefCount"
 }

+ 24 - 107
types/augment/all/types.ts

@@ -254,17 +254,6 @@ export interface ChannelOwner extends Enum {
   readonly asCurators: CuratorGroupId;
 }
 
-/** @name ChannelOwnershipTransferRequest */
-export interface ChannelOwnershipTransferRequest extends Struct {
-  readonly channel_id: ChannelId;
-  readonly new_owner: ChannelOwner;
-  readonly payment: u128;
-  readonly new_reward_account: Option<GenericAccountId>;
-}
-
-/** @name ChannelOwnershipTransferRequestId */
-export interface ChannelOwnershipTransferRequestId extends u64 {}
-
 /** @name ChannelUpdateParameters */
 export interface ChannelUpdateParameters extends Struct {
   readonly assets_to_upload: Option<StorageAssets>;
@@ -478,14 +467,6 @@ export interface Entry extends Struct {
 /** @name EntryId */
 export interface EntryId extends u32 {}
 
-/** @name EpisodeParemters */
-export interface EpisodeParemters extends Enum {
-  readonly isNewVideo: boolean;
-  readonly asNewVideo: VideoCreationParameters;
-  readonly isExistingVideo: boolean;
-  readonly asExistingVideo: VideoId;
-}
-
 /** @name ExecutionFailed */
 export interface ExecutionFailed extends Struct {
   readonly error: Text;
@@ -550,6 +531,15 @@ export interface GeneralProposalParameters extends Struct {
   readonly exact_execution_block: Option<u32>;
 }
 
+/** @name InitTransactionalStatus */
+export interface InitTransactionalStatus extends Enum {
+  readonly isIdle: boolean;
+  readonly isInitiatedOfferToMember: boolean;
+  readonly asInitiatedOfferToMember: ITuple<[MemberId, Option<u128>]>;
+  readonly isAuction: boolean;
+  readonly asAuction: AuctionParams;
+}
+
 /** @name InputValidationLengthConstraint */
 export interface InputValidationLengthConstraint extends Struct {
   readonly min: u16;
@@ -598,8 +588,16 @@ export interface ModeratorId extends u64 {}
 /** @name ModeratorSet */
 export interface ModeratorSet extends BTreeSet<MemberId> {}
 
-/** @name NFTOwner */
-export interface NFTOwner extends Enum {
+/** @name NftIssuanceParameters */
+export interface NftIssuanceParameters extends Struct {
+  readonly royalty: Option<Royalty>;
+  readonly nft_metadata: Bytes;
+  readonly non_channel_owner: Option<MemberId>;
+  readonly init_transactional_status: InitTransactionalStatus;
+}
+
+/** @name NftOwner */
+export interface NftOwner extends Enum {
   readonly isChannelOwner: boolean;
   readonly isMember: boolean;
   readonly asMember: MemberId;
@@ -650,9 +648,9 @@ export interface OracleWorkEntryJudgment_Winner extends Struct {
   readonly reward: u128;
 }
 
-/** @name OwnedNFT */
-export interface OwnedNFT extends Struct {
-  readonly owner: NFTOwner;
+/** @name OwnedNft */
+export interface OwnedNft extends Struct {
+  readonly owner: NftOwner;
   readonly transactional_status: TransactionalStatus;
   readonly creator_royalty: Option<Royalty>;
 }
@@ -666,59 +664,6 @@ export interface Penalty extends Struct {
   readonly slashing_amount: u128;
 }
 
-/** @name Person */
-export interface Person extends Struct {
-  readonly controlled_by: PersonController;
-}
-
-/** @name PersonActor */
-export interface PersonActor extends Enum {
-  readonly isMember: boolean;
-  readonly asMember: MemberId;
-  readonly isCurator: boolean;
-  readonly asCurator: CuratorId;
-}
-
-/** @name PersonController */
-export interface PersonController extends Enum {
-  readonly isMember: boolean;
-  readonly asMember: MemberId;
-  readonly isCurators: boolean;
-}
-
-/** @name PersonCreationParameters */
-export interface PersonCreationParameters extends Struct {
-  readonly assets: StorageAssets;
-  readonly meta: Bytes;
-}
-
-/** @name PersonId */
-export interface PersonId extends u64 {}
-
-/** @name PersonUpdateParameters */
-export interface PersonUpdateParameters extends Struct {
-  readonly assets: Option<StorageAssets>;
-  readonly meta: Option<Bytes>;
-}
-
-/** @name Playlist */
-export interface Playlist extends Struct {
-  readonly in_channel: ChannelId;
-}
-
-/** @name PlaylistCreationParameters */
-export interface PlaylistCreationParameters extends Struct {
-  readonly meta: Bytes;
-}
-
-/** @name PlaylistId */
-export interface PlaylistId extends u64 {}
-
-/** @name PlaylistUpdateParameters */
-export interface PlaylistUpdateParameters extends Struct {
-  readonly new_meta: Bytes;
-}
-
 /** @name Poll */
 export interface Poll extends Struct {
   readonly description_hash: Hash;
@@ -981,34 +926,6 @@ export interface RewardPaymentType extends Enum {
 /** @name Royalty */
 export interface Royalty extends u64 {}
 
-/** @name Season */
-export interface Season extends Struct {
-  readonly episodes: Vec<VideoId>;
-}
-
-/** @name SeasonParameters */
-export interface SeasonParameters extends Struct {
-  readonly assets: Option<StorageAssets>;
-  readonly episodes: Option<Vec<Option<EpisodeParemters>>>;
-  readonly meta: Option<Bytes>;
-}
-
-/** @name Series */
-export interface Series extends Struct {
-  readonly in_channel: ChannelId;
-  readonly seasons: Vec<Season>;
-}
-
-/** @name SeriesId */
-export interface SeriesId extends u64 {}
-
-/** @name SeriesParameters */
-export interface SeriesParameters extends Struct {
-  readonly assets: Option<StorageAssets>;
-  readonly seasons: Option<Vec<Option<SeasonParameters>>>;
-  readonly meta: Option<Bytes>;
-}
-
 /** @name SetLeadParams */
 export interface SetLeadParams extends ITuple<[MemberId, AccountId]> {}
 
@@ -1157,11 +1074,10 @@ export interface Url extends Text {}
 /** @name Video */
 export interface Video extends Struct {
   readonly in_channel: ChannelId;
-  readonly in_series: Option<SeriesId>;
   readonly is_censored: bool;
   readonly enable_comments: bool;
   readonly video_post_id: Option<VideoPostId>;
-  readonly nft_status: Option<OwnedNFT>;
+  readonly nft_status: Option<OwnedNft>;
 }
 
 /** @name VideoCategory */
@@ -1185,6 +1101,7 @@ export interface VideoCreationParameters extends Struct {
   readonly assets: Option<StorageAssets>;
   readonly meta: Option<Bytes>;
   readonly enable_comments: bool;
+  readonly auto_issue_nft: Option<NftIssuanceParameters>;
 }
 
 /** @name VideoId */

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

@@ -5,299 +5,299 @@ import { JoyStructDecorated, JoyEnum, ChannelId, MemberId, Balance, Hash, BlockN
 import { GenericAccountId as AccountId } from '@polkadot/types/generic/AccountId'
 import { DataObjectId, DataObjectCreationParameters } from '../storage'
 
-export class CuratorId extends u64 { }
-export class CuratorGroupId extends u64 { }
-export class ChannelCategoryId extends u64 { }
-export class VideoId extends u64 { }
-export class VideoCategoryId extends u64 { }
-export class MaxNumber extends u32 { }
-export class IsCensored extends bool { }
-export class VideoPostId extends u64 { }
-export class ReactionId extends u64 { }
-export class CurrencyOf extends BalanceOf { }
-export class CurrencyAmount extends CurrencyOf { }
+export class CuratorId extends u64 {}
+export class CuratorGroupId extends u64 {}
+export class ChannelCategoryId extends u64 {}
+export class VideoId extends u64 {}
+export class VideoCategoryId extends u64 {}
+export class MaxNumber extends u32 {}
+export class IsCensored extends bool {}
+export class VideoPostId extends u64 {}
+export class ReactionId extends u64 {}
+export class CurrencyOf extends BalanceOf {}
+export class CurrencyAmount extends CurrencyOf {}
 
 // NFT types
 
-export class Royalty extends UInt { }
-export class IsExtended extends bool { }
+export class Royalty extends UInt {}
+export class IsExtended extends bool {}
 
 export class EnglishAuctionDetails extends JoyStructDecorated({
-    extension_period: BlockNumber,
-    auction_duration: BlockNumber,
-}) { }
+  extension_period: BlockNumber,
+  auction_duration: BlockNumber,
+}) {}
 
 export class OpenAuctionDetails extends JoyStructDecorated({
-    bid_lock_duration: BlockNumber,
-}) { }
+  bid_lock_duration: BlockNumber,
+}) {}
 
 export class AuctionType extends JoyEnum({
-    English: EnglishAuctionDetails,
-    Open: OpenAuctionDetails,
-}) { }
+  English: EnglishAuctionDetails,
+  Open: OpenAuctionDetails,
+}) {}
 
 export class Bid extends JoyStructDecorated({
-    bidder: MemberId,
-    bidder_account_id: AccountId,
-    amount: Balance,
-    made_at_block: BlockNumber,
-}) { }
+  bidder: MemberId,
+  bidder_account_id: AccountId,
+  amount: Balance,
+  made_at_block: BlockNumber,
+}) {}
 
 export class Auction extends JoyStructDecorated({
-    starting_price: Balance,
-    buy_now_price: Option.with(Balance),
-    auction_type: AuctionType,
-    minimal_bid_step: Balance,
-    last_bid: Option.with(Bid),
-    starts_at: BlockNumber,
-    whitelist: BTreeSet.with(MemberId),
-}) { }
+  starting_price: Balance,
+  buy_now_price: Option.with(Balance),
+  auction_type: AuctionType,
+  minimal_bid_step: Balance,
+  last_bid: Option.with(Bid),
+  starts_at: BlockNumber,
+  whitelist: BTreeSet.with(MemberId),
+}) {}
 
 export class TransactionalStatus extends JoyEnum({
-    Idle: Null,
-    InitiatedOfferToMember: Tuple.with([MemberId, Option.with(Balance)]),
-    Auction,
-    BuyNow: Balance,
-}) { }
-
-export class InitTransactionalStatus extends JoyEnum({
-    Idle: Null,
-    InitiatedOfferToMember: Tuple.with([MemberId, Option.with(Balance)]),
-    Auction: AuctionParams,
-}) { }
+  Idle: Null,
+  InitiatedOfferToMember: Tuple.with([MemberId, Option.with(Balance)]),
+  Auction,
+  BuyNow: Balance,
+}) {}
 
 export class NftOwner extends JoyEnum({
-    ChannelOwner: Null,
-    Member: MemberId,
-}) { }
-
-export class NftIssuanceParameters extend JoyStructDecorated({
-    royalty: Option.with(Royalty),
-    nft_metadata: Bytes,
-    non_channel_owner: Option.with(MemberId),
-    init_transactional_status: InitTransactionalStatusRecord,
-}) { }
+  ChannelOwner: Null,
+  Member: MemberId,
+}) {}
 
 export class OwnedNft extends JoyStructDecorated({
-    owner: NftOwner,
-    transactional_status: TransactionalStatus,
-    creator_royalty: Option.with(Royalty),
-}) { }
+  owner: NftOwner,
+  transactional_status: TransactionalStatus,
+  creator_royalty: Option.with(Royalty),
+}) {}
 
 export class AuctionParams extends JoyStructDecorated({
-    auction_type: AuctionType,
-    starting_price: Balance,
-    minimal_bid_step: Balance,
-    buy_now_price: Option.with(Balance),
-    starts_at: Option.with(BlockNumber),
-    whitelist: BTreeSet.with(MemberId),
-}) { }
+  auction_type: AuctionType,
+  starting_price: Balance,
+  minimal_bid_step: Balance,
+  buy_now_price: Option.with(Balance),
+  starts_at: Option.with(BlockNumber),
+  whitelist: BTreeSet.with(MemberId),
+}) {}
+
+export class InitTransactionalStatus extends JoyEnum({
+  Idle: Null,
+  InitiatedOfferToMember: Tuple.with([MemberId, Option.with(Balance)]),
+  Auction: AuctionParams,
+}) {}
+
+export class NftIssuanceParameters extends JoyStructDecorated({
+  royalty: Option.with(Royalty),
+  nft_metadata: Bytes,
+  non_channel_owner: Option.with(MemberId),
+  init_transactional_status: InitTransactionalStatus,
+}) {}
 
 // end of Nft types
 
 export class StorageAssets extends JoyStructDecorated({
-    object_creation_list: Vec.with(DataObjectCreationParameters),
-    expected_data_size_fee: Balance,
-}) { }
+  object_creation_list: Vec.with(DataObjectCreationParameters),
+  expected_data_size_fee: Balance,
+}) {}
 
 export class CuratorGroup extends JoyStructDecorated({
-    curators: BTreeSet.with(CuratorId),
-    active: bool,
-}) { }
+  curators: BTreeSet.with(CuratorId),
+  active: bool,
+}) {}
 
 export class ContentActor extends JoyEnum({
-    Curator: Tuple.with([CuratorGroupId, CuratorId]),
-    Member: MemberId,
-    Lead: Null,
-}) { }
+  Curator: Tuple.with([CuratorGroupId, CuratorId]),
+  Member: MemberId,
+  Lead: Null,
+}) {}
 
 export class ChannelOwner extends JoyEnum({
-    Member: MemberId,
-    Curators: CuratorGroupId,
-}) { }
+  Member: MemberId,
+  Curators: CuratorGroupId,
+}) {}
 
 export class Channel extends JoyStructDecorated({
-    owner: ChannelOwner,
-    num_videos: u64,
-    is_censored: bool,
-    reward_account: Option.with(AccountId),
-    collaborators: BTreeSet.with(MemberId),
-    moderators: BTreeSet.with(MemberId),
-    cumulative_payout_earned: Balance,
-}) { }
+  owner: ChannelOwner,
+  num_videos: u64,
+  is_censored: bool,
+  reward_account: Option.with(AccountId),
+  collaborators: BTreeSet.with(MemberId),
+  moderators: BTreeSet.with(MemberId),
+  cumulative_payout_earned: Balance,
+}) {}
 
 export class ChannelCreationParameters extends JoyStructDecorated({
-    assets: Option.with(StorageAssets),
-    meta: Option.with(Bytes),
-    reward_account: Option.with(AccountId),
-    collaborators: BTreeSet.with(MemberId),
-    moderators: BTreeSet.with(MemberId),
-}) { }
+  assets: Option.with(StorageAssets),
+  meta: Option.with(Bytes),
+  reward_account: Option.with(AccountId),
+  collaborators: BTreeSet.with(MemberId),
+  moderators: BTreeSet.with(MemberId),
+}) {}
 
 export class ChannelUpdateParameters extends JoyStructDecorated({
-    assets_to_upload: Option.with(StorageAssets),
-    new_meta: Option.with(Bytes),
-    reward_account: Option.with(Option.with(AccountId)),
-    assets_to_remove: BTreeSet.with(DataObjectId),
-    collaborators: Option.with(BTreeSet.with(MemberId)),
-}) { }
+  assets_to_upload: Option.with(StorageAssets),
+  new_meta: Option.with(Bytes),
+  reward_account: Option.with(Option.with(AccountId)),
+  assets_to_remove: BTreeSet.with(DataObjectId),
+  collaborators: Option.with(BTreeSet.with(MemberId)),
+}) {}
 
 export class ChannelOwnershipTransferRequest extends JoyStructDecorated({
-    channel_id: ChannelId,
-    new_owner: ChannelOwner,
-    payment: Balance,
-    new_reward_account: Option.with(AccountId),
-}) { }
+  channel_id: ChannelId,
+  new_owner: ChannelOwner,
+  payment: Balance,
+  new_reward_account: Option.with(AccountId),
+}) {}
 
 export class ChannelCategory extends JoyStructDecorated({
-    // No runtime information is currently stored for a Category.
-}) { }
+  // No runtime information is currently stored for a Category.
+}) {}
 
 export class ChannelCategoryCreationParameters extends JoyStructDecorated({
-    meta: Bytes,
-}) { }
+  meta: Bytes,
+}) {}
 
 export class ChannelCategoryUpdateParameters extends JoyStructDecorated({
-    new_meta: Bytes,
-}) { }
+  new_meta: Bytes,
+}) {}
 
 export class VideoCategory extends JoyStructDecorated({
-    // No runtime information is currently stored for a Category.
-}) { }
+  // No runtime information is currently stored for a Category.
+}) {}
 
 export class VideoCategoryCreationParameters extends JoyStructDecorated({
-    meta: Bytes,
-}) { }
+  meta: Bytes,
+}) {}
 
 export class VideoCategoryUpdateParameters extends JoyStructDecorated({
-    new_meta: Bytes,
-}) { }
+  new_meta: Bytes,
+}) {}
 
 export class Video extends JoyStructDecorated({
-    in_channel: ChannelId,
-    is_censored: bool,
-    enable_comments: bool,
-    video_post_id: Option.with(VideoPostId),
-    nft_status: Option.with(OwnedNft),
-}) { }
+  in_channel: ChannelId,
+  is_censored: bool,
+  enable_comments: bool,
+  video_post_id: Option.with(VideoPostId),
+  nft_status: Option.with(OwnedNft),
+}) {}
 
 export class VideoCreationParameters extends JoyStructDecorated({
-    assets: Option.with(StorageAssets),
-    meta: Option.with(Bytes),
-    enable_comments: bool,
-    auto_issue_nft: Option.with(NftIssuanceParameters),
-}) { }
+  assets: Option.with(StorageAssets),
+  meta: Option.with(Bytes),
+  enable_comments: bool,
+  auto_issue_nft: Option.with(NftIssuanceParameters),
+}) {}
 
 export class VideoUpdateParameters extends JoyStructDecorated({
-    assets_to_upload: Option.with(StorageAssets),
-    new_meta: Option.with(Bytes),
-    assets_to_remove: BTreeSet.with(DataObjectId),
-    enable_comments: Option.with(bool),
-}) { }
+  assets_to_upload: Option.with(StorageAssets),
+  new_meta: Option.with(Bytes),
+  assets_to_remove: BTreeSet.with(DataObjectId),
+  enable_comments: Option.with(bool),
+}) {}
 
 export class VideoMigrationConfig extends JoyStructDecorated({
-    current_id: VideoId,
-    final_id: VideoId,
-}) { }
+  current_id: VideoId,
+  final_id: VideoId,
+}) {}
 export class ChannelMigrationConfig extends JoyStructDecorated({
-    current_id: ChannelId,
-    final_id: ChannelId,
-}) { }
+  current_id: ChannelId,
+  final_id: ChannelId,
+}) {}
 
 export class VideoPostType extends JoyEnum({
-    Description: Null,
-    Comment: VideoPostId,
-}) { }
+  Description: Null,
+  Comment: VideoPostId,
+}) {}
 
 export class VideoPost extends JoyStructDecorated({
-    author: ContentActor,
-    bloat_bond: Balance,
-    replies_count: VideoPostId,
-    post_type: VideoPostType,
-    video_reference: VideoId,
-}) { }
+  author: ContentActor,
+  bloat_bond: Balance,
+  replies_count: VideoPostId,
+  post_type: VideoPostType,
+  video_reference: VideoId,
+}) {}
 
 export class Side extends JoyEnum({
-    Left: Null,
-    Right: Null,
-}) { }
+  Left: Null,
+  Right: Null,
+}) {}
 
 export class ProofElement extends JoyStructDecorated({
-    hash: Hash,
-    side: Side,
-}) { }
+  hash: Hash,
+  side: Side,
+}) {}
 
 export class VideoPostCreationParameters extends JoyStructDecorated({
-    post_type: VideoPostType,
-    video_reference: VideoId,
-}) { }
+  post_type: VideoPostType,
+  video_reference: VideoId,
+}) {}
 
 export class VideoPostDeletionParameters extends JoyStructDecorated({
-    witness: Option.with(Hash),
-    rationale: Option.with(Bytes),
-}) { }
+  witness: Option.with(Hash),
+  rationale: Option.with(Bytes),
+}) {}
 
 export class PullPayment extends JoyStructDecorated({
-    channel_id: ChannelId,
-    cumulative_payout_claimed: Balance,
-    reason: Hash,
-}) { }
+  channel_id: ChannelId,
+  cumulative_payout_claimed: Balance,
+  reason: Hash,
+}) {}
 
-export class ModeratorSet extends BTreeSet.with(MemberId) { }
+export class ModeratorSet extends BTreeSet.with(MemberId) {}
 
 export const contentTypes = {
-    CuratorId,
-    CuratorGroupId,
-    CuratorGroup,
-    ContentActor,
-    StorageAssets,
-    Channel,
-    ChannelOwner,
-    ChannelCategoryId,
-    ChannelCategory,
-    ChannelCategoryCreationParameters,
-    ChannelCategoryUpdateParameters,
-    ChannelCreationParameters,
-    ChannelUpdateParameters,
-    Video,
-    VideoId,
-    VideoCategoryId,
-    VideoCategory,
-    VideoCategoryCreationParameters,
-    VideoCategoryUpdateParameters,
-    VideoCreationParameters,
-    VideoUpdateParameters,
-    MaxNumber,
-    IsCensored,
-    VideoMigrationConfig,
-    ChannelMigrationConfig,
-    // Added in Olympia:
-    VideoPostId,
-    ReactionId,
-    VideoPostType,
-    VideoPost,
-    Side,
-    ProofElement,
-    VideoPostCreationParameters,
-    VideoPostDeletionParameters,
-    PullPayment,
-    ModeratorSet,
-    // Nft
-    Royalty,
-    IsExtended,
-    EnglishAuctionDetails,
-    OpenAuctionDetails,
-    AuctionType,
-    Bid,
-    Auction,
-    TransactionalStatus,
-    NftOwner,
-    OwnedNft,
-    AuctionParams,
-    CurrencyOf,
-    CurrencyAmount,
-    InitTransctionalStatus,
-    NftIssuanceParameters,
+  CuratorId,
+  CuratorGroupId,
+  CuratorGroup,
+  ContentActor,
+  StorageAssets,
+  Channel,
+  ChannelOwner,
+  ChannelCategoryId,
+  ChannelCategory,
+  ChannelCategoryCreationParameters,
+  ChannelCategoryUpdateParameters,
+  ChannelCreationParameters,
+  ChannelUpdateParameters,
+  Video,
+  VideoId,
+  VideoCategoryId,
+  VideoCategory,
+  VideoCategoryCreationParameters,
+  VideoCategoryUpdateParameters,
+  VideoCreationParameters,
+  VideoUpdateParameters,
+  MaxNumber,
+  IsCensored,
+  VideoMigrationConfig,
+  ChannelMigrationConfig,
+  // Added in Olympia:
+  VideoPostId,
+  ReactionId,
+  VideoPostType,
+  VideoPost,
+  Side,
+  ProofElement,
+  VideoPostCreationParameters,
+  VideoPostDeletionParameters,
+  PullPayment,
+  ModeratorSet,
+  // Nft
+  Royalty,
+  IsExtended,
+  EnglishAuctionDetails,
+  OpenAuctionDetails,
+  AuctionType,
+  Bid,
+  Auction,
+  TransactionalStatus,
+  NftOwner,
+  OwnedNft,
+  AuctionParams,
+  CurrencyOf,
+  CurrencyAmount,
+  InitTransactionalStatus,
+  NftIssuanceParameters,
 }
 
 export default contentTypes

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