Explorar o código

Update types augmentations

Leszek Wiesner %!s(int64=3) %!d(string=hai) anos
pai
achega
7f53ee4a67

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 3 - 4
types/augment-codec/all.ts


+ 30 - 19
types/augment-codec/augment-api-consts.ts

@@ -1,14 +1,13 @@
 // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
 /* eslint-disable */
 
-import { Vec } from '@polkadot/types/codec';
-import { u32, u64, u8 } from '@polkadot/types/primitive';
-import { ProposalParameters } from './all';
-import { Balance, BalanceOf, BlockNumber, Moment, Perbill, RuntimeDbWeight, Weight } from '@polkadot/types/interfaces/runtime';
-import { SessionIndex } from '@polkadot/types/interfaces/session';
-import { EraIndex } from '@polkadot/types/interfaces/staking';
-import { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
-import { ApiTypes } from '@polkadot/api/types';
+import type { Vec, u32, u64, u8 } from '@polkadot/types';
+import type { MaxNumber, ProposalParameters } from './all';
+import type { Balance, BalanceOf, BlockNumber, Moment, Perbill, RuntimeDbWeight, Weight } from '@polkadot/types/interfaces/runtime';
+import type { SessionIndex } from '@polkadot/types/interfaces/session';
+import type { EraIndex } from '@polkadot/types/interfaces/staking';
+import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
+import type { ApiTypes } from '@polkadot/api/types';
 
 declare module '@polkadot/api/types/consts' {
   export interface AugmentedConsts<ApiType> {
@@ -55,6 +54,12 @@ declare module '@polkadot/api/types/consts' {
       /**
        * Exports const -  max number of curators per group
        **/
+      maxNumberOfCuratorsPerGroup: MaxNumber & AugmentedConst<ApiType>;
+    };
+    contentDirectoryWorkingGroup: {
+      /**
+       * Exports const -  max simultaneous active worker number.
+       **/
       maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
     };
     council: {
@@ -88,12 +93,6 @@ declare module '@polkadot/api/types/consts' {
        **/
       minNumberOfExtraCandidates: u64 & AugmentedConst<ApiType>;
     };
-    contentDirectoryWorkingGroup: {
-      /**
-       * Exports const -  max simultaneous active worker number.
-       **/
-      maxObjectsPerInjection: u32 & AugmentedConst<ApiType>;
-    };
     finalityTracker: {
       /**
        * The delay after which point things become suspicious. Default is 1000.
@@ -110,6 +109,12 @@ declare module '@polkadot/api/types/consts' {
        **/
       maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
     };
+    gatewayWorkingGroup: {
+      /**
+       * Exports const -  max simultaneous active worker number.
+       **/
+      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
+    };
     members: {
       /**
        * Exports const - default balance for the invited member.
@@ -130,6 +135,12 @@ declare module '@polkadot/api/types/consts' {
        **/
       maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
     };
+    operationsWorkingGroup: {
+      /**
+       * Exports const -  max simultaneous active worker number.
+       **/
+      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
+    };
     proposalsCodex: {
       /**
        * Exports 'Amend Constitution' proposal parameters.
@@ -257,23 +268,23 @@ declare module '@polkadot/api/types/consts' {
       bondingDuration: EraIndex & AugmentedConst<ApiType>;
       /**
        * The number of blocks before the end of the era from which election submissions are allowed.
-       *
+       * 
        * Setting this to zero will disable the offchain compute and only on-chain seq-phragmen will
        * be used.
-       *
+       * 
        * This is bounded by being within the last session. Hence, setting it to a value more than the
        * length of a session will be pointless.
        **/
       electionLookahead: BlockNumber & AugmentedConst<ApiType>;
       /**
        * Maximum number of balancing iterations to run in the offchain submission.
-       *
+       * 
        * If set to 0, balance_solution will not be executed at all.
        **/
       maxIterations: u32 & AugmentedConst<ApiType>;
       /**
        * The maximum number of nominators rewarded for each validator.
-       *
+       * 
        * For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can claim
        * their reward. This used to limit the i/o cost for the nominator payout.
        **/
@@ -288,7 +299,7 @@ declare module '@polkadot/api/types/consts' {
       sessionsPerEra: SessionIndex & AugmentedConst<ApiType>;
       /**
        * Number of eras that slashes are deferred by, after computation.
-       *
+       * 
        * This should be less than the bonding duration.
        * Set to 0 if slashes should be applied immediately, without opportunity for
        * intervention.

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 390 - 466
types/augment-codec/augment-api-errors.ts


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 795 - 135
types/augment-codec/augment-api-events.ts


+ 219 - 197
types/augment-codec/augment-api-query.ts

@@ -1,24 +1,23 @@
 // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
 /* eslint-disable */
 
-import { AnyNumber, ITuple, Observable } from '@polkadot/types/types';
-import { Option, Vec } from '@polkadot/types/codec';
-import { Bytes, bool, u32, u64, u8 } from '@polkadot/types/primitive';
-import { Application, ApplicationId, BountyActor, BountyId, Candidate, CastVoteOf, Category, CategoryId, ClassId, ClassOf, ConstitutionInfo, ContentId, CouncilMemberOf, CouncilStageUpdate, CuratorGroup, CuratorGroupId, DataObject, DataObjectStorageRelationship, DataObjectStorageRelationshipId, DataObjectType, DataObjectTypeId, DiscussionPost, DiscussionThread, EntityController, EntityCreationVoucher, EntityId, EntityOf, Entry, EntryId, ForumUserId, MemberId, Membership, MemoText, ModeratorId, Opening, OpeningId, Post, PostId, PropertyId, ProposalId, ProposalOf, ReferendumStage, Reply, ReplyId, ServiceProviderRecord, StakingAccountMemberBinding, StorageProviderId, ThreadId, ThreadOf, Url, VoteKind, Worker, WorkerId } from './all';
-import { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
-import { BabeAuthorityWeight, MaybeRandomness, NextConfigDescriptor, Randomness } from '@polkadot/types/interfaces/babe';
-import { AccountData, BalanceLock } from '@polkadot/types/interfaces/balances';
-import { AuthorityId } from '@polkadot/types/interfaces/consensus';
-import { SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa';
-import { AuthIndex } from '@polkadot/types/interfaces/imOnline';
-import { DeferredOffenceOf, Kind, OffenceDetails, OpaqueTimeSlot, ReportIdOf } from '@polkadot/types/interfaces/offences';
-import { AccountId, Balance, BalanceOf, BlockNumber, ExtrinsicsWeight, Hash, KeyTypeId, Moment, Perbill, Releases, ValidatorId } from '@polkadot/types/interfaces/runtime';
-import { Keys, SessionIndex } from '@polkadot/types/interfaces/session';
-import { ActiveEraInfo, ElectionResult, ElectionScore, ElectionStatus, EraIndex, EraRewardPoints, Exposure, Forcing, Nominations, RewardDestination, SlashingSpans, SpanIndex, SpanRecord, StakingLedger, UnappliedSlash, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
-import { AccountInfo, DigestOf, EventIndex, EventRecord, LastRuntimeUpgradeInfo, Phase } from '@polkadot/types/interfaces/system';
-import { Bounty } from '@polkadot/types/interfaces/treasury';
-import { Multiplier } from '@polkadot/types/interfaces/txpayment';
-import { ApiTypes } from '@polkadot/api/types';
+import type { Bytes, Option, Vec, bool, u32, u64, u8 } from '@polkadot/types';
+import type { AnyNumber, ITuple, Observable } from '@polkadot/types/types';
+import type { Application, ApplicationId, BountyActor, BountyId, Candidate, CastVoteOf, Category, CategoryId, Channel, ChannelCategory, ChannelCategoryId, ChannelId, ChannelOwnershipTransferRequest, ChannelOwnershipTransferRequestId, ConstitutionInfo, ContentId, CouncilMemberOf, CouncilStageUpdate, CuratorGroup, CuratorGroupId, DataObject, DataObjectStorageRelationship, DataObjectStorageRelationshipId, DataObjectType, DataObjectTypeId, DiscussionPost, DiscussionThread, Entry, EntryId, ForumUserId, MemberId, Membership, MemoText, ModeratorId, ObjectOwner, Opening, OpeningId, Person, PersonId, Playlist, PlaylistId, Post, PostId, ProposalId, ProposalOf, ReferendumStage, Reply, ReplyId, Series, SeriesId, StakingAccountMemberBinding, ThreadId, ThreadOf, Video, VideoCategory, VideoCategoryId, VideoId, VoteKind, Voucher, Worker, WorkerId } from './all';
+import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
+import type { BabeAuthorityWeight, MaybeRandomness, NextConfigDescriptor, Randomness } from '@polkadot/types/interfaces/babe';
+import type { AccountData, BalanceLock } from '@polkadot/types/interfaces/balances';
+import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
+import type { SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa';
+import type { AuthIndex } from '@polkadot/types/interfaces/imOnline';
+import type { DeferredOffenceOf, Kind, OffenceDetails, OpaqueTimeSlot, ReportIdOf } from '@polkadot/types/interfaces/offences';
+import type { AccountId, Balance, BalanceOf, BlockNumber, ExtrinsicsWeight, Hash, KeyTypeId, Moment, Perbill, Releases, ValidatorId } from '@polkadot/types/interfaces/runtime';
+import type { Keys, SessionIndex } from '@polkadot/types/interfaces/session';
+import type { ActiveEraInfo, ElectionResult, ElectionScore, ElectionStatus, EraIndex, EraRewardPoints, Exposure, Forcing, Nominations, RewardDestination, SlashingSpans, SpanIndex, SpanRecord, StakingLedger, UnappliedSlash, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
+import type { AccountInfo, DigestOf, EventIndex, EventRecord, LastRuntimeUpgradeInfo, Phase } from '@polkadot/types/interfaces/system';
+import type { Bounty } from '@polkadot/types/interfaces/treasury';
+import type { Multiplier } from '@polkadot/types/interfaces/txpayment';
+import type { ApiTypes } from '@polkadot/api/types';
 
 declare module '@polkadot/api/types/storage' {
   export interface AugmentedQueries<ApiType> {
@@ -61,7 +60,7 @@ declare module '@polkadot/api/types/storage' {
       initialized: AugmentedQuery<ApiType, () => Observable<Option<MaybeRandomness>>, []>;
       /**
        * How late the current block is compared to its parent.
-       *
+       * 
        * This entry is populated as part of block execution and is cleaned up
        * on block finalization. Querying this storage entry outside of block
        * execution context should always yield zero.
@@ -77,9 +76,9 @@ declare module '@polkadot/api/types/storage' {
       nextRandomness: AugmentedQuery<ApiType, () => Observable<Randomness>, []>;
       /**
        * The epoch randomness for the *current* epoch.
-       *
+       * 
        * # Security
-       *
+       * 
        * This MUST NOT be used for gambling, as it can be influenced by a
        * malicious validator in the short term. It MAY be used in many
        * cryptographic protocols, however, so long as one remembers that this
@@ -90,11 +89,11 @@ declare module '@polkadot/api/types/storage' {
       randomness: AugmentedQuery<ApiType, () => Observable<Randomness>, []>;
       /**
        * Randomness under construction.
-       *
+       * 
        * We make a tradeoff between storage accesses and list length.
        * We store the under-construction randomness in segments of up to
        * `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
-       *
+       * 
        * Once a segment reaches this length, we begin the next one.
        * We reset all segments and return to `0` at the beginning of every
        * epoch.
@@ -108,7 +107,7 @@ declare module '@polkadot/api/types/storage' {
     balances: {
       /**
        * The balance of an account.
-       *
+       * 
        * NOTE: This is only used in the case that this module is used to store balances.
        **/
       account: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<AccountData>, [AccountId]>;
@@ -119,7 +118,7 @@ declare module '@polkadot/api/types/storage' {
       locks: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Vec<BalanceLock>>, [AccountId]>;
       /**
        * Storage version of the pallet.
-       *
+       * 
        * This is set to v2.0.0 for new networks.
        **/
       storageVersion: AugmentedQuery<ApiType, () => Observable<Releases>, []>;
@@ -132,47 +131,46 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Post by unique blog and post identificators
        **/
-      postById: AugmentedQuery<ApiType, (arg: PostId | AnyNumber | Uint8Array) => Observable<Post>>;
+      postById: AugmentedQuery<ApiType, (arg: PostId | AnyNumber | Uint8Array) => Observable<Post>, [PostId]>;
       /**
        * Maps, representing id => item relationship for blogs, posts and replies related structures
        * Post count
        **/
-      postCount: AugmentedQuery<ApiType, () => Observable<PostId>>;
+      postCount: AugmentedQuery<ApiType, () => Observable<PostId>, []>;
       /**
        * Reply by unique blog, post and reply identificators
        **/
-      replyById: AugmentedQueryDoubleMap<ApiType, (key1: PostId | AnyNumber | Uint8Array, key2: ReplyId | AnyNumber | Uint8Array) => Observable<Reply>>;
+      replyById: AugmentedQueryDoubleMap<ApiType, (key1: PostId | AnyNumber | Uint8Array, key2: ReplyId | AnyNumber | Uint8Array) => Observable<Reply>, [PostId, ReplyId]>;
     };
     bounty: {
       /**
        * Bounty storage.
        **/
-      bounties: AugmentedQuery<ApiType, (arg: BountyId | AnyNumber | Uint8Array) => Observable<Bounty>>;
+      bounties: AugmentedQuery<ApiType, (arg: BountyId | AnyNumber | Uint8Array) => Observable<Bounty>, [BountyId]>;
       /**
        * Double map for bounty funding. It stores a member or council funding for bounties.
        **/
-      bountyContributions: AugmentedQueryDoubleMap<ApiType, (key1: BountyId | AnyNumber | Uint8Array, key2: BountyActor | { Council: any } | { Member: any } | string | Uint8Array) => Observable<BalanceOf>>;
+      bountyContributions: AugmentedQueryDoubleMap<ApiType, (key1: BountyId | AnyNumber | Uint8Array, key2: BountyActor | { Council: any } | { Member: any } | string | Uint8Array) => Observable<BalanceOf>, [BountyId, BountyActor]>;
       /**
        * Count of all bounties that have been created.
        **/
-      bountyCount: AugmentedQuery<ApiType, () => Observable<u32>>;
+      bountyCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
       /**
        * Work entry storage map.
        **/
-      entries: AugmentedQuery<ApiType, (arg: EntryId | AnyNumber | Uint8Array) => Observable<Entry>>;
+      entries: AugmentedQuery<ApiType, (arg: EntryId | AnyNumber | Uint8Array) => Observable<Entry>, [EntryId]>;
       /**
        * Count of all work entries that have been created.
        **/
-      entryCount: AugmentedQuery<ApiType, () => Observable<u32>>;
+      entryCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
     };
     constitution: {
-      constitution: AugmentedQuery<ApiType, () => Observable<ConstitutionInfo>>;
+      constitution: AugmentedQuery<ApiType, () => Observable<ConstitutionInfo>, []>;
     };
-    contentDirectory: {
-      /**
-       * Map, representing ClassId -> Class relation
-       **/
-      classById: AugmentedQuery<ApiType, (arg: ClassId | AnyNumber | Uint8Array) => Observable<ClassOf>>;
+    content: {
+      channelById: AugmentedQuery<ApiType, (arg: ChannelId | AnyNumber | Uint8Array) => Observable<Channel>, [ChannelId]>;
+      channelCategoryById: AugmentedQuery<ApiType, (arg: ChannelCategoryId | AnyNumber | Uint8Array) => Observable<ChannelCategory>, [ChannelCategoryId]>;
+      channelOwnershipTransferRequestById: AugmentedQuery<ApiType, (arg: ChannelOwnershipTransferRequestId | AnyNumber | Uint8Array) => Observable<ChannelOwnershipTransferRequest>, [ChannelOwnershipTransferRequestId]>;
       /**
        * Map, representing  CuratorGroupId -> CuratorGroup relation
        **/
@@ -200,15 +198,15 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Maps identifier to worker application on opening.
        **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>>;
+      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>, [ApplicationId]>;
       /**
        * Budget for the working group.
        **/
-      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>>;
+      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
       /**
        * Current group lead.
        **/
-      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>>;
+      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
       /**
        * Next identifier value for new worker application.
        **/
@@ -224,197 +222,242 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Maps identifier to job opening.
        **/
-      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>>;
+      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>, [OpeningId]>;
       /**
        * Status text hash.
        **/
-      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>>;
+      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>, []>;
       /**
        * Maps identifier to corresponding worker.
        **/
-      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>>;
+      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>, [WorkerId]>;
     };
     council: {
       /**
        * Index of the current candidacy period. It is incremented everytime announcement period
        * starts.
        **/
-      announcementPeriodNr: AugmentedQuery<ApiType, () => Observable<u64>>;
+      announcementPeriodNr: AugmentedQuery<ApiType, () => Observable<u64>, []>;
       /**
        * Budget for the council's elected members rewards.
        **/
-      budget: AugmentedQuery<ApiType, () => Observable<Balance>>;
+      budget: AugmentedQuery<ApiType, () => Observable<Balance>, []>;
       /**
        * Amount of balance to be refilled every budget period
        **/
-      budgetIncrement: AugmentedQuery<ApiType, () => Observable<Balance>>;
+      budgetIncrement: AugmentedQuery<ApiType, () => Observable<Balance>, []>;
       /**
        * Map of all candidates that ever candidated and haven't unstake yet.
        **/
-      candidates: AugmentedQuery<ApiType, (arg: MemberId | AnyNumber | Uint8Array) => Observable<Candidate>>;
+      candidates: AugmentedQuery<ApiType, (arg: MemberId | AnyNumber | Uint8Array) => Observable<Candidate>, [MemberId]>;
       /**
        * Current council members
        **/
-      councilMembers: AugmentedQuery<ApiType, () => Observable<Vec<CouncilMemberOf>>>;
+      councilMembers: AugmentedQuery<ApiType, () => Observable<Vec<CouncilMemberOf>>, []>;
       /**
        * Councilor reward per block
        **/
-      councilorReward: AugmentedQuery<ApiType, () => Observable<Balance>>;
+      councilorReward: AugmentedQuery<ApiType, () => Observable<Balance>, []>;
       /**
        * The next block in which the budget will be increased.
        **/
-      nextBudgetRefill: AugmentedQuery<ApiType, () => Observable<BlockNumber>>;
+      nextBudgetRefill: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
       /**
        * The next block in which the elected council member rewards will be payed.
        **/
-      nextRewardPayments: AugmentedQuery<ApiType, () => Observable<BlockNumber>>;
+      nextRewardPayments: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
       /**
        * Current council voting stage
        **/
-      stage: AugmentedQuery<ApiType, () => Observable<CouncilStageUpdate>>;
+      stage: AugmentedQuery<ApiType, () => Observable<CouncilStageUpdate>, []>;
     };
     dataDirectory: {
       /**
-       * Account of forum sudo.
+       * Maps data objects by their content id.
        **/
-      forumSudo: AugmentedQuery<ApiType, () => Observable<Option<AccountId>>, []>;
+      dataByContentId: AugmentedQuery<ApiType, (arg: ContentId | string | Uint8Array) => Observable<DataObject>, [ContentId]>;
       /**
-       * Category identifier value to be used for the next Category created.
+       * Default content voucher for all actors.
        **/
-      nextCategoryId: AugmentedQuery<ApiType, () => Observable<CategoryId>, []>;
+      defaultVoucher: AugmentedQuery<ApiType, () => Observable<Voucher>, []>;
       /**
-       * Post identifier value to be used for for next post created.
+       * Global voucher.
        **/
-      nextPostId: AugmentedQuery<ApiType, () => Observable<PostId>, []>;
+      globalVoucher: AugmentedQuery<ApiType, () => Observable<Voucher>, []>;
       /**
-       * Thread identifier value to be used for next Thread in threadById.
+       * If all new uploads blocked
        **/
-      nextThreadId: AugmentedQuery<ApiType, () => Observable<ThreadId>, []>;
+      uploadingBlocked: AugmentedQuery<ApiType, () => Observable<bool>, []>;
       /**
-       * Map post identifier to corresponding post.
+       * Upper bound for the Voucher objects number limit.
        **/
-      postById: AugmentedQuery<ApiType, (arg: PostId | AnyNumber | Uint8Array) => Observable<Post>, [PostId]>;
-      postModerationRationaleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      postTextConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
+      voucherObjectsLimitUpperBound: AugmentedQuery<ApiType, () => Observable<u64>, []>;
       /**
-       * Map thread identifier to corresponding thread.
+       * Maps storage owner to it`s voucher. Created when the first upload by the new actor occured.
        **/
-      threadById: AugmentedQuery<ApiType, (arg: ThreadId | AnyNumber | Uint8Array) => Observable<Thread>, [ThreadId]>;
-      threadModerationRationaleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      threadTitleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
+      vouchers: AugmentedQuery<ApiType, (arg: ObjectOwner | { Member: any } | { Channel: any } | { DAO: any } | { Council: any } | { WorkingGroup: any } | string | Uint8Array) => Observable<Voucher>, [ObjectOwner]>;
+      /**
+       * Upper bound for the Voucher size limit.
+       **/
+      voucherSizeLimitUpperBound: AugmentedQuery<ApiType, () => Observable<u64>, []>;
     };
-    gatewayWorkingGroup: {
+    dataObjectStorageRegistry: {
       /**
-       * Count of active workers.
+       * Defines first relationship id.
        **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
+      firstRelationshipId: AugmentedQuery<ApiType, () => Observable<DataObjectStorageRelationshipId>, []>;
       /**
-       * Maps identifier to worker application on opening.
+       * Defines next relationship id.
        **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [ApplicationId]>;
+      nextRelationshipId: AugmentedQuery<ApiType, () => Observable<DataObjectStorageRelationshipId>, []>;
       /**
-       * The current lead.
+       * Mapping of Data object types
        **/
-      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
+      relationships: AugmentedQuery<ApiType, (arg: DataObjectStorageRelationshipId | AnyNumber | Uint8Array) => Observable<Option<DataObjectStorageRelationship>>, [DataObjectStorageRelationshipId]>;
       /**
-       * Map member id by hiring application id.
-       * Required by StakingEventsHandler callback call to refund the balance on unstaking.
+       * Keeps a list of storage relationships per content id.
        **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
+      relationshipsByContentId: AugmentedQuery<ApiType, (arg: ContentId | string | Uint8Array) => Observable<Vec<DataObjectStorageRelationshipId>>, [ContentId]>;
+    };
+    dataObjectTypeRegistry: {
       /**
-       * The mint currently funding the rewards for this module.
+       * Mapping of Data object types.
        **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
+      dataObjectTypes: AugmentedQuery<ApiType, (arg: DataObjectTypeId | AnyNumber | Uint8Array) => Observable<Option<DataObjectType>>, [DataObjectTypeId]>;
       /**
-       * Next identifier value for new worker application.
+       * Data object type ids should start at this value.
        **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
+      firstDataObjectTypeId: AugmentedQuery<ApiType, () => Observable<DataObjectTypeId>, []>;
       /**
-       * Next identifier value for new worker opening.
+       * Provides id counter for the data object types.
        **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
+      nextDataObjectTypeId: AugmentedQuery<ApiType, () => Observable<DataObjectTypeId>, []>;
+    };
+    forum: {
       /**
-       * Next identifier for new worker.
+       * Map category identifier to corresponding category.
        **/
-      categoryById: AugmentedQuery<ApiType, (arg: CategoryId | AnyNumber | Uint8Array) => Observable<Category>>;
+      categoryById: AugmentedQuery<ApiType, (arg: CategoryId | AnyNumber | Uint8Array) => Observable<Category>, [CategoryId]>;
       /**
        * Moderator set for each Category
        **/
-      categoryByModerator: AugmentedQueryDoubleMap<ApiType, (key1: CategoryId | AnyNumber | Uint8Array, key2: ModeratorId | AnyNumber | Uint8Array) => Observable<ITuple<[]>>>;
+      categoryByModerator: AugmentedQueryDoubleMap<ApiType, (key1: CategoryId | AnyNumber | Uint8Array, key2: ModeratorId | AnyNumber | Uint8Array) => Observable<ITuple<[]>>, [CategoryId, ModeratorId]>;
       /**
        * Counter for all existing categories.
        **/
-      categoryCounter: AugmentedQuery<ApiType, () => Observable<CategoryId>>;
+      categoryCounter: AugmentedQuery<ApiType, () => Observable<CategoryId>, []>;
       /**
        * If data migration is done, set as configible for unit test purpose
        **/
-      dataMigrationDone: AugmentedQuery<ApiType, () => Observable<bool>>;
+      dataMigrationDone: AugmentedQuery<ApiType, () => Observable<bool>, []>;
       /**
-       * Worker application human readable text length limits
+       * Category identifier value to be used for the next Category created.
        **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
+      nextCategoryId: AugmentedQuery<ApiType, () => Observable<CategoryId>, []>;
       /**
-       * Maps identifier to corresponding worker.
+       * Post identifier value to be used for for next post created.
        **/
-      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<WorkerOf>, [WorkerId]>;
+      nextPostId: AugmentedQuery<ApiType, () => Observable<PostId>, []>;
       /**
-       * Worker exit rationale text length limits.
+       * Thread identifier value to be used for next Thread in threadById.
        **/
-      workerExitRationaleText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
+      nextThreadId: AugmentedQuery<ApiType, () => Observable<ThreadId>, []>;
       /**
        * Unique thread poll voters. This private double map prevents double voting.
        **/
-      pollVotes: AugmentedQueryDoubleMap<ApiType, (key1: ThreadId | AnyNumber | Uint8Array, key2: ForumUserId | AnyNumber | Uint8Array) => Observable<bool>>;
+      pollVotes: AugmentedQueryDoubleMap<ApiType, (key1: ThreadId | AnyNumber | Uint8Array, key2: ForumUserId | AnyNumber | Uint8Array) => Observable<bool>, [ThreadId, ForumUserId]>;
       /**
        * Map post identifier to corresponding post.
        **/
-      postById: AugmentedQueryDoubleMap<ApiType, (key1: ThreadId | AnyNumber | Uint8Array, key2: PostId | AnyNumber | Uint8Array) => Observable<Post>>;
+      postById: AugmentedQueryDoubleMap<ApiType, (key1: ThreadId | AnyNumber | Uint8Array, key2: PostId | AnyNumber | Uint8Array) => Observable<Post>, [ThreadId, PostId]>;
       /**
-       * Worker storage size upper bound.
+       * Map thread identifier to corresponding thread.
        **/
-      threadById: AugmentedQueryDoubleMap<ApiType, (key1: CategoryId | AnyNumber | Uint8Array, key2: ThreadId | AnyNumber | Uint8Array) => Observable<ThreadOf>>;
+      threadById: AugmentedQueryDoubleMap<ApiType, (key1: CategoryId | AnyNumber | Uint8Array, key2: ThreadId | AnyNumber | Uint8Array) => Observable<ThreadOf>, [CategoryId, ThreadId]>;
     };
     forumWorkingGroup: {
       /**
        * Count of active workers.
        **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>>;
+      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
+      /**
+       * Maps identifier to worker application on opening.
+       **/
+      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>, [ApplicationId]>;
+      /**
+       * Budget for the working group.
+       **/
+      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
+      /**
+       * Current group lead.
+       **/
+      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
+      /**
+       * Next identifier value for new worker application.
+       **/
+      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
+      /**
+       * Next identifier value for new job opening.
+       **/
+      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
+      /**
+       * Next identifier for a new worker.
+       **/
+      nextWorkerId: AugmentedQuery<ApiType, () => Observable<WorkerId>, []>;
+      /**
+       * Maps identifier to job opening.
+       **/
+      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>, [OpeningId]>;
+      /**
+       * Status text hash.
+       **/
+      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>, []>;
+      /**
+       * Maps identifier to corresponding worker.
+       **/
+      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>, [WorkerId]>;
+    };
+    gatewayWorkingGroup: {
+      /**
+       * Count of active workers.
+       **/
+      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
       /**
        * Maps identifier to worker application on opening.
        **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>>;
+      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>, [ApplicationId]>;
       /**
        * Budget for the working group.
        **/
-      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>>;
+      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
       /**
        * Current group lead.
        **/
-      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>>;
+      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
       /**
        * Next identifier value for new worker application.
        **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>>;
+      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
       /**
        * Next identifier value for new job opening.
        **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>>;
+      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
       /**
        * Next identifier for a new worker.
        **/
-      nextWorkerId: AugmentedQuery<ApiType, () => Observable<WorkerId>>;
+      nextWorkerId: AugmentedQuery<ApiType, () => Observable<WorkerId>, []>;
       /**
        * Maps identifier to job opening.
        **/
-      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>>;
+      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>, [OpeningId]>;
       /**
        * Status text hash.
        **/
-      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>>;
+      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>, []>;
       /**
        * Maps identifier to corresponding worker.
        **/
-      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>>;
+      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>, [WorkerId]>;
     };
     grandpa: {
       /**
@@ -433,7 +476,7 @@ declare module '@polkadot/api/types/storage' {
       /**
        * A mapping from grandpa set ID to the index of the *most recent* session for which its
        * members were responsible.
-       *
+       * 
        * TWOX-NOTE: `SetId` is not under user control.
        **/
       setIdSession: AugmentedQuery<ApiType, (arg: SetId | AnyNumber | Uint8Array) => Observable<Option<SessionIndex>>, [SetId]>;
@@ -454,7 +497,7 @@ declare module '@polkadot/api/types/storage' {
       authoredBlocks: AugmentedQueryDoubleMap<ApiType, (key1: SessionIndex | AnyNumber | Uint8Array, key2: ValidatorId | string | Uint8Array) => Observable<u32>, [SessionIndex, ValidatorId]>;
       /**
        * The block number after which it's ok to send heartbeats in current session.
-       *
+       * 
        * At the beginning of each session we set this to a value that should
        * fall roughly in the middle of the session duration.
        * The idea is to first wait for the validators to produce a block
@@ -475,23 +518,23 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Initial invitation balance for the invited member.
        **/
-      initialInvitationBalance: AugmentedQuery<ApiType, () => Observable<BalanceOf>>;
+      initialInvitationBalance: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
       /**
        * Initial invitation count for the newly bought membership.
        **/
-      initialInvitationCount: AugmentedQuery<ApiType, () => Observable<u32>>;
+      initialInvitationCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
       /**
        * Registered unique handles hash and their mapping to their owner.
        **/
-      memberIdByHandleHash: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<MemberId>>;
+      memberIdByHandleHash: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<MemberId>, [Bytes]>;
       /**
        * Mapping of member's id to their membership profile.
        **/
-      membershipById: AugmentedQuery<ApiType, (arg: MemberId | AnyNumber | Uint8Array) => Observable<Membership>>;
+      membershipById: AugmentedQuery<ApiType, (arg: MemberId | AnyNumber | Uint8Array) => Observable<Membership>, [MemberId]>;
       /**
        * Current membership price.
        **/
-      membershipPrice: AugmentedQuery<ApiType, () => Observable<BalanceOf>>;
+      membershipPrice: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
       /**
        * MemberId to assign to next member that is added to the registry, and is also the
        * total number of members created. MemberIds start at Zero.
@@ -500,57 +543,57 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Referral cut percent of the membership fee to receive on buying the membership.
        **/
-      referralCut: AugmentedQuery<ApiType, () => Observable<u8>>;
+      referralCut: AugmentedQuery<ApiType, () => Observable<u8>, []>;
       /**
        * Double of a staking account id and member id to the confirmation status.
        **/
-      stakingAccountIdMemberStatus: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<StakingAccountMemberBinding>>;
+      stakingAccountIdMemberStatus: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<StakingAccountMemberBinding>, [AccountId]>;
     };
     membershipWorkingGroup: {
       /**
        * Count of active workers.
        **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>>;
+      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
       /**
        * Maps identifier to worker application on opening.
        **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>>;
+      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>, [ApplicationId]>;
       /**
        * Budget for the working group.
        **/
-      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>>;
+      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
       /**
        * Current group lead.
        **/
-      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>>;
+      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
       /**
        * Next identifier value for new worker application.
        **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>>;
+      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
       /**
        * Next identifier value for new job opening.
        **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>>;
+      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
       /**
        * Next identifier for a new worker.
        **/
-      nextWorkerId: AugmentedQuery<ApiType, () => Observable<WorkerId>>;
+      nextWorkerId: AugmentedQuery<ApiType, () => Observable<WorkerId>, []>;
       /**
        * Maps identifier to job opening.
        **/
-      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>>;
+      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>, [OpeningId]>;
       /**
        * Status text hash.
        **/
-      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>>;
+      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>, []>;
       /**
        * Maps identifier to corresponding worker.
        **/
-      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>>;
+      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>, [WorkerId]>;
     };
     memo: {
-      maxMemoLength: AugmentedQuery<ApiType, () => Observable<u32>>;
-      memo: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<MemoText>>;
+      maxMemoLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
+      memo: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<MemoText>, [AccountId]>;
     };
     offences: {
       /**
@@ -568,9 +611,9 @@ declare module '@polkadot/api/types/storage' {
       reports: AugmentedQuery<ApiType, (arg: ReportIdOf | string | Uint8Array) => Observable<Option<OffenceDetails>>, [ReportIdOf]>;
       /**
        * Enumerates all reports of a kind along with the time they happened.
-       *
+       * 
        * All reports are sorted by the time of offence.
-       *
+       * 
        * Note that the actual type of this mapping is `Vec<u8>`, this is because values of
        * different types are not supported at the moment so we are doing the manual serialization.
        **/
@@ -584,60 +627,39 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Maps identifier to worker application on opening.
        **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [ApplicationId]>;
+      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>, [ApplicationId]>;
       /**
-       * The current lead.
-       **/
-      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
-      /**
-       * Map member id by hiring application id.
-       * Required by StakingEventsHandler callback call to refund the balance on unstaking.
+       * Budget for the working group.
        **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
+      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
       /**
-       * The mint currently funding the rewards for this module.
+       * Current group lead.
        **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
+      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
       /**
        * Next identifier value for new worker application.
        **/
       nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
       /**
-       * Next identifier value for new worker opening.
+       * Next identifier value for new job opening.
        **/
       nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
       /**
-       * Next identifier for new worker.
+       * Next identifier for a new worker.
        **/
       nextWorkerId: AugmentedQuery<ApiType, () => Observable<WorkerId>, []>;
       /**
-       * Maps identifier to worker opening.
-       **/
-      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<OpeningOf>, [OpeningId]>;
-      /**
-       * Opening human readable text length limits
+       * Maps identifier to job opening.
        **/
-      openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
+      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>, [OpeningId]>;
       /**
-       * Worker application human readable text length limits
+       * Status text hash.
        **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
+      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>, []>;
       /**
        * Maps identifier to corresponding worker.
        **/
-      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<WorkerOf>, [WorkerId]>;
-      /**
-       * Worker exit rationale text length limits.
-       **/
-      workerExitRationaleText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Maps identifier to corresponding worker storage.
-       **/
-      workerStorage: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Bytes>, [WorkerId]>;
-      /**
-       * Worker storage size upper bound.
-       **/
-      workerStorageSize: AugmentedQuery<ApiType, () => Observable<u16>, []>;
+      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>, [WorkerId]>;
     };
     proposalsCodex: {
       /**
@@ -697,7 +719,7 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Current referendum stage.
        **/
-      stage: AugmentedQuery<ApiType, () => Observable<ReferendumStage>>;
+      stage: AugmentedQuery<ApiType, () => Observable<ReferendumStage>, []>;
       /**
        * Votes cast in the referendum. A new record is added to this map when a user casts a
        * sealed vote.
@@ -706,7 +728,7 @@ declare module '@polkadot/api/types/storage' {
        * stage or after the current cycle ends.
        * A stake for a vote can be reused in future referendum cycles.
        **/
-      votes: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<CastVoteOf>>;
+      votes: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<CastVoteOf>, [AccountId]>;
     };
     session: {
       /**
@@ -715,7 +737,7 @@ declare module '@polkadot/api/types/storage' {
       currentIndex: AugmentedQuery<ApiType, () => Observable<SessionIndex>, []>;
       /**
        * Indices of disabled validators.
-       *
+       * 
        * The set is cleared when `on_session_ending` returns a new set of identities.
        **/
       disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []>;
@@ -745,7 +767,7 @@ declare module '@polkadot/api/types/storage' {
     staking: {
       /**
        * The active era information, it holds index and start.
-       *
+       * 
        * The active era is the era currently rewarded.
        * Validator set of this era must be equal to `SessionInterface::validators`.
        **/
@@ -756,7 +778,7 @@ declare module '@polkadot/api/types/storage' {
       bonded: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Option<AccountId>>, [AccountId]>;
       /**
        * A mapping from still-bonded eras to the first session index of that era.
-       *
+       * 
        * Must contains information for eras for the range:
        * `[active_era - bounding_duration; active_era]`
        **/
@@ -768,7 +790,7 @@ declare module '@polkadot/api/types/storage' {
       canceledSlashPayout: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
       /**
        * The current era index.
-       *
+       * 
        * This is the latest planned era, depending on how the Session pallet queues the validator
        * set, it might be active or not.
        **/
@@ -789,23 +811,23 @@ declare module '@polkadot/api/types/storage' {
       erasRewardPoints: AugmentedQuery<ApiType, (arg: EraIndex | AnyNumber | Uint8Array) => Observable<EraRewardPoints>, [EraIndex]>;
       /**
        * Exposure of validator at era.
-       *
+       * 
        * This is keyed first by the era index to allow bulk deletion and then the stash account.
-       *
+       * 
        * Is it removed after `HISTORY_DEPTH` eras.
        * If stakers hasn't been set or has been removed then empty exposure is returned.
        **/
       erasStakers: AugmentedQueryDoubleMap<ApiType, (key1: EraIndex | AnyNumber | Uint8Array, key2: AccountId | string | Uint8Array) => Observable<Exposure>, [EraIndex, AccountId]>;
       /**
        * Clipped Exposure of validator at era.
-       *
+       * 
        * This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
        * `T::MaxNominatorRewardedPerValidator` biggest stakers.
        * (Note: the field `total` and `own` of the exposure remains unchanged).
        * This is used to limit the i/o cost for the nominator payout.
-       *
+       * 
        * This is keyed fist by the era index to allow bulk deletion and then the stash account.
-       *
+       * 
        * Is it removed after `HISTORY_DEPTH` eras.
        * If stakers hasn't been set or has been removed then empty exposure is returned.
        **/
@@ -821,15 +843,15 @@ declare module '@polkadot/api/types/storage' {
       erasTotalStake: AugmentedQuery<ApiType, (arg: EraIndex | AnyNumber | Uint8Array) => Observable<BalanceOf>, [EraIndex]>;
       /**
        * Similar to `ErasStakers`, this holds the preferences of validators.
-       *
+       * 
        * This is keyed first by the era index to allow bulk deletion and then the stash account.
-       *
+       * 
        * Is it removed after `HISTORY_DEPTH` eras.
        **/
       erasValidatorPrefs: AugmentedQueryDoubleMap<ApiType, (key1: EraIndex | AnyNumber | Uint8Array, key2: AccountId | string | Uint8Array) => Observable<ValidatorPrefs>, [EraIndex, AccountId]>;
       /**
        * The total validator era payout for the last `HISTORY_DEPTH` eras.
-       *
+       * 
        * Eras that haven't finished yet or has been removed doesn't have reward.
        **/
       erasValidatorReward: AugmentedQuery<ApiType, (arg: EraIndex | AnyNumber | Uint8Array) => Observable<Option<BalanceOf>>, [EraIndex]>;
@@ -839,9 +861,9 @@ declare module '@polkadot/api/types/storage' {
       forceEra: AugmentedQuery<ApiType, () => Observable<Forcing>, []>;
       /**
        * Number of eras to keep in history.
-       *
+       * 
        * Information is kept for eras in `[current_era - history_depth; current_era]`.
-       *
+       * 
        * Must be more than the number of eras delayed by session otherwise. I.e. active era must
        * always be in history. I.e. `active_era > current_era - history_depth` must be
        * guaranteed.
@@ -894,7 +916,7 @@ declare module '@polkadot/api/types/storage' {
       slashingSpans: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Option<SlashingSpans>>, [AccountId]>;
       /**
        * The percentage of the slash that is distributed to reporters.
-       *
+       * 
        * The rest of the slashed value is handled by the `Slash`.
        **/
       slashRewardFraction: AugmentedQuery<ApiType, () => Observable<Perbill>, []>;
@@ -916,7 +938,7 @@ declare module '@polkadot/api/types/storage' {
       /**
        * True if network has been upgraded to this version.
        * Storage version of the pallet.
-       *
+       * 
        * This is set to v3.0.0 for new networks.
        **/
       storageVersion: AugmentedQuery<ApiType, () => Observable<Releases>, []>;
@@ -946,15 +968,15 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Maps identifier to worker application on opening.
        **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>>;
+      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>, [ApplicationId]>;
       /**
        * Budget for the working group.
        **/
-      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>>;
+      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
       /**
        * Current group lead.
        **/
-      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>>;
+      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
       /**
        * Next identifier value for new worker application.
        **/
@@ -970,15 +992,15 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Maps identifier to job opening.
        **/
-      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>>;
+      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>, [OpeningId]>;
       /**
        * Status text hash.
        **/
-      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>>;
+      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>, []>;
       /**
        * Maps identifier to corresponding worker.
        **/
-      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>>;
+      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>, [WorkerId]>;
     };
     sudo: {
       /**
@@ -1018,11 +1040,11 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Mapping between a topic (represented by T::Hash) and a vector of indexes
        * of events in the `<Events<T>>` list.
-       *
+       * 
        * All topic vectors have deterministic storage locations depending on the topic. This
        * allows light-clients to leverage the changes trie storage tracking mechanism and
        * in case of changes fetch the list of events of interest.
-       *
+       * 
        * The value has the type `(T::BlockNumber, EventIndex)` because if we used only just
        * the `EventIndex` then in case if the topic has the same contents on the next block
        * no notification will be triggered thus the event might be lost.
@@ -1055,11 +1077,11 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Hash of the previous block.
        **/
-      parentHash: AugmentedQuery<ApiType, () => Observable<Hash>>;
+      parentHash: AugmentedQuery<ApiType, () => Observable<Hash>, []>;
       /**
        * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
        **/
-      upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>>;
+      upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []>;
     };
     timestamp: {
       /**
@@ -1072,8 +1094,8 @@ declare module '@polkadot/api/types/storage' {
       now: AugmentedQuery<ApiType, () => Observable<Moment>, []>;
     };
     transactionPayment: {
-      nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<Multiplier>>;
-      storageVersion: AugmentedQuery<ApiType, () => Observable<Releases>>;
+      nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<Multiplier>, []>;
+      storageVersion: AugmentedQuery<ApiType, () => Observable<Releases>, []>;
     };
   }
 

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 176 - 206
types/augment-codec/augment-api-tx.ts


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 2
types/augment-codec/augment-types.ts


+ 151 - 121
types/augment/all/defs.json

@@ -16,7 +16,9 @@
             "Forum",
             "Storage",
             "Content",
-            "Membership"
+            "Membership",
+            "Operations",
+            "Gateway"
         ]
     },
     "MemoText": "Text",
@@ -28,10 +30,13 @@
     },
     "Address": "AccountId",
     "LookupSource": "AccountId",
+    "ChannelId": "u64",
+    "DAOId": "u64",
+    "Url": "Text",
     "Membership": {
         "handle_hash": "Bytes",
-        "root_account": "AccountId",
-        "controller_account": "AccountId",
+        "root_account": "GenericAccountId",
+        "controller_account": "GenericAccountId",
         "verified": "bool",
         "invites": "u32"
     },
@@ -40,16 +45,16 @@
         "confirmed": "bool"
     },
     "BuyMembershipParameters": {
-        "root_account": "AccountId",
-        "controller_account": "AccountId",
+        "root_account": "GenericAccountId",
+        "controller_account": "GenericAccountId",
         "handle": "Option<Text>",
         "metadata": "Bytes",
         "referrer_id": "Option<MemberId>"
     },
     "InviteMembershipParameters": {
         "inviting_member_id": "MemberId",
-        "root_account": "AccountId",
-        "controller_account": "AccountId",
+        "root_account": "GenericAccountId",
+        "controller_account": "GenericAccountId",
         "handle": "Option<Text>",
         "metadata": "Bytes"
     },
@@ -71,16 +76,16 @@
         }
     },
     "Candidate": {
-        "staking_account_id": "AccountId",
-        "reward_account_id": "AccountId",
+        "staking_account_id": "GenericAccountId",
+        "reward_account_id": "GenericAccountId",
         "cycle_id": "u64",
         "stake": "u32",
         "vote_power": "VotePower",
         "note_hash": "Option<Hash>"
     },
     "CouncilMemberOf": {
-        "staking_account_id": "AccountId",
-        "reward_account_id": "AccountId",
+        "staking_account_id": "GenericAccountId",
+        "reward_account_id": "GenericAccountId",
         "membership_id": "MemberId",
         "stake": "u128",
         "last_payment_block": "u32",
@@ -144,9 +149,9 @@
     },
     "ApplicationId": "u64",
     "Application": {
-        "role_account_id": "AccountId",
-        "reward_account_id": "AccountId",
-        "staking_account_id": "AccountId",
+        "role_account_id": "GenericAccountId",
+        "reward_account_id": "GenericAccountId",
+        "staking_account_id": "GenericAccountId",
         "member_id": "MemberId",
         "description_hash": "Bytes",
         "opening_id": "OpeningId"
@@ -160,9 +165,9 @@
     "WorkerId": "u64",
     "Worker": {
         "member_id": "MemberId",
-        "role_account_id": "AccountId",
-        "staking_account_id": "AccountId",
-        "reward_account_id": "AccountId",
+        "role_account_id": "GenericAccountId",
+        "staking_account_id": "GenericAccountId",
+        "reward_account_id": "GenericAccountId",
         "started_leaving_at": "Option<u32>",
         "job_unstaking_period": "u32",
         "reward_per_block": "Option<u128>",
@@ -187,7 +192,7 @@
     },
     "StakeParameters": {
         "stake": "u128",
-        "staking_account_id": "AccountId"
+        "staking_account_id": "GenericAccountId"
     },
     "StorageProviderId": "u64",
     "OpeningType": {
@@ -199,8 +204,8 @@
     "ApplyOnOpeningParameters": {
         "member_id": "MemberId",
         "opening_id": "OpeningId",
-        "role_account_id": "AccountId",
-        "reward_account_id": "AccountId",
+        "role_account_id": "GenericAccountId",
+        "reward_account_id": "GenericAccountId",
         "description": "Bytes",
         "stake_parameters": "StakeParameters"
     },
@@ -214,12 +219,6 @@
             "RegularReward"
         ]
     },
-    "Url": "Text",
-    "IPNSIdentity": "Text",
-    "ServiceProviderRecord": {
-        "identity": "IPNSIdentity",
-        "expires_at": "u32"
-    },
     "ContentId": "[u8;32]",
     "LiaisonJudgement": {
         "_enum": [
@@ -248,6 +247,38 @@
         "active": "bool"
     },
     "DataObjectsMap": "BTreeMap<ContentId,DataObject>",
+    "ContentParameters": {
+        "content_id": "ContentId",
+        "type_id": "DataObjectTypeId",
+        "size": "u64",
+        "ipfs_content_id": "Bytes"
+    },
+    "StorageObjectOwner": {
+        "_enum": {
+            "Member": "MemberId",
+            "Channel": "ChannelId",
+            "DAO": "DAOId",
+            "Council": "Null",
+            "WorkingGroup": "WorkingGroup"
+        }
+    },
+    "ObjectOwner": {
+        "_enum": {
+            "Member": "MemberId",
+            "Channel": "ChannelId",
+            "DAO": "DAOId",
+            "Council": "Null",
+            "WorkingGroup": "WorkingGroup"
+        }
+    },
+    "Voucher": {
+        "size_limit": "u64",
+        "objects_limit": "u64",
+        "size_used": "u64",
+        "objects_used": "u64"
+    },
+    "VoucherLimit": "u64",
+    "UploadingStatus": "bool",
     "ParticipantId": "u64",
     "Title": "Text",
     "UpdatedTitle": "Option<Text>",
@@ -279,7 +310,7 @@
         "votingResults": "VotingResults",
         "exactExecutionBlock": "Option<u32>",
         "nrOfCouncilConfirmations": "u32",
-        "stakingAccountId": "Option<AccountId>"
+        "stakingAccountId": "Option<GenericAccountId>"
     },
     "ProposalDetails": {
         "_enum": {
@@ -359,7 +390,7 @@
         "member_id": "MemberId",
         "title": "Text",
         "description": "Text",
-        "staking_account_id": "Option<AccountId>",
+        "staking_account_id": "Option<GenericAccountId>",
         "exact_execution_block": "Option<u32>"
     },
     "VoteKind": {
@@ -414,7 +445,7 @@
             "PendingConstitutionality"
         ]
     },
-    "SetLeadParams": "(MemberId,AccountId)",
+    "SetLeadParams": "(MemberId,GenericAccountId)",
     "ThreadMode": {
         "_enum": {
             "Open": "Null",
@@ -428,12 +459,89 @@
         }
     },
     "FundingRequestParameters": {
-        "account": "AccountId",
+        "account": "GenericAccountId",
         "amount": "u128"
     },
-    "Nonce": "u64",
-    "EntityId": "u64",
-    "ClassId": "u64",
+    "ReferendumStageVoting": {
+        "started": "u32",
+        "winning_target_count": "u64",
+        "current_cycle_id": "u64"
+    },
+    "ReferendumStageRevealing": {
+        "started": "u32",
+        "winning_target_count": "u64",
+        "intermediate_winners": "Vec<OptionResult>",
+        "current_cycle_id": "u64"
+    },
+    "ReferendumStage": {
+        "_enum": {
+            "Inactive": "Null",
+            "Voting": "ReferendumStageVoting",
+            "Revealing": "ReferendumStageRevealing"
+        }
+    },
+    "OptionResult": {
+        "option_id": "MemberId",
+        "vote_power": "VotePower"
+    },
+    "VotePower": "u128",
+    "ConstitutionInfo": {
+        "text_hash": "Hash"
+    },
+    "BountyId": "u32",
+    "EntryId": "u32",
+    "BountyActor": {
+        "_enum": {
+            "Council": "Null",
+            "Member": "MemberId"
+        }
+    },
+    "AssuranceContractType": {
+        "_enum": {
+            "Open": "Null",
+            "Closed": "Vec<MemberId>"
+        }
+    },
+    "FundingType_Limited": {
+        "min_funding_amount": "u128",
+        "max_funding_amount": "u128",
+        "funding_period": "u32"
+    },
+    "FundingType_Perpetual": {
+        "target": "u128"
+    },
+    "FundingType": {
+        "_enum": {
+            "Perpetual": "FundingType_Perpetual",
+            "Limited": "FundingType_Limited"
+        }
+    },
+    "BountyCreationParameters": {
+        "oracle": "BountyActor",
+        "contract_type": "AssuranceContractType",
+        "creator": "BountyActor",
+        "cherry": "u128",
+        "entrant_stake": "u128",
+        "funding_type": "FundingType",
+        "work_period": "u32",
+        "judging_period": "u32"
+    },
+    "OracleJudgment_Winner": {
+        "reward": "u128"
+    },
+    "OracleJudgment": {
+        "_enum": {
+            "Winner": "OracleJudgment_Winner",
+            "Rejected": "Null"
+        }
+    },
+    "Entry": {
+        "member_id": "MemberId",
+        "staking_account_id": "GenericAccountId",
+        "submitted_at": "u32",
+        "work_submitted": "bool",
+        "oracle_judgment_result": "Option<OracleJudgment>"
+    },
     "CuratorId": "u64",
     "CuratorGroupId": "u64",
     "CuratorGroup": {
@@ -507,10 +615,13 @@
     "VideoCategoryUpdateParameters": {
         "new_meta": "Bytes"
     },
-    "CuratorGroup": {
-        "curators": "Vec<CuratorId>",
-        "active": "bool",
-        "number_of_classes_maintained": "u32"
+    "VideoCreationParameters": {
+        "assets": "Vec<NewAsset>",
+        "meta": "Bytes"
+    },
+    "VideoUpdateParameters": {
+        "assets": "Option<Vec<NewAsset>>",
+        "new_meta": "Option<Bytes>"
     },
     "Person": {
         "controlled_by": "PersonController"
@@ -518,7 +629,6 @@
     "PersonId": "u64",
     "PersonController": {
         "_enum": {
-            "Curator": "(CuratorGroupId,CuratorId)",
             "Member": "MemberId",
             "Curators": "Null"
         }
@@ -571,86 +681,6 @@
             "ExistingVideo": "VideoId"
         }
     },
-    "InputEntityValuesMap": "BTreeMap<PropertyId,InputPropertyValue>",
-    "FailedAt": "u32",
-    "ReferendumStageVoting": {
-        "started": "u32",
-        "winning_target_count": "u64",
-        "current_cycle_id": "u64"
-    },
-    "ReferendumStageRevealing": {
-        "started": "u32",
-        "winning_target_count": "u64",
-        "intermediate_winners": "Vec<OptionResult>",
-        "current_cycle_id": "u64"
-    },
-    "ReferendumStage": {
-        "_enum": {
-            "Inactive": "Null",
-            "Voting": "ReferendumStageVoting",
-            "Revealing": "ReferendumStageRevealing"
-        }
-    },
-    "OptionResult": {
-        "option_id": "MemberId",
-        "vote_power": "VotePower"
-    },
-    "VotePower": "u128",
-    "ConstitutionInfo": {
-        "text_hash": "Hash"
-    },
-    "BountyId": "u32",
-    "EntryId": "u32",
-    "BountyActor": {
-        "_enum": {
-            "Council": "Null",
-            "Member": "MemberId"
-        }
-    },
-    "AssuranceContractType": {
-        "_enum": {
-            "Open": "Null",
-            "Closed": "Vec<MemberId>"
-        }
-    },
-    "FundingType_Limited": {
-        "min_funding_amount": "u128",
-        "max_funding_amount": "u128",
-        "funding_period": "u32"
-    },
-    "FundingType_Perpetual": {
-        "target": "u128"
-    },
-    "FundingType": {
-        "_enum": {
-            "Perpetual": "FundingType_Perpetual",
-            "Limited": "FundingType_Limited"
-        }
-    },
-    "BountyCreationParameters": {
-        "oracle": "BountyActor",
-        "contract_type": "AssuranceContractType",
-        "creator": "BountyActor",
-        "cherry": "u128",
-        "entrant_stake": "u128",
-        "funding_type": "FundingType",
-        "work_period": "u32",
-        "judging_period": "u32"
-    },
-    "OracleJudgment_Winner": {
-        "reward": "u128"
-    },
-    "OracleJudgment": {
-        "_enum": {
-            "Winner": "OracleJudgment_Winner",
-            "Rejected": "Null"
-        }
-    },
-    "Entry": {
-        "member_id": "MemberId",
-        "staking_account_id": "GenericAccountId",
-        "submitted_at": "u32",
-        "work_submitted": "bool",
-        "oracle_judgment_result": "Option<OracleJudgment>"
-    }
-}
+    "MaxNumber": "u32",
+    "IsCensored": "bool"
+}

+ 156 - 182
types/augment/all/types.ts

@@ -1,20 +1,9 @@
 // Auto-generated via `yarn polkadot-types-from-defs`, do not edit
 /* eslint-disable */
 
-import { ITuple } from '@polkadot/types/types';
-import { BTreeMap, BTreeSet, Enum, Option, Struct, U8aFixed, Vec } from '@polkadot/types/codec';
-import { GenericAccountId } from '@polkadot/types/generic';
-import { Bytes, Text, bool, i16, i32, i64, u128, u16, u32, u64, u8 } from '@polkadot/types/primitive';
-import { AccountId, Balance, Hash } from '@polkadot/types/interfaces/runtime';
-
-/** @name Actor */
-export interface Actor extends Enum {
-  readonly isCurator: boolean;
-  readonly asCurator: ITuple<[CuratorGroupId, CuratorId]>;
-  readonly isMember: boolean;
-  readonly asMember: MemberId;
-  readonly isLead: boolean;
-}
+import type { BTreeMap, BTreeSet, Bytes, Enum, GenericAccountId, Option, Struct, Text, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types';
+import type { ITuple } from '@polkadot/types/types';
+import type { AccountId, Balance, Hash } from '@polkadot/types/interfaces/runtime';
 
 /** @name ActorId */
 export interface ActorId extends u64 {}
@@ -22,14 +11,11 @@ export interface ActorId extends u64 {}
 /** @name Address */
 export interface Address extends AccountId {}
 
-/** @name AddSchemaSupportToEntityOperation */
-export interface AddSchemaSupportToEntityOperation extends Null {}
-
 /** @name Application */
 export interface Application extends Struct {
-  readonly role_account_id: AccountId;
-  readonly reward_account_id: AccountId;
-  readonly staking_account_id: AccountId;
+  readonly role_account_id: GenericAccountId;
+  readonly reward_account_id: GenericAccountId;
+  readonly staking_account_id: GenericAccountId;
   readonly member_id: MemberId;
   readonly description_hash: Bytes;
   readonly opening_id: OpeningId;
@@ -54,8 +40,8 @@ export interface ApplicationInfo extends Struct {
 export interface ApplyOnOpeningParameters extends Struct {
   readonly member_id: MemberId;
   readonly opening_id: OpeningId;
-  readonly role_account_id: AccountId;
-  readonly reward_account_id: AccountId;
+  readonly role_account_id: GenericAccountId;
+  readonly reward_account_id: GenericAccountId;
   readonly description: Bytes;
   readonly stake_parameters: StakeParameters;
 }
@@ -109,8 +95,8 @@ export interface BountyId extends u32 {}
 
 /** @name BuyMembershipParameters */
 export interface BuyMembershipParameters extends Struct {
-  readonly root_account: AccountId;
-  readonly controller_account: AccountId;
+  readonly root_account: GenericAccountId;
+  readonly controller_account: GenericAccountId;
   readonly handle: Option<Text>;
   readonly metadata: Bytes;
   readonly referrer_id: Option<MemberId>;
@@ -118,8 +104,8 @@ export interface BuyMembershipParameters extends Struct {
 
 /** @name Candidate */
 export interface Candidate extends Struct {
-  readonly staking_account_id: AccountId;
-  readonly reward_account_id: AccountId;
+  readonly staking_account_id: GenericAccountId;
+  readonly reward_account_id: GenericAccountId;
   readonly cycle_id: u64;
   readonly stake: u32;
   readonly vote_power: VotePower;
@@ -149,17 +135,69 @@ export interface Category extends Struct {
 /** @name CategoryId */
 export interface CategoryId extends u64 {}
 
-/** @name Class */
-export interface Class extends Null {}
+/** @name Channel */
+export interface Channel extends Struct {
+  readonly owner: ChannelOwner;
+  readonly videos: Vec<VideoId>;
+  readonly playlists: Vec<PlaylistId>;
+  readonly series: Vec<SeriesId>;
+  readonly is_censored: bool;
+  readonly reward_account: Option<GenericAccountId>;
+}
+
+/** @name ChannelCategory */
+export interface ChannelCategory extends Struct {}
+
+/** @name ChannelCategoryCreationParameters */
+export interface ChannelCategoryCreationParameters extends Struct {
+  readonly meta: Bytes;
+}
+
+/** @name ChannelCategoryId */
+export interface ChannelCategoryId extends u64 {}
 
-/** @name ClassId */
-export interface ClassId extends Null {}
+/** @name ChannelCategoryUpdateParameters */
+export interface ChannelCategoryUpdateParameters extends Struct {
+  readonly new_meta: Bytes;
+}
+
+/** @name ChannelCreationParameters */
+export interface ChannelCreationParameters extends Struct {
+  readonly assets: Vec<NewAsset>;
+  readonly meta: Bytes;
+  readonly reward_account: Option<GenericAccountId>;
+}
 
-/** @name ClassOf */
-export interface ClassOf extends Null {}
+/** @name ChannelId */
+export interface ChannelId extends u64 {}
 
-/** @name ClassPermissions */
-export interface ClassPermissions extends Null {}
+/** @name ChannelOwner */
+export interface ChannelOwner extends Enum {
+  readonly isMember: boolean;
+  readonly asMember: MemberId;
+  readonly isCurators: boolean;
+  readonly asCurators: CuratorGroupId;
+  readonly isDao: boolean;
+  readonly asDao: DAOId;
+}
+
+/** @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: Option<Vec<NewAsset>>;
+  readonly new_meta: Option<Bytes>;
+  readonly reward_account: Option<Option<GenericAccountId>>;
+}
 
 /** @name ConstitutionInfo */
 export interface ConstitutionInfo extends Struct {
@@ -178,10 +216,17 @@ export interface ContentActor extends Enum {
 /** @name ContentId */
 export interface ContentId extends U8aFixed {}
 
+/** @name ContentParameters */
+export interface ContentParameters extends Struct {
+  readonly content_id: ContentId;
+  readonly type_id: DataObjectTypeId;
+  readonly ipfs_content_id: Bytes;
+}
+
 /** @name CouncilMemberOf */
 export interface CouncilMemberOf extends Struct {
-  readonly staking_account_id: AccountId;
-  readonly reward_account_id: AccountId;
+  readonly staking_account_id: GenericAccountId;
+  readonly reward_account_id: GenericAccountId;
   readonly membership_id: MemberId;
   readonly stake: u128;
   readonly last_payment_block: u32;
@@ -213,11 +258,6 @@ export interface CouncilStageUpdate extends Struct {
   readonly changed_at: u32;
 }
 
-/** @name CreateEntityOperation */
-export interface CreateEntityOperation extends Struct {
-  readonly class_id: ClassId;
-}
-
 /** @name CreateOpeningParameters */
 export interface CreateOpeningParameters extends Struct {
   readonly description: Bytes;
@@ -238,6 +278,9 @@ export interface CuratorGroupId extends u64 {}
 /** @name CuratorId */
 export interface CuratorId extends u64 {}
 
+/** @name DAOId */
+export interface DAOId extends u64 {}
+
 /** @name DataObject */
 export interface DataObject extends Struct {
   readonly owner: StorageObjectOwner;
@@ -282,27 +325,6 @@ export interface DiscussionThread extends Struct {
   readonly mode: ThreadMode;
 }
 
-/** @name Entity */
-export interface Entity extends Null {}
-
-/** @name EntityController */
-export interface EntityController extends Null {}
-
-/** @name EntityCreationVoucher */
-export interface EntityCreationVoucher extends Null {}
-
-/** @name EntityId */
-export interface EntityId extends Null {}
-
-/** @name EntityOf */
-export interface EntityOf extends Null {}
-
-/** @name EntityPermissions */
-export interface EntityPermissions extends Null {}
-
-/** @name EntityReferenceCounterSideEffect */
-export interface EntityReferenceCounterSideEffect extends Null {}
-
 /** @name Entry */
 export interface Entry extends Struct {
   readonly member_id: MemberId;
@@ -315,6 +337,14 @@ 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;
@@ -327,9 +357,6 @@ export interface ExecutionStatus extends Enum {
   readonly asExecutionFailed: ExecutionFailed;
 }
 
-/** @name FailedAt */
-export interface FailedAt extends Null {}
-
 /** @name FillOpeningParameters */
 export interface FillOpeningParameters extends Struct {
   readonly opening_id: OpeningId;
@@ -342,7 +369,7 @@ export interface ForumUserId extends u64 {}
 
 /** @name FundingRequestParameters */
 export interface FundingRequestParameters extends Struct {
-  readonly account: AccountId;
+  readonly account: GenericAccountId;
   readonly amount: u128;
 }
 
@@ -371,42 +398,27 @@ export interface GeneralProposalParameters extends Struct {
   readonly member_id: MemberId;
   readonly title: Text;
   readonly description: Text;
-  readonly staking_account_id: Option<AccountId>;
+  readonly staking_account_id: Option<GenericAccountId>;
   readonly exact_execution_block: Option<u32>;
 }
 
-/** @name HashedTextMaxLength */
-export interface HashedTextMaxLength extends Option<u16> {}
-
-/** @name InboundReferenceCounter */
-export interface InboundReferenceCounter extends Null {}
-
-/** @name InputEntityValuesMap */
-export interface InputEntityValuesMap extends Null {}
-
-/** @name InputPropertyValue */
-export interface InputPropertyValue extends Null {}
-
 /** @name InputValidationLengthConstraint */
 export interface InputValidationLengthConstraint extends Struct {
   readonly min: u16;
   readonly max_min_diff: u16;
 }
 
-/** @name InputValue */
-export interface InputValue extends Null {}
-
 /** @name InviteMembershipParameters */
 export interface InviteMembershipParameters extends Struct {
   readonly inviting_member_id: MemberId;
-  readonly root_account: AccountId;
-  readonly controller_account: AccountId;
+  readonly root_account: GenericAccountId;
+  readonly controller_account: GenericAccountId;
   readonly handle: Option<Text>;
   readonly metadata: Bytes;
 }
 
-/** @name IPNSIdentity */
-export interface IPNSIdentity extends Text {}
+/** @name IsCensored */
+export interface IsCensored extends bool {}
 
 /** @name LiaisonJudgement */
 export interface LiaisonJudgement extends Enum {
@@ -426,8 +438,8 @@ export interface MemberId extends u64 {}
 /** @name Membership */
 export interface Membership extends Struct {
   readonly handle_hash: Bytes;
-  readonly root_account: AccountId;
-  readonly controller_account: AccountId;
+  readonly root_account: GenericAccountId;
+  readonly controller_account: GenericAccountId;
   readonly verified: bool;
   readonly invites: u32;
 }
@@ -438,8 +450,13 @@ export interface MemoText extends Text {}
 /** @name ModeratorId */
 export interface ModeratorId extends u64 {}
 
-/** @name Nonce */
-export interface Nonce extends Null {}
+/** @name NewAsset */
+export interface NewAsset extends Enum {
+  readonly isUpload: boolean;
+  readonly asUpload: ContentParameters;
+  readonly isUrls: boolean;
+  readonly asUrls: Vec<Url>;
+}
 
 /** @name ObjectOwner */
 export interface ObjectOwner extends Enum {
@@ -472,9 +489,6 @@ export interface OpeningType extends Enum {
   readonly isRegular: boolean;
 }
 
-/** @name OperationType */
-export interface OperationType extends Null {}
-
 /** @name OptionResult */
 export interface OptionResult extends Struct {
   readonly option_id: MemberId;
@@ -493,14 +507,14 @@ export interface OracleJudgment_Winner extends Struct {
   readonly reward: u128;
 }
 
-/** @name ParameterizedEntity */
-export interface ParameterizedEntity extends Null {}
-
-/** @name ParametrizedClassPropertyValue */
-export interface ParametrizedClassPropertyValue extends Null {}
+/** @name ParticipantId */
+export interface ParticipantId extends u64 {}
 
-/** @name ParametrizedPropertyValue */
-export interface ParametrizedPropertyValue extends Null {}
+/** @name Penalty */
+export interface Penalty extends Struct {
+  readonly slashing_text: Text;
+  readonly slashing_amount: u128;
+}
 
 /** @name Person */
 export interface Person extends Struct {
@@ -555,15 +569,6 @@ export interface PlaylistUpdateParameters extends Struct {
   readonly new_meta: Bytes;
 }
 
-/** @name ParticipantId */
-export interface ParticipantId extends u64 {}
-
-/** @name Penalty */
-export interface Penalty extends Struct {
-  readonly slashing_text: Text;
-  readonly slashing_amount: u128;
-}
-
 /** @name Poll */
 export interface Poll extends Struct {
   readonly description_hash: Hash;
@@ -597,24 +602,6 @@ export interface PrivilegedActor extends Enum {
   readonly asModerator: ModeratorId;
 }
 
-/** @name Property */
-export interface Property extends Null {}
-
-/** @name PropertyId */
-export interface PropertyId extends Null {}
-
-/** @name PropertyLockingPolicy */
-export interface PropertyLockingPolicy extends Null {}
-
-/** @name PropertyType */
-export interface PropertyType extends Null {}
-
-/** @name PropertyTypeSingle */
-export interface PropertyTypeSingle extends Null {}
-
-/** @name PropertyTypeVector */
-export interface PropertyTypeVector extends Null {}
-
 /** @name ProposalDecision */
 export interface ProposalDecision extends Enum {
   readonly isCanceled: boolean;
@@ -747,7 +734,7 @@ export interface ProposalOf extends Struct {
   readonly votingResults: VotingResults;
   readonly exactExecutionBlock: Option<u32>;
   readonly nrOfCouncilConfirmations: u32;
-  readonly stakingAccountId: Option<AccountId>;
+  readonly stakingAccountId: Option<GenericAccountId>;
 }
 
 /** @name ProposalParameters */
@@ -770,9 +757,6 @@ export interface ProposalStatus extends Enum {
   readonly isPendingConstitutionality: boolean;
 }
 
-/** @name ReferenceCounterSideEffects */
-export interface ReferenceCounterSideEffects extends Null {}
-
 /** @name ReferendumStage */
 export interface ReferendumStage extends Enum {
   readonly isInactive: boolean;
@@ -820,37 +804,41 @@ export interface RewardPaymentType extends Enum {
   readonly isRegularReward: boolean;
 }
 
-/** @name SameController */
-export interface SameController extends Null {}
-
-/** @name Schema */
-export interface Schema extends Null {}
-
-/** @name SchemaId */
-export interface SchemaId extends Null {}
+/** @name Season */
+export interface Season extends Struct {
+  readonly episodes: Vec<VideoId>;
+}
 
-/** @name ServiceProviderRecord */
-export interface ServiceProviderRecord extends Struct {
-  readonly identity: IPNSIdentity;
-  readonly expires_at: u32;
+/** @name SeasonParameters */
+export interface SeasonParameters extends Struct {
+  readonly assets: Option<Vec<NewAsset>>;
+  readonly episodes: Option<Vec<Option<EpisodeParemters>>>;
+  readonly meta: Option<Bytes>;
 }
 
-/** @name ServiceProviderRecord */
-export interface ServiceProviderRecord extends Null {}
+/** @name Series */
+export interface Series extends Struct {
+  readonly in_channel: ChannelId;
+  readonly seasons: Vec<Season>;
+}
 
-/** @name SetLeadParams */
-export interface SetLeadParams extends ITuple<[MemberId, AccountId]> {}
+/** @name SeriesId */
+export interface SeriesId extends u64 {}
 
-/** @name SideEffect */
-export interface SideEffect extends Null {}
+/** @name SeriesParameters */
+export interface SeriesParameters extends Struct {
+  readonly assets: Option<Vec<NewAsset>>;
+  readonly seasons: Option<Vec<Option<SeasonParameters>>>;
+  readonly meta: Option<Bytes>;
+}
 
-/** @name SideEffects */
-export interface SideEffects extends Null {}
+/** @name SetLeadParams */
+export interface SetLeadParams extends ITuple<[MemberId, GenericAccountId]> {}
 
 /** @name StakeParameters */
 export interface StakeParameters extends Struct {
   readonly stake: u128;
-  readonly staking_account_id: AccountId;
+  readonly staking_account_id: GenericAccountId;
 }
 
 /** @name StakePolicy */
@@ -865,9 +853,6 @@ export interface StakingAccountMemberBinding extends Struct {
   readonly confirmed: bool;
 }
 
-/** @name Status */
-export interface Status extends Null {}
-
 /** @name StorageObjectOwner */
 export interface StorageObjectOwner extends Enum {
   readonly isMember: boolean;
@@ -884,12 +869,6 @@ export interface StorageObjectOwner extends Enum {
 /** @name StorageProviderId */
 export interface StorageProviderId extends u64 {}
 
-/** @name StoredPropertyValue */
-export interface StoredPropertyValue extends Null {}
-
-/** @name StoredValue */
-export interface StoredValue extends Null {}
-
 /** @name TerminateRoleParameters */
 export interface TerminateRoleParameters extends Struct {
   readonly worker_id: WorkerId;
@@ -897,9 +876,6 @@ export interface TerminateRoleParameters extends Struct {
   readonly working_group: WorkingGroup;
 }
 
-/** @name TextMaxLength */
-export interface TextMaxLength extends Null {}
-
 /** @name Thread */
 export interface Thread extends Struct {
   readonly title_hash: Hash;
@@ -939,27 +915,12 @@ export interface UpdatedBody extends Option<Text> {}
 /** @name UpdatedTitle */
 export interface UpdatedTitle extends Option<Text> {}
 
-/** @name UpdatePropertyValuesOperation */
-export interface UpdatePropertyValuesOperation extends Null {}
-
 /** @name UploadingStatus */
 export interface UploadingStatus extends bool {}
 
 /** @name Url */
 export interface Url extends Text {}
 
-/** @name VecInputValue */
-export interface VecInputValue extends Null {}
-
-/** @name VecMaxLength */
-export interface VecMaxLength extends Null {}
-
-/** @name VecStoredPropertyValue */
-export interface VecStoredPropertyValue extends Null {}
-
-/** @name VecStoredValue */
-export interface VecStoredValue extends Null {}
-
 /** @name Video */
 export interface Video extends Struct {
   readonly in_channel: ChannelId;
@@ -1017,12 +978,23 @@ export interface VotingResults extends Struct {
   readonly slashes: u32;
 }
 
+/** @name Voucher */
+export interface Voucher extends Struct {
+  readonly size_limit: u64;
+  readonly objects_limit: u64;
+  readonly size_used: u64;
+  readonly objects_used: u64;
+}
+
+/** @name VoucherLimit */
+export interface VoucherLimit extends u64 {}
+
 /** @name Worker */
 export interface Worker extends Struct {
   readonly member_id: MemberId;
-  readonly role_account_id: AccountId;
-  readonly staking_account_id: AccountId;
-  readonly reward_account_id: AccountId;
+  readonly role_account_id: GenericAccountId;
+  readonly staking_account_id: GenericAccountId;
+  readonly reward_account_id: GenericAccountId;
   readonly started_leaving_at: Option<u32>;
   readonly job_unstaking_period: u32;
   readonly reward_per_block: Option<u128>;
@@ -1045,6 +1017,8 @@ export interface WorkingGroup extends Enum {
   readonly isStorage: boolean;
   readonly isContent: boolean;
   readonly isMembership: boolean;
+  readonly isOperations: boolean;
+  readonly isGateway: boolean;
 }
 
 export type PHANTOM_ALL = 'all';

+ 30 - 19
types/augment/augment-api-consts.ts

@@ -1,14 +1,13 @@
 // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
 /* eslint-disable */
 
-import { Vec } from '@polkadot/types/codec';
-import { u32, u64, u8 } from '@polkadot/types/primitive';
-import { ProposalParameters } from './all';
-import { Balance, BalanceOf, BlockNumber, Moment, Perbill, RuntimeDbWeight, Weight } from '@polkadot/types/interfaces/runtime';
-import { SessionIndex } from '@polkadot/types/interfaces/session';
-import { EraIndex } from '@polkadot/types/interfaces/staking';
-import { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
-import { ApiTypes } from '@polkadot/api/types';
+import type { Vec, u32, u64, u8 } from '@polkadot/types';
+import type { MaxNumber, ProposalParameters } from './all';
+import type { Balance, BalanceOf, BlockNumber, Moment, Perbill, RuntimeDbWeight, Weight } from '@polkadot/types/interfaces/runtime';
+import type { SessionIndex } from '@polkadot/types/interfaces/session';
+import type { EraIndex } from '@polkadot/types/interfaces/staking';
+import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
+import type { ApiTypes } from '@polkadot/api/types';
 
 declare module '@polkadot/api/types/consts' {
   export interface AugmentedConsts<ApiType> {
@@ -55,6 +54,12 @@ declare module '@polkadot/api/types/consts' {
       /**
        * Exports const -  max number of curators per group
        **/
+      maxNumberOfCuratorsPerGroup: MaxNumber & AugmentedConst<ApiType>;
+    };
+    contentDirectoryWorkingGroup: {
+      /**
+       * Exports const -  max simultaneous active worker number.
+       **/
       maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
     };
     council: {
@@ -88,12 +93,6 @@ declare module '@polkadot/api/types/consts' {
        **/
       minNumberOfExtraCandidates: u64 & AugmentedConst<ApiType>;
     };
-    contentDirectoryWorkingGroup: {
-      /**
-       * Exports const -  max simultaneous active worker number.
-       **/
-      maxObjectsPerInjection: u32 & AugmentedConst<ApiType>;
-    };
     finalityTracker: {
       /**
        * The delay after which point things become suspicious. Default is 1000.
@@ -110,6 +109,12 @@ declare module '@polkadot/api/types/consts' {
        **/
       maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
     };
+    gatewayWorkingGroup: {
+      /**
+       * Exports const -  max simultaneous active worker number.
+       **/
+      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
+    };
     members: {
       /**
        * Exports const - default balance for the invited member.
@@ -130,6 +135,12 @@ declare module '@polkadot/api/types/consts' {
        **/
       maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
     };
+    operationsWorkingGroup: {
+      /**
+       * Exports const -  max simultaneous active worker number.
+       **/
+      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
+    };
     proposalsCodex: {
       /**
        * Exports 'Amend Constitution' proposal parameters.
@@ -257,23 +268,23 @@ declare module '@polkadot/api/types/consts' {
       bondingDuration: EraIndex & AugmentedConst<ApiType>;
       /**
        * The number of blocks before the end of the era from which election submissions are allowed.
-       *
+       * 
        * Setting this to zero will disable the offchain compute and only on-chain seq-phragmen will
        * be used.
-       *
+       * 
        * This is bounded by being within the last session. Hence, setting it to a value more than the
        * length of a session will be pointless.
        **/
       electionLookahead: BlockNumber & AugmentedConst<ApiType>;
       /**
        * Maximum number of balancing iterations to run in the offchain submission.
-       *
+       * 
        * If set to 0, balance_solution will not be executed at all.
        **/
       maxIterations: u32 & AugmentedConst<ApiType>;
       /**
        * The maximum number of nominators rewarded for each validator.
-       *
+       * 
        * For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can claim
        * their reward. This used to limit the i/o cost for the nominator payout.
        **/
@@ -288,7 +299,7 @@ declare module '@polkadot/api/types/consts' {
       sessionsPerEra: SessionIndex & AugmentedConst<ApiType>;
       /**
        * Number of eras that slashes are deferred by, after computation.
-       *
+       * 
        * This should be less than the bonding duration.
        * Set to 0 if slashes should be applied immediately, without opportunity for
        * intervention.

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 390 - 466
types/augment/augment-api-errors.ts


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 795 - 135
types/augment/augment-api-events.ts


+ 219 - 197
types/augment/augment-api-query.ts

@@ -1,24 +1,23 @@
 // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
 /* eslint-disable */
 
-import { AnyNumber, ITuple, Observable } from '@polkadot/types/types';
-import { Option, Vec } from '@polkadot/types/codec';
-import { Bytes, bool, u32, u64, u8 } from '@polkadot/types/primitive';
-import { Application, ApplicationId, BountyActor, BountyId, Candidate, CastVoteOf, Category, CategoryId, ClassId, ClassOf, ConstitutionInfo, ContentId, CouncilMemberOf, CouncilStageUpdate, CuratorGroup, CuratorGroupId, DataObject, DataObjectStorageRelationship, DataObjectStorageRelationshipId, DataObjectType, DataObjectTypeId, DiscussionPost, DiscussionThread, EntityController, EntityCreationVoucher, EntityId, EntityOf, Entry, EntryId, ForumUserId, MemberId, Membership, MemoText, ModeratorId, Opening, OpeningId, Post, PostId, PropertyId, ProposalId, ProposalOf, ReferendumStage, Reply, ReplyId, ServiceProviderRecord, StakingAccountMemberBinding, StorageProviderId, ThreadId, ThreadOf, Url, VoteKind, Worker, WorkerId } from './all';
-import { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
-import { BabeAuthorityWeight, MaybeRandomness, NextConfigDescriptor, Randomness } from '@polkadot/types/interfaces/babe';
-import { AccountData, BalanceLock } from '@polkadot/types/interfaces/balances';
-import { AuthorityId } from '@polkadot/types/interfaces/consensus';
-import { SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa';
-import { AuthIndex } from '@polkadot/types/interfaces/imOnline';
-import { DeferredOffenceOf, Kind, OffenceDetails, OpaqueTimeSlot, ReportIdOf } from '@polkadot/types/interfaces/offences';
-import { AccountId, Balance, BalanceOf, BlockNumber, ExtrinsicsWeight, Hash, KeyTypeId, Moment, Perbill, Releases, ValidatorId } from '@polkadot/types/interfaces/runtime';
-import { Keys, SessionIndex } from '@polkadot/types/interfaces/session';
-import { ActiveEraInfo, ElectionResult, ElectionScore, ElectionStatus, EraIndex, EraRewardPoints, Exposure, Forcing, Nominations, RewardDestination, SlashingSpans, SpanIndex, SpanRecord, StakingLedger, UnappliedSlash, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
-import { AccountInfo, DigestOf, EventIndex, EventRecord, LastRuntimeUpgradeInfo, Phase } from '@polkadot/types/interfaces/system';
-import { Bounty } from '@polkadot/types/interfaces/treasury';
-import { Multiplier } from '@polkadot/types/interfaces/txpayment';
-import { ApiTypes } from '@polkadot/api/types';
+import type { Bytes, Option, Vec, bool, u32, u64, u8 } from '@polkadot/types';
+import type { AnyNumber, ITuple, Observable } from '@polkadot/types/types';
+import type { Application, ApplicationId, BountyActor, BountyId, Candidate, CastVoteOf, Category, CategoryId, Channel, ChannelCategory, ChannelCategoryId, ChannelId, ChannelOwnershipTransferRequest, ChannelOwnershipTransferRequestId, ConstitutionInfo, ContentId, CouncilMemberOf, CouncilStageUpdate, CuratorGroup, CuratorGroupId, DataObject, DataObjectStorageRelationship, DataObjectStorageRelationshipId, DataObjectType, DataObjectTypeId, DiscussionPost, DiscussionThread, Entry, EntryId, ForumUserId, MemberId, Membership, MemoText, ModeratorId, ObjectOwner, Opening, OpeningId, Person, PersonId, Playlist, PlaylistId, Post, PostId, ProposalId, ProposalOf, ReferendumStage, Reply, ReplyId, Series, SeriesId, StakingAccountMemberBinding, ThreadId, ThreadOf, Video, VideoCategory, VideoCategoryId, VideoId, VoteKind, Voucher, Worker, WorkerId } from './all';
+import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
+import type { BabeAuthorityWeight, MaybeRandomness, NextConfigDescriptor, Randomness } from '@polkadot/types/interfaces/babe';
+import type { AccountData, BalanceLock } from '@polkadot/types/interfaces/balances';
+import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
+import type { SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa';
+import type { AuthIndex } from '@polkadot/types/interfaces/imOnline';
+import type { DeferredOffenceOf, Kind, OffenceDetails, OpaqueTimeSlot, ReportIdOf } from '@polkadot/types/interfaces/offences';
+import type { AccountId, Balance, BalanceOf, BlockNumber, ExtrinsicsWeight, Hash, KeyTypeId, Moment, Perbill, Releases, ValidatorId } from '@polkadot/types/interfaces/runtime';
+import type { Keys, SessionIndex } from '@polkadot/types/interfaces/session';
+import type { ActiveEraInfo, ElectionResult, ElectionScore, ElectionStatus, EraIndex, EraRewardPoints, Exposure, Forcing, Nominations, RewardDestination, SlashingSpans, SpanIndex, SpanRecord, StakingLedger, UnappliedSlash, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
+import type { AccountInfo, DigestOf, EventIndex, EventRecord, LastRuntimeUpgradeInfo, Phase } from '@polkadot/types/interfaces/system';
+import type { Bounty } from '@polkadot/types/interfaces/treasury';
+import type { Multiplier } from '@polkadot/types/interfaces/txpayment';
+import type { ApiTypes } from '@polkadot/api/types';
 
 declare module '@polkadot/api/types/storage' {
   export interface AugmentedQueries<ApiType> {
@@ -61,7 +60,7 @@ declare module '@polkadot/api/types/storage' {
       initialized: AugmentedQuery<ApiType, () => Observable<Option<MaybeRandomness>>, []>;
       /**
        * How late the current block is compared to its parent.
-       *
+       * 
        * This entry is populated as part of block execution and is cleaned up
        * on block finalization. Querying this storage entry outside of block
        * execution context should always yield zero.
@@ -77,9 +76,9 @@ declare module '@polkadot/api/types/storage' {
       nextRandomness: AugmentedQuery<ApiType, () => Observable<Randomness>, []>;
       /**
        * The epoch randomness for the *current* epoch.
-       *
+       * 
        * # Security
-       *
+       * 
        * This MUST NOT be used for gambling, as it can be influenced by a
        * malicious validator in the short term. It MAY be used in many
        * cryptographic protocols, however, so long as one remembers that this
@@ -90,11 +89,11 @@ declare module '@polkadot/api/types/storage' {
       randomness: AugmentedQuery<ApiType, () => Observable<Randomness>, []>;
       /**
        * Randomness under construction.
-       *
+       * 
        * We make a tradeoff between storage accesses and list length.
        * We store the under-construction randomness in segments of up to
        * `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
-       *
+       * 
        * Once a segment reaches this length, we begin the next one.
        * We reset all segments and return to `0` at the beginning of every
        * epoch.
@@ -108,7 +107,7 @@ declare module '@polkadot/api/types/storage' {
     balances: {
       /**
        * The balance of an account.
-       *
+       * 
        * NOTE: This is only used in the case that this module is used to store balances.
        **/
       account: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<AccountData>, [AccountId]>;
@@ -119,7 +118,7 @@ declare module '@polkadot/api/types/storage' {
       locks: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Vec<BalanceLock>>, [AccountId]>;
       /**
        * Storage version of the pallet.
-       *
+       * 
        * This is set to v2.0.0 for new networks.
        **/
       storageVersion: AugmentedQuery<ApiType, () => Observable<Releases>, []>;
@@ -132,47 +131,46 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Post by unique blog and post identificators
        **/
-      postById: AugmentedQuery<ApiType, (arg: PostId | AnyNumber | Uint8Array) => Observable<Post>>;
+      postById: AugmentedQuery<ApiType, (arg: PostId | AnyNumber | Uint8Array) => Observable<Post>, [PostId]>;
       /**
        * Maps, representing id => item relationship for blogs, posts and replies related structures
        * Post count
        **/
-      postCount: AugmentedQuery<ApiType, () => Observable<PostId>>;
+      postCount: AugmentedQuery<ApiType, () => Observable<PostId>, []>;
       /**
        * Reply by unique blog, post and reply identificators
        **/
-      replyById: AugmentedQueryDoubleMap<ApiType, (key1: PostId | AnyNumber | Uint8Array, key2: ReplyId | AnyNumber | Uint8Array) => Observable<Reply>>;
+      replyById: AugmentedQueryDoubleMap<ApiType, (key1: PostId | AnyNumber | Uint8Array, key2: ReplyId | AnyNumber | Uint8Array) => Observable<Reply>, [PostId, ReplyId]>;
     };
     bounty: {
       /**
        * Bounty storage.
        **/
-      bounties: AugmentedQuery<ApiType, (arg: BountyId | AnyNumber | Uint8Array) => Observable<Bounty>>;
+      bounties: AugmentedQuery<ApiType, (arg: BountyId | AnyNumber | Uint8Array) => Observable<Bounty>, [BountyId]>;
       /**
        * Double map for bounty funding. It stores a member or council funding for bounties.
        **/
-      bountyContributions: AugmentedQueryDoubleMap<ApiType, (key1: BountyId | AnyNumber | Uint8Array, key2: BountyActor | { Council: any } | { Member: any } | string | Uint8Array) => Observable<BalanceOf>>;
+      bountyContributions: AugmentedQueryDoubleMap<ApiType, (key1: BountyId | AnyNumber | Uint8Array, key2: BountyActor | { Council: any } | { Member: any } | string | Uint8Array) => Observable<BalanceOf>, [BountyId, BountyActor]>;
       /**
        * Count of all bounties that have been created.
        **/
-      bountyCount: AugmentedQuery<ApiType, () => Observable<u32>>;
+      bountyCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
       /**
        * Work entry storage map.
        **/
-      entries: AugmentedQuery<ApiType, (arg: EntryId | AnyNumber | Uint8Array) => Observable<Entry>>;
+      entries: AugmentedQuery<ApiType, (arg: EntryId | AnyNumber | Uint8Array) => Observable<Entry>, [EntryId]>;
       /**
        * Count of all work entries that have been created.
        **/
-      entryCount: AugmentedQuery<ApiType, () => Observable<u32>>;
+      entryCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
     };
     constitution: {
-      constitution: AugmentedQuery<ApiType, () => Observable<ConstitutionInfo>>;
+      constitution: AugmentedQuery<ApiType, () => Observable<ConstitutionInfo>, []>;
     };
-    contentDirectory: {
-      /**
-       * Map, representing ClassId -> Class relation
-       **/
-      classById: AugmentedQuery<ApiType, (arg: ClassId | AnyNumber | Uint8Array) => Observable<ClassOf>>;
+    content: {
+      channelById: AugmentedQuery<ApiType, (arg: ChannelId | AnyNumber | Uint8Array) => Observable<Channel>, [ChannelId]>;
+      channelCategoryById: AugmentedQuery<ApiType, (arg: ChannelCategoryId | AnyNumber | Uint8Array) => Observable<ChannelCategory>, [ChannelCategoryId]>;
+      channelOwnershipTransferRequestById: AugmentedQuery<ApiType, (arg: ChannelOwnershipTransferRequestId | AnyNumber | Uint8Array) => Observable<ChannelOwnershipTransferRequest>, [ChannelOwnershipTransferRequestId]>;
       /**
        * Map, representing  CuratorGroupId -> CuratorGroup relation
        **/
@@ -200,15 +198,15 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Maps identifier to worker application on opening.
        **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>>;
+      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>, [ApplicationId]>;
       /**
        * Budget for the working group.
        **/
-      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>>;
+      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
       /**
        * Current group lead.
        **/
-      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>>;
+      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
       /**
        * Next identifier value for new worker application.
        **/
@@ -224,197 +222,242 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Maps identifier to job opening.
        **/
-      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>>;
+      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>, [OpeningId]>;
       /**
        * Status text hash.
        **/
-      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>>;
+      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>, []>;
       /**
        * Maps identifier to corresponding worker.
        **/
-      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>>;
+      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>, [WorkerId]>;
     };
     council: {
       /**
        * Index of the current candidacy period. It is incremented everytime announcement period
        * starts.
        **/
-      announcementPeriodNr: AugmentedQuery<ApiType, () => Observable<u64>>;
+      announcementPeriodNr: AugmentedQuery<ApiType, () => Observable<u64>, []>;
       /**
        * Budget for the council's elected members rewards.
        **/
-      budget: AugmentedQuery<ApiType, () => Observable<Balance>>;
+      budget: AugmentedQuery<ApiType, () => Observable<Balance>, []>;
       /**
        * Amount of balance to be refilled every budget period
        **/
-      budgetIncrement: AugmentedQuery<ApiType, () => Observable<Balance>>;
+      budgetIncrement: AugmentedQuery<ApiType, () => Observable<Balance>, []>;
       /**
        * Map of all candidates that ever candidated and haven't unstake yet.
        **/
-      candidates: AugmentedQuery<ApiType, (arg: MemberId | AnyNumber | Uint8Array) => Observable<Candidate>>;
+      candidates: AugmentedQuery<ApiType, (arg: MemberId | AnyNumber | Uint8Array) => Observable<Candidate>, [MemberId]>;
       /**
        * Current council members
        **/
-      councilMembers: AugmentedQuery<ApiType, () => Observable<Vec<CouncilMemberOf>>>;
+      councilMembers: AugmentedQuery<ApiType, () => Observable<Vec<CouncilMemberOf>>, []>;
       /**
        * Councilor reward per block
        **/
-      councilorReward: AugmentedQuery<ApiType, () => Observable<Balance>>;
+      councilorReward: AugmentedQuery<ApiType, () => Observable<Balance>, []>;
       /**
        * The next block in which the budget will be increased.
        **/
-      nextBudgetRefill: AugmentedQuery<ApiType, () => Observable<BlockNumber>>;
+      nextBudgetRefill: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
       /**
        * The next block in which the elected council member rewards will be payed.
        **/
-      nextRewardPayments: AugmentedQuery<ApiType, () => Observable<BlockNumber>>;
+      nextRewardPayments: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
       /**
        * Current council voting stage
        **/
-      stage: AugmentedQuery<ApiType, () => Observable<CouncilStageUpdate>>;
+      stage: AugmentedQuery<ApiType, () => Observable<CouncilStageUpdate>, []>;
     };
     dataDirectory: {
       /**
-       * Account of forum sudo.
+       * Maps data objects by their content id.
        **/
-      forumSudo: AugmentedQuery<ApiType, () => Observable<Option<AccountId>>, []>;
+      dataByContentId: AugmentedQuery<ApiType, (arg: ContentId | string | Uint8Array) => Observable<DataObject>, [ContentId]>;
       /**
-       * Category identifier value to be used for the next Category created.
+       * Default content voucher for all actors.
        **/
-      nextCategoryId: AugmentedQuery<ApiType, () => Observable<CategoryId>, []>;
+      defaultVoucher: AugmentedQuery<ApiType, () => Observable<Voucher>, []>;
       /**
-       * Post identifier value to be used for for next post created.
+       * Global voucher.
        **/
-      nextPostId: AugmentedQuery<ApiType, () => Observable<PostId>, []>;
+      globalVoucher: AugmentedQuery<ApiType, () => Observable<Voucher>, []>;
       /**
-       * Thread identifier value to be used for next Thread in threadById.
+       * If all new uploads blocked
        **/
-      nextThreadId: AugmentedQuery<ApiType, () => Observable<ThreadId>, []>;
+      uploadingBlocked: AugmentedQuery<ApiType, () => Observable<bool>, []>;
       /**
-       * Map post identifier to corresponding post.
+       * Upper bound for the Voucher objects number limit.
        **/
-      postById: AugmentedQuery<ApiType, (arg: PostId | AnyNumber | Uint8Array) => Observable<Post>, [PostId]>;
-      postModerationRationaleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      postTextConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
+      voucherObjectsLimitUpperBound: AugmentedQuery<ApiType, () => Observable<u64>, []>;
       /**
-       * Map thread identifier to corresponding thread.
+       * Maps storage owner to it`s voucher. Created when the first upload by the new actor occured.
        **/
-      threadById: AugmentedQuery<ApiType, (arg: ThreadId | AnyNumber | Uint8Array) => Observable<Thread>, [ThreadId]>;
-      threadModerationRationaleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      threadTitleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
+      vouchers: AugmentedQuery<ApiType, (arg: ObjectOwner | { Member: any } | { Channel: any } | { DAO: any } | { Council: any } | { WorkingGroup: any } | string | Uint8Array) => Observable<Voucher>, [ObjectOwner]>;
+      /**
+       * Upper bound for the Voucher size limit.
+       **/
+      voucherSizeLimitUpperBound: AugmentedQuery<ApiType, () => Observable<u64>, []>;
     };
-    gatewayWorkingGroup: {
+    dataObjectStorageRegistry: {
       /**
-       * Count of active workers.
+       * Defines first relationship id.
        **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
+      firstRelationshipId: AugmentedQuery<ApiType, () => Observable<DataObjectStorageRelationshipId>, []>;
       /**
-       * Maps identifier to worker application on opening.
+       * Defines next relationship id.
        **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [ApplicationId]>;
+      nextRelationshipId: AugmentedQuery<ApiType, () => Observable<DataObjectStorageRelationshipId>, []>;
       /**
-       * The current lead.
+       * Mapping of Data object types
        **/
-      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
+      relationships: AugmentedQuery<ApiType, (arg: DataObjectStorageRelationshipId | AnyNumber | Uint8Array) => Observable<Option<DataObjectStorageRelationship>>, [DataObjectStorageRelationshipId]>;
       /**
-       * Map member id by hiring application id.
-       * Required by StakingEventsHandler callback call to refund the balance on unstaking.
+       * Keeps a list of storage relationships per content id.
        **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
+      relationshipsByContentId: AugmentedQuery<ApiType, (arg: ContentId | string | Uint8Array) => Observable<Vec<DataObjectStorageRelationshipId>>, [ContentId]>;
+    };
+    dataObjectTypeRegistry: {
       /**
-       * The mint currently funding the rewards for this module.
+       * Mapping of Data object types.
        **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
+      dataObjectTypes: AugmentedQuery<ApiType, (arg: DataObjectTypeId | AnyNumber | Uint8Array) => Observable<Option<DataObjectType>>, [DataObjectTypeId]>;
       /**
-       * Next identifier value for new worker application.
+       * Data object type ids should start at this value.
        **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
+      firstDataObjectTypeId: AugmentedQuery<ApiType, () => Observable<DataObjectTypeId>, []>;
       /**
-       * Next identifier value for new worker opening.
+       * Provides id counter for the data object types.
        **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
+      nextDataObjectTypeId: AugmentedQuery<ApiType, () => Observable<DataObjectTypeId>, []>;
+    };
+    forum: {
       /**
-       * Next identifier for new worker.
+       * Map category identifier to corresponding category.
        **/
-      categoryById: AugmentedQuery<ApiType, (arg: CategoryId | AnyNumber | Uint8Array) => Observable<Category>>;
+      categoryById: AugmentedQuery<ApiType, (arg: CategoryId | AnyNumber | Uint8Array) => Observable<Category>, [CategoryId]>;
       /**
        * Moderator set for each Category
        **/
-      categoryByModerator: AugmentedQueryDoubleMap<ApiType, (key1: CategoryId | AnyNumber | Uint8Array, key2: ModeratorId | AnyNumber | Uint8Array) => Observable<ITuple<[]>>>;
+      categoryByModerator: AugmentedQueryDoubleMap<ApiType, (key1: CategoryId | AnyNumber | Uint8Array, key2: ModeratorId | AnyNumber | Uint8Array) => Observable<ITuple<[]>>, [CategoryId, ModeratorId]>;
       /**
        * Counter for all existing categories.
        **/
-      categoryCounter: AugmentedQuery<ApiType, () => Observable<CategoryId>>;
+      categoryCounter: AugmentedQuery<ApiType, () => Observable<CategoryId>, []>;
       /**
        * If data migration is done, set as configible for unit test purpose
        **/
-      dataMigrationDone: AugmentedQuery<ApiType, () => Observable<bool>>;
+      dataMigrationDone: AugmentedQuery<ApiType, () => Observable<bool>, []>;
       /**
-       * Worker application human readable text length limits
+       * Category identifier value to be used for the next Category created.
        **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
+      nextCategoryId: AugmentedQuery<ApiType, () => Observable<CategoryId>, []>;
       /**
-       * Maps identifier to corresponding worker.
+       * Post identifier value to be used for for next post created.
        **/
-      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<WorkerOf>, [WorkerId]>;
+      nextPostId: AugmentedQuery<ApiType, () => Observable<PostId>, []>;
       /**
-       * Worker exit rationale text length limits.
+       * Thread identifier value to be used for next Thread in threadById.
        **/
-      workerExitRationaleText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
+      nextThreadId: AugmentedQuery<ApiType, () => Observable<ThreadId>, []>;
       /**
        * Unique thread poll voters. This private double map prevents double voting.
        **/
-      pollVotes: AugmentedQueryDoubleMap<ApiType, (key1: ThreadId | AnyNumber | Uint8Array, key2: ForumUserId | AnyNumber | Uint8Array) => Observable<bool>>;
+      pollVotes: AugmentedQueryDoubleMap<ApiType, (key1: ThreadId | AnyNumber | Uint8Array, key2: ForumUserId | AnyNumber | Uint8Array) => Observable<bool>, [ThreadId, ForumUserId]>;
       /**
        * Map post identifier to corresponding post.
        **/
-      postById: AugmentedQueryDoubleMap<ApiType, (key1: ThreadId | AnyNumber | Uint8Array, key2: PostId | AnyNumber | Uint8Array) => Observable<Post>>;
+      postById: AugmentedQueryDoubleMap<ApiType, (key1: ThreadId | AnyNumber | Uint8Array, key2: PostId | AnyNumber | Uint8Array) => Observable<Post>, [ThreadId, PostId]>;
       /**
-       * Worker storage size upper bound.
+       * Map thread identifier to corresponding thread.
        **/
-      threadById: AugmentedQueryDoubleMap<ApiType, (key1: CategoryId | AnyNumber | Uint8Array, key2: ThreadId | AnyNumber | Uint8Array) => Observable<ThreadOf>>;
+      threadById: AugmentedQueryDoubleMap<ApiType, (key1: CategoryId | AnyNumber | Uint8Array, key2: ThreadId | AnyNumber | Uint8Array) => Observable<ThreadOf>, [CategoryId, ThreadId]>;
     };
     forumWorkingGroup: {
       /**
        * Count of active workers.
        **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>>;
+      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
+      /**
+       * Maps identifier to worker application on opening.
+       **/
+      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>, [ApplicationId]>;
+      /**
+       * Budget for the working group.
+       **/
+      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
+      /**
+       * Current group lead.
+       **/
+      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
+      /**
+       * Next identifier value for new worker application.
+       **/
+      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
+      /**
+       * Next identifier value for new job opening.
+       **/
+      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
+      /**
+       * Next identifier for a new worker.
+       **/
+      nextWorkerId: AugmentedQuery<ApiType, () => Observable<WorkerId>, []>;
+      /**
+       * Maps identifier to job opening.
+       **/
+      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>, [OpeningId]>;
+      /**
+       * Status text hash.
+       **/
+      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>, []>;
+      /**
+       * Maps identifier to corresponding worker.
+       **/
+      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>, [WorkerId]>;
+    };
+    gatewayWorkingGroup: {
+      /**
+       * Count of active workers.
+       **/
+      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
       /**
        * Maps identifier to worker application on opening.
        **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>>;
+      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>, [ApplicationId]>;
       /**
        * Budget for the working group.
        **/
-      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>>;
+      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
       /**
        * Current group lead.
        **/
-      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>>;
+      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
       /**
        * Next identifier value for new worker application.
        **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>>;
+      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
       /**
        * Next identifier value for new job opening.
        **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>>;
+      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
       /**
        * Next identifier for a new worker.
        **/
-      nextWorkerId: AugmentedQuery<ApiType, () => Observable<WorkerId>>;
+      nextWorkerId: AugmentedQuery<ApiType, () => Observable<WorkerId>, []>;
       /**
        * Maps identifier to job opening.
        **/
-      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>>;
+      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>, [OpeningId]>;
       /**
        * Status text hash.
        **/
-      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>>;
+      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>, []>;
       /**
        * Maps identifier to corresponding worker.
        **/
-      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>>;
+      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>, [WorkerId]>;
     };
     grandpa: {
       /**
@@ -433,7 +476,7 @@ declare module '@polkadot/api/types/storage' {
       /**
        * A mapping from grandpa set ID to the index of the *most recent* session for which its
        * members were responsible.
-       *
+       * 
        * TWOX-NOTE: `SetId` is not under user control.
        **/
       setIdSession: AugmentedQuery<ApiType, (arg: SetId | AnyNumber | Uint8Array) => Observable<Option<SessionIndex>>, [SetId]>;
@@ -454,7 +497,7 @@ declare module '@polkadot/api/types/storage' {
       authoredBlocks: AugmentedQueryDoubleMap<ApiType, (key1: SessionIndex | AnyNumber | Uint8Array, key2: ValidatorId | string | Uint8Array) => Observable<u32>, [SessionIndex, ValidatorId]>;
       /**
        * The block number after which it's ok to send heartbeats in current session.
-       *
+       * 
        * At the beginning of each session we set this to a value that should
        * fall roughly in the middle of the session duration.
        * The idea is to first wait for the validators to produce a block
@@ -475,23 +518,23 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Initial invitation balance for the invited member.
        **/
-      initialInvitationBalance: AugmentedQuery<ApiType, () => Observable<BalanceOf>>;
+      initialInvitationBalance: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
       /**
        * Initial invitation count for the newly bought membership.
        **/
-      initialInvitationCount: AugmentedQuery<ApiType, () => Observable<u32>>;
+      initialInvitationCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
       /**
        * Registered unique handles hash and their mapping to their owner.
        **/
-      memberIdByHandleHash: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<MemberId>>;
+      memberIdByHandleHash: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<MemberId>, [Bytes]>;
       /**
        * Mapping of member's id to their membership profile.
        **/
-      membershipById: AugmentedQuery<ApiType, (arg: MemberId | AnyNumber | Uint8Array) => Observable<Membership>>;
+      membershipById: AugmentedQuery<ApiType, (arg: MemberId | AnyNumber | Uint8Array) => Observable<Membership>, [MemberId]>;
       /**
        * Current membership price.
        **/
-      membershipPrice: AugmentedQuery<ApiType, () => Observable<BalanceOf>>;
+      membershipPrice: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
       /**
        * MemberId to assign to next member that is added to the registry, and is also the
        * total number of members created. MemberIds start at Zero.
@@ -500,57 +543,57 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Referral cut percent of the membership fee to receive on buying the membership.
        **/
-      referralCut: AugmentedQuery<ApiType, () => Observable<u8>>;
+      referralCut: AugmentedQuery<ApiType, () => Observable<u8>, []>;
       /**
        * Double of a staking account id and member id to the confirmation status.
        **/
-      stakingAccountIdMemberStatus: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<StakingAccountMemberBinding>>;
+      stakingAccountIdMemberStatus: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<StakingAccountMemberBinding>, [AccountId]>;
     };
     membershipWorkingGroup: {
       /**
        * Count of active workers.
        **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>>;
+      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
       /**
        * Maps identifier to worker application on opening.
        **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>>;
+      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>, [ApplicationId]>;
       /**
        * Budget for the working group.
        **/
-      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>>;
+      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
       /**
        * Current group lead.
        **/
-      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>>;
+      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
       /**
        * Next identifier value for new worker application.
        **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>>;
+      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
       /**
        * Next identifier value for new job opening.
        **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>>;
+      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
       /**
        * Next identifier for a new worker.
        **/
-      nextWorkerId: AugmentedQuery<ApiType, () => Observable<WorkerId>>;
+      nextWorkerId: AugmentedQuery<ApiType, () => Observable<WorkerId>, []>;
       /**
        * Maps identifier to job opening.
        **/
-      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>>;
+      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>, [OpeningId]>;
       /**
        * Status text hash.
        **/
-      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>>;
+      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>, []>;
       /**
        * Maps identifier to corresponding worker.
        **/
-      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>>;
+      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>, [WorkerId]>;
     };
     memo: {
-      maxMemoLength: AugmentedQuery<ApiType, () => Observable<u32>>;
-      memo: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<MemoText>>;
+      maxMemoLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
+      memo: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<MemoText>, [AccountId]>;
     };
     offences: {
       /**
@@ -568,9 +611,9 @@ declare module '@polkadot/api/types/storage' {
       reports: AugmentedQuery<ApiType, (arg: ReportIdOf | string | Uint8Array) => Observable<Option<OffenceDetails>>, [ReportIdOf]>;
       /**
        * Enumerates all reports of a kind along with the time they happened.
-       *
+       * 
        * All reports are sorted by the time of offence.
-       *
+       * 
        * Note that the actual type of this mapping is `Vec<u8>`, this is because values of
        * different types are not supported at the moment so we are doing the manual serialization.
        **/
@@ -584,60 +627,39 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Maps identifier to worker application on opening.
        **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [ApplicationId]>;
+      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>, [ApplicationId]>;
       /**
-       * The current lead.
-       **/
-      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
-      /**
-       * Map member id by hiring application id.
-       * Required by StakingEventsHandler callback call to refund the balance on unstaking.
+       * Budget for the working group.
        **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
+      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
       /**
-       * The mint currently funding the rewards for this module.
+       * Current group lead.
        **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
+      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
       /**
        * Next identifier value for new worker application.
        **/
       nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
       /**
-       * Next identifier value for new worker opening.
+       * Next identifier value for new job opening.
        **/
       nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
       /**
-       * Next identifier for new worker.
+       * Next identifier for a new worker.
        **/
       nextWorkerId: AugmentedQuery<ApiType, () => Observable<WorkerId>, []>;
       /**
-       * Maps identifier to worker opening.
-       **/
-      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<OpeningOf>, [OpeningId]>;
-      /**
-       * Opening human readable text length limits
+       * Maps identifier to job opening.
        **/
-      openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
+      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>, [OpeningId]>;
       /**
-       * Worker application human readable text length limits
+       * Status text hash.
        **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
+      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>, []>;
       /**
        * Maps identifier to corresponding worker.
        **/
-      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<WorkerOf>, [WorkerId]>;
-      /**
-       * Worker exit rationale text length limits.
-       **/
-      workerExitRationaleText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Maps identifier to corresponding worker storage.
-       **/
-      workerStorage: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Bytes>, [WorkerId]>;
-      /**
-       * Worker storage size upper bound.
-       **/
-      workerStorageSize: AugmentedQuery<ApiType, () => Observable<u16>, []>;
+      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>, [WorkerId]>;
     };
     proposalsCodex: {
       /**
@@ -697,7 +719,7 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Current referendum stage.
        **/
-      stage: AugmentedQuery<ApiType, () => Observable<ReferendumStage>>;
+      stage: AugmentedQuery<ApiType, () => Observable<ReferendumStage>, []>;
       /**
        * Votes cast in the referendum. A new record is added to this map when a user casts a
        * sealed vote.
@@ -706,7 +728,7 @@ declare module '@polkadot/api/types/storage' {
        * stage or after the current cycle ends.
        * A stake for a vote can be reused in future referendum cycles.
        **/
-      votes: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<CastVoteOf>>;
+      votes: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<CastVoteOf>, [AccountId]>;
     };
     session: {
       /**
@@ -715,7 +737,7 @@ declare module '@polkadot/api/types/storage' {
       currentIndex: AugmentedQuery<ApiType, () => Observable<SessionIndex>, []>;
       /**
        * Indices of disabled validators.
-       *
+       * 
        * The set is cleared when `on_session_ending` returns a new set of identities.
        **/
       disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []>;
@@ -745,7 +767,7 @@ declare module '@polkadot/api/types/storage' {
     staking: {
       /**
        * The active era information, it holds index and start.
-       *
+       * 
        * The active era is the era currently rewarded.
        * Validator set of this era must be equal to `SessionInterface::validators`.
        **/
@@ -756,7 +778,7 @@ declare module '@polkadot/api/types/storage' {
       bonded: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Option<AccountId>>, [AccountId]>;
       /**
        * A mapping from still-bonded eras to the first session index of that era.
-       *
+       * 
        * Must contains information for eras for the range:
        * `[active_era - bounding_duration; active_era]`
        **/
@@ -768,7 +790,7 @@ declare module '@polkadot/api/types/storage' {
       canceledSlashPayout: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
       /**
        * The current era index.
-       *
+       * 
        * This is the latest planned era, depending on how the Session pallet queues the validator
        * set, it might be active or not.
        **/
@@ -789,23 +811,23 @@ declare module '@polkadot/api/types/storage' {
       erasRewardPoints: AugmentedQuery<ApiType, (arg: EraIndex | AnyNumber | Uint8Array) => Observable<EraRewardPoints>, [EraIndex]>;
       /**
        * Exposure of validator at era.
-       *
+       * 
        * This is keyed first by the era index to allow bulk deletion and then the stash account.
-       *
+       * 
        * Is it removed after `HISTORY_DEPTH` eras.
        * If stakers hasn't been set or has been removed then empty exposure is returned.
        **/
       erasStakers: AugmentedQueryDoubleMap<ApiType, (key1: EraIndex | AnyNumber | Uint8Array, key2: AccountId | string | Uint8Array) => Observable<Exposure>, [EraIndex, AccountId]>;
       /**
        * Clipped Exposure of validator at era.
-       *
+       * 
        * This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
        * `T::MaxNominatorRewardedPerValidator` biggest stakers.
        * (Note: the field `total` and `own` of the exposure remains unchanged).
        * This is used to limit the i/o cost for the nominator payout.
-       *
+       * 
        * This is keyed fist by the era index to allow bulk deletion and then the stash account.
-       *
+       * 
        * Is it removed after `HISTORY_DEPTH` eras.
        * If stakers hasn't been set or has been removed then empty exposure is returned.
        **/
@@ -821,15 +843,15 @@ declare module '@polkadot/api/types/storage' {
       erasTotalStake: AugmentedQuery<ApiType, (arg: EraIndex | AnyNumber | Uint8Array) => Observable<BalanceOf>, [EraIndex]>;
       /**
        * Similar to `ErasStakers`, this holds the preferences of validators.
-       *
+       * 
        * This is keyed first by the era index to allow bulk deletion and then the stash account.
-       *
+       * 
        * Is it removed after `HISTORY_DEPTH` eras.
        **/
       erasValidatorPrefs: AugmentedQueryDoubleMap<ApiType, (key1: EraIndex | AnyNumber | Uint8Array, key2: AccountId | string | Uint8Array) => Observable<ValidatorPrefs>, [EraIndex, AccountId]>;
       /**
        * The total validator era payout for the last `HISTORY_DEPTH` eras.
-       *
+       * 
        * Eras that haven't finished yet or has been removed doesn't have reward.
        **/
       erasValidatorReward: AugmentedQuery<ApiType, (arg: EraIndex | AnyNumber | Uint8Array) => Observable<Option<BalanceOf>>, [EraIndex]>;
@@ -839,9 +861,9 @@ declare module '@polkadot/api/types/storage' {
       forceEra: AugmentedQuery<ApiType, () => Observable<Forcing>, []>;
       /**
        * Number of eras to keep in history.
-       *
+       * 
        * Information is kept for eras in `[current_era - history_depth; current_era]`.
-       *
+       * 
        * Must be more than the number of eras delayed by session otherwise. I.e. active era must
        * always be in history. I.e. `active_era > current_era - history_depth` must be
        * guaranteed.
@@ -894,7 +916,7 @@ declare module '@polkadot/api/types/storage' {
       slashingSpans: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Option<SlashingSpans>>, [AccountId]>;
       /**
        * The percentage of the slash that is distributed to reporters.
-       *
+       * 
        * The rest of the slashed value is handled by the `Slash`.
        **/
       slashRewardFraction: AugmentedQuery<ApiType, () => Observable<Perbill>, []>;
@@ -916,7 +938,7 @@ declare module '@polkadot/api/types/storage' {
       /**
        * True if network has been upgraded to this version.
        * Storage version of the pallet.
-       *
+       * 
        * This is set to v3.0.0 for new networks.
        **/
       storageVersion: AugmentedQuery<ApiType, () => Observable<Releases>, []>;
@@ -946,15 +968,15 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Maps identifier to worker application on opening.
        **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>>;
+      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>, [ApplicationId]>;
       /**
        * Budget for the working group.
        **/
-      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>>;
+      budget: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
       /**
        * Current group lead.
        **/
-      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>>;
+      currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
       /**
        * Next identifier value for new worker application.
        **/
@@ -970,15 +992,15 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Maps identifier to job opening.
        **/
-      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>>;
+      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>, [OpeningId]>;
       /**
        * Status text hash.
        **/
-      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>>;
+      statusTextHash: AugmentedQuery<ApiType, () => Observable<Bytes>, []>;
       /**
        * Maps identifier to corresponding worker.
        **/
-      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>>;
+      workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<Worker>, [WorkerId]>;
     };
     sudo: {
       /**
@@ -1018,11 +1040,11 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Mapping between a topic (represented by T::Hash) and a vector of indexes
        * of events in the `<Events<T>>` list.
-       *
+       * 
        * All topic vectors have deterministic storage locations depending on the topic. This
        * allows light-clients to leverage the changes trie storage tracking mechanism and
        * in case of changes fetch the list of events of interest.
-       *
+       * 
        * The value has the type `(T::BlockNumber, EventIndex)` because if we used only just
        * the `EventIndex` then in case if the topic has the same contents on the next block
        * no notification will be triggered thus the event might be lost.
@@ -1055,11 +1077,11 @@ declare module '@polkadot/api/types/storage' {
       /**
        * Hash of the previous block.
        **/
-      parentHash: AugmentedQuery<ApiType, () => Observable<Hash>>;
+      parentHash: AugmentedQuery<ApiType, () => Observable<Hash>, []>;
       /**
        * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
        **/
-      upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>>;
+      upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []>;
     };
     timestamp: {
       /**
@@ -1072,8 +1094,8 @@ declare module '@polkadot/api/types/storage' {
       now: AugmentedQuery<ApiType, () => Observable<Moment>, []>;
     };
     transactionPayment: {
-      nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<Multiplier>>;
-      storageVersion: AugmentedQuery<ApiType, () => Observable<Releases>>;
+      nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<Multiplier>, []>;
+      storageVersion: AugmentedQuery<ApiType, () => Observable<Releases>, []>;
     };
   }
 

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 176 - 206
types/augment/augment-api-tx.ts


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 2
types/augment/augment-types.ts


+ 2 - 0
types/src/index.ts

@@ -4,6 +4,7 @@ import members from './members'
 import council from './council'
 import forum from './forum'
 import workingGroup from './working-group'
+import storage from './storage'
 import blog from './blog'
 import proposals from './proposals'
 import referendum from './referendum'
@@ -25,6 +26,7 @@ export const types: RegistryTypes = {
   ...council,
   ...forum,
   ...workingGroup,
+  ...storage,
   ...blog,
   ...proposals,
   ...referendum,

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio