Bläddra i källkod

Merge branch 'giza' into distributor-node

Leszek Wiesner 3 år sedan
förälder
incheckning
c157be42b1

+ 6 - 0
.github/workflows/query-node.yml

@@ -17,6 +17,9 @@ jobs:
     - name: checks
       run: |
         yarn install --frozen-lockfile
+        yarn workspace @joystream/types build
+        yarn workspace @joystream/metadata-protobuf build
+        yarn workspace query-node-root build
         yarn workspace query-node-mappings checks --quiet
 
   query_node_build_osx:
@@ -34,4 +37,7 @@ jobs:
     - name: checks
       run: |
         yarn install --frozen-lockfile --network-timeout 120000
+        yarn workspace @joystream/types build
+        yarn workspace @joystream/metadata-protobuf build
+        yarn workspace query-node-root build
         yarn workspace query-node-mappings checks --quiet

+ 0 - 8
apps.Dockerfile

@@ -1,15 +1,7 @@
-FROM mikefarah/yq as manifest-maker
-# Change metadata.source in manifest file. It's not possible to override it via flag/env.
-USER root
-ARG WS_PROVIDER_ENDPOINT_URI
-COPY ./query-node/manifest.yml /joystream/qn-manifest.yml
-RUN yq e -i ".typegen.metadata.source = \"$WS_PROVIDER_ENDPOINT_URI\"" /joystream/qn-manifest.yml
-
 FROM --platform=linux/x86-64 node:14 as builder
 
 WORKDIR /joystream
 COPY . /joystream
-COPY --from=manifest-maker /joystream/qn-manifest.yml /joystream/query-node/manifest.yml
 
 RUN rm -fr /joystream/pioneer
 

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
chain-metadata.json


+ 0 - 4
docker-compose.yml

@@ -103,8 +103,6 @@ services:
       context: .
       dockerfile: apps.Dockerfile
       network: joystream_default
-      args:
-        - WS_PROVIDER_ENDPOINT_URI=${WS_PROVIDER_ENDPOINT_URI}
     env_file:
       # relative to working directory where docker-compose was run from
       - .env
@@ -138,8 +136,6 @@ services:
       context: .
       dockerfile: apps.Dockerfile
       network: joystream_default
-      args:
-        - WS_PROVIDER_ENDPOINT_URI=${WS_PROVIDER_ENDPOINT_URI}
     env_file:
       # relative to working directory where docker-compose was run from
       - .env

+ 3 - 1
package.json

@@ -10,7 +10,9 @@
     "setup": "./setup.sh",
     "start": "./start.sh",
     "cargo-checks": "devops/git-hooks/pre-commit && devops/git-hooks/pre-push",
-    "cargo-build": "scripts/cargo-build.sh"
+    "cargo-build": "scripts/cargo-build.sh",
+    "update-chain-metadata": "scripts/fetch-chain-metadata.sh > chain-metadata.json",
+    "verify-chain-metadata": "scripts/verify-chain-metadata.sh"
   },
   "workspaces": [
     "tests/network-tests",

+ 1 - 1
query-node/manifest.yml

@@ -9,7 +9,7 @@ entities:
   - generated/graphql-server/dist/src/modules/**/*.model.js
 typegen:
   metadata:
-    source: ws://localhost:9944
+    source: ../chain-metadata.json
   events:
     # storage
     - storage.StorageBucketCreated

+ 4 - 0
scripts/fetch-chain-metadata.sh

@@ -0,0 +1,4 @@
+curl\
+  -H "Content-Type: application/json"\
+  -d '{"id":"1", "jsonrpc":"2.0", "method": "state_getMetadata", "params":[]}'\
+  http://localhost:9933

+ 14 - 0
scripts/verify-chain-metadata.sh

@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+set -e
+
+SCRIPT_PATH="$(dirname "${BASH_SOURCE[0]}")"
+cd $SCRIPT_PATH
+
+JSON_METADATA=$(cat ../chain-metadata.json)
+CHAIN_METADATA=$(./fetch-chain-metadata.sh)
+if [[ $(echo "$JSON_METADATA") == $(echo "$CHAIN_METADATA") ]]; then
+  echo "OK";
+else
+  echo "Current chain metadata does not match chain-metadata.json file!"
+  exit -1
+fi

+ 4 - 0
types/.gitignore

@@ -11,3 +11,7 @@ lib/
 
 # artifact of webpack when building pioneer?
 build/
+
+# Autogenerated files
+augment/augment-*
+augment-codec

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 16
types/augment-codec/all.ts


+ 0 - 284
types/augment-codec/augment-api-consts.ts

@@ -1,284 +0,0 @@
-// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
-/* eslint-disable */
-
-import type { Vec, u32, u64 } from '@polkadot/types';
-import type { MaxNumber, StorageBucketsPerBagValueConstraint } 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> {
-    babe: {
-      /**
-       * The number of **slots** that an epoch takes. We couple sessions to
-       * epochs, i.e. we start a new session once the new epoch begins.
-       **/
-      epochDuration: u64 & AugmentedConst<ApiType>;
-      /**
-       * The expected average block time at which BABE should be creating
-       * blocks. Since BABE is probabilistic it is not trivial to figure out
-       * what the expected average block time should be based on the slot
-       * duration and the security parameter `c` (where `1 - c` represents
-       * the probability of a slot being empty).
-       **/
-      expectedBlockTime: Moment & AugmentedConst<ApiType>;
-    };
-    balances: {
-      /**
-       * The minimum amount required to keep an account open.
-       **/
-      existentialDeposit: Balance & AugmentedConst<ApiType>;
-    };
-    content: {
-      /**
-       * Exports const -  max number of curators per group
-       **/
-      maxNumberOfCuratorsPerGroup: MaxNumber & AugmentedConst<ApiType>;
-    };
-    contentWorkingGroup: {
-      /**
-       * Exports const -  max simultaneous active worker number.
-       **/
-      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
-    };
-    distributionWorkingGroup: {
-      /**
-       * Exports const -  max simultaneous active worker number.
-       **/
-      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
-    };
-    finalityTracker: {
-      /**
-       * The delay after which point things become suspicious. Default is 1000.
-       **/
-      reportLatency: BlockNumber & AugmentedConst<ApiType>;
-      /**
-       * The number of recent samples to keep from this chain. Default is 101.
-       **/
-      windowSize: BlockNumber & AugmentedConst<ApiType>;
-    };
-    gatewayWorkingGroup: {
-      /**
-       * Exports const -  max simultaneous active worker number.
-       **/
-      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
-    };
-    members: {
-      screenedMemberMaxInitialBalance: BalanceOf & AugmentedConst<ApiType>;
-    };
-    operationsWorkingGroupAlpha: {
-      /**
-       * Exports const -  max simultaneous active worker number.
-       **/
-      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
-    };
-    operationsWorkingGroupBeta: {
-      /**
-       * Exports const -  max simultaneous active worker number.
-       **/
-      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
-    };
-    operationsWorkingGroupGamma: {
-      /**
-       * Exports const -  max simultaneous active worker number.
-       **/
-      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
-    };
-    proposalsCodex: {
-      /**
-       * Exports max wasm code length of the runtime upgrade proposal const.
-       **/
-      runtimeUpgradeWasmProposalMaxLength: u32 & AugmentedConst<ApiType>;
-      /**
-       * Exports max allowed text proposal length const.
-       **/
-      textProposalMaxLength: u32 & AugmentedConst<ApiType>;
-    };
-    proposalsDiscussion: {
-      /**
-       * Exports post edition number limit const.
-       **/
-      maxPostEditionNumber: u32 & AugmentedConst<ApiType>;
-      /**
-       * Exports max thread by same author in a row number limit const.
-       **/
-      maxThreadInARowNumber: u32 & AugmentedConst<ApiType>;
-      /**
-       * Exports post length limit const.
-       **/
-      postLengthLimit: u32 & AugmentedConst<ApiType>;
-      /**
-       * Exports thread title length limit const.
-       **/
-      threadTitleLengthLimit: u32 & AugmentedConst<ApiType>;
-    };
-    proposalsEngine: {
-      /**
-       * Exports const - the fee is applied when cancel the proposal. A fee would be slashed (burned).
-       **/
-      cancellationFee: BalanceOf & AugmentedConst<ApiType>;
-      /**
-       * Exports const -  max allowed proposal description length.
-       **/
-      descriptionMaxLength: u32 & AugmentedConst<ApiType>;
-      /**
-       * Exports const -  max simultaneous active proposals number.
-       **/
-      maxActiveProposalLimit: u32 & AugmentedConst<ApiType>;
-      /**
-       * Exports const -  the fee is applied when the proposal gets rejected. A fee would be slashed (burned).
-       **/
-      rejectionFee: BalanceOf & AugmentedConst<ApiType>;
-      /**
-       * Exports const -  max allowed proposal title length.
-       **/
-      titleMaxLength: u32 & AugmentedConst<ApiType>;
-    };
-    staking: {
-      /**
-       * Number of eras that staked funds must remain bonded for.
-       **/
-      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.
-       **/
-      maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
-      /**
-       * The threshold of improvement that should be provided for a new solution to be accepted.
-       **/
-      minSolutionScoreBump: Perbill & AugmentedConst<ApiType>;
-      /**
-       * Number of sessions per era.
-       **/
-      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.
-       **/
-      slashDeferDuration: EraIndex & AugmentedConst<ApiType>;
-    };
-    storage: {
-      /**
-       * Exports const - maximum size of the "hash blacklist" collection.
-       **/
-      blacklistSizeLimit: u64 & AugmentedConst<ApiType>;
-      /**
-       * Exports const - a prize for a data object deletion.
-       **/
-      dataObjectDeletionPrize: BalanceOf & AugmentedConst<ApiType>;
-      /**
-       * Exports const - the default dynamic bag creation policy for channels (storage bucket
-       * number).
-       **/
-      defaultChannelDynamicBagNumberOfStorageBuckets: u64 & AugmentedConst<ApiType>;
-      /**
-       * Exports const - the default dynamic bag creation policy for members (storage bucket
-       * number).
-       **/
-      defaultMemberDynamicBagNumberOfStorageBuckets: u64 & AugmentedConst<ApiType>;
-      /**
-       * Exports const - "Distribution buckets per bag" value constraint.
-       **/
-      distributionBucketsPerBagValueConstraint: StorageBucketsPerBagValueConstraint & AugmentedConst<ApiType>;
-      /**
-       * Exports const - max data object size in bytes.
-       **/
-      maxDataObjectSize: u64 & AugmentedConst<ApiType>;
-      /**
-       * Exports const - max allowed distribution bucket family number.
-       **/
-      maxDistributionBucketFamilyNumber: u64 & AugmentedConst<ApiType>;
-      /**
-       * Exports const - max allowed distribution bucket number per family.
-       **/
-      maxDistributionBucketNumberPerFamily: u64 & AugmentedConst<ApiType>;
-      /**
-       * Exports const - max number of pending invitations per distribution bucket.
-       **/
-      maxNumberOfPendingInvitationsPerDistributionBucket: u64 & AugmentedConst<ApiType>;
-      /**
-       * Exports const - "Storage buckets per bag" value constraint.
-       **/
-      storageBucketsPerBagValueConstraint: StorageBucketsPerBagValueConstraint & AugmentedConst<ApiType>;
-    };
-    storageWorkingGroup: {
-      /**
-       * Exports const -  max simultaneous active worker number.
-       **/
-      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
-    };
-    system: {
-      /**
-       * The base weight of executing a block, independent of the transactions in the block.
-       **/
-      blockExecutionWeight: Weight & AugmentedConst<ApiType>;
-      /**
-       * The maximum number of blocks to allow in mortal eras.
-       **/
-      blockHashCount: BlockNumber & AugmentedConst<ApiType>;
-      /**
-       * The weight of runtime database operations the runtime can invoke.
-       **/
-      dbWeight: RuntimeDbWeight & AugmentedConst<ApiType>;
-      /**
-       * The base weight of an Extrinsic in the block, independent of the of extrinsic being executed.
-       **/
-      extrinsicBaseWeight: Weight & AugmentedConst<ApiType>;
-      /**
-       * The maximum length of a block (in bytes).
-       **/
-      maximumBlockLength: u32 & AugmentedConst<ApiType>;
-      /**
-       * The maximum weight of a block.
-       **/
-      maximumBlockWeight: Weight & AugmentedConst<ApiType>;
-    };
-    timestamp: {
-      /**
-       * The minimum period between blocks. Beware that this is different to the *expected* period
-       * that the block production apparatus provides. Your chosen consensus system will generally
-       * work with this to determine a sensible block time. e.g. For Aura, it will be double this
-       * period on default settings.
-       **/
-      minimumPeriod: Moment & AugmentedConst<ApiType>;
-    };
-    transactionPayment: {
-      /**
-       * The fee to be paid for making a transaction; the per-byte portion.
-       **/
-      transactionByteFee: BalanceOf & AugmentedConst<ApiType>;
-      /**
-       * The polynomial that is applied in order to derive fee from weight.
-       **/
-      weightToFee: Vec<WeightToFeeCoefficient> & AugmentedConst<ApiType>;
-    };
-  }
-
-  export interface QueryableConsts<ApiType extends ApiTypes> extends AugmentedConsts<ApiType> {
-  }
-}

+ 0 - 3673
types/augment-codec/augment-api-errors.ts

@@ -1,3673 +0,0 @@
-// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
-/* eslint-disable */
-
-import type { ApiTypes } from '@polkadot/api/types';
-
-declare module '@polkadot/api/types/errors' {
-  export interface AugmentedErrors<ApiType> {
-    authorship: {
-      /**
-       * The uncle is genesis.
-       **/
-      GenesisUncle: AugmentedError<ApiType>;
-      /**
-       * The uncle parent not in the chain.
-       **/
-      InvalidUncleParent: AugmentedError<ApiType>;
-      /**
-       * The uncle isn't recent enough to be included.
-       **/
-      OldUncle: AugmentedError<ApiType>;
-      /**
-       * The uncle is too high in chain.
-       **/
-      TooHighUncle: AugmentedError<ApiType>;
-      /**
-       * Too many uncles.
-       **/
-      TooManyUncles: AugmentedError<ApiType>;
-      /**
-       * The uncle is already included.
-       **/
-      UncleAlreadyIncluded: AugmentedError<ApiType>;
-      /**
-       * Uncles already set in the block.
-       **/
-      UnclesAlreadySet: AugmentedError<ApiType>;
-    };
-    balances: {
-      /**
-       * Beneficiary account must pre-exist
-       **/
-      DeadAccount: AugmentedError<ApiType>;
-      /**
-       * Value too low to create account due to existential deposit
-       **/
-      ExistentialDeposit: AugmentedError<ApiType>;
-      /**
-       * A vesting schedule already exists for this account
-       **/
-      ExistingVestingSchedule: AugmentedError<ApiType>;
-      /**
-       * Balance too low to send value
-       **/
-      InsufficientBalance: AugmentedError<ApiType>;
-      /**
-       * Transfer/payment would kill account
-       **/
-      KeepAlive: AugmentedError<ApiType>;
-      /**
-       * Account liquidity restrictions prevent withdrawal
-       **/
-      LiquidityRestrictions: AugmentedError<ApiType>;
-      /**
-       * Got an overflow after adding
-       **/
-      Overflow: AugmentedError<ApiType>;
-      /**
-       * Vesting balance too high to send value
-       **/
-      VestingBalance: AugmentedError<ApiType>;
-    };
-    content: {
-      /**
-       * This content actor cannot own a channel
-       **/
-      ActorCannotOwnChannel: AugmentedError<ApiType>;
-      /**
-       * Operation cannot be perfomed with this Actor
-       **/
-      ActorNotAuthorized: AugmentedError<ApiType>;
-      /**
-       * Expected root or signed origin
-       **/
-      BadOrigin: AugmentedError<ApiType>;
-      /**
-       * Curators can only censor non-curator group owned channels
-       **/
-      CannotCensoreCuratorGroupOwnedChannels: AugmentedError<ApiType>;
-      /**
-       * A Channel or Video Category does not exist.
-       **/
-      CategoryDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Channel Contains Assets
-       **/
-      ChannelContainsAssets: AugmentedError<ApiType>;
-      /**
-       * Channel Contains Video
-       **/
-      ChannelContainsVideos: AugmentedError<ApiType>;
-      /**
-       * Channel does not exist
-       **/
-      ChannelDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Curator authentication failed
-       **/
-      CuratorAuthFailed: AugmentedError<ApiType>;
-      /**
-       * Given curator group does not exist
-       **/
-      CuratorGroupDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Curator group is not active
-       **/
-      CuratorGroupIsNotActive: AugmentedError<ApiType>;
-      /**
-       * Curator id is not a worker id in content working group
-       **/
-      CuratorIdInvalid: AugmentedError<ApiType>;
-      /**
-       * Curator under provided curator id is already a member of curaror group under given id
-       **/
-      CuratorIsAlreadyAMemberOfGivenCuratorGroup: AugmentedError<ApiType>;
-      /**
-       * Curator under provided curator id is not a member of curaror group under given id
-       **/
-      CuratorIsNotAMemberOfGivenCuratorGroup: AugmentedError<ApiType>;
-      /**
-       * Max number of curators per group limit reached
-       **/
-      CuratorsPerGroupLimitReached: AugmentedError<ApiType>;
-      /**
-       * Feature Not Implemented
-       **/
-      FeatureNotImplemented: AugmentedError<ApiType>;
-      /**
-       * Channel assets feasibility
-       **/
-      InvalidAssetsProvided: AugmentedError<ApiType>;
-      /**
-       * Bag Size specified is not valid
-       **/
-      InvalidBagSizeSpecified: AugmentedError<ApiType>;
-      /**
-       * Lead authentication failed
-       **/
-      LeadAuthFailed: AugmentedError<ApiType>;
-      /**
-       * Member authentication failed
-       **/
-      MemberAuthFailed: AugmentedError<ApiType>;
-      /**
-       * No assets to be removed have been specified
-       **/
-      NoAssetsSpecified: AugmentedError<ApiType>;
-      /**
-       * Video does not exist
-       **/
-      VideoDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Video in season can`t be removed (because order is important)
-       **/
-      VideoInSeason: AugmentedError<ApiType>;
-    };
-    contentWorkingGroup: {
-      /**
-       * Opening does not exist.
-       **/
-      AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting to begin.
-       **/
-      AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Opening does not activate in the future.
-       **/
-      AddWorkerOpeningActivatesInThePast: AugmentedError<ApiType>;
-      /**
-       * Add worker opening application stake cannot be zero.
-       **/
-      AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Application stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * New application was crowded out.
-       **/
-      AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      AddWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening is not in accepting applications stage.
-       **/
-      AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError<ApiType>;
-      /**
-       * Add worker opening role stake cannot be zero.
-       **/
-      AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Role stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * Stake amount too low.
-       **/
-      AddWorkerOpeningStakeAmountTooLow: AugmentedError<ApiType>;
-      /**
-       * Stake missing when required.
-       **/
-      AddWorkerOpeningStakeMissingWhenRequired: AugmentedError<ApiType>;
-      /**
-       * Stake provided when redundant.
-       **/
-      AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError<ApiType>;
-      /**
-       * Application rationing has zero max active applicants.
-       **/
-      AddWorkerOpeningZeroMaxApplicantCount: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_rationing_policy):
-       * max_active_applicants should be non-zero.
-       **/
-      ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer does not match controller account.
-       **/
-      ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting.
-       **/
-      BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Cannot find mint in the minting module.
-       **/
-      CannotFindMint: AugmentedError<ApiType>;
-      /**
-       * There is leader already, cannot hire another one.
-       **/
-      CannotHireLeaderWhenLeaderExists: AugmentedError<ApiType>;
-      /**
-       * Cannot fill opening with multiple applications.
-       **/
-      CannotHireMultipleLeaders: AugmentedError<ApiType>;
-      /**
-       * Current lead is not set.
-       **/
-      CurrentLeadNotSet: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_application_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Reward policy has invalid next payment block number.
-       **/
-      FillOpeningInvalidNextPaymentBlock: AugmentedError<ApiType>;
-      /**
-       * Working group mint does not exist.
-       **/
-      FillOpeningMintDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Applications not for opening.
-       **/
-      FillWorkerOpeningApplicationForWrongOpening: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      FullWorkerOpeningApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application not in active stage.
-       **/
-      FullWorkerOpeningApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * OpeningDoesNotExist.
-       **/
-      FullWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening not in review period stage.
-       **/
-      FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to apply.
-       **/
-      InsufficientBalanceToApply: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to cover stake.
-       **/
-      InsufficientBalanceToCoverStake: AugmentedError<ApiType>;
-      /**
-       * Not a lead account.
-       **/
-      IsNotLeadAccount: AugmentedError<ApiType>;
-      /**
-       * Working group size limit exceeded.
-       **/
-      MaxActiveWorkerNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Member already has an active application on the opening.
-       **/
-      MemberHasActiveApplicationOnOpening: AugmentedError<ApiType>;
-      /**
-       * Member id is invalid.
-       **/
-      MembershipInvalidMemberId: AugmentedError<ApiType>;
-      /**
-       * Unsigned origin.
-       **/
-      MembershipUnsignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Minting error: NextAdjustmentInPast
-       **/
-      MintingErrorNextAdjustmentInPast: AugmentedError<ApiType>;
-      /**
-       * Cannot get the worker stake profile.
-       **/
-      NoWorkerStakeProfile: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      OpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening text too long.
-       **/
-      OpeningTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Opening text too short.
-       **/
-      OpeningTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Origin must be controller or root account of member.
-       **/
-      OriginIsNeitherMemberControllerOrRoot: AugmentedError<ApiType>;
-      /**
-       * Origin is not applicant.
-       **/
-      OriginIsNotApplicant: AugmentedError<ApiType>;
-      /**
-       * Next payment is not in the future.
-       **/
-      RecurringRewardsNextPaymentNotInFuture: AugmentedError<ApiType>;
-      /**
-       * Recipient not found.
-       **/
-      RecurringRewardsRecipientNotFound: AugmentedError<ApiType>;
-      /**
-       * Reward relationship not found.
-       **/
-      RecurringRewardsRewardRelationshipNotFound: AugmentedError<ApiType>;
-      /**
-       * Recipient reward source not found.
-       **/
-      RecurringRewardsRewardSourceNotFound: AugmentedError<ApiType>;
-      /**
-       * Relationship must exist.
-       **/
-      RelationshipMustExist: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics.
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Require signed origin in extrinsics.
-       **/
-      RequireSignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer is not worker role account.
-       **/
-      SignerIsNotWorkerRoleAccount: AugmentedError<ApiType>;
-      /**
-       * Provided stake balance cannot be zero.
-       **/
-      StakeBalanceCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Already unstaking.
-       **/
-      StakingErrorAlreadyUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot change stake by zero.
-       **/
-      StakingErrorCannotChangeStakeByZero: AugmentedError<ApiType>;
-      /**
-       * Cannot decrease stake while slashes ongoing.
-       **/
-      StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Cannot increase stake while unstaking.
-       **/
-      StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot unstake while slashes ongoing.
-       **/
-      StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance in source account.
-       **/
-      StakingErrorInsufficientBalanceInSourceAccount: AugmentedError<ApiType>;
-      /**
-       * Insufficient stake to decrease.
-       **/
-      StakingErrorInsufficientStake: AugmentedError<ApiType>;
-      /**
-       * Not staked.
-       **/
-      StakingErrorNotStaked: AugmentedError<ApiType>;
-      /**
-       * Slash amount should be greater than zero.
-       **/
-      StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Stake not found.
-       **/
-      StakingErrorStakeNotFound: AugmentedError<ApiType>;
-      /**
-       * Unstaking period should be greater than zero.
-       **/
-      StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Successful worker application does not exist.
-       **/
-      SuccessfulWorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_application_stake_unstaking_period should be non-zero.
-       **/
-      TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_role_stake_unstaking_period should be non-zero.
-       **/
-      TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application is not active.
-       **/
-      WithdrawWorkerApplicationApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * Opening not accepting applications.
-       **/
-      WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError<ApiType>;
-      /**
-       * Redundant unstaking period provided
-       **/
-      WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError<ApiType>;
-      /**
-       * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE
-       **/
-      WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker application does not exist.
-       **/
-      WorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker application text too long.
-       **/
-      WorkerApplicationTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker application text too short.
-       **/
-      WorkerApplicationTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker does not exist.
-       **/
-      WorkerDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too long.
-       **/
-      WorkerExitRationaleTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too short.
-       **/
-      WorkerExitRationaleTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker has no recurring reward.
-       **/
-      WorkerHasNoReward: AugmentedError<ApiType>;
-      /**
-       * Worker storage text is too long.
-       **/
-      WorkerStorageValueTooLong: AugmentedError<ApiType>;
-    };
-    distributionWorkingGroup: {
-      /**
-       * Opening does not exist.
-       **/
-      AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting to begin.
-       **/
-      AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Opening does not activate in the future.
-       **/
-      AddWorkerOpeningActivatesInThePast: AugmentedError<ApiType>;
-      /**
-       * Add worker opening application stake cannot be zero.
-       **/
-      AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Application stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * New application was crowded out.
-       **/
-      AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      AddWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening is not in accepting applications stage.
-       **/
-      AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError<ApiType>;
-      /**
-       * Add worker opening role stake cannot be zero.
-       **/
-      AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Role stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * Stake amount too low.
-       **/
-      AddWorkerOpeningStakeAmountTooLow: AugmentedError<ApiType>;
-      /**
-       * Stake missing when required.
-       **/
-      AddWorkerOpeningStakeMissingWhenRequired: AugmentedError<ApiType>;
-      /**
-       * Stake provided when redundant.
-       **/
-      AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError<ApiType>;
-      /**
-       * Application rationing has zero max active applicants.
-       **/
-      AddWorkerOpeningZeroMaxApplicantCount: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_rationing_policy):
-       * max_active_applicants should be non-zero.
-       **/
-      ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer does not match controller account.
-       **/
-      ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting.
-       **/
-      BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Cannot find mint in the minting module.
-       **/
-      CannotFindMint: AugmentedError<ApiType>;
-      /**
-       * There is leader already, cannot hire another one.
-       **/
-      CannotHireLeaderWhenLeaderExists: AugmentedError<ApiType>;
-      /**
-       * Cannot fill opening with multiple applications.
-       **/
-      CannotHireMultipleLeaders: AugmentedError<ApiType>;
-      /**
-       * Current lead is not set.
-       **/
-      CurrentLeadNotSet: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_application_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Reward policy has invalid next payment block number.
-       **/
-      FillOpeningInvalidNextPaymentBlock: AugmentedError<ApiType>;
-      /**
-       * Working group mint does not exist.
-       **/
-      FillOpeningMintDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Applications not for opening.
-       **/
-      FillWorkerOpeningApplicationForWrongOpening: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      FullWorkerOpeningApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application not in active stage.
-       **/
-      FullWorkerOpeningApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * OpeningDoesNotExist.
-       **/
-      FullWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening not in review period stage.
-       **/
-      FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to apply.
-       **/
-      InsufficientBalanceToApply: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to cover stake.
-       **/
-      InsufficientBalanceToCoverStake: AugmentedError<ApiType>;
-      /**
-       * Not a lead account.
-       **/
-      IsNotLeadAccount: AugmentedError<ApiType>;
-      /**
-       * Working group size limit exceeded.
-       **/
-      MaxActiveWorkerNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Member already has an active application on the opening.
-       **/
-      MemberHasActiveApplicationOnOpening: AugmentedError<ApiType>;
-      /**
-       * Member id is invalid.
-       **/
-      MembershipInvalidMemberId: AugmentedError<ApiType>;
-      /**
-       * Unsigned origin.
-       **/
-      MembershipUnsignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Minting error: NextAdjustmentInPast
-       **/
-      MintingErrorNextAdjustmentInPast: AugmentedError<ApiType>;
-      /**
-       * Cannot get the worker stake profile.
-       **/
-      NoWorkerStakeProfile: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      OpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening text too long.
-       **/
-      OpeningTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Opening text too short.
-       **/
-      OpeningTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Origin must be controller or root account of member.
-       **/
-      OriginIsNeitherMemberControllerOrRoot: AugmentedError<ApiType>;
-      /**
-       * Origin is not applicant.
-       **/
-      OriginIsNotApplicant: AugmentedError<ApiType>;
-      /**
-       * Next payment is not in the future.
-       **/
-      RecurringRewardsNextPaymentNotInFuture: AugmentedError<ApiType>;
-      /**
-       * Recipient not found.
-       **/
-      RecurringRewardsRecipientNotFound: AugmentedError<ApiType>;
-      /**
-       * Reward relationship not found.
-       **/
-      RecurringRewardsRewardRelationshipNotFound: AugmentedError<ApiType>;
-      /**
-       * Recipient reward source not found.
-       **/
-      RecurringRewardsRewardSourceNotFound: AugmentedError<ApiType>;
-      /**
-       * Relationship must exist.
-       **/
-      RelationshipMustExist: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics.
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Require signed origin in extrinsics.
-       **/
-      RequireSignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer is not worker role account.
-       **/
-      SignerIsNotWorkerRoleAccount: AugmentedError<ApiType>;
-      /**
-       * Provided stake balance cannot be zero.
-       **/
-      StakeBalanceCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Already unstaking.
-       **/
-      StakingErrorAlreadyUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot change stake by zero.
-       **/
-      StakingErrorCannotChangeStakeByZero: AugmentedError<ApiType>;
-      /**
-       * Cannot decrease stake while slashes ongoing.
-       **/
-      StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Cannot increase stake while unstaking.
-       **/
-      StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot unstake while slashes ongoing.
-       **/
-      StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance in source account.
-       **/
-      StakingErrorInsufficientBalanceInSourceAccount: AugmentedError<ApiType>;
-      /**
-       * Insufficient stake to decrease.
-       **/
-      StakingErrorInsufficientStake: AugmentedError<ApiType>;
-      /**
-       * Not staked.
-       **/
-      StakingErrorNotStaked: AugmentedError<ApiType>;
-      /**
-       * Slash amount should be greater than zero.
-       **/
-      StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Stake not found.
-       **/
-      StakingErrorStakeNotFound: AugmentedError<ApiType>;
-      /**
-       * Unstaking period should be greater than zero.
-       **/
-      StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Successful worker application does not exist.
-       **/
-      SuccessfulWorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_application_stake_unstaking_period should be non-zero.
-       **/
-      TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_role_stake_unstaking_period should be non-zero.
-       **/
-      TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application is not active.
-       **/
-      WithdrawWorkerApplicationApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * Opening not accepting applications.
-       **/
-      WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError<ApiType>;
-      /**
-       * Redundant unstaking period provided
-       **/
-      WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError<ApiType>;
-      /**
-       * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE
-       **/
-      WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker application does not exist.
-       **/
-      WorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker application text too long.
-       **/
-      WorkerApplicationTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker application text too short.
-       **/
-      WorkerApplicationTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker does not exist.
-       **/
-      WorkerDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too long.
-       **/
-      WorkerExitRationaleTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too short.
-       **/
-      WorkerExitRationaleTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker has no recurring reward.
-       **/
-      WorkerHasNoReward: AugmentedError<ApiType>;
-      /**
-       * Worker storage text is too long.
-       **/
-      WorkerStorageValueTooLong: AugmentedError<ApiType>;
-    };
-    finalityTracker: {
-      /**
-       * Final hint must be updated only once in the block
-       **/
-      AlreadyUpdated: AugmentedError<ApiType>;
-      /**
-       * Finalized height above block number
-       **/
-      BadHint: AugmentedError<ApiType>;
-    };
-    gatewayWorkingGroup: {
-      /**
-       * Opening does not exist.
-       **/
-      AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting to begin.
-       **/
-      AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Opening does not activate in the future.
-       **/
-      AddWorkerOpeningActivatesInThePast: AugmentedError<ApiType>;
-      /**
-       * Add worker opening application stake cannot be zero.
-       **/
-      AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Application stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * New application was crowded out.
-       **/
-      AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      AddWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening is not in accepting applications stage.
-       **/
-      AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError<ApiType>;
-      /**
-       * Add worker opening role stake cannot be zero.
-       **/
-      AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Role stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * Stake amount too low.
-       **/
-      AddWorkerOpeningStakeAmountTooLow: AugmentedError<ApiType>;
-      /**
-       * Stake missing when required.
-       **/
-      AddWorkerOpeningStakeMissingWhenRequired: AugmentedError<ApiType>;
-      /**
-       * Stake provided when redundant.
-       **/
-      AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError<ApiType>;
-      /**
-       * Application rationing has zero max active applicants.
-       **/
-      AddWorkerOpeningZeroMaxApplicantCount: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_rationing_policy):
-       * max_active_applicants should be non-zero.
-       **/
-      ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer does not match controller account.
-       **/
-      ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting.
-       **/
-      BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Cannot find mint in the minting module.
-       **/
-      CannotFindMint: AugmentedError<ApiType>;
-      /**
-       * There is leader already, cannot hire another one.
-       **/
-      CannotHireLeaderWhenLeaderExists: AugmentedError<ApiType>;
-      /**
-       * Cannot fill opening with multiple applications.
-       **/
-      CannotHireMultipleLeaders: AugmentedError<ApiType>;
-      /**
-       * Current lead is not set.
-       **/
-      CurrentLeadNotSet: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_application_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Reward policy has invalid next payment block number.
-       **/
-      FillOpeningInvalidNextPaymentBlock: AugmentedError<ApiType>;
-      /**
-       * Working group mint does not exist.
-       **/
-      FillOpeningMintDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Applications not for opening.
-       **/
-      FillWorkerOpeningApplicationForWrongOpening: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      FullWorkerOpeningApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application not in active stage.
-       **/
-      FullWorkerOpeningApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * OpeningDoesNotExist.
-       **/
-      FullWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening not in review period stage.
-       **/
-      FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to apply.
-       **/
-      InsufficientBalanceToApply: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to cover stake.
-       **/
-      InsufficientBalanceToCoverStake: AugmentedError<ApiType>;
-      /**
-       * Not a lead account.
-       **/
-      IsNotLeadAccount: AugmentedError<ApiType>;
-      /**
-       * Working group size limit exceeded.
-       **/
-      MaxActiveWorkerNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Member already has an active application on the opening.
-       **/
-      MemberHasActiveApplicationOnOpening: AugmentedError<ApiType>;
-      /**
-       * Member id is invalid.
-       **/
-      MembershipInvalidMemberId: AugmentedError<ApiType>;
-      /**
-       * Unsigned origin.
-       **/
-      MembershipUnsignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Minting error: NextAdjustmentInPast
-       **/
-      MintingErrorNextAdjustmentInPast: AugmentedError<ApiType>;
-      /**
-       * Cannot get the worker stake profile.
-       **/
-      NoWorkerStakeProfile: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      OpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening text too long.
-       **/
-      OpeningTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Opening text too short.
-       **/
-      OpeningTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Origin must be controller or root account of member.
-       **/
-      OriginIsNeitherMemberControllerOrRoot: AugmentedError<ApiType>;
-      /**
-       * Origin is not applicant.
-       **/
-      OriginIsNotApplicant: AugmentedError<ApiType>;
-      /**
-       * Next payment is not in the future.
-       **/
-      RecurringRewardsNextPaymentNotInFuture: AugmentedError<ApiType>;
-      /**
-       * Recipient not found.
-       **/
-      RecurringRewardsRecipientNotFound: AugmentedError<ApiType>;
-      /**
-       * Reward relationship not found.
-       **/
-      RecurringRewardsRewardRelationshipNotFound: AugmentedError<ApiType>;
-      /**
-       * Recipient reward source not found.
-       **/
-      RecurringRewardsRewardSourceNotFound: AugmentedError<ApiType>;
-      /**
-       * Relationship must exist.
-       **/
-      RelationshipMustExist: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics.
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Require signed origin in extrinsics.
-       **/
-      RequireSignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer is not worker role account.
-       **/
-      SignerIsNotWorkerRoleAccount: AugmentedError<ApiType>;
-      /**
-       * Provided stake balance cannot be zero.
-       **/
-      StakeBalanceCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Already unstaking.
-       **/
-      StakingErrorAlreadyUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot change stake by zero.
-       **/
-      StakingErrorCannotChangeStakeByZero: AugmentedError<ApiType>;
-      /**
-       * Cannot decrease stake while slashes ongoing.
-       **/
-      StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Cannot increase stake while unstaking.
-       **/
-      StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot unstake while slashes ongoing.
-       **/
-      StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance in source account.
-       **/
-      StakingErrorInsufficientBalanceInSourceAccount: AugmentedError<ApiType>;
-      /**
-       * Insufficient stake to decrease.
-       **/
-      StakingErrorInsufficientStake: AugmentedError<ApiType>;
-      /**
-       * Not staked.
-       **/
-      StakingErrorNotStaked: AugmentedError<ApiType>;
-      /**
-       * Slash amount should be greater than zero.
-       **/
-      StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Stake not found.
-       **/
-      StakingErrorStakeNotFound: AugmentedError<ApiType>;
-      /**
-       * Unstaking period should be greater than zero.
-       **/
-      StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Successful worker application does not exist.
-       **/
-      SuccessfulWorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_application_stake_unstaking_period should be non-zero.
-       **/
-      TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_role_stake_unstaking_period should be non-zero.
-       **/
-      TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application is not active.
-       **/
-      WithdrawWorkerApplicationApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * Opening not accepting applications.
-       **/
-      WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError<ApiType>;
-      /**
-       * Redundant unstaking period provided
-       **/
-      WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError<ApiType>;
-      /**
-       * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE
-       **/
-      WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker application does not exist.
-       **/
-      WorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker application text too long.
-       **/
-      WorkerApplicationTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker application text too short.
-       **/
-      WorkerApplicationTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker does not exist.
-       **/
-      WorkerDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too long.
-       **/
-      WorkerExitRationaleTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too short.
-       **/
-      WorkerExitRationaleTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker has no recurring reward.
-       **/
-      WorkerHasNoReward: AugmentedError<ApiType>;
-      /**
-       * Worker storage text is too long.
-       **/
-      WorkerStorageValueTooLong: AugmentedError<ApiType>;
-    };
-    grandpa: {
-      /**
-       * Attempt to signal GRANDPA change with one already pending.
-       **/
-      ChangePending: AugmentedError<ApiType>;
-      /**
-       * A given equivocation report is valid but already previously reported.
-       **/
-      DuplicateOffenceReport: AugmentedError<ApiType>;
-      /**
-       * An equivocation proof provided as part of an equivocation report is invalid.
-       **/
-      InvalidEquivocationProof: AugmentedError<ApiType>;
-      /**
-       * A key ownership proof provided as part of an equivocation report is invalid.
-       **/
-      InvalidKeyOwnershipProof: AugmentedError<ApiType>;
-      /**
-       * Attempt to signal GRANDPA pause when the authority set isn't live
-       * (either paused or already pending pause).
-       **/
-      PauseFailed: AugmentedError<ApiType>;
-      /**
-       * Attempt to signal GRANDPA resume when the authority set isn't paused
-       * (either live or already pending resume).
-       **/
-      ResumeFailed: AugmentedError<ApiType>;
-      /**
-       * Cannot signal forced change so soon after last.
-       **/
-      TooSoon: AugmentedError<ApiType>;
-    };
-    imOnline: {
-      /**
-       * Duplicated heartbeat.
-       **/
-      DuplicatedHeartbeat: AugmentedError<ApiType>;
-      /**
-       * Non existent public key.
-       **/
-      InvalidKey: AugmentedError<ApiType>;
-    };
-    members: {
-      /**
-       * Avatar url is too long.
-       **/
-      AvatarUriTooLong: AugmentedError<ApiType>;
-      /**
-       * Controller account required.
-       **/
-      ControllerAccountRequired: AugmentedError<ApiType>;
-      /**
-       * Handle already registered.
-       **/
-      HandleAlreadyRegistered: AugmentedError<ApiType>;
-      /**
-       * Handle must be provided during registration.
-       **/
-      HandleMustBeProvidedDuringRegistration: AugmentedError<ApiType>;
-      /**
-       * Handle too long.
-       **/
-      HandleTooLong: AugmentedError<ApiType>;
-      /**
-       * Handle too short.
-       **/
-      HandleTooShort: AugmentedError<ApiType>;
-      /**
-       * Screening authority attempting to endow more that maximum allowed.
-       **/
-      InitialBalanceExceedsMaxInitialBalance: AugmentedError<ApiType>;
-      /**
-       * Member profile not found (invalid member id).
-       **/
-      MemberProfileNotFound: AugmentedError<ApiType>;
-      /**
-       * New memberships not allowed.
-       **/
-      NewMembershipsNotAllowed: AugmentedError<ApiType>;
-      /**
-       * A screening authority is not defined.
-       **/
-      NoScreeningAuthorityDefined: AugmentedError<ApiType>;
-      /**
-       * Not enough balance to buy membership.
-       **/
-      NotEnoughBalanceToBuyMembership: AugmentedError<ApiType>;
-      /**
-       * Origin is not the screeing authority.
-       **/
-      NotScreeningAuthority: AugmentedError<ApiType>;
-      /**
-       * Only new accounts can be used for screened members.
-       **/
-      OnlyNewAccountsCanBeUsedForScreenedMembers: AugmentedError<ApiType>;
-      /**
-       * Paid term id not active.
-       **/
-      PaidTermIdNotActive: AugmentedError<ApiType>;
-      /**
-       * Paid term id not found.
-       **/
-      PaidTermIdNotFound: AugmentedError<ApiType>;
-      /**
-       * Root account required.
-       **/
-      RootAccountRequired: AugmentedError<ApiType>;
-      /**
-       * Invalid origin.
-       **/
-      UnsignedOrigin: AugmentedError<ApiType>;
-    };
-    operationsWorkingGroupAlpha: {
-      /**
-       * Opening does not exist.
-       **/
-      AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting to begin.
-       **/
-      AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Opening does not activate in the future.
-       **/
-      AddWorkerOpeningActivatesInThePast: AugmentedError<ApiType>;
-      /**
-       * Add worker opening application stake cannot be zero.
-       **/
-      AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Application stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * New application was crowded out.
-       **/
-      AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      AddWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening is not in accepting applications stage.
-       **/
-      AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError<ApiType>;
-      /**
-       * Add worker opening role stake cannot be zero.
-       **/
-      AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Role stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * Stake amount too low.
-       **/
-      AddWorkerOpeningStakeAmountTooLow: AugmentedError<ApiType>;
-      /**
-       * Stake missing when required.
-       **/
-      AddWorkerOpeningStakeMissingWhenRequired: AugmentedError<ApiType>;
-      /**
-       * Stake provided when redundant.
-       **/
-      AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError<ApiType>;
-      /**
-       * Application rationing has zero max active applicants.
-       **/
-      AddWorkerOpeningZeroMaxApplicantCount: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_rationing_policy):
-       * max_active_applicants should be non-zero.
-       **/
-      ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer does not match controller account.
-       **/
-      ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting.
-       **/
-      BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Cannot find mint in the minting module.
-       **/
-      CannotFindMint: AugmentedError<ApiType>;
-      /**
-       * There is leader already, cannot hire another one.
-       **/
-      CannotHireLeaderWhenLeaderExists: AugmentedError<ApiType>;
-      /**
-       * Cannot fill opening with multiple applications.
-       **/
-      CannotHireMultipleLeaders: AugmentedError<ApiType>;
-      /**
-       * Current lead is not set.
-       **/
-      CurrentLeadNotSet: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_application_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Reward policy has invalid next payment block number.
-       **/
-      FillOpeningInvalidNextPaymentBlock: AugmentedError<ApiType>;
-      /**
-       * Working group mint does not exist.
-       **/
-      FillOpeningMintDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Applications not for opening.
-       **/
-      FillWorkerOpeningApplicationForWrongOpening: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      FullWorkerOpeningApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application not in active stage.
-       **/
-      FullWorkerOpeningApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * OpeningDoesNotExist.
-       **/
-      FullWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening not in review period stage.
-       **/
-      FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to apply.
-       **/
-      InsufficientBalanceToApply: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to cover stake.
-       **/
-      InsufficientBalanceToCoverStake: AugmentedError<ApiType>;
-      /**
-       * Not a lead account.
-       **/
-      IsNotLeadAccount: AugmentedError<ApiType>;
-      /**
-       * Working group size limit exceeded.
-       **/
-      MaxActiveWorkerNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Member already has an active application on the opening.
-       **/
-      MemberHasActiveApplicationOnOpening: AugmentedError<ApiType>;
-      /**
-       * Member id is invalid.
-       **/
-      MembershipInvalidMemberId: AugmentedError<ApiType>;
-      /**
-       * Unsigned origin.
-       **/
-      MembershipUnsignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Minting error: NextAdjustmentInPast
-       **/
-      MintingErrorNextAdjustmentInPast: AugmentedError<ApiType>;
-      /**
-       * Cannot get the worker stake profile.
-       **/
-      NoWorkerStakeProfile: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      OpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening text too long.
-       **/
-      OpeningTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Opening text too short.
-       **/
-      OpeningTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Origin must be controller or root account of member.
-       **/
-      OriginIsNeitherMemberControllerOrRoot: AugmentedError<ApiType>;
-      /**
-       * Origin is not applicant.
-       **/
-      OriginIsNotApplicant: AugmentedError<ApiType>;
-      /**
-       * Next payment is not in the future.
-       **/
-      RecurringRewardsNextPaymentNotInFuture: AugmentedError<ApiType>;
-      /**
-       * Recipient not found.
-       **/
-      RecurringRewardsRecipientNotFound: AugmentedError<ApiType>;
-      /**
-       * Reward relationship not found.
-       **/
-      RecurringRewardsRewardRelationshipNotFound: AugmentedError<ApiType>;
-      /**
-       * Recipient reward source not found.
-       **/
-      RecurringRewardsRewardSourceNotFound: AugmentedError<ApiType>;
-      /**
-       * Relationship must exist.
-       **/
-      RelationshipMustExist: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics.
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Require signed origin in extrinsics.
-       **/
-      RequireSignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer is not worker role account.
-       **/
-      SignerIsNotWorkerRoleAccount: AugmentedError<ApiType>;
-      /**
-       * Provided stake balance cannot be zero.
-       **/
-      StakeBalanceCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Already unstaking.
-       **/
-      StakingErrorAlreadyUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot change stake by zero.
-       **/
-      StakingErrorCannotChangeStakeByZero: AugmentedError<ApiType>;
-      /**
-       * Cannot decrease stake while slashes ongoing.
-       **/
-      StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Cannot increase stake while unstaking.
-       **/
-      StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot unstake while slashes ongoing.
-       **/
-      StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance in source account.
-       **/
-      StakingErrorInsufficientBalanceInSourceAccount: AugmentedError<ApiType>;
-      /**
-       * Insufficient stake to decrease.
-       **/
-      StakingErrorInsufficientStake: AugmentedError<ApiType>;
-      /**
-       * Not staked.
-       **/
-      StakingErrorNotStaked: AugmentedError<ApiType>;
-      /**
-       * Slash amount should be greater than zero.
-       **/
-      StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Stake not found.
-       **/
-      StakingErrorStakeNotFound: AugmentedError<ApiType>;
-      /**
-       * Unstaking period should be greater than zero.
-       **/
-      StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Successful worker application does not exist.
-       **/
-      SuccessfulWorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_application_stake_unstaking_period should be non-zero.
-       **/
-      TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_role_stake_unstaking_period should be non-zero.
-       **/
-      TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application is not active.
-       **/
-      WithdrawWorkerApplicationApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * Opening not accepting applications.
-       **/
-      WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError<ApiType>;
-      /**
-       * Redundant unstaking period provided
-       **/
-      WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError<ApiType>;
-      /**
-       * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE
-       **/
-      WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker application does not exist.
-       **/
-      WorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker application text too long.
-       **/
-      WorkerApplicationTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker application text too short.
-       **/
-      WorkerApplicationTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker does not exist.
-       **/
-      WorkerDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too long.
-       **/
-      WorkerExitRationaleTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too short.
-       **/
-      WorkerExitRationaleTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker has no recurring reward.
-       **/
-      WorkerHasNoReward: AugmentedError<ApiType>;
-      /**
-       * Worker storage text is too long.
-       **/
-      WorkerStorageValueTooLong: AugmentedError<ApiType>;
-    };
-    operationsWorkingGroupBeta: {
-      /**
-       * Opening does not exist.
-       **/
-      AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting to begin.
-       **/
-      AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Opening does not activate in the future.
-       **/
-      AddWorkerOpeningActivatesInThePast: AugmentedError<ApiType>;
-      /**
-       * Add worker opening application stake cannot be zero.
-       **/
-      AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Application stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * New application was crowded out.
-       **/
-      AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      AddWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening is not in accepting applications stage.
-       **/
-      AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError<ApiType>;
-      /**
-       * Add worker opening role stake cannot be zero.
-       **/
-      AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Role stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * Stake amount too low.
-       **/
-      AddWorkerOpeningStakeAmountTooLow: AugmentedError<ApiType>;
-      /**
-       * Stake missing when required.
-       **/
-      AddWorkerOpeningStakeMissingWhenRequired: AugmentedError<ApiType>;
-      /**
-       * Stake provided when redundant.
-       **/
-      AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError<ApiType>;
-      /**
-       * Application rationing has zero max active applicants.
-       **/
-      AddWorkerOpeningZeroMaxApplicantCount: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_rationing_policy):
-       * max_active_applicants should be non-zero.
-       **/
-      ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer does not match controller account.
-       **/
-      ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting.
-       **/
-      BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Cannot find mint in the minting module.
-       **/
-      CannotFindMint: AugmentedError<ApiType>;
-      /**
-       * There is leader already, cannot hire another one.
-       **/
-      CannotHireLeaderWhenLeaderExists: AugmentedError<ApiType>;
-      /**
-       * Cannot fill opening with multiple applications.
-       **/
-      CannotHireMultipleLeaders: AugmentedError<ApiType>;
-      /**
-       * Current lead is not set.
-       **/
-      CurrentLeadNotSet: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_application_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Reward policy has invalid next payment block number.
-       **/
-      FillOpeningInvalidNextPaymentBlock: AugmentedError<ApiType>;
-      /**
-       * Working group mint does not exist.
-       **/
-      FillOpeningMintDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Applications not for opening.
-       **/
-      FillWorkerOpeningApplicationForWrongOpening: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      FullWorkerOpeningApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application not in active stage.
-       **/
-      FullWorkerOpeningApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * OpeningDoesNotExist.
-       **/
-      FullWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening not in review period stage.
-       **/
-      FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to apply.
-       **/
-      InsufficientBalanceToApply: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to cover stake.
-       **/
-      InsufficientBalanceToCoverStake: AugmentedError<ApiType>;
-      /**
-       * Not a lead account.
-       **/
-      IsNotLeadAccount: AugmentedError<ApiType>;
-      /**
-       * Working group size limit exceeded.
-       **/
-      MaxActiveWorkerNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Member already has an active application on the opening.
-       **/
-      MemberHasActiveApplicationOnOpening: AugmentedError<ApiType>;
-      /**
-       * Member id is invalid.
-       **/
-      MembershipInvalidMemberId: AugmentedError<ApiType>;
-      /**
-       * Unsigned origin.
-       **/
-      MembershipUnsignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Minting error: NextAdjustmentInPast
-       **/
-      MintingErrorNextAdjustmentInPast: AugmentedError<ApiType>;
-      /**
-       * Cannot get the worker stake profile.
-       **/
-      NoWorkerStakeProfile: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      OpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening text too long.
-       **/
-      OpeningTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Opening text too short.
-       **/
-      OpeningTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Origin must be controller or root account of member.
-       **/
-      OriginIsNeitherMemberControllerOrRoot: AugmentedError<ApiType>;
-      /**
-       * Origin is not applicant.
-       **/
-      OriginIsNotApplicant: AugmentedError<ApiType>;
-      /**
-       * Next payment is not in the future.
-       **/
-      RecurringRewardsNextPaymentNotInFuture: AugmentedError<ApiType>;
-      /**
-       * Recipient not found.
-       **/
-      RecurringRewardsRecipientNotFound: AugmentedError<ApiType>;
-      /**
-       * Reward relationship not found.
-       **/
-      RecurringRewardsRewardRelationshipNotFound: AugmentedError<ApiType>;
-      /**
-       * Recipient reward source not found.
-       **/
-      RecurringRewardsRewardSourceNotFound: AugmentedError<ApiType>;
-      /**
-       * Relationship must exist.
-       **/
-      RelationshipMustExist: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics.
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Require signed origin in extrinsics.
-       **/
-      RequireSignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer is not worker role account.
-       **/
-      SignerIsNotWorkerRoleAccount: AugmentedError<ApiType>;
-      /**
-       * Provided stake balance cannot be zero.
-       **/
-      StakeBalanceCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Already unstaking.
-       **/
-      StakingErrorAlreadyUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot change stake by zero.
-       **/
-      StakingErrorCannotChangeStakeByZero: AugmentedError<ApiType>;
-      /**
-       * Cannot decrease stake while slashes ongoing.
-       **/
-      StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Cannot increase stake while unstaking.
-       **/
-      StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot unstake while slashes ongoing.
-       **/
-      StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance in source account.
-       **/
-      StakingErrorInsufficientBalanceInSourceAccount: AugmentedError<ApiType>;
-      /**
-       * Insufficient stake to decrease.
-       **/
-      StakingErrorInsufficientStake: AugmentedError<ApiType>;
-      /**
-       * Not staked.
-       **/
-      StakingErrorNotStaked: AugmentedError<ApiType>;
-      /**
-       * Slash amount should be greater than zero.
-       **/
-      StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Stake not found.
-       **/
-      StakingErrorStakeNotFound: AugmentedError<ApiType>;
-      /**
-       * Unstaking period should be greater than zero.
-       **/
-      StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Successful worker application does not exist.
-       **/
-      SuccessfulWorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_application_stake_unstaking_period should be non-zero.
-       **/
-      TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_role_stake_unstaking_period should be non-zero.
-       **/
-      TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application is not active.
-       **/
-      WithdrawWorkerApplicationApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * Opening not accepting applications.
-       **/
-      WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError<ApiType>;
-      /**
-       * Redundant unstaking period provided
-       **/
-      WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError<ApiType>;
-      /**
-       * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE
-       **/
-      WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker application does not exist.
-       **/
-      WorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker application text too long.
-       **/
-      WorkerApplicationTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker application text too short.
-       **/
-      WorkerApplicationTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker does not exist.
-       **/
-      WorkerDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too long.
-       **/
-      WorkerExitRationaleTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too short.
-       **/
-      WorkerExitRationaleTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker has no recurring reward.
-       **/
-      WorkerHasNoReward: AugmentedError<ApiType>;
-      /**
-       * Worker storage text is too long.
-       **/
-      WorkerStorageValueTooLong: AugmentedError<ApiType>;
-    };
-    operationsWorkingGroupGamma: {
-      /**
-       * Opening does not exist.
-       **/
-      AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting to begin.
-       **/
-      AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Opening does not activate in the future.
-       **/
-      AddWorkerOpeningActivatesInThePast: AugmentedError<ApiType>;
-      /**
-       * Add worker opening application stake cannot be zero.
-       **/
-      AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Application stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * New application was crowded out.
-       **/
-      AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      AddWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening is not in accepting applications stage.
-       **/
-      AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError<ApiType>;
-      /**
-       * Add worker opening role stake cannot be zero.
-       **/
-      AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Role stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * Stake amount too low.
-       **/
-      AddWorkerOpeningStakeAmountTooLow: AugmentedError<ApiType>;
-      /**
-       * Stake missing when required.
-       **/
-      AddWorkerOpeningStakeMissingWhenRequired: AugmentedError<ApiType>;
-      /**
-       * Stake provided when redundant.
-       **/
-      AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError<ApiType>;
-      /**
-       * Application rationing has zero max active applicants.
-       **/
-      AddWorkerOpeningZeroMaxApplicantCount: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_rationing_policy):
-       * max_active_applicants should be non-zero.
-       **/
-      ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer does not match controller account.
-       **/
-      ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting.
-       **/
-      BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Cannot find mint in the minting module.
-       **/
-      CannotFindMint: AugmentedError<ApiType>;
-      /**
-       * There is leader already, cannot hire another one.
-       **/
-      CannotHireLeaderWhenLeaderExists: AugmentedError<ApiType>;
-      /**
-       * Cannot fill opening with multiple applications.
-       **/
-      CannotHireMultipleLeaders: AugmentedError<ApiType>;
-      /**
-       * Current lead is not set.
-       **/
-      CurrentLeadNotSet: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_application_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Reward policy has invalid next payment block number.
-       **/
-      FillOpeningInvalidNextPaymentBlock: AugmentedError<ApiType>;
-      /**
-       * Working group mint does not exist.
-       **/
-      FillOpeningMintDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Applications not for opening.
-       **/
-      FillWorkerOpeningApplicationForWrongOpening: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      FullWorkerOpeningApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application not in active stage.
-       **/
-      FullWorkerOpeningApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * OpeningDoesNotExist.
-       **/
-      FullWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening not in review period stage.
-       **/
-      FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to apply.
-       **/
-      InsufficientBalanceToApply: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to cover stake.
-       **/
-      InsufficientBalanceToCoverStake: AugmentedError<ApiType>;
-      /**
-       * Not a lead account.
-       **/
-      IsNotLeadAccount: AugmentedError<ApiType>;
-      /**
-       * Working group size limit exceeded.
-       **/
-      MaxActiveWorkerNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Member already has an active application on the opening.
-       **/
-      MemberHasActiveApplicationOnOpening: AugmentedError<ApiType>;
-      /**
-       * Member id is invalid.
-       **/
-      MembershipInvalidMemberId: AugmentedError<ApiType>;
-      /**
-       * Unsigned origin.
-       **/
-      MembershipUnsignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Minting error: NextAdjustmentInPast
-       **/
-      MintingErrorNextAdjustmentInPast: AugmentedError<ApiType>;
-      /**
-       * Cannot get the worker stake profile.
-       **/
-      NoWorkerStakeProfile: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      OpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening text too long.
-       **/
-      OpeningTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Opening text too short.
-       **/
-      OpeningTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Origin must be controller or root account of member.
-       **/
-      OriginIsNeitherMemberControllerOrRoot: AugmentedError<ApiType>;
-      /**
-       * Origin is not applicant.
-       **/
-      OriginIsNotApplicant: AugmentedError<ApiType>;
-      /**
-       * Next payment is not in the future.
-       **/
-      RecurringRewardsNextPaymentNotInFuture: AugmentedError<ApiType>;
-      /**
-       * Recipient not found.
-       **/
-      RecurringRewardsRecipientNotFound: AugmentedError<ApiType>;
-      /**
-       * Reward relationship not found.
-       **/
-      RecurringRewardsRewardRelationshipNotFound: AugmentedError<ApiType>;
-      /**
-       * Recipient reward source not found.
-       **/
-      RecurringRewardsRewardSourceNotFound: AugmentedError<ApiType>;
-      /**
-       * Relationship must exist.
-       **/
-      RelationshipMustExist: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics.
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Require signed origin in extrinsics.
-       **/
-      RequireSignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer is not worker role account.
-       **/
-      SignerIsNotWorkerRoleAccount: AugmentedError<ApiType>;
-      /**
-       * Provided stake balance cannot be zero.
-       **/
-      StakeBalanceCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Already unstaking.
-       **/
-      StakingErrorAlreadyUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot change stake by zero.
-       **/
-      StakingErrorCannotChangeStakeByZero: AugmentedError<ApiType>;
-      /**
-       * Cannot decrease stake while slashes ongoing.
-       **/
-      StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Cannot increase stake while unstaking.
-       **/
-      StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot unstake while slashes ongoing.
-       **/
-      StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance in source account.
-       **/
-      StakingErrorInsufficientBalanceInSourceAccount: AugmentedError<ApiType>;
-      /**
-       * Insufficient stake to decrease.
-       **/
-      StakingErrorInsufficientStake: AugmentedError<ApiType>;
-      /**
-       * Not staked.
-       **/
-      StakingErrorNotStaked: AugmentedError<ApiType>;
-      /**
-       * Slash amount should be greater than zero.
-       **/
-      StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Stake not found.
-       **/
-      StakingErrorStakeNotFound: AugmentedError<ApiType>;
-      /**
-       * Unstaking period should be greater than zero.
-       **/
-      StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Successful worker application does not exist.
-       **/
-      SuccessfulWorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_application_stake_unstaking_period should be non-zero.
-       **/
-      TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_role_stake_unstaking_period should be non-zero.
-       **/
-      TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application is not active.
-       **/
-      WithdrawWorkerApplicationApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * Opening not accepting applications.
-       **/
-      WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError<ApiType>;
-      /**
-       * Redundant unstaking period provided
-       **/
-      WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError<ApiType>;
-      /**
-       * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE
-       **/
-      WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker application does not exist.
-       **/
-      WorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker application text too long.
-       **/
-      WorkerApplicationTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker application text too short.
-       **/
-      WorkerApplicationTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker does not exist.
-       **/
-      WorkerDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too long.
-       **/
-      WorkerExitRationaleTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too short.
-       **/
-      WorkerExitRationaleTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker has no recurring reward.
-       **/
-      WorkerHasNoReward: AugmentedError<ApiType>;
-      /**
-       * Worker storage text is too long.
-       **/
-      WorkerStorageValueTooLong: AugmentedError<ApiType>;
-    };
-    proposalsCodex: {
-      /**
-       * Invalid 'decrease stake proposal' parameter - cannot decrease by zero balance.
-       **/
-      DecreasingStakeIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid content working group mint capacity parameter
-       **/
-      InvalidContentWorkingGroupMintCapacity: AugmentedError<ApiType>;
-      /**
-       * Invalid council election parameter - announcing_period
-       **/
-      InvalidCouncilElectionParameterAnnouncingPeriod: AugmentedError<ApiType>;
-      /**
-       * Invalid council election parameter - candidacy-limit
-       **/
-      InvalidCouncilElectionParameterCandidacyLimit: AugmentedError<ApiType>;
-      /**
-       * Invalid council election parameter - council_size
-       **/
-      InvalidCouncilElectionParameterCouncilSize: AugmentedError<ApiType>;
-      /**
-       * Invalid council election parameter - min_council_stake
-       **/
-      InvalidCouncilElectionParameterMinCouncilStake: AugmentedError<ApiType>;
-      /**
-       * Invalid council election parameter - min-voting_stake
-       **/
-      InvalidCouncilElectionParameterMinVotingStake: AugmentedError<ApiType>;
-      /**
-       * Invalid council election parameter - new_term_duration
-       **/
-      InvalidCouncilElectionParameterNewTermDuration: AugmentedError<ApiType>;
-      /**
-       * Invalid council election parameter - revealing_period
-       **/
-      InvalidCouncilElectionParameterRevealingPeriod: AugmentedError<ApiType>;
-      /**
-       * Invalid council election parameter - voting_period
-       **/
-      InvalidCouncilElectionParameterVotingPeriod: AugmentedError<ApiType>;
-      /**
-       * Invalid 'set lead proposal' parameter - proposed lead cannot be a councilor
-       **/
-      InvalidSetLeadParameterCannotBeCouncilor: AugmentedError<ApiType>;
-      /**
-       * Invalid balance value for the spending proposal
-       **/
-      InvalidSpendingProposalBalance: AugmentedError<ApiType>;
-      /**
-       * Invalid validator count for the 'set validator count' proposal
-       **/
-      InvalidValidatorCount: AugmentedError<ApiType>;
-      /**
-       * Invalid working group mint capacity parameter
-       **/
-      InvalidWorkingGroupMintCapacity: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Provided WASM code for the runtime upgrade proposal is empty
-       **/
-      RuntimeProposalIsEmpty: AugmentedError<ApiType>;
-      /**
-       * The size of the provided WASM code for the runtime upgrade proposal exceeded the limit
-       **/
-      RuntimeProposalSizeExceeded: AugmentedError<ApiType>;
-      /**
-       * Invalid 'slash stake proposal' parameter - cannot slash by zero balance.
-       **/
-      SlashingStakeIsZero: AugmentedError<ApiType>;
-      /**
-       * Provided text for text proposal is empty
-       **/
-      TextProposalIsEmpty: AugmentedError<ApiType>;
-      /**
-       * The size of the provided text for text proposal exceeded the limit
-       **/
-      TextProposalSizeExceeded: AugmentedError<ApiType>;
-    };
-    proposalsDiscussion: {
-      /**
-       * Post cannot be empty
-       **/
-      EmptyPostProvided: AugmentedError<ApiType>;
-      /**
-       * Discussion cannot have an empty title
-       **/
-      EmptyTitleProvided: AugmentedError<ApiType>;
-      /**
-       * Max number of threads by same author in a row limit exceeded
-       **/
-      MaxThreadInARowLimitExceeded: AugmentedError<ApiType>;
-      /**
-       * Author should match the post creator
-       **/
-      NotAuthor: AugmentedError<ApiType>;
-      /**
-       * Post doesn't exist
-       **/
-      PostDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Post edition limit reached
-       **/
-      PostEditionNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Post is too long
-       **/
-      PostIsTooLong: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Thread doesn't exist
-       **/
-      ThreadDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Title is too long
-       **/
-      TitleIsTooLong: AugmentedError<ApiType>;
-    };
-    proposalsEngine: {
-      /**
-       * The proposal have been already voted on
-       **/
-      AlreadyVoted: AugmentedError<ApiType>;
-      /**
-       * Description is too long
-       **/
-      DescriptionIsTooLong: AugmentedError<ApiType>;
-      /**
-       * Proposal cannot have an empty body
-       **/
-      EmptyDescriptionProvided: AugmentedError<ApiType>;
-      /**
-       * Stake cannot be empty with this proposal
-       **/
-      EmptyStake: AugmentedError<ApiType>;
-      /**
-       * Proposal cannot have an empty title"
-       **/
-      EmptyTitleProvided: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance for operation.
-       **/
-      InsufficientBalance: AugmentedError<ApiType>;
-      /**
-       * Approval threshold cannot be zero
-       **/
-      InvalidParameterApprovalThreshold: AugmentedError<ApiType>;
-      /**
-       * Slashing threshold cannot be zero
-       **/
-      InvalidParameterSlashingThreshold: AugmentedError<ApiType>;
-      /**
-       * Max active proposals number exceeded
-       **/
-      MaxActiveProposalNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Not an author
-       **/
-      NotAuthor: AugmentedError<ApiType>;
-      /**
-       * Proposal is finalized already
-       **/
-      ProposalFinalized: AugmentedError<ApiType>;
-      /**
-       * The proposal does not exist
-       **/
-      ProposalNotFound: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Stake differs from the proposal requirements
-       **/
-      StakeDiffersFromRequired: AugmentedError<ApiType>;
-      /**
-       * Stake should be empty for this proposal
-       **/
-      StakeShouldBeEmpty: AugmentedError<ApiType>;
-      /**
-       * Title is too long
-       **/
-      TitleIsTooLong: AugmentedError<ApiType>;
-    };
-    session: {
-      /**
-       * Registered duplicate key.
-       **/
-      DuplicatedKey: AugmentedError<ApiType>;
-      /**
-       * Invalid ownership proof.
-       **/
-      InvalidProof: AugmentedError<ApiType>;
-      /**
-       * No associated validator ID for account.
-       **/
-      NoAssociatedValidatorId: AugmentedError<ApiType>;
-      /**
-       * No keys are associated with this account.
-       **/
-      NoKeys: AugmentedError<ApiType>;
-    };
-    staking: {
-      /**
-       * Stash is already bonded.
-       **/
-      AlreadyBonded: AugmentedError<ApiType>;
-      /**
-       * Rewards for this era have already been claimed for this validator.
-       **/
-      AlreadyClaimed: AugmentedError<ApiType>;
-      /**
-       * Controller is already paired.
-       **/
-      AlreadyPaired: AugmentedError<ApiType>;
-      /**
-       * The call is not allowed at the given time due to restrictions of election period.
-       **/
-      CallNotAllowed: AugmentedError<ApiType>;
-      /**
-       * Duplicate index.
-       **/
-      DuplicateIndex: AugmentedError<ApiType>;
-      /**
-       * Targets cannot be empty.
-       **/
-      EmptyTargets: AugmentedError<ApiType>;
-      /**
-       * Attempting to target a stash that still has funds.
-       **/
-      FundedTarget: AugmentedError<ApiType>;
-      /**
-       * Incorrect previous history depth input provided.
-       **/
-      IncorrectHistoryDepth: AugmentedError<ApiType>;
-      /**
-       * Incorrect number of slashing spans provided.
-       **/
-      IncorrectSlashingSpans: AugmentedError<ApiType>;
-      /**
-       * Can not bond with value less than minimum balance.
-       **/
-      InsufficientValue: AugmentedError<ApiType>;
-      /**
-       * Invalid era to reward.
-       **/
-      InvalidEraToReward: AugmentedError<ApiType>;
-      /**
-       * Invalid number of nominations.
-       **/
-      InvalidNumberOfNominations: AugmentedError<ApiType>;
-      /**
-       * Slash record index out of bounds.
-       **/
-      InvalidSlashIndex: AugmentedError<ApiType>;
-      /**
-       * Can not schedule more unlock chunks.
-       **/
-      NoMoreChunks: AugmentedError<ApiType>;
-      /**
-       * Not a controller account.
-       **/
-      NotController: AugmentedError<ApiType>;
-      /**
-       * Items are not sorted and unique.
-       **/
-      NotSortedAndUnique: AugmentedError<ApiType>;
-      /**
-       * Not a stash account.
-       **/
-      NotStash: AugmentedError<ApiType>;
-      /**
-       * Can not rebond without unlocking chunks.
-       **/
-      NoUnlockChunk: AugmentedError<ApiType>;
-      /**
-       * Error while building the assignment type from the compact. This can happen if an index
-       * is invalid, or if the weights _overflow_.
-       **/
-      OffchainElectionBogusCompact: AugmentedError<ApiType>;
-      /**
-       * The submitted result has unknown edges that are not among the presented winners.
-       **/
-      OffchainElectionBogusEdge: AugmentedError<ApiType>;
-      /**
-       * The election size is invalid.
-       **/
-      OffchainElectionBogusElectionSize: AugmentedError<ApiType>;
-      /**
-       * One of the submitted nominators has an edge to which they have not voted on chain.
-       **/
-      OffchainElectionBogusNomination: AugmentedError<ApiType>;
-      /**
-       * One of the submitted nominators is not an active nominator on chain.
-       **/
-      OffchainElectionBogusNominator: AugmentedError<ApiType>;
-      /**
-       * The claimed score does not match with the one computed from the data.
-       **/
-      OffchainElectionBogusScore: AugmentedError<ApiType>;
-      /**
-       * A self vote must only be originated from a validator to ONLY themselves.
-       **/
-      OffchainElectionBogusSelfVote: AugmentedError<ApiType>;
-      /**
-       * One of the submitted winners is not an active candidate on chain (index is out of range
-       * in snapshot).
-       **/
-      OffchainElectionBogusWinner: AugmentedError<ApiType>;
-      /**
-       * Incorrect number of winners were presented.
-       **/
-      OffchainElectionBogusWinnerCount: AugmentedError<ApiType>;
-      /**
-       * The submitted result is received out of the open window.
-       **/
-      OffchainElectionEarlySubmission: AugmentedError<ApiType>;
-      /**
-       * One of the submitted nominators has an edge which is submitted before the last non-zero
-       * slash of the target.
-       **/
-      OffchainElectionSlashedNomination: AugmentedError<ApiType>;
-      /**
-       * The submitted result is not as good as the one stored on chain.
-       **/
-      OffchainElectionWeakSubmission: AugmentedError<ApiType>;
-      /**
-       * The snapshot data of the current window is missing.
-       **/
-      SnapshotUnavailable: AugmentedError<ApiType>;
-    };
-    storage: {
-      /**
-       * Blacklist size limit exceeded.
-       **/
-      BlacklistSizeLimitExceeded: AugmentedError<ApiType>;
-      /**
-       * Cannot delete non empty dynamic bag.
-       **/
-      CannotDeleteNonEmptyDynamicBag: AugmentedError<ApiType>;
-      /**
-       * Cannot delete a non-empty storage bucket.
-       **/
-      CannotDeleteNonEmptyStorageBucket: AugmentedError<ApiType>;
-      /**
-       * Data object hash is part of the blacklist.
-       **/
-      DataObjectBlacklisted: AugmentedError<ApiType>;
-      /**
-       * Data object doesn't exist.
-       **/
-      DataObjectDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Data object id collection is empty.
-       **/
-      DataObjectIdCollectionIsEmpty: AugmentedError<ApiType>;
-      /**
-       * The `data_object_ids` extrinsic parameter collection is empty.
-       **/
-      DataObjectIdParamsAreEmpty: AugmentedError<ApiType>;
-      /**
-       * Invalid extrinsic call: data size fee changed.
-       **/
-      DataSizeFeeChanged: AugmentedError<ApiType>;
-      /**
-       * Invalid operation with invites: another storage provider was invited.
-       **/
-      DifferentStorageProviderInvited: AugmentedError<ApiType>;
-      /**
-       * Distribution bucket doesn't accept new bags.
-       **/
-      DistributionBucketDoesntAcceptNewBags: AugmentedError<ApiType>;
-      /**
-       * Distribution bucket doesn't exist.
-       **/
-      DistributionBucketDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Distribution bucket family doesn't exist.
-       **/
-      DistributionBucketFamilyDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Distribution bucket id collections are empty.
-       **/
-      DistributionBucketIdCollectionsAreEmpty: AugmentedError<ApiType>;
-      /**
-       * Distribution bucket is bound to a bag.
-       **/
-      DistributionBucketIsBoundToBag: AugmentedError<ApiType>;
-      /**
-       * Distribution bucket is not bound to a bag.
-       **/
-      DistributionBucketIsNotBoundToBag: AugmentedError<ApiType>;
-      /**
-       * The new `DistributionBucketsPerBagLimit` number is too high.
-       **/
-      DistributionBucketsPerBagLimitTooHigh: AugmentedError<ApiType>;
-      /**
-       * The new `DistributionBucketsPerBagLimit` number is too low.
-       **/
-      DistributionBucketsPerBagLimitTooLow: AugmentedError<ApiType>;
-      /**
-       * Distribution family bound to a bag creation policy.
-       **/
-      DistributionFamilyBoundToBagCreationPolicy: AugmentedError<ApiType>;
-      /**
-       * Distribution provider operator already invited.
-       **/
-      DistributionProviderOperatorAlreadyInvited: AugmentedError<ApiType>;
-      /**
-       * Distribution provider operator doesn't exist.
-       **/
-      DistributionProviderOperatorDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Distribution provider operator already set.
-       **/
-      DistributionProviderOperatorSet: AugmentedError<ApiType>;
-      /**
-       * Dynamic bag doesn't exist.
-       **/
-      DynamicBagDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Cannot create the dynamic bag: dynamic bag exists.
-       **/
-      DynamicBagExists: AugmentedError<ApiType>;
-      /**
-       * Upload data error: empty content ID provided.
-       **/
-      EmptyContentId: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance for an operation.
-       **/
-      InsufficientBalance: AugmentedError<ApiType>;
-      /**
-       * Insufficient module treasury balance for an operation.
-       **/
-      InsufficientTreasuryBalance: AugmentedError<ApiType>;
-      /**
-       * Upload data error: invalid deletion prize source account.
-       **/
-      InvalidDeletionPrizeSourceAccount: AugmentedError<ApiType>;
-      /**
-       * Invalid storage provider for bucket.
-       **/
-      InvalidStorageProvider: AugmentedError<ApiType>;
-      /**
-       * Invalid operation with invites: storage provider was already invited.
-       **/
-      InvitedStorageProvider: AugmentedError<ApiType>;
-      /**
-       * Max data object size exceeded.
-       **/
-      MaxDataObjectSizeExceeded: AugmentedError<ApiType>;
-      /**
-       * Max distribution bucket family number limit exceeded.
-       **/
-      MaxDistributionBucketFamilyNumberLimitExceeded: AugmentedError<ApiType>;
-      /**
-       * Max distribution bucket number per bag limit exceeded.
-       **/
-      MaxDistributionBucketNumberPerBagLimitExceeded: AugmentedError<ApiType>;
-      /**
-       * Max distribution bucket number per family limit exceeded.
-       **/
-      MaxDistributionBucketNumberPerFamilyLimitExceeded: AugmentedError<ApiType>;
-      /**
-       * Max number of pending invitations limit for a distribution bucket reached.
-       **/
-      MaxNumberOfPendingInvitationsLimitForDistributionBucketReached: AugmentedError<ApiType>;
-      /**
-       * Invalid operations: must be a distribution provider operator for a bucket.
-       **/
-      MustBeDistributionProviderOperatorForBucket: AugmentedError<ApiType>;
-      /**
-       * No distribution bucket invitation.
-       **/
-      NoDistributionBucketInvitation: AugmentedError<ApiType>;
-      /**
-       * Empty "data object creation" collection.
-       **/
-      NoObjectsOnUpload: AugmentedError<ApiType>;
-      /**
-       * Invalid operation with invites: there is no storage bucket invitation.
-       **/
-      NoStorageBucketInvitation: AugmentedError<ApiType>;
-      /**
-       * Cannot move objects within the same bag.
-       **/
-      SourceAndDestinationBagsAreEqual: AugmentedError<ApiType>;
-      /**
-       * The storage bucket doesn't accept new bags.
-       **/
-      StorageBucketDoesntAcceptNewBags: AugmentedError<ApiType>;
-      /**
-       * The requested storage bucket doesn't exist.
-       **/
-      StorageBucketDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Storage bucket id collections are empty.
-       **/
-      StorageBucketIdCollectionsAreEmpty: AugmentedError<ApiType>;
-      /**
-       * The requested storage bucket is already bound to a bag.
-       **/
-      StorageBucketIsBoundToBag: AugmentedError<ApiType>;
-      /**
-       * The requested storage bucket is not bound to a bag.
-       **/
-      StorageBucketIsNotBoundToBag: AugmentedError<ApiType>;
-      /**
-       * Object number limit for the storage bucket reached.
-       **/
-      StorageBucketObjectNumberLimitReached: AugmentedError<ApiType>;
-      /**
-       * Objects total size limit for the storage bucket reached.
-       **/
-      StorageBucketObjectSizeLimitReached: AugmentedError<ApiType>;
-      /**
-       * `StorageBucketsPerBagLimit` was exceeded for a bag.
-       **/
-      StorageBucketPerBagLimitExceeded: AugmentedError<ApiType>;
-      /**
-       * The new `StorageBucketsPerBagLimit` number is too high.
-       **/
-      StorageBucketsPerBagLimitTooHigh: AugmentedError<ApiType>;
-      /**
-       * The new `StorageBucketsPerBagLimit` number is too low.
-       **/
-      StorageBucketsPerBagLimitTooLow: AugmentedError<ApiType>;
-      /**
-       * Invalid operation with invites: storage provider was already set.
-       **/
-      StorageProviderAlreadySet: AugmentedError<ApiType>;
-      /**
-       * Storage provider must be set.
-       **/
-      StorageProviderMustBeSet: AugmentedError<ApiType>;
-      /**
-       * Storage provider operator doesn't exist.
-       **/
-      StorageProviderOperatorDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Uploading of the new object is blocked.
-       **/
-      UploadingBlocked: AugmentedError<ApiType>;
-      /**
-       * Max object number limit exceeded for voucher.
-       **/
-      VoucherMaxObjectNumberLimitExceeded: AugmentedError<ApiType>;
-      /**
-       * Max object size limit exceeded for voucher.
-       **/
-      VoucherMaxObjectSizeLimitExceeded: AugmentedError<ApiType>;
-      /**
-       * Upload data error: zero object size.
-       **/
-      ZeroObjectSize: AugmentedError<ApiType>;
-    };
-    storageWorkingGroup: {
-      /**
-       * Opening does not exist.
-       **/
-      AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting to begin.
-       **/
-      AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Opening does not activate in the future.
-       **/
-      AddWorkerOpeningActivatesInThePast: AugmentedError<ApiType>;
-      /**
-       * Add worker opening application stake cannot be zero.
-       **/
-      AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Application stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * New application was crowded out.
-       **/
-      AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      AddWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening is not in accepting applications stage.
-       **/
-      AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError<ApiType>;
-      /**
-       * Add worker opening role stake cannot be zero.
-       **/
-      AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Role stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * Stake amount too low.
-       **/
-      AddWorkerOpeningStakeAmountTooLow: AugmentedError<ApiType>;
-      /**
-       * Stake missing when required.
-       **/
-      AddWorkerOpeningStakeMissingWhenRequired: AugmentedError<ApiType>;
-      /**
-       * Stake provided when redundant.
-       **/
-      AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError<ApiType>;
-      /**
-       * Application rationing has zero max active applicants.
-       **/
-      AddWorkerOpeningZeroMaxApplicantCount: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_rationing_policy):
-       * max_active_applicants should be non-zero.
-       **/
-      ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer does not match controller account.
-       **/
-      ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting.
-       **/
-      BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Cannot find mint in the minting module.
-       **/
-      CannotFindMint: AugmentedError<ApiType>;
-      /**
-       * There is leader already, cannot hire another one.
-       **/
-      CannotHireLeaderWhenLeaderExists: AugmentedError<ApiType>;
-      /**
-       * Cannot fill opening with multiple applications.
-       **/
-      CannotHireMultipleLeaders: AugmentedError<ApiType>;
-      /**
-       * Current lead is not set.
-       **/
-      CurrentLeadNotSet: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_application_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Reward policy has invalid next payment block number.
-       **/
-      FillOpeningInvalidNextPaymentBlock: AugmentedError<ApiType>;
-      /**
-       * Working group mint does not exist.
-       **/
-      FillOpeningMintDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Applications not for opening.
-       **/
-      FillWorkerOpeningApplicationForWrongOpening: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      FullWorkerOpeningApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application not in active stage.
-       **/
-      FullWorkerOpeningApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * OpeningDoesNotExist.
-       **/
-      FullWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening not in review period stage.
-       **/
-      FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to apply.
-       **/
-      InsufficientBalanceToApply: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to cover stake.
-       **/
-      InsufficientBalanceToCoverStake: AugmentedError<ApiType>;
-      /**
-       * Not a lead account.
-       **/
-      IsNotLeadAccount: AugmentedError<ApiType>;
-      /**
-       * Working group size limit exceeded.
-       **/
-      MaxActiveWorkerNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Member already has an active application on the opening.
-       **/
-      MemberHasActiveApplicationOnOpening: AugmentedError<ApiType>;
-      /**
-       * Member id is invalid.
-       **/
-      MembershipInvalidMemberId: AugmentedError<ApiType>;
-      /**
-       * Unsigned origin.
-       **/
-      MembershipUnsignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Minting error: NextAdjustmentInPast
-       **/
-      MintingErrorNextAdjustmentInPast: AugmentedError<ApiType>;
-      /**
-       * Cannot get the worker stake profile.
-       **/
-      NoWorkerStakeProfile: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      OpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening text too long.
-       **/
-      OpeningTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Opening text too short.
-       **/
-      OpeningTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Origin must be controller or root account of member.
-       **/
-      OriginIsNeitherMemberControllerOrRoot: AugmentedError<ApiType>;
-      /**
-       * Origin is not applicant.
-       **/
-      OriginIsNotApplicant: AugmentedError<ApiType>;
-      /**
-       * Next payment is not in the future.
-       **/
-      RecurringRewardsNextPaymentNotInFuture: AugmentedError<ApiType>;
-      /**
-       * Recipient not found.
-       **/
-      RecurringRewardsRecipientNotFound: AugmentedError<ApiType>;
-      /**
-       * Reward relationship not found.
-       **/
-      RecurringRewardsRewardRelationshipNotFound: AugmentedError<ApiType>;
-      /**
-       * Recipient reward source not found.
-       **/
-      RecurringRewardsRewardSourceNotFound: AugmentedError<ApiType>;
-      /**
-       * Relationship must exist.
-       **/
-      RelationshipMustExist: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics.
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Require signed origin in extrinsics.
-       **/
-      RequireSignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer is not worker role account.
-       **/
-      SignerIsNotWorkerRoleAccount: AugmentedError<ApiType>;
-      /**
-       * Provided stake balance cannot be zero.
-       **/
-      StakeBalanceCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Already unstaking.
-       **/
-      StakingErrorAlreadyUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot change stake by zero.
-       **/
-      StakingErrorCannotChangeStakeByZero: AugmentedError<ApiType>;
-      /**
-       * Cannot decrease stake while slashes ongoing.
-       **/
-      StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Cannot increase stake while unstaking.
-       **/
-      StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot unstake while slashes ongoing.
-       **/
-      StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance in source account.
-       **/
-      StakingErrorInsufficientBalanceInSourceAccount: AugmentedError<ApiType>;
-      /**
-       * Insufficient stake to decrease.
-       **/
-      StakingErrorInsufficientStake: AugmentedError<ApiType>;
-      /**
-       * Not staked.
-       **/
-      StakingErrorNotStaked: AugmentedError<ApiType>;
-      /**
-       * Slash amount should be greater than zero.
-       **/
-      StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Stake not found.
-       **/
-      StakingErrorStakeNotFound: AugmentedError<ApiType>;
-      /**
-       * Unstaking period should be greater than zero.
-       **/
-      StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Successful worker application does not exist.
-       **/
-      SuccessfulWorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_application_stake_unstaking_period should be non-zero.
-       **/
-      TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_role_stake_unstaking_period should be non-zero.
-       **/
-      TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application is not active.
-       **/
-      WithdrawWorkerApplicationApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * Opening not accepting applications.
-       **/
-      WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError<ApiType>;
-      /**
-       * Redundant unstaking period provided
-       **/
-      WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError<ApiType>;
-      /**
-       * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE
-       **/
-      WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker application does not exist.
-       **/
-      WorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker application text too long.
-       **/
-      WorkerApplicationTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker application text too short.
-       **/
-      WorkerApplicationTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker does not exist.
-       **/
-      WorkerDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too long.
-       **/
-      WorkerExitRationaleTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too short.
-       **/
-      WorkerExitRationaleTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker has no recurring reward.
-       **/
-      WorkerHasNoReward: AugmentedError<ApiType>;
-      /**
-       * Worker storage text is too long.
-       **/
-      WorkerStorageValueTooLong: AugmentedError<ApiType>;
-    };
-    sudo: {
-      /**
-       * Sender must be the Sudo account
-       **/
-      RequireSudo: AugmentedError<ApiType>;
-    };
-    system: {
-      /**
-       * Failed to extract the runtime version from the new runtime.
-       * 
-       * Either calling `Core_version` or decoding `RuntimeVersion` failed.
-       **/
-      FailedToExtractRuntimeVersion: AugmentedError<ApiType>;
-      /**
-       * The name of specification does not match between the current runtime
-       * and the new runtime.
-       **/
-      InvalidSpecName: AugmentedError<ApiType>;
-      /**
-       * Suicide called when the account has non-default composite data.
-       **/
-      NonDefaultComposite: AugmentedError<ApiType>;
-      /**
-       * There is a non-zero reference count preventing the account from being purged.
-       **/
-      NonZeroRefCount: AugmentedError<ApiType>;
-      /**
-       * The specification version is not allowed to decrease between the current runtime
-       * and the new runtime.
-       **/
-      SpecVersionNeedsToIncrease: AugmentedError<ApiType>;
-    };
-  }
-
-  export interface DecoratedErrors<ApiType extends ApiTypes> extends AugmentedErrors<ApiType> {
-  }
-}

+ 0 - 1536
types/augment-codec/augment-api-events.ts

@@ -1,1536 +0,0 @@
-// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
-/* eslint-disable */
-
-import type { BTreeMap, BTreeSet, Bytes, Option, Vec, bool, u32, u64 } from '@polkadot/types';
-import type { ApplicationId, ApplicationIdToWorkerIdMap, BagId, CategoryId, Channel, ChannelCategory, ChannelCategoryCreationParameters, ChannelCategoryId, ChannelCategoryUpdateParameters, ChannelCreationParameters, ChannelId, ChannelOwnershipTransferRequest, ChannelOwnershipTransferRequestId, ChannelUpdateParameters, Cid, ContentActor, CuratorGroupId, CuratorId, DataObjectId, DistributionBucketFamilyId, DistributionBucketId, DynamicBagDeletionPrizeRecord, DynamicBagId, DynamicBagType, EntryMethod, IsCensored, MemberId, MintBalanceOf, MintId, OpeningId, PersonCreationParameters, PersonId, PersonUpdateParameters, PlaylistCreationParameters, PlaylistId, PlaylistUpdateParameters, PostId, ProposalId, ProposalStatus, RationaleText, Series, SeriesId, SeriesParameters, StorageAssets, StorageBucketId, ThreadId, UploadParameters, VideoCategoryCreationParameters, VideoCategoryId, VideoCategoryUpdateParameters, VideoCreationParameters, VideoId, VideoUpdateParameters, VoteKind, Voucher, WorkerId } from './all';
-import type { BalanceStatus } from '@polkadot/types/interfaces/balances';
-import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
-import type { AuthorityList } from '@polkadot/types/interfaces/grandpa';
-import type { Kind, OpaqueTimeSlot } from '@polkadot/types/interfaces/offences';
-import type { AccountId, Balance, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime';
-import type { IdentificationTuple, SessionIndex } from '@polkadot/types/interfaces/session';
-import type { ElectionCompute, EraIndex } from '@polkadot/types/interfaces/staking';
-import type { DispatchError, DispatchInfo, DispatchResult } from '@polkadot/types/interfaces/system';
-import type { ApiTypes } from '@polkadot/api/types';
-
-declare module '@polkadot/api/types/events' {
-  export interface AugmentedEvents<ApiType> {
-    balances: {
-      /**
-       * A balance was set by root. \[who, free, reserved\]
-       **/
-      BalanceSet: AugmentedEvent<ApiType, [AccountId, Balance, Balance]>;
-      /**
-       * Some amount was deposited (e.g. for transaction fees). \[who, deposit\]
-       **/
-      Deposit: AugmentedEvent<ApiType, [AccountId, Balance]>;
-      /**
-       * An account was removed whose balance was non-zero but below ExistentialDeposit,
-       * resulting in an outright loss. \[account, balance\]
-       **/
-      DustLost: AugmentedEvent<ApiType, [AccountId, Balance]>;
-      /**
-       * An account was created with some free balance. \[account, free_balance\]
-       **/
-      Endowed: AugmentedEvent<ApiType, [AccountId, Balance]>;
-      /**
-       * Some balance was reserved (moved from free to reserved). \[who, value\]
-       **/
-      Reserved: AugmentedEvent<ApiType, [AccountId, Balance]>;
-      /**
-       * Some balance was moved from the reserve of the first account to the second account.
-       * Final argument indicates the destination balance type.
-       * \[from, to, balance, destination_status\]
-       **/
-      ReserveRepatriated: AugmentedEvent<ApiType, [AccountId, AccountId, Balance, BalanceStatus]>;
-      /**
-       * Transfer succeeded. \[from, to, value\]
-       **/
-      Transfer: AugmentedEvent<ApiType, [AccountId, AccountId, Balance]>;
-      /**
-       * Some balance was unreserved (moved from reserved to free). \[who, value\]
-       **/
-      Unreserved: AugmentedEvent<ApiType, [AccountId, Balance]>;
-    };
-    content: {
-      ChannelAssetsRemoved: AugmentedEvent<ApiType, [ContentActor, ChannelId, BTreeSet<DataObjectId>, Channel]>;
-      ChannelCategoryCreated: AugmentedEvent<ApiType, [ChannelCategoryId, ChannelCategory, ChannelCategoryCreationParameters]>;
-      ChannelCategoryDeleted: AugmentedEvent<ApiType, [ContentActor, ChannelCategoryId]>;
-      ChannelCategoryUpdated: AugmentedEvent<ApiType, [ContentActor, ChannelCategoryId, ChannelCategoryUpdateParameters]>;
-      ChannelCensorshipStatusUpdated: AugmentedEvent<ApiType, [ContentActor, ChannelId, IsCensored, Bytes]>;
-      ChannelCreated: AugmentedEvent<ApiType, [ContentActor, ChannelId, Channel, ChannelCreationParameters]>;
-      ChannelDeleted: AugmentedEvent<ApiType, [ContentActor, ChannelId]>;
-      ChannelOwnershipTransferred: AugmentedEvent<ApiType, [ContentActor, ChannelOwnershipTransferRequestId]>;
-      ChannelOwnershipTransferRequested: AugmentedEvent<ApiType, [ContentActor, ChannelOwnershipTransferRequestId, ChannelOwnershipTransferRequest]>;
-      ChannelOwnershipTransferRequestWithdrawn: AugmentedEvent<ApiType, [ContentActor, ChannelOwnershipTransferRequestId]>;
-      ChannelUpdated: AugmentedEvent<ApiType, [ContentActor, ChannelId, Channel, ChannelUpdateParameters]>;
-      CuratorAdded: AugmentedEvent<ApiType, [CuratorGroupId, CuratorId]>;
-      CuratorGroupCreated: AugmentedEvent<ApiType, [CuratorGroupId]>;
-      CuratorGroupStatusSet: AugmentedEvent<ApiType, [CuratorGroupId, bool]>;
-      CuratorRemoved: AugmentedEvent<ApiType, [CuratorGroupId, CuratorId]>;
-      FeaturedVideosSet: AugmentedEvent<ApiType, [ContentActor, Vec<VideoId>]>;
-      PersonCreated: AugmentedEvent<ApiType, [ContentActor, PersonId, StorageAssets, PersonCreationParameters]>;
-      PersonDeleted: AugmentedEvent<ApiType, [ContentActor, PersonId]>;
-      PersonUpdated: AugmentedEvent<ApiType, [ContentActor, PersonId, StorageAssets, PersonUpdateParameters]>;
-      PlaylistCreated: AugmentedEvent<ApiType, [ContentActor, PlaylistId, PlaylistCreationParameters]>;
-      PlaylistDeleted: AugmentedEvent<ApiType, [ContentActor, PlaylistId]>;
-      PlaylistUpdated: AugmentedEvent<ApiType, [ContentActor, PlaylistId, PlaylistUpdateParameters]>;
-      SeriesCreated: AugmentedEvent<ApiType, [ContentActor, SeriesId, StorageAssets, SeriesParameters, Series]>;
-      SeriesDeleted: AugmentedEvent<ApiType, [ContentActor, SeriesId]>;
-      SeriesUpdated: AugmentedEvent<ApiType, [ContentActor, SeriesId, StorageAssets, SeriesParameters, Series]>;
-      VideoCategoryCreated: AugmentedEvent<ApiType, [ContentActor, VideoCategoryId, VideoCategoryCreationParameters]>;
-      VideoCategoryDeleted: AugmentedEvent<ApiType, [ContentActor, VideoCategoryId]>;
-      VideoCategoryUpdated: AugmentedEvent<ApiType, [ContentActor, VideoCategoryId, VideoCategoryUpdateParameters]>;
-      VideoCensorshipStatusUpdated: AugmentedEvent<ApiType, [ContentActor, VideoId, IsCensored, Bytes]>;
-      VideoCreated: AugmentedEvent<ApiType, [ContentActor, ChannelId, VideoId, VideoCreationParameters]>;
-      VideoDeleted: AugmentedEvent<ApiType, [ContentActor, VideoId]>;
-      VideoUpdated: AugmentedEvent<ApiType, [ContentActor, VideoId, VideoUpdateParameters]>;
-    };
-    contentWorkingGroup: {
-      /**
-       * Emits on accepting application for the worker opening.
-       * Params:
-       * - Opening id
-       **/
-      AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on terminating the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on withdrawing the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on adding the application for the worker opening.
-       * Params:
-       * - Opening id
-       * - Application id
-       **/
-      AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
-      /**
-       * Emits on beginning the application review for the worker/lead opening.
-       * Params:
-       * - Opening id
-       **/
-      BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on setting the leader.
-       * Params:
-       * - Worker id.
-       **/
-      LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on un-setting the leader.
-       * Params:
-       **/
-      LeaderUnset: AugmentedEvent<ApiType, []>;
-      /**
-       * Emits on changing working group mint capacity.
-       * Params:
-       * - mint id.
-       * - new mint balance.
-       **/
-      MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
-      /**
-       * Emits on adding new worker opening.
-       * Params:
-       * - Opening id
-       **/
-      OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on filling the worker opening.
-       * Params:
-       * - Worker opening id
-       * - Worker application id to the worker id dictionary
-       **/
-      OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
-      /**
-       * Emits on decreasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on increasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on slashing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on terminating the leader.
-       * Params:
-       * - leader worker id.
-       * - termination rationale text
-       **/
-      TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on terminating the worker.
-       * Params:
-       * - worker id.
-       * - termination rationale text
-       **/
-      TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on exiting the worker.
-       * Params:
-       * - worker id.
-       * - exit rationale text
-       **/
-      WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on updating the reward account of the worker.
-       * Params:
-       * - Member id of the worker.
-       * - Reward account id of the worker.
-       **/
-      WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the reward amount of the worker.
-       * Params:
-       * - Id of the worker.
-       **/
-      WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on updating the role account of the worker.
-       * Params:
-       * - Id of the worker.
-       * - Role account id of the worker.
-       **/
-      WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the worker storage role.
-       * Params:
-       * - Id of the worker.
-       * - Raw storage field.
-       **/
-      WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
-    };
-    council: {
-      CouncilTermEnded: AugmentedEvent<ApiType, [BlockNumber]>;
-      NewCouncilTermStarted: AugmentedEvent<ApiType, [BlockNumber]>;
-    };
-    councilElection: {
-      AnnouncingEnded: AugmentedEvent<ApiType, []>;
-      AnnouncingStarted: AugmentedEvent<ApiType, [u32]>;
-      Applied: AugmentedEvent<ApiType, [AccountId]>;
-      CouncilElected: AugmentedEvent<ApiType, [BlockNumber]>;
-      /**
-       * A new election started
-       **/
-      ElectionStarted: AugmentedEvent<ApiType, []>;
-      Revealed: AugmentedEvent<ApiType, [AccountId, Hash, AccountId]>;
-      RevealingEnded: AugmentedEvent<ApiType, []>;
-      RevealingStarted: AugmentedEvent<ApiType, []>;
-      Voted: AugmentedEvent<ApiType, [AccountId, Hash]>;
-      VotingEnded: AugmentedEvent<ApiType, []>;
-      VotingStarted: AugmentedEvent<ApiType, []>;
-    };
-    distributionWorkingGroup: {
-      /**
-       * Emits on accepting application for the worker opening.
-       * Params:
-       * - Opening id
-       **/
-      AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on terminating the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on withdrawing the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on adding the application for the worker opening.
-       * Params:
-       * - Opening id
-       * - Application id
-       **/
-      AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
-      /**
-       * Emits on beginning the application review for the worker/lead opening.
-       * Params:
-       * - Opening id
-       **/
-      BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on setting the leader.
-       * Params:
-       * - Worker id.
-       **/
-      LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on un-setting the leader.
-       * Params:
-       **/
-      LeaderUnset: AugmentedEvent<ApiType, []>;
-      /**
-       * Emits on changing working group mint capacity.
-       * Params:
-       * - mint id.
-       * - new mint balance.
-       **/
-      MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
-      /**
-       * Emits on adding new worker opening.
-       * Params:
-       * - Opening id
-       **/
-      OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on filling the worker opening.
-       * Params:
-       * - Worker opening id
-       * - Worker application id to the worker id dictionary
-       **/
-      OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
-      /**
-       * Emits on decreasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on increasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on slashing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on terminating the leader.
-       * Params:
-       * - leader worker id.
-       * - termination rationale text
-       **/
-      TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on terminating the worker.
-       * Params:
-       * - worker id.
-       * - termination rationale text
-       **/
-      TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on exiting the worker.
-       * Params:
-       * - worker id.
-       * - exit rationale text
-       **/
-      WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on updating the reward account of the worker.
-       * Params:
-       * - Member id of the worker.
-       * - Reward account id of the worker.
-       **/
-      WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the reward amount of the worker.
-       * Params:
-       * - Id of the worker.
-       **/
-      WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on updating the role account of the worker.
-       * Params:
-       * - Id of the worker.
-       * - Role account id of the worker.
-       **/
-      WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the worker storage role.
-       * Params:
-       * - Id of the worker.
-       * - Raw storage field.
-       **/
-      WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
-    };
-    forum: {
-      /**
-       * A category was introduced
-       **/
-      CategoryCreated: AugmentedEvent<ApiType, [CategoryId]>;
-      /**
-       * A category with given id was updated.
-       * The second argument reflects the new archival status of the category, if changed.
-       * The third argument reflects the new deletion status of the category, if changed.
-       **/
-      CategoryUpdated: AugmentedEvent<ApiType, [CategoryId, Option<bool>, Option<bool>]>;
-      /**
-       * Given account was set as forum sudo.
-       **/
-      ForumSudoSet: AugmentedEvent<ApiType, [Option<AccountId>, Option<AccountId>]>;
-      /**
-       * Post with given id was created.
-       **/
-      PostAdded: AugmentedEvent<ApiType, [PostId]>;
-      /**
-       * Post with givne id was moderated.
-       **/
-      PostModerated: AugmentedEvent<ApiType, [PostId]>;
-      /**
-       * Post with given id had its text updated.
-       * The second argument reflects the number of total edits when the text update occurs.
-       **/
-      PostTextUpdated: AugmentedEvent<ApiType, [PostId, u64]>;
-      /**
-       * A thread with given id was created.
-       **/
-      ThreadCreated: AugmentedEvent<ApiType, [ThreadId]>;
-      /**
-       * A thread with given id was moderated.
-       **/
-      ThreadModerated: AugmentedEvent<ApiType, [ThreadId]>;
-    };
-    gatewayWorkingGroup: {
-      /**
-       * Emits on accepting application for the worker opening.
-       * Params:
-       * - Opening id
-       **/
-      AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on terminating the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on withdrawing the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on adding the application for the worker opening.
-       * Params:
-       * - Opening id
-       * - Application id
-       **/
-      AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
-      /**
-       * Emits on beginning the application review for the worker/lead opening.
-       * Params:
-       * - Opening id
-       **/
-      BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on setting the leader.
-       * Params:
-       * - Worker id.
-       **/
-      LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on un-setting the leader.
-       * Params:
-       **/
-      LeaderUnset: AugmentedEvent<ApiType, []>;
-      /**
-       * Emits on changing working group mint capacity.
-       * Params:
-       * - mint id.
-       * - new mint balance.
-       **/
-      MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
-      /**
-       * Emits on adding new worker opening.
-       * Params:
-       * - Opening id
-       **/
-      OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on filling the worker opening.
-       * Params:
-       * - Worker opening id
-       * - Worker application id to the worker id dictionary
-       **/
-      OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
-      /**
-       * Emits on decreasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on increasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on slashing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on terminating the leader.
-       * Params:
-       * - leader worker id.
-       * - termination rationale text
-       **/
-      TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on terminating the worker.
-       * Params:
-       * - worker id.
-       * - termination rationale text
-       **/
-      TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on exiting the worker.
-       * Params:
-       * - worker id.
-       * - exit rationale text
-       **/
-      WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on updating the reward account of the worker.
-       * Params:
-       * - Member id of the worker.
-       * - Reward account id of the worker.
-       **/
-      WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the reward amount of the worker.
-       * Params:
-       * - Id of the worker.
-       **/
-      WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on updating the role account of the worker.
-       * Params:
-       * - Id of the worker.
-       * - Role account id of the worker.
-       **/
-      WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the worker storage role.
-       * Params:
-       * - Id of the worker.
-       * - Raw storage field.
-       **/
-      WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
-    };
-    grandpa: {
-      /**
-       * New authority set has been applied. \[authority_set\]
-       **/
-      NewAuthorities: AugmentedEvent<ApiType, [AuthorityList]>;
-      /**
-       * Current authority set has been paused.
-       **/
-      Paused: AugmentedEvent<ApiType, []>;
-      /**
-       * Current authority set has been resumed.
-       **/
-      Resumed: AugmentedEvent<ApiType, []>;
-    };
-    imOnline: {
-      /**
-       * At the end of the session, no offence was committed.
-       **/
-      AllGood: AugmentedEvent<ApiType, []>;
-      /**
-       * A new heartbeat was received from `AuthorityId` \[authority_id\]
-       **/
-      HeartbeatReceived: AugmentedEvent<ApiType, [AuthorityId]>;
-      /**
-       * At the end of the session, at least one validator was found to be \[offline\].
-       **/
-      SomeOffline: AugmentedEvent<ApiType, [Vec<IdentificationTuple>]>;
-    };
-    members: {
-      MemberRegistered: AugmentedEvent<ApiType, [MemberId, AccountId, EntryMethod]>;
-      MemberSetControllerAccount: AugmentedEvent<ApiType, [MemberId, AccountId]>;
-      MemberSetRootAccount: AugmentedEvent<ApiType, [MemberId, AccountId]>;
-      MemberUpdatedAboutText: AugmentedEvent<ApiType, [MemberId, Bytes]>;
-      MemberUpdatedAvatar: AugmentedEvent<ApiType, [MemberId, Bytes]>;
-      MemberUpdatedHandle: AugmentedEvent<ApiType, [MemberId, Bytes]>;
-    };
-    memo: {
-      MemoUpdated: AugmentedEvent<ApiType, [AccountId]>;
-    };
-    offences: {
-      /**
-       * There is an offence reported of the given `kind` happened at the `session_index` and
-       * (kind-specific) time slot. This event is not deposited for duplicate slashes. last
-       * element indicates of the offence was applied (true) or queued (false)
-       * \[kind, timeslot, applied\].
-       **/
-      Offence: AugmentedEvent<ApiType, [Kind, OpaqueTimeSlot, bool]>;
-    };
-    operationsWorkingGroupAlpha: {
-      /**
-       * Emits on accepting application for the worker opening.
-       * Params:
-       * - Opening id
-       **/
-      AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on terminating the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on withdrawing the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on adding the application for the worker opening.
-       * Params:
-       * - Opening id
-       * - Application id
-       **/
-      AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
-      /**
-       * Emits on beginning the application review for the worker/lead opening.
-       * Params:
-       * - Opening id
-       **/
-      BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on setting the leader.
-       * Params:
-       * - Worker id.
-       **/
-      LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on un-setting the leader.
-       * Params:
-       **/
-      LeaderUnset: AugmentedEvent<ApiType, []>;
-      /**
-       * Emits on changing working group mint capacity.
-       * Params:
-       * - mint id.
-       * - new mint balance.
-       **/
-      MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
-      /**
-       * Emits on adding new worker opening.
-       * Params:
-       * - Opening id
-       **/
-      OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on filling the worker opening.
-       * Params:
-       * - Worker opening id
-       * - Worker application id to the worker id dictionary
-       **/
-      OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
-      /**
-       * Emits on decreasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on increasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on slashing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on terminating the leader.
-       * Params:
-       * - leader worker id.
-       * - termination rationale text
-       **/
-      TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on terminating the worker.
-       * Params:
-       * - worker id.
-       * - termination rationale text
-       **/
-      TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on exiting the worker.
-       * Params:
-       * - worker id.
-       * - exit rationale text
-       **/
-      WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on updating the reward account of the worker.
-       * Params:
-       * - Member id of the worker.
-       * - Reward account id of the worker.
-       **/
-      WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the reward amount of the worker.
-       * Params:
-       * - Id of the worker.
-       **/
-      WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on updating the role account of the worker.
-       * Params:
-       * - Id of the worker.
-       * - Role account id of the worker.
-       **/
-      WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the worker storage role.
-       * Params:
-       * - Id of the worker.
-       * - Raw storage field.
-       **/
-      WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
-    };
-    operationsWorkingGroupBeta: {
-      /**
-       * Emits on accepting application for the worker opening.
-       * Params:
-       * - Opening id
-       **/
-      AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on terminating the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on withdrawing the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on adding the application for the worker opening.
-       * Params:
-       * - Opening id
-       * - Application id
-       **/
-      AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
-      /**
-       * Emits on beginning the application review for the worker/lead opening.
-       * Params:
-       * - Opening id
-       **/
-      BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on setting the leader.
-       * Params:
-       * - Worker id.
-       **/
-      LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on un-setting the leader.
-       * Params:
-       **/
-      LeaderUnset: AugmentedEvent<ApiType, []>;
-      /**
-       * Emits on changing working group mint capacity.
-       * Params:
-       * - mint id.
-       * - new mint balance.
-       **/
-      MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
-      /**
-       * Emits on adding new worker opening.
-       * Params:
-       * - Opening id
-       **/
-      OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on filling the worker opening.
-       * Params:
-       * - Worker opening id
-       * - Worker application id to the worker id dictionary
-       **/
-      OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
-      /**
-       * Emits on decreasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on increasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on slashing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on terminating the leader.
-       * Params:
-       * - leader worker id.
-       * - termination rationale text
-       **/
-      TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on terminating the worker.
-       * Params:
-       * - worker id.
-       * - termination rationale text
-       **/
-      TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on exiting the worker.
-       * Params:
-       * - worker id.
-       * - exit rationale text
-       **/
-      WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on updating the reward account of the worker.
-       * Params:
-       * - Member id of the worker.
-       * - Reward account id of the worker.
-       **/
-      WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the reward amount of the worker.
-       * Params:
-       * - Id of the worker.
-       **/
-      WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on updating the role account of the worker.
-       * Params:
-       * - Id of the worker.
-       * - Role account id of the worker.
-       **/
-      WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the worker storage role.
-       * Params:
-       * - Id of the worker.
-       * - Raw storage field.
-       **/
-      WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
-    };
-    operationsWorkingGroupGamma: {
-      /**
-       * Emits on accepting application for the worker opening.
-       * Params:
-       * - Opening id
-       **/
-      AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on terminating the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on withdrawing the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on adding the application for the worker opening.
-       * Params:
-       * - Opening id
-       * - Application id
-       **/
-      AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
-      /**
-       * Emits on beginning the application review for the worker/lead opening.
-       * Params:
-       * - Opening id
-       **/
-      BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on setting the leader.
-       * Params:
-       * - Worker id.
-       **/
-      LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on un-setting the leader.
-       * Params:
-       **/
-      LeaderUnset: AugmentedEvent<ApiType, []>;
-      /**
-       * Emits on changing working group mint capacity.
-       * Params:
-       * - mint id.
-       * - new mint balance.
-       **/
-      MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
-      /**
-       * Emits on adding new worker opening.
-       * Params:
-       * - Opening id
-       **/
-      OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on filling the worker opening.
-       * Params:
-       * - Worker opening id
-       * - Worker application id to the worker id dictionary
-       **/
-      OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
-      /**
-       * Emits on decreasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on increasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on slashing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on terminating the leader.
-       * Params:
-       * - leader worker id.
-       * - termination rationale text
-       **/
-      TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on terminating the worker.
-       * Params:
-       * - worker id.
-       * - termination rationale text
-       **/
-      TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on exiting the worker.
-       * Params:
-       * - worker id.
-       * - exit rationale text
-       **/
-      WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on updating the reward account of the worker.
-       * Params:
-       * - Member id of the worker.
-       * - Reward account id of the worker.
-       **/
-      WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the reward amount of the worker.
-       * Params:
-       * - Id of the worker.
-       **/
-      WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on updating the role account of the worker.
-       * Params:
-       * - Id of the worker.
-       * - Role account id of the worker.
-       **/
-      WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the worker storage role.
-       * Params:
-       * - Id of the worker.
-       * - Raw storage field.
-       **/
-      WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
-    };
-    proposalsDiscussion: {
-      /**
-       * Emits on post creation.
-       **/
-      PostCreated: AugmentedEvent<ApiType, [PostId, MemberId]>;
-      /**
-       * Emits on post update.
-       **/
-      PostUpdated: AugmentedEvent<ApiType, [PostId, MemberId]>;
-      /**
-       * Emits on thread creation.
-       **/
-      ThreadCreated: AugmentedEvent<ApiType, [ThreadId, MemberId]>;
-    };
-    proposalsEngine: {
-      /**
-       * Emits on proposal creation.
-       * Params:
-       * - Member id of a proposer.
-       * - Id of a newly created proposal after it was saved in storage.
-       **/
-      ProposalCreated: AugmentedEvent<ApiType, [MemberId, ProposalId]>;
-      /**
-       * Emits on proposal status change.
-       * Params:
-       * - Id of a updated proposal.
-       * - New proposal status
-       **/
-      ProposalStatusUpdated: AugmentedEvent<ApiType, [ProposalId, ProposalStatus]>;
-      /**
-       * Emits on voting for the proposal
-       * Params:
-       * - Voter - member id of a voter.
-       * - Id of a proposal.
-       * - Kind of vote.
-       **/
-      Voted: AugmentedEvent<ApiType, [MemberId, ProposalId, VoteKind]>;
-    };
-    session: {
-      /**
-       * New session has happened. Note that the argument is the \[session_index\], not the block
-       * number as the type might suggest.
-       **/
-      NewSession: AugmentedEvent<ApiType, [SessionIndex]>;
-    };
-    staking: {
-      /**
-       * An account has bonded this amount. \[stash, amount\]
-       * 
-       * NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,
-       * it will not be emitted for staking rewards when they are added to stake.
-       **/
-      Bonded: AugmentedEvent<ApiType, [AccountId, Balance]>;
-      /**
-       * The era payout has been set; the first balance is the validator-payout; the second is
-       * the remainder from the maximum amount of reward.
-       * \[era_index, validator_payout, remainder\]
-       **/
-      EraPayout: AugmentedEvent<ApiType, [EraIndex, Balance, Balance]>;
-      /**
-       * An old slashing report from a prior era was discarded because it could
-       * not be processed. \[session_index\]
-       **/
-      OldSlashingReportDiscarded: AugmentedEvent<ApiType, [SessionIndex]>;
-      /**
-       * The staker has been rewarded by this amount. \[stash, amount\]
-       **/
-      Reward: AugmentedEvent<ApiType, [AccountId, Balance]>;
-      /**
-       * One validator (and its nominators) has been slashed by the given amount.
-       * \[validator, amount\]
-       **/
-      Slash: AugmentedEvent<ApiType, [AccountId, Balance]>;
-      /**
-       * A new solution for the upcoming election has been stored. \[compute\]
-       **/
-      SolutionStored: AugmentedEvent<ApiType, [ElectionCompute]>;
-      /**
-       * A new set of stakers was elected with the given \[compute\].
-       **/
-      StakingElection: AugmentedEvent<ApiType, [ElectionCompute]>;
-      /**
-       * An account has unbonded this amount. \[stash, amount\]
-       **/
-      Unbonded: AugmentedEvent<ApiType, [AccountId, Balance]>;
-      /**
-       * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`
-       * from the unlocking queue. \[stash, amount\]
-       **/
-      Withdrawn: AugmentedEvent<ApiType, [AccountId, Balance]>;
-    };
-    storage: {
-      /**
-       * Bag objects changed.
-       * Params
-       * - bag id
-       * - new total objects size
-       * - new total objects number
-       **/
-      BagObjectsChanged: AugmentedEvent<ApiType, [BagId, u64, u64]>;
-      /**
-       * Emits on changing the size-based pricing of new objects uploaded.
-       * Params
-       * - new data size fee
-       **/
-      DataObjectPerMegabyteFeeUpdated: AugmentedEvent<ApiType, [Balance]>;
-      /**
-       * Emits on data objects deletion from bags.
-       * Params
-       * - account ID for the deletion prize
-       * - bag ID
-       * - data object IDs
-       **/
-      DataObjectsDeleted: AugmentedEvent<ApiType, [AccountId, BagId, BTreeSet<DataObjectId>]>;
-      /**
-       * Emits on moving data objects between bags.
-       * Params
-       * - source bag ID
-       * - destination bag ID
-       * - data object IDs
-       **/
-      DataObjectsMoved: AugmentedEvent<ApiType, [BagId, BagId, BTreeSet<DataObjectId>]>;
-      /**
-       * Emits on uploading data objects.
-       * Params
-       * - data objects IDs
-       * - initial uploading parameters
-       * - deletion prize for objects
-       **/
-      DataObjectsUploaded: AugmentedEvent<ApiType, [Vec<DataObjectId>, UploadParameters, Balance]>;
-      /**
-       * Emits on creating distribution bucket.
-       * Params
-       * - distribution bucket family ID
-       * - accepting new bags
-       * - distribution bucket ID
-       **/
-      DistributionBucketCreated: AugmentedEvent<ApiType, [DistributionBucketFamilyId, bool, DistributionBucketId]>;
-      /**
-       * Emits on deleting distribution bucket.
-       * Params
-       * - distribution bucket family ID
-       * - distribution bucket ID
-       **/
-      DistributionBucketDeleted: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId]>;
-      /**
-       * Emits on creating distribution bucket family.
-       * Params
-       * - distribution family bucket ID
-       **/
-      DistributionBucketFamilyCreated: AugmentedEvent<ApiType, [DistributionBucketFamilyId]>;
-      /**
-       * Emits on deleting distribution bucket family.
-       * Params
-       * - distribution family bucket ID
-       **/
-      DistributionBucketFamilyDeleted: AugmentedEvent<ApiType, [DistributionBucketFamilyId]>;
-      /**
-       * Emits on setting the metadata by a distribution bucket family.
-       * Params
-       * - distribution bucket family ID
-       * - metadata
-       **/
-      DistributionBucketFamilyMetadataSet: AugmentedEvent<ApiType, [DistributionBucketFamilyId, Bytes]>;
-      /**
-       * Emits on accepting a distribution bucket invitation for the operator.
-       * Params
-       * - worker ID
-       * - distribution bucket family ID
-       * - distribution bucket ID
-       **/
-      DistributionBucketInvitationAccepted: AugmentedEvent<ApiType, [WorkerId, DistributionBucketFamilyId, DistributionBucketId]>;
-      /**
-       * Emits on canceling a distribution bucket invitation for the operator.
-       * Params
-       * - distribution bucket family ID
-       * - distribution bucket ID
-       * - operator worker ID
-       **/
-      DistributionBucketInvitationCancelled: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
-      /**
-       * Emits on setting the metadata by a distribution bucket operator.
-       * Params
-       * - worker ID
-       * - distribution bucket family ID
-       * - distribution bucket ID
-       * - metadata
-       **/
-      DistributionBucketMetadataSet: AugmentedEvent<ApiType, [WorkerId, DistributionBucketFamilyId, DistributionBucketId, Bytes]>;
-      /**
-       * Emits on storage bucket mode update (distributing flag).
-       * Params
-       * - distribution bucket family ID
-       * - distribution bucket ID
-       * - distributing
-       **/
-      DistributionBucketModeUpdated: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, bool]>;
-      /**
-       * Emits on creating a distribution bucket invitation for the operator.
-       * Params
-       * - distribution bucket family ID
-       * - distribution bucket ID
-       * - worker ID
-       **/
-      DistributionBucketOperatorInvited: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
-      /**
-       * Emits on the distribution bucket operator removal.
-       * Params
-       * - distribution bucket family ID
-       * - distribution bucket ID
-       * - distribution bucket operator ID
-       **/
-      DistributionBucketOperatorRemoved: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
-      /**
-       * Emits on changing the "Distribution buckets per bag" number limit.
-       * Params
-       * - new limit
-       **/
-      DistributionBucketsPerBagLimitUpdated: AugmentedEvent<ApiType, [u64]>;
-      /**
-       * Emits on storage bucket status update (accepting new bags).
-       * Params
-       * - distribution bucket family ID
-       * - distribution bucket ID
-       * - new status (accepting new bags)
-       **/
-      DistributionBucketStatusUpdated: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, bool]>;
-      /**
-       * Emits on updating distribution buckets for bag.
-       * Params
-       * - bag ID
-       * - storage buckets to add ID collection
-       * - storage buckets to remove ID collection
-       **/
-      DistributionBucketsUpdatedForBag: AugmentedEvent<ApiType, [BagId, DistributionBucketFamilyId, BTreeSet<DistributionBucketId>, BTreeSet<DistributionBucketId>]>;
-      /**
-       * Emits on creating a dynamic bag.
-       * Params
-       * - dynamic bag ID
-       * - optional DynamicBagDeletionPrize instance
-       * - assigned storage buckets' IDs
-       * - assigned distribution buckets' IDs
-       **/
-      DynamicBagCreated: AugmentedEvent<ApiType, [DynamicBagId, Option<DynamicBagDeletionPrizeRecord>, BTreeSet<StorageBucketId>, BTreeSet<DistributionBucketId>]>;
-      /**
-       * Emits on deleting a dynamic bag.
-       * Params
-       * - account ID for the deletion prize
-       * - dynamic bag ID
-       **/
-      DynamicBagDeleted: AugmentedEvent<ApiType, [AccountId, DynamicBagId]>;
-      /**
-       * Emits on dynamic bag creation policy update (distribution bucket families).
-       * Params
-       * - dynamic bag type
-       * - families and bucket numbers
-       **/
-      FamiliesInDynamicBagCreationPolicyUpdated: AugmentedEvent<ApiType, [DynamicBagType, BTreeMap<DistributionBucketFamilyId, u32>]>;
-      /**
-       * Emits on updating the number of storage buckets in dynamic bag creation policy.
-       * Params
-       * - dynamic bag type
-       * - new number of storage buckets
-       **/
-      NumberOfStorageBucketsInDynamicBagCreationPolicyUpdated: AugmentedEvent<ApiType, [DynamicBagType, u64]>;
-      /**
-       * Emits on accepting pending data objects.
-       * Params
-       * - storage bucket ID
-       * - worker ID (storage provider ID)
-       * - bag ID
-       * - pending data objects
-       **/
-      PendingDataObjectsAccepted: AugmentedEvent<ApiType, [StorageBucketId, WorkerId, BagId, BTreeSet<DataObjectId>]>;
-      /**
-       * Emits on creating the storage bucket.
-       * Params
-       * - storage bucket ID
-       * - invited worker
-       * - flag "accepting_new_bags"
-       * - size limit for voucher,
-       * - objects limit for voucher,
-       **/
-      StorageBucketCreated: AugmentedEvent<ApiType, [StorageBucketId, Option<WorkerId>, bool, u64, u64]>;
-      /**
-       * Emits on storage bucket deleting.
-       * Params
-       * - storage bucket ID
-       **/
-      StorageBucketDeleted: AugmentedEvent<ApiType, [StorageBucketId]>;
-      /**
-       * Emits on accepting the storage bucket invitation.
-       * Params
-       * - storage bucket ID
-       * - invited worker ID
-       **/
-      StorageBucketInvitationAccepted: AugmentedEvent<ApiType, [StorageBucketId, WorkerId]>;
-      /**
-       * Emits on cancelling the storage bucket invitation.
-       * Params
-       * - storage bucket ID
-       **/
-      StorageBucketInvitationCancelled: AugmentedEvent<ApiType, [StorageBucketId]>;
-      /**
-       * Emits on the storage bucket operator invitation.
-       * Params
-       * - storage bucket ID
-       * - operator worker ID (storage provider ID)
-       **/
-      StorageBucketOperatorInvited: AugmentedEvent<ApiType, [StorageBucketId, WorkerId]>;
-      /**
-       * Emits on the storage bucket operator removal.
-       * Params
-       * - storage bucket ID
-       **/
-      StorageBucketOperatorRemoved: AugmentedEvent<ApiType, [StorageBucketId]>;
-      /**
-       * Emits on changing the "Storage buckets per bag" number limit.
-       * Params
-       * - new limit
-       **/
-      StorageBucketsPerBagLimitUpdated: AugmentedEvent<ApiType, [u64]>;
-      /**
-       * Emits on storage bucket status update.
-       * Params
-       * - storage bucket ID
-       * - new status
-       **/
-      StorageBucketStatusUpdated: AugmentedEvent<ApiType, [StorageBucketId, bool]>;
-      /**
-       * Emits on updating storage buckets for bag.
-       * Params
-       * - bag ID
-       * - storage buckets to add ID collection
-       * - storage buckets to remove ID collection
-       **/
-      StorageBucketsUpdatedForBag: AugmentedEvent<ApiType, [BagId, BTreeSet<StorageBucketId>, BTreeSet<StorageBucketId>]>;
-      /**
-       * Emits on changing the "Storage buckets voucher max limits".
-       * Params
-       * - new objects size limit
-       * - new objects number limit
-       **/
-      StorageBucketsVoucherMaxLimitsUpdated: AugmentedEvent<ApiType, [u64, u64]>;
-      /**
-       * Emits on setting the storage bucket voucher limits.
-       * Params
-       * - storage bucket ID
-       * - new total objects size limit
-       * - new total objects number limit
-       **/
-      StorageBucketVoucherLimitsSet: AugmentedEvent<ApiType, [StorageBucketId, u64, u64]>;
-      /**
-       * Emits on setting the storage operator metadata.
-       * Params
-       * - storage bucket ID
-       * - invited worker ID
-       * - metadata
-       **/
-      StorageOperatorMetadataSet: AugmentedEvent<ApiType, [StorageBucketId, WorkerId, Bytes]>;
-      /**
-       * Emits on updating the blacklist with data hashes.
-       * Params
-       * - hashes to remove from the blacklist
-       * - hashes to add to the blacklist
-       **/
-      UpdateBlacklist: AugmentedEvent<ApiType, [BTreeSet<Cid>, BTreeSet<Cid>]>;
-      /**
-       * Emits on changing the size-based pricing of new objects uploaded.
-       * Params
-       * - new status
-       **/
-      UploadingBlockStatusUpdated: AugmentedEvent<ApiType, [bool]>;
-      /**
-       * Emits on changing the voucher for a storage bucket.
-       * Params
-       * - storage bucket ID
-       * - new voucher
-       **/
-      VoucherChanged: AugmentedEvent<ApiType, [StorageBucketId, Voucher]>;
-    };
-    storageWorkingGroup: {
-      /**
-       * Emits on accepting application for the worker opening.
-       * Params:
-       * - Opening id
-       **/
-      AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on terminating the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on withdrawing the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on adding the application for the worker opening.
-       * Params:
-       * - Opening id
-       * - Application id
-       **/
-      AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
-      /**
-       * Emits on beginning the application review for the worker/lead opening.
-       * Params:
-       * - Opening id
-       **/
-      BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on setting the leader.
-       * Params:
-       * - Worker id.
-       **/
-      LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on un-setting the leader.
-       * Params:
-       **/
-      LeaderUnset: AugmentedEvent<ApiType, []>;
-      /**
-       * Emits on changing working group mint capacity.
-       * Params:
-       * - mint id.
-       * - new mint balance.
-       **/
-      MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
-      /**
-       * Emits on adding new worker opening.
-       * Params:
-       * - Opening id
-       **/
-      OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on filling the worker opening.
-       * Params:
-       * - Worker opening id
-       * - Worker application id to the worker id dictionary
-       **/
-      OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
-      /**
-       * Emits on decreasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on increasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on slashing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on terminating the leader.
-       * Params:
-       * - leader worker id.
-       * - termination rationale text
-       **/
-      TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on terminating the worker.
-       * Params:
-       * - worker id.
-       * - termination rationale text
-       **/
-      TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on exiting the worker.
-       * Params:
-       * - worker id.
-       * - exit rationale text
-       **/
-      WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on updating the reward account of the worker.
-       * Params:
-       * - Member id of the worker.
-       * - Reward account id of the worker.
-       **/
-      WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the reward amount of the worker.
-       * Params:
-       * - Id of the worker.
-       **/
-      WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on updating the role account of the worker.
-       * Params:
-       * - Id of the worker.
-       * - Role account id of the worker.
-       **/
-      WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the worker storage role.
-       * Params:
-       * - Id of the worker.
-       * - Raw storage field.
-       **/
-      WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
-    };
-    sudo: {
-      /**
-       * The \[sudoer\] just switched identity; the old key is supplied.
-       **/
-      KeyChanged: AugmentedEvent<ApiType, [AccountId]>;
-      /**
-       * A sudo just took place. \[result\]
-       **/
-      Sudid: AugmentedEvent<ApiType, [DispatchResult]>;
-      /**
-       * A sudo just took place. \[result\]
-       **/
-      SudoAsDone: AugmentedEvent<ApiType, [bool]>;
-    };
-    system: {
-      /**
-       * `:code` was updated.
-       **/
-      CodeUpdated: AugmentedEvent<ApiType, []>;
-      /**
-       * An extrinsic failed. \[error, info\]
-       **/
-      ExtrinsicFailed: AugmentedEvent<ApiType, [DispatchError, DispatchInfo]>;
-      /**
-       * An extrinsic completed successfully. \[info\]
-       **/
-      ExtrinsicSuccess: AugmentedEvent<ApiType, [DispatchInfo]>;
-      /**
-       * An \[account\] was reaped.
-       **/
-      KilledAccount: AugmentedEvent<ApiType, [AccountId]>;
-      /**
-       * A new \[account\] was created.
-       **/
-      NewAccount: AugmentedEvent<ApiType, [AccountId]>;
-    };
-    utility: {
-      /**
-       * Batch of dispatches completed fully with no error.
-       **/
-      BatchCompleted: AugmentedEvent<ApiType, []>;
-      /**
-       * Batch of dispatches did not complete fully. Index of first failing dispatch given, as
-       * well as the error. \[index, error\]
-       **/
-      BatchInterrupted: AugmentedEvent<ApiType, [u32, DispatchError]>;
-    };
-  }
-
-  export interface DecoratedEvents<ApiType extends ApiTypes> extends AugmentedEvents<ApiType> {
-  }
-}

+ 0 - 1436
types/augment-codec/augment-api-query.ts

@@ -1,1436 +0,0 @@
-// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
-/* eslint-disable */
-
-import type { Bytes, Option, Vec, bool, u16, u32, u64 } from '@polkadot/types';
-import type { AnyNumber, ITuple, Observable } from '@polkadot/types/types';
-import type { Application, ApplicationId, ApplicationOf, Bag, BagId, Category, CategoryId, Channel, ChannelCategory, ChannelCategoryId, ChannelId, ChannelOwnershipTransferRequest, ChannelOwnershipTransferRequestId, Cid, CuratorGroup, CuratorGroupId, DataObject, DataObjectId, DiscussionPost, DiscussionThread, DistributionBucketFamily, DistributionBucketFamilyId, DistributionBucketId, DynamicBagCreationPolicy, DynamicBagType, ElectionStage, ElectionStake, HiringApplicationId, InputValidationLengthConstraint, MemberId, Membership, MemoText, Mint, MintId, Opening, OpeningId, OpeningOf, PaidMembershipTerms, PaidTermId, Person, PersonId, Playlist, PlaylistId, Post, PostId, ProposalDetailsOf, ProposalId, ProposalOf, Recipient, RecipientId, RewardRelationship, RewardRelationshipId, SealedVote, Seats, Series, SeriesId, Stake, StakeId, StorageBucket, StorageBucketId, Thread, ThreadCounter, ThreadId, TransferableStake, Video, VideoCategory, VideoCategoryId, VideoId, VoteKind, WorkerId, WorkerOf } 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 { Multiplier } from '@polkadot/types/interfaces/txpayment';
-import type { ApiTypes } from '@polkadot/api/types';
-
-declare module '@polkadot/api/types/storage' {
-  export interface AugmentedQueries<ApiType> {
-    authorship: {
-      /**
-       * Author of current block.
-       **/
-      author: AugmentedQuery<ApiType, () => Observable<Option<AccountId>>, []>;
-      /**
-       * Whether uncles were already set in this block.
-       **/
-      didSetUncles: AugmentedQuery<ApiType, () => Observable<bool>, []>;
-      /**
-       * Uncles
-       **/
-      uncles: AugmentedQuery<ApiType, () => Observable<Vec<UncleEntryItem>>, []>;
-    };
-    babe: {
-      /**
-       * Current epoch authorities.
-       **/
-      authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AuthorityId, BabeAuthorityWeight]>>>, []>;
-      /**
-       * Current slot number.
-       **/
-      currentSlot: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * Current epoch index.
-       **/
-      epochIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * The slot at which the first epoch actually started. This is 0
-       * until the first block of the chain.
-       **/
-      genesisSlot: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * Temporary value (cleared at block finalization) which is `Some`
-       * if per-block initialization has already been called for current block.
-       **/
-      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.
-       **/
-      lateness: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Next epoch configuration, if changed.
-       **/
-      nextEpochConfig: AugmentedQuery<ApiType, () => Observable<Option<NextConfigDescriptor>>, []>;
-      /**
-       * Next epoch randomness.
-       **/
-      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
-       * (like everything else on-chain) it is public. For example, it can be
-       * used where a number is needed that cannot have been chosen by an
-       * adversary, for purposes such as public-coin zero-knowledge proofs.
-       **/
-      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.
-       **/
-      segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
-       **/
-      underConstruction: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Randomness>>, [u32]>;
-    };
-    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]>;
-      /**
-       * Any liquidity locks on some account balances.
-       * NOTE: Should only be accessed when setting, changing and freeing a lock.
-       **/
-      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>, []>;
-      /**
-       * The total units issued in the system.
-       **/
-      totalIssuance: AugmentedQuery<ApiType, () => Observable<Balance>, []>;
-    };
-    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
-       **/
-      curatorGroupById: AugmentedQuery<ApiType, (arg: CuratorGroupId | AnyNumber | Uint8Array) => Observable<CuratorGroup>, [CuratorGroupId]>;
-      nextChannelCategoryId: AugmentedQuery<ApiType, () => Observable<ChannelCategoryId>, []>;
-      nextChannelId: AugmentedQuery<ApiType, () => Observable<ChannelId>, []>;
-      nextChannelOwnershipTransferRequestId: AugmentedQuery<ApiType, () => Observable<ChannelOwnershipTransferRequestId>, []>;
-      nextCuratorGroupId: AugmentedQuery<ApiType, () => Observable<CuratorGroupId>, []>;
-      nextPersonId: AugmentedQuery<ApiType, () => Observable<PersonId>, []>;
-      nextPlaylistId: AugmentedQuery<ApiType, () => Observable<PlaylistId>, []>;
-      nextSeriesId: AugmentedQuery<ApiType, () => Observable<SeriesId>, []>;
-      nextVideoCategoryId: AugmentedQuery<ApiType, () => Observable<VideoCategoryId>, []>;
-      nextVideoId: AugmentedQuery<ApiType, () => Observable<VideoId>, []>;
-      personById: AugmentedQuery<ApiType, (arg: PersonId | AnyNumber | Uint8Array) => Observable<Person>, [PersonId]>;
-      playlistById: AugmentedQuery<ApiType, (arg: PlaylistId | AnyNumber | Uint8Array) => Observable<Playlist>, [PlaylistId]>;
-      seriesById: AugmentedQuery<ApiType, (arg: SeriesId | AnyNumber | Uint8Array) => Observable<Series>, [SeriesId]>;
-      videoById: AugmentedQuery<ApiType, (arg: VideoId | AnyNumber | Uint8Array) => Observable<Video>, [VideoId]>;
-      videoCategoryById: AugmentedQuery<ApiType, (arg: VideoCategoryId | AnyNumber | Uint8Array) => Observable<VideoCategory>, [VideoCategoryId]>;
-    };
-    contentWorkingGroup: {
-      /**
-       * Count of active workers.
-       **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Maps identifier to worker application on opening.
-       **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [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.
-       **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
-      /**
-       * The mint currently funding the rewards for this module.
-       **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-      /**
-       * Next identifier value for new worker application.
-       **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
-      /**
-       * Next identifier value for new worker opening.
-       **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
-      /**
-       * Next identifier for 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
-       **/
-      openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Worker application human readable text length limits
-       **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * 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>, []>;
-    };
-    council: {
-      activeCouncil: AugmentedQuery<ApiType, () => Observable<Seats>, []>;
-      /**
-       * Reward amount paid out at each PayoutInterval
-       **/
-      amountPerPayout: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
-      /**
-       * The mint that funds council member rewards and spending proposals budget
-       **/
-      councilMint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-      /**
-       * How many blocks after the reward is created, the first payout will be made
-       **/
-      firstPayoutAfterRewardCreated: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Optional interval in blocks on which a reward payout will be made to each council member
-       **/
-      payoutInterval: AugmentedQuery<ApiType, () => Observable<Option<BlockNumber>>, []>;
-      /**
-       * The reward relationships currently in place. There may not necessarily be a 1-1 correspondance with
-       * the active council, since there are multiple ways of setting/adding/removing council members, some of which
-       * do not involve creating a relationship.
-       **/
-      rewardRelationships: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<RewardRelationshipId>, [AccountId]>;
-      termEndsAt: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-    };
-    councilElection: {
-      announcingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      applicants: AugmentedQuery<ApiType, () => Observable<Vec<AccountId>>, []>;
-      applicantStakes: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<ElectionStake>, [AccountId]>;
-      autoStart: AugmentedQuery<ApiType, () => Observable<bool>, []>;
-      candidacyLimit: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      commitments: AugmentedQuery<ApiType, () => Observable<Vec<Hash>>, []>;
-      councilSize: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      existingStakeHolders: AugmentedQuery<ApiType, () => Observable<Vec<AccountId>>, []>;
-      minCouncilStake: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
-      minVotingStake: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
-      newTermDuration: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      revealingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      round: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      stage: AugmentedQuery<ApiType, () => Observable<Option<ElectionStage>>, []>;
-      transferableStakes: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<TransferableStake>, [AccountId]>;
-      votes: AugmentedQuery<ApiType, (arg: Hash | string | Uint8Array) => Observable<SealedVote>, [Hash]>;
-      votingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-    };
-    distributionWorkingGroup: {
-      /**
-       * Count of active workers.
-       **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Maps identifier to worker application on opening.
-       **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [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.
-       **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
-      /**
-       * The mint currently funding the rewards for this module.
-       **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-      /**
-       * Next identifier value for new worker application.
-       **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
-      /**
-       * Next identifier value for new worker opening.
-       **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
-      /**
-       * Next identifier for 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
-       **/
-      openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Worker application human readable text length limits
-       **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * 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>, []>;
-    };
-    forum: {
-      /**
-       * Map category identifier to corresponding category.
-       **/
-      categoryById: AugmentedQuery<ApiType, (arg: CategoryId | AnyNumber | Uint8Array) => Observable<Category>, [CategoryId]>;
-      categoryDescriptionConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Input constraints
-       * These are all forward looking, that is they are enforced on all
-       * future calls.
-       **/
-      categoryTitleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Account of forum sudo.
-       **/
-      forumSudo: AugmentedQuery<ApiType, () => Observable<Option<AccountId>>, []>;
-      /**
-       * Category identifier value to be used for the next Category created.
-       **/
-      nextCategoryId: AugmentedQuery<ApiType, () => Observable<CategoryId>, []>;
-      /**
-       * Post identifier value to be used for for next post created.
-       **/
-      nextPostId: AugmentedQuery<ApiType, () => Observable<PostId>, []>;
-      /**
-       * Thread identifier value to be used for next Thread in threadById.
-       **/
-      nextThreadId: AugmentedQuery<ApiType, () => Observable<ThreadId>, []>;
-      /**
-       * Map post identifier to corresponding post.
-       **/
-      postById: AugmentedQuery<ApiType, (arg: PostId | AnyNumber | Uint8Array) => Observable<Post>, [PostId]>;
-      postModerationRationaleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      postTextConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Map thread identifier to corresponding thread.
-       **/
-      threadById: AugmentedQuery<ApiType, (arg: ThreadId | AnyNumber | Uint8Array) => Observable<Thread>, [ThreadId]>;
-      threadModerationRationaleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      threadTitleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-    };
-    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<ApplicationOf>, [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.
-       **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
-      /**
-       * The mint currently funding the rewards for this module.
-       **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-      /**
-       * Next identifier value for new worker application.
-       **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
-      /**
-       * Next identifier value for new worker opening.
-       **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
-      /**
-       * Next identifier for 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
-       **/
-      openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Worker application human readable text length limits
-       **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * 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>, []>;
-    };
-    grandpa: {
-      /**
-       * The number of changes (both in terms of keys and underlying economic responsibilities)
-       * in the "set" of Grandpa validators from genesis.
-       **/
-      currentSetId: AugmentedQuery<ApiType, () => Observable<SetId>, []>;
-      /**
-       * next block number where we can force a change.
-       **/
-      nextForced: AugmentedQuery<ApiType, () => Observable<Option<BlockNumber>>, []>;
-      /**
-       * Pending change: (signaled at, scheduled change).
-       **/
-      pendingChange: AugmentedQuery<ApiType, () => Observable<Option<StoredPendingChange>>, []>;
-      /**
-       * 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]>;
-      /**
-       * `true` if we are currently stalled.
-       **/
-      stalled: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[BlockNumber, BlockNumber]>>>, []>;
-      /**
-       * State of the current authority set.
-       **/
-      state: AugmentedQuery<ApiType, () => Observable<StoredState>, []>;
-    };
-    hiring: {
-      /**
-       * Applications
-       **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>, [ApplicationId]>;
-      /**
-       * Internal purpose of given stake, i.e. fro what application, and whether for the role or for the application.
-       **/
-      applicationIdByStakingId: AugmentedQuery<ApiType, (arg: StakeId | AnyNumber | Uint8Array) => Observable<ApplicationId>, [StakeId]>;
-      /**
-       * Identifier for next application to be added.
-       **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
-      /**
-       * Identifier for next opening to be added.
-       **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
-      /**
-       * Openings.
-       **/
-      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>, [OpeningId]>;
-    };
-    imOnline: {
-      /**
-       * For each session index, we keep a mapping of `T::ValidatorId` to the
-       * number of blocks authored by the given authority.
-       **/
-      authoredBlocks: AugmentedQuery<ApiType, (arg1: SessionIndex | AnyNumber | Uint8Array, arg2: 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
-       * in the current session, so that the heartbeat later on will not be necessary.
-       **/
-      heartbeatAfter: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * The current set of keys that may issue a heartbeat.
-       **/
-      keys: AugmentedQuery<ApiType, () => Observable<Vec<AuthorityId>>, []>;
-      /**
-       * For each session index, we keep a mapping of `AuthIndex` to
-       * `offchain::OpaqueNetworkState`.
-       **/
-      receivedHeartbeats: AugmentedQuery<ApiType, (arg1: SessionIndex | AnyNumber | Uint8Array, arg2: AuthIndex | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [SessionIndex, AuthIndex]>;
-    };
-    members: {
-      /**
-       * Active Paid membership terms
-       **/
-      activePaidMembershipTerms: AugmentedQuery<ApiType, () => Observable<Vec<PaidTermId>>, []>;
-      maxAboutTextLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      maxAvatarUriLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      maxHandleLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Registered unique handles and their mapping to their owner
-       **/
-      memberIdByHandle: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<MemberId>, [Bytes]>;
-      /**
-       * Mapping of a controller account id to vector of member ids it controls
-       **/
-      memberIdsByControllerAccountId: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Vec<MemberId>>, [AccountId]>;
-      /**
-       * Mapping of a root account id to vector of member ids it controls.
-       **/
-      memberIdsByRootAccountId: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Vec<MemberId>>, [AccountId]>;
-      /**
-       * Mapping of member's id to their membership profile
-       **/
-      membershipById: AugmentedQuery<ApiType, (arg: MemberId | AnyNumber | Uint8Array) => Observable<Membership>, [MemberId]>;
-      minHandleLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Is the platform is accepting new members or not
-       **/
-      newMembershipsAllowed: AugmentedQuery<ApiType, () => Observable<bool>, []>;
-      /**
-       * 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.
-       **/
-      nextMemberId: AugmentedQuery<ApiType, () => Observable<MemberId>, []>;
-      /**
-       * Next paid membership terms id
-       **/
-      nextPaidMembershipTermsId: AugmentedQuery<ApiType, () => Observable<PaidTermId>, []>;
-      /**
-       * Paid membership terms record
-       **/
-      paidMembershipTermsById: AugmentedQuery<ApiType, (arg: PaidTermId | AnyNumber | Uint8Array) => Observable<PaidMembershipTerms>, [PaidTermId]>;
-      screeningAuthority: AugmentedQuery<ApiType, () => Observable<AccountId>, []>;
-    };
-    memo: {
-      maxMemoLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      memo: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<MemoText>, [AccountId]>;
-    };
-    minting: {
-      /**
-       * Mints
-       **/
-      mints: AugmentedQuery<ApiType, (arg: MintId | AnyNumber | Uint8Array) => Observable<Mint>, [MintId]>;
-      /**
-       * The number of mints created.
-       **/
-      mintsCreated: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-    };
-    offences: {
-      /**
-       * A vector of reports of the same kind that happened at the same time slot.
-       **/
-      concurrentReportsIndex: AugmentedQuery<ApiType, (arg1: Kind | string | Uint8Array, arg2: OpaqueTimeSlot | string | Uint8Array) => Observable<Vec<ReportIdOf>>, [Kind, OpaqueTimeSlot]>;
-      /**
-       * Deferred reports that have been rejected by the offence handler and need to be submitted
-       * at a later time.
-       **/
-      deferredOffences: AugmentedQuery<ApiType, () => Observable<Vec<DeferredOffenceOf>>, []>;
-      /**
-       * The primary structure that holds all offence records keyed by report identifiers.
-       **/
-      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.
-       **/
-      reportsByKindIndex: AugmentedQuery<ApiType, (arg: Kind | string | Uint8Array) => Observable<Bytes>, [Kind]>;
-    };
-    operationsWorkingGroupAlpha: {
-      /**
-       * Count of active workers.
-       **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Maps identifier to worker application on opening.
-       **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [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.
-       **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
-      /**
-       * The mint currently funding the rewards for this module.
-       **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-      /**
-       * Next identifier value for new worker application.
-       **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
-      /**
-       * Next identifier value for new worker opening.
-       **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
-      /**
-       * Next identifier for 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
-       **/
-      openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Worker application human readable text length limits
-       **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * 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>, []>;
-    };
-    operationsWorkingGroupBeta: {
-      /**
-       * Count of active workers.
-       **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Maps identifier to worker application on opening.
-       **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [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.
-       **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
-      /**
-       * The mint currently funding the rewards for this module.
-       **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-      /**
-       * Next identifier value for new worker application.
-       **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
-      /**
-       * Next identifier value for new worker opening.
-       **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
-      /**
-       * Next identifier for 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
-       **/
-      openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Worker application human readable text length limits
-       **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * 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>, []>;
-    };
-    operationsWorkingGroupGamma: {
-      /**
-       * Count of active workers.
-       **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Maps identifier to worker application on opening.
-       **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [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.
-       **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
-      /**
-       * The mint currently funding the rewards for this module.
-       **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-      /**
-       * Next identifier value for new worker application.
-       **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
-      /**
-       * Next identifier value for new worker opening.
-       **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
-      /**
-       * Next identifier for 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
-       **/
-      openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Worker application human readable text length limits
-       **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * 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>, []>;
-    };
-    proposalsCodex: {
-      /**
-       * Grace period for the 'add working group opening' proposal
-       **/
-      addWorkingGroupOpeningProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'add working group opening' proposal
-       **/
-      addWorkingGroupOpeningProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'begin review working group leader applications' proposal
-       **/
-      beginReviewWorkingGroupLeaderApplicationsProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'begin review working group leader applications' proposal
-       **/
-      beginReviewWorkingGroupLeaderApplicationsProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'decrease working group leader stake' proposal
-       **/
-      decreaseWorkingGroupLeaderStakeProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'decrease working group leader stake' proposal
-       **/
-      decreaseWorkingGroupLeaderStakeProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'fill working group leader opening' proposal
-       **/
-      fillWorkingGroupLeaderOpeningProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'fill working group leader opening' proposal
-       **/
-      fillWorkingGroupLeaderOpeningProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Map proposal id to proposal details
-       **/
-      proposalDetailsByProposalId: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<ProposalDetailsOf>, [ProposalId]>;
-      /**
-       * Grace period for the 'runtime upgrade' proposal
-       **/
-      runtimeUpgradeProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'runtime upgrade' proposal
-       **/
-      runtimeUpgradeProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'set election parameters' proposal
-       **/
-      setElectionParametersProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'set election parameters' proposal
-       **/
-      setElectionParametersProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'set validator count' proposal
-       **/
-      setValidatorCountProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'set validator count' proposal
-       **/
-      setValidatorCountProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'set working group leader reward' proposal
-       **/
-      setWorkingGroupLeaderRewardProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'set working group leader reward' proposal
-       **/
-      setWorkingGroupLeaderRewardProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'set working group mint capacity' proposal
-       **/
-      setWorkingGroupMintCapacityProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'set working group mint capacity' proposal
-       **/
-      setWorkingGroupMintCapacityProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'slash working group leader stake' proposal
-       **/
-      slashWorkingGroupLeaderStakeProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'slash working group leader stake' proposal
-       **/
-      slashWorkingGroupLeaderStakeProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'spending' proposal
-       **/
-      spendingProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'spending' proposal
-       **/
-      spendingProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'terminate working group leader role' proposal
-       **/
-      terminateWorkingGroupLeaderRoleProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'terminate working group leader role' proposal
-       **/
-      terminateWorkingGroupLeaderRoleProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'text' proposal
-       **/
-      textProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'text' proposal
-       **/
-      textProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Map proposal id to its discussion thread id
-       **/
-      threadIdByProposalId: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<ThreadId>, [ProposalId]>;
-    };
-    proposalsDiscussion: {
-      /**
-       * Last author thread counter (part of the antispam mechanism)
-       **/
-      lastThreadAuthorCounter: AugmentedQuery<ApiType, () => Observable<Option<ThreadCounter>>, []>;
-      /**
-       * Count of all posts that have been created.
-       **/
-      postCount: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * Map thread id and post id to corresponding post.
-       **/
-      postThreadIdByPostId: AugmentedQuery<ApiType, (arg1: ThreadId | AnyNumber | Uint8Array, arg2: PostId | AnyNumber | Uint8Array) => Observable<DiscussionPost>, [ThreadId, PostId]>;
-      /**
-       * Map thread identifier to corresponding thread.
-       **/
-      threadById: AugmentedQuery<ApiType, (arg: ThreadId | AnyNumber | Uint8Array) => Observable<DiscussionThread>, [ThreadId]>;
-      /**
-       * Count of all threads that have been created.
-       **/
-      threadCount: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-    };
-    proposalsEngine: {
-      /**
-       * Count of active proposals.
-       **/
-      activeProposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Ids of proposals that are open for voting (have not been finalized yet).
-       **/
-      activeProposalIds: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<ITuple<[]>>, [ProposalId]>;
-      /**
-       * Map proposal executable code by proposal id.
-       **/
-      dispatchableCallCode: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<Bytes>, [ProposalId]>;
-      /**
-       * Ids of proposals that were approved and theirs grace period was not expired.
-       **/
-      pendingExecutionProposalIds: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<ITuple<[]>>, [ProposalId]>;
-      /**
-       * Count of all proposals that have been created.
-       **/
-      proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Map proposal by its id.
-       **/
-      proposals: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<ProposalOf>, [ProposalId]>;
-      /**
-       * Map proposal id by stake id. Required by StakingEventsHandler callback call
-       **/
-      stakesProposals: AugmentedQuery<ApiType, (arg: StakeId | AnyNumber | Uint8Array) => Observable<ProposalId>, [StakeId]>;
-      /**
-       * Double map for preventing duplicate votes. Should be cleaned after usage.
-       **/
-      voteExistsByProposalByVoter: AugmentedQuery<ApiType, (arg1: ProposalId | AnyNumber | Uint8Array, arg2: MemberId | AnyNumber | Uint8Array) => Observable<VoteKind>, [ProposalId, MemberId]>;
-    };
-    randomnessCollectiveFlip: {
-      /**
-       * Series of block headers from the last 81 blocks that acts as random seed material. This
-       * is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of
-       * the oldest hash.
-       **/
-      randomMaterial: AugmentedQuery<ApiType, () => Observable<Vec<Hash>>, []>;
-    };
-    recurringRewards: {
-      recipients: AugmentedQuery<ApiType, (arg: RecipientId | AnyNumber | Uint8Array) => Observable<Recipient>, [RecipientId]>;
-      recipientsCreated: AugmentedQuery<ApiType, () => Observable<RecipientId>, []>;
-      rewardRelationships: AugmentedQuery<ApiType, (arg: RewardRelationshipId | AnyNumber | Uint8Array) => Observable<RewardRelationship>, [RewardRelationshipId]>;
-      rewardRelationshipsCreated: AugmentedQuery<ApiType, () => Observable<RewardRelationshipId>, []>;
-    };
-    session: {
-      /**
-       * Current index of the session.
-       **/
-      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>>, []>;
-      /**
-       * The owner of a key. The key is the `KeyTypeId` + the encoded key.
-       **/
-      keyOwner: AugmentedQuery<ApiType, (arg: ITuple<[KeyTypeId, Bytes]> | [KeyTypeId | AnyNumber | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<ValidatorId>>, [ITuple<[KeyTypeId, Bytes]>]>;
-      /**
-       * The next session keys for a validator.
-       **/
-      nextKeys: AugmentedQuery<ApiType, (arg: ValidatorId | string | Uint8Array) => Observable<Option<Keys>>, [ValidatorId]>;
-      /**
-       * True if the underlying economic identities or weighting behind the validators
-       * has changed in the queued validator set.
-       **/
-      queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []>;
-      /**
-       * The queued keys for the next session. When the next session begins, these keys
-       * will be used to determine the validator's session keys.
-       **/
-      queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[ValidatorId, Keys]>>>, []>;
-      /**
-       * The current set of validators.
-       **/
-      validators: AugmentedQuery<ApiType, () => Observable<Vec<ValidatorId>>, []>;
-    };
-    stake: {
-      /**
-       * Maps identifiers to a stake.
-       **/
-      stakes: AugmentedQuery<ApiType, (arg: StakeId | AnyNumber | Uint8Array) => Observable<Stake>, [StakeId]>;
-      /**
-       * Identifier value for next stake, and count of total stakes created (not necessarily the number of current
-       * stakes in the Stakes map as stakes can be removed.)
-       **/
-      stakesCreated: AugmentedQuery<ApiType, () => Observable<StakeId>, []>;
-    };
-    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`.
-       **/
-      activeEra: AugmentedQuery<ApiType, () => Observable<Option<ActiveEraInfo>>, []>;
-      /**
-       * Map from all locked "stash" accounts to the controller account.
-       **/
-      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]`
-       **/
-      bondedEras: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[EraIndex, SessionIndex]>>>, []>;
-      /**
-       * The amount of currency given to reporters of a slash event which was
-       * canceled by extraordinary circumstances (e.g. governance).
-       **/
-      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.
-       **/
-      currentEra: AugmentedQuery<ApiType, () => Observable<Option<EraIndex>>, []>;
-      /**
-       * The earliest era for which we have a pending, unapplied slash.
-       **/
-      earliestUnappliedSlash: AugmentedQuery<ApiType, () => Observable<Option<EraIndex>>, []>;
-      /**
-       * Flag to control the execution of the offchain election. When `Open(_)`, we accept
-       * solutions to be submitted.
-       **/
-      eraElectionStatus: AugmentedQuery<ApiType, () => Observable<ElectionStatus>, []>;
-      /**
-       * Rewards for the last `HISTORY_DEPTH` eras.
-       * If reward hasn't been set or has been removed then 0 reward is returned.
-       **/
-      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: AugmentedQuery<ApiType, (arg1: EraIndex | AnyNumber | Uint8Array, arg2: 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.
-       **/
-      erasStakersClipped: AugmentedQuery<ApiType, (arg1: EraIndex | AnyNumber | Uint8Array, arg2: AccountId | string | Uint8Array) => Observable<Exposure>, [EraIndex, AccountId]>;
-      /**
-       * The session index at which the era start for the last `HISTORY_DEPTH` eras.
-       **/
-      erasStartSessionIndex: AugmentedQuery<ApiType, (arg: EraIndex | AnyNumber | Uint8Array) => Observable<Option<SessionIndex>>, [EraIndex]>;
-      /**
-       * The total amount staked for the last `HISTORY_DEPTH` eras.
-       * If total hasn't been set or has been removed then 0 stake is returned.
-       **/
-      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: AugmentedQuery<ApiType, (arg1: EraIndex | AnyNumber | Uint8Array, arg2: 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]>;
-      /**
-       * Mode of era forcing.
-       **/
-      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.
-       **/
-      historyDepth: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
-       * easy to initialize and the performance hit is minimal (we expect no more than four
-       * invulnerables) and restricted to testnets.
-       **/
-      invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId>>, []>;
-      /**
-       * True if the current **planned** session is final. Note that this does not take era
-       * forcing into account.
-       **/
-      isCurrentSessionFinal: AugmentedQuery<ApiType, () => Observable<bool>, []>;
-      /**
-       * Map from all (unlocked) "controller" accounts to the info regarding the staking.
-       **/
-      ledger: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Option<StakingLedger>>, [AccountId]>;
-      /**
-       * Minimum number of staking participants before emergency conditions are imposed.
-       **/
-      minimumValidatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * The map from nominator stash key to the set of stash keys of all validators to nominate.
-       **/
-      nominators: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Option<Nominations>>, [AccountId]>;
-      /**
-       * All slashing events on nominators, mapped by era to the highest slash value of the era.
-       **/
-      nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: EraIndex | AnyNumber | Uint8Array, arg2: AccountId | string | Uint8Array) => Observable<Option<BalanceOf>>, [EraIndex, AccountId]>;
-      /**
-       * Where the reward payment should be made. Keyed by stash.
-       **/
-      payee: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<RewardDestination>, [AccountId]>;
-      /**
-       * The next validator set. At the end of an era, if this is available (potentially from the
-       * result of an offchain worker), it is immediately used. Otherwise, the on-chain election
-       * is executed.
-       **/
-      queuedElected: AugmentedQuery<ApiType, () => Observable<Option<ElectionResult>>, []>;
-      /**
-       * The score of the current [`QueuedElected`].
-       **/
-      queuedScore: AugmentedQuery<ApiType, () => Observable<Option<ElectionScore>>, []>;
-      /**
-       * Slashing spans for stash accounts.
-       **/
-      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>, []>;
-      /**
-       * Snapshot of nominators at the beginning of the current election window. This should only
-       * have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`.
-       **/
-      snapshotNominators: AugmentedQuery<ApiType, () => Observable<Option<Vec<AccountId>>>, []>;
-      /**
-       * Snapshot of validators at the beginning of the current election window. This should only
-       * have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`.
-       **/
-      snapshotValidators: AugmentedQuery<ApiType, () => Observable<Option<Vec<AccountId>>>, []>;
-      /**
-       * Records information about the maximum slash of a stash within a slashing span,
-       * as well as how much reward has been paid out.
-       **/
-      spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId, SpanIndex]> | [AccountId | string | Uint8Array, SpanIndex | AnyNumber | Uint8Array]) => Observable<SpanRecord>, [ITuple<[AccountId, SpanIndex]>]>;
-      /**
-       * 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>, []>;
-      /**
-       * All unapplied slashes that are queued for later.
-       **/
-      unappliedSlashes: AugmentedQuery<ApiType, (arg: EraIndex | AnyNumber | Uint8Array) => Observable<Vec<UnappliedSlash>>, [EraIndex]>;
-      /**
-       * The ideal number of staking participants.
-       **/
-      validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * The map from (wannabe) validator stash key to the preferences of that validator.
-       **/
-      validators: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<ValidatorPrefs>, [AccountId]>;
-      /**
-       * All slashing events on validators, mapped by era to the highest slash proportion
-       * and slash value of the era.
-       **/
-      validatorSlashInEra: AugmentedQuery<ApiType, (arg1: EraIndex | AnyNumber | Uint8Array, arg2: AccountId | string | Uint8Array) => Observable<Option<ITuple<[Perbill, BalanceOf]>>>, [EraIndex, AccountId]>;
-    };
-    storage: {
-      /**
-       * Bags storage map.
-       **/
-      bags: AugmentedQuery<ApiType, (arg: BagId | { Static: any } | { Dynamic: any } | string | Uint8Array) => Observable<Bag>, [BagId]>;
-      /**
-       * Blacklisted data object hashes.
-       **/
-      blacklist: AugmentedQuery<ApiType, (arg: Cid | string | Uint8Array) => Observable<ITuple<[]>>, [Cid]>;
-      /**
-       * Blacklist collection counter.
-       **/
-      currentBlacklistSize: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * Size based pricing of new objects uploaded.
-       **/
-      dataObjectPerMegabyteFee: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
-      /**
-       * 'Data objects for bags' storage double map.
-       **/
-      dataObjectsById: AugmentedQuery<ApiType, (arg1: BagId | { Static: any } | { Dynamic: any } | string | Uint8Array, arg2: DataObjectId | AnyNumber | Uint8Array) => Observable<DataObject>, [BagId, DataObjectId]>;
-      /**
-       * Distribution bucket families.
-       **/
-      distributionBucketFamilyById: AugmentedQuery<ApiType, (arg: DistributionBucketFamilyId | AnyNumber | Uint8Array) => Observable<DistributionBucketFamily>, [DistributionBucketFamilyId]>;
-      /**
-       * Total number of distribution bucket families in the system.
-       **/
-      distributionBucketFamilyNumber: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * "Distribution buckets per bag" number limit.
-       **/
-      distributionBucketsPerBagLimit: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * DynamicBagCreationPolicy by bag type storage map.
-       **/
-      dynamicBagCreationPolicies: AugmentedQuery<ApiType, (arg: DynamicBagType | 'Member' | 'Channel' | number | Uint8Array) => Observable<DynamicBagCreationPolicy>, [DynamicBagType]>;
-      /**
-       * Data object id counter. Starts at zero.
-       **/
-      nextDataObjectId: AugmentedQuery<ApiType, () => Observable<DataObjectId>, []>;
-      /**
-       * Distribution bucket family id counter. Starts at zero.
-       **/
-      nextDistributionBucketFamilyId: AugmentedQuery<ApiType, () => Observable<DistributionBucketFamilyId>, []>;
-      /**
-       * Distribution bucket id counter. Starts at zero.
-       **/
-      nextDistributionBucketId: AugmentedQuery<ApiType, () => Observable<DistributionBucketId>, []>;
-      /**
-       * Storage bucket id counter. Starts at zero.
-       **/
-      nextStorageBucketId: AugmentedQuery<ApiType, () => Observable<StorageBucketId>, []>;
-      /**
-       * Storage buckets.
-       **/
-      storageBucketById: AugmentedQuery<ApiType, (arg: StorageBucketId | AnyNumber | Uint8Array) => Observable<StorageBucket>, [StorageBucketId]>;
-      /**
-       * "Storage buckets per bag" number limit.
-       **/
-      storageBucketsPerBagLimit: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * Defines whether all new uploads blocked
-       **/
-      uploadingBlocked: AugmentedQuery<ApiType, () => Observable<bool>, []>;
-      /**
-       * "Max objects number for a storage  bucket voucher" number limit.
-       **/
-      voucherMaxObjectsNumberLimit: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * "Max objects size for a storage bucket voucher" number limit.
-       **/
-      voucherMaxObjectsSizeLimit: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-    };
-    storageWorkingGroup: {
-      /**
-       * Count of active workers.
-       **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Maps identifier to worker application on opening.
-       **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [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.
-       **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
-      /**
-       * The mint currently funding the rewards for this module.
-       **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-      /**
-       * Next identifier value for new worker application.
-       **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
-      /**
-       * Next identifier value for new worker opening.
-       **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
-      /**
-       * Next identifier for 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
-       **/
-      openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Worker application human readable text length limits
-       **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * 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>, []>;
-    };
-    sudo: {
-      /**
-       * The `AccountId` of the sudo key.
-       **/
-      key: AugmentedQuery<ApiType, () => Observable<AccountId>, []>;
-    };
-    system: {
-      /**
-       * The full account information for a particular account ID.
-       **/
-      account: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<AccountInfo>, [AccountId]>;
-      /**
-       * Total length (in bytes) for all extrinsics put together, for the current block.
-       **/
-      allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
-      /**
-       * Map of block numbers to block hashes.
-       **/
-      blockHash: AugmentedQuery<ApiType, (arg: BlockNumber | AnyNumber | Uint8Array) => Observable<Hash>, [BlockNumber]>;
-      /**
-       * The current weight for the block.
-       **/
-      blockWeight: AugmentedQuery<ApiType, () => Observable<ExtrinsicsWeight>, []>;
-      /**
-       * Digest of the current block, also part of the block header.
-       **/
-      digest: AugmentedQuery<ApiType, () => Observable<DigestOf>, []>;
-      /**
-       * The number of events in the `Events<T>` list.
-       **/
-      eventCount: AugmentedQuery<ApiType, () => Observable<EventIndex>, []>;
-      /**
-       * Events deposited for the current block.
-       **/
-      events: AugmentedQuery<ApiType, () => Observable<Vec<EventRecord>>, []>;
-      /**
-       * 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.
-       **/
-      eventTopics: AugmentedQuery<ApiType, (arg: Hash | string | Uint8Array) => Observable<Vec<ITuple<[BlockNumber, EventIndex]>>>, [Hash]>;
-      /**
-       * The execution phase of the block.
-       **/
-      executionPhase: AugmentedQuery<ApiType, () => Observable<Option<Phase>>, []>;
-      /**
-       * Total extrinsics count for the current block.
-       **/
-      extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
-      /**
-       * Extrinsics data for the current block (maps an extrinsic's index to its data).
-       **/
-      extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]>;
-      /**
-       * Extrinsics root of the current block, also part of the block header.
-       **/
-      extrinsicsRoot: AugmentedQuery<ApiType, () => Observable<Hash>, []>;
-      /**
-       * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
-       **/
-      lastRuntimeUpgrade: AugmentedQuery<ApiType, () => Observable<Option<LastRuntimeUpgradeInfo>>, []>;
-      /**
-       * The current block number being processed. Set by `execute_block`.
-       **/
-      number: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Hash of the previous block.
-       **/
-      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>, []>;
-    };
-    timestamp: {
-      /**
-       * Did the timestamp get updated in this block?
-       **/
-      didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []>;
-      /**
-       * Current time for the current block.
-       **/
-      now: AugmentedQuery<ApiType, () => Observable<Moment>, []>;
-    };
-    transactionPayment: {
-      nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<Multiplier>, []>;
-      storageVersion: AugmentedQuery<ApiType, () => Observable<Releases>, []>;
-    };
-  }
-
-  export interface QueryableStorage<ApiType extends ApiTypes> extends AugmentedQueries<ApiType> {
-  }
-}

+ 0 - 556
types/augment-codec/augment-api-rpc.ts

@@ -1,556 +0,0 @@
-// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
-/* eslint-disable */
-
-import type { Bytes, HashMap, Json, Metadata, Null, Option, StorageKey, Text, U256, U64, Vec, bool, u32, u64 } from '@polkadot/types';
-import type { AnyNumber, Codec, IExtrinsic, Observable } from '@polkadot/types/types';
-import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
-import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
-import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy';
-import type { BlockHash } from '@polkadot/types/interfaces/chain';
-import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
-import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
-import type { ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from '@polkadot/types/interfaces/contracts';
-import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
-import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
-import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
-import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
-import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr';
-import type { StorageKind } from '@polkadot/types/interfaces/offchain';
-import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
-import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
-import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime';
-import type { ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state';
-import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system';
-
-declare module '@polkadot/rpc-core/types.jsonrpc' {
-  export interface RpcInterface {
-    author: {
-      /**
-       * Returns true if the keystore has private keys for the given public key and key type.
-       **/
-      hasKey: AugmentedRpc<(publicKey: Bytes | string | Uint8Array, keyType: Text | string) => Observable<bool>>;
-      /**
-       * Returns true if the keystore has private keys for the given session public keys.
-       **/
-      hasSessionKeys: AugmentedRpc<(sessionKeys: Bytes | string | Uint8Array) => Observable<bool>>;
-      /**
-       * Insert a key into the keystore.
-       **/
-      insertKey: AugmentedRpc<(keyType: Text | string, suri: Text | string, publicKey: Bytes | string | Uint8Array) => Observable<Bytes>>;
-      /**
-       * Returns all pending extrinsics, potentially grouped by sender
-       **/
-      pendingExtrinsics: AugmentedRpc<() => Observable<Vec<Extrinsic>>>;
-      /**
-       * Remove given extrinsic from the pool and temporarily ban it to prevent reimporting
-       **/
-      removeExtrinsic: AugmentedRpc<(bytesOrHash: Vec<ExtrinsicOrHash> | (ExtrinsicOrHash | { Hash: any } | { Extrinsic: any } | string | Uint8Array)[]) => Observable<Vec<Hash>>>;
-      /**
-       * Generate new session keys and returns the corresponding public keys
-       **/
-      rotateKeys: AugmentedRpc<() => Observable<Bytes>>;
-      /**
-       * Submit and subscribe to watch an extrinsic until unsubscribed
-       **/
-      submitAndWatchExtrinsic: AugmentedRpc<(extrinsic: IExtrinsic) => Observable<ExtrinsicStatus>>;
-      /**
-       * Submit a fully formatted extrinsic for block inclusion
-       **/
-      submitExtrinsic: AugmentedRpc<(extrinsic: IExtrinsic) => Observable<Hash>>;
-    };
-    babe: {
-      /**
-       * Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore
-       **/
-      epochAuthorship: AugmentedRpc<() => Observable<HashMap<AuthorityId, EpochAuthorship>>>;
-    };
-    beefy: {
-      /**
-       * Returns the block most recently finalized by BEEFY, alongside side its justification.
-       **/
-      subscribeJustifications: AugmentedRpc<() => Observable<BeefySignedCommitment>>;
-    };
-    chain: {
-      /**
-       * Get header and body of a relay chain block
-       **/
-      getBlock: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<SignedBlock>>;
-      /**
-       * Get the block hash for a specific block
-       **/
-      getBlockHash: AugmentedRpc<(blockNumber?: BlockNumber | AnyNumber | Uint8Array) => Observable<BlockHash>>;
-      /**
-       * Get hash of the last finalized block in the canon chain
-       **/
-      getFinalizedHead: AugmentedRpc<() => Observable<BlockHash>>;
-      /**
-       * Retrieves the header for a specific block
-       **/
-      getHeader: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<Header>>;
-      /**
-       * Retrieves the newest header via subscription
-       **/
-      subscribeAllHeads: AugmentedRpc<() => Observable<Header>>;
-      /**
-       * Retrieves the best finalized header via subscription
-       **/
-      subscribeFinalizedHeads: AugmentedRpc<() => Observable<Header>>;
-      /**
-       * Retrieves the best header via subscription
-       **/
-      subscribeNewHeads: AugmentedRpc<() => Observable<Header>>;
-    };
-    childstate: {
-      /**
-       * Returns the keys with prefix from a child storage, leave empty to get all the keys
-       **/
-      getKeys: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, prefix: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
-      /**
-       * Returns the keys with prefix from a child storage with pagination support
-       **/
-      getKeysPaged: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, prefix: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
-      /**
-       * Returns a child storage entry at a specific block state
-       **/
-      getStorage: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<StorageData>>>;
-      /**
-       * Returns the hash of a child storage entry at a block state
-       **/
-      getStorageHash: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<Hash>>>;
-      /**
-       * Returns the size of a child storage entry at a block state
-       **/
-      getStorageSize: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<u64>>>;
-    };
-    contracts: {
-      /**
-       * Executes a call to a contract
-       **/
-      call: AugmentedRpc<(callRequest: ContractCallRequest | { origin?: any; dest?: any; value?: any; gasLimit?: any; inputData?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractExecResult>>;
-      /**
-       * Returns the value under a specified storage key in a contract
-       **/
-      getStorage: AugmentedRpc<(address: AccountId | string | Uint8Array, key: H256 | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<Bytes>>>;
-      /**
-       * Instantiate a new contract
-       **/
-      instantiate: AugmentedRpc<(request: InstantiateRequest | { origin?: any; endowment?: any; gasLimit?: any; code?: any; data?: any; salt?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractInstantiateResult>>;
-      /**
-       * Returns the projected time a given contract will be able to sustain paying its rent
-       **/
-      rentProjection: AugmentedRpc<(address: AccountId | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<BlockNumber>>>;
-    };
-    engine: {
-      /**
-       * Instructs the manual-seal authorship task to create a new block
-       **/
-      createBlock: AugmentedRpc<(createEmpty: bool | boolean | Uint8Array, finalize: bool | boolean | Uint8Array, parentHash?: BlockHash | string | Uint8Array) => Observable<CreatedBlock>>;
-      /**
-       * Instructs the manual-seal authorship task to finalize a block
-       **/
-      finalizeBlock: AugmentedRpc<(hash: BlockHash | string | Uint8Array, justification?: Justification) => Observable<bool>>;
-    };
-    eth: {
-      /**
-       * Returns accounts list.
-       **/
-      accounts: AugmentedRpc<() => Observable<Vec<H160>>>;
-      /**
-       * Returns the blockNumber
-       **/
-      blockNumber: AugmentedRpc<() => Observable<U256>>;
-      /**
-       * Call contract, returning the output data.
-       **/
-      call: AugmentedRpc<(request: EthCallRequest | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;
-      /**
-       * Returns the chain ID used for transaction signing at the current best block. None is returned if not available.
-       **/
-      chainId: AugmentedRpc<() => Observable<U64>>;
-      /**
-       * Returns block author.
-       **/
-      coinbase: AugmentedRpc<() => Observable<H160>>;
-      /**
-       * Estimate gas needed for execution of given contract.
-       **/
-      estimateGas: AugmentedRpc<(request: EthCallRequest | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
-      /**
-       * Returns current gas price.
-       **/
-      gasPrice: AugmentedRpc<() => Observable<U256>>;
-      /**
-       * Returns balance of the given account.
-       **/
-      getBalance: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
-      /**
-       * Returns block with given hash.
-       **/
-      getBlockByHash: AugmentedRpc<(hash: H256 | string | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;
-      /**
-       * Returns block with given number.
-       **/
-      getBlockByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;
-      /**
-       * Returns the number of transactions in a block with given hash.
-       **/
-      getBlockTransactionCountByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;
-      /**
-       * Returns the number of transactions in a block with given block number.
-       **/
-      getBlockTransactionCountByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
-      /**
-       * Returns the code at given address at given time (block number).
-       **/
-      getCode: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;
-      /**
-       * Returns filter changes since last poll.
-       **/
-      getFilterChanges: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<EthFilterChanges>>;
-      /**
-       * Returns all logs matching given filter (in a range 'from' - 'to').
-       **/
-      getFilterLogs: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<Vec<EthLog>>>;
-      /**
-       * Returns logs matching given filter object.
-       **/
-      getLogs: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable<Vec<EthLog>>>;
-      /**
-       * Returns proof for account and storage.
-       **/
-      getProof: AugmentedRpc<(address: H160 | string | Uint8Array, storageKeys: Vec<H256> | (H256 | string | Uint8Array)[], number: BlockNumber | AnyNumber | Uint8Array) => Observable<EthAccount>>;
-      /**
-       * Returns content of the storage at given address.
-       **/
-      getStorageAt: AugmentedRpc<(address: H160 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<H256>>;
-      /**
-       * Returns transaction at given block hash and index.
-       **/
-      getTransactionByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;
-      /**
-       * Returns transaction by given block number and index.
-       **/
-      getTransactionByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;
-      /**
-       * Get transaction by its hash.
-       **/
-      getTransactionByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthTransaction>>;
-      /**
-       * Returns the number of transactions sent from given address at given time (block number).
-       **/
-      getTransactionCount: AugmentedRpc<(hash: H256 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
-      /**
-       * Returns transaction receipt by transaction hash.
-       **/
-      getTransactionReceipt: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthReceipt>>;
-      /**
-       * Returns an uncles at given block and index.
-       **/
-      getUncleByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;
-      /**
-       * Returns an uncles at given block and index.
-       **/
-      getUncleByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;
-      /**
-       * Returns the number of uncles in a block with given hash.
-       **/
-      getUncleCountByBlockHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;
-      /**
-       * Returns the number of uncles in a block with given block number.
-       **/
-      getUncleCountByBlockNumber: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
-      /**
-       * Returns the hash of the current block, the seedHash, and the boundary condition to be met.
-       **/
-      getWork: AugmentedRpc<() => Observable<EthWork>>;
-      /**
-       * Returns the number of hashes per second that the node is mining with.
-       **/
-      hashrate: AugmentedRpc<() => Observable<U256>>;
-      /**
-       * Returns true if client is actively mining new blocks.
-       **/
-      mining: AugmentedRpc<() => Observable<bool>>;
-      /**
-       * Returns id of new block filter.
-       **/
-      newBlockFilter: AugmentedRpc<() => Observable<U256>>;
-      /**
-       * Returns id of new filter.
-       **/
-      newFilter: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable<U256>>;
-      /**
-       * Returns id of new block filter.
-       **/
-      newPendingTransactionFilter: AugmentedRpc<() => Observable<U256>>;
-      /**
-       * Returns protocol version encoded as a string (quotes are necessary).
-       **/
-      protocolVersion: AugmentedRpc<() => Observable<u64>>;
-      /**
-       * Sends signed transaction, returning its hash.
-       **/
-      sendRawTransaction: AugmentedRpc<(bytes: Bytes | string | Uint8Array) => Observable<H256>>;
-      /**
-       * Sends transaction; will block waiting for signer to return the transaction hash
-       **/
-      sendTransaction: AugmentedRpc<(tx: EthTransactionRequest | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } | string | Uint8Array) => Observable<H256>>;
-      /**
-       * Used for submitting mining hashrate.
-       **/
-      submitHashrate: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array, hash: H256 | string | Uint8Array) => Observable<bool>>;
-      /**
-       * Used for submitting a proof-of-work solution.
-       **/
-      submitWork: AugmentedRpc<(nonce: H64 | string | Uint8Array, headerHash: H256 | string | Uint8Array, mixDigest: H256 | string | Uint8Array) => Observable<bool>>;
-      /**
-       * Subscribe to Eth subscription.
-       **/
-      subscribe: AugmentedRpc<(kind: EthSubKind | 'newHeads' | 'logs' | 'newPendingTransactions' | 'syncing' | number | Uint8Array, params?: EthSubParams | { None: any } | { Logs: any } | string | Uint8Array) => Observable<Null>>;
-      /**
-       * Returns an object with data about the sync status or false.
-       **/
-      syncing: AugmentedRpc<() => Observable<EthSyncStatus>>;
-      /**
-       * Uninstalls filter.
-       **/
-      uninstallFilter: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<bool>>;
-    };
-    grandpa: {
-      /**
-       * Prove finality for the range (begin; end] hash.
-       **/
-      proveFinality: AugmentedRpc<(begin: BlockHash | string | Uint8Array, end: BlockHash | string | Uint8Array, authoritiesSetId?: u64 | AnyNumber | Uint8Array) => Observable<Option<EncodedFinalityProofs>>>;
-      /**
-       * Returns the state of the current best round state as well as the ongoing background rounds
-       **/
-      roundState: AugmentedRpc<() => Observable<ReportedRoundStates>>;
-      /**
-       * Subscribes to grandpa justifications
-       **/
-      subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;
-    };
-    mmr: {
-      /**
-       * Generate MMR proof for given leaf index.
-       **/
-      generateProof: AugmentedRpc<(leafIndex: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafProof>>;
-    };
-    net: {
-      /**
-       * Returns true if client is actively listening for network connections. Otherwise false.
-       **/
-      listening: AugmentedRpc<() => Observable<bool>>;
-      /**
-       * Returns number of peers connected to node.
-       **/
-      peerCount: AugmentedRpc<() => Observable<Text>>;
-      /**
-       * Returns protocol version.
-       **/
-      version: AugmentedRpc<() => Observable<Text>>;
-    };
-    offchain: {
-      /**
-       * Get offchain local storage under given key and prefix
-       **/
-      localStorageGet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
-      /**
-       * Set offchain local storage under given key and prefix
-       **/
-      localStorageSet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => Observable<Null>>;
-    };
-    payment: {
-      /**
-       * Query the detailed fee of a given encoded extrinsic
-       **/
-      queryFeeDetails: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<FeeDetails>>;
-      /**
-       * Retrieves the fee information for an encoded extrinsic
-       **/
-      queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfo>>;
-    };
-    rpc: {
-      /**
-       * Retrieves the list of RPC methods that are exposed by the node
-       **/
-      methods: AugmentedRpc<() => Observable<RpcMethods>>;
-    };
-    state: {
-      /**
-       * Perform a call to a builtin on the chain
-       **/
-      call: AugmentedRpc<(method: Text | string, data: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Bytes>>;
-      /**
-       * Retrieves the keys with prefix of a specific child storage
-       **/
-      getChildKeys: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
-      /**
-       * Returns proof of storage for child key entries at a specific block state.
-       **/
-      getChildReadProof: AugmentedRpc<(childStorageKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;
-      /**
-       * Retrieves the child storage for a key
-       **/
-      getChildStorage: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<StorageData>>;
-      /**
-       * Retrieves the child storage hash
-       **/
-      getChildStorageHash: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Hash>>;
-      /**
-       * Retrieves the child storage size
-       **/
-      getChildStorageSize: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;
-      /**
-       * Retrieves the keys with a certain prefix
-       **/
-      getKeys: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
-      /**
-       * Returns the keys with prefix with pagination support.
-       **/
-      getKeysPaged: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
-      /**
-       * Returns the runtime metadata
-       **/
-      getMetadata: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<Metadata>>;
-      /**
-       * Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)
-       **/
-      getPairs: AugmentedRpc<(prefix: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<KeyValue>>>;
-      /**
-       * Returns proof of storage entries at a specific block state
-       **/
-      getReadProof: AugmentedRpc<(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;
-      /**
-       * Get the runtime version
-       **/
-      getRuntimeVersion: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<RuntimeVersion>>;
-      /**
-       * Retrieves the storage for a key
-       **/
-      getStorage: AugmentedRpc<<T = Codec>(key: StorageKey | string | Uint8Array | any, block?: Hash | Uint8Array | string) => Observable<T>>;
-      /**
-       * Retrieves the storage hash
-       **/
-      getStorageHash: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Hash>>;
-      /**
-       * Retrieves the storage size
-       **/
-      getStorageSize: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;
-      /**
-       * Query historical storage entries (by key) starting from a start block
-       **/
-      queryStorage: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], fromBlock?: Hash | Uint8Array | string, toBlock?: Hash | Uint8Array | string) => Observable<[Hash, T][]>>;
-      /**
-       * Query storage entries (by key) starting at block hash given as the second parameter
-       **/
-      queryStorageAt: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | Uint8Array | string) => Observable<T>>;
-      /**
-       * Retrieves the runtime version via subscription
-       **/
-      subscribeRuntimeVersion: AugmentedRpc<() => Observable<RuntimeVersion>>;
-      /**
-       * Subscribes to storage changes for the provided keys
-       **/
-      subscribeStorage: AugmentedRpc<<T = Codec[]>(keys?: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[]) => Observable<T>>;
-      /**
-       * Provides a way to trace the re-execution of a single block
-       **/
-      traceBlock: AugmentedRpc<(block: Hash | string | Uint8Array, targets: Option<Text> | null | object | string | Uint8Array, storageKeys: Option<Text> | null | object | string | Uint8Array) => Observable<TraceBlockResponse>>;
-    };
-    syncstate: {
-      /**
-       * Returns the json-serialized chainspec running the node, with a sync state.
-       **/
-      genSyncSpec: AugmentedRpc<(raw: bool | boolean | Uint8Array) => Observable<Json>>;
-    };
-    system: {
-      /**
-       * Retrieves the next accountIndex as available on the node
-       **/
-      accountNextIndex: AugmentedRpc<(accountId: AccountId | string | Uint8Array) => Observable<Index>>;
-      /**
-       * Adds the supplied directives to the current log filter
-       **/
-      addLogFilter: AugmentedRpc<(directives: Text | string) => Observable<Null>>;
-      /**
-       * Adds a reserved peer
-       **/
-      addReservedPeer: AugmentedRpc<(peer: Text | string) => Observable<Text>>;
-      /**
-       * Retrieves the chain
-       **/
-      chain: AugmentedRpc<() => Observable<Text>>;
-      /**
-       * Retrieves the chain type
-       **/
-      chainType: AugmentedRpc<() => Observable<ChainType>>;
-      /**
-       * Dry run an extrinsic at a given block
-       **/
-      dryRun: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
-      /**
-       * Return health status of the node
-       **/
-      health: AugmentedRpc<() => Observable<Health>>;
-      /**
-       * The addresses include a trailing /p2p/ with the local PeerId, and are thus suitable to be passed to addReservedPeer or as a bootnode address for example
-       **/
-      localListenAddresses: AugmentedRpc<() => Observable<Vec<Text>>>;
-      /**
-       * Returns the base58-encoded PeerId of the node
-       **/
-      localPeerId: AugmentedRpc<() => Observable<Text>>;
-      /**
-       * Retrieves the node name
-       **/
-      name: AugmentedRpc<() => Observable<Text>>;
-      /**
-       * Returns current state of the network
-       **/
-      networkState: AugmentedRpc<() => Observable<NetworkState>>;
-      /**
-       * Returns the roles the node is running as
-       **/
-      nodeRoles: AugmentedRpc<() => Observable<Vec<NodeRole>>>;
-      /**
-       * Returns the currently connected peers
-       **/
-      peers: AugmentedRpc<() => Observable<Vec<PeerInfo>>>;
-      /**
-       * Get a custom set of properties as a JSON object, defined in the chain spec
-       **/
-      properties: AugmentedRpc<() => Observable<ChainProperties>>;
-      /**
-       * Remove a reserved peer
-       **/
-      removeReservedPeer: AugmentedRpc<(peerId: Text | string) => Observable<Text>>;
-      /**
-       * Returns the list of reserved peers
-       **/
-      reservedPeers: AugmentedRpc<() => Observable<Vec<Text>>>;
-      /**
-       * Resets the log filter to Substrate defaults
-       **/
-      resetLogFilter: AugmentedRpc<() => Observable<Null>>;
-      /**
-       * Returns the state of the syncing of the node
-       **/
-      syncState: AugmentedRpc<() => Observable<SyncState>>;
-      /**
-       * Retrieves the version of the node
-       **/
-      version: AugmentedRpc<() => Observable<Text>>;
-    };
-    web3: {
-      /**
-       * Returns current client version.
-       **/
-      clientVersion: AugmentedRpc<() => Observable<Text>>;
-      /**
-       * Returns sha3 of the given data
-       **/
-      sha3: AugmentedRpc<(data: Bytes | string | Uint8Array) => Observable<H256>>;
-    };
-  }
-}

+ 0 - 1895
types/augment-codec/augment-api-tx.ts

@@ -1,1895 +0,0 @@
-// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
-/* eslint-disable */
-
-import type { BTreeMap, BTreeSet, Bytes, Compact, Option, Vec, bool, u16, u32, u64 } from '@polkadot/types';
-import type { AnyNumber } from '@polkadot/types/types';
-import type { ActivateOpeningAt, AddOpeningParameters, ApplicationId, ApplicationIdSet, BagId, BalanceOfMint, CategoryId, ChannelCategoryCreationParameters, ChannelCategoryId, ChannelCategoryUpdateParameters, ChannelCreationParameters, ChannelId, ChannelOwnershipTransferRequest, ChannelOwnershipTransferRequestId, ChannelUpdateParameters, Cid, ContentActor, CuratorGroupId, CuratorId, DataObjectId, DistributionBucketFamilyId, DistributionBucketId, DynamicBagDeletionPrize, DynamicBagId, DynamicBagType, ElectionParameters, FillOpeningParameters, MemberId, MemoText, OpeningId, OpeningPolicyCommitment, OpeningType, PaidTermId, PersonActor, PersonCreationParameters, PersonId, PersonUpdateParameters, PlaylistCreationParameters, PlaylistId, PlaylistUpdateParameters, PostId, ProposalId, RewardPolicy, SeriesId, SeriesParameters, StorageBucketId, TerminateRoleParameters, ThreadId, UploadParameters, VideoCategoryCreationParameters, VideoCategoryId, VideoCategoryUpdateParameters, VideoCreationParameters, VideoId, VideoUpdateParameters, VoteKind, WorkerId, WorkingGroup } from './all';
-import type { BabeEquivocationProof } from '@polkadot/types/interfaces/babe';
-import type { Extrinsic, Signature } from '@polkadot/types/interfaces/extrinsics';
-import type { GrandpaEquivocationProof, KeyOwnerProof } from '@polkadot/types/interfaces/grandpa';
-import type { Heartbeat } from '@polkadot/types/interfaces/imOnline';
-import type { AccountId, Balance, BalanceOf, BlockNumber, Call, ChangesTrieConfiguration, Hash, Header, KeyValue, LookupSource, Moment, Perbill, Percent, Weight } from '@polkadot/types/interfaces/runtime';
-import type { Keys } from '@polkadot/types/interfaces/session';
-import type { CompactAssignments, ElectionScore, ElectionSize, EraIndex, RewardDestination, ValidatorIndex, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
-import type { Key } from '@polkadot/types/interfaces/system';
-import type { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types';
-
-declare module '@polkadot/api/types/submittable' {
-  export interface AugmentedSubmittables<ApiType> {
-    authorship: {
-      /**
-       * Provide a set of uncles.
-       **/
-      setUncles: AugmentedSubmittable<(newUncles: Vec<Header> | (Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Header>]>;
-    };
-    babe: {
-      /**
-       * Report authority equivocation/misbehavior. This method will verify
-       * the equivocation proof and validate the given key ownership proof
-       * against the extracted offender. If both are valid, the offence will
-       * be reported.
-       **/
-      reportEquivocation: AugmentedSubmittable<(equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [BabeEquivocationProof, KeyOwnerProof]>;
-      /**
-       * Report authority equivocation/misbehavior. This method will verify
-       * the equivocation proof and validate the given key ownership proof
-       * against the extracted offender. If both are valid, the offence will
-       * be reported.
-       * This extrinsic must be called unsigned and it is expected that only
-       * block authors will call it (validated in `ValidateUnsigned`), as such
-       * if the block author is defined it will be defined as the equivocation
-       * reporter.
-       **/
-      reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [BabeEquivocationProof, KeyOwnerProof]>;
-    };
-    balances: {
-      /**
-       * Exactly as `transfer`, except the origin must be root and the source account may be
-       * specified.
-       * # <weight>
-       * - Same as transfer, but additional read and write because the source account is
-       * not assumed to be in the overlay.
-       * # </weight>
-       **/
-      forceTransfer: AugmentedSubmittable<(source: LookupSource | string | Uint8Array, dest: LookupSource | string | Uint8Array, value: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, LookupSource, Compact<Balance>]>;
-      /**
-       * Set the balances of a given account.
-       * 
-       * This will alter `FreeBalance` and `ReservedBalance` in storage. it will
-       * also decrease the total issuance of the system (`TotalIssuance`).
-       * If the new free or reserved balance is below the existential deposit,
-       * it will reset the account nonce (`frame_system::AccountNonce`).
-       * 
-       * The dispatch origin for this call is `root`.
-       * 
-       * # <weight>
-       * - Independent of the arguments.
-       * - Contains a limited number of reads and writes.
-       * ---------------------
-       * - Base Weight:
-       * - Creating: 27.56 µs
-       * - Killing: 35.11 µs
-       * - DB Weight: 1 Read, 1 Write to `who`
-       * # </weight>
-       **/
-      setBalance: AugmentedSubmittable<(who: LookupSource | string | Uint8Array, newFree: Compact<Balance> | AnyNumber | Uint8Array, newReserved: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Compact<Balance>, Compact<Balance>]>;
-      /**
-       * Transfer some liquid free balance to another account.
-       * 
-       * `transfer` will set the `FreeBalance` of the sender and receiver.
-       * It will decrease the total issuance of the system by the `TransferFee`.
-       * If the sender's account is below the existential deposit as a result
-       * of the transfer, the account will be reaped.
-       * 
-       * The dispatch origin for this call must be `Signed` by the transactor.
-       * 
-       * # <weight>
-       * - Dependent on arguments but not critical, given proper implementations for
-       * input config types. See related functions below.
-       * - It contains a limited number of reads and writes internally and no complex computation.
-       * 
-       * Related functions:
-       * 
-       * - `ensure_can_withdraw` is always called internally but has a bounded complexity.
-       * - Transferring balances to accounts that did not exist before will cause
-       * `T::OnNewAccount::on_new_account` to be called.
-       * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
-       * - `transfer_keep_alive` works the same way as `transfer`, but has an additional
-       * check that the transfer will not kill the origin account.
-       * ---------------------------------
-       * - Base Weight: 73.64 µs, worst case scenario (account created, account removed)
-       * - DB Weight: 1 Read and 1 Write to destination account
-       * - Origin account is already in memory, so no DB operations for them.
-       * # </weight>
-       **/
-      transfer: AugmentedSubmittable<(dest: LookupSource | string | Uint8Array, value: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Compact<Balance>]>;
-      /**
-       * Same as the [`transfer`] call, but with a check that the transfer will not kill the
-       * origin account.
-       * 
-       * 99% of the time you want [`transfer`] instead.
-       * 
-       * [`transfer`]: struct.Module.html#method.transfer
-       * # <weight>
-       * - Cheaper than transfer because account cannot be killed.
-       * - Base Weight: 51.4 µs
-       * - DB Weight: 1 Read and 1 Write to dest (sender is in overlay already)
-       * #</weight>
-       **/
-      transferKeepAlive: AugmentedSubmittable<(dest: LookupSource | string | Uint8Array, value: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Compact<Balance>]>;
-    };
-    content: {
-      acceptChannelTransfer: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, requestId: ChannelOwnershipTransferRequestId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelOwnershipTransferRequestId]>;
-      /**
-       * Add curator to curator group under given `curator_group_id`
-       **/
-      addCuratorToGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, curatorId: CuratorId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [CuratorGroupId, CuratorId]>;
-      addPersonToVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array, person: PersonId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId, PersonId]>;
-      cancelChannelTransferRequest: AugmentedSubmittable<(requestId: ChannelOwnershipTransferRequestId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ChannelOwnershipTransferRequestId]>;
-      createChannel: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, params: ChannelCreationParameters | { assets?: any; meta?: any; reward_account?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelCreationParameters]>;
-      createChannelCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, params: ChannelCategoryCreationParameters | { meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelCategoryCreationParameters]>;
-      /**
-       * Add new curator group to runtime storage
-       **/
-      createCuratorGroup: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      createPerson: AugmentedSubmittable<(actor: PersonActor | { Member: any } | { Curator: any } | string | Uint8Array, params: PersonCreationParameters | { assets?: any; meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PersonActor, PersonCreationParameters]>;
-      createPlaylist: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, params: PlaylistCreationParameters | { meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, PlaylistCreationParameters]>;
-      createSeries: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, params: SeriesParameters | { assets?: any; seasons?: any; meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, SeriesParameters]>;
-      createVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, params: VideoCreationParameters | { assets?: any; meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, VideoCreationParameters]>;
-      createVideoCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, params: VideoCategoryCreationParameters | { meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoCategoryCreationParameters]>;
-      deleteChannel: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, numObjectsToDelete: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, u64]>;
-      deleteChannelCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, categoryId: ChannelCategoryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelCategoryId]>;
-      deletePerson: AugmentedSubmittable<(actor: PersonActor | { Member: any } | { Curator: any } | string | Uint8Array, person: PersonId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PersonActor, PersonId]>;
-      deletePlaylist: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, playlist: PlaylistId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, PlaylistId]>;
-      deleteSeries: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, series: SeriesId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, SeriesId]>;
-      deleteVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array, assetsToRemove: BTreeSet<DataObjectId>) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId, BTreeSet<DataObjectId>]>;
-      deleteVideoCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, categoryId: VideoCategoryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoCategoryId]>;
-      /**
-       * Remove curator from a given curator group
-       **/
-      removeCuratorFromGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, curatorId: CuratorId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [CuratorGroupId, CuratorId]>;
-      removePersonFromVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId]>;
-      requestChannelTransfer: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, request: ChannelOwnershipTransferRequest | { channel_id?: any; new_owner?: any; payment?: any; new_reward_account?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelOwnershipTransferRequest]>;
-      /**
-       * Set `is_active` status for curator group under given `curator_group_id`
-       **/
-      setCuratorGroupStatus: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, isActive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [CuratorGroupId, bool]>;
-      setFeaturedVideos: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, list: Vec<VideoId> | (VideoId | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [ContentActor, Vec<VideoId>]>;
-      updateChannel: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, params: ChannelUpdateParameters | { assets_to_upload?: any; new_meta?: any; reward_account?: any; assets_to_remove?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, ChannelUpdateParameters]>;
-      updateChannelCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, categoryId: ChannelCategoryId | AnyNumber | Uint8Array, params: ChannelCategoryUpdateParameters | { new_meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelCategoryId, ChannelCategoryUpdateParameters]>;
-      updateChannelCensorshipStatus: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, isCensored: bool | boolean | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, bool, Bytes]>;
-      updatePerson: AugmentedSubmittable<(actor: PersonActor | { Member: any } | { Curator: any } | string | Uint8Array, person: PersonId | AnyNumber | Uint8Array, params: PersonUpdateParameters | { assets?: any; meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PersonActor, PersonId, PersonUpdateParameters]>;
-      updatePlaylist: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, playlist: PlaylistId | AnyNumber | Uint8Array, params: PlaylistUpdateParameters | { new_meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, PlaylistId, PlaylistUpdateParameters]>;
-      updateSeries: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, params: SeriesParameters | { assets?: any; seasons?: any; meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, SeriesParameters]>;
-      updateVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array, params: VideoUpdateParameters | { assets_to_upload?: any; new_meta?: any; assets_to_remove?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId, VideoUpdateParameters]>;
-      updateVideoCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, categoryId: VideoCategoryId | AnyNumber | Uint8Array, params: VideoCategoryUpdateParameters | { new_meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoCategoryId, VideoCategoryUpdateParameters]>;
-      updateVideoCensorshipStatus: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array, isCensored: bool | boolean | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId, bool, Bytes]>;
-    };
-    contentWorkingGroup: {
-      /**
-       * Begin accepting worker applications to an opening that is active.
-       * Require signed leader origin or the root (to accept applications for the leader position).
-       **/
-      acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Add an opening for a worker role.
-       * Require signed leader origin or the root (to add opening for the leader position).
-       **/
-      addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_application_stake_unstaking_period?: any; terminate_role_stake_unstaking_period?: any; exit_role_application_stake_unstaking_period?: any; exit_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Worker' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [ActivateOpeningAt, OpeningPolicyCommitment, Bytes, OpeningType]>;
-      /**
-       * Apply on a worker opening.
-       **/
-      applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, OpeningId, AccountId, Option<BalanceOf>, Option<BalanceOf>, Bytes]>;
-      /**
-       * Begin reviewing, and therefore not accepting new applications.
-       * Require signed leader origin or the root (to begin review applications for the leader position).
-       **/
-      beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
-       * Can be decreased to zero, no actions on zero stake.
-       * Require signed leader origin or the root (to decrease the leader stake).
-       **/
-      decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Fill opening for worker/lead.
-       * Require signed leader origin or the root (to fill opening for the leader position).
-       **/
-      fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId, ApplicationIdSet, Option<RewardPolicy>]>;
-      /**
-       * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
-       * role_account_id to the stake. No limits on the stake.
-       **/
-      increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Leave the role by the active worker.
-       **/
-      leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Sets the capacity to enable working group budget. Requires root origin.
-       **/
-      setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
-       * If slashing balance greater than the existing stake - stake is slashed to zero.
-       * Require signed leader origin or the root (to slash the leader stake).
-       **/
-      slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Terminate the worker application. Can be done by the lead only.
-       **/
-      terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-      /**
-       * Terminate the active worker by the lead.
-       * Require signed leader origin or the root (to terminate the leader role).
-       **/
-      terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes, bool]>;
-      /**
-       * Update the reward account associated with a set reward relationship for the active worker.
-       **/
-      updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the reward amount associated with a set reward relationship for the active worker.
-       * Require signed leader origin or the root (to update leader reward amount).
-       **/
-      updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOfMint]>;
-      /**
-       * Update the associated role account of the active worker/lead.
-       **/
-      updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the associated role storage.
-       **/
-      updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Withdraw the worker application. Can be done by the worker itself only.
-       **/
-      withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-    };
-    council: {
-      /**
-       * Adds a zero staked council member. A member added in this way does not get a recurring reward.
-       **/
-      addCouncilMember: AugmentedSubmittable<(account: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId]>;
-      /**
-       * Remove a single council member and their reward.
-       **/
-      removeCouncilMember: AugmentedSubmittable<(accountToRemove: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId]>;
-      /**
-       * Force set a zero staked council. Stakes in existing council seats are not returned.
-       * Existing council rewards are removed and new council members do NOT get any rewards.
-       * Avoid using this call if possible, will be deprecated. The term of the new council is
-       * not extended.
-       **/
-      setCouncil: AugmentedSubmittable<(accounts: Vec<AccountId> | (AccountId | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId>]>;
-      /**
-       * Sets the capacity of the the council mint, if it doesn't exist, attempts to
-       * create a new one.
-       **/
-      setCouncilMintCapacity: AugmentedSubmittable<(capacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Sets the council rewards which is only applied on new council being elected.
-       **/
-      setCouncilRewards: AugmentedSubmittable<(amountPerPayout: BalanceOf | AnyNumber | Uint8Array, payoutInterval: Option<BlockNumber> | null | object | string | Uint8Array, firstPayoutAfterRewardCreated: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf, Option<BlockNumber>, BlockNumber]>;
-      /**
-       * Set blocknumber when council term will end
-       **/
-      setTermEndsAt: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BlockNumber]>;
-      /**
-       * Attempts to mint and transfer amount to destination account
-       **/
-      spendFromCouncilMint: AugmentedSubmittable<(amount: BalanceOf | AnyNumber | Uint8Array, destination: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf, AccountId]>;
-    };
-    councilElection: {
-      apply: AugmentedSubmittable<(stake: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      forceStartElection: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      forceStopElection: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      reveal: AugmentedSubmittable<(commitment: Hash | string | Uint8Array, vote: AccountId | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Hash, AccountId, Bytes]>;
-      setAutoStart: AugmentedSubmittable<(flag: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
-      /**
-       * Sets new election parameters. Some combination of parameters that are not desirable, so
-       * the parameters are checked for validity.
-       * The call will fail if an election is in progress. If a council is not being elected for some
-       * reaon after multiple rounds, force_stop_election() can be called to stop elections and followed by
-       * set_election_parameters().
-       **/
-      setElectionParameters: AugmentedSubmittable<(params: ElectionParameters | { announcing_period?: any; voting_period?: any; revealing_period?: any; council_size?: any; candidacy_limit?: any; new_term_duration?: any; min_council_stake?: any; min_voting_stake?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ElectionParameters]>;
-      setStageAnnouncing: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BlockNumber]>;
-      setStageRevealing: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BlockNumber]>;
-      setStageVoting: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BlockNumber]>;
-      vote: AugmentedSubmittable<(commitment: Hash | string | Uint8Array, stake: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Hash, BalanceOf]>;
-    };
-    distributionWorkingGroup: {
-      /**
-       * Begin accepting worker applications to an opening that is active.
-       * Require signed leader origin or the root (to accept applications for the leader position).
-       **/
-      acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Add an opening for a worker role.
-       * Require signed leader origin or the root (to add opening for the leader position).
-       **/
-      addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_application_stake_unstaking_period?: any; terminate_role_stake_unstaking_period?: any; exit_role_application_stake_unstaking_period?: any; exit_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Worker' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [ActivateOpeningAt, OpeningPolicyCommitment, Bytes, OpeningType]>;
-      /**
-       * Apply on a worker opening.
-       **/
-      applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, OpeningId, AccountId, Option<BalanceOf>, Option<BalanceOf>, Bytes]>;
-      /**
-       * Begin reviewing, and therefore not accepting new applications.
-       * Require signed leader origin or the root (to begin review applications for the leader position).
-       **/
-      beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
-       * Can be decreased to zero, no actions on zero stake.
-       * Require signed leader origin or the root (to decrease the leader stake).
-       **/
-      decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Fill opening for worker/lead.
-       * Require signed leader origin or the root (to fill opening for the leader position).
-       **/
-      fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId, ApplicationIdSet, Option<RewardPolicy>]>;
-      /**
-       * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
-       * role_account_id to the stake. No limits on the stake.
-       **/
-      increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Leave the role by the active worker.
-       **/
-      leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Sets the capacity to enable working group budget. Requires root origin.
-       **/
-      setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
-       * If slashing balance greater than the existing stake - stake is slashed to zero.
-       * Require signed leader origin or the root (to slash the leader stake).
-       **/
-      slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Terminate the worker application. Can be done by the lead only.
-       **/
-      terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-      /**
-       * Terminate the active worker by the lead.
-       * Require signed leader origin or the root (to terminate the leader role).
-       **/
-      terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes, bool]>;
-      /**
-       * Update the reward account associated with a set reward relationship for the active worker.
-       **/
-      updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the reward amount associated with a set reward relationship for the active worker.
-       * Require signed leader origin or the root (to update leader reward amount).
-       **/
-      updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOfMint]>;
-      /**
-       * Update the associated role account of the active worker/lead.
-       **/
-      updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the associated role storage.
-       **/
-      updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Withdraw the worker application. Can be done by the worker itself only.
-       **/
-      withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-    };
-    finalityTracker: {
-      /**
-       * Hint that the author of this block thinks the best finalized
-       * block is the given number.
-       **/
-      finalHint: AugmentedSubmittable<(hint: Compact<BlockNumber> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BlockNumber>]>;
-    };
-    forum: {
-      /**
-       * Edit post text
-       **/
-      addPost: AugmentedSubmittable<(threadId: ThreadId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ThreadId, Bytes]>;
-      /**
-       * Add a new category.
-       **/
-      createCategory: AugmentedSubmittable<(parent: Option<CategoryId> | null | object | string | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<CategoryId>, Bytes, Bytes]>;
-      /**
-       * Create new thread in category
-       **/
-      createThread: AugmentedSubmittable<(categoryId: CategoryId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [CategoryId, Bytes, Bytes]>;
-      /**
-       * Edit post text
-       **/
-      editPostText: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array, newText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PostId, Bytes]>;
-      /**
-       * Moderate post
-       **/
-      moderatePost: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PostId, Bytes]>;
-      /**
-       * Moderate thread
-       **/
-      moderateThread: AugmentedSubmittable<(threadId: ThreadId | AnyNumber | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ThreadId, Bytes]>;
-      /**
-       * Set forum sudo.
-       **/
-      setForumSudo: AugmentedSubmittable<(newForumSudo: Option<AccountId> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId>]>;
-      /**
-       * Update category
-       **/
-      updateCategory: AugmentedSubmittable<(categoryId: CategoryId | AnyNumber | Uint8Array, newArchivalStatus: Option<bool> | null | object | string | Uint8Array, newDeletionStatus: Option<bool> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [CategoryId, Option<bool>, Option<bool>]>;
-    };
-    gatewayWorkingGroup: {
-      /**
-       * Begin accepting worker applications to an opening that is active.
-       * Require signed leader origin or the root (to accept applications for the leader position).
-       **/
-      acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Add an opening for a worker role.
-       * Require signed leader origin or the root (to add opening for the leader position).
-       **/
-      addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_application_stake_unstaking_period?: any; terminate_role_stake_unstaking_period?: any; exit_role_application_stake_unstaking_period?: any; exit_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Worker' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [ActivateOpeningAt, OpeningPolicyCommitment, Bytes, OpeningType]>;
-      /**
-       * Apply on a worker opening.
-       **/
-      applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, OpeningId, AccountId, Option<BalanceOf>, Option<BalanceOf>, Bytes]>;
-      /**
-       * Begin reviewing, and therefore not accepting new applications.
-       * Require signed leader origin or the root (to begin review applications for the leader position).
-       **/
-      beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
-       * Can be decreased to zero, no actions on zero stake.
-       * Require signed leader origin or the root (to decrease the leader stake).
-       **/
-      decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Fill opening for worker/lead.
-       * Require signed leader origin or the root (to fill opening for the leader position).
-       **/
-      fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId, ApplicationIdSet, Option<RewardPolicy>]>;
-      /**
-       * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
-       * role_account_id to the stake. No limits on the stake.
-       **/
-      increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Leave the role by the active worker.
-       **/
-      leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Sets the capacity to enable working group budget. Requires root origin.
-       **/
-      setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
-       * If slashing balance greater than the existing stake - stake is slashed to zero.
-       * Require signed leader origin or the root (to slash the leader stake).
-       **/
-      slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Terminate the worker application. Can be done by the lead only.
-       **/
-      terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-      /**
-       * Terminate the active worker by the lead.
-       * Require signed leader origin or the root (to terminate the leader role).
-       **/
-      terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes, bool]>;
-      /**
-       * Update the reward account associated with a set reward relationship for the active worker.
-       **/
-      updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the reward amount associated with a set reward relationship for the active worker.
-       * Require signed leader origin or the root (to update leader reward amount).
-       **/
-      updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOfMint]>;
-      /**
-       * Update the associated role account of the active worker/lead.
-       **/
-      updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the associated role storage.
-       **/
-      updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Withdraw the worker application. Can be done by the worker itself only.
-       **/
-      withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-    };
-    grandpa: {
-      /**
-       * Note that the current authority set of the GRANDPA finality gadget has
-       * stalled. This will trigger a forced authority set change at the beginning
-       * of the next session, to be enacted `delay` blocks after that. The delay
-       * should be high enough to safely assume that the block signalling the
-       * forced change will not be re-orged (e.g. 1000 blocks). The GRANDPA voters
-       * will start the new authority set using the given finalized block as base.
-       * Only callable by root.
-       **/
-      noteStalled: AugmentedSubmittable<(delay: BlockNumber | AnyNumber | Uint8Array, bestFinalizedBlockNumber: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BlockNumber, BlockNumber]>;
-      /**
-       * Report voter equivocation/misbehavior. This method will verify the
-       * equivocation proof and validate the given key ownership proof
-       * against the extracted offender. If both are valid, the offence
-       * will be reported.
-       **/
-      reportEquivocation: AugmentedSubmittable<(equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [GrandpaEquivocationProof, KeyOwnerProof]>;
-      /**
-       * Report voter equivocation/misbehavior. This method will verify the
-       * equivocation proof and validate the given key ownership proof
-       * against the extracted offender. If both are valid, the offence
-       * will be reported.
-       * 
-       * This extrinsic must be called unsigned and it is expected that only
-       * block authors will call it (validated in `ValidateUnsigned`), as such
-       * if the block author is defined it will be defined as the equivocation
-       * reporter.
-       **/
-      reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [GrandpaEquivocationProof, KeyOwnerProof]>;
-    };
-    imOnline: {
-      /**
-       * # <weight>
-       * - Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len)
-       * and E is length of `heartbeat.network_state.external_address`
-       * - `O(K)`: decoding of length `K`
-       * - `O(E)`: decoding/encoding of length `E`
-       * - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
-       * `ReceivedHeartbeats`
-       * - DbWrites: `ReceivedHeartbeats`
-       * # </weight>
-       **/
-      heartbeat: AugmentedSubmittable<(heartbeat: Heartbeat | { blockNumber?: any; networkState?: any; sessionIndex?: any; authorityIndex?: any; validatorsLen?: any } | string | Uint8Array, signature: Signature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Heartbeat, Signature]>;
-    };
-    members: {
-      /**
-       * Screened members are awarded a initial locked balance that can only be slashed or used
-       * for fees, and is not transferable. The screening authority must ensure that the provided
-       * new_member_account was verified to avoid applying locks arbitrarily to accounts not controlled
-       * by the member.
-       **/
-      addScreenedMember: AugmentedSubmittable<(newMemberAccount: AccountId | string | Uint8Array, handle: Option<Bytes> | null | object | string | Uint8Array, avatarUri: Option<Bytes> | null | object | string | Uint8Array, about: Option<Bytes> | null | object | string | Uint8Array, initialBalance: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, Option<Bytes>, Option<Bytes>, Option<Bytes>, Option<BalanceOf>]>;
-      /**
-       * Non-members can buy membership
-       **/
-      buyMembership: AugmentedSubmittable<(paidTermsId: PaidTermId | AnyNumber | Uint8Array, handle: Option<Bytes> | null | object | string | Uint8Array, avatarUri: Option<Bytes> | null | object | string | Uint8Array, about: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PaidTermId, Option<Bytes>, Option<Bytes>, Option<Bytes>]>;
-      /**
-       * Change member's about text
-       **/
-      changeMemberAboutText: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes]>;
-      /**
-       * Change member's avatar
-       **/
-      changeMemberAvatar: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, uri: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes]>;
-      /**
-       * Change member's handle. Will ensure new handle is unique and old one will be available
-       * for other members to use.
-       **/
-      changeMemberHandle: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, handle: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes]>;
-      setControllerAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, newControllerAccount: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, AccountId]>;
-      setRootAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, newRootAccount: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, AccountId]>;
-      setScreeningAuthority: AugmentedSubmittable<(authority: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId]>;
-      /**
-       * Update member's all or some of handle, avatar and about text.
-       **/
-      updateMembership: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, handle: Option<Bytes> | null | object | string | Uint8Array, avatarUri: Option<Bytes> | null | object | string | Uint8Array, about: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Option<Bytes>, Option<Bytes>, Option<Bytes>]>;
-    };
-    memo: {
-      updateMemo: AugmentedSubmittable<(memo: MemoText | string) => SubmittableExtrinsic<ApiType>, [MemoText]>;
-    };
-    operationsWorkingGroupAlpha: {
-      /**
-       * Begin accepting worker applications to an opening that is active.
-       * Require signed leader origin or the root (to accept applications for the leader position).
-       **/
-      acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Add an opening for a worker role.
-       * Require signed leader origin or the root (to add opening for the leader position).
-       **/
-      addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_application_stake_unstaking_period?: any; terminate_role_stake_unstaking_period?: any; exit_role_application_stake_unstaking_period?: any; exit_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Worker' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [ActivateOpeningAt, OpeningPolicyCommitment, Bytes, OpeningType]>;
-      /**
-       * Apply on a worker opening.
-       **/
-      applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, OpeningId, AccountId, Option<BalanceOf>, Option<BalanceOf>, Bytes]>;
-      /**
-       * Begin reviewing, and therefore not accepting new applications.
-       * Require signed leader origin or the root (to begin review applications for the leader position).
-       **/
-      beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
-       * Can be decreased to zero, no actions on zero stake.
-       * Require signed leader origin or the root (to decrease the leader stake).
-       **/
-      decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Fill opening for worker/lead.
-       * Require signed leader origin or the root (to fill opening for the leader position).
-       **/
-      fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId, ApplicationIdSet, Option<RewardPolicy>]>;
-      /**
-       * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
-       * role_account_id to the stake. No limits on the stake.
-       **/
-      increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Leave the role by the active worker.
-       **/
-      leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Sets the capacity to enable working group budget. Requires root origin.
-       **/
-      setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
-       * If slashing balance greater than the existing stake - stake is slashed to zero.
-       * Require signed leader origin or the root (to slash the leader stake).
-       **/
-      slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Terminate the worker application. Can be done by the lead only.
-       **/
-      terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-      /**
-       * Terminate the active worker by the lead.
-       * Require signed leader origin or the root (to terminate the leader role).
-       **/
-      terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes, bool]>;
-      /**
-       * Update the reward account associated with a set reward relationship for the active worker.
-       **/
-      updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the reward amount associated with a set reward relationship for the active worker.
-       * Require signed leader origin or the root (to update leader reward amount).
-       **/
-      updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOfMint]>;
-      /**
-       * Update the associated role account of the active worker/lead.
-       **/
-      updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the associated role storage.
-       **/
-      updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Withdraw the worker application. Can be done by the worker itself only.
-       **/
-      withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-    };
-    operationsWorkingGroupBeta: {
-      /**
-       * Begin accepting worker applications to an opening that is active.
-       * Require signed leader origin or the root (to accept applications for the leader position).
-       **/
-      acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Add an opening for a worker role.
-       * Require signed leader origin or the root (to add opening for the leader position).
-       **/
-      addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_application_stake_unstaking_period?: any; terminate_role_stake_unstaking_period?: any; exit_role_application_stake_unstaking_period?: any; exit_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Worker' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [ActivateOpeningAt, OpeningPolicyCommitment, Bytes, OpeningType]>;
-      /**
-       * Apply on a worker opening.
-       **/
-      applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, OpeningId, AccountId, Option<BalanceOf>, Option<BalanceOf>, Bytes]>;
-      /**
-       * Begin reviewing, and therefore not accepting new applications.
-       * Require signed leader origin or the root (to begin review applications for the leader position).
-       **/
-      beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
-       * Can be decreased to zero, no actions on zero stake.
-       * Require signed leader origin or the root (to decrease the leader stake).
-       **/
-      decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Fill opening for worker/lead.
-       * Require signed leader origin or the root (to fill opening for the leader position).
-       **/
-      fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId, ApplicationIdSet, Option<RewardPolicy>]>;
-      /**
-       * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
-       * role_account_id to the stake. No limits on the stake.
-       **/
-      increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Leave the role by the active worker.
-       **/
-      leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Sets the capacity to enable working group budget. Requires root origin.
-       **/
-      setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
-       * If slashing balance greater than the existing stake - stake is slashed to zero.
-       * Require signed leader origin or the root (to slash the leader stake).
-       **/
-      slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Terminate the worker application. Can be done by the lead only.
-       **/
-      terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-      /**
-       * Terminate the active worker by the lead.
-       * Require signed leader origin or the root (to terminate the leader role).
-       **/
-      terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes, bool]>;
-      /**
-       * Update the reward account associated with a set reward relationship for the active worker.
-       **/
-      updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the reward amount associated with a set reward relationship for the active worker.
-       * Require signed leader origin or the root (to update leader reward amount).
-       **/
-      updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOfMint]>;
-      /**
-       * Update the associated role account of the active worker/lead.
-       **/
-      updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the associated role storage.
-       **/
-      updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Withdraw the worker application. Can be done by the worker itself only.
-       **/
-      withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-    };
-    operationsWorkingGroupGamma: {
-      /**
-       * Begin accepting worker applications to an opening that is active.
-       * Require signed leader origin or the root (to accept applications for the leader position).
-       **/
-      acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Add an opening for a worker role.
-       * Require signed leader origin or the root (to add opening for the leader position).
-       **/
-      addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_application_stake_unstaking_period?: any; terminate_role_stake_unstaking_period?: any; exit_role_application_stake_unstaking_period?: any; exit_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Worker' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [ActivateOpeningAt, OpeningPolicyCommitment, Bytes, OpeningType]>;
-      /**
-       * Apply on a worker opening.
-       **/
-      applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, OpeningId, AccountId, Option<BalanceOf>, Option<BalanceOf>, Bytes]>;
-      /**
-       * Begin reviewing, and therefore not accepting new applications.
-       * Require signed leader origin or the root (to begin review applications for the leader position).
-       **/
-      beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
-       * Can be decreased to zero, no actions on zero stake.
-       * Require signed leader origin or the root (to decrease the leader stake).
-       **/
-      decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Fill opening for worker/lead.
-       * Require signed leader origin or the root (to fill opening for the leader position).
-       **/
-      fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId, ApplicationIdSet, Option<RewardPolicy>]>;
-      /**
-       * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
-       * role_account_id to the stake. No limits on the stake.
-       **/
-      increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Leave the role by the active worker.
-       **/
-      leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Sets the capacity to enable working group budget. Requires root origin.
-       **/
-      setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
-       * If slashing balance greater than the existing stake - stake is slashed to zero.
-       * Require signed leader origin or the root (to slash the leader stake).
-       **/
-      slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Terminate the worker application. Can be done by the lead only.
-       **/
-      terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-      /**
-       * Terminate the active worker by the lead.
-       * Require signed leader origin or the root (to terminate the leader role).
-       **/
-      terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes, bool]>;
-      /**
-       * Update the reward account associated with a set reward relationship for the active worker.
-       **/
-      updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the reward amount associated with a set reward relationship for the active worker.
-       * Require signed leader origin or the root (to update leader reward amount).
-       **/
-      updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOfMint]>;
-      /**
-       * Update the associated role account of the active worker/lead.
-       **/
-      updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the associated role storage.
-       **/
-      updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Withdraw the worker application. Can be done by the worker itself only.
-       **/
-      withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-    };
-    proposalsCodex: {
-      /**
-       * Create 'Add working group leader opening' proposal type.
-       * This proposal uses `add_opening()` extrinsic from the Joystream `working group` module.
-       **/
-      createAddWorkingGroupLeaderOpeningProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, addOpeningParameters: AddOpeningParameters | { activate_at?: any; commitment?: any; human_readable_text?: any; working_group?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, AddOpeningParameters]>;
-      /**
-       * Create 'Begin review working group leader applications' proposal type.
-       * This proposal uses `begin_applicant_review()` extrinsic from the Joystream `working group` module.
-       **/
-      createBeginReviewWorkingGroupLeaderApplicationsProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, workingGroup: WorkingGroup | '_Reserved0' | '_Reserved1' | 'Storage' | 'Content' | 'OperationsAlpha' | 'Gateway' | 'Distribution' | 'OperationsBeta' | 'OperationsGamma' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, OpeningId, WorkingGroup]>;
-      /**
-       * Create 'decrease working group leader stake' proposal type.
-       * This proposal uses `decrease_stake()` extrinsic from the `working-group`  module.
-       **/
-      createDecreaseWorkingGroupLeaderStakeProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, workerId: WorkerId | AnyNumber | Uint8Array, decreasingStake: BalanceOf | AnyNumber | Uint8Array, workingGroup: WorkingGroup | '_Reserved0' | '_Reserved1' | 'Storage' | 'Content' | 'OperationsAlpha' | 'Gateway' | 'Distribution' | 'OperationsBeta' | 'OperationsGamma' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, WorkerId, BalanceOf, WorkingGroup]>;
-      /**
-       * Create 'Fill working group leader opening' proposal type.
-       * This proposal uses `fill_opening()` extrinsic from the Joystream `working group` module.
-       **/
-      createFillWorkingGroupLeaderOpeningProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, fillOpeningParameters: FillOpeningParameters | { opening_id?: any; successful_application_id?: any; reward_policy?: any; working_group?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, FillOpeningParameters]>;
-      /**
-       * Create 'Runtime upgrade' proposal type. Runtime upgrade can be initiated only by
-       * members from the hardcoded list `RuntimeUpgradeProposalAllowedProposers`
-       **/
-      createRuntimeUpgradeProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, wasm: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, Bytes]>;
-      /**
-       * Create 'Set election parameters' proposal type. This proposal uses `set_election_parameters()`
-       * extrinsic from the `governance::election module`.
-       **/
-      createSetElectionParametersProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, electionParameters: ElectionParameters | { announcing_period?: any; voting_period?: any; revealing_period?: any; council_size?: any; candidacy_limit?: any; new_term_duration?: any; min_council_stake?: any; min_voting_stake?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, ElectionParameters]>;
-      /**
-       * Create 'Evict storage provider' proposal type.
-       * This proposal uses `set_validator_count()` extrinsic from the Substrate `staking`  module.
-       **/
-      createSetValidatorCountProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, newValidatorCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, u32]>;
-      /**
-       * Create 'set working group leader reward' proposal type.
-       * This proposal uses `update_reward_amount()` extrinsic from the `working-group`  module.
-       **/
-      createSetWorkingGroupLeaderRewardProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, workerId: WorkerId | AnyNumber | Uint8Array, rewardAmount: BalanceOfMint | AnyNumber | Uint8Array, workingGroup: WorkingGroup | '_Reserved0' | '_Reserved1' | 'Storage' | 'Content' | 'OperationsAlpha' | 'Gateway' | 'Distribution' | 'OperationsBeta' | 'OperationsGamma' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, WorkerId, BalanceOfMint, WorkingGroup]>;
-      /**
-       * Create 'Set working group mint capacity' proposal type.
-       * This proposal uses `set_mint_capacity()` extrinsic from the `working-group`  module.
-       **/
-      createSetWorkingGroupMintCapacityProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, mintBalance: BalanceOfMint | AnyNumber | Uint8Array, workingGroup: WorkingGroup | '_Reserved0' | '_Reserved1' | 'Storage' | 'Content' | 'OperationsAlpha' | 'Gateway' | 'Distribution' | 'OperationsBeta' | 'OperationsGamma' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, BalanceOfMint, WorkingGroup]>;
-      /**
-       * Create 'slash working group leader stake' proposal type.
-       * This proposal uses `slash_stake()` extrinsic from the `working-group`  module.
-       **/
-      createSlashWorkingGroupLeaderStakeProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, workerId: WorkerId | AnyNumber | Uint8Array, slashingStake: BalanceOf | AnyNumber | Uint8Array, workingGroup: WorkingGroup | '_Reserved0' | '_Reserved1' | 'Storage' | 'Content' | 'OperationsAlpha' | 'Gateway' | 'Distribution' | 'OperationsBeta' | 'OperationsGamma' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, WorkerId, BalanceOf, WorkingGroup]>;
-      /**
-       * Create 'Spending' proposal type.
-       * This proposal uses `spend_from_council_mint()` extrinsic from the `governance::council`  module.
-       **/
-      createSpendingProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, balance: BalanceOfMint | AnyNumber | Uint8Array, destination: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, BalanceOfMint, AccountId]>;
-      /**
-       * Create 'terminate working group leader rolw' proposal type.
-       * This proposal uses `terminate_role()` extrinsic from the `working-group`  module.
-       **/
-      createTerminateWorkingGroupLeaderRoleProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, terminateRoleParameters: TerminateRoleParameters | { worker_id?: any; rationale?: any; slash?: any; working_group?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, TerminateRoleParameters]>;
-      /**
-       * Create 'Text (signal)' proposal type.
-       **/
-      createTextProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, Bytes]>;
-      /**
-       * Runtime upgrade proposal extrinsic.
-       * Should be used as callable object to pass to the `engine` module.
-       **/
-      executeRuntimeUpgradeProposal: AugmentedSubmittable<(wasm: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
-      /**
-       * Text proposal extrinsic. Should be used as callable object to pass to the `engine` module.
-       **/
-      executeTextProposal: AugmentedSubmittable<(text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
-    };
-    proposalsDiscussion: {
-      /**
-       * Adds a post with author origin check.
-       **/
-      addPost: AugmentedSubmittable<(postAuthorId: MemberId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ThreadId, Bytes]>;
-      /**
-       * Updates a post with author origin check. Update attempts number is limited.
-       **/
-      updatePost: AugmentedSubmittable<(postAuthorId: MemberId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ThreadId, PostId, Bytes]>;
-    };
-    proposalsEngine: {
-      /**
-       * Cancel a proposal by its original proposer.
-       **/
-      cancelProposal: AugmentedSubmittable<(proposerId: MemberId | AnyNumber | Uint8Array, proposalId: ProposalId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ProposalId]>;
-      /**
-       * Veto a proposal. Must be root.
-       **/
-      vetoProposal: AugmentedSubmittable<(proposalId: ProposalId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ProposalId]>;
-      /**
-       * Vote extrinsic. Conditions:  origin must allow votes.
-       **/
-      vote: AugmentedSubmittable<(voterId: MemberId | AnyNumber | Uint8Array, proposalId: ProposalId | AnyNumber | Uint8Array, vote: VoteKind | 'Approve' | 'Reject' | 'Slash' | 'Abstain' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ProposalId, VoteKind]>;
-    };
-    session: {
-      /**
-       * Removes any session key(s) of the function caller.
-       * This doesn't take effect until the next session.
-       * 
-       * The dispatch origin of this function must be signed.
-       * 
-       * # <weight>
-       * - Complexity: `O(1)` in number of key types.
-       * Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
-       * - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
-       * - DbWrites: `NextKeys`, `origin account`
-       * - DbWrites per key id: `KeyOwnder`
-       * # </weight>
-       **/
-      purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      /**
-       * Sets the session key(s) of the function caller to `keys`.
-       * Allows an account to set its session key prior to becoming a validator.
-       * This doesn't take effect until the next session.
-       * 
-       * The dispatch origin of this function must be signed.
-       * 
-       * # <weight>
-       * - Complexity: `O(1)`
-       * Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
-       * - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
-       * - DbWrites: `origin account`, `NextKeys`
-       * - DbReads per key id: `KeyOwner`
-       * - DbWrites per key id: `KeyOwner`
-       * # </weight>
-       **/
-      setKeys: AugmentedSubmittable<(keys: Keys | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Keys, Bytes]>;
-    };
-    staking: {
-      /**
-       * Take the origin account as a stash and lock up `value` of its balance. `controller` will
-       * be the account that controls it.
-       * 
-       * `value` must be more than the `minimum_balance` specified by `T::Currency`.
-       * 
-       * The dispatch origin for this call must be _Signed_ by the stash account.
-       * 
-       * Emits `Bonded`.
-       * 
-       * # <weight>
-       * - Independent of the arguments. Moderate complexity.
-       * - O(1).
-       * - Three extra DB entries.
-       * 
-       * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
-       * unless the `origin` falls below _existential deposit_ and gets removed as dust.
-       * ------------------
-       * Weight: O(1)
-       * DB Weight:
-       * - Read: Bonded, Ledger, [Origin Account], Current Era, History Depth, Locks
-       * - Write: Bonded, Payee, [Origin Account], Locks, Ledger
-       * # </weight>
-       **/
-      bond: AugmentedSubmittable<(controller: LookupSource | string | Uint8Array, value: Compact<BalanceOf> | AnyNumber | Uint8Array, payee: RewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Compact<BalanceOf>, RewardDestination]>;
-      /**
-       * Add some extra amount that have appeared in the stash `free_balance` into the balance up
-       * for staking.
-       * 
-       * Use this if there are additional funds in your stash account that you wish to bond.
-       * Unlike [`bond`] or [`unbond`] this function does not impose any limitation on the amount
-       * that can be added.
-       * 
-       * The dispatch origin for this call must be _Signed_ by the stash, not the controller and
-       * it can be only called when [`EraElectionStatus`] is `Closed`.
-       * 
-       * Emits `Bonded`.
-       * 
-       * # <weight>
-       * - Independent of the arguments. Insignificant complexity.
-       * - O(1).
-       * - One DB entry.
-       * ------------
-       * DB Weight:
-       * - Read: Era Election Status, Bonded, Ledger, [Origin Account], Locks
-       * - Write: [Origin Account], Locks, Ledger
-       * # </weight>
-       **/
-      bondExtra: AugmentedSubmittable<(maxAdditional: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>]>;
-      /**
-       * Cancel enactment of a deferred slash.
-       * 
-       * Can be called by the `T::SlashCancelOrigin`.
-       * 
-       * Parameters: era and indices of the slashes for that era to kill.
-       * 
-       * # <weight>
-       * Complexity: O(U + S)
-       * with U unapplied slashes weighted with U=1000
-       * and S is the number of slash indices to be canceled.
-       * - Read: Unapplied Slashes
-       * - Write: Unapplied Slashes
-       * # </weight>
-       **/
-      cancelDeferredSlash: AugmentedSubmittable<(era: EraIndex | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [EraIndex, Vec<u32>]>;
-      /**
-       * Declare no desire to either validate or nominate.
-       * 
-       * Effects will be felt at the beginning of the next era.
-       * 
-       * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
-       * And, it can be only called when [`EraElectionStatus`] is `Closed`.
-       * 
-       * # <weight>
-       * - Independent of the arguments. Insignificant complexity.
-       * - Contains one read.
-       * - Writes are limited to the `origin` account key.
-       * --------
-       * Weight: O(1)
-       * DB Weight:
-       * - Read: EraElectionStatus, Ledger
-       * - Write: Validators, Nominators
-       * # </weight>
-       **/
-      chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      /**
-       * Force there to be a new era at the end of the next session. After this, it will be
-       * reset to normal (non-forced) behaviour.
-       * 
-       * The dispatch origin must be Root.
-       * 
-       * # <weight>
-       * - No arguments.
-       * - Weight: O(1)
-       * - Write ForceEra
-       * # </weight>
-       **/
-      forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      /**
-       * Force there to be a new era at the end of sessions indefinitely.
-       * 
-       * The dispatch origin must be Root.
-       * 
-       * # <weight>
-       * - Weight: O(1)
-       * - Write: ForceEra
-       * # </weight>
-       **/
-      forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      /**
-       * Force there to be no new eras indefinitely.
-       * 
-       * The dispatch origin must be Root.
-       * 
-       * # <weight>
-       * - No arguments.
-       * - Weight: O(1)
-       * - Write: ForceEra
-       * # </weight>
-       **/
-      forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      /**
-       * Force a current staker to become completely unstaked, immediately.
-       * 
-       * The dispatch origin must be Root.
-       * 
-       * # <weight>
-       * O(S) where S is the number of slashing spans to be removed
-       * Reads: Bonded, Slashing Spans, Account, Locks
-       * Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Account, Locks
-       * Writes Each: SpanSlash * S
-       * # </weight>
-       **/
-      forceUnstake: AugmentedSubmittable<(stash: AccountId | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, u32]>;
-      /**
-       * Increments the ideal number of validators.
-       * 
-       * The dispatch origin must be Root.
-       * 
-       * # <weight>
-       * Same as [`set_validator_count`].
-       * # </weight>
-       **/
-      increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
-      /**
-       * Declare the desire to nominate `targets` for the origin controller.
-       * 
-       * Effects will be felt at the beginning of the next era. This can only be called when
-       * [`EraElectionStatus`] is `Closed`.
-       * 
-       * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
-       * And, it can be only called when [`EraElectionStatus`] is `Closed`.
-       * 
-       * # <weight>
-       * - The transaction's complexity is proportional to the size of `targets` (N)
-       * which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS).
-       * - Both the reads and writes follow a similar pattern.
-       * ---------
-       * Weight: O(N)
-       * where N is the number of targets
-       * DB Weight:
-       * - Reads: Era Election Status, Ledger, Current Era
-       * - Writes: Validators, Nominators
-       * # </weight>
-       **/
-      nominate: AugmentedSubmittable<(targets: Vec<LookupSource> | (LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<LookupSource>]>;
-      /**
-       * Pay out all the stakers behind a single validator for a single era.
-       * 
-       * - `validator_stash` is the stash account of the validator. Their nominators, up to
-       * `T::MaxNominatorRewardedPerValidator`, will also receive their rewards.
-       * - `era` may be any era between `[current_era - history_depth; current_era]`.
-       * 
-       * The origin of this call must be _Signed_. Any account can call this function, even if
-       * it is not one of the stakers.
-       * 
-       * This can only be called when [`EraElectionStatus`] is `Closed`.
-       * 
-       * # <weight>
-       * - Time complexity: at most O(MaxNominatorRewardedPerValidator).
-       * - Contains a limited number of reads and writes.
-       * -----------
-       * N is the Number of payouts for the validator (including the validator)
-       * Weight:
-       * - Reward Destination Staked: O(N)
-       * - Reward Destination Controller (Creating): O(N)
-       * DB Weight:
-       * - Read: EraElectionStatus, CurrentEra, HistoryDepth, ErasValidatorReward,
-       * ErasStakersClipped, ErasRewardPoints, ErasValidatorPrefs (8 items)
-       * - Read Each: Bonded, Ledger, Payee, Locks, System Account (5 items)
-       * - Write Each: System Account, Locks, Ledger (3 items)
-       * 
-       * NOTE: weights are assuming that payouts are made to alive stash account (Staked).
-       * Paying even a dead controller is cheaper weight-wise. We don't do any refunds here.
-       * # </weight>
-       **/
-      payoutStakers: AugmentedSubmittable<(validatorStash: AccountId | string | Uint8Array, era: EraIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, EraIndex]>;
-      /**
-       * Remove all data structure concerning a staker/stash once its balance is zero.
-       * This is essentially equivalent to `withdraw_unbonded` except it can be called by anyone
-       * and the target `stash` must have no funds left.
-       * 
-       * This can be called from any origin.
-       * 
-       * - `stash`: The stash account to reap. Its balance must be zero.
-       * 
-       * # <weight>
-       * Complexity: O(S) where S is the number of slashing spans on the account.
-       * DB Weight:
-       * - Reads: Stash Account, Bonded, Slashing Spans, Locks
-       * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Stash Account, Locks
-       * - Writes Each: SpanSlash * S
-       * # </weight>
-       **/
-      reapStash: AugmentedSubmittable<(stash: AccountId | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, u32]>;
-      /**
-       * Rebond a portion of the stash scheduled to be unlocked.
-       * 
-       * The dispatch origin must be signed by the controller, and it can be only called when
-       * [`EraElectionStatus`] is `Closed`.
-       * 
-       * # <weight>
-       * - Time complexity: O(L), where L is unlocking chunks
-       * - Bounded by `MAX_UNLOCKING_CHUNKS`.
-       * - Storage changes: Can't increase storage, only decrease it.
-       * ---------------
-       * - DB Weight:
-       * - Reads: EraElectionStatus, Ledger, Locks, [Origin Account]
-       * - Writes: [Origin Account], Locks, Ledger
-       * # </weight>
-       **/
-      rebond: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>]>;
-      /**
-       * Scale up the ideal number of validators by a factor.
-       * 
-       * The dispatch origin must be Root.
-       * 
-       * # <weight>
-       * Same as [`set_validator_count`].
-       * # </weight>
-       **/
-      scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
-      /**
-       * (Re-)set the controller of a stash.
-       * 
-       * Effects will be felt at the beginning of the next era.
-       * 
-       * The dispatch origin for this call must be _Signed_ by the stash, not the controller.
-       * 
-       * # <weight>
-       * - Independent of the arguments. Insignificant complexity.
-       * - Contains a limited number of reads.
-       * - Writes are limited to the `origin` account key.
-       * ----------
-       * Weight: O(1)
-       * DB Weight:
-       * - Read: Bonded, Ledger New Controller, Ledger Old Controller
-       * - Write: Bonded, Ledger New Controller, Ledger Old Controller
-       * # </weight>
-       **/
-      setController: AugmentedSubmittable<(controller: LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource]>;
-      /**
-       * Set `HistoryDepth` value. This function will delete any history information
-       * when `HistoryDepth` is reduced.
-       * 
-       * Parameters:
-       * - `new_history_depth`: The new history depth you would like to set.
-       * - `era_items_deleted`: The number of items that will be deleted by this dispatch.
-       * This should report all the storage items that will be deleted by clearing old
-       * era history. Needed to report an accurate weight for the dispatch. Trusted by
-       * `Root` to report an accurate number.
-       * 
-       * Origin must be root.
-       * 
-       * # <weight>
-       * - E: Number of history depths removed, i.e. 10 -> 7 = 3
-       * - Weight: O(E)
-       * - DB Weight:
-       * - Reads: Current Era, History Depth
-       * - Writes: History Depth
-       * - Clear Prefix Each: Era Stakers, EraStakersClipped, ErasValidatorPrefs
-       * - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake, ErasStartSessionIndex
-       * # </weight>
-       **/
-      setHistoryDepth: AugmentedSubmittable<(newHistoryDepth: Compact<EraIndex> | AnyNumber | Uint8Array, eraItemsDeleted: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<EraIndex>, Compact<u32>]>;
-      /**
-       * Set the validators who cannot be slashed (if any).
-       * 
-       * The dispatch origin must be Root.
-       * 
-       * # <weight>
-       * - O(V)
-       * - Write: Invulnerables
-       * # </weight>
-       **/
-      setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId> | (AccountId | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId>]>;
-      /**
-       * (Re-)set the payment target for a controller.
-       * 
-       * Effects will be felt at the beginning of the next era.
-       * 
-       * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
-       * 
-       * # <weight>
-       * - Independent of the arguments. Insignificant complexity.
-       * - Contains a limited number of reads.
-       * - Writes are limited to the `origin` account key.
-       * ---------
-       * - Weight: O(1)
-       * - DB Weight:
-       * - Read: Ledger
-       * - Write: Payee
-       * # </weight>
-       **/
-      setPayee: AugmentedSubmittable<(payee: RewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [RewardDestination]>;
-      /**
-       * Sets the ideal number of validators.
-       * 
-       * The dispatch origin must be Root.
-       * 
-       * # <weight>
-       * Weight: O(1)
-       * Write: Validator Count
-       * # </weight>
-       **/
-      setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
-      /**
-       * Submit an election result to the chain. If the solution:
-       * 
-       * 1. is valid.
-       * 2. has a better score than a potentially existing solution on chain.
-       * 
-       * then, it will be _put_ on chain.
-       * 
-       * A solution consists of two pieces of data:
-       * 
-       * 1. `winners`: a flat vector of all the winners of the round.
-       * 2. `assignments`: the compact version of an assignment vector that encodes the edge
-       * weights.
-       * 
-       * Both of which may be computed using _phragmen_, or any other algorithm.
-       * 
-       * Additionally, the submitter must provide:
-       * 
-       * - The `score` that they claim their solution has.
-       * 
-       * Both validators and nominators will be represented by indices in the solution. The
-       * indices should respect the corresponding types ([`ValidatorIndex`] and
-       * [`NominatorIndex`]). Moreover, they should be valid when used to index into
-       * [`SnapshotValidators`] and [`SnapshotNominators`]. Any invalid index will cause the
-       * solution to be rejected. These two storage items are set during the election window and
-       * may be used to determine the indices.
-       * 
-       * A solution is valid if:
-       * 
-       * 0. It is submitted when [`EraElectionStatus`] is `Open`.
-       * 1. Its claimed score is equal to the score computed on-chain.
-       * 2. Presents the correct number of winners.
-       * 3. All indexes must be value according to the snapshot vectors. All edge values must
-       * also be correct and should not overflow the granularity of the ratio type (i.e. 256
-       * or billion).
-       * 4. For each edge, all targets are actually nominated by the voter.
-       * 5. Has correct self-votes.
-       * 
-       * A solutions score is consisted of 3 parameters:
-       * 
-       * 1. `min { support.total }` for each support of a winner. This value should be maximized.
-       * 2. `sum { support.total }` for each support of a winner. This value should be minimized.
-       * 3. `sum { support.total^2 }` for each support of a winner. This value should be
-       * minimized (to ensure less variance)
-       * 
-       * # <weight>
-       * The transaction is assumed to be the longest path, a better solution.
-       * - Initial solution is almost the same.
-       * - Worse solution is retraced in pre-dispatch-checks which sets its own weight.
-       * # </weight>
-       **/
-      submitElectionSolution: AugmentedSubmittable<(winners: Vec<ValidatorIndex> | (ValidatorIndex | AnyNumber | Uint8Array)[], compact: CompactAssignments | { votes1?: any; votes2?: any; votes3?: any; votes4?: any; votes5?: any; votes6?: any; votes7?: any; votes8?: any; votes9?: any; votes10?: any; votes11?: any; votes12?: any; votes13?: any; votes14?: any; votes15?: any; votes16?: any } | string | Uint8Array, score: ElectionScore, era: EraIndex | AnyNumber | Uint8Array, size: ElectionSize | { validators?: any; nominators?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ValidatorIndex>, CompactAssignments, ElectionScore, EraIndex, ElectionSize]>;
-      /**
-       * Unsigned version of `submit_election_solution`.
-       * 
-       * Note that this must pass the [`ValidateUnsigned`] check which only allows transactions
-       * from the local node to be included. In other words, only the block author can include a
-       * transaction in the block.
-       * 
-       * # <weight>
-       * See `crate::weight` module.
-       * # </weight>
-       **/
-      submitElectionSolutionUnsigned: AugmentedSubmittable<(winners: Vec<ValidatorIndex> | (ValidatorIndex | AnyNumber | Uint8Array)[], compact: CompactAssignments | { votes1?: any; votes2?: any; votes3?: any; votes4?: any; votes5?: any; votes6?: any; votes7?: any; votes8?: any; votes9?: any; votes10?: any; votes11?: any; votes12?: any; votes13?: any; votes14?: any; votes15?: any; votes16?: any } | string | Uint8Array, score: ElectionScore, era: EraIndex | AnyNumber | Uint8Array, size: ElectionSize | { validators?: any; nominators?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ValidatorIndex>, CompactAssignments, ElectionScore, EraIndex, ElectionSize]>;
-      /**
-       * Schedule a portion of the stash to be unlocked ready for transfer out after the bond
-       * period ends. If this leaves an amount actively bonded less than
-       * T::Currency::minimum_balance(), then it is increased to the full amount.
-       * 
-       * Once the unlock period is done, you can call `withdraw_unbonded` to actually move
-       * the funds out of management ready for transfer.
-       * 
-       * No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`)
-       * can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need
-       * to be called first to remove some of the chunks (if possible).
-       * 
-       * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
-       * And, it can be only called when [`EraElectionStatus`] is `Closed`.
-       * 
-       * Emits `Unbonded`.
-       * 
-       * See also [`Call::withdraw_unbonded`].
-       * 
-       * # <weight>
-       * - Independent of the arguments. Limited but potentially exploitable complexity.
-       * - Contains a limited number of reads.
-       * - Each call (requires the remainder of the bonded balance to be above `minimum_balance`)
-       * will cause a new entry to be inserted into a vector (`Ledger.unlocking`) kept in storage.
-       * The only way to clean the aforementioned storage item is also user-controlled via
-       * `withdraw_unbonded`.
-       * - One DB entry.
-       * ----------
-       * Weight: O(1)
-       * DB Weight:
-       * - Read: EraElectionStatus, Ledger, CurrentEra, Locks, BalanceOf Stash,
-       * - Write: Locks, Ledger, BalanceOf Stash,
-       * </weight>
-       **/
-      unbond: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>]>;
-      /**
-       * Declare the desire to validate for the origin controller.
-       * 
-       * Effects will be felt at the beginning of the next era.
-       * 
-       * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
-       * And, it can be only called when [`EraElectionStatus`] is `Closed`.
-       * 
-       * # <weight>
-       * - Independent of the arguments. Insignificant complexity.
-       * - Contains a limited number of reads.
-       * - Writes are limited to the `origin` account key.
-       * -----------
-       * Weight: O(1)
-       * DB Weight:
-       * - Read: Era Election Status, Ledger
-       * - Write: Nominators, Validators
-       * # </weight>
-       **/
-      validate: AugmentedSubmittable<(prefs: ValidatorPrefs | { commission?: any; blocked?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ValidatorPrefs]>;
-      /**
-       * Remove any unlocked chunks from the `unlocking` queue from our management.
-       * 
-       * This essentially frees up that balance to be used by the stash account to do
-       * whatever it wants.
-       * 
-       * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
-       * And, it can be only called when [`EraElectionStatus`] is `Closed`.
-       * 
-       * Emits `Withdrawn`.
-       * 
-       * See also [`Call::unbond`].
-       * 
-       * # <weight>
-       * - Could be dependent on the `origin` argument and how much `unlocking` chunks exist.
-       * It implies `consolidate_unlocked` which loops over `Ledger.unlocking`, which is
-       * indirectly user-controlled. See [`unbond`] for more detail.
-       * - Contains a limited number of reads, yet the size of which could be large based on `ledger`.
-       * - Writes are limited to the `origin` account key.
-       * ---------------
-       * Complexity O(S) where S is the number of slashing spans to remove
-       * Update:
-       * - Reads: EraElectionStatus, Ledger, Current Era, Locks, [Origin Account]
-       * - Writes: [Origin Account], Locks, Ledger
-       * Kill:
-       * - Reads: EraElectionStatus, Ledger, Current Era, Bonded, Slashing Spans, [Origin
-       * Account], Locks, BalanceOf stash
-       * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators,
-       * [Origin Account], Locks, BalanceOf stash.
-       * - Writes Each: SpanSlash * S
-       * NOTE: Weight annotation is the kill scenario, we refund otherwise.
-       * # </weight>
-       **/
-      withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
-    };
-    storage: {
-      /**
-       * Accept pending invite.
-       **/
-      acceptDistributionBucketInvitation: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, DistributionBucketFamilyId, DistributionBucketId]>;
-      /**
-       * A storage provider signals that the data object was successfully uploaded to its storage.
-       **/
-      acceptPendingDataObjects: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storageBucketId: StorageBucketId | AnyNumber | Uint8Array, bagId: BagId | { Static: any } | { Dynamic: any } | string | Uint8Array, dataObjects: BTreeSet<DataObjectId>) => SubmittableExtrinsic<ApiType>, [WorkerId, StorageBucketId, BagId, BTreeSet<DataObjectId>]>;
-      /**
-       * Accept the storage bucket invitation. An invitation must match the worker_id parameter.
-       **/
-      acceptStorageBucketInvitation: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storageBucketId: StorageBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, StorageBucketId]>;
-      /**
-       * Cancel pending invite. Must be pending.
-       **/
-      cancelDistributionBucketOperatorInvite: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, operatorWorkerId: WorkerId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
-      /**
-       * Cancel pending storage bucket invite. An invitation must be pending.
-       **/
-      cancelStorageBucketOperatorInvite: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId]>;
-      /**
-       * Create a distribution bucket.
-       **/
-      createDistributionBucket: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, acceptingNewBags: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, bool]>;
-      /**
-       * Create a distribution bucket family.
-       **/
-      createDistributionBucketFamily: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      /**
-       * Create storage bucket.
-       **/
-      createStorageBucket: AugmentedSubmittable<(inviteWorker: Option<WorkerId> | null | object | string | Uint8Array, acceptingNewBags: bool | boolean | Uint8Array, sizeLimit: u64 | AnyNumber | Uint8Array, objectsLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<WorkerId>, bool, u64, u64]>;
-      /**
-       * Delete distribution bucket. Must be empty.
-       **/
-      deleteDistributionBucket: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId]>;
-      /**
-       * Deletes a distribution bucket family.
-       **/
-      deleteDistributionBucketFamily: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId]>;
-      /**
-       * Delete storage bucket. Must be empty. Storage operator must be missing.
-       **/
-      deleteStorageBucket: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId]>;
-      /**
-       * Invite an operator. Must be missing.
-       **/
-      inviteDistributionBucketOperator: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, operatorWorkerId: WorkerId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
-      /**
-       * Invite storage bucket operator. Must be missing.
-       **/
-      inviteStorageBucketOperator: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array, operatorId: WorkerId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId, WorkerId]>;
-      /**
-       * Removes distribution bucket operator.
-       **/
-      removeDistributionBucketOperator: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, operatorWorkerId: WorkerId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
-      /**
-       * Removes storage bucket operator.
-       **/
-      removeStorageBucketOperator: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId]>;
-      /**
-       * Set distribution bucket family metadata.
-       **/
-      setDistributionBucketFamilyMetadata: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, Bytes]>;
-      /**
-       * Set distribution operator metadata for the distribution bucket.
-       **/
-      setDistributionOperatorMetadata: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, DistributionBucketFamilyId, DistributionBucketId, Bytes]>;
-      /**
-       * Sets storage bucket voucher limits.
-       **/
-      setStorageBucketVoucherLimits: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array, newObjectsSizeLimit: u64 | AnyNumber | Uint8Array, newObjectsNumberLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId, u64, u64]>;
-      /**
-       * Sets storage operator metadata (eg.: storage node URL).
-       **/
-      setStorageOperatorMetadata: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storageBucketId: StorageBucketId | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, StorageBucketId, Bytes]>;
-      /**
-       * Create a dynamic bag. Development mode.
-       **/
-      sudoCreateDynamicBag: AugmentedSubmittable<(bagId: DynamicBagId | { Member: any } | { Channel: any } | string | Uint8Array, deletionPrize: Option<DynamicBagDeletionPrize> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [DynamicBagId, Option<DynamicBagDeletionPrize>]>;
-      /**
-       * Upload new data objects. Development mode.
-       **/
-      sudoUploadDataObjects: AugmentedSubmittable<(params: UploadParameters | { bagId?: any; objectCreationList?: any; deletionPrizeSourceAccountId?: any; expectedDataSizeFee?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [UploadParameters]>;
-      /**
-       * Add and remove hashes to the current blacklist.
-       **/
-      updateBlacklist: AugmentedSubmittable<(removeHashes: BTreeSet<Cid>, addHashes: BTreeSet<Cid>) => SubmittableExtrinsic<ApiType>, [BTreeSet<Cid>, BTreeSet<Cid>]>;
-      /**
-       * Updates size-based pricing of new objects uploaded.
-       **/
-      updateDataSizeFee: AugmentedSubmittable<(newDataSizeFee: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Updates 'distributing' flag for the distributing flag.
-       **/
-      updateDistributionBucketMode: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, distributing: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId, bool]>;
-      /**
-       * Updates distribution buckets for a bag.
-       **/
-      updateDistributionBucketsForBag: AugmentedSubmittable<(bagId: BagId | { Static: any } | { Dynamic: any } | string | Uint8Array, familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, addBuckets: BTreeSet<DistributionBucketId>, removeBuckets: BTreeSet<DistributionBucketId>) => SubmittableExtrinsic<ApiType>, [BagId, DistributionBucketFamilyId, BTreeSet<DistributionBucketId>, BTreeSet<DistributionBucketId>]>;
-      /**
-       * Updates "Distribution buckets per bag" number limit.
-       **/
-      updateDistributionBucketsPerBagLimit: AugmentedSubmittable<(newLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
-      /**
-       * Updates a distribution bucket 'accepts new bags' flag.
-       **/
-      updateDistributionBucketStatus: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, acceptingNewBags: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId, bool]>;
-      /**
-       * Update number of distributed buckets used in given dynamic bag creation policy.
-       **/
-      updateFamiliesInDynamicBagCreationPolicy: AugmentedSubmittable<(dynamicBagType: DynamicBagType | 'Member' | 'Channel' | number | Uint8Array, families: BTreeMap<DistributionBucketFamilyId, u32>) => SubmittableExtrinsic<ApiType>, [DynamicBagType, BTreeMap<DistributionBucketFamilyId, u32>]>;
-      /**
-       * Update number of storage buckets used in given dynamic bag creation policy.
-       **/
-      updateNumberOfStorageBucketsInDynamicBagCreationPolicy: AugmentedSubmittable<(dynamicBagType: DynamicBagType | 'Member' | 'Channel' | number | Uint8Array, numberOfStorageBuckets: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DynamicBagType, u64]>;
-      /**
-       * Updates storage buckets for a bag..
-       **/
-      updateStorageBucketsForBag: AugmentedSubmittable<(bagId: BagId | { Static: any } | { Dynamic: any } | string | Uint8Array, addBuckets: BTreeSet<StorageBucketId>, removeBuckets: BTreeSet<StorageBucketId>) => SubmittableExtrinsic<ApiType>, [BagId, BTreeSet<StorageBucketId>, BTreeSet<StorageBucketId>]>;
-      /**
-       * Updates "Storage buckets per bag" number limit.
-       **/
-      updateStorageBucketsPerBagLimit: AugmentedSubmittable<(newLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
-      /**
-       * Update whether new bags are being accepted for storage.
-       **/
-      updateStorageBucketStatus: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array, acceptingNewBags: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId, bool]>;
-      /**
-       * Updates "Storage buckets voucher max limits".
-       **/
-      updateStorageBucketsVoucherMaxLimits: AugmentedSubmittable<(newObjectsSize: u64 | AnyNumber | Uint8Array, newObjectsNumber: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;
-      /**
-       * Updates global uploading flag.
-       **/
-      updateUploadingBlockedStatus: AugmentedSubmittable<(newStatus: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
-    };
-    storageWorkingGroup: {
-      /**
-       * Begin accepting worker applications to an opening that is active.
-       * Require signed leader origin or the root (to accept applications for the leader position).
-       **/
-      acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Add an opening for a worker role.
-       * Require signed leader origin or the root (to add opening for the leader position).
-       **/
-      addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_application_stake_unstaking_period?: any; terminate_role_stake_unstaking_period?: any; exit_role_application_stake_unstaking_period?: any; exit_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Worker' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [ActivateOpeningAt, OpeningPolicyCommitment, Bytes, OpeningType]>;
-      /**
-       * Apply on a worker opening.
-       **/
-      applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, OpeningId, AccountId, Option<BalanceOf>, Option<BalanceOf>, Bytes]>;
-      /**
-       * Begin reviewing, and therefore not accepting new applications.
-       * Require signed leader origin or the root (to begin review applications for the leader position).
-       **/
-      beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
-       * Can be decreased to zero, no actions on zero stake.
-       * Require signed leader origin or the root (to decrease the leader stake).
-       **/
-      decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Fill opening for worker/lead.
-       * Require signed leader origin or the root (to fill opening for the leader position).
-       **/
-      fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId, ApplicationIdSet, Option<RewardPolicy>]>;
-      /**
-       * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
-       * role_account_id to the stake. No limits on the stake.
-       **/
-      increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Leave the role by the active worker.
-       **/
-      leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Sets the capacity to enable working group budget. Requires root origin.
-       **/
-      setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
-       * If slashing balance greater than the existing stake - stake is slashed to zero.
-       * Require signed leader origin or the root (to slash the leader stake).
-       **/
-      slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Terminate the worker application. Can be done by the lead only.
-       **/
-      terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-      /**
-       * Terminate the active worker by the lead.
-       * Require signed leader origin or the root (to terminate the leader role).
-       **/
-      terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes, bool]>;
-      /**
-       * Update the reward account associated with a set reward relationship for the active worker.
-       **/
-      updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the reward amount associated with a set reward relationship for the active worker.
-       * Require signed leader origin or the root (to update leader reward amount).
-       **/
-      updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOfMint]>;
-      /**
-       * Update the associated role account of the active worker/lead.
-       **/
-      updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the associated role storage.
-       **/
-      updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Withdraw the worker application. Can be done by the worker itself only.
-       **/
-      withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-    };
-    sudo: {
-      /**
-       * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key.
-       * 
-       * The dispatch origin for this call must be _Signed_.
-       * 
-       * # <weight>
-       * - O(1).
-       * - Limited storage reads.
-       * - One DB change.
-       * # </weight>
-       **/
-      setKey: AugmentedSubmittable<(updated: LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource]>;
-      /**
-       * Authenticates the sudo key and dispatches a function call with `Root` origin.
-       * 
-       * The dispatch origin for this call must be _Signed_.
-       * 
-       * # <weight>
-       * - O(1).
-       * - Limited storage reads.
-       * - One DB write (event).
-       * - Weight of derivative `call` execution + 10,000.
-       * # </weight>
-       **/
-      sudo: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
-      /**
-       * Authenticates the sudo key and dispatches a function call with `Signed` origin from
-       * a given account.
-       * 
-       * The dispatch origin for this call must be _Signed_.
-       * 
-       * # <weight>
-       * - O(1).
-       * - Limited storage reads.
-       * - One DB write (event).
-       * - Weight of derivative `call` execution + 10,000.
-       * # </weight>
-       **/
-      sudoAs: AugmentedSubmittable<(who: LookupSource | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Call]>;
-      /**
-       * Authenticates the sudo key and dispatches a function call with `Root` origin.
-       * This function does not check the weight of the call, and instead allows the
-       * Sudo user to specify the weight of the call.
-       * 
-       * The dispatch origin for this call must be _Signed_.
-       * 
-       * # <weight>
-       * - O(1).
-       * - The weight of this call is defined by the caller.
-       * # </weight>
-       **/
-      sudoUncheckedWeight: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array, weight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Weight]>;
-    };
-    system: {
-      /**
-       * A dispatch that will fill the block weight up to the given ratio.
-       **/
-      fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
-      /**
-       * Kill all storage items with a key that starts with the given prefix.
-       * 
-       * **NOTE:** We rely on the Root origin to provide us the number of subkeys under
-       * the prefix we are removing to accurately calculate the weight of this function.
-       * 
-       * # <weight>
-       * - `O(P)` where `P` amount of keys with prefix `prefix`
-       * - `P` storage deletions.
-       * - Base Weight: 0.834 * P µs
-       * - Writes: Number of subkeys + 1
-       * # </weight>
-       **/
-      killPrefix: AugmentedSubmittable<(prefix: Key | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Key, u32]>;
-      /**
-       * Kill some items from storage.
-       * 
-       * # <weight>
-       * - `O(IK)` where `I` length of `keys` and `K` length of one key
-       * - `I` storage deletions.
-       * - Base Weight: .378 * i µs
-       * - Writes: Number of items
-       * # </weight>
-       **/
-      killStorage: AugmentedSubmittable<(keys: Vec<Key> | (Key | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Key>]>;
-      /**
-       * Make some on-chain remark.
-       * 
-       * # <weight>
-       * - `O(1)`
-       * - Base Weight: 0.665 µs, independent of remark length.
-       * - No DB operations.
-       * # </weight>
-       **/
-      remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
-      /**
-       * Set the new changes trie configuration.
-       * 
-       * # <weight>
-       * - `O(1)`
-       * - 1 storage write or delete (codec `O(1)`).
-       * - 1 call to `deposit_log`: Uses `append` API, so O(1)
-       * - Base Weight: 7.218 µs
-       * - DB Weight:
-       * - Writes: Changes Trie, System Digest
-       * # </weight>
-       **/
-      setChangesTrieConfig: AugmentedSubmittable<(changesTrieConfig: Option<ChangesTrieConfiguration> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<ChangesTrieConfiguration>]>;
-      /**
-       * Set the new runtime code.
-       * 
-       * # <weight>
-       * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
-       * - 1 storage write (codec `O(C)`).
-       * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is expensive).
-       * - 1 event.
-       * The weight of this function is dependent on the runtime, but generally this is very expensive.
-       * We will treat this as a full block.
-       * # </weight>
-       **/
-      setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
-      /**
-       * Set the new runtime code without doing any checks of the given `code`.
-       * 
-       * # <weight>
-       * - `O(C)` where `C` length of `code`
-       * - 1 storage write (codec `O(C)`).
-       * - 1 event.
-       * The weight of this function is dependent on the runtime. We will treat this as a full block.
-       * # </weight>
-       **/
-      setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
-      /**
-       * Set the number of pages in the WebAssembly environment's heap.
-       * 
-       * # <weight>
-       * - `O(1)`
-       * - 1 storage write.
-       * - Base Weight: 1.405 µs
-       * - 1 write to HEAP_PAGES
-       * # </weight>
-       **/
-      setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
-      /**
-       * Set some items of storage.
-       * 
-       * # <weight>
-       * - `O(I)` where `I` length of `items`
-       * - `I` storage writes (`O(1)`).
-       * - Base Weight: 0.568 * i µs
-       * - Writes: Number of items
-       * # </weight>
-       **/
-      setStorage: AugmentedSubmittable<(items: Vec<KeyValue> | (KeyValue)[]) => SubmittableExtrinsic<ApiType>, [Vec<KeyValue>]>;
-      /**
-       * Kill the sending account, assuming there are no references outstanding and the composite
-       * data is equal to its default value.
-       * 
-       * # <weight>
-       * - `O(1)`
-       * - 1 storage read and deletion.
-       * --------------------
-       * Base Weight: 8.626 µs
-       * No DB Read or Write operations because caller is already in overlay
-       * # </weight>
-       **/
-      suicide: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-    };
-    timestamp: {
-      /**
-       * Set the current time.
-       * 
-       * This call should be invoked exactly once per block. It will panic at the finalization
-       * phase, if this call hasn't been invoked by that time.
-       * 
-       * The timestamp should be greater than the previous one by the amount specified by
-       * `MinimumPeriod`.
-       * 
-       * The dispatch origin for this call must be `Inherent`.
-       * 
-       * # <weight>
-       * - `O(T)` where `T` complexity of `on_timestamp_set`
-       * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in `on_finalize`)
-       * - 1 event handler `on_timestamp_set` `O(T)`.
-       * # </weight>
-       **/
-      set: AugmentedSubmittable<(now: Compact<Moment> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<Moment>]>;
-    };
-    utility: {
-      /**
-       * Send a call through an indexed pseudonym of the sender.
-       * 
-       * Filter from origin are passed along. The call will be dispatched with an origin which
-       * use the same filter as the origin of this call.
-       * 
-       * NOTE: If you need to ensure that any account-based filtering is not honored (i.e.
-       * because you expect `proxy` to have been used prior in the call stack and you do not want
-       * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`
-       * in the Multisig pallet instead.
-       * 
-       * NOTE: Prior to version *12, this was called `as_limited_sub`.
-       * 
-       * The dispatch origin for this call must be _Signed_.
-       **/
-      asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
-      /**
-       * Send a batch of dispatch calls.
-       * 
-       * May be called from any origin.
-       * 
-       * - `calls`: The calls to be dispatched from the same origin.
-       * 
-       * If origin is root then call are dispatch without checking origin filter. (This includes
-       * bypassing `frame_system::Trait::BaseCallFilter`).
-       * 
-       * # <weight>
-       * - Base weight: 14.39 + .987 * c µs
-       * - Plus the sum of the weights of the `calls`.
-       * - Plus one additional event. (repeat read/write)
-       * # </weight>
-       * 
-       * This will return `Ok` in all circumstances. To determine the success of the batch, an
-       * event is deposited. If a call failed and the batch was interrupted, then the
-       * `BatchInterrupted` event is deposited, along with the number of successful calls made
-       * and the error of the failed call. If all were successful, then the `BatchCompleted`
-       * event is deposited.
-       **/
-      batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
-    };
-  }
-
-  export interface SubmittableExtrinsics<ApiType extends ApiTypes> extends AugmentedSubmittables<ApiType> {
-    (extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic<ApiType>;
-  }
-}

+ 0 - 10
types/augment-codec/augment-api.ts

@@ -1,10 +0,0 @@
-// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
-/* eslint-disable */
-
-import '@polkadot/api/augment/rpc';
-import './augment-api-consts';
-import './augment-api-errors';
-import './augment-api-events';
-import './augment-api-query';
-import './augment-api-tx';
-import './augment-api-rpc';

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 4
types/augment-codec/augment-types.ts


+ 0 - 284
types/augment/augment-api-consts.ts

@@ -1,284 +0,0 @@
-// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
-/* eslint-disable */
-
-import type { Vec, u32, u64 } from '@polkadot/types';
-import type { MaxNumber, StorageBucketsPerBagValueConstraint } 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> {
-    babe: {
-      /**
-       * The number of **slots** that an epoch takes. We couple sessions to
-       * epochs, i.e. we start a new session once the new epoch begins.
-       **/
-      epochDuration: u64 & AugmentedConst<ApiType>;
-      /**
-       * The expected average block time at which BABE should be creating
-       * blocks. Since BABE is probabilistic it is not trivial to figure out
-       * what the expected average block time should be based on the slot
-       * duration and the security parameter `c` (where `1 - c` represents
-       * the probability of a slot being empty).
-       **/
-      expectedBlockTime: Moment & AugmentedConst<ApiType>;
-    };
-    balances: {
-      /**
-       * The minimum amount required to keep an account open.
-       **/
-      existentialDeposit: Balance & AugmentedConst<ApiType>;
-    };
-    content: {
-      /**
-       * Exports const -  max number of curators per group
-       **/
-      maxNumberOfCuratorsPerGroup: MaxNumber & AugmentedConst<ApiType>;
-    };
-    contentWorkingGroup: {
-      /**
-       * Exports const -  max simultaneous active worker number.
-       **/
-      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
-    };
-    distributionWorkingGroup: {
-      /**
-       * Exports const -  max simultaneous active worker number.
-       **/
-      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
-    };
-    finalityTracker: {
-      /**
-       * The delay after which point things become suspicious. Default is 1000.
-       **/
-      reportLatency: BlockNumber & AugmentedConst<ApiType>;
-      /**
-       * The number of recent samples to keep from this chain. Default is 101.
-       **/
-      windowSize: BlockNumber & AugmentedConst<ApiType>;
-    };
-    gatewayWorkingGroup: {
-      /**
-       * Exports const -  max simultaneous active worker number.
-       **/
-      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
-    };
-    members: {
-      screenedMemberMaxInitialBalance: BalanceOf & AugmentedConst<ApiType>;
-    };
-    operationsWorkingGroupAlpha: {
-      /**
-       * Exports const -  max simultaneous active worker number.
-       **/
-      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
-    };
-    operationsWorkingGroupBeta: {
-      /**
-       * Exports const -  max simultaneous active worker number.
-       **/
-      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
-    };
-    operationsWorkingGroupGamma: {
-      /**
-       * Exports const -  max simultaneous active worker number.
-       **/
-      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
-    };
-    proposalsCodex: {
-      /**
-       * Exports max wasm code length of the runtime upgrade proposal const.
-       **/
-      runtimeUpgradeWasmProposalMaxLength: u32 & AugmentedConst<ApiType>;
-      /**
-       * Exports max allowed text proposal length const.
-       **/
-      textProposalMaxLength: u32 & AugmentedConst<ApiType>;
-    };
-    proposalsDiscussion: {
-      /**
-       * Exports post edition number limit const.
-       **/
-      maxPostEditionNumber: u32 & AugmentedConst<ApiType>;
-      /**
-       * Exports max thread by same author in a row number limit const.
-       **/
-      maxThreadInARowNumber: u32 & AugmentedConst<ApiType>;
-      /**
-       * Exports post length limit const.
-       **/
-      postLengthLimit: u32 & AugmentedConst<ApiType>;
-      /**
-       * Exports thread title length limit const.
-       **/
-      threadTitleLengthLimit: u32 & AugmentedConst<ApiType>;
-    };
-    proposalsEngine: {
-      /**
-       * Exports const - the fee is applied when cancel the proposal. A fee would be slashed (burned).
-       **/
-      cancellationFee: BalanceOf & AugmentedConst<ApiType>;
-      /**
-       * Exports const -  max allowed proposal description length.
-       **/
-      descriptionMaxLength: u32 & AugmentedConst<ApiType>;
-      /**
-       * Exports const -  max simultaneous active proposals number.
-       **/
-      maxActiveProposalLimit: u32 & AugmentedConst<ApiType>;
-      /**
-       * Exports const -  the fee is applied when the proposal gets rejected. A fee would be slashed (burned).
-       **/
-      rejectionFee: BalanceOf & AugmentedConst<ApiType>;
-      /**
-       * Exports const -  max allowed proposal title length.
-       **/
-      titleMaxLength: u32 & AugmentedConst<ApiType>;
-    };
-    staking: {
-      /**
-       * Number of eras that staked funds must remain bonded for.
-       **/
-      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.
-       **/
-      maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
-      /**
-       * The threshold of improvement that should be provided for a new solution to be accepted.
-       **/
-      minSolutionScoreBump: Perbill & AugmentedConst<ApiType>;
-      /**
-       * Number of sessions per era.
-       **/
-      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.
-       **/
-      slashDeferDuration: EraIndex & AugmentedConst<ApiType>;
-    };
-    storage: {
-      /**
-       * Exports const - maximum size of the "hash blacklist" collection.
-       **/
-      blacklistSizeLimit: u64 & AugmentedConst<ApiType>;
-      /**
-       * Exports const - a prize for a data object deletion.
-       **/
-      dataObjectDeletionPrize: BalanceOf & AugmentedConst<ApiType>;
-      /**
-       * Exports const - the default dynamic bag creation policy for channels (storage bucket
-       * number).
-       **/
-      defaultChannelDynamicBagNumberOfStorageBuckets: u64 & AugmentedConst<ApiType>;
-      /**
-       * Exports const - the default dynamic bag creation policy for members (storage bucket
-       * number).
-       **/
-      defaultMemberDynamicBagNumberOfStorageBuckets: u64 & AugmentedConst<ApiType>;
-      /**
-       * Exports const - "Distribution buckets per bag" value constraint.
-       **/
-      distributionBucketsPerBagValueConstraint: StorageBucketsPerBagValueConstraint & AugmentedConst<ApiType>;
-      /**
-       * Exports const - max data object size in bytes.
-       **/
-      maxDataObjectSize: u64 & AugmentedConst<ApiType>;
-      /**
-       * Exports const - max allowed distribution bucket family number.
-       **/
-      maxDistributionBucketFamilyNumber: u64 & AugmentedConst<ApiType>;
-      /**
-       * Exports const - max allowed distribution bucket number per family.
-       **/
-      maxDistributionBucketNumberPerFamily: u64 & AugmentedConst<ApiType>;
-      /**
-       * Exports const - max number of pending invitations per distribution bucket.
-       **/
-      maxNumberOfPendingInvitationsPerDistributionBucket: u64 & AugmentedConst<ApiType>;
-      /**
-       * Exports const - "Storage buckets per bag" value constraint.
-       **/
-      storageBucketsPerBagValueConstraint: StorageBucketsPerBagValueConstraint & AugmentedConst<ApiType>;
-    };
-    storageWorkingGroup: {
-      /**
-       * Exports const -  max simultaneous active worker number.
-       **/
-      maxWorkerNumberLimit: u32 & AugmentedConst<ApiType>;
-    };
-    system: {
-      /**
-       * The base weight of executing a block, independent of the transactions in the block.
-       **/
-      blockExecutionWeight: Weight & AugmentedConst<ApiType>;
-      /**
-       * The maximum number of blocks to allow in mortal eras.
-       **/
-      blockHashCount: BlockNumber & AugmentedConst<ApiType>;
-      /**
-       * The weight of runtime database operations the runtime can invoke.
-       **/
-      dbWeight: RuntimeDbWeight & AugmentedConst<ApiType>;
-      /**
-       * The base weight of an Extrinsic in the block, independent of the of extrinsic being executed.
-       **/
-      extrinsicBaseWeight: Weight & AugmentedConst<ApiType>;
-      /**
-       * The maximum length of a block (in bytes).
-       **/
-      maximumBlockLength: u32 & AugmentedConst<ApiType>;
-      /**
-       * The maximum weight of a block.
-       **/
-      maximumBlockWeight: Weight & AugmentedConst<ApiType>;
-    };
-    timestamp: {
-      /**
-       * The minimum period between blocks. Beware that this is different to the *expected* period
-       * that the block production apparatus provides. Your chosen consensus system will generally
-       * work with this to determine a sensible block time. e.g. For Aura, it will be double this
-       * period on default settings.
-       **/
-      minimumPeriod: Moment & AugmentedConst<ApiType>;
-    };
-    transactionPayment: {
-      /**
-       * The fee to be paid for making a transaction; the per-byte portion.
-       **/
-      transactionByteFee: BalanceOf & AugmentedConst<ApiType>;
-      /**
-       * The polynomial that is applied in order to derive fee from weight.
-       **/
-      weightToFee: Vec<WeightToFeeCoefficient> & AugmentedConst<ApiType>;
-    };
-  }
-
-  export interface QueryableConsts<ApiType extends ApiTypes> extends AugmentedConsts<ApiType> {
-  }
-}

+ 0 - 3673
types/augment/augment-api-errors.ts

@@ -1,3673 +0,0 @@
-// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
-/* eslint-disable */
-
-import type { ApiTypes } from '@polkadot/api/types';
-
-declare module '@polkadot/api/types/errors' {
-  export interface AugmentedErrors<ApiType> {
-    authorship: {
-      /**
-       * The uncle is genesis.
-       **/
-      GenesisUncle: AugmentedError<ApiType>;
-      /**
-       * The uncle parent not in the chain.
-       **/
-      InvalidUncleParent: AugmentedError<ApiType>;
-      /**
-       * The uncle isn't recent enough to be included.
-       **/
-      OldUncle: AugmentedError<ApiType>;
-      /**
-       * The uncle is too high in chain.
-       **/
-      TooHighUncle: AugmentedError<ApiType>;
-      /**
-       * Too many uncles.
-       **/
-      TooManyUncles: AugmentedError<ApiType>;
-      /**
-       * The uncle is already included.
-       **/
-      UncleAlreadyIncluded: AugmentedError<ApiType>;
-      /**
-       * Uncles already set in the block.
-       **/
-      UnclesAlreadySet: AugmentedError<ApiType>;
-    };
-    balances: {
-      /**
-       * Beneficiary account must pre-exist
-       **/
-      DeadAccount: AugmentedError<ApiType>;
-      /**
-       * Value too low to create account due to existential deposit
-       **/
-      ExistentialDeposit: AugmentedError<ApiType>;
-      /**
-       * A vesting schedule already exists for this account
-       **/
-      ExistingVestingSchedule: AugmentedError<ApiType>;
-      /**
-       * Balance too low to send value
-       **/
-      InsufficientBalance: AugmentedError<ApiType>;
-      /**
-       * Transfer/payment would kill account
-       **/
-      KeepAlive: AugmentedError<ApiType>;
-      /**
-       * Account liquidity restrictions prevent withdrawal
-       **/
-      LiquidityRestrictions: AugmentedError<ApiType>;
-      /**
-       * Got an overflow after adding
-       **/
-      Overflow: AugmentedError<ApiType>;
-      /**
-       * Vesting balance too high to send value
-       **/
-      VestingBalance: AugmentedError<ApiType>;
-    };
-    content: {
-      /**
-       * This content actor cannot own a channel
-       **/
-      ActorCannotOwnChannel: AugmentedError<ApiType>;
-      /**
-       * Operation cannot be perfomed with this Actor
-       **/
-      ActorNotAuthorized: AugmentedError<ApiType>;
-      /**
-       * Expected root or signed origin
-       **/
-      BadOrigin: AugmentedError<ApiType>;
-      /**
-       * Curators can only censor non-curator group owned channels
-       **/
-      CannotCensoreCuratorGroupOwnedChannels: AugmentedError<ApiType>;
-      /**
-       * A Channel or Video Category does not exist.
-       **/
-      CategoryDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Channel Contains Assets
-       **/
-      ChannelContainsAssets: AugmentedError<ApiType>;
-      /**
-       * Channel Contains Video
-       **/
-      ChannelContainsVideos: AugmentedError<ApiType>;
-      /**
-       * Channel does not exist
-       **/
-      ChannelDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Curator authentication failed
-       **/
-      CuratorAuthFailed: AugmentedError<ApiType>;
-      /**
-       * Given curator group does not exist
-       **/
-      CuratorGroupDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Curator group is not active
-       **/
-      CuratorGroupIsNotActive: AugmentedError<ApiType>;
-      /**
-       * Curator id is not a worker id in content working group
-       **/
-      CuratorIdInvalid: AugmentedError<ApiType>;
-      /**
-       * Curator under provided curator id is already a member of curaror group under given id
-       **/
-      CuratorIsAlreadyAMemberOfGivenCuratorGroup: AugmentedError<ApiType>;
-      /**
-       * Curator under provided curator id is not a member of curaror group under given id
-       **/
-      CuratorIsNotAMemberOfGivenCuratorGroup: AugmentedError<ApiType>;
-      /**
-       * Max number of curators per group limit reached
-       **/
-      CuratorsPerGroupLimitReached: AugmentedError<ApiType>;
-      /**
-       * Feature Not Implemented
-       **/
-      FeatureNotImplemented: AugmentedError<ApiType>;
-      /**
-       * Channel assets feasibility
-       **/
-      InvalidAssetsProvided: AugmentedError<ApiType>;
-      /**
-       * Bag Size specified is not valid
-       **/
-      InvalidBagSizeSpecified: AugmentedError<ApiType>;
-      /**
-       * Lead authentication failed
-       **/
-      LeadAuthFailed: AugmentedError<ApiType>;
-      /**
-       * Member authentication failed
-       **/
-      MemberAuthFailed: AugmentedError<ApiType>;
-      /**
-       * No assets to be removed have been specified
-       **/
-      NoAssetsSpecified: AugmentedError<ApiType>;
-      /**
-       * Video does not exist
-       **/
-      VideoDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Video in season can`t be removed (because order is important)
-       **/
-      VideoInSeason: AugmentedError<ApiType>;
-    };
-    contentWorkingGroup: {
-      /**
-       * Opening does not exist.
-       **/
-      AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting to begin.
-       **/
-      AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Opening does not activate in the future.
-       **/
-      AddWorkerOpeningActivatesInThePast: AugmentedError<ApiType>;
-      /**
-       * Add worker opening application stake cannot be zero.
-       **/
-      AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Application stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * New application was crowded out.
-       **/
-      AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      AddWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening is not in accepting applications stage.
-       **/
-      AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError<ApiType>;
-      /**
-       * Add worker opening role stake cannot be zero.
-       **/
-      AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Role stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * Stake amount too low.
-       **/
-      AddWorkerOpeningStakeAmountTooLow: AugmentedError<ApiType>;
-      /**
-       * Stake missing when required.
-       **/
-      AddWorkerOpeningStakeMissingWhenRequired: AugmentedError<ApiType>;
-      /**
-       * Stake provided when redundant.
-       **/
-      AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError<ApiType>;
-      /**
-       * Application rationing has zero max active applicants.
-       **/
-      AddWorkerOpeningZeroMaxApplicantCount: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_rationing_policy):
-       * max_active_applicants should be non-zero.
-       **/
-      ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer does not match controller account.
-       **/
-      ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting.
-       **/
-      BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Cannot find mint in the minting module.
-       **/
-      CannotFindMint: AugmentedError<ApiType>;
-      /**
-       * There is leader already, cannot hire another one.
-       **/
-      CannotHireLeaderWhenLeaderExists: AugmentedError<ApiType>;
-      /**
-       * Cannot fill opening with multiple applications.
-       **/
-      CannotHireMultipleLeaders: AugmentedError<ApiType>;
-      /**
-       * Current lead is not set.
-       **/
-      CurrentLeadNotSet: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_application_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Reward policy has invalid next payment block number.
-       **/
-      FillOpeningInvalidNextPaymentBlock: AugmentedError<ApiType>;
-      /**
-       * Working group mint does not exist.
-       **/
-      FillOpeningMintDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Applications not for opening.
-       **/
-      FillWorkerOpeningApplicationForWrongOpening: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      FullWorkerOpeningApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application not in active stage.
-       **/
-      FullWorkerOpeningApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * OpeningDoesNotExist.
-       **/
-      FullWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening not in review period stage.
-       **/
-      FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to apply.
-       **/
-      InsufficientBalanceToApply: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to cover stake.
-       **/
-      InsufficientBalanceToCoverStake: AugmentedError<ApiType>;
-      /**
-       * Not a lead account.
-       **/
-      IsNotLeadAccount: AugmentedError<ApiType>;
-      /**
-       * Working group size limit exceeded.
-       **/
-      MaxActiveWorkerNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Member already has an active application on the opening.
-       **/
-      MemberHasActiveApplicationOnOpening: AugmentedError<ApiType>;
-      /**
-       * Member id is invalid.
-       **/
-      MembershipInvalidMemberId: AugmentedError<ApiType>;
-      /**
-       * Unsigned origin.
-       **/
-      MembershipUnsignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Minting error: NextAdjustmentInPast
-       **/
-      MintingErrorNextAdjustmentInPast: AugmentedError<ApiType>;
-      /**
-       * Cannot get the worker stake profile.
-       **/
-      NoWorkerStakeProfile: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      OpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening text too long.
-       **/
-      OpeningTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Opening text too short.
-       **/
-      OpeningTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Origin must be controller or root account of member.
-       **/
-      OriginIsNeitherMemberControllerOrRoot: AugmentedError<ApiType>;
-      /**
-       * Origin is not applicant.
-       **/
-      OriginIsNotApplicant: AugmentedError<ApiType>;
-      /**
-       * Next payment is not in the future.
-       **/
-      RecurringRewardsNextPaymentNotInFuture: AugmentedError<ApiType>;
-      /**
-       * Recipient not found.
-       **/
-      RecurringRewardsRecipientNotFound: AugmentedError<ApiType>;
-      /**
-       * Reward relationship not found.
-       **/
-      RecurringRewardsRewardRelationshipNotFound: AugmentedError<ApiType>;
-      /**
-       * Recipient reward source not found.
-       **/
-      RecurringRewardsRewardSourceNotFound: AugmentedError<ApiType>;
-      /**
-       * Relationship must exist.
-       **/
-      RelationshipMustExist: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics.
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Require signed origin in extrinsics.
-       **/
-      RequireSignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer is not worker role account.
-       **/
-      SignerIsNotWorkerRoleAccount: AugmentedError<ApiType>;
-      /**
-       * Provided stake balance cannot be zero.
-       **/
-      StakeBalanceCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Already unstaking.
-       **/
-      StakingErrorAlreadyUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot change stake by zero.
-       **/
-      StakingErrorCannotChangeStakeByZero: AugmentedError<ApiType>;
-      /**
-       * Cannot decrease stake while slashes ongoing.
-       **/
-      StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Cannot increase stake while unstaking.
-       **/
-      StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot unstake while slashes ongoing.
-       **/
-      StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance in source account.
-       **/
-      StakingErrorInsufficientBalanceInSourceAccount: AugmentedError<ApiType>;
-      /**
-       * Insufficient stake to decrease.
-       **/
-      StakingErrorInsufficientStake: AugmentedError<ApiType>;
-      /**
-       * Not staked.
-       **/
-      StakingErrorNotStaked: AugmentedError<ApiType>;
-      /**
-       * Slash amount should be greater than zero.
-       **/
-      StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Stake not found.
-       **/
-      StakingErrorStakeNotFound: AugmentedError<ApiType>;
-      /**
-       * Unstaking period should be greater than zero.
-       **/
-      StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Successful worker application does not exist.
-       **/
-      SuccessfulWorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_application_stake_unstaking_period should be non-zero.
-       **/
-      TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_role_stake_unstaking_period should be non-zero.
-       **/
-      TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application is not active.
-       **/
-      WithdrawWorkerApplicationApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * Opening not accepting applications.
-       **/
-      WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError<ApiType>;
-      /**
-       * Redundant unstaking period provided
-       **/
-      WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError<ApiType>;
-      /**
-       * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE
-       **/
-      WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker application does not exist.
-       **/
-      WorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker application text too long.
-       **/
-      WorkerApplicationTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker application text too short.
-       **/
-      WorkerApplicationTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker does not exist.
-       **/
-      WorkerDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too long.
-       **/
-      WorkerExitRationaleTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too short.
-       **/
-      WorkerExitRationaleTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker has no recurring reward.
-       **/
-      WorkerHasNoReward: AugmentedError<ApiType>;
-      /**
-       * Worker storage text is too long.
-       **/
-      WorkerStorageValueTooLong: AugmentedError<ApiType>;
-    };
-    distributionWorkingGroup: {
-      /**
-       * Opening does not exist.
-       **/
-      AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting to begin.
-       **/
-      AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Opening does not activate in the future.
-       **/
-      AddWorkerOpeningActivatesInThePast: AugmentedError<ApiType>;
-      /**
-       * Add worker opening application stake cannot be zero.
-       **/
-      AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Application stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * New application was crowded out.
-       **/
-      AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      AddWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening is not in accepting applications stage.
-       **/
-      AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError<ApiType>;
-      /**
-       * Add worker opening role stake cannot be zero.
-       **/
-      AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Role stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * Stake amount too low.
-       **/
-      AddWorkerOpeningStakeAmountTooLow: AugmentedError<ApiType>;
-      /**
-       * Stake missing when required.
-       **/
-      AddWorkerOpeningStakeMissingWhenRequired: AugmentedError<ApiType>;
-      /**
-       * Stake provided when redundant.
-       **/
-      AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError<ApiType>;
-      /**
-       * Application rationing has zero max active applicants.
-       **/
-      AddWorkerOpeningZeroMaxApplicantCount: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_rationing_policy):
-       * max_active_applicants should be non-zero.
-       **/
-      ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer does not match controller account.
-       **/
-      ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting.
-       **/
-      BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Cannot find mint in the minting module.
-       **/
-      CannotFindMint: AugmentedError<ApiType>;
-      /**
-       * There is leader already, cannot hire another one.
-       **/
-      CannotHireLeaderWhenLeaderExists: AugmentedError<ApiType>;
-      /**
-       * Cannot fill opening with multiple applications.
-       **/
-      CannotHireMultipleLeaders: AugmentedError<ApiType>;
-      /**
-       * Current lead is not set.
-       **/
-      CurrentLeadNotSet: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_application_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Reward policy has invalid next payment block number.
-       **/
-      FillOpeningInvalidNextPaymentBlock: AugmentedError<ApiType>;
-      /**
-       * Working group mint does not exist.
-       **/
-      FillOpeningMintDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Applications not for opening.
-       **/
-      FillWorkerOpeningApplicationForWrongOpening: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      FullWorkerOpeningApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application not in active stage.
-       **/
-      FullWorkerOpeningApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * OpeningDoesNotExist.
-       **/
-      FullWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening not in review period stage.
-       **/
-      FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to apply.
-       **/
-      InsufficientBalanceToApply: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to cover stake.
-       **/
-      InsufficientBalanceToCoverStake: AugmentedError<ApiType>;
-      /**
-       * Not a lead account.
-       **/
-      IsNotLeadAccount: AugmentedError<ApiType>;
-      /**
-       * Working group size limit exceeded.
-       **/
-      MaxActiveWorkerNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Member already has an active application on the opening.
-       **/
-      MemberHasActiveApplicationOnOpening: AugmentedError<ApiType>;
-      /**
-       * Member id is invalid.
-       **/
-      MembershipInvalidMemberId: AugmentedError<ApiType>;
-      /**
-       * Unsigned origin.
-       **/
-      MembershipUnsignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Minting error: NextAdjustmentInPast
-       **/
-      MintingErrorNextAdjustmentInPast: AugmentedError<ApiType>;
-      /**
-       * Cannot get the worker stake profile.
-       **/
-      NoWorkerStakeProfile: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      OpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening text too long.
-       **/
-      OpeningTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Opening text too short.
-       **/
-      OpeningTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Origin must be controller or root account of member.
-       **/
-      OriginIsNeitherMemberControllerOrRoot: AugmentedError<ApiType>;
-      /**
-       * Origin is not applicant.
-       **/
-      OriginIsNotApplicant: AugmentedError<ApiType>;
-      /**
-       * Next payment is not in the future.
-       **/
-      RecurringRewardsNextPaymentNotInFuture: AugmentedError<ApiType>;
-      /**
-       * Recipient not found.
-       **/
-      RecurringRewardsRecipientNotFound: AugmentedError<ApiType>;
-      /**
-       * Reward relationship not found.
-       **/
-      RecurringRewardsRewardRelationshipNotFound: AugmentedError<ApiType>;
-      /**
-       * Recipient reward source not found.
-       **/
-      RecurringRewardsRewardSourceNotFound: AugmentedError<ApiType>;
-      /**
-       * Relationship must exist.
-       **/
-      RelationshipMustExist: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics.
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Require signed origin in extrinsics.
-       **/
-      RequireSignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer is not worker role account.
-       **/
-      SignerIsNotWorkerRoleAccount: AugmentedError<ApiType>;
-      /**
-       * Provided stake balance cannot be zero.
-       **/
-      StakeBalanceCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Already unstaking.
-       **/
-      StakingErrorAlreadyUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot change stake by zero.
-       **/
-      StakingErrorCannotChangeStakeByZero: AugmentedError<ApiType>;
-      /**
-       * Cannot decrease stake while slashes ongoing.
-       **/
-      StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Cannot increase stake while unstaking.
-       **/
-      StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot unstake while slashes ongoing.
-       **/
-      StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance in source account.
-       **/
-      StakingErrorInsufficientBalanceInSourceAccount: AugmentedError<ApiType>;
-      /**
-       * Insufficient stake to decrease.
-       **/
-      StakingErrorInsufficientStake: AugmentedError<ApiType>;
-      /**
-       * Not staked.
-       **/
-      StakingErrorNotStaked: AugmentedError<ApiType>;
-      /**
-       * Slash amount should be greater than zero.
-       **/
-      StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Stake not found.
-       **/
-      StakingErrorStakeNotFound: AugmentedError<ApiType>;
-      /**
-       * Unstaking period should be greater than zero.
-       **/
-      StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Successful worker application does not exist.
-       **/
-      SuccessfulWorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_application_stake_unstaking_period should be non-zero.
-       **/
-      TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_role_stake_unstaking_period should be non-zero.
-       **/
-      TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application is not active.
-       **/
-      WithdrawWorkerApplicationApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * Opening not accepting applications.
-       **/
-      WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError<ApiType>;
-      /**
-       * Redundant unstaking period provided
-       **/
-      WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError<ApiType>;
-      /**
-       * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE
-       **/
-      WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker application does not exist.
-       **/
-      WorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker application text too long.
-       **/
-      WorkerApplicationTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker application text too short.
-       **/
-      WorkerApplicationTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker does not exist.
-       **/
-      WorkerDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too long.
-       **/
-      WorkerExitRationaleTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too short.
-       **/
-      WorkerExitRationaleTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker has no recurring reward.
-       **/
-      WorkerHasNoReward: AugmentedError<ApiType>;
-      /**
-       * Worker storage text is too long.
-       **/
-      WorkerStorageValueTooLong: AugmentedError<ApiType>;
-    };
-    finalityTracker: {
-      /**
-       * Final hint must be updated only once in the block
-       **/
-      AlreadyUpdated: AugmentedError<ApiType>;
-      /**
-       * Finalized height above block number
-       **/
-      BadHint: AugmentedError<ApiType>;
-    };
-    gatewayWorkingGroup: {
-      /**
-       * Opening does not exist.
-       **/
-      AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting to begin.
-       **/
-      AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Opening does not activate in the future.
-       **/
-      AddWorkerOpeningActivatesInThePast: AugmentedError<ApiType>;
-      /**
-       * Add worker opening application stake cannot be zero.
-       **/
-      AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Application stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * New application was crowded out.
-       **/
-      AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      AddWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening is not in accepting applications stage.
-       **/
-      AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError<ApiType>;
-      /**
-       * Add worker opening role stake cannot be zero.
-       **/
-      AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Role stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * Stake amount too low.
-       **/
-      AddWorkerOpeningStakeAmountTooLow: AugmentedError<ApiType>;
-      /**
-       * Stake missing when required.
-       **/
-      AddWorkerOpeningStakeMissingWhenRequired: AugmentedError<ApiType>;
-      /**
-       * Stake provided when redundant.
-       **/
-      AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError<ApiType>;
-      /**
-       * Application rationing has zero max active applicants.
-       **/
-      AddWorkerOpeningZeroMaxApplicantCount: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_rationing_policy):
-       * max_active_applicants should be non-zero.
-       **/
-      ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer does not match controller account.
-       **/
-      ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting.
-       **/
-      BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Cannot find mint in the minting module.
-       **/
-      CannotFindMint: AugmentedError<ApiType>;
-      /**
-       * There is leader already, cannot hire another one.
-       **/
-      CannotHireLeaderWhenLeaderExists: AugmentedError<ApiType>;
-      /**
-       * Cannot fill opening with multiple applications.
-       **/
-      CannotHireMultipleLeaders: AugmentedError<ApiType>;
-      /**
-       * Current lead is not set.
-       **/
-      CurrentLeadNotSet: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_application_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Reward policy has invalid next payment block number.
-       **/
-      FillOpeningInvalidNextPaymentBlock: AugmentedError<ApiType>;
-      /**
-       * Working group mint does not exist.
-       **/
-      FillOpeningMintDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Applications not for opening.
-       **/
-      FillWorkerOpeningApplicationForWrongOpening: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      FullWorkerOpeningApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application not in active stage.
-       **/
-      FullWorkerOpeningApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * OpeningDoesNotExist.
-       **/
-      FullWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening not in review period stage.
-       **/
-      FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to apply.
-       **/
-      InsufficientBalanceToApply: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to cover stake.
-       **/
-      InsufficientBalanceToCoverStake: AugmentedError<ApiType>;
-      /**
-       * Not a lead account.
-       **/
-      IsNotLeadAccount: AugmentedError<ApiType>;
-      /**
-       * Working group size limit exceeded.
-       **/
-      MaxActiveWorkerNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Member already has an active application on the opening.
-       **/
-      MemberHasActiveApplicationOnOpening: AugmentedError<ApiType>;
-      /**
-       * Member id is invalid.
-       **/
-      MembershipInvalidMemberId: AugmentedError<ApiType>;
-      /**
-       * Unsigned origin.
-       **/
-      MembershipUnsignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Minting error: NextAdjustmentInPast
-       **/
-      MintingErrorNextAdjustmentInPast: AugmentedError<ApiType>;
-      /**
-       * Cannot get the worker stake profile.
-       **/
-      NoWorkerStakeProfile: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      OpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening text too long.
-       **/
-      OpeningTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Opening text too short.
-       **/
-      OpeningTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Origin must be controller or root account of member.
-       **/
-      OriginIsNeitherMemberControllerOrRoot: AugmentedError<ApiType>;
-      /**
-       * Origin is not applicant.
-       **/
-      OriginIsNotApplicant: AugmentedError<ApiType>;
-      /**
-       * Next payment is not in the future.
-       **/
-      RecurringRewardsNextPaymentNotInFuture: AugmentedError<ApiType>;
-      /**
-       * Recipient not found.
-       **/
-      RecurringRewardsRecipientNotFound: AugmentedError<ApiType>;
-      /**
-       * Reward relationship not found.
-       **/
-      RecurringRewardsRewardRelationshipNotFound: AugmentedError<ApiType>;
-      /**
-       * Recipient reward source not found.
-       **/
-      RecurringRewardsRewardSourceNotFound: AugmentedError<ApiType>;
-      /**
-       * Relationship must exist.
-       **/
-      RelationshipMustExist: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics.
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Require signed origin in extrinsics.
-       **/
-      RequireSignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer is not worker role account.
-       **/
-      SignerIsNotWorkerRoleAccount: AugmentedError<ApiType>;
-      /**
-       * Provided stake balance cannot be zero.
-       **/
-      StakeBalanceCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Already unstaking.
-       **/
-      StakingErrorAlreadyUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot change stake by zero.
-       **/
-      StakingErrorCannotChangeStakeByZero: AugmentedError<ApiType>;
-      /**
-       * Cannot decrease stake while slashes ongoing.
-       **/
-      StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Cannot increase stake while unstaking.
-       **/
-      StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot unstake while slashes ongoing.
-       **/
-      StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance in source account.
-       **/
-      StakingErrorInsufficientBalanceInSourceAccount: AugmentedError<ApiType>;
-      /**
-       * Insufficient stake to decrease.
-       **/
-      StakingErrorInsufficientStake: AugmentedError<ApiType>;
-      /**
-       * Not staked.
-       **/
-      StakingErrorNotStaked: AugmentedError<ApiType>;
-      /**
-       * Slash amount should be greater than zero.
-       **/
-      StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Stake not found.
-       **/
-      StakingErrorStakeNotFound: AugmentedError<ApiType>;
-      /**
-       * Unstaking period should be greater than zero.
-       **/
-      StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Successful worker application does not exist.
-       **/
-      SuccessfulWorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_application_stake_unstaking_period should be non-zero.
-       **/
-      TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_role_stake_unstaking_period should be non-zero.
-       **/
-      TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application is not active.
-       **/
-      WithdrawWorkerApplicationApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * Opening not accepting applications.
-       **/
-      WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError<ApiType>;
-      /**
-       * Redundant unstaking period provided
-       **/
-      WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError<ApiType>;
-      /**
-       * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE
-       **/
-      WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker application does not exist.
-       **/
-      WorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker application text too long.
-       **/
-      WorkerApplicationTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker application text too short.
-       **/
-      WorkerApplicationTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker does not exist.
-       **/
-      WorkerDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too long.
-       **/
-      WorkerExitRationaleTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too short.
-       **/
-      WorkerExitRationaleTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker has no recurring reward.
-       **/
-      WorkerHasNoReward: AugmentedError<ApiType>;
-      /**
-       * Worker storage text is too long.
-       **/
-      WorkerStorageValueTooLong: AugmentedError<ApiType>;
-    };
-    grandpa: {
-      /**
-       * Attempt to signal GRANDPA change with one already pending.
-       **/
-      ChangePending: AugmentedError<ApiType>;
-      /**
-       * A given equivocation report is valid but already previously reported.
-       **/
-      DuplicateOffenceReport: AugmentedError<ApiType>;
-      /**
-       * An equivocation proof provided as part of an equivocation report is invalid.
-       **/
-      InvalidEquivocationProof: AugmentedError<ApiType>;
-      /**
-       * A key ownership proof provided as part of an equivocation report is invalid.
-       **/
-      InvalidKeyOwnershipProof: AugmentedError<ApiType>;
-      /**
-       * Attempt to signal GRANDPA pause when the authority set isn't live
-       * (either paused or already pending pause).
-       **/
-      PauseFailed: AugmentedError<ApiType>;
-      /**
-       * Attempt to signal GRANDPA resume when the authority set isn't paused
-       * (either live or already pending resume).
-       **/
-      ResumeFailed: AugmentedError<ApiType>;
-      /**
-       * Cannot signal forced change so soon after last.
-       **/
-      TooSoon: AugmentedError<ApiType>;
-    };
-    imOnline: {
-      /**
-       * Duplicated heartbeat.
-       **/
-      DuplicatedHeartbeat: AugmentedError<ApiType>;
-      /**
-       * Non existent public key.
-       **/
-      InvalidKey: AugmentedError<ApiType>;
-    };
-    members: {
-      /**
-       * Avatar url is too long.
-       **/
-      AvatarUriTooLong: AugmentedError<ApiType>;
-      /**
-       * Controller account required.
-       **/
-      ControllerAccountRequired: AugmentedError<ApiType>;
-      /**
-       * Handle already registered.
-       **/
-      HandleAlreadyRegistered: AugmentedError<ApiType>;
-      /**
-       * Handle must be provided during registration.
-       **/
-      HandleMustBeProvidedDuringRegistration: AugmentedError<ApiType>;
-      /**
-       * Handle too long.
-       **/
-      HandleTooLong: AugmentedError<ApiType>;
-      /**
-       * Handle too short.
-       **/
-      HandleTooShort: AugmentedError<ApiType>;
-      /**
-       * Screening authority attempting to endow more that maximum allowed.
-       **/
-      InitialBalanceExceedsMaxInitialBalance: AugmentedError<ApiType>;
-      /**
-       * Member profile not found (invalid member id).
-       **/
-      MemberProfileNotFound: AugmentedError<ApiType>;
-      /**
-       * New memberships not allowed.
-       **/
-      NewMembershipsNotAllowed: AugmentedError<ApiType>;
-      /**
-       * A screening authority is not defined.
-       **/
-      NoScreeningAuthorityDefined: AugmentedError<ApiType>;
-      /**
-       * Not enough balance to buy membership.
-       **/
-      NotEnoughBalanceToBuyMembership: AugmentedError<ApiType>;
-      /**
-       * Origin is not the screeing authority.
-       **/
-      NotScreeningAuthority: AugmentedError<ApiType>;
-      /**
-       * Only new accounts can be used for screened members.
-       **/
-      OnlyNewAccountsCanBeUsedForScreenedMembers: AugmentedError<ApiType>;
-      /**
-       * Paid term id not active.
-       **/
-      PaidTermIdNotActive: AugmentedError<ApiType>;
-      /**
-       * Paid term id not found.
-       **/
-      PaidTermIdNotFound: AugmentedError<ApiType>;
-      /**
-       * Root account required.
-       **/
-      RootAccountRequired: AugmentedError<ApiType>;
-      /**
-       * Invalid origin.
-       **/
-      UnsignedOrigin: AugmentedError<ApiType>;
-    };
-    operationsWorkingGroupAlpha: {
-      /**
-       * Opening does not exist.
-       **/
-      AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting to begin.
-       **/
-      AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Opening does not activate in the future.
-       **/
-      AddWorkerOpeningActivatesInThePast: AugmentedError<ApiType>;
-      /**
-       * Add worker opening application stake cannot be zero.
-       **/
-      AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Application stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * New application was crowded out.
-       **/
-      AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      AddWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening is not in accepting applications stage.
-       **/
-      AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError<ApiType>;
-      /**
-       * Add worker opening role stake cannot be zero.
-       **/
-      AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Role stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * Stake amount too low.
-       **/
-      AddWorkerOpeningStakeAmountTooLow: AugmentedError<ApiType>;
-      /**
-       * Stake missing when required.
-       **/
-      AddWorkerOpeningStakeMissingWhenRequired: AugmentedError<ApiType>;
-      /**
-       * Stake provided when redundant.
-       **/
-      AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError<ApiType>;
-      /**
-       * Application rationing has zero max active applicants.
-       **/
-      AddWorkerOpeningZeroMaxApplicantCount: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_rationing_policy):
-       * max_active_applicants should be non-zero.
-       **/
-      ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer does not match controller account.
-       **/
-      ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting.
-       **/
-      BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Cannot find mint in the minting module.
-       **/
-      CannotFindMint: AugmentedError<ApiType>;
-      /**
-       * There is leader already, cannot hire another one.
-       **/
-      CannotHireLeaderWhenLeaderExists: AugmentedError<ApiType>;
-      /**
-       * Cannot fill opening with multiple applications.
-       **/
-      CannotHireMultipleLeaders: AugmentedError<ApiType>;
-      /**
-       * Current lead is not set.
-       **/
-      CurrentLeadNotSet: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_application_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Reward policy has invalid next payment block number.
-       **/
-      FillOpeningInvalidNextPaymentBlock: AugmentedError<ApiType>;
-      /**
-       * Working group mint does not exist.
-       **/
-      FillOpeningMintDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Applications not for opening.
-       **/
-      FillWorkerOpeningApplicationForWrongOpening: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      FullWorkerOpeningApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application not in active stage.
-       **/
-      FullWorkerOpeningApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * OpeningDoesNotExist.
-       **/
-      FullWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening not in review period stage.
-       **/
-      FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to apply.
-       **/
-      InsufficientBalanceToApply: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to cover stake.
-       **/
-      InsufficientBalanceToCoverStake: AugmentedError<ApiType>;
-      /**
-       * Not a lead account.
-       **/
-      IsNotLeadAccount: AugmentedError<ApiType>;
-      /**
-       * Working group size limit exceeded.
-       **/
-      MaxActiveWorkerNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Member already has an active application on the opening.
-       **/
-      MemberHasActiveApplicationOnOpening: AugmentedError<ApiType>;
-      /**
-       * Member id is invalid.
-       **/
-      MembershipInvalidMemberId: AugmentedError<ApiType>;
-      /**
-       * Unsigned origin.
-       **/
-      MembershipUnsignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Minting error: NextAdjustmentInPast
-       **/
-      MintingErrorNextAdjustmentInPast: AugmentedError<ApiType>;
-      /**
-       * Cannot get the worker stake profile.
-       **/
-      NoWorkerStakeProfile: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      OpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening text too long.
-       **/
-      OpeningTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Opening text too short.
-       **/
-      OpeningTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Origin must be controller or root account of member.
-       **/
-      OriginIsNeitherMemberControllerOrRoot: AugmentedError<ApiType>;
-      /**
-       * Origin is not applicant.
-       **/
-      OriginIsNotApplicant: AugmentedError<ApiType>;
-      /**
-       * Next payment is not in the future.
-       **/
-      RecurringRewardsNextPaymentNotInFuture: AugmentedError<ApiType>;
-      /**
-       * Recipient not found.
-       **/
-      RecurringRewardsRecipientNotFound: AugmentedError<ApiType>;
-      /**
-       * Reward relationship not found.
-       **/
-      RecurringRewardsRewardRelationshipNotFound: AugmentedError<ApiType>;
-      /**
-       * Recipient reward source not found.
-       **/
-      RecurringRewardsRewardSourceNotFound: AugmentedError<ApiType>;
-      /**
-       * Relationship must exist.
-       **/
-      RelationshipMustExist: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics.
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Require signed origin in extrinsics.
-       **/
-      RequireSignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer is not worker role account.
-       **/
-      SignerIsNotWorkerRoleAccount: AugmentedError<ApiType>;
-      /**
-       * Provided stake balance cannot be zero.
-       **/
-      StakeBalanceCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Already unstaking.
-       **/
-      StakingErrorAlreadyUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot change stake by zero.
-       **/
-      StakingErrorCannotChangeStakeByZero: AugmentedError<ApiType>;
-      /**
-       * Cannot decrease stake while slashes ongoing.
-       **/
-      StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Cannot increase stake while unstaking.
-       **/
-      StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot unstake while slashes ongoing.
-       **/
-      StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance in source account.
-       **/
-      StakingErrorInsufficientBalanceInSourceAccount: AugmentedError<ApiType>;
-      /**
-       * Insufficient stake to decrease.
-       **/
-      StakingErrorInsufficientStake: AugmentedError<ApiType>;
-      /**
-       * Not staked.
-       **/
-      StakingErrorNotStaked: AugmentedError<ApiType>;
-      /**
-       * Slash amount should be greater than zero.
-       **/
-      StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Stake not found.
-       **/
-      StakingErrorStakeNotFound: AugmentedError<ApiType>;
-      /**
-       * Unstaking period should be greater than zero.
-       **/
-      StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Successful worker application does not exist.
-       **/
-      SuccessfulWorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_application_stake_unstaking_period should be non-zero.
-       **/
-      TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_role_stake_unstaking_period should be non-zero.
-       **/
-      TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application is not active.
-       **/
-      WithdrawWorkerApplicationApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * Opening not accepting applications.
-       **/
-      WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError<ApiType>;
-      /**
-       * Redundant unstaking period provided
-       **/
-      WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError<ApiType>;
-      /**
-       * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE
-       **/
-      WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker application does not exist.
-       **/
-      WorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker application text too long.
-       **/
-      WorkerApplicationTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker application text too short.
-       **/
-      WorkerApplicationTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker does not exist.
-       **/
-      WorkerDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too long.
-       **/
-      WorkerExitRationaleTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too short.
-       **/
-      WorkerExitRationaleTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker has no recurring reward.
-       **/
-      WorkerHasNoReward: AugmentedError<ApiType>;
-      /**
-       * Worker storage text is too long.
-       **/
-      WorkerStorageValueTooLong: AugmentedError<ApiType>;
-    };
-    operationsWorkingGroupBeta: {
-      /**
-       * Opening does not exist.
-       **/
-      AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting to begin.
-       **/
-      AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Opening does not activate in the future.
-       **/
-      AddWorkerOpeningActivatesInThePast: AugmentedError<ApiType>;
-      /**
-       * Add worker opening application stake cannot be zero.
-       **/
-      AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Application stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * New application was crowded out.
-       **/
-      AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      AddWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening is not in accepting applications stage.
-       **/
-      AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError<ApiType>;
-      /**
-       * Add worker opening role stake cannot be zero.
-       **/
-      AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Role stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * Stake amount too low.
-       **/
-      AddWorkerOpeningStakeAmountTooLow: AugmentedError<ApiType>;
-      /**
-       * Stake missing when required.
-       **/
-      AddWorkerOpeningStakeMissingWhenRequired: AugmentedError<ApiType>;
-      /**
-       * Stake provided when redundant.
-       **/
-      AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError<ApiType>;
-      /**
-       * Application rationing has zero max active applicants.
-       **/
-      AddWorkerOpeningZeroMaxApplicantCount: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_rationing_policy):
-       * max_active_applicants should be non-zero.
-       **/
-      ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer does not match controller account.
-       **/
-      ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting.
-       **/
-      BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Cannot find mint in the minting module.
-       **/
-      CannotFindMint: AugmentedError<ApiType>;
-      /**
-       * There is leader already, cannot hire another one.
-       **/
-      CannotHireLeaderWhenLeaderExists: AugmentedError<ApiType>;
-      /**
-       * Cannot fill opening with multiple applications.
-       **/
-      CannotHireMultipleLeaders: AugmentedError<ApiType>;
-      /**
-       * Current lead is not set.
-       **/
-      CurrentLeadNotSet: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_application_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Reward policy has invalid next payment block number.
-       **/
-      FillOpeningInvalidNextPaymentBlock: AugmentedError<ApiType>;
-      /**
-       * Working group mint does not exist.
-       **/
-      FillOpeningMintDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Applications not for opening.
-       **/
-      FillWorkerOpeningApplicationForWrongOpening: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      FullWorkerOpeningApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application not in active stage.
-       **/
-      FullWorkerOpeningApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * OpeningDoesNotExist.
-       **/
-      FullWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening not in review period stage.
-       **/
-      FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to apply.
-       **/
-      InsufficientBalanceToApply: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to cover stake.
-       **/
-      InsufficientBalanceToCoverStake: AugmentedError<ApiType>;
-      /**
-       * Not a lead account.
-       **/
-      IsNotLeadAccount: AugmentedError<ApiType>;
-      /**
-       * Working group size limit exceeded.
-       **/
-      MaxActiveWorkerNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Member already has an active application on the opening.
-       **/
-      MemberHasActiveApplicationOnOpening: AugmentedError<ApiType>;
-      /**
-       * Member id is invalid.
-       **/
-      MembershipInvalidMemberId: AugmentedError<ApiType>;
-      /**
-       * Unsigned origin.
-       **/
-      MembershipUnsignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Minting error: NextAdjustmentInPast
-       **/
-      MintingErrorNextAdjustmentInPast: AugmentedError<ApiType>;
-      /**
-       * Cannot get the worker stake profile.
-       **/
-      NoWorkerStakeProfile: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      OpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening text too long.
-       **/
-      OpeningTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Opening text too short.
-       **/
-      OpeningTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Origin must be controller or root account of member.
-       **/
-      OriginIsNeitherMemberControllerOrRoot: AugmentedError<ApiType>;
-      /**
-       * Origin is not applicant.
-       **/
-      OriginIsNotApplicant: AugmentedError<ApiType>;
-      /**
-       * Next payment is not in the future.
-       **/
-      RecurringRewardsNextPaymentNotInFuture: AugmentedError<ApiType>;
-      /**
-       * Recipient not found.
-       **/
-      RecurringRewardsRecipientNotFound: AugmentedError<ApiType>;
-      /**
-       * Reward relationship not found.
-       **/
-      RecurringRewardsRewardRelationshipNotFound: AugmentedError<ApiType>;
-      /**
-       * Recipient reward source not found.
-       **/
-      RecurringRewardsRewardSourceNotFound: AugmentedError<ApiType>;
-      /**
-       * Relationship must exist.
-       **/
-      RelationshipMustExist: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics.
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Require signed origin in extrinsics.
-       **/
-      RequireSignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer is not worker role account.
-       **/
-      SignerIsNotWorkerRoleAccount: AugmentedError<ApiType>;
-      /**
-       * Provided stake balance cannot be zero.
-       **/
-      StakeBalanceCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Already unstaking.
-       **/
-      StakingErrorAlreadyUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot change stake by zero.
-       **/
-      StakingErrorCannotChangeStakeByZero: AugmentedError<ApiType>;
-      /**
-       * Cannot decrease stake while slashes ongoing.
-       **/
-      StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Cannot increase stake while unstaking.
-       **/
-      StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot unstake while slashes ongoing.
-       **/
-      StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance in source account.
-       **/
-      StakingErrorInsufficientBalanceInSourceAccount: AugmentedError<ApiType>;
-      /**
-       * Insufficient stake to decrease.
-       **/
-      StakingErrorInsufficientStake: AugmentedError<ApiType>;
-      /**
-       * Not staked.
-       **/
-      StakingErrorNotStaked: AugmentedError<ApiType>;
-      /**
-       * Slash amount should be greater than zero.
-       **/
-      StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Stake not found.
-       **/
-      StakingErrorStakeNotFound: AugmentedError<ApiType>;
-      /**
-       * Unstaking period should be greater than zero.
-       **/
-      StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Successful worker application does not exist.
-       **/
-      SuccessfulWorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_application_stake_unstaking_period should be non-zero.
-       **/
-      TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_role_stake_unstaking_period should be non-zero.
-       **/
-      TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application is not active.
-       **/
-      WithdrawWorkerApplicationApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * Opening not accepting applications.
-       **/
-      WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError<ApiType>;
-      /**
-       * Redundant unstaking period provided
-       **/
-      WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError<ApiType>;
-      /**
-       * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE
-       **/
-      WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker application does not exist.
-       **/
-      WorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker application text too long.
-       **/
-      WorkerApplicationTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker application text too short.
-       **/
-      WorkerApplicationTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker does not exist.
-       **/
-      WorkerDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too long.
-       **/
-      WorkerExitRationaleTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too short.
-       **/
-      WorkerExitRationaleTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker has no recurring reward.
-       **/
-      WorkerHasNoReward: AugmentedError<ApiType>;
-      /**
-       * Worker storage text is too long.
-       **/
-      WorkerStorageValueTooLong: AugmentedError<ApiType>;
-    };
-    operationsWorkingGroupGamma: {
-      /**
-       * Opening does not exist.
-       **/
-      AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting to begin.
-       **/
-      AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Opening does not activate in the future.
-       **/
-      AddWorkerOpeningActivatesInThePast: AugmentedError<ApiType>;
-      /**
-       * Add worker opening application stake cannot be zero.
-       **/
-      AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Application stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * New application was crowded out.
-       **/
-      AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      AddWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening is not in accepting applications stage.
-       **/
-      AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError<ApiType>;
-      /**
-       * Add worker opening role stake cannot be zero.
-       **/
-      AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Role stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * Stake amount too low.
-       **/
-      AddWorkerOpeningStakeAmountTooLow: AugmentedError<ApiType>;
-      /**
-       * Stake missing when required.
-       **/
-      AddWorkerOpeningStakeMissingWhenRequired: AugmentedError<ApiType>;
-      /**
-       * Stake provided when redundant.
-       **/
-      AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError<ApiType>;
-      /**
-       * Application rationing has zero max active applicants.
-       **/
-      AddWorkerOpeningZeroMaxApplicantCount: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_rationing_policy):
-       * max_active_applicants should be non-zero.
-       **/
-      ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer does not match controller account.
-       **/
-      ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting.
-       **/
-      BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Cannot find mint in the minting module.
-       **/
-      CannotFindMint: AugmentedError<ApiType>;
-      /**
-       * There is leader already, cannot hire another one.
-       **/
-      CannotHireLeaderWhenLeaderExists: AugmentedError<ApiType>;
-      /**
-       * Cannot fill opening with multiple applications.
-       **/
-      CannotHireMultipleLeaders: AugmentedError<ApiType>;
-      /**
-       * Current lead is not set.
-       **/
-      CurrentLeadNotSet: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_application_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Reward policy has invalid next payment block number.
-       **/
-      FillOpeningInvalidNextPaymentBlock: AugmentedError<ApiType>;
-      /**
-       * Working group mint does not exist.
-       **/
-      FillOpeningMintDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Applications not for opening.
-       **/
-      FillWorkerOpeningApplicationForWrongOpening: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      FullWorkerOpeningApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application not in active stage.
-       **/
-      FullWorkerOpeningApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * OpeningDoesNotExist.
-       **/
-      FullWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening not in review period stage.
-       **/
-      FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to apply.
-       **/
-      InsufficientBalanceToApply: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to cover stake.
-       **/
-      InsufficientBalanceToCoverStake: AugmentedError<ApiType>;
-      /**
-       * Not a lead account.
-       **/
-      IsNotLeadAccount: AugmentedError<ApiType>;
-      /**
-       * Working group size limit exceeded.
-       **/
-      MaxActiveWorkerNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Member already has an active application on the opening.
-       **/
-      MemberHasActiveApplicationOnOpening: AugmentedError<ApiType>;
-      /**
-       * Member id is invalid.
-       **/
-      MembershipInvalidMemberId: AugmentedError<ApiType>;
-      /**
-       * Unsigned origin.
-       **/
-      MembershipUnsignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Minting error: NextAdjustmentInPast
-       **/
-      MintingErrorNextAdjustmentInPast: AugmentedError<ApiType>;
-      /**
-       * Cannot get the worker stake profile.
-       **/
-      NoWorkerStakeProfile: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      OpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening text too long.
-       **/
-      OpeningTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Opening text too short.
-       **/
-      OpeningTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Origin must be controller or root account of member.
-       **/
-      OriginIsNeitherMemberControllerOrRoot: AugmentedError<ApiType>;
-      /**
-       * Origin is not applicant.
-       **/
-      OriginIsNotApplicant: AugmentedError<ApiType>;
-      /**
-       * Next payment is not in the future.
-       **/
-      RecurringRewardsNextPaymentNotInFuture: AugmentedError<ApiType>;
-      /**
-       * Recipient not found.
-       **/
-      RecurringRewardsRecipientNotFound: AugmentedError<ApiType>;
-      /**
-       * Reward relationship not found.
-       **/
-      RecurringRewardsRewardRelationshipNotFound: AugmentedError<ApiType>;
-      /**
-       * Recipient reward source not found.
-       **/
-      RecurringRewardsRewardSourceNotFound: AugmentedError<ApiType>;
-      /**
-       * Relationship must exist.
-       **/
-      RelationshipMustExist: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics.
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Require signed origin in extrinsics.
-       **/
-      RequireSignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer is not worker role account.
-       **/
-      SignerIsNotWorkerRoleAccount: AugmentedError<ApiType>;
-      /**
-       * Provided stake balance cannot be zero.
-       **/
-      StakeBalanceCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Already unstaking.
-       **/
-      StakingErrorAlreadyUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot change stake by zero.
-       **/
-      StakingErrorCannotChangeStakeByZero: AugmentedError<ApiType>;
-      /**
-       * Cannot decrease stake while slashes ongoing.
-       **/
-      StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Cannot increase stake while unstaking.
-       **/
-      StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot unstake while slashes ongoing.
-       **/
-      StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance in source account.
-       **/
-      StakingErrorInsufficientBalanceInSourceAccount: AugmentedError<ApiType>;
-      /**
-       * Insufficient stake to decrease.
-       **/
-      StakingErrorInsufficientStake: AugmentedError<ApiType>;
-      /**
-       * Not staked.
-       **/
-      StakingErrorNotStaked: AugmentedError<ApiType>;
-      /**
-       * Slash amount should be greater than zero.
-       **/
-      StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Stake not found.
-       **/
-      StakingErrorStakeNotFound: AugmentedError<ApiType>;
-      /**
-       * Unstaking period should be greater than zero.
-       **/
-      StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Successful worker application does not exist.
-       **/
-      SuccessfulWorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_application_stake_unstaking_period should be non-zero.
-       **/
-      TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_role_stake_unstaking_period should be non-zero.
-       **/
-      TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application is not active.
-       **/
-      WithdrawWorkerApplicationApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * Opening not accepting applications.
-       **/
-      WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError<ApiType>;
-      /**
-       * Redundant unstaking period provided
-       **/
-      WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError<ApiType>;
-      /**
-       * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE
-       **/
-      WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker application does not exist.
-       **/
-      WorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker application text too long.
-       **/
-      WorkerApplicationTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker application text too short.
-       **/
-      WorkerApplicationTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker does not exist.
-       **/
-      WorkerDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too long.
-       **/
-      WorkerExitRationaleTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too short.
-       **/
-      WorkerExitRationaleTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker has no recurring reward.
-       **/
-      WorkerHasNoReward: AugmentedError<ApiType>;
-      /**
-       * Worker storage text is too long.
-       **/
-      WorkerStorageValueTooLong: AugmentedError<ApiType>;
-    };
-    proposalsCodex: {
-      /**
-       * Invalid 'decrease stake proposal' parameter - cannot decrease by zero balance.
-       **/
-      DecreasingStakeIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid content working group mint capacity parameter
-       **/
-      InvalidContentWorkingGroupMintCapacity: AugmentedError<ApiType>;
-      /**
-       * Invalid council election parameter - announcing_period
-       **/
-      InvalidCouncilElectionParameterAnnouncingPeriod: AugmentedError<ApiType>;
-      /**
-       * Invalid council election parameter - candidacy-limit
-       **/
-      InvalidCouncilElectionParameterCandidacyLimit: AugmentedError<ApiType>;
-      /**
-       * Invalid council election parameter - council_size
-       **/
-      InvalidCouncilElectionParameterCouncilSize: AugmentedError<ApiType>;
-      /**
-       * Invalid council election parameter - min_council_stake
-       **/
-      InvalidCouncilElectionParameterMinCouncilStake: AugmentedError<ApiType>;
-      /**
-       * Invalid council election parameter - min-voting_stake
-       **/
-      InvalidCouncilElectionParameterMinVotingStake: AugmentedError<ApiType>;
-      /**
-       * Invalid council election parameter - new_term_duration
-       **/
-      InvalidCouncilElectionParameterNewTermDuration: AugmentedError<ApiType>;
-      /**
-       * Invalid council election parameter - revealing_period
-       **/
-      InvalidCouncilElectionParameterRevealingPeriod: AugmentedError<ApiType>;
-      /**
-       * Invalid council election parameter - voting_period
-       **/
-      InvalidCouncilElectionParameterVotingPeriod: AugmentedError<ApiType>;
-      /**
-       * Invalid 'set lead proposal' parameter - proposed lead cannot be a councilor
-       **/
-      InvalidSetLeadParameterCannotBeCouncilor: AugmentedError<ApiType>;
-      /**
-       * Invalid balance value for the spending proposal
-       **/
-      InvalidSpendingProposalBalance: AugmentedError<ApiType>;
-      /**
-       * Invalid validator count for the 'set validator count' proposal
-       **/
-      InvalidValidatorCount: AugmentedError<ApiType>;
-      /**
-       * Invalid working group mint capacity parameter
-       **/
-      InvalidWorkingGroupMintCapacity: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Provided WASM code for the runtime upgrade proposal is empty
-       **/
-      RuntimeProposalIsEmpty: AugmentedError<ApiType>;
-      /**
-       * The size of the provided WASM code for the runtime upgrade proposal exceeded the limit
-       **/
-      RuntimeProposalSizeExceeded: AugmentedError<ApiType>;
-      /**
-       * Invalid 'slash stake proposal' parameter - cannot slash by zero balance.
-       **/
-      SlashingStakeIsZero: AugmentedError<ApiType>;
-      /**
-       * Provided text for text proposal is empty
-       **/
-      TextProposalIsEmpty: AugmentedError<ApiType>;
-      /**
-       * The size of the provided text for text proposal exceeded the limit
-       **/
-      TextProposalSizeExceeded: AugmentedError<ApiType>;
-    };
-    proposalsDiscussion: {
-      /**
-       * Post cannot be empty
-       **/
-      EmptyPostProvided: AugmentedError<ApiType>;
-      /**
-       * Discussion cannot have an empty title
-       **/
-      EmptyTitleProvided: AugmentedError<ApiType>;
-      /**
-       * Max number of threads by same author in a row limit exceeded
-       **/
-      MaxThreadInARowLimitExceeded: AugmentedError<ApiType>;
-      /**
-       * Author should match the post creator
-       **/
-      NotAuthor: AugmentedError<ApiType>;
-      /**
-       * Post doesn't exist
-       **/
-      PostDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Post edition limit reached
-       **/
-      PostEditionNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Post is too long
-       **/
-      PostIsTooLong: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Thread doesn't exist
-       **/
-      ThreadDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Title is too long
-       **/
-      TitleIsTooLong: AugmentedError<ApiType>;
-    };
-    proposalsEngine: {
-      /**
-       * The proposal have been already voted on
-       **/
-      AlreadyVoted: AugmentedError<ApiType>;
-      /**
-       * Description is too long
-       **/
-      DescriptionIsTooLong: AugmentedError<ApiType>;
-      /**
-       * Proposal cannot have an empty body
-       **/
-      EmptyDescriptionProvided: AugmentedError<ApiType>;
-      /**
-       * Stake cannot be empty with this proposal
-       **/
-      EmptyStake: AugmentedError<ApiType>;
-      /**
-       * Proposal cannot have an empty title"
-       **/
-      EmptyTitleProvided: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance for operation.
-       **/
-      InsufficientBalance: AugmentedError<ApiType>;
-      /**
-       * Approval threshold cannot be zero
-       **/
-      InvalidParameterApprovalThreshold: AugmentedError<ApiType>;
-      /**
-       * Slashing threshold cannot be zero
-       **/
-      InvalidParameterSlashingThreshold: AugmentedError<ApiType>;
-      /**
-       * Max active proposals number exceeded
-       **/
-      MaxActiveProposalNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Not an author
-       **/
-      NotAuthor: AugmentedError<ApiType>;
-      /**
-       * Proposal is finalized already
-       **/
-      ProposalFinalized: AugmentedError<ApiType>;
-      /**
-       * The proposal does not exist
-       **/
-      ProposalNotFound: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Stake differs from the proposal requirements
-       **/
-      StakeDiffersFromRequired: AugmentedError<ApiType>;
-      /**
-       * Stake should be empty for this proposal
-       **/
-      StakeShouldBeEmpty: AugmentedError<ApiType>;
-      /**
-       * Title is too long
-       **/
-      TitleIsTooLong: AugmentedError<ApiType>;
-    };
-    session: {
-      /**
-       * Registered duplicate key.
-       **/
-      DuplicatedKey: AugmentedError<ApiType>;
-      /**
-       * Invalid ownership proof.
-       **/
-      InvalidProof: AugmentedError<ApiType>;
-      /**
-       * No associated validator ID for account.
-       **/
-      NoAssociatedValidatorId: AugmentedError<ApiType>;
-      /**
-       * No keys are associated with this account.
-       **/
-      NoKeys: AugmentedError<ApiType>;
-    };
-    staking: {
-      /**
-       * Stash is already bonded.
-       **/
-      AlreadyBonded: AugmentedError<ApiType>;
-      /**
-       * Rewards for this era have already been claimed for this validator.
-       **/
-      AlreadyClaimed: AugmentedError<ApiType>;
-      /**
-       * Controller is already paired.
-       **/
-      AlreadyPaired: AugmentedError<ApiType>;
-      /**
-       * The call is not allowed at the given time due to restrictions of election period.
-       **/
-      CallNotAllowed: AugmentedError<ApiType>;
-      /**
-       * Duplicate index.
-       **/
-      DuplicateIndex: AugmentedError<ApiType>;
-      /**
-       * Targets cannot be empty.
-       **/
-      EmptyTargets: AugmentedError<ApiType>;
-      /**
-       * Attempting to target a stash that still has funds.
-       **/
-      FundedTarget: AugmentedError<ApiType>;
-      /**
-       * Incorrect previous history depth input provided.
-       **/
-      IncorrectHistoryDepth: AugmentedError<ApiType>;
-      /**
-       * Incorrect number of slashing spans provided.
-       **/
-      IncorrectSlashingSpans: AugmentedError<ApiType>;
-      /**
-       * Can not bond with value less than minimum balance.
-       **/
-      InsufficientValue: AugmentedError<ApiType>;
-      /**
-       * Invalid era to reward.
-       **/
-      InvalidEraToReward: AugmentedError<ApiType>;
-      /**
-       * Invalid number of nominations.
-       **/
-      InvalidNumberOfNominations: AugmentedError<ApiType>;
-      /**
-       * Slash record index out of bounds.
-       **/
-      InvalidSlashIndex: AugmentedError<ApiType>;
-      /**
-       * Can not schedule more unlock chunks.
-       **/
-      NoMoreChunks: AugmentedError<ApiType>;
-      /**
-       * Not a controller account.
-       **/
-      NotController: AugmentedError<ApiType>;
-      /**
-       * Items are not sorted and unique.
-       **/
-      NotSortedAndUnique: AugmentedError<ApiType>;
-      /**
-       * Not a stash account.
-       **/
-      NotStash: AugmentedError<ApiType>;
-      /**
-       * Can not rebond without unlocking chunks.
-       **/
-      NoUnlockChunk: AugmentedError<ApiType>;
-      /**
-       * Error while building the assignment type from the compact. This can happen if an index
-       * is invalid, or if the weights _overflow_.
-       **/
-      OffchainElectionBogusCompact: AugmentedError<ApiType>;
-      /**
-       * The submitted result has unknown edges that are not among the presented winners.
-       **/
-      OffchainElectionBogusEdge: AugmentedError<ApiType>;
-      /**
-       * The election size is invalid.
-       **/
-      OffchainElectionBogusElectionSize: AugmentedError<ApiType>;
-      /**
-       * One of the submitted nominators has an edge to which they have not voted on chain.
-       **/
-      OffchainElectionBogusNomination: AugmentedError<ApiType>;
-      /**
-       * One of the submitted nominators is not an active nominator on chain.
-       **/
-      OffchainElectionBogusNominator: AugmentedError<ApiType>;
-      /**
-       * The claimed score does not match with the one computed from the data.
-       **/
-      OffchainElectionBogusScore: AugmentedError<ApiType>;
-      /**
-       * A self vote must only be originated from a validator to ONLY themselves.
-       **/
-      OffchainElectionBogusSelfVote: AugmentedError<ApiType>;
-      /**
-       * One of the submitted winners is not an active candidate on chain (index is out of range
-       * in snapshot).
-       **/
-      OffchainElectionBogusWinner: AugmentedError<ApiType>;
-      /**
-       * Incorrect number of winners were presented.
-       **/
-      OffchainElectionBogusWinnerCount: AugmentedError<ApiType>;
-      /**
-       * The submitted result is received out of the open window.
-       **/
-      OffchainElectionEarlySubmission: AugmentedError<ApiType>;
-      /**
-       * One of the submitted nominators has an edge which is submitted before the last non-zero
-       * slash of the target.
-       **/
-      OffchainElectionSlashedNomination: AugmentedError<ApiType>;
-      /**
-       * The submitted result is not as good as the one stored on chain.
-       **/
-      OffchainElectionWeakSubmission: AugmentedError<ApiType>;
-      /**
-       * The snapshot data of the current window is missing.
-       **/
-      SnapshotUnavailable: AugmentedError<ApiType>;
-    };
-    storage: {
-      /**
-       * Blacklist size limit exceeded.
-       **/
-      BlacklistSizeLimitExceeded: AugmentedError<ApiType>;
-      /**
-       * Cannot delete non empty dynamic bag.
-       **/
-      CannotDeleteNonEmptyDynamicBag: AugmentedError<ApiType>;
-      /**
-       * Cannot delete a non-empty storage bucket.
-       **/
-      CannotDeleteNonEmptyStorageBucket: AugmentedError<ApiType>;
-      /**
-       * Data object hash is part of the blacklist.
-       **/
-      DataObjectBlacklisted: AugmentedError<ApiType>;
-      /**
-       * Data object doesn't exist.
-       **/
-      DataObjectDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Data object id collection is empty.
-       **/
-      DataObjectIdCollectionIsEmpty: AugmentedError<ApiType>;
-      /**
-       * The `data_object_ids` extrinsic parameter collection is empty.
-       **/
-      DataObjectIdParamsAreEmpty: AugmentedError<ApiType>;
-      /**
-       * Invalid extrinsic call: data size fee changed.
-       **/
-      DataSizeFeeChanged: AugmentedError<ApiType>;
-      /**
-       * Invalid operation with invites: another storage provider was invited.
-       **/
-      DifferentStorageProviderInvited: AugmentedError<ApiType>;
-      /**
-       * Distribution bucket doesn't accept new bags.
-       **/
-      DistributionBucketDoesntAcceptNewBags: AugmentedError<ApiType>;
-      /**
-       * Distribution bucket doesn't exist.
-       **/
-      DistributionBucketDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Distribution bucket family doesn't exist.
-       **/
-      DistributionBucketFamilyDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Distribution bucket id collections are empty.
-       **/
-      DistributionBucketIdCollectionsAreEmpty: AugmentedError<ApiType>;
-      /**
-       * Distribution bucket is bound to a bag.
-       **/
-      DistributionBucketIsBoundToBag: AugmentedError<ApiType>;
-      /**
-       * Distribution bucket is not bound to a bag.
-       **/
-      DistributionBucketIsNotBoundToBag: AugmentedError<ApiType>;
-      /**
-       * The new `DistributionBucketsPerBagLimit` number is too high.
-       **/
-      DistributionBucketsPerBagLimitTooHigh: AugmentedError<ApiType>;
-      /**
-       * The new `DistributionBucketsPerBagLimit` number is too low.
-       **/
-      DistributionBucketsPerBagLimitTooLow: AugmentedError<ApiType>;
-      /**
-       * Distribution family bound to a bag creation policy.
-       **/
-      DistributionFamilyBoundToBagCreationPolicy: AugmentedError<ApiType>;
-      /**
-       * Distribution provider operator already invited.
-       **/
-      DistributionProviderOperatorAlreadyInvited: AugmentedError<ApiType>;
-      /**
-       * Distribution provider operator doesn't exist.
-       **/
-      DistributionProviderOperatorDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Distribution provider operator already set.
-       **/
-      DistributionProviderOperatorSet: AugmentedError<ApiType>;
-      /**
-       * Dynamic bag doesn't exist.
-       **/
-      DynamicBagDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Cannot create the dynamic bag: dynamic bag exists.
-       **/
-      DynamicBagExists: AugmentedError<ApiType>;
-      /**
-       * Upload data error: empty content ID provided.
-       **/
-      EmptyContentId: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance for an operation.
-       **/
-      InsufficientBalance: AugmentedError<ApiType>;
-      /**
-       * Insufficient module treasury balance for an operation.
-       **/
-      InsufficientTreasuryBalance: AugmentedError<ApiType>;
-      /**
-       * Upload data error: invalid deletion prize source account.
-       **/
-      InvalidDeletionPrizeSourceAccount: AugmentedError<ApiType>;
-      /**
-       * Invalid storage provider for bucket.
-       **/
-      InvalidStorageProvider: AugmentedError<ApiType>;
-      /**
-       * Invalid operation with invites: storage provider was already invited.
-       **/
-      InvitedStorageProvider: AugmentedError<ApiType>;
-      /**
-       * Max data object size exceeded.
-       **/
-      MaxDataObjectSizeExceeded: AugmentedError<ApiType>;
-      /**
-       * Max distribution bucket family number limit exceeded.
-       **/
-      MaxDistributionBucketFamilyNumberLimitExceeded: AugmentedError<ApiType>;
-      /**
-       * Max distribution bucket number per bag limit exceeded.
-       **/
-      MaxDistributionBucketNumberPerBagLimitExceeded: AugmentedError<ApiType>;
-      /**
-       * Max distribution bucket number per family limit exceeded.
-       **/
-      MaxDistributionBucketNumberPerFamilyLimitExceeded: AugmentedError<ApiType>;
-      /**
-       * Max number of pending invitations limit for a distribution bucket reached.
-       **/
-      MaxNumberOfPendingInvitationsLimitForDistributionBucketReached: AugmentedError<ApiType>;
-      /**
-       * Invalid operations: must be a distribution provider operator for a bucket.
-       **/
-      MustBeDistributionProviderOperatorForBucket: AugmentedError<ApiType>;
-      /**
-       * No distribution bucket invitation.
-       **/
-      NoDistributionBucketInvitation: AugmentedError<ApiType>;
-      /**
-       * Empty "data object creation" collection.
-       **/
-      NoObjectsOnUpload: AugmentedError<ApiType>;
-      /**
-       * Invalid operation with invites: there is no storage bucket invitation.
-       **/
-      NoStorageBucketInvitation: AugmentedError<ApiType>;
-      /**
-       * Cannot move objects within the same bag.
-       **/
-      SourceAndDestinationBagsAreEqual: AugmentedError<ApiType>;
-      /**
-       * The storage bucket doesn't accept new bags.
-       **/
-      StorageBucketDoesntAcceptNewBags: AugmentedError<ApiType>;
-      /**
-       * The requested storage bucket doesn't exist.
-       **/
-      StorageBucketDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Storage bucket id collections are empty.
-       **/
-      StorageBucketIdCollectionsAreEmpty: AugmentedError<ApiType>;
-      /**
-       * The requested storage bucket is already bound to a bag.
-       **/
-      StorageBucketIsBoundToBag: AugmentedError<ApiType>;
-      /**
-       * The requested storage bucket is not bound to a bag.
-       **/
-      StorageBucketIsNotBoundToBag: AugmentedError<ApiType>;
-      /**
-       * Object number limit for the storage bucket reached.
-       **/
-      StorageBucketObjectNumberLimitReached: AugmentedError<ApiType>;
-      /**
-       * Objects total size limit for the storage bucket reached.
-       **/
-      StorageBucketObjectSizeLimitReached: AugmentedError<ApiType>;
-      /**
-       * `StorageBucketsPerBagLimit` was exceeded for a bag.
-       **/
-      StorageBucketPerBagLimitExceeded: AugmentedError<ApiType>;
-      /**
-       * The new `StorageBucketsPerBagLimit` number is too high.
-       **/
-      StorageBucketsPerBagLimitTooHigh: AugmentedError<ApiType>;
-      /**
-       * The new `StorageBucketsPerBagLimit` number is too low.
-       **/
-      StorageBucketsPerBagLimitTooLow: AugmentedError<ApiType>;
-      /**
-       * Invalid operation with invites: storage provider was already set.
-       **/
-      StorageProviderAlreadySet: AugmentedError<ApiType>;
-      /**
-       * Storage provider must be set.
-       **/
-      StorageProviderMustBeSet: AugmentedError<ApiType>;
-      /**
-       * Storage provider operator doesn't exist.
-       **/
-      StorageProviderOperatorDoesntExist: AugmentedError<ApiType>;
-      /**
-       * Uploading of the new object is blocked.
-       **/
-      UploadingBlocked: AugmentedError<ApiType>;
-      /**
-       * Max object number limit exceeded for voucher.
-       **/
-      VoucherMaxObjectNumberLimitExceeded: AugmentedError<ApiType>;
-      /**
-       * Max object size limit exceeded for voucher.
-       **/
-      VoucherMaxObjectSizeLimitExceeded: AugmentedError<ApiType>;
-      /**
-       * Upload data error: zero object size.
-       **/
-      ZeroObjectSize: AugmentedError<ApiType>;
-    };
-    storageWorkingGroup: {
-      /**
-       * Opening does not exist.
-       **/
-      AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting to begin.
-       **/
-      AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Opening does not activate in the future.
-       **/
-      AddWorkerOpeningActivatesInThePast: AugmentedError<ApiType>;
-      /**
-       * Add worker opening application stake cannot be zero.
-       **/
-      AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Application stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * New application was crowded out.
-       **/
-      AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      AddWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening is not in accepting applications stage.
-       **/
-      AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError<ApiType>;
-      /**
-       * Add worker opening role stake cannot be zero.
-       **/
-      AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Role stake amount less than minimum currency balance.
-       **/
-      AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError<ApiType>;
-      /**
-       * Stake amount too low.
-       **/
-      AddWorkerOpeningStakeAmountTooLow: AugmentedError<ApiType>;
-      /**
-       * Stake missing when required.
-       **/
-      AddWorkerOpeningStakeMissingWhenRequired: AugmentedError<ApiType>;
-      /**
-       * Stake provided when redundant.
-       **/
-      AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError<ApiType>;
-      /**
-       * Application rationing has zero max active applicants.
-       **/
-      AddWorkerOpeningZeroMaxApplicantCount: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_rationing_policy):
-       * max_active_applicants should be non-zero.
-       **/
-      ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (application_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer does not match controller account.
-       **/
-      ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening Is Not in Waiting.
-       **/
-      BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError<ApiType>;
-      /**
-       * Cannot find mint in the minting module.
-       **/
-      CannotFindMint: AugmentedError<ApiType>;
-      /**
-       * There is leader already, cannot hire another one.
-       **/
-      CannotHireLeaderWhenLeaderExists: AugmentedError<ApiType>;
-      /**
-       * Cannot fill opening with multiple applications.
-       **/
-      CannotHireMultipleLeaders: AugmentedError<ApiType>;
-      /**
-       * Current lead is not set.
-       **/
-      CurrentLeadNotSet: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_application_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * exit_role_stake_unstaking_period should be non-zero.
-       **/
-      ExitRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Reward policy has invalid next payment block number.
-       **/
-      FillOpeningInvalidNextPaymentBlock: AugmentedError<ApiType>;
-      /**
-       * Working group mint does not exist.
-       **/
-      FillOpeningMintDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero.
-       **/
-      FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Applications not for opening.
-       **/
-      FillWorkerOpeningApplicationForWrongOpening: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      FullWorkerOpeningApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application not in active stage.
-       **/
-      FullWorkerOpeningApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * OpeningDoesNotExist.
-       **/
-      FullWorkerOpeningOpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening not in review period stage.
-       **/
-      FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants redundant.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Application stake unstaking period for successful applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants redundant.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError<ApiType>;
-      /**
-       * Role stake unstaking period for failed applicants too short.
-       **/
-      FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to apply.
-       **/
-      InsufficientBalanceToApply: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance to cover stake.
-       **/
-      InsufficientBalanceToCoverStake: AugmentedError<ApiType>;
-      /**
-       * Not a lead account.
-       **/
-      IsNotLeadAccount: AugmentedError<ApiType>;
-      /**
-       * Working group size limit exceeded.
-       **/
-      MaxActiveWorkerNumberExceeded: AugmentedError<ApiType>;
-      /**
-       * Member already has an active application on the opening.
-       **/
-      MemberHasActiveApplicationOnOpening: AugmentedError<ApiType>;
-      /**
-       * Member id is invalid.
-       **/
-      MembershipInvalidMemberId: AugmentedError<ApiType>;
-      /**
-       * Unsigned origin.
-       **/
-      MembershipUnsignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Minting error: NextAdjustmentInPast
-       **/
-      MintingErrorNextAdjustmentInPast: AugmentedError<ApiType>;
-      /**
-       * Cannot get the worker stake profile.
-       **/
-      NoWorkerStakeProfile: AugmentedError<ApiType>;
-      /**
-       * Opening does not exist.
-       **/
-      OpeningDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Opening text too long.
-       **/
-      OpeningTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Opening text too short.
-       **/
-      OpeningTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Origin must be controller or root account of member.
-       **/
-      OriginIsNeitherMemberControllerOrRoot: AugmentedError<ApiType>;
-      /**
-       * Origin is not applicant.
-       **/
-      OriginIsNotApplicant: AugmentedError<ApiType>;
-      /**
-       * Next payment is not in the future.
-       **/
-      RecurringRewardsNextPaymentNotInFuture: AugmentedError<ApiType>;
-      /**
-       * Recipient not found.
-       **/
-      RecurringRewardsRecipientNotFound: AugmentedError<ApiType>;
-      /**
-       * Reward relationship not found.
-       **/
-      RecurringRewardsRewardRelationshipNotFound: AugmentedError<ApiType>;
-      /**
-       * Recipient reward source not found.
-       **/
-      RecurringRewardsRewardSourceNotFound: AugmentedError<ApiType>;
-      /**
-       * Relationship must exist.
-       **/
-      RelationshipMustExist: AugmentedError<ApiType>;
-      /**
-       * Require root origin in extrinsics.
-       **/
-      RequireRootOrigin: AugmentedError<ApiType>;
-      /**
-       * Require signed origin in extrinsics.
-       **/
-      RequireSignedOrigin: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * crowded_out_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter (role_staking_policy):
-       * review_period_expired_unstaking_period_length should be non-zero.
-       **/
-      RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Signer is not worker role account.
-       **/
-      SignerIsNotWorkerRoleAccount: AugmentedError<ApiType>;
-      /**
-       * Provided stake balance cannot be zero.
-       **/
-      StakeBalanceCannotBeZero: AugmentedError<ApiType>;
-      /**
-       * Already unstaking.
-       **/
-      StakingErrorAlreadyUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot change stake by zero.
-       **/
-      StakingErrorCannotChangeStakeByZero: AugmentedError<ApiType>;
-      /**
-       * Cannot decrease stake while slashes ongoing.
-       **/
-      StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Cannot increase stake while unstaking.
-       **/
-      StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError<ApiType>;
-      /**
-       * Cannot unstake while slashes ongoing.
-       **/
-      StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError<ApiType>;
-      /**
-       * Insufficient balance in source account.
-       **/
-      StakingErrorInsufficientBalanceInSourceAccount: AugmentedError<ApiType>;
-      /**
-       * Insufficient stake to decrease.
-       **/
-      StakingErrorInsufficientStake: AugmentedError<ApiType>;
-      /**
-       * Not staked.
-       **/
-      StakingErrorNotStaked: AugmentedError<ApiType>;
-      /**
-       * Slash amount should be greater than zero.
-       **/
-      StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Stake not found.
-       **/
-      StakingErrorStakeNotFound: AugmentedError<ApiType>;
-      /**
-       * Unstaking period should be greater than zero.
-       **/
-      StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError<ApiType>;
-      /**
-       * Successful worker application does not exist.
-       **/
-      SuccessfulWorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_application_stake_unstaking_period should be non-zero.
-       **/
-      TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Invalid OpeningPolicyCommitment parameter:
-       * terminate_role_stake_unstaking_period should be non-zero.
-       **/
-      TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError<ApiType>;
-      /**
-       * Application does not exist.
-       **/
-      WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Application is not active.
-       **/
-      WithdrawWorkerApplicationApplicationNotActive: AugmentedError<ApiType>;
-      /**
-       * Opening not accepting applications.
-       **/
-      WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError<ApiType>;
-      /**
-       * Redundant unstaking period provided
-       **/
-      WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError<ApiType>;
-      /**
-       * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE
-       **/
-      WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker application does not exist.
-       **/
-      WorkerApplicationDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker application text too long.
-       **/
-      WorkerApplicationTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker application text too short.
-       **/
-      WorkerApplicationTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker does not exist.
-       **/
-      WorkerDoesNotExist: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too long.
-       **/
-      WorkerExitRationaleTextTooLong: AugmentedError<ApiType>;
-      /**
-       * Worker exit rationale text is too short.
-       **/
-      WorkerExitRationaleTextTooShort: AugmentedError<ApiType>;
-      /**
-       * Worker has no recurring reward.
-       **/
-      WorkerHasNoReward: AugmentedError<ApiType>;
-      /**
-       * Worker storage text is too long.
-       **/
-      WorkerStorageValueTooLong: AugmentedError<ApiType>;
-    };
-    sudo: {
-      /**
-       * Sender must be the Sudo account
-       **/
-      RequireSudo: AugmentedError<ApiType>;
-    };
-    system: {
-      /**
-       * Failed to extract the runtime version from the new runtime.
-       * 
-       * Either calling `Core_version` or decoding `RuntimeVersion` failed.
-       **/
-      FailedToExtractRuntimeVersion: AugmentedError<ApiType>;
-      /**
-       * The name of specification does not match between the current runtime
-       * and the new runtime.
-       **/
-      InvalidSpecName: AugmentedError<ApiType>;
-      /**
-       * Suicide called when the account has non-default composite data.
-       **/
-      NonDefaultComposite: AugmentedError<ApiType>;
-      /**
-       * There is a non-zero reference count preventing the account from being purged.
-       **/
-      NonZeroRefCount: AugmentedError<ApiType>;
-      /**
-       * The specification version is not allowed to decrease between the current runtime
-       * and the new runtime.
-       **/
-      SpecVersionNeedsToIncrease: AugmentedError<ApiType>;
-    };
-  }
-
-  export interface DecoratedErrors<ApiType extends ApiTypes> extends AugmentedErrors<ApiType> {
-  }
-}

+ 0 - 1536
types/augment/augment-api-events.ts

@@ -1,1536 +0,0 @@
-// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
-/* eslint-disable */
-
-import type { BTreeMap, BTreeSet, Bytes, Option, Vec, bool, u32, u64 } from '@polkadot/types';
-import type { ApplicationId, ApplicationIdToWorkerIdMap, BagId, CategoryId, Channel, ChannelCategory, ChannelCategoryCreationParameters, ChannelCategoryId, ChannelCategoryUpdateParameters, ChannelCreationParameters, ChannelId, ChannelOwnershipTransferRequest, ChannelOwnershipTransferRequestId, ChannelUpdateParameters, Cid, ContentActor, CuratorGroupId, CuratorId, DataObjectId, DistributionBucketFamilyId, DistributionBucketId, DynamicBagDeletionPrizeRecord, DynamicBagId, DynamicBagType, EntryMethod, IsCensored, MemberId, MintBalanceOf, MintId, OpeningId, PersonCreationParameters, PersonId, PersonUpdateParameters, PlaylistCreationParameters, PlaylistId, PlaylistUpdateParameters, PostId, ProposalId, ProposalStatus, RationaleText, Series, SeriesId, SeriesParameters, StorageAssets, StorageBucketId, ThreadId, UploadParameters, VideoCategoryCreationParameters, VideoCategoryId, VideoCategoryUpdateParameters, VideoCreationParameters, VideoId, VideoUpdateParameters, VoteKind, Voucher, WorkerId } from './all';
-import type { BalanceStatus } from '@polkadot/types/interfaces/balances';
-import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
-import type { AuthorityList } from '@polkadot/types/interfaces/grandpa';
-import type { Kind, OpaqueTimeSlot } from '@polkadot/types/interfaces/offences';
-import type { AccountId, Balance, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime';
-import type { IdentificationTuple, SessionIndex } from '@polkadot/types/interfaces/session';
-import type { ElectionCompute, EraIndex } from '@polkadot/types/interfaces/staking';
-import type { DispatchError, DispatchInfo, DispatchResult } from '@polkadot/types/interfaces/system';
-import type { ApiTypes } from '@polkadot/api/types';
-
-declare module '@polkadot/api/types/events' {
-  export interface AugmentedEvents<ApiType> {
-    balances: {
-      /**
-       * A balance was set by root. \[who, free, reserved\]
-       **/
-      BalanceSet: AugmentedEvent<ApiType, [AccountId, Balance, Balance]>;
-      /**
-       * Some amount was deposited (e.g. for transaction fees). \[who, deposit\]
-       **/
-      Deposit: AugmentedEvent<ApiType, [AccountId, Balance]>;
-      /**
-       * An account was removed whose balance was non-zero but below ExistentialDeposit,
-       * resulting in an outright loss. \[account, balance\]
-       **/
-      DustLost: AugmentedEvent<ApiType, [AccountId, Balance]>;
-      /**
-       * An account was created with some free balance. \[account, free_balance\]
-       **/
-      Endowed: AugmentedEvent<ApiType, [AccountId, Balance]>;
-      /**
-       * Some balance was reserved (moved from free to reserved). \[who, value\]
-       **/
-      Reserved: AugmentedEvent<ApiType, [AccountId, Balance]>;
-      /**
-       * Some balance was moved from the reserve of the first account to the second account.
-       * Final argument indicates the destination balance type.
-       * \[from, to, balance, destination_status\]
-       **/
-      ReserveRepatriated: AugmentedEvent<ApiType, [AccountId, AccountId, Balance, BalanceStatus]>;
-      /**
-       * Transfer succeeded. \[from, to, value\]
-       **/
-      Transfer: AugmentedEvent<ApiType, [AccountId, AccountId, Balance]>;
-      /**
-       * Some balance was unreserved (moved from reserved to free). \[who, value\]
-       **/
-      Unreserved: AugmentedEvent<ApiType, [AccountId, Balance]>;
-    };
-    content: {
-      ChannelAssetsRemoved: AugmentedEvent<ApiType, [ContentActor, ChannelId, BTreeSet<DataObjectId>, Channel]>;
-      ChannelCategoryCreated: AugmentedEvent<ApiType, [ChannelCategoryId, ChannelCategory, ChannelCategoryCreationParameters]>;
-      ChannelCategoryDeleted: AugmentedEvent<ApiType, [ContentActor, ChannelCategoryId]>;
-      ChannelCategoryUpdated: AugmentedEvent<ApiType, [ContentActor, ChannelCategoryId, ChannelCategoryUpdateParameters]>;
-      ChannelCensorshipStatusUpdated: AugmentedEvent<ApiType, [ContentActor, ChannelId, IsCensored, Bytes]>;
-      ChannelCreated: AugmentedEvent<ApiType, [ContentActor, ChannelId, Channel, ChannelCreationParameters]>;
-      ChannelDeleted: AugmentedEvent<ApiType, [ContentActor, ChannelId]>;
-      ChannelOwnershipTransferred: AugmentedEvent<ApiType, [ContentActor, ChannelOwnershipTransferRequestId]>;
-      ChannelOwnershipTransferRequested: AugmentedEvent<ApiType, [ContentActor, ChannelOwnershipTransferRequestId, ChannelOwnershipTransferRequest]>;
-      ChannelOwnershipTransferRequestWithdrawn: AugmentedEvent<ApiType, [ContentActor, ChannelOwnershipTransferRequestId]>;
-      ChannelUpdated: AugmentedEvent<ApiType, [ContentActor, ChannelId, Channel, ChannelUpdateParameters]>;
-      CuratorAdded: AugmentedEvent<ApiType, [CuratorGroupId, CuratorId]>;
-      CuratorGroupCreated: AugmentedEvent<ApiType, [CuratorGroupId]>;
-      CuratorGroupStatusSet: AugmentedEvent<ApiType, [CuratorGroupId, bool]>;
-      CuratorRemoved: AugmentedEvent<ApiType, [CuratorGroupId, CuratorId]>;
-      FeaturedVideosSet: AugmentedEvent<ApiType, [ContentActor, Vec<VideoId>]>;
-      PersonCreated: AugmentedEvent<ApiType, [ContentActor, PersonId, StorageAssets, PersonCreationParameters]>;
-      PersonDeleted: AugmentedEvent<ApiType, [ContentActor, PersonId]>;
-      PersonUpdated: AugmentedEvent<ApiType, [ContentActor, PersonId, StorageAssets, PersonUpdateParameters]>;
-      PlaylistCreated: AugmentedEvent<ApiType, [ContentActor, PlaylistId, PlaylistCreationParameters]>;
-      PlaylistDeleted: AugmentedEvent<ApiType, [ContentActor, PlaylistId]>;
-      PlaylistUpdated: AugmentedEvent<ApiType, [ContentActor, PlaylistId, PlaylistUpdateParameters]>;
-      SeriesCreated: AugmentedEvent<ApiType, [ContentActor, SeriesId, StorageAssets, SeriesParameters, Series]>;
-      SeriesDeleted: AugmentedEvent<ApiType, [ContentActor, SeriesId]>;
-      SeriesUpdated: AugmentedEvent<ApiType, [ContentActor, SeriesId, StorageAssets, SeriesParameters, Series]>;
-      VideoCategoryCreated: AugmentedEvent<ApiType, [ContentActor, VideoCategoryId, VideoCategoryCreationParameters]>;
-      VideoCategoryDeleted: AugmentedEvent<ApiType, [ContentActor, VideoCategoryId]>;
-      VideoCategoryUpdated: AugmentedEvent<ApiType, [ContentActor, VideoCategoryId, VideoCategoryUpdateParameters]>;
-      VideoCensorshipStatusUpdated: AugmentedEvent<ApiType, [ContentActor, VideoId, IsCensored, Bytes]>;
-      VideoCreated: AugmentedEvent<ApiType, [ContentActor, ChannelId, VideoId, VideoCreationParameters]>;
-      VideoDeleted: AugmentedEvent<ApiType, [ContentActor, VideoId]>;
-      VideoUpdated: AugmentedEvent<ApiType, [ContentActor, VideoId, VideoUpdateParameters]>;
-    };
-    contentWorkingGroup: {
-      /**
-       * Emits on accepting application for the worker opening.
-       * Params:
-       * - Opening id
-       **/
-      AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on terminating the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on withdrawing the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on adding the application for the worker opening.
-       * Params:
-       * - Opening id
-       * - Application id
-       **/
-      AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
-      /**
-       * Emits on beginning the application review for the worker/lead opening.
-       * Params:
-       * - Opening id
-       **/
-      BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on setting the leader.
-       * Params:
-       * - Worker id.
-       **/
-      LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on un-setting the leader.
-       * Params:
-       **/
-      LeaderUnset: AugmentedEvent<ApiType, []>;
-      /**
-       * Emits on changing working group mint capacity.
-       * Params:
-       * - mint id.
-       * - new mint balance.
-       **/
-      MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
-      /**
-       * Emits on adding new worker opening.
-       * Params:
-       * - Opening id
-       **/
-      OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on filling the worker opening.
-       * Params:
-       * - Worker opening id
-       * - Worker application id to the worker id dictionary
-       **/
-      OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
-      /**
-       * Emits on decreasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on increasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on slashing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on terminating the leader.
-       * Params:
-       * - leader worker id.
-       * - termination rationale text
-       **/
-      TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on terminating the worker.
-       * Params:
-       * - worker id.
-       * - termination rationale text
-       **/
-      TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on exiting the worker.
-       * Params:
-       * - worker id.
-       * - exit rationale text
-       **/
-      WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on updating the reward account of the worker.
-       * Params:
-       * - Member id of the worker.
-       * - Reward account id of the worker.
-       **/
-      WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the reward amount of the worker.
-       * Params:
-       * - Id of the worker.
-       **/
-      WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on updating the role account of the worker.
-       * Params:
-       * - Id of the worker.
-       * - Role account id of the worker.
-       **/
-      WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the worker storage role.
-       * Params:
-       * - Id of the worker.
-       * - Raw storage field.
-       **/
-      WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
-    };
-    council: {
-      CouncilTermEnded: AugmentedEvent<ApiType, [BlockNumber]>;
-      NewCouncilTermStarted: AugmentedEvent<ApiType, [BlockNumber]>;
-    };
-    councilElection: {
-      AnnouncingEnded: AugmentedEvent<ApiType, []>;
-      AnnouncingStarted: AugmentedEvent<ApiType, [u32]>;
-      Applied: AugmentedEvent<ApiType, [AccountId]>;
-      CouncilElected: AugmentedEvent<ApiType, [BlockNumber]>;
-      /**
-       * A new election started
-       **/
-      ElectionStarted: AugmentedEvent<ApiType, []>;
-      Revealed: AugmentedEvent<ApiType, [AccountId, Hash, AccountId]>;
-      RevealingEnded: AugmentedEvent<ApiType, []>;
-      RevealingStarted: AugmentedEvent<ApiType, []>;
-      Voted: AugmentedEvent<ApiType, [AccountId, Hash]>;
-      VotingEnded: AugmentedEvent<ApiType, []>;
-      VotingStarted: AugmentedEvent<ApiType, []>;
-    };
-    distributionWorkingGroup: {
-      /**
-       * Emits on accepting application for the worker opening.
-       * Params:
-       * - Opening id
-       **/
-      AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on terminating the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on withdrawing the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on adding the application for the worker opening.
-       * Params:
-       * - Opening id
-       * - Application id
-       **/
-      AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
-      /**
-       * Emits on beginning the application review for the worker/lead opening.
-       * Params:
-       * - Opening id
-       **/
-      BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on setting the leader.
-       * Params:
-       * - Worker id.
-       **/
-      LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on un-setting the leader.
-       * Params:
-       **/
-      LeaderUnset: AugmentedEvent<ApiType, []>;
-      /**
-       * Emits on changing working group mint capacity.
-       * Params:
-       * - mint id.
-       * - new mint balance.
-       **/
-      MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
-      /**
-       * Emits on adding new worker opening.
-       * Params:
-       * - Opening id
-       **/
-      OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on filling the worker opening.
-       * Params:
-       * - Worker opening id
-       * - Worker application id to the worker id dictionary
-       **/
-      OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
-      /**
-       * Emits on decreasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on increasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on slashing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on terminating the leader.
-       * Params:
-       * - leader worker id.
-       * - termination rationale text
-       **/
-      TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on terminating the worker.
-       * Params:
-       * - worker id.
-       * - termination rationale text
-       **/
-      TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on exiting the worker.
-       * Params:
-       * - worker id.
-       * - exit rationale text
-       **/
-      WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on updating the reward account of the worker.
-       * Params:
-       * - Member id of the worker.
-       * - Reward account id of the worker.
-       **/
-      WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the reward amount of the worker.
-       * Params:
-       * - Id of the worker.
-       **/
-      WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on updating the role account of the worker.
-       * Params:
-       * - Id of the worker.
-       * - Role account id of the worker.
-       **/
-      WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the worker storage role.
-       * Params:
-       * - Id of the worker.
-       * - Raw storage field.
-       **/
-      WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
-    };
-    forum: {
-      /**
-       * A category was introduced
-       **/
-      CategoryCreated: AugmentedEvent<ApiType, [CategoryId]>;
-      /**
-       * A category with given id was updated.
-       * The second argument reflects the new archival status of the category, if changed.
-       * The third argument reflects the new deletion status of the category, if changed.
-       **/
-      CategoryUpdated: AugmentedEvent<ApiType, [CategoryId, Option<bool>, Option<bool>]>;
-      /**
-       * Given account was set as forum sudo.
-       **/
-      ForumSudoSet: AugmentedEvent<ApiType, [Option<AccountId>, Option<AccountId>]>;
-      /**
-       * Post with given id was created.
-       **/
-      PostAdded: AugmentedEvent<ApiType, [PostId]>;
-      /**
-       * Post with givne id was moderated.
-       **/
-      PostModerated: AugmentedEvent<ApiType, [PostId]>;
-      /**
-       * Post with given id had its text updated.
-       * The second argument reflects the number of total edits when the text update occurs.
-       **/
-      PostTextUpdated: AugmentedEvent<ApiType, [PostId, u64]>;
-      /**
-       * A thread with given id was created.
-       **/
-      ThreadCreated: AugmentedEvent<ApiType, [ThreadId]>;
-      /**
-       * A thread with given id was moderated.
-       **/
-      ThreadModerated: AugmentedEvent<ApiType, [ThreadId]>;
-    };
-    gatewayWorkingGroup: {
-      /**
-       * Emits on accepting application for the worker opening.
-       * Params:
-       * - Opening id
-       **/
-      AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on terminating the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on withdrawing the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on adding the application for the worker opening.
-       * Params:
-       * - Opening id
-       * - Application id
-       **/
-      AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
-      /**
-       * Emits on beginning the application review for the worker/lead opening.
-       * Params:
-       * - Opening id
-       **/
-      BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on setting the leader.
-       * Params:
-       * - Worker id.
-       **/
-      LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on un-setting the leader.
-       * Params:
-       **/
-      LeaderUnset: AugmentedEvent<ApiType, []>;
-      /**
-       * Emits on changing working group mint capacity.
-       * Params:
-       * - mint id.
-       * - new mint balance.
-       **/
-      MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
-      /**
-       * Emits on adding new worker opening.
-       * Params:
-       * - Opening id
-       **/
-      OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on filling the worker opening.
-       * Params:
-       * - Worker opening id
-       * - Worker application id to the worker id dictionary
-       **/
-      OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
-      /**
-       * Emits on decreasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on increasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on slashing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on terminating the leader.
-       * Params:
-       * - leader worker id.
-       * - termination rationale text
-       **/
-      TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on terminating the worker.
-       * Params:
-       * - worker id.
-       * - termination rationale text
-       **/
-      TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on exiting the worker.
-       * Params:
-       * - worker id.
-       * - exit rationale text
-       **/
-      WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on updating the reward account of the worker.
-       * Params:
-       * - Member id of the worker.
-       * - Reward account id of the worker.
-       **/
-      WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the reward amount of the worker.
-       * Params:
-       * - Id of the worker.
-       **/
-      WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on updating the role account of the worker.
-       * Params:
-       * - Id of the worker.
-       * - Role account id of the worker.
-       **/
-      WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the worker storage role.
-       * Params:
-       * - Id of the worker.
-       * - Raw storage field.
-       **/
-      WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
-    };
-    grandpa: {
-      /**
-       * New authority set has been applied. \[authority_set\]
-       **/
-      NewAuthorities: AugmentedEvent<ApiType, [AuthorityList]>;
-      /**
-       * Current authority set has been paused.
-       **/
-      Paused: AugmentedEvent<ApiType, []>;
-      /**
-       * Current authority set has been resumed.
-       **/
-      Resumed: AugmentedEvent<ApiType, []>;
-    };
-    imOnline: {
-      /**
-       * At the end of the session, no offence was committed.
-       **/
-      AllGood: AugmentedEvent<ApiType, []>;
-      /**
-       * A new heartbeat was received from `AuthorityId` \[authority_id\]
-       **/
-      HeartbeatReceived: AugmentedEvent<ApiType, [AuthorityId]>;
-      /**
-       * At the end of the session, at least one validator was found to be \[offline\].
-       **/
-      SomeOffline: AugmentedEvent<ApiType, [Vec<IdentificationTuple>]>;
-    };
-    members: {
-      MemberRegistered: AugmentedEvent<ApiType, [MemberId, AccountId, EntryMethod]>;
-      MemberSetControllerAccount: AugmentedEvent<ApiType, [MemberId, AccountId]>;
-      MemberSetRootAccount: AugmentedEvent<ApiType, [MemberId, AccountId]>;
-      MemberUpdatedAboutText: AugmentedEvent<ApiType, [MemberId, Bytes]>;
-      MemberUpdatedAvatar: AugmentedEvent<ApiType, [MemberId, Bytes]>;
-      MemberUpdatedHandle: AugmentedEvent<ApiType, [MemberId, Bytes]>;
-    };
-    memo: {
-      MemoUpdated: AugmentedEvent<ApiType, [AccountId]>;
-    };
-    offences: {
-      /**
-       * There is an offence reported of the given `kind` happened at the `session_index` and
-       * (kind-specific) time slot. This event is not deposited for duplicate slashes. last
-       * element indicates of the offence was applied (true) or queued (false)
-       * \[kind, timeslot, applied\].
-       **/
-      Offence: AugmentedEvent<ApiType, [Kind, OpaqueTimeSlot, bool]>;
-    };
-    operationsWorkingGroupAlpha: {
-      /**
-       * Emits on accepting application for the worker opening.
-       * Params:
-       * - Opening id
-       **/
-      AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on terminating the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on withdrawing the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on adding the application for the worker opening.
-       * Params:
-       * - Opening id
-       * - Application id
-       **/
-      AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
-      /**
-       * Emits on beginning the application review for the worker/lead opening.
-       * Params:
-       * - Opening id
-       **/
-      BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on setting the leader.
-       * Params:
-       * - Worker id.
-       **/
-      LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on un-setting the leader.
-       * Params:
-       **/
-      LeaderUnset: AugmentedEvent<ApiType, []>;
-      /**
-       * Emits on changing working group mint capacity.
-       * Params:
-       * - mint id.
-       * - new mint balance.
-       **/
-      MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
-      /**
-       * Emits on adding new worker opening.
-       * Params:
-       * - Opening id
-       **/
-      OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on filling the worker opening.
-       * Params:
-       * - Worker opening id
-       * - Worker application id to the worker id dictionary
-       **/
-      OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
-      /**
-       * Emits on decreasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on increasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on slashing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on terminating the leader.
-       * Params:
-       * - leader worker id.
-       * - termination rationale text
-       **/
-      TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on terminating the worker.
-       * Params:
-       * - worker id.
-       * - termination rationale text
-       **/
-      TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on exiting the worker.
-       * Params:
-       * - worker id.
-       * - exit rationale text
-       **/
-      WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on updating the reward account of the worker.
-       * Params:
-       * - Member id of the worker.
-       * - Reward account id of the worker.
-       **/
-      WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the reward amount of the worker.
-       * Params:
-       * - Id of the worker.
-       **/
-      WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on updating the role account of the worker.
-       * Params:
-       * - Id of the worker.
-       * - Role account id of the worker.
-       **/
-      WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the worker storage role.
-       * Params:
-       * - Id of the worker.
-       * - Raw storage field.
-       **/
-      WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
-    };
-    operationsWorkingGroupBeta: {
-      /**
-       * Emits on accepting application for the worker opening.
-       * Params:
-       * - Opening id
-       **/
-      AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on terminating the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on withdrawing the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on adding the application for the worker opening.
-       * Params:
-       * - Opening id
-       * - Application id
-       **/
-      AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
-      /**
-       * Emits on beginning the application review for the worker/lead opening.
-       * Params:
-       * - Opening id
-       **/
-      BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on setting the leader.
-       * Params:
-       * - Worker id.
-       **/
-      LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on un-setting the leader.
-       * Params:
-       **/
-      LeaderUnset: AugmentedEvent<ApiType, []>;
-      /**
-       * Emits on changing working group mint capacity.
-       * Params:
-       * - mint id.
-       * - new mint balance.
-       **/
-      MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
-      /**
-       * Emits on adding new worker opening.
-       * Params:
-       * - Opening id
-       **/
-      OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on filling the worker opening.
-       * Params:
-       * - Worker opening id
-       * - Worker application id to the worker id dictionary
-       **/
-      OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
-      /**
-       * Emits on decreasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on increasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on slashing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on terminating the leader.
-       * Params:
-       * - leader worker id.
-       * - termination rationale text
-       **/
-      TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on terminating the worker.
-       * Params:
-       * - worker id.
-       * - termination rationale text
-       **/
-      TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on exiting the worker.
-       * Params:
-       * - worker id.
-       * - exit rationale text
-       **/
-      WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on updating the reward account of the worker.
-       * Params:
-       * - Member id of the worker.
-       * - Reward account id of the worker.
-       **/
-      WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the reward amount of the worker.
-       * Params:
-       * - Id of the worker.
-       **/
-      WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on updating the role account of the worker.
-       * Params:
-       * - Id of the worker.
-       * - Role account id of the worker.
-       **/
-      WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the worker storage role.
-       * Params:
-       * - Id of the worker.
-       * - Raw storage field.
-       **/
-      WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
-    };
-    operationsWorkingGroupGamma: {
-      /**
-       * Emits on accepting application for the worker opening.
-       * Params:
-       * - Opening id
-       **/
-      AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on terminating the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on withdrawing the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on adding the application for the worker opening.
-       * Params:
-       * - Opening id
-       * - Application id
-       **/
-      AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
-      /**
-       * Emits on beginning the application review for the worker/lead opening.
-       * Params:
-       * - Opening id
-       **/
-      BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on setting the leader.
-       * Params:
-       * - Worker id.
-       **/
-      LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on un-setting the leader.
-       * Params:
-       **/
-      LeaderUnset: AugmentedEvent<ApiType, []>;
-      /**
-       * Emits on changing working group mint capacity.
-       * Params:
-       * - mint id.
-       * - new mint balance.
-       **/
-      MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
-      /**
-       * Emits on adding new worker opening.
-       * Params:
-       * - Opening id
-       **/
-      OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on filling the worker opening.
-       * Params:
-       * - Worker opening id
-       * - Worker application id to the worker id dictionary
-       **/
-      OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
-      /**
-       * Emits on decreasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on increasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on slashing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on terminating the leader.
-       * Params:
-       * - leader worker id.
-       * - termination rationale text
-       **/
-      TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on terminating the worker.
-       * Params:
-       * - worker id.
-       * - termination rationale text
-       **/
-      TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on exiting the worker.
-       * Params:
-       * - worker id.
-       * - exit rationale text
-       **/
-      WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on updating the reward account of the worker.
-       * Params:
-       * - Member id of the worker.
-       * - Reward account id of the worker.
-       **/
-      WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the reward amount of the worker.
-       * Params:
-       * - Id of the worker.
-       **/
-      WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on updating the role account of the worker.
-       * Params:
-       * - Id of the worker.
-       * - Role account id of the worker.
-       **/
-      WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the worker storage role.
-       * Params:
-       * - Id of the worker.
-       * - Raw storage field.
-       **/
-      WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
-    };
-    proposalsDiscussion: {
-      /**
-       * Emits on post creation.
-       **/
-      PostCreated: AugmentedEvent<ApiType, [PostId, MemberId]>;
-      /**
-       * Emits on post update.
-       **/
-      PostUpdated: AugmentedEvent<ApiType, [PostId, MemberId]>;
-      /**
-       * Emits on thread creation.
-       **/
-      ThreadCreated: AugmentedEvent<ApiType, [ThreadId, MemberId]>;
-    };
-    proposalsEngine: {
-      /**
-       * Emits on proposal creation.
-       * Params:
-       * - Member id of a proposer.
-       * - Id of a newly created proposal after it was saved in storage.
-       **/
-      ProposalCreated: AugmentedEvent<ApiType, [MemberId, ProposalId]>;
-      /**
-       * Emits on proposal status change.
-       * Params:
-       * - Id of a updated proposal.
-       * - New proposal status
-       **/
-      ProposalStatusUpdated: AugmentedEvent<ApiType, [ProposalId, ProposalStatus]>;
-      /**
-       * Emits on voting for the proposal
-       * Params:
-       * - Voter - member id of a voter.
-       * - Id of a proposal.
-       * - Kind of vote.
-       **/
-      Voted: AugmentedEvent<ApiType, [MemberId, ProposalId, VoteKind]>;
-    };
-    session: {
-      /**
-       * New session has happened. Note that the argument is the \[session_index\], not the block
-       * number as the type might suggest.
-       **/
-      NewSession: AugmentedEvent<ApiType, [SessionIndex]>;
-    };
-    staking: {
-      /**
-       * An account has bonded this amount. \[stash, amount\]
-       * 
-       * NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,
-       * it will not be emitted for staking rewards when they are added to stake.
-       **/
-      Bonded: AugmentedEvent<ApiType, [AccountId, Balance]>;
-      /**
-       * The era payout has been set; the first balance is the validator-payout; the second is
-       * the remainder from the maximum amount of reward.
-       * \[era_index, validator_payout, remainder\]
-       **/
-      EraPayout: AugmentedEvent<ApiType, [EraIndex, Balance, Balance]>;
-      /**
-       * An old slashing report from a prior era was discarded because it could
-       * not be processed. \[session_index\]
-       **/
-      OldSlashingReportDiscarded: AugmentedEvent<ApiType, [SessionIndex]>;
-      /**
-       * The staker has been rewarded by this amount. \[stash, amount\]
-       **/
-      Reward: AugmentedEvent<ApiType, [AccountId, Balance]>;
-      /**
-       * One validator (and its nominators) has been slashed by the given amount.
-       * \[validator, amount\]
-       **/
-      Slash: AugmentedEvent<ApiType, [AccountId, Balance]>;
-      /**
-       * A new solution for the upcoming election has been stored. \[compute\]
-       **/
-      SolutionStored: AugmentedEvent<ApiType, [ElectionCompute]>;
-      /**
-       * A new set of stakers was elected with the given \[compute\].
-       **/
-      StakingElection: AugmentedEvent<ApiType, [ElectionCompute]>;
-      /**
-       * An account has unbonded this amount. \[stash, amount\]
-       **/
-      Unbonded: AugmentedEvent<ApiType, [AccountId, Balance]>;
-      /**
-       * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`
-       * from the unlocking queue. \[stash, amount\]
-       **/
-      Withdrawn: AugmentedEvent<ApiType, [AccountId, Balance]>;
-    };
-    storage: {
-      /**
-       * Bag objects changed.
-       * Params
-       * - bag id
-       * - new total objects size
-       * - new total objects number
-       **/
-      BagObjectsChanged: AugmentedEvent<ApiType, [BagId, u64, u64]>;
-      /**
-       * Emits on changing the size-based pricing of new objects uploaded.
-       * Params
-       * - new data size fee
-       **/
-      DataObjectPerMegabyteFeeUpdated: AugmentedEvent<ApiType, [Balance]>;
-      /**
-       * Emits on data objects deletion from bags.
-       * Params
-       * - account ID for the deletion prize
-       * - bag ID
-       * - data object IDs
-       **/
-      DataObjectsDeleted: AugmentedEvent<ApiType, [AccountId, BagId, BTreeSet<DataObjectId>]>;
-      /**
-       * Emits on moving data objects between bags.
-       * Params
-       * - source bag ID
-       * - destination bag ID
-       * - data object IDs
-       **/
-      DataObjectsMoved: AugmentedEvent<ApiType, [BagId, BagId, BTreeSet<DataObjectId>]>;
-      /**
-       * Emits on uploading data objects.
-       * Params
-       * - data objects IDs
-       * - initial uploading parameters
-       * - deletion prize for objects
-       **/
-      DataObjectsUploaded: AugmentedEvent<ApiType, [Vec<DataObjectId>, UploadParameters, Balance]>;
-      /**
-       * Emits on creating distribution bucket.
-       * Params
-       * - distribution bucket family ID
-       * - accepting new bags
-       * - distribution bucket ID
-       **/
-      DistributionBucketCreated: AugmentedEvent<ApiType, [DistributionBucketFamilyId, bool, DistributionBucketId]>;
-      /**
-       * Emits on deleting distribution bucket.
-       * Params
-       * - distribution bucket family ID
-       * - distribution bucket ID
-       **/
-      DistributionBucketDeleted: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId]>;
-      /**
-       * Emits on creating distribution bucket family.
-       * Params
-       * - distribution family bucket ID
-       **/
-      DistributionBucketFamilyCreated: AugmentedEvent<ApiType, [DistributionBucketFamilyId]>;
-      /**
-       * Emits on deleting distribution bucket family.
-       * Params
-       * - distribution family bucket ID
-       **/
-      DistributionBucketFamilyDeleted: AugmentedEvent<ApiType, [DistributionBucketFamilyId]>;
-      /**
-       * Emits on setting the metadata by a distribution bucket family.
-       * Params
-       * - distribution bucket family ID
-       * - metadata
-       **/
-      DistributionBucketFamilyMetadataSet: AugmentedEvent<ApiType, [DistributionBucketFamilyId, Bytes]>;
-      /**
-       * Emits on accepting a distribution bucket invitation for the operator.
-       * Params
-       * - worker ID
-       * - distribution bucket family ID
-       * - distribution bucket ID
-       **/
-      DistributionBucketInvitationAccepted: AugmentedEvent<ApiType, [WorkerId, DistributionBucketFamilyId, DistributionBucketId]>;
-      /**
-       * Emits on canceling a distribution bucket invitation for the operator.
-       * Params
-       * - distribution bucket family ID
-       * - distribution bucket ID
-       * - operator worker ID
-       **/
-      DistributionBucketInvitationCancelled: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
-      /**
-       * Emits on setting the metadata by a distribution bucket operator.
-       * Params
-       * - worker ID
-       * - distribution bucket family ID
-       * - distribution bucket ID
-       * - metadata
-       **/
-      DistributionBucketMetadataSet: AugmentedEvent<ApiType, [WorkerId, DistributionBucketFamilyId, DistributionBucketId, Bytes]>;
-      /**
-       * Emits on storage bucket mode update (distributing flag).
-       * Params
-       * - distribution bucket family ID
-       * - distribution bucket ID
-       * - distributing
-       **/
-      DistributionBucketModeUpdated: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, bool]>;
-      /**
-       * Emits on creating a distribution bucket invitation for the operator.
-       * Params
-       * - distribution bucket family ID
-       * - distribution bucket ID
-       * - worker ID
-       **/
-      DistributionBucketOperatorInvited: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
-      /**
-       * Emits on the distribution bucket operator removal.
-       * Params
-       * - distribution bucket family ID
-       * - distribution bucket ID
-       * - distribution bucket operator ID
-       **/
-      DistributionBucketOperatorRemoved: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
-      /**
-       * Emits on changing the "Distribution buckets per bag" number limit.
-       * Params
-       * - new limit
-       **/
-      DistributionBucketsPerBagLimitUpdated: AugmentedEvent<ApiType, [u64]>;
-      /**
-       * Emits on storage bucket status update (accepting new bags).
-       * Params
-       * - distribution bucket family ID
-       * - distribution bucket ID
-       * - new status (accepting new bags)
-       **/
-      DistributionBucketStatusUpdated: AugmentedEvent<ApiType, [DistributionBucketFamilyId, DistributionBucketId, bool]>;
-      /**
-       * Emits on updating distribution buckets for bag.
-       * Params
-       * - bag ID
-       * - storage buckets to add ID collection
-       * - storage buckets to remove ID collection
-       **/
-      DistributionBucketsUpdatedForBag: AugmentedEvent<ApiType, [BagId, DistributionBucketFamilyId, BTreeSet<DistributionBucketId>, BTreeSet<DistributionBucketId>]>;
-      /**
-       * Emits on creating a dynamic bag.
-       * Params
-       * - dynamic bag ID
-       * - optional DynamicBagDeletionPrize instance
-       * - assigned storage buckets' IDs
-       * - assigned distribution buckets' IDs
-       **/
-      DynamicBagCreated: AugmentedEvent<ApiType, [DynamicBagId, Option<DynamicBagDeletionPrizeRecord>, BTreeSet<StorageBucketId>, BTreeSet<DistributionBucketId>]>;
-      /**
-       * Emits on deleting a dynamic bag.
-       * Params
-       * - account ID for the deletion prize
-       * - dynamic bag ID
-       **/
-      DynamicBagDeleted: AugmentedEvent<ApiType, [AccountId, DynamicBagId]>;
-      /**
-       * Emits on dynamic bag creation policy update (distribution bucket families).
-       * Params
-       * - dynamic bag type
-       * - families and bucket numbers
-       **/
-      FamiliesInDynamicBagCreationPolicyUpdated: AugmentedEvent<ApiType, [DynamicBagType, BTreeMap<DistributionBucketFamilyId, u32>]>;
-      /**
-       * Emits on updating the number of storage buckets in dynamic bag creation policy.
-       * Params
-       * - dynamic bag type
-       * - new number of storage buckets
-       **/
-      NumberOfStorageBucketsInDynamicBagCreationPolicyUpdated: AugmentedEvent<ApiType, [DynamicBagType, u64]>;
-      /**
-       * Emits on accepting pending data objects.
-       * Params
-       * - storage bucket ID
-       * - worker ID (storage provider ID)
-       * - bag ID
-       * - pending data objects
-       **/
-      PendingDataObjectsAccepted: AugmentedEvent<ApiType, [StorageBucketId, WorkerId, BagId, BTreeSet<DataObjectId>]>;
-      /**
-       * Emits on creating the storage bucket.
-       * Params
-       * - storage bucket ID
-       * - invited worker
-       * - flag "accepting_new_bags"
-       * - size limit for voucher,
-       * - objects limit for voucher,
-       **/
-      StorageBucketCreated: AugmentedEvent<ApiType, [StorageBucketId, Option<WorkerId>, bool, u64, u64]>;
-      /**
-       * Emits on storage bucket deleting.
-       * Params
-       * - storage bucket ID
-       **/
-      StorageBucketDeleted: AugmentedEvent<ApiType, [StorageBucketId]>;
-      /**
-       * Emits on accepting the storage bucket invitation.
-       * Params
-       * - storage bucket ID
-       * - invited worker ID
-       **/
-      StorageBucketInvitationAccepted: AugmentedEvent<ApiType, [StorageBucketId, WorkerId]>;
-      /**
-       * Emits on cancelling the storage bucket invitation.
-       * Params
-       * - storage bucket ID
-       **/
-      StorageBucketInvitationCancelled: AugmentedEvent<ApiType, [StorageBucketId]>;
-      /**
-       * Emits on the storage bucket operator invitation.
-       * Params
-       * - storage bucket ID
-       * - operator worker ID (storage provider ID)
-       **/
-      StorageBucketOperatorInvited: AugmentedEvent<ApiType, [StorageBucketId, WorkerId]>;
-      /**
-       * Emits on the storage bucket operator removal.
-       * Params
-       * - storage bucket ID
-       **/
-      StorageBucketOperatorRemoved: AugmentedEvent<ApiType, [StorageBucketId]>;
-      /**
-       * Emits on changing the "Storage buckets per bag" number limit.
-       * Params
-       * - new limit
-       **/
-      StorageBucketsPerBagLimitUpdated: AugmentedEvent<ApiType, [u64]>;
-      /**
-       * Emits on storage bucket status update.
-       * Params
-       * - storage bucket ID
-       * - new status
-       **/
-      StorageBucketStatusUpdated: AugmentedEvent<ApiType, [StorageBucketId, bool]>;
-      /**
-       * Emits on updating storage buckets for bag.
-       * Params
-       * - bag ID
-       * - storage buckets to add ID collection
-       * - storage buckets to remove ID collection
-       **/
-      StorageBucketsUpdatedForBag: AugmentedEvent<ApiType, [BagId, BTreeSet<StorageBucketId>, BTreeSet<StorageBucketId>]>;
-      /**
-       * Emits on changing the "Storage buckets voucher max limits".
-       * Params
-       * - new objects size limit
-       * - new objects number limit
-       **/
-      StorageBucketsVoucherMaxLimitsUpdated: AugmentedEvent<ApiType, [u64, u64]>;
-      /**
-       * Emits on setting the storage bucket voucher limits.
-       * Params
-       * - storage bucket ID
-       * - new total objects size limit
-       * - new total objects number limit
-       **/
-      StorageBucketVoucherLimitsSet: AugmentedEvent<ApiType, [StorageBucketId, u64, u64]>;
-      /**
-       * Emits on setting the storage operator metadata.
-       * Params
-       * - storage bucket ID
-       * - invited worker ID
-       * - metadata
-       **/
-      StorageOperatorMetadataSet: AugmentedEvent<ApiType, [StorageBucketId, WorkerId, Bytes]>;
-      /**
-       * Emits on updating the blacklist with data hashes.
-       * Params
-       * - hashes to remove from the blacklist
-       * - hashes to add to the blacklist
-       **/
-      UpdateBlacklist: AugmentedEvent<ApiType, [BTreeSet<Cid>, BTreeSet<Cid>]>;
-      /**
-       * Emits on changing the size-based pricing of new objects uploaded.
-       * Params
-       * - new status
-       **/
-      UploadingBlockStatusUpdated: AugmentedEvent<ApiType, [bool]>;
-      /**
-       * Emits on changing the voucher for a storage bucket.
-       * Params
-       * - storage bucket ID
-       * - new voucher
-       **/
-      VoucherChanged: AugmentedEvent<ApiType, [StorageBucketId, Voucher]>;
-    };
-    storageWorkingGroup: {
-      /**
-       * Emits on accepting application for the worker opening.
-       * Params:
-       * - Opening id
-       **/
-      AcceptedApplications: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on terminating the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationTerminated: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on withdrawing the application for the worker/lead opening.
-       * Params:
-       * - Worker application id
-       **/
-      ApplicationWithdrawn: AugmentedEvent<ApiType, [ApplicationId]>;
-      /**
-       * Emits on adding the application for the worker opening.
-       * Params:
-       * - Opening id
-       * - Application id
-       **/
-      AppliedOnOpening: AugmentedEvent<ApiType, [OpeningId, ApplicationId]>;
-      /**
-       * Emits on beginning the application review for the worker/lead opening.
-       * Params:
-       * - Opening id
-       **/
-      BeganApplicationReview: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on setting the leader.
-       * Params:
-       * - Worker id.
-       **/
-      LeaderSet: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on un-setting the leader.
-       * Params:
-       **/
-      LeaderUnset: AugmentedEvent<ApiType, []>;
-      /**
-       * Emits on changing working group mint capacity.
-       * Params:
-       * - mint id.
-       * - new mint balance.
-       **/
-      MintCapacityChanged: AugmentedEvent<ApiType, [MintId, MintBalanceOf]>;
-      /**
-       * Emits on adding new worker opening.
-       * Params:
-       * - Opening id
-       **/
-      OpeningAdded: AugmentedEvent<ApiType, [OpeningId]>;
-      /**
-       * Emits on filling the worker opening.
-       * Params:
-       * - Worker opening id
-       * - Worker application id to the worker id dictionary
-       **/
-      OpeningFilled: AugmentedEvent<ApiType, [OpeningId, ApplicationIdToWorkerIdMap]>;
-      /**
-       * Emits on decreasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeDecreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on increasing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeIncreased: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on slashing the worker/lead stake.
-       * Params:
-       * - worker/lead id.
-       **/
-      StakeSlashed: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on terminating the leader.
-       * Params:
-       * - leader worker id.
-       * - termination rationale text
-       **/
-      TerminatedLeader: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on terminating the worker.
-       * Params:
-       * - worker id.
-       * - termination rationale text
-       **/
-      TerminatedWorker: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on exiting the worker.
-       * Params:
-       * - worker id.
-       * - exit rationale text
-       **/
-      WorkerExited: AugmentedEvent<ApiType, [WorkerId, RationaleText]>;
-      /**
-       * Emits on updating the reward account of the worker.
-       * Params:
-       * - Member id of the worker.
-       * - Reward account id of the worker.
-       **/
-      WorkerRewardAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the reward amount of the worker.
-       * Params:
-       * - Id of the worker.
-       **/
-      WorkerRewardAmountUpdated: AugmentedEvent<ApiType, [WorkerId]>;
-      /**
-       * Emits on updating the role account of the worker.
-       * Params:
-       * - Id of the worker.
-       * - Role account id of the worker.
-       **/
-      WorkerRoleAccountUpdated: AugmentedEvent<ApiType, [WorkerId, AccountId]>;
-      /**
-       * Emits on updating the worker storage role.
-       * Params:
-       * - Id of the worker.
-       * - Raw storage field.
-       **/
-      WorkerStorageUpdated: AugmentedEvent<ApiType, [WorkerId, Bytes]>;
-    };
-    sudo: {
-      /**
-       * The \[sudoer\] just switched identity; the old key is supplied.
-       **/
-      KeyChanged: AugmentedEvent<ApiType, [AccountId]>;
-      /**
-       * A sudo just took place. \[result\]
-       **/
-      Sudid: AugmentedEvent<ApiType, [DispatchResult]>;
-      /**
-       * A sudo just took place. \[result\]
-       **/
-      SudoAsDone: AugmentedEvent<ApiType, [bool]>;
-    };
-    system: {
-      /**
-       * `:code` was updated.
-       **/
-      CodeUpdated: AugmentedEvent<ApiType, []>;
-      /**
-       * An extrinsic failed. \[error, info\]
-       **/
-      ExtrinsicFailed: AugmentedEvent<ApiType, [DispatchError, DispatchInfo]>;
-      /**
-       * An extrinsic completed successfully. \[info\]
-       **/
-      ExtrinsicSuccess: AugmentedEvent<ApiType, [DispatchInfo]>;
-      /**
-       * An \[account\] was reaped.
-       **/
-      KilledAccount: AugmentedEvent<ApiType, [AccountId]>;
-      /**
-       * A new \[account\] was created.
-       **/
-      NewAccount: AugmentedEvent<ApiType, [AccountId]>;
-    };
-    utility: {
-      /**
-       * Batch of dispatches completed fully with no error.
-       **/
-      BatchCompleted: AugmentedEvent<ApiType, []>;
-      /**
-       * Batch of dispatches did not complete fully. Index of first failing dispatch given, as
-       * well as the error. \[index, error\]
-       **/
-      BatchInterrupted: AugmentedEvent<ApiType, [u32, DispatchError]>;
-    };
-  }
-
-  export interface DecoratedEvents<ApiType extends ApiTypes> extends AugmentedEvents<ApiType> {
-  }
-}

+ 0 - 1436
types/augment/augment-api-query.ts

@@ -1,1436 +0,0 @@
-// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
-/* eslint-disable */
-
-import type { Bytes, Option, Vec, bool, u16, u32, u64 } from '@polkadot/types';
-import type { AnyNumber, ITuple, Observable } from '@polkadot/types/types';
-import type { Application, ApplicationId, ApplicationOf, Bag, BagId, Category, CategoryId, Channel, ChannelCategory, ChannelCategoryId, ChannelId, ChannelOwnershipTransferRequest, ChannelOwnershipTransferRequestId, Cid, CuratorGroup, CuratorGroupId, DataObject, DataObjectId, DiscussionPost, DiscussionThread, DistributionBucketFamily, DistributionBucketFamilyId, DistributionBucketId, DynamicBagCreationPolicy, DynamicBagType, ElectionStage, ElectionStake, HiringApplicationId, InputValidationLengthConstraint, MemberId, Membership, MemoText, Mint, MintId, Opening, OpeningId, OpeningOf, PaidMembershipTerms, PaidTermId, Person, PersonId, Playlist, PlaylistId, Post, PostId, ProposalDetailsOf, ProposalId, ProposalOf, Recipient, RecipientId, RewardRelationship, RewardRelationshipId, SealedVote, Seats, Series, SeriesId, Stake, StakeId, StorageBucket, StorageBucketId, Thread, ThreadCounter, ThreadId, TransferableStake, Video, VideoCategory, VideoCategoryId, VideoId, VoteKind, WorkerId, WorkerOf } 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 { Multiplier } from '@polkadot/types/interfaces/txpayment';
-import type { ApiTypes } from '@polkadot/api/types';
-
-declare module '@polkadot/api/types/storage' {
-  export interface AugmentedQueries<ApiType> {
-    authorship: {
-      /**
-       * Author of current block.
-       **/
-      author: AugmentedQuery<ApiType, () => Observable<Option<AccountId>>, []>;
-      /**
-       * Whether uncles were already set in this block.
-       **/
-      didSetUncles: AugmentedQuery<ApiType, () => Observable<bool>, []>;
-      /**
-       * Uncles
-       **/
-      uncles: AugmentedQuery<ApiType, () => Observable<Vec<UncleEntryItem>>, []>;
-    };
-    babe: {
-      /**
-       * Current epoch authorities.
-       **/
-      authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AuthorityId, BabeAuthorityWeight]>>>, []>;
-      /**
-       * Current slot number.
-       **/
-      currentSlot: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * Current epoch index.
-       **/
-      epochIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * The slot at which the first epoch actually started. This is 0
-       * until the first block of the chain.
-       **/
-      genesisSlot: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * Temporary value (cleared at block finalization) which is `Some`
-       * if per-block initialization has already been called for current block.
-       **/
-      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.
-       **/
-      lateness: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Next epoch configuration, if changed.
-       **/
-      nextEpochConfig: AugmentedQuery<ApiType, () => Observable<Option<NextConfigDescriptor>>, []>;
-      /**
-       * Next epoch randomness.
-       **/
-      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
-       * (like everything else on-chain) it is public. For example, it can be
-       * used where a number is needed that cannot have been chosen by an
-       * adversary, for purposes such as public-coin zero-knowledge proofs.
-       **/
-      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.
-       **/
-      segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
-       **/
-      underConstruction: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Randomness>>, [u32]>;
-    };
-    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]>;
-      /**
-       * Any liquidity locks on some account balances.
-       * NOTE: Should only be accessed when setting, changing and freeing a lock.
-       **/
-      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>, []>;
-      /**
-       * The total units issued in the system.
-       **/
-      totalIssuance: AugmentedQuery<ApiType, () => Observable<Balance>, []>;
-    };
-    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
-       **/
-      curatorGroupById: AugmentedQuery<ApiType, (arg: CuratorGroupId | AnyNumber | Uint8Array) => Observable<CuratorGroup>, [CuratorGroupId]>;
-      nextChannelCategoryId: AugmentedQuery<ApiType, () => Observable<ChannelCategoryId>, []>;
-      nextChannelId: AugmentedQuery<ApiType, () => Observable<ChannelId>, []>;
-      nextChannelOwnershipTransferRequestId: AugmentedQuery<ApiType, () => Observable<ChannelOwnershipTransferRequestId>, []>;
-      nextCuratorGroupId: AugmentedQuery<ApiType, () => Observable<CuratorGroupId>, []>;
-      nextPersonId: AugmentedQuery<ApiType, () => Observable<PersonId>, []>;
-      nextPlaylistId: AugmentedQuery<ApiType, () => Observable<PlaylistId>, []>;
-      nextSeriesId: AugmentedQuery<ApiType, () => Observable<SeriesId>, []>;
-      nextVideoCategoryId: AugmentedQuery<ApiType, () => Observable<VideoCategoryId>, []>;
-      nextVideoId: AugmentedQuery<ApiType, () => Observable<VideoId>, []>;
-      personById: AugmentedQuery<ApiType, (arg: PersonId | AnyNumber | Uint8Array) => Observable<Person>, [PersonId]>;
-      playlistById: AugmentedQuery<ApiType, (arg: PlaylistId | AnyNumber | Uint8Array) => Observable<Playlist>, [PlaylistId]>;
-      seriesById: AugmentedQuery<ApiType, (arg: SeriesId | AnyNumber | Uint8Array) => Observable<Series>, [SeriesId]>;
-      videoById: AugmentedQuery<ApiType, (arg: VideoId | AnyNumber | Uint8Array) => Observable<Video>, [VideoId]>;
-      videoCategoryById: AugmentedQuery<ApiType, (arg: VideoCategoryId | AnyNumber | Uint8Array) => Observable<VideoCategory>, [VideoCategoryId]>;
-    };
-    contentWorkingGroup: {
-      /**
-       * Count of active workers.
-       **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Maps identifier to worker application on opening.
-       **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [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.
-       **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
-      /**
-       * The mint currently funding the rewards for this module.
-       **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-      /**
-       * Next identifier value for new worker application.
-       **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
-      /**
-       * Next identifier value for new worker opening.
-       **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
-      /**
-       * Next identifier for 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
-       **/
-      openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Worker application human readable text length limits
-       **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * 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>, []>;
-    };
-    council: {
-      activeCouncil: AugmentedQuery<ApiType, () => Observable<Seats>, []>;
-      /**
-       * Reward amount paid out at each PayoutInterval
-       **/
-      amountPerPayout: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
-      /**
-       * The mint that funds council member rewards and spending proposals budget
-       **/
-      councilMint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-      /**
-       * How many blocks after the reward is created, the first payout will be made
-       **/
-      firstPayoutAfterRewardCreated: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Optional interval in blocks on which a reward payout will be made to each council member
-       **/
-      payoutInterval: AugmentedQuery<ApiType, () => Observable<Option<BlockNumber>>, []>;
-      /**
-       * The reward relationships currently in place. There may not necessarily be a 1-1 correspondance with
-       * the active council, since there are multiple ways of setting/adding/removing council members, some of which
-       * do not involve creating a relationship.
-       **/
-      rewardRelationships: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<RewardRelationshipId>, [AccountId]>;
-      termEndsAt: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-    };
-    councilElection: {
-      announcingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      applicants: AugmentedQuery<ApiType, () => Observable<Vec<AccountId>>, []>;
-      applicantStakes: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<ElectionStake>, [AccountId]>;
-      autoStart: AugmentedQuery<ApiType, () => Observable<bool>, []>;
-      candidacyLimit: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      commitments: AugmentedQuery<ApiType, () => Observable<Vec<Hash>>, []>;
-      councilSize: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      existingStakeHolders: AugmentedQuery<ApiType, () => Observable<Vec<AccountId>>, []>;
-      minCouncilStake: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
-      minVotingStake: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
-      newTermDuration: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      revealingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      round: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      stage: AugmentedQuery<ApiType, () => Observable<Option<ElectionStage>>, []>;
-      transferableStakes: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<TransferableStake>, [AccountId]>;
-      votes: AugmentedQuery<ApiType, (arg: Hash | string | Uint8Array) => Observable<SealedVote>, [Hash]>;
-      votingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-    };
-    distributionWorkingGroup: {
-      /**
-       * Count of active workers.
-       **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Maps identifier to worker application on opening.
-       **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [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.
-       **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
-      /**
-       * The mint currently funding the rewards for this module.
-       **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-      /**
-       * Next identifier value for new worker application.
-       **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
-      /**
-       * Next identifier value for new worker opening.
-       **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
-      /**
-       * Next identifier for 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
-       **/
-      openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Worker application human readable text length limits
-       **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * 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>, []>;
-    };
-    forum: {
-      /**
-       * Map category identifier to corresponding category.
-       **/
-      categoryById: AugmentedQuery<ApiType, (arg: CategoryId | AnyNumber | Uint8Array) => Observable<Category>, [CategoryId]>;
-      categoryDescriptionConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Input constraints
-       * These are all forward looking, that is they are enforced on all
-       * future calls.
-       **/
-      categoryTitleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Account of forum sudo.
-       **/
-      forumSudo: AugmentedQuery<ApiType, () => Observable<Option<AccountId>>, []>;
-      /**
-       * Category identifier value to be used for the next Category created.
-       **/
-      nextCategoryId: AugmentedQuery<ApiType, () => Observable<CategoryId>, []>;
-      /**
-       * Post identifier value to be used for for next post created.
-       **/
-      nextPostId: AugmentedQuery<ApiType, () => Observable<PostId>, []>;
-      /**
-       * Thread identifier value to be used for next Thread in threadById.
-       **/
-      nextThreadId: AugmentedQuery<ApiType, () => Observable<ThreadId>, []>;
-      /**
-       * Map post identifier to corresponding post.
-       **/
-      postById: AugmentedQuery<ApiType, (arg: PostId | AnyNumber | Uint8Array) => Observable<Post>, [PostId]>;
-      postModerationRationaleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      postTextConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Map thread identifier to corresponding thread.
-       **/
-      threadById: AugmentedQuery<ApiType, (arg: ThreadId | AnyNumber | Uint8Array) => Observable<Thread>, [ThreadId]>;
-      threadModerationRationaleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      threadTitleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-    };
-    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<ApplicationOf>, [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.
-       **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
-      /**
-       * The mint currently funding the rewards for this module.
-       **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-      /**
-       * Next identifier value for new worker application.
-       **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
-      /**
-       * Next identifier value for new worker opening.
-       **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
-      /**
-       * Next identifier for 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
-       **/
-      openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Worker application human readable text length limits
-       **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * 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>, []>;
-    };
-    grandpa: {
-      /**
-       * The number of changes (both in terms of keys and underlying economic responsibilities)
-       * in the "set" of Grandpa validators from genesis.
-       **/
-      currentSetId: AugmentedQuery<ApiType, () => Observable<SetId>, []>;
-      /**
-       * next block number where we can force a change.
-       **/
-      nextForced: AugmentedQuery<ApiType, () => Observable<Option<BlockNumber>>, []>;
-      /**
-       * Pending change: (signaled at, scheduled change).
-       **/
-      pendingChange: AugmentedQuery<ApiType, () => Observable<Option<StoredPendingChange>>, []>;
-      /**
-       * 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]>;
-      /**
-       * `true` if we are currently stalled.
-       **/
-      stalled: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[BlockNumber, BlockNumber]>>>, []>;
-      /**
-       * State of the current authority set.
-       **/
-      state: AugmentedQuery<ApiType, () => Observable<StoredState>, []>;
-    };
-    hiring: {
-      /**
-       * Applications
-       **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>, [ApplicationId]>;
-      /**
-       * Internal purpose of given stake, i.e. fro what application, and whether for the role or for the application.
-       **/
-      applicationIdByStakingId: AugmentedQuery<ApiType, (arg: StakeId | AnyNumber | Uint8Array) => Observable<ApplicationId>, [StakeId]>;
-      /**
-       * Identifier for next application to be added.
-       **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
-      /**
-       * Identifier for next opening to be added.
-       **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
-      /**
-       * Openings.
-       **/
-      openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>, [OpeningId]>;
-    };
-    imOnline: {
-      /**
-       * For each session index, we keep a mapping of `T::ValidatorId` to the
-       * number of blocks authored by the given authority.
-       **/
-      authoredBlocks: AugmentedQuery<ApiType, (arg1: SessionIndex | AnyNumber | Uint8Array, arg2: 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
-       * in the current session, so that the heartbeat later on will not be necessary.
-       **/
-      heartbeatAfter: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * The current set of keys that may issue a heartbeat.
-       **/
-      keys: AugmentedQuery<ApiType, () => Observable<Vec<AuthorityId>>, []>;
-      /**
-       * For each session index, we keep a mapping of `AuthIndex` to
-       * `offchain::OpaqueNetworkState`.
-       **/
-      receivedHeartbeats: AugmentedQuery<ApiType, (arg1: SessionIndex | AnyNumber | Uint8Array, arg2: AuthIndex | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [SessionIndex, AuthIndex]>;
-    };
-    members: {
-      /**
-       * Active Paid membership terms
-       **/
-      activePaidMembershipTerms: AugmentedQuery<ApiType, () => Observable<Vec<PaidTermId>>, []>;
-      maxAboutTextLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      maxAvatarUriLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      maxHandleLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Registered unique handles and their mapping to their owner
-       **/
-      memberIdByHandle: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<MemberId>, [Bytes]>;
-      /**
-       * Mapping of a controller account id to vector of member ids it controls
-       **/
-      memberIdsByControllerAccountId: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Vec<MemberId>>, [AccountId]>;
-      /**
-       * Mapping of a root account id to vector of member ids it controls.
-       **/
-      memberIdsByRootAccountId: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Vec<MemberId>>, [AccountId]>;
-      /**
-       * Mapping of member's id to their membership profile
-       **/
-      membershipById: AugmentedQuery<ApiType, (arg: MemberId | AnyNumber | Uint8Array) => Observable<Membership>, [MemberId]>;
-      minHandleLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Is the platform is accepting new members or not
-       **/
-      newMembershipsAllowed: AugmentedQuery<ApiType, () => Observable<bool>, []>;
-      /**
-       * 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.
-       **/
-      nextMemberId: AugmentedQuery<ApiType, () => Observable<MemberId>, []>;
-      /**
-       * Next paid membership terms id
-       **/
-      nextPaidMembershipTermsId: AugmentedQuery<ApiType, () => Observable<PaidTermId>, []>;
-      /**
-       * Paid membership terms record
-       **/
-      paidMembershipTermsById: AugmentedQuery<ApiType, (arg: PaidTermId | AnyNumber | Uint8Array) => Observable<PaidMembershipTerms>, [PaidTermId]>;
-      screeningAuthority: AugmentedQuery<ApiType, () => Observable<AccountId>, []>;
-    };
-    memo: {
-      maxMemoLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      memo: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<MemoText>, [AccountId]>;
-    };
-    minting: {
-      /**
-       * Mints
-       **/
-      mints: AugmentedQuery<ApiType, (arg: MintId | AnyNumber | Uint8Array) => Observable<Mint>, [MintId]>;
-      /**
-       * The number of mints created.
-       **/
-      mintsCreated: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-    };
-    offences: {
-      /**
-       * A vector of reports of the same kind that happened at the same time slot.
-       **/
-      concurrentReportsIndex: AugmentedQuery<ApiType, (arg1: Kind | string | Uint8Array, arg2: OpaqueTimeSlot | string | Uint8Array) => Observable<Vec<ReportIdOf>>, [Kind, OpaqueTimeSlot]>;
-      /**
-       * Deferred reports that have been rejected by the offence handler and need to be submitted
-       * at a later time.
-       **/
-      deferredOffences: AugmentedQuery<ApiType, () => Observable<Vec<DeferredOffenceOf>>, []>;
-      /**
-       * The primary structure that holds all offence records keyed by report identifiers.
-       **/
-      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.
-       **/
-      reportsByKindIndex: AugmentedQuery<ApiType, (arg: Kind | string | Uint8Array) => Observable<Bytes>, [Kind]>;
-    };
-    operationsWorkingGroupAlpha: {
-      /**
-       * Count of active workers.
-       **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Maps identifier to worker application on opening.
-       **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [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.
-       **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
-      /**
-       * The mint currently funding the rewards for this module.
-       **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-      /**
-       * Next identifier value for new worker application.
-       **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
-      /**
-       * Next identifier value for new worker opening.
-       **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
-      /**
-       * Next identifier for 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
-       **/
-      openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Worker application human readable text length limits
-       **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * 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>, []>;
-    };
-    operationsWorkingGroupBeta: {
-      /**
-       * Count of active workers.
-       **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Maps identifier to worker application on opening.
-       **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [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.
-       **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
-      /**
-       * The mint currently funding the rewards for this module.
-       **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-      /**
-       * Next identifier value for new worker application.
-       **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
-      /**
-       * Next identifier value for new worker opening.
-       **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
-      /**
-       * Next identifier for 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
-       **/
-      openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Worker application human readable text length limits
-       **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * 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>, []>;
-    };
-    operationsWorkingGroupGamma: {
-      /**
-       * Count of active workers.
-       **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Maps identifier to worker application on opening.
-       **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [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.
-       **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
-      /**
-       * The mint currently funding the rewards for this module.
-       **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-      /**
-       * Next identifier value for new worker application.
-       **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
-      /**
-       * Next identifier value for new worker opening.
-       **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
-      /**
-       * Next identifier for 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
-       **/
-      openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Worker application human readable text length limits
-       **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * 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>, []>;
-    };
-    proposalsCodex: {
-      /**
-       * Grace period for the 'add working group opening' proposal
-       **/
-      addWorkingGroupOpeningProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'add working group opening' proposal
-       **/
-      addWorkingGroupOpeningProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'begin review working group leader applications' proposal
-       **/
-      beginReviewWorkingGroupLeaderApplicationsProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'begin review working group leader applications' proposal
-       **/
-      beginReviewWorkingGroupLeaderApplicationsProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'decrease working group leader stake' proposal
-       **/
-      decreaseWorkingGroupLeaderStakeProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'decrease working group leader stake' proposal
-       **/
-      decreaseWorkingGroupLeaderStakeProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'fill working group leader opening' proposal
-       **/
-      fillWorkingGroupLeaderOpeningProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'fill working group leader opening' proposal
-       **/
-      fillWorkingGroupLeaderOpeningProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Map proposal id to proposal details
-       **/
-      proposalDetailsByProposalId: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<ProposalDetailsOf>, [ProposalId]>;
-      /**
-       * Grace period for the 'runtime upgrade' proposal
-       **/
-      runtimeUpgradeProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'runtime upgrade' proposal
-       **/
-      runtimeUpgradeProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'set election parameters' proposal
-       **/
-      setElectionParametersProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'set election parameters' proposal
-       **/
-      setElectionParametersProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'set validator count' proposal
-       **/
-      setValidatorCountProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'set validator count' proposal
-       **/
-      setValidatorCountProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'set working group leader reward' proposal
-       **/
-      setWorkingGroupLeaderRewardProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'set working group leader reward' proposal
-       **/
-      setWorkingGroupLeaderRewardProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'set working group mint capacity' proposal
-       **/
-      setWorkingGroupMintCapacityProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'set working group mint capacity' proposal
-       **/
-      setWorkingGroupMintCapacityProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'slash working group leader stake' proposal
-       **/
-      slashWorkingGroupLeaderStakeProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'slash working group leader stake' proposal
-       **/
-      slashWorkingGroupLeaderStakeProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'spending' proposal
-       **/
-      spendingProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'spending' proposal
-       **/
-      spendingProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'terminate working group leader role' proposal
-       **/
-      terminateWorkingGroupLeaderRoleProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'terminate working group leader role' proposal
-       **/
-      terminateWorkingGroupLeaderRoleProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Grace period for the 'text' proposal
-       **/
-      textProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Voting period for the 'text' proposal
-       **/
-      textProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Map proposal id to its discussion thread id
-       **/
-      threadIdByProposalId: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<ThreadId>, [ProposalId]>;
-    };
-    proposalsDiscussion: {
-      /**
-       * Last author thread counter (part of the antispam mechanism)
-       **/
-      lastThreadAuthorCounter: AugmentedQuery<ApiType, () => Observable<Option<ThreadCounter>>, []>;
-      /**
-       * Count of all posts that have been created.
-       **/
-      postCount: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * Map thread id and post id to corresponding post.
-       **/
-      postThreadIdByPostId: AugmentedQuery<ApiType, (arg1: ThreadId | AnyNumber | Uint8Array, arg2: PostId | AnyNumber | Uint8Array) => Observable<DiscussionPost>, [ThreadId, PostId]>;
-      /**
-       * Map thread identifier to corresponding thread.
-       **/
-      threadById: AugmentedQuery<ApiType, (arg: ThreadId | AnyNumber | Uint8Array) => Observable<DiscussionThread>, [ThreadId]>;
-      /**
-       * Count of all threads that have been created.
-       **/
-      threadCount: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-    };
-    proposalsEngine: {
-      /**
-       * Count of active proposals.
-       **/
-      activeProposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Ids of proposals that are open for voting (have not been finalized yet).
-       **/
-      activeProposalIds: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<ITuple<[]>>, [ProposalId]>;
-      /**
-       * Map proposal executable code by proposal id.
-       **/
-      dispatchableCallCode: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<Bytes>, [ProposalId]>;
-      /**
-       * Ids of proposals that were approved and theirs grace period was not expired.
-       **/
-      pendingExecutionProposalIds: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<ITuple<[]>>, [ProposalId]>;
-      /**
-       * Count of all proposals that have been created.
-       **/
-      proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Map proposal by its id.
-       **/
-      proposals: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<ProposalOf>, [ProposalId]>;
-      /**
-       * Map proposal id by stake id. Required by StakingEventsHandler callback call
-       **/
-      stakesProposals: AugmentedQuery<ApiType, (arg: StakeId | AnyNumber | Uint8Array) => Observable<ProposalId>, [StakeId]>;
-      /**
-       * Double map for preventing duplicate votes. Should be cleaned after usage.
-       **/
-      voteExistsByProposalByVoter: AugmentedQuery<ApiType, (arg1: ProposalId | AnyNumber | Uint8Array, arg2: MemberId | AnyNumber | Uint8Array) => Observable<VoteKind>, [ProposalId, MemberId]>;
-    };
-    randomnessCollectiveFlip: {
-      /**
-       * Series of block headers from the last 81 blocks that acts as random seed material. This
-       * is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of
-       * the oldest hash.
-       **/
-      randomMaterial: AugmentedQuery<ApiType, () => Observable<Vec<Hash>>, []>;
-    };
-    recurringRewards: {
-      recipients: AugmentedQuery<ApiType, (arg: RecipientId | AnyNumber | Uint8Array) => Observable<Recipient>, [RecipientId]>;
-      recipientsCreated: AugmentedQuery<ApiType, () => Observable<RecipientId>, []>;
-      rewardRelationships: AugmentedQuery<ApiType, (arg: RewardRelationshipId | AnyNumber | Uint8Array) => Observable<RewardRelationship>, [RewardRelationshipId]>;
-      rewardRelationshipsCreated: AugmentedQuery<ApiType, () => Observable<RewardRelationshipId>, []>;
-    };
-    session: {
-      /**
-       * Current index of the session.
-       **/
-      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>>, []>;
-      /**
-       * The owner of a key. The key is the `KeyTypeId` + the encoded key.
-       **/
-      keyOwner: AugmentedQuery<ApiType, (arg: ITuple<[KeyTypeId, Bytes]> | [KeyTypeId | AnyNumber | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<ValidatorId>>, [ITuple<[KeyTypeId, Bytes]>]>;
-      /**
-       * The next session keys for a validator.
-       **/
-      nextKeys: AugmentedQuery<ApiType, (arg: ValidatorId | string | Uint8Array) => Observable<Option<Keys>>, [ValidatorId]>;
-      /**
-       * True if the underlying economic identities or weighting behind the validators
-       * has changed in the queued validator set.
-       **/
-      queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []>;
-      /**
-       * The queued keys for the next session. When the next session begins, these keys
-       * will be used to determine the validator's session keys.
-       **/
-      queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[ValidatorId, Keys]>>>, []>;
-      /**
-       * The current set of validators.
-       **/
-      validators: AugmentedQuery<ApiType, () => Observable<Vec<ValidatorId>>, []>;
-    };
-    stake: {
-      /**
-       * Maps identifiers to a stake.
-       **/
-      stakes: AugmentedQuery<ApiType, (arg: StakeId | AnyNumber | Uint8Array) => Observable<Stake>, [StakeId]>;
-      /**
-       * Identifier value for next stake, and count of total stakes created (not necessarily the number of current
-       * stakes in the Stakes map as stakes can be removed.)
-       **/
-      stakesCreated: AugmentedQuery<ApiType, () => Observable<StakeId>, []>;
-    };
-    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`.
-       **/
-      activeEra: AugmentedQuery<ApiType, () => Observable<Option<ActiveEraInfo>>, []>;
-      /**
-       * Map from all locked "stash" accounts to the controller account.
-       **/
-      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]`
-       **/
-      bondedEras: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[EraIndex, SessionIndex]>>>, []>;
-      /**
-       * The amount of currency given to reporters of a slash event which was
-       * canceled by extraordinary circumstances (e.g. governance).
-       **/
-      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.
-       **/
-      currentEra: AugmentedQuery<ApiType, () => Observable<Option<EraIndex>>, []>;
-      /**
-       * The earliest era for which we have a pending, unapplied slash.
-       **/
-      earliestUnappliedSlash: AugmentedQuery<ApiType, () => Observable<Option<EraIndex>>, []>;
-      /**
-       * Flag to control the execution of the offchain election. When `Open(_)`, we accept
-       * solutions to be submitted.
-       **/
-      eraElectionStatus: AugmentedQuery<ApiType, () => Observable<ElectionStatus>, []>;
-      /**
-       * Rewards for the last `HISTORY_DEPTH` eras.
-       * If reward hasn't been set or has been removed then 0 reward is returned.
-       **/
-      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: AugmentedQuery<ApiType, (arg1: EraIndex | AnyNumber | Uint8Array, arg2: 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.
-       **/
-      erasStakersClipped: AugmentedQuery<ApiType, (arg1: EraIndex | AnyNumber | Uint8Array, arg2: AccountId | string | Uint8Array) => Observable<Exposure>, [EraIndex, AccountId]>;
-      /**
-       * The session index at which the era start for the last `HISTORY_DEPTH` eras.
-       **/
-      erasStartSessionIndex: AugmentedQuery<ApiType, (arg: EraIndex | AnyNumber | Uint8Array) => Observable<Option<SessionIndex>>, [EraIndex]>;
-      /**
-       * The total amount staked for the last `HISTORY_DEPTH` eras.
-       * If total hasn't been set or has been removed then 0 stake is returned.
-       **/
-      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: AugmentedQuery<ApiType, (arg1: EraIndex | AnyNumber | Uint8Array, arg2: 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]>;
-      /**
-       * Mode of era forcing.
-       **/
-      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.
-       **/
-      historyDepth: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
-       * easy to initialize and the performance hit is minimal (we expect no more than four
-       * invulnerables) and restricted to testnets.
-       **/
-      invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId>>, []>;
-      /**
-       * True if the current **planned** session is final. Note that this does not take era
-       * forcing into account.
-       **/
-      isCurrentSessionFinal: AugmentedQuery<ApiType, () => Observable<bool>, []>;
-      /**
-       * Map from all (unlocked) "controller" accounts to the info regarding the staking.
-       **/
-      ledger: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Option<StakingLedger>>, [AccountId]>;
-      /**
-       * Minimum number of staking participants before emergency conditions are imposed.
-       **/
-      minimumValidatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * The map from nominator stash key to the set of stash keys of all validators to nominate.
-       **/
-      nominators: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Option<Nominations>>, [AccountId]>;
-      /**
-       * All slashing events on nominators, mapped by era to the highest slash value of the era.
-       **/
-      nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: EraIndex | AnyNumber | Uint8Array, arg2: AccountId | string | Uint8Array) => Observable<Option<BalanceOf>>, [EraIndex, AccountId]>;
-      /**
-       * Where the reward payment should be made. Keyed by stash.
-       **/
-      payee: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<RewardDestination>, [AccountId]>;
-      /**
-       * The next validator set. At the end of an era, if this is available (potentially from the
-       * result of an offchain worker), it is immediately used. Otherwise, the on-chain election
-       * is executed.
-       **/
-      queuedElected: AugmentedQuery<ApiType, () => Observable<Option<ElectionResult>>, []>;
-      /**
-       * The score of the current [`QueuedElected`].
-       **/
-      queuedScore: AugmentedQuery<ApiType, () => Observable<Option<ElectionScore>>, []>;
-      /**
-       * Slashing spans for stash accounts.
-       **/
-      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>, []>;
-      /**
-       * Snapshot of nominators at the beginning of the current election window. This should only
-       * have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`.
-       **/
-      snapshotNominators: AugmentedQuery<ApiType, () => Observable<Option<Vec<AccountId>>>, []>;
-      /**
-       * Snapshot of validators at the beginning of the current election window. This should only
-       * have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`.
-       **/
-      snapshotValidators: AugmentedQuery<ApiType, () => Observable<Option<Vec<AccountId>>>, []>;
-      /**
-       * Records information about the maximum slash of a stash within a slashing span,
-       * as well as how much reward has been paid out.
-       **/
-      spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId, SpanIndex]> | [AccountId | string | Uint8Array, SpanIndex | AnyNumber | Uint8Array]) => Observable<SpanRecord>, [ITuple<[AccountId, SpanIndex]>]>;
-      /**
-       * 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>, []>;
-      /**
-       * All unapplied slashes that are queued for later.
-       **/
-      unappliedSlashes: AugmentedQuery<ApiType, (arg: EraIndex | AnyNumber | Uint8Array) => Observable<Vec<UnappliedSlash>>, [EraIndex]>;
-      /**
-       * The ideal number of staking participants.
-       **/
-      validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * The map from (wannabe) validator stash key to the preferences of that validator.
-       **/
-      validators: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<ValidatorPrefs>, [AccountId]>;
-      /**
-       * All slashing events on validators, mapped by era to the highest slash proportion
-       * and slash value of the era.
-       **/
-      validatorSlashInEra: AugmentedQuery<ApiType, (arg1: EraIndex | AnyNumber | Uint8Array, arg2: AccountId | string | Uint8Array) => Observable<Option<ITuple<[Perbill, BalanceOf]>>>, [EraIndex, AccountId]>;
-    };
-    storage: {
-      /**
-       * Bags storage map.
-       **/
-      bags: AugmentedQuery<ApiType, (arg: BagId | { Static: any } | { Dynamic: any } | string | Uint8Array) => Observable<Bag>, [BagId]>;
-      /**
-       * Blacklisted data object hashes.
-       **/
-      blacklist: AugmentedQuery<ApiType, (arg: Cid | string | Uint8Array) => Observable<ITuple<[]>>, [Cid]>;
-      /**
-       * Blacklist collection counter.
-       **/
-      currentBlacklistSize: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * Size based pricing of new objects uploaded.
-       **/
-      dataObjectPerMegabyteFee: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
-      /**
-       * 'Data objects for bags' storage double map.
-       **/
-      dataObjectsById: AugmentedQuery<ApiType, (arg1: BagId | { Static: any } | { Dynamic: any } | string | Uint8Array, arg2: DataObjectId | AnyNumber | Uint8Array) => Observable<DataObject>, [BagId, DataObjectId]>;
-      /**
-       * Distribution bucket families.
-       **/
-      distributionBucketFamilyById: AugmentedQuery<ApiType, (arg: DistributionBucketFamilyId | AnyNumber | Uint8Array) => Observable<DistributionBucketFamily>, [DistributionBucketFamilyId]>;
-      /**
-       * Total number of distribution bucket families in the system.
-       **/
-      distributionBucketFamilyNumber: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * "Distribution buckets per bag" number limit.
-       **/
-      distributionBucketsPerBagLimit: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * DynamicBagCreationPolicy by bag type storage map.
-       **/
-      dynamicBagCreationPolicies: AugmentedQuery<ApiType, (arg: DynamicBagType | 'Member' | 'Channel' | number | Uint8Array) => Observable<DynamicBagCreationPolicy>, [DynamicBagType]>;
-      /**
-       * Data object id counter. Starts at zero.
-       **/
-      nextDataObjectId: AugmentedQuery<ApiType, () => Observable<DataObjectId>, []>;
-      /**
-       * Distribution bucket family id counter. Starts at zero.
-       **/
-      nextDistributionBucketFamilyId: AugmentedQuery<ApiType, () => Observable<DistributionBucketFamilyId>, []>;
-      /**
-       * Distribution bucket id counter. Starts at zero.
-       **/
-      nextDistributionBucketId: AugmentedQuery<ApiType, () => Observable<DistributionBucketId>, []>;
-      /**
-       * Storage bucket id counter. Starts at zero.
-       **/
-      nextStorageBucketId: AugmentedQuery<ApiType, () => Observable<StorageBucketId>, []>;
-      /**
-       * Storage buckets.
-       **/
-      storageBucketById: AugmentedQuery<ApiType, (arg: StorageBucketId | AnyNumber | Uint8Array) => Observable<StorageBucket>, [StorageBucketId]>;
-      /**
-       * "Storage buckets per bag" number limit.
-       **/
-      storageBucketsPerBagLimit: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * Defines whether all new uploads blocked
-       **/
-      uploadingBlocked: AugmentedQuery<ApiType, () => Observable<bool>, []>;
-      /**
-       * "Max objects number for a storage  bucket voucher" number limit.
-       **/
-      voucherMaxObjectsNumberLimit: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-      /**
-       * "Max objects size for a storage bucket voucher" number limit.
-       **/
-      voucherMaxObjectsSizeLimit: AugmentedQuery<ApiType, () => Observable<u64>, []>;
-    };
-    storageWorkingGroup: {
-      /**
-       * Count of active workers.
-       **/
-      activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
-      /**
-       * Maps identifier to worker application on opening.
-       **/
-      applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [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.
-       **/
-      memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
-      /**
-       * The mint currently funding the rewards for this module.
-       **/
-      mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
-      /**
-       * Next identifier value for new worker application.
-       **/
-      nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
-      /**
-       * Next identifier value for new worker opening.
-       **/
-      nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
-      /**
-       * Next identifier for 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
-       **/
-      openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * Worker application human readable text length limits
-       **/
-      workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
-      /**
-       * 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>, []>;
-    };
-    sudo: {
-      /**
-       * The `AccountId` of the sudo key.
-       **/
-      key: AugmentedQuery<ApiType, () => Observable<AccountId>, []>;
-    };
-    system: {
-      /**
-       * The full account information for a particular account ID.
-       **/
-      account: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<AccountInfo>, [AccountId]>;
-      /**
-       * Total length (in bytes) for all extrinsics put together, for the current block.
-       **/
-      allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
-      /**
-       * Map of block numbers to block hashes.
-       **/
-      blockHash: AugmentedQuery<ApiType, (arg: BlockNumber | AnyNumber | Uint8Array) => Observable<Hash>, [BlockNumber]>;
-      /**
-       * The current weight for the block.
-       **/
-      blockWeight: AugmentedQuery<ApiType, () => Observable<ExtrinsicsWeight>, []>;
-      /**
-       * Digest of the current block, also part of the block header.
-       **/
-      digest: AugmentedQuery<ApiType, () => Observable<DigestOf>, []>;
-      /**
-       * The number of events in the `Events<T>` list.
-       **/
-      eventCount: AugmentedQuery<ApiType, () => Observable<EventIndex>, []>;
-      /**
-       * Events deposited for the current block.
-       **/
-      events: AugmentedQuery<ApiType, () => Observable<Vec<EventRecord>>, []>;
-      /**
-       * 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.
-       **/
-      eventTopics: AugmentedQuery<ApiType, (arg: Hash | string | Uint8Array) => Observable<Vec<ITuple<[BlockNumber, EventIndex]>>>, [Hash]>;
-      /**
-       * The execution phase of the block.
-       **/
-      executionPhase: AugmentedQuery<ApiType, () => Observable<Option<Phase>>, []>;
-      /**
-       * Total extrinsics count for the current block.
-       **/
-      extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
-      /**
-       * Extrinsics data for the current block (maps an extrinsic's index to its data).
-       **/
-      extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]>;
-      /**
-       * Extrinsics root of the current block, also part of the block header.
-       **/
-      extrinsicsRoot: AugmentedQuery<ApiType, () => Observable<Hash>, []>;
-      /**
-       * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
-       **/
-      lastRuntimeUpgrade: AugmentedQuery<ApiType, () => Observable<Option<LastRuntimeUpgradeInfo>>, []>;
-      /**
-       * The current block number being processed. Set by `execute_block`.
-       **/
-      number: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
-      /**
-       * Hash of the previous block.
-       **/
-      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>, []>;
-    };
-    timestamp: {
-      /**
-       * Did the timestamp get updated in this block?
-       **/
-      didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []>;
-      /**
-       * Current time for the current block.
-       **/
-      now: AugmentedQuery<ApiType, () => Observable<Moment>, []>;
-    };
-    transactionPayment: {
-      nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<Multiplier>, []>;
-      storageVersion: AugmentedQuery<ApiType, () => Observable<Releases>, []>;
-    };
-  }
-
-  export interface QueryableStorage<ApiType extends ApiTypes> extends AugmentedQueries<ApiType> {
-  }
-}

+ 0 - 556
types/augment/augment-api-rpc.ts

@@ -1,556 +0,0 @@
-// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
-/* eslint-disable */
-
-import type { Bytes, HashMap, Json, Metadata, Null, Option, StorageKey, Text, U256, U64, Vec, bool, u32, u64 } from '@polkadot/types';
-import type { AnyNumber, Codec, IExtrinsic, Observable } from '@polkadot/types/types';
-import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
-import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
-import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy';
-import type { BlockHash } from '@polkadot/types/interfaces/chain';
-import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
-import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
-import type { ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from '@polkadot/types/interfaces/contracts';
-import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
-import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
-import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
-import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
-import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr';
-import type { StorageKind } from '@polkadot/types/interfaces/offchain';
-import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
-import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
-import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime';
-import type { ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state';
-import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from '@polkadot/types/interfaces/system';
-
-declare module '@polkadot/rpc-core/types.jsonrpc' {
-  export interface RpcInterface {
-    author: {
-      /**
-       * Returns true if the keystore has private keys for the given public key and key type.
-       **/
-      hasKey: AugmentedRpc<(publicKey: Bytes | string | Uint8Array, keyType: Text | string) => Observable<bool>>;
-      /**
-       * Returns true if the keystore has private keys for the given session public keys.
-       **/
-      hasSessionKeys: AugmentedRpc<(sessionKeys: Bytes | string | Uint8Array) => Observable<bool>>;
-      /**
-       * Insert a key into the keystore.
-       **/
-      insertKey: AugmentedRpc<(keyType: Text | string, suri: Text | string, publicKey: Bytes | string | Uint8Array) => Observable<Bytes>>;
-      /**
-       * Returns all pending extrinsics, potentially grouped by sender
-       **/
-      pendingExtrinsics: AugmentedRpc<() => Observable<Vec<Extrinsic>>>;
-      /**
-       * Remove given extrinsic from the pool and temporarily ban it to prevent reimporting
-       **/
-      removeExtrinsic: AugmentedRpc<(bytesOrHash: Vec<ExtrinsicOrHash> | (ExtrinsicOrHash | { Hash: any } | { Extrinsic: any } | string | Uint8Array)[]) => Observable<Vec<Hash>>>;
-      /**
-       * Generate new session keys and returns the corresponding public keys
-       **/
-      rotateKeys: AugmentedRpc<() => Observable<Bytes>>;
-      /**
-       * Submit and subscribe to watch an extrinsic until unsubscribed
-       **/
-      submitAndWatchExtrinsic: AugmentedRpc<(extrinsic: IExtrinsic) => Observable<ExtrinsicStatus>>;
-      /**
-       * Submit a fully formatted extrinsic for block inclusion
-       **/
-      submitExtrinsic: AugmentedRpc<(extrinsic: IExtrinsic) => Observable<Hash>>;
-    };
-    babe: {
-      /**
-       * Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore
-       **/
-      epochAuthorship: AugmentedRpc<() => Observable<HashMap<AuthorityId, EpochAuthorship>>>;
-    };
-    beefy: {
-      /**
-       * Returns the block most recently finalized by BEEFY, alongside side its justification.
-       **/
-      subscribeJustifications: AugmentedRpc<() => Observable<BeefySignedCommitment>>;
-    };
-    chain: {
-      /**
-       * Get header and body of a relay chain block
-       **/
-      getBlock: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<SignedBlock>>;
-      /**
-       * Get the block hash for a specific block
-       **/
-      getBlockHash: AugmentedRpc<(blockNumber?: BlockNumber | AnyNumber | Uint8Array) => Observable<BlockHash>>;
-      /**
-       * Get hash of the last finalized block in the canon chain
-       **/
-      getFinalizedHead: AugmentedRpc<() => Observable<BlockHash>>;
-      /**
-       * Retrieves the header for a specific block
-       **/
-      getHeader: AugmentedRpc<(hash?: BlockHash | string | Uint8Array) => Observable<Header>>;
-      /**
-       * Retrieves the newest header via subscription
-       **/
-      subscribeAllHeads: AugmentedRpc<() => Observable<Header>>;
-      /**
-       * Retrieves the best finalized header via subscription
-       **/
-      subscribeFinalizedHeads: AugmentedRpc<() => Observable<Header>>;
-      /**
-       * Retrieves the best header via subscription
-       **/
-      subscribeNewHeads: AugmentedRpc<() => Observable<Header>>;
-    };
-    childstate: {
-      /**
-       * Returns the keys with prefix from a child storage, leave empty to get all the keys
-       **/
-      getKeys: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, prefix: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
-      /**
-       * Returns the keys with prefix from a child storage with pagination support
-       **/
-      getKeysPaged: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, prefix: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
-      /**
-       * Returns a child storage entry at a specific block state
-       **/
-      getStorage: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<StorageData>>>;
-      /**
-       * Returns the hash of a child storage entry at a block state
-       **/
-      getStorageHash: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<Hash>>>;
-      /**
-       * Returns the size of a child storage entry at a block state
-       **/
-      getStorageSize: AugmentedRpc<(childKey: PrefixedStorageKey | string | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: Hash | string | Uint8Array) => Observable<Option<u64>>>;
-    };
-    contracts: {
-      /**
-       * Executes a call to a contract
-       **/
-      call: AugmentedRpc<(callRequest: ContractCallRequest | { origin?: any; dest?: any; value?: any; gasLimit?: any; inputData?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractExecResult>>;
-      /**
-       * Returns the value under a specified storage key in a contract
-       **/
-      getStorage: AugmentedRpc<(address: AccountId | string | Uint8Array, key: H256 | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<Bytes>>>;
-      /**
-       * Instantiate a new contract
-       **/
-      instantiate: AugmentedRpc<(request: InstantiateRequest | { origin?: any; endowment?: any; gasLimit?: any; code?: any; data?: any; salt?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractInstantiateResult>>;
-      /**
-       * Returns the projected time a given contract will be able to sustain paying its rent
-       **/
-      rentProjection: AugmentedRpc<(address: AccountId | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<BlockNumber>>>;
-    };
-    engine: {
-      /**
-       * Instructs the manual-seal authorship task to create a new block
-       **/
-      createBlock: AugmentedRpc<(createEmpty: bool | boolean | Uint8Array, finalize: bool | boolean | Uint8Array, parentHash?: BlockHash | string | Uint8Array) => Observable<CreatedBlock>>;
-      /**
-       * Instructs the manual-seal authorship task to finalize a block
-       **/
-      finalizeBlock: AugmentedRpc<(hash: BlockHash | string | Uint8Array, justification?: Justification) => Observable<bool>>;
-    };
-    eth: {
-      /**
-       * Returns accounts list.
-       **/
-      accounts: AugmentedRpc<() => Observable<Vec<H160>>>;
-      /**
-       * Returns the blockNumber
-       **/
-      blockNumber: AugmentedRpc<() => Observable<U256>>;
-      /**
-       * Call contract, returning the output data.
-       **/
-      call: AugmentedRpc<(request: EthCallRequest | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;
-      /**
-       * Returns the chain ID used for transaction signing at the current best block. None is returned if not available.
-       **/
-      chainId: AugmentedRpc<() => Observable<U64>>;
-      /**
-       * Returns block author.
-       **/
-      coinbase: AugmentedRpc<() => Observable<H160>>;
-      /**
-       * Estimate gas needed for execution of given contract.
-       **/
-      estimateGas: AugmentedRpc<(request: EthCallRequest | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
-      /**
-       * Returns current gas price.
-       **/
-      gasPrice: AugmentedRpc<() => Observable<U256>>;
-      /**
-       * Returns balance of the given account.
-       **/
-      getBalance: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
-      /**
-       * Returns block with given hash.
-       **/
-      getBlockByHash: AugmentedRpc<(hash: H256 | string | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;
-      /**
-       * Returns block with given number.
-       **/
-      getBlockByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array, full: bool | boolean | Uint8Array) => Observable<Option<EthRichBlock>>>;
-      /**
-       * Returns the number of transactions in a block with given hash.
-       **/
-      getBlockTransactionCountByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;
-      /**
-       * Returns the number of transactions in a block with given block number.
-       **/
-      getBlockTransactionCountByNumber: AugmentedRpc<(block: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
-      /**
-       * Returns the code at given address at given time (block number).
-       **/
-      getCode: AugmentedRpc<(address: H160 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<Bytes>>;
-      /**
-       * Returns filter changes since last poll.
-       **/
-      getFilterChanges: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<EthFilterChanges>>;
-      /**
-       * Returns all logs matching given filter (in a range 'from' - 'to').
-       **/
-      getFilterLogs: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<Vec<EthLog>>>;
-      /**
-       * Returns logs matching given filter object.
-       **/
-      getLogs: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable<Vec<EthLog>>>;
-      /**
-       * Returns proof for account and storage.
-       **/
-      getProof: AugmentedRpc<(address: H160 | string | Uint8Array, storageKeys: Vec<H256> | (H256 | string | Uint8Array)[], number: BlockNumber | AnyNumber | Uint8Array) => Observable<EthAccount>>;
-      /**
-       * Returns content of the storage at given address.
-       **/
-      getStorageAt: AugmentedRpc<(address: H160 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<H256>>;
-      /**
-       * Returns transaction at given block hash and index.
-       **/
-      getTransactionByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;
-      /**
-       * Returns transaction by given block number and index.
-       **/
-      getTransactionByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthTransaction>>;
-      /**
-       * Get transaction by its hash.
-       **/
-      getTransactionByHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthTransaction>>;
-      /**
-       * Returns the number of transactions sent from given address at given time (block number).
-       **/
-      getTransactionCount: AugmentedRpc<(hash: H256 | string | Uint8Array, number?: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
-      /**
-       * Returns transaction receipt by transaction hash.
-       **/
-      getTransactionReceipt: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<EthReceipt>>;
-      /**
-       * Returns an uncles at given block and index.
-       **/
-      getUncleByBlockHashAndIndex: AugmentedRpc<(hash: H256 | string | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;
-      /**
-       * Returns an uncles at given block and index.
-       **/
-      getUncleByBlockNumberAndIndex: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array, index: U256 | AnyNumber | Uint8Array) => Observable<EthRichBlock>>;
-      /**
-       * Returns the number of uncles in a block with given hash.
-       **/
-      getUncleCountByBlockHash: AugmentedRpc<(hash: H256 | string | Uint8Array) => Observable<U256>>;
-      /**
-       * Returns the number of uncles in a block with given block number.
-       **/
-      getUncleCountByBlockNumber: AugmentedRpc<(number: BlockNumber | AnyNumber | Uint8Array) => Observable<U256>>;
-      /**
-       * Returns the hash of the current block, the seedHash, and the boundary condition to be met.
-       **/
-      getWork: AugmentedRpc<() => Observable<EthWork>>;
-      /**
-       * Returns the number of hashes per second that the node is mining with.
-       **/
-      hashrate: AugmentedRpc<() => Observable<U256>>;
-      /**
-       * Returns true if client is actively mining new blocks.
-       **/
-      mining: AugmentedRpc<() => Observable<bool>>;
-      /**
-       * Returns id of new block filter.
-       **/
-      newBlockFilter: AugmentedRpc<() => Observable<U256>>;
-      /**
-       * Returns id of new filter.
-       **/
-      newFilter: AugmentedRpc<(filter: EthFilter | { fromBlock?: any; toBlock?: any; blockHash?: any; address?: any; topics?: any } | string | Uint8Array) => Observable<U256>>;
-      /**
-       * Returns id of new block filter.
-       **/
-      newPendingTransactionFilter: AugmentedRpc<() => Observable<U256>>;
-      /**
-       * Returns protocol version encoded as a string (quotes are necessary).
-       **/
-      protocolVersion: AugmentedRpc<() => Observable<u64>>;
-      /**
-       * Sends signed transaction, returning its hash.
-       **/
-      sendRawTransaction: AugmentedRpc<(bytes: Bytes | string | Uint8Array) => Observable<H256>>;
-      /**
-       * Sends transaction; will block waiting for signer to return the transaction hash
-       **/
-      sendTransaction: AugmentedRpc<(tx: EthTransactionRequest | { from?: any; to?: any; gasPrice?: any; gas?: any; value?: any; data?: any; nonce?: any } | string | Uint8Array) => Observable<H256>>;
-      /**
-       * Used for submitting mining hashrate.
-       **/
-      submitHashrate: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array, hash: H256 | string | Uint8Array) => Observable<bool>>;
-      /**
-       * Used for submitting a proof-of-work solution.
-       **/
-      submitWork: AugmentedRpc<(nonce: H64 | string | Uint8Array, headerHash: H256 | string | Uint8Array, mixDigest: H256 | string | Uint8Array) => Observable<bool>>;
-      /**
-       * Subscribe to Eth subscription.
-       **/
-      subscribe: AugmentedRpc<(kind: EthSubKind | 'newHeads' | 'logs' | 'newPendingTransactions' | 'syncing' | number | Uint8Array, params?: EthSubParams | { None: any } | { Logs: any } | string | Uint8Array) => Observable<Null>>;
-      /**
-       * Returns an object with data about the sync status or false.
-       **/
-      syncing: AugmentedRpc<() => Observable<EthSyncStatus>>;
-      /**
-       * Uninstalls filter.
-       **/
-      uninstallFilter: AugmentedRpc<(index: U256 | AnyNumber | Uint8Array) => Observable<bool>>;
-    };
-    grandpa: {
-      /**
-       * Prove finality for the range (begin; end] hash.
-       **/
-      proveFinality: AugmentedRpc<(begin: BlockHash | string | Uint8Array, end: BlockHash | string | Uint8Array, authoritiesSetId?: u64 | AnyNumber | Uint8Array) => Observable<Option<EncodedFinalityProofs>>>;
-      /**
-       * Returns the state of the current best round state as well as the ongoing background rounds
-       **/
-      roundState: AugmentedRpc<() => Observable<ReportedRoundStates>>;
-      /**
-       * Subscribes to grandpa justifications
-       **/
-      subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;
-    };
-    mmr: {
-      /**
-       * Generate MMR proof for given leaf index.
-       **/
-      generateProof: AugmentedRpc<(leafIndex: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafProof>>;
-    };
-    net: {
-      /**
-       * Returns true if client is actively listening for network connections. Otherwise false.
-       **/
-      listening: AugmentedRpc<() => Observable<bool>>;
-      /**
-       * Returns number of peers connected to node.
-       **/
-      peerCount: AugmentedRpc<() => Observable<Text>>;
-      /**
-       * Returns protocol version.
-       **/
-      version: AugmentedRpc<() => Observable<Text>>;
-    };
-    offchain: {
-      /**
-       * Get offchain local storage under given key and prefix
-       **/
-      localStorageGet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
-      /**
-       * Set offchain local storage under given key and prefix
-       **/
-      localStorageSet: AugmentedRpc<(kind: StorageKind | 'PERSISTENT' | 'LOCAL' | number | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => Observable<Null>>;
-    };
-    payment: {
-      /**
-       * Query the detailed fee of a given encoded extrinsic
-       **/
-      queryFeeDetails: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<FeeDetails>>;
-      /**
-       * Retrieves the fee information for an encoded extrinsic
-       **/
-      queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfo>>;
-    };
-    rpc: {
-      /**
-       * Retrieves the list of RPC methods that are exposed by the node
-       **/
-      methods: AugmentedRpc<() => Observable<RpcMethods>>;
-    };
-    state: {
-      /**
-       * Perform a call to a builtin on the chain
-       **/
-      call: AugmentedRpc<(method: Text | string, data: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Bytes>>;
-      /**
-       * Retrieves the keys with prefix of a specific child storage
-       **/
-      getChildKeys: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
-      /**
-       * Returns proof of storage for child key entries at a specific block state.
-       **/
-      getChildReadProof: AugmentedRpc<(childStorageKey: PrefixedStorageKey | string | Uint8Array, keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;
-      /**
-       * Retrieves the child storage for a key
-       **/
-      getChildStorage: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<StorageData>>;
-      /**
-       * Retrieves the child storage hash
-       **/
-      getChildStorageHash: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Hash>>;
-      /**
-       * Retrieves the child storage size
-       **/
-      getChildStorageSize: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;
-      /**
-       * Retrieves the keys with a certain prefix
-       **/
-      getKeys: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
-      /**
-       * Returns the keys with prefix with pagination support.
-       **/
-      getKeysPaged: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, count: u32 | AnyNumber | Uint8Array, startKey?: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
-      /**
-       * Returns the runtime metadata
-       **/
-      getMetadata: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<Metadata>>;
-      /**
-       * Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)
-       **/
-      getPairs: AugmentedRpc<(prefix: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<KeyValue>>>;
-      /**
-       * Returns proof of storage entries at a specific block state
-       **/
-      getReadProof: AugmentedRpc<(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: BlockHash | string | Uint8Array) => Observable<ReadProof>>;
-      /**
-       * Get the runtime version
-       **/
-      getRuntimeVersion: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<RuntimeVersion>>;
-      /**
-       * Retrieves the storage for a key
-       **/
-      getStorage: AugmentedRpc<<T = Codec>(key: StorageKey | string | Uint8Array | any, block?: Hash | Uint8Array | string) => Observable<T>>;
-      /**
-       * Retrieves the storage hash
-       **/
-      getStorageHash: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Hash>>;
-      /**
-       * Retrieves the storage size
-       **/
-      getStorageSize: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;
-      /**
-       * Query historical storage entries (by key) starting from a start block
-       **/
-      queryStorage: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], fromBlock?: Hash | Uint8Array | string, toBlock?: Hash | Uint8Array | string) => Observable<[Hash, T][]>>;
-      /**
-       * Query storage entries (by key) starting at block hash given as the second parameter
-       **/
-      queryStorageAt: AugmentedRpc<<T = Codec[]>(keys: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[], at?: Hash | Uint8Array | string) => Observable<T>>;
-      /**
-       * Retrieves the runtime version via subscription
-       **/
-      subscribeRuntimeVersion: AugmentedRpc<() => Observable<RuntimeVersion>>;
-      /**
-       * Subscribes to storage changes for the provided keys
-       **/
-      subscribeStorage: AugmentedRpc<<T = Codec[]>(keys?: Vec<StorageKey> | (StorageKey | string | Uint8Array | any)[]) => Observable<T>>;
-      /**
-       * Provides a way to trace the re-execution of a single block
-       **/
-      traceBlock: AugmentedRpc<(block: Hash | string | Uint8Array, targets: Option<Text> | null | object | string | Uint8Array, storageKeys: Option<Text> | null | object | string | Uint8Array) => Observable<TraceBlockResponse>>;
-    };
-    syncstate: {
-      /**
-       * Returns the json-serialized chainspec running the node, with a sync state.
-       **/
-      genSyncSpec: AugmentedRpc<(raw: bool | boolean | Uint8Array) => Observable<Json>>;
-    };
-    system: {
-      /**
-       * Retrieves the next accountIndex as available on the node
-       **/
-      accountNextIndex: AugmentedRpc<(accountId: AccountId | string | Uint8Array) => Observable<Index>>;
-      /**
-       * Adds the supplied directives to the current log filter
-       **/
-      addLogFilter: AugmentedRpc<(directives: Text | string) => Observable<Null>>;
-      /**
-       * Adds a reserved peer
-       **/
-      addReservedPeer: AugmentedRpc<(peer: Text | string) => Observable<Text>>;
-      /**
-       * Retrieves the chain
-       **/
-      chain: AugmentedRpc<() => Observable<Text>>;
-      /**
-       * Retrieves the chain type
-       **/
-      chainType: AugmentedRpc<() => Observable<ChainType>>;
-      /**
-       * Dry run an extrinsic at a given block
-       **/
-      dryRun: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
-      /**
-       * Return health status of the node
-       **/
-      health: AugmentedRpc<() => Observable<Health>>;
-      /**
-       * The addresses include a trailing /p2p/ with the local PeerId, and are thus suitable to be passed to addReservedPeer or as a bootnode address for example
-       **/
-      localListenAddresses: AugmentedRpc<() => Observable<Vec<Text>>>;
-      /**
-       * Returns the base58-encoded PeerId of the node
-       **/
-      localPeerId: AugmentedRpc<() => Observable<Text>>;
-      /**
-       * Retrieves the node name
-       **/
-      name: AugmentedRpc<() => Observable<Text>>;
-      /**
-       * Returns current state of the network
-       **/
-      networkState: AugmentedRpc<() => Observable<NetworkState>>;
-      /**
-       * Returns the roles the node is running as
-       **/
-      nodeRoles: AugmentedRpc<() => Observable<Vec<NodeRole>>>;
-      /**
-       * Returns the currently connected peers
-       **/
-      peers: AugmentedRpc<() => Observable<Vec<PeerInfo>>>;
-      /**
-       * Get a custom set of properties as a JSON object, defined in the chain spec
-       **/
-      properties: AugmentedRpc<() => Observable<ChainProperties>>;
-      /**
-       * Remove a reserved peer
-       **/
-      removeReservedPeer: AugmentedRpc<(peerId: Text | string) => Observable<Text>>;
-      /**
-       * Returns the list of reserved peers
-       **/
-      reservedPeers: AugmentedRpc<() => Observable<Vec<Text>>>;
-      /**
-       * Resets the log filter to Substrate defaults
-       **/
-      resetLogFilter: AugmentedRpc<() => Observable<Null>>;
-      /**
-       * Returns the state of the syncing of the node
-       **/
-      syncState: AugmentedRpc<() => Observable<SyncState>>;
-      /**
-       * Retrieves the version of the node
-       **/
-      version: AugmentedRpc<() => Observable<Text>>;
-    };
-    web3: {
-      /**
-       * Returns current client version.
-       **/
-      clientVersion: AugmentedRpc<() => Observable<Text>>;
-      /**
-       * Returns sha3 of the given data
-       **/
-      sha3: AugmentedRpc<(data: Bytes | string | Uint8Array) => Observable<H256>>;
-    };
-  }
-}

+ 0 - 1895
types/augment/augment-api-tx.ts

@@ -1,1895 +0,0 @@
-// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
-/* eslint-disable */
-
-import type { BTreeMap, BTreeSet, Bytes, Compact, Option, Vec, bool, u16, u32, u64 } from '@polkadot/types';
-import type { AnyNumber } from '@polkadot/types/types';
-import type { ActivateOpeningAt, AddOpeningParameters, ApplicationId, ApplicationIdSet, BagId, BalanceOfMint, CategoryId, ChannelCategoryCreationParameters, ChannelCategoryId, ChannelCategoryUpdateParameters, ChannelCreationParameters, ChannelId, ChannelOwnershipTransferRequest, ChannelOwnershipTransferRequestId, ChannelUpdateParameters, Cid, ContentActor, CuratorGroupId, CuratorId, DataObjectId, DistributionBucketFamilyId, DistributionBucketId, DynamicBagDeletionPrize, DynamicBagId, DynamicBagType, ElectionParameters, FillOpeningParameters, MemberId, MemoText, OpeningId, OpeningPolicyCommitment, OpeningType, PaidTermId, PersonActor, PersonCreationParameters, PersonId, PersonUpdateParameters, PlaylistCreationParameters, PlaylistId, PlaylistUpdateParameters, PostId, ProposalId, RewardPolicy, SeriesId, SeriesParameters, StorageBucketId, TerminateRoleParameters, ThreadId, UploadParameters, VideoCategoryCreationParameters, VideoCategoryId, VideoCategoryUpdateParameters, VideoCreationParameters, VideoId, VideoUpdateParameters, VoteKind, WorkerId, WorkingGroup } from './all';
-import type { BabeEquivocationProof } from '@polkadot/types/interfaces/babe';
-import type { Extrinsic, Signature } from '@polkadot/types/interfaces/extrinsics';
-import type { GrandpaEquivocationProof, KeyOwnerProof } from '@polkadot/types/interfaces/grandpa';
-import type { Heartbeat } from '@polkadot/types/interfaces/imOnline';
-import type { AccountId, Balance, BalanceOf, BlockNumber, Call, ChangesTrieConfiguration, Hash, Header, KeyValue, LookupSource, Moment, Perbill, Percent, Weight } from '@polkadot/types/interfaces/runtime';
-import type { Keys } from '@polkadot/types/interfaces/session';
-import type { CompactAssignments, ElectionScore, ElectionSize, EraIndex, RewardDestination, ValidatorIndex, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
-import type { Key } from '@polkadot/types/interfaces/system';
-import type { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types';
-
-declare module '@polkadot/api/types/submittable' {
-  export interface AugmentedSubmittables<ApiType> {
-    authorship: {
-      /**
-       * Provide a set of uncles.
-       **/
-      setUncles: AugmentedSubmittable<(newUncles: Vec<Header> | (Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Header>]>;
-    };
-    babe: {
-      /**
-       * Report authority equivocation/misbehavior. This method will verify
-       * the equivocation proof and validate the given key ownership proof
-       * against the extracted offender. If both are valid, the offence will
-       * be reported.
-       **/
-      reportEquivocation: AugmentedSubmittable<(equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [BabeEquivocationProof, KeyOwnerProof]>;
-      /**
-       * Report authority equivocation/misbehavior. This method will verify
-       * the equivocation proof and validate the given key ownership proof
-       * against the extracted offender. If both are valid, the offence will
-       * be reported.
-       * This extrinsic must be called unsigned and it is expected that only
-       * block authors will call it (validated in `ValidateUnsigned`), as such
-       * if the block author is defined it will be defined as the equivocation
-       * reporter.
-       **/
-      reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: BabeEquivocationProof | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [BabeEquivocationProof, KeyOwnerProof]>;
-    };
-    balances: {
-      /**
-       * Exactly as `transfer`, except the origin must be root and the source account may be
-       * specified.
-       * # <weight>
-       * - Same as transfer, but additional read and write because the source account is
-       * not assumed to be in the overlay.
-       * # </weight>
-       **/
-      forceTransfer: AugmentedSubmittable<(source: LookupSource | string | Uint8Array, dest: LookupSource | string | Uint8Array, value: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, LookupSource, Compact<Balance>]>;
-      /**
-       * Set the balances of a given account.
-       * 
-       * This will alter `FreeBalance` and `ReservedBalance` in storage. it will
-       * also decrease the total issuance of the system (`TotalIssuance`).
-       * If the new free or reserved balance is below the existential deposit,
-       * it will reset the account nonce (`frame_system::AccountNonce`).
-       * 
-       * The dispatch origin for this call is `root`.
-       * 
-       * # <weight>
-       * - Independent of the arguments.
-       * - Contains a limited number of reads and writes.
-       * ---------------------
-       * - Base Weight:
-       * - Creating: 27.56 µs
-       * - Killing: 35.11 µs
-       * - DB Weight: 1 Read, 1 Write to `who`
-       * # </weight>
-       **/
-      setBalance: AugmentedSubmittable<(who: LookupSource | string | Uint8Array, newFree: Compact<Balance> | AnyNumber | Uint8Array, newReserved: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Compact<Balance>, Compact<Balance>]>;
-      /**
-       * Transfer some liquid free balance to another account.
-       * 
-       * `transfer` will set the `FreeBalance` of the sender and receiver.
-       * It will decrease the total issuance of the system by the `TransferFee`.
-       * If the sender's account is below the existential deposit as a result
-       * of the transfer, the account will be reaped.
-       * 
-       * The dispatch origin for this call must be `Signed` by the transactor.
-       * 
-       * # <weight>
-       * - Dependent on arguments but not critical, given proper implementations for
-       * input config types. See related functions below.
-       * - It contains a limited number of reads and writes internally and no complex computation.
-       * 
-       * Related functions:
-       * 
-       * - `ensure_can_withdraw` is always called internally but has a bounded complexity.
-       * - Transferring balances to accounts that did not exist before will cause
-       * `T::OnNewAccount::on_new_account` to be called.
-       * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
-       * - `transfer_keep_alive` works the same way as `transfer`, but has an additional
-       * check that the transfer will not kill the origin account.
-       * ---------------------------------
-       * - Base Weight: 73.64 µs, worst case scenario (account created, account removed)
-       * - DB Weight: 1 Read and 1 Write to destination account
-       * - Origin account is already in memory, so no DB operations for them.
-       * # </weight>
-       **/
-      transfer: AugmentedSubmittable<(dest: LookupSource | string | Uint8Array, value: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Compact<Balance>]>;
-      /**
-       * Same as the [`transfer`] call, but with a check that the transfer will not kill the
-       * origin account.
-       * 
-       * 99% of the time you want [`transfer`] instead.
-       * 
-       * [`transfer`]: struct.Module.html#method.transfer
-       * # <weight>
-       * - Cheaper than transfer because account cannot be killed.
-       * - Base Weight: 51.4 µs
-       * - DB Weight: 1 Read and 1 Write to dest (sender is in overlay already)
-       * #</weight>
-       **/
-      transferKeepAlive: AugmentedSubmittable<(dest: LookupSource | string | Uint8Array, value: Compact<Balance> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Compact<Balance>]>;
-    };
-    content: {
-      acceptChannelTransfer: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, requestId: ChannelOwnershipTransferRequestId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelOwnershipTransferRequestId]>;
-      /**
-       * Add curator to curator group under given `curator_group_id`
-       **/
-      addCuratorToGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, curatorId: CuratorId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [CuratorGroupId, CuratorId]>;
-      addPersonToVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array, person: PersonId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId, PersonId]>;
-      cancelChannelTransferRequest: AugmentedSubmittable<(requestId: ChannelOwnershipTransferRequestId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ChannelOwnershipTransferRequestId]>;
-      createChannel: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, params: ChannelCreationParameters | { assets?: any; meta?: any; reward_account?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelCreationParameters]>;
-      createChannelCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, params: ChannelCategoryCreationParameters | { meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelCategoryCreationParameters]>;
-      /**
-       * Add new curator group to runtime storage
-       **/
-      createCuratorGroup: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      createPerson: AugmentedSubmittable<(actor: PersonActor | { Member: any } | { Curator: any } | string | Uint8Array, params: PersonCreationParameters | { assets?: any; meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PersonActor, PersonCreationParameters]>;
-      createPlaylist: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, params: PlaylistCreationParameters | { meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, PlaylistCreationParameters]>;
-      createSeries: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, params: SeriesParameters | { assets?: any; seasons?: any; meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, SeriesParameters]>;
-      createVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, params: VideoCreationParameters | { assets?: any; meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, VideoCreationParameters]>;
-      createVideoCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, params: VideoCategoryCreationParameters | { meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoCategoryCreationParameters]>;
-      deleteChannel: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, numObjectsToDelete: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, u64]>;
-      deleteChannelCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, categoryId: ChannelCategoryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelCategoryId]>;
-      deletePerson: AugmentedSubmittable<(actor: PersonActor | { Member: any } | { Curator: any } | string | Uint8Array, person: PersonId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PersonActor, PersonId]>;
-      deletePlaylist: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, playlist: PlaylistId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, PlaylistId]>;
-      deleteSeries: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, series: SeriesId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, SeriesId]>;
-      deleteVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array, assetsToRemove: BTreeSet<DataObjectId>) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId, BTreeSet<DataObjectId>]>;
-      deleteVideoCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, categoryId: VideoCategoryId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoCategoryId]>;
-      /**
-       * Remove curator from a given curator group
-       **/
-      removeCuratorFromGroup: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, curatorId: CuratorId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [CuratorGroupId, CuratorId]>;
-      removePersonFromVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId]>;
-      requestChannelTransfer: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, request: ChannelOwnershipTransferRequest | { channel_id?: any; new_owner?: any; payment?: any; new_reward_account?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelOwnershipTransferRequest]>;
-      /**
-       * Set `is_active` status for curator group under given `curator_group_id`
-       **/
-      setCuratorGroupStatus: AugmentedSubmittable<(curatorGroupId: CuratorGroupId | AnyNumber | Uint8Array, isActive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [CuratorGroupId, bool]>;
-      setFeaturedVideos: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, list: Vec<VideoId> | (VideoId | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [ContentActor, Vec<VideoId>]>;
-      updateChannel: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, params: ChannelUpdateParameters | { assets_to_upload?: any; new_meta?: any; reward_account?: any; assets_to_remove?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, ChannelUpdateParameters]>;
-      updateChannelCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, categoryId: ChannelCategoryId | AnyNumber | Uint8Array, params: ChannelCategoryUpdateParameters | { new_meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelCategoryId, ChannelCategoryUpdateParameters]>;
-      updateChannelCensorshipStatus: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, isCensored: bool | boolean | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, bool, Bytes]>;
-      updatePerson: AugmentedSubmittable<(actor: PersonActor | { Member: any } | { Curator: any } | string | Uint8Array, person: PersonId | AnyNumber | Uint8Array, params: PersonUpdateParameters | { assets?: any; meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PersonActor, PersonId, PersonUpdateParameters]>;
-      updatePlaylist: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, playlist: PlaylistId | AnyNumber | Uint8Array, params: PlaylistUpdateParameters | { new_meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, PlaylistId, PlaylistUpdateParameters]>;
-      updateSeries: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, params: SeriesParameters | { assets?: any; seasons?: any; meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, ChannelId, SeriesParameters]>;
-      updateVideo: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array, params: VideoUpdateParameters | { assets_to_upload?: any; new_meta?: any; assets_to_remove?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId, VideoUpdateParameters]>;
-      updateVideoCategory: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, categoryId: VideoCategoryId | AnyNumber | Uint8Array, params: VideoCategoryUpdateParameters | { new_meta?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoCategoryId, VideoCategoryUpdateParameters]>;
-      updateVideoCensorshipStatus: AugmentedSubmittable<(actor: ContentActor | { Curator: any } | { Member: any } | { Lead: any } | string | Uint8Array, videoId: VideoId | AnyNumber | Uint8Array, isCensored: bool | boolean | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ContentActor, VideoId, bool, Bytes]>;
-    };
-    contentWorkingGroup: {
-      /**
-       * Begin accepting worker applications to an opening that is active.
-       * Require signed leader origin or the root (to accept applications for the leader position).
-       **/
-      acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Add an opening for a worker role.
-       * Require signed leader origin or the root (to add opening for the leader position).
-       **/
-      addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_application_stake_unstaking_period?: any; terminate_role_stake_unstaking_period?: any; exit_role_application_stake_unstaking_period?: any; exit_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Worker' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [ActivateOpeningAt, OpeningPolicyCommitment, Bytes, OpeningType]>;
-      /**
-       * Apply on a worker opening.
-       **/
-      applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, OpeningId, AccountId, Option<BalanceOf>, Option<BalanceOf>, Bytes]>;
-      /**
-       * Begin reviewing, and therefore not accepting new applications.
-       * Require signed leader origin or the root (to begin review applications for the leader position).
-       **/
-      beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
-       * Can be decreased to zero, no actions on zero stake.
-       * Require signed leader origin or the root (to decrease the leader stake).
-       **/
-      decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Fill opening for worker/lead.
-       * Require signed leader origin or the root (to fill opening for the leader position).
-       **/
-      fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId, ApplicationIdSet, Option<RewardPolicy>]>;
-      /**
-       * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
-       * role_account_id to the stake. No limits on the stake.
-       **/
-      increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Leave the role by the active worker.
-       **/
-      leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Sets the capacity to enable working group budget. Requires root origin.
-       **/
-      setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
-       * If slashing balance greater than the existing stake - stake is slashed to zero.
-       * Require signed leader origin or the root (to slash the leader stake).
-       **/
-      slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Terminate the worker application. Can be done by the lead only.
-       **/
-      terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-      /**
-       * Terminate the active worker by the lead.
-       * Require signed leader origin or the root (to terminate the leader role).
-       **/
-      terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes, bool]>;
-      /**
-       * Update the reward account associated with a set reward relationship for the active worker.
-       **/
-      updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the reward amount associated with a set reward relationship for the active worker.
-       * Require signed leader origin or the root (to update leader reward amount).
-       **/
-      updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOfMint]>;
-      /**
-       * Update the associated role account of the active worker/lead.
-       **/
-      updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the associated role storage.
-       **/
-      updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Withdraw the worker application. Can be done by the worker itself only.
-       **/
-      withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-    };
-    council: {
-      /**
-       * Adds a zero staked council member. A member added in this way does not get a recurring reward.
-       **/
-      addCouncilMember: AugmentedSubmittable<(account: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId]>;
-      /**
-       * Remove a single council member and their reward.
-       **/
-      removeCouncilMember: AugmentedSubmittable<(accountToRemove: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId]>;
-      /**
-       * Force set a zero staked council. Stakes in existing council seats are not returned.
-       * Existing council rewards are removed and new council members do NOT get any rewards.
-       * Avoid using this call if possible, will be deprecated. The term of the new council is
-       * not extended.
-       **/
-      setCouncil: AugmentedSubmittable<(accounts: Vec<AccountId> | (AccountId | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId>]>;
-      /**
-       * Sets the capacity of the the council mint, if it doesn't exist, attempts to
-       * create a new one.
-       **/
-      setCouncilMintCapacity: AugmentedSubmittable<(capacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Sets the council rewards which is only applied on new council being elected.
-       **/
-      setCouncilRewards: AugmentedSubmittable<(amountPerPayout: BalanceOf | AnyNumber | Uint8Array, payoutInterval: Option<BlockNumber> | null | object | string | Uint8Array, firstPayoutAfterRewardCreated: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf, Option<BlockNumber>, BlockNumber]>;
-      /**
-       * Set blocknumber when council term will end
-       **/
-      setTermEndsAt: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BlockNumber]>;
-      /**
-       * Attempts to mint and transfer amount to destination account
-       **/
-      spendFromCouncilMint: AugmentedSubmittable<(amount: BalanceOf | AnyNumber | Uint8Array, destination: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf, AccountId]>;
-    };
-    councilElection: {
-      apply: AugmentedSubmittable<(stake: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      forceStartElection: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      forceStopElection: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      reveal: AugmentedSubmittable<(commitment: Hash | string | Uint8Array, vote: AccountId | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Hash, AccountId, Bytes]>;
-      setAutoStart: AugmentedSubmittable<(flag: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
-      /**
-       * Sets new election parameters. Some combination of parameters that are not desirable, so
-       * the parameters are checked for validity.
-       * The call will fail if an election is in progress. If a council is not being elected for some
-       * reaon after multiple rounds, force_stop_election() can be called to stop elections and followed by
-       * set_election_parameters().
-       **/
-      setElectionParameters: AugmentedSubmittable<(params: ElectionParameters | { announcing_period?: any; voting_period?: any; revealing_period?: any; council_size?: any; candidacy_limit?: any; new_term_duration?: any; min_council_stake?: any; min_voting_stake?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ElectionParameters]>;
-      setStageAnnouncing: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BlockNumber]>;
-      setStageRevealing: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BlockNumber]>;
-      setStageVoting: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BlockNumber]>;
-      vote: AugmentedSubmittable<(commitment: Hash | string | Uint8Array, stake: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Hash, BalanceOf]>;
-    };
-    distributionWorkingGroup: {
-      /**
-       * Begin accepting worker applications to an opening that is active.
-       * Require signed leader origin or the root (to accept applications for the leader position).
-       **/
-      acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Add an opening for a worker role.
-       * Require signed leader origin or the root (to add opening for the leader position).
-       **/
-      addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_application_stake_unstaking_period?: any; terminate_role_stake_unstaking_period?: any; exit_role_application_stake_unstaking_period?: any; exit_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Worker' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [ActivateOpeningAt, OpeningPolicyCommitment, Bytes, OpeningType]>;
-      /**
-       * Apply on a worker opening.
-       **/
-      applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, OpeningId, AccountId, Option<BalanceOf>, Option<BalanceOf>, Bytes]>;
-      /**
-       * Begin reviewing, and therefore not accepting new applications.
-       * Require signed leader origin or the root (to begin review applications for the leader position).
-       **/
-      beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
-       * Can be decreased to zero, no actions on zero stake.
-       * Require signed leader origin or the root (to decrease the leader stake).
-       **/
-      decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Fill opening for worker/lead.
-       * Require signed leader origin or the root (to fill opening for the leader position).
-       **/
-      fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId, ApplicationIdSet, Option<RewardPolicy>]>;
-      /**
-       * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
-       * role_account_id to the stake. No limits on the stake.
-       **/
-      increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Leave the role by the active worker.
-       **/
-      leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Sets the capacity to enable working group budget. Requires root origin.
-       **/
-      setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
-       * If slashing balance greater than the existing stake - stake is slashed to zero.
-       * Require signed leader origin or the root (to slash the leader stake).
-       **/
-      slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Terminate the worker application. Can be done by the lead only.
-       **/
-      terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-      /**
-       * Terminate the active worker by the lead.
-       * Require signed leader origin or the root (to terminate the leader role).
-       **/
-      terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes, bool]>;
-      /**
-       * Update the reward account associated with a set reward relationship for the active worker.
-       **/
-      updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the reward amount associated with a set reward relationship for the active worker.
-       * Require signed leader origin or the root (to update leader reward amount).
-       **/
-      updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOfMint]>;
-      /**
-       * Update the associated role account of the active worker/lead.
-       **/
-      updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the associated role storage.
-       **/
-      updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Withdraw the worker application. Can be done by the worker itself only.
-       **/
-      withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-    };
-    finalityTracker: {
-      /**
-       * Hint that the author of this block thinks the best finalized
-       * block is the given number.
-       **/
-      finalHint: AugmentedSubmittable<(hint: Compact<BlockNumber> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BlockNumber>]>;
-    };
-    forum: {
-      /**
-       * Edit post text
-       **/
-      addPost: AugmentedSubmittable<(threadId: ThreadId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ThreadId, Bytes]>;
-      /**
-       * Add a new category.
-       **/
-      createCategory: AugmentedSubmittable<(parent: Option<CategoryId> | null | object | string | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<CategoryId>, Bytes, Bytes]>;
-      /**
-       * Create new thread in category
-       **/
-      createThread: AugmentedSubmittable<(categoryId: CategoryId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [CategoryId, Bytes, Bytes]>;
-      /**
-       * Edit post text
-       **/
-      editPostText: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array, newText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PostId, Bytes]>;
-      /**
-       * Moderate post
-       **/
-      moderatePost: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PostId, Bytes]>;
-      /**
-       * Moderate thread
-       **/
-      moderateThread: AugmentedSubmittable<(threadId: ThreadId | AnyNumber | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ThreadId, Bytes]>;
-      /**
-       * Set forum sudo.
-       **/
-      setForumSudo: AugmentedSubmittable<(newForumSudo: Option<AccountId> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId>]>;
-      /**
-       * Update category
-       **/
-      updateCategory: AugmentedSubmittable<(categoryId: CategoryId | AnyNumber | Uint8Array, newArchivalStatus: Option<bool> | null | object | string | Uint8Array, newDeletionStatus: Option<bool> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [CategoryId, Option<bool>, Option<bool>]>;
-    };
-    gatewayWorkingGroup: {
-      /**
-       * Begin accepting worker applications to an opening that is active.
-       * Require signed leader origin or the root (to accept applications for the leader position).
-       **/
-      acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Add an opening for a worker role.
-       * Require signed leader origin or the root (to add opening for the leader position).
-       **/
-      addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_application_stake_unstaking_period?: any; terminate_role_stake_unstaking_period?: any; exit_role_application_stake_unstaking_period?: any; exit_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Worker' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [ActivateOpeningAt, OpeningPolicyCommitment, Bytes, OpeningType]>;
-      /**
-       * Apply on a worker opening.
-       **/
-      applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, OpeningId, AccountId, Option<BalanceOf>, Option<BalanceOf>, Bytes]>;
-      /**
-       * Begin reviewing, and therefore not accepting new applications.
-       * Require signed leader origin or the root (to begin review applications for the leader position).
-       **/
-      beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
-       * Can be decreased to zero, no actions on zero stake.
-       * Require signed leader origin or the root (to decrease the leader stake).
-       **/
-      decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Fill opening for worker/lead.
-       * Require signed leader origin or the root (to fill opening for the leader position).
-       **/
-      fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId, ApplicationIdSet, Option<RewardPolicy>]>;
-      /**
-       * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
-       * role_account_id to the stake. No limits on the stake.
-       **/
-      increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Leave the role by the active worker.
-       **/
-      leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Sets the capacity to enable working group budget. Requires root origin.
-       **/
-      setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
-       * If slashing balance greater than the existing stake - stake is slashed to zero.
-       * Require signed leader origin or the root (to slash the leader stake).
-       **/
-      slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Terminate the worker application. Can be done by the lead only.
-       **/
-      terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-      /**
-       * Terminate the active worker by the lead.
-       * Require signed leader origin or the root (to terminate the leader role).
-       **/
-      terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes, bool]>;
-      /**
-       * Update the reward account associated with a set reward relationship for the active worker.
-       **/
-      updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the reward amount associated with a set reward relationship for the active worker.
-       * Require signed leader origin or the root (to update leader reward amount).
-       **/
-      updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOfMint]>;
-      /**
-       * Update the associated role account of the active worker/lead.
-       **/
-      updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the associated role storage.
-       **/
-      updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Withdraw the worker application. Can be done by the worker itself only.
-       **/
-      withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-    };
-    grandpa: {
-      /**
-       * Note that the current authority set of the GRANDPA finality gadget has
-       * stalled. This will trigger a forced authority set change at the beginning
-       * of the next session, to be enacted `delay` blocks after that. The delay
-       * should be high enough to safely assume that the block signalling the
-       * forced change will not be re-orged (e.g. 1000 blocks). The GRANDPA voters
-       * will start the new authority set using the given finalized block as base.
-       * Only callable by root.
-       **/
-      noteStalled: AugmentedSubmittable<(delay: BlockNumber | AnyNumber | Uint8Array, bestFinalizedBlockNumber: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BlockNumber, BlockNumber]>;
-      /**
-       * Report voter equivocation/misbehavior. This method will verify the
-       * equivocation proof and validate the given key ownership proof
-       * against the extracted offender. If both are valid, the offence
-       * will be reported.
-       **/
-      reportEquivocation: AugmentedSubmittable<(equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [GrandpaEquivocationProof, KeyOwnerProof]>;
-      /**
-       * Report voter equivocation/misbehavior. This method will verify the
-       * equivocation proof and validate the given key ownership proof
-       * against the extracted offender. If both are valid, the offence
-       * will be reported.
-       * 
-       * This extrinsic must be called unsigned and it is expected that only
-       * block authors will call it (validated in `ValidateUnsigned`), as such
-       * if the block author is defined it will be defined as the equivocation
-       * reporter.
-       **/
-      reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [GrandpaEquivocationProof, KeyOwnerProof]>;
-    };
-    imOnline: {
-      /**
-       * # <weight>
-       * - Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len)
-       * and E is length of `heartbeat.network_state.external_address`
-       * - `O(K)`: decoding of length `K`
-       * - `O(E)`: decoding/encoding of length `E`
-       * - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
-       * `ReceivedHeartbeats`
-       * - DbWrites: `ReceivedHeartbeats`
-       * # </weight>
-       **/
-      heartbeat: AugmentedSubmittable<(heartbeat: Heartbeat | { blockNumber?: any; networkState?: any; sessionIndex?: any; authorityIndex?: any; validatorsLen?: any } | string | Uint8Array, signature: Signature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Heartbeat, Signature]>;
-    };
-    members: {
-      /**
-       * Screened members are awarded a initial locked balance that can only be slashed or used
-       * for fees, and is not transferable. The screening authority must ensure that the provided
-       * new_member_account was verified to avoid applying locks arbitrarily to accounts not controlled
-       * by the member.
-       **/
-      addScreenedMember: AugmentedSubmittable<(newMemberAccount: AccountId | string | Uint8Array, handle: Option<Bytes> | null | object | string | Uint8Array, avatarUri: Option<Bytes> | null | object | string | Uint8Array, about: Option<Bytes> | null | object | string | Uint8Array, initialBalance: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, Option<Bytes>, Option<Bytes>, Option<Bytes>, Option<BalanceOf>]>;
-      /**
-       * Non-members can buy membership
-       **/
-      buyMembership: AugmentedSubmittable<(paidTermsId: PaidTermId | AnyNumber | Uint8Array, handle: Option<Bytes> | null | object | string | Uint8Array, avatarUri: Option<Bytes> | null | object | string | Uint8Array, about: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PaidTermId, Option<Bytes>, Option<Bytes>, Option<Bytes>]>;
-      /**
-       * Change member's about text
-       **/
-      changeMemberAboutText: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes]>;
-      /**
-       * Change member's avatar
-       **/
-      changeMemberAvatar: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, uri: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes]>;
-      /**
-       * Change member's handle. Will ensure new handle is unique and old one will be available
-       * for other members to use.
-       **/
-      changeMemberHandle: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, handle: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes]>;
-      setControllerAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, newControllerAccount: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, AccountId]>;
-      setRootAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, newRootAccount: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, AccountId]>;
-      setScreeningAuthority: AugmentedSubmittable<(authority: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId]>;
-      /**
-       * Update member's all or some of handle, avatar and about text.
-       **/
-      updateMembership: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, handle: Option<Bytes> | null | object | string | Uint8Array, avatarUri: Option<Bytes> | null | object | string | Uint8Array, about: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Option<Bytes>, Option<Bytes>, Option<Bytes>]>;
-    };
-    memo: {
-      updateMemo: AugmentedSubmittable<(memo: MemoText | string) => SubmittableExtrinsic<ApiType>, [MemoText]>;
-    };
-    operationsWorkingGroupAlpha: {
-      /**
-       * Begin accepting worker applications to an opening that is active.
-       * Require signed leader origin or the root (to accept applications for the leader position).
-       **/
-      acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Add an opening for a worker role.
-       * Require signed leader origin or the root (to add opening for the leader position).
-       **/
-      addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_application_stake_unstaking_period?: any; terminate_role_stake_unstaking_period?: any; exit_role_application_stake_unstaking_period?: any; exit_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Worker' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [ActivateOpeningAt, OpeningPolicyCommitment, Bytes, OpeningType]>;
-      /**
-       * Apply on a worker opening.
-       **/
-      applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, OpeningId, AccountId, Option<BalanceOf>, Option<BalanceOf>, Bytes]>;
-      /**
-       * Begin reviewing, and therefore not accepting new applications.
-       * Require signed leader origin or the root (to begin review applications for the leader position).
-       **/
-      beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
-       * Can be decreased to zero, no actions on zero stake.
-       * Require signed leader origin or the root (to decrease the leader stake).
-       **/
-      decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Fill opening for worker/lead.
-       * Require signed leader origin or the root (to fill opening for the leader position).
-       **/
-      fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId, ApplicationIdSet, Option<RewardPolicy>]>;
-      /**
-       * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
-       * role_account_id to the stake. No limits on the stake.
-       **/
-      increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Leave the role by the active worker.
-       **/
-      leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Sets the capacity to enable working group budget. Requires root origin.
-       **/
-      setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
-       * If slashing balance greater than the existing stake - stake is slashed to zero.
-       * Require signed leader origin or the root (to slash the leader stake).
-       **/
-      slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Terminate the worker application. Can be done by the lead only.
-       **/
-      terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-      /**
-       * Terminate the active worker by the lead.
-       * Require signed leader origin or the root (to terminate the leader role).
-       **/
-      terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes, bool]>;
-      /**
-       * Update the reward account associated with a set reward relationship for the active worker.
-       **/
-      updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the reward amount associated with a set reward relationship for the active worker.
-       * Require signed leader origin or the root (to update leader reward amount).
-       **/
-      updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOfMint]>;
-      /**
-       * Update the associated role account of the active worker/lead.
-       **/
-      updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the associated role storage.
-       **/
-      updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Withdraw the worker application. Can be done by the worker itself only.
-       **/
-      withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-    };
-    operationsWorkingGroupBeta: {
-      /**
-       * Begin accepting worker applications to an opening that is active.
-       * Require signed leader origin or the root (to accept applications for the leader position).
-       **/
-      acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Add an opening for a worker role.
-       * Require signed leader origin or the root (to add opening for the leader position).
-       **/
-      addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_application_stake_unstaking_period?: any; terminate_role_stake_unstaking_period?: any; exit_role_application_stake_unstaking_period?: any; exit_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Worker' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [ActivateOpeningAt, OpeningPolicyCommitment, Bytes, OpeningType]>;
-      /**
-       * Apply on a worker opening.
-       **/
-      applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, OpeningId, AccountId, Option<BalanceOf>, Option<BalanceOf>, Bytes]>;
-      /**
-       * Begin reviewing, and therefore not accepting new applications.
-       * Require signed leader origin or the root (to begin review applications for the leader position).
-       **/
-      beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
-       * Can be decreased to zero, no actions on zero stake.
-       * Require signed leader origin or the root (to decrease the leader stake).
-       **/
-      decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Fill opening for worker/lead.
-       * Require signed leader origin or the root (to fill opening for the leader position).
-       **/
-      fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId, ApplicationIdSet, Option<RewardPolicy>]>;
-      /**
-       * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
-       * role_account_id to the stake. No limits on the stake.
-       **/
-      increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Leave the role by the active worker.
-       **/
-      leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Sets the capacity to enable working group budget. Requires root origin.
-       **/
-      setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
-       * If slashing balance greater than the existing stake - stake is slashed to zero.
-       * Require signed leader origin or the root (to slash the leader stake).
-       **/
-      slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Terminate the worker application. Can be done by the lead only.
-       **/
-      terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-      /**
-       * Terminate the active worker by the lead.
-       * Require signed leader origin or the root (to terminate the leader role).
-       **/
-      terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes, bool]>;
-      /**
-       * Update the reward account associated with a set reward relationship for the active worker.
-       **/
-      updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the reward amount associated with a set reward relationship for the active worker.
-       * Require signed leader origin or the root (to update leader reward amount).
-       **/
-      updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOfMint]>;
-      /**
-       * Update the associated role account of the active worker/lead.
-       **/
-      updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the associated role storage.
-       **/
-      updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Withdraw the worker application. Can be done by the worker itself only.
-       **/
-      withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-    };
-    operationsWorkingGroupGamma: {
-      /**
-       * Begin accepting worker applications to an opening that is active.
-       * Require signed leader origin or the root (to accept applications for the leader position).
-       **/
-      acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Add an opening for a worker role.
-       * Require signed leader origin or the root (to add opening for the leader position).
-       **/
-      addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_application_stake_unstaking_period?: any; terminate_role_stake_unstaking_period?: any; exit_role_application_stake_unstaking_period?: any; exit_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Worker' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [ActivateOpeningAt, OpeningPolicyCommitment, Bytes, OpeningType]>;
-      /**
-       * Apply on a worker opening.
-       **/
-      applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, OpeningId, AccountId, Option<BalanceOf>, Option<BalanceOf>, Bytes]>;
-      /**
-       * Begin reviewing, and therefore not accepting new applications.
-       * Require signed leader origin or the root (to begin review applications for the leader position).
-       **/
-      beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
-       * Can be decreased to zero, no actions on zero stake.
-       * Require signed leader origin or the root (to decrease the leader stake).
-       **/
-      decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Fill opening for worker/lead.
-       * Require signed leader origin or the root (to fill opening for the leader position).
-       **/
-      fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId, ApplicationIdSet, Option<RewardPolicy>]>;
-      /**
-       * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
-       * role_account_id to the stake. No limits on the stake.
-       **/
-      increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Leave the role by the active worker.
-       **/
-      leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Sets the capacity to enable working group budget. Requires root origin.
-       **/
-      setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
-       * If slashing balance greater than the existing stake - stake is slashed to zero.
-       * Require signed leader origin or the root (to slash the leader stake).
-       **/
-      slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Terminate the worker application. Can be done by the lead only.
-       **/
-      terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-      /**
-       * Terminate the active worker by the lead.
-       * Require signed leader origin or the root (to terminate the leader role).
-       **/
-      terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes, bool]>;
-      /**
-       * Update the reward account associated with a set reward relationship for the active worker.
-       **/
-      updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the reward amount associated with a set reward relationship for the active worker.
-       * Require signed leader origin or the root (to update leader reward amount).
-       **/
-      updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOfMint]>;
-      /**
-       * Update the associated role account of the active worker/lead.
-       **/
-      updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the associated role storage.
-       **/
-      updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Withdraw the worker application. Can be done by the worker itself only.
-       **/
-      withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-    };
-    proposalsCodex: {
-      /**
-       * Create 'Add working group leader opening' proposal type.
-       * This proposal uses `add_opening()` extrinsic from the Joystream `working group` module.
-       **/
-      createAddWorkingGroupLeaderOpeningProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, addOpeningParameters: AddOpeningParameters | { activate_at?: any; commitment?: any; human_readable_text?: any; working_group?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, AddOpeningParameters]>;
-      /**
-       * Create 'Begin review working group leader applications' proposal type.
-       * This proposal uses `begin_applicant_review()` extrinsic from the Joystream `working group` module.
-       **/
-      createBeginReviewWorkingGroupLeaderApplicationsProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, workingGroup: WorkingGroup | '_Reserved0' | '_Reserved1' | 'Storage' | 'Content' | 'OperationsAlpha' | 'Gateway' | 'Distribution' | 'OperationsBeta' | 'OperationsGamma' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, OpeningId, WorkingGroup]>;
-      /**
-       * Create 'decrease working group leader stake' proposal type.
-       * This proposal uses `decrease_stake()` extrinsic from the `working-group`  module.
-       **/
-      createDecreaseWorkingGroupLeaderStakeProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, workerId: WorkerId | AnyNumber | Uint8Array, decreasingStake: BalanceOf | AnyNumber | Uint8Array, workingGroup: WorkingGroup | '_Reserved0' | '_Reserved1' | 'Storage' | 'Content' | 'OperationsAlpha' | 'Gateway' | 'Distribution' | 'OperationsBeta' | 'OperationsGamma' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, WorkerId, BalanceOf, WorkingGroup]>;
-      /**
-       * Create 'Fill working group leader opening' proposal type.
-       * This proposal uses `fill_opening()` extrinsic from the Joystream `working group` module.
-       **/
-      createFillWorkingGroupLeaderOpeningProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, fillOpeningParameters: FillOpeningParameters | { opening_id?: any; successful_application_id?: any; reward_policy?: any; working_group?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, FillOpeningParameters]>;
-      /**
-       * Create 'Runtime upgrade' proposal type. Runtime upgrade can be initiated only by
-       * members from the hardcoded list `RuntimeUpgradeProposalAllowedProposers`
-       **/
-      createRuntimeUpgradeProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, wasm: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, Bytes]>;
-      /**
-       * Create 'Set election parameters' proposal type. This proposal uses `set_election_parameters()`
-       * extrinsic from the `governance::election module`.
-       **/
-      createSetElectionParametersProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, electionParameters: ElectionParameters | { announcing_period?: any; voting_period?: any; revealing_period?: any; council_size?: any; candidacy_limit?: any; new_term_duration?: any; min_council_stake?: any; min_voting_stake?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, ElectionParameters]>;
-      /**
-       * Create 'Evict storage provider' proposal type.
-       * This proposal uses `set_validator_count()` extrinsic from the Substrate `staking`  module.
-       **/
-      createSetValidatorCountProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, newValidatorCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, u32]>;
-      /**
-       * Create 'set working group leader reward' proposal type.
-       * This proposal uses `update_reward_amount()` extrinsic from the `working-group`  module.
-       **/
-      createSetWorkingGroupLeaderRewardProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, workerId: WorkerId | AnyNumber | Uint8Array, rewardAmount: BalanceOfMint | AnyNumber | Uint8Array, workingGroup: WorkingGroup | '_Reserved0' | '_Reserved1' | 'Storage' | 'Content' | 'OperationsAlpha' | 'Gateway' | 'Distribution' | 'OperationsBeta' | 'OperationsGamma' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, WorkerId, BalanceOfMint, WorkingGroup]>;
-      /**
-       * Create 'Set working group mint capacity' proposal type.
-       * This proposal uses `set_mint_capacity()` extrinsic from the `working-group`  module.
-       **/
-      createSetWorkingGroupMintCapacityProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, mintBalance: BalanceOfMint | AnyNumber | Uint8Array, workingGroup: WorkingGroup | '_Reserved0' | '_Reserved1' | 'Storage' | 'Content' | 'OperationsAlpha' | 'Gateway' | 'Distribution' | 'OperationsBeta' | 'OperationsGamma' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, BalanceOfMint, WorkingGroup]>;
-      /**
-       * Create 'slash working group leader stake' proposal type.
-       * This proposal uses `slash_stake()` extrinsic from the `working-group`  module.
-       **/
-      createSlashWorkingGroupLeaderStakeProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, workerId: WorkerId | AnyNumber | Uint8Array, slashingStake: BalanceOf | AnyNumber | Uint8Array, workingGroup: WorkingGroup | '_Reserved0' | '_Reserved1' | 'Storage' | 'Content' | 'OperationsAlpha' | 'Gateway' | 'Distribution' | 'OperationsBeta' | 'OperationsGamma' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, WorkerId, BalanceOf, WorkingGroup]>;
-      /**
-       * Create 'Spending' proposal type.
-       * This proposal uses `spend_from_council_mint()` extrinsic from the `governance::council`  module.
-       **/
-      createSpendingProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, balance: BalanceOfMint | AnyNumber | Uint8Array, destination: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, BalanceOfMint, AccountId]>;
-      /**
-       * Create 'terminate working group leader rolw' proposal type.
-       * This proposal uses `terminate_role()` extrinsic from the `working-group`  module.
-       **/
-      createTerminateWorkingGroupLeaderRoleProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, terminateRoleParameters: TerminateRoleParameters | { worker_id?: any; rationale?: any; slash?: any; working_group?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, TerminateRoleParameters]>;
-      /**
-       * Create 'Text (signal)' proposal type.
-       **/
-      createTextProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, Bytes, Bytes, Option<BalanceOf>, Bytes]>;
-      /**
-       * Runtime upgrade proposal extrinsic.
-       * Should be used as callable object to pass to the `engine` module.
-       **/
-      executeRuntimeUpgradeProposal: AugmentedSubmittable<(wasm: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
-      /**
-       * Text proposal extrinsic. Should be used as callable object to pass to the `engine` module.
-       **/
-      executeTextProposal: AugmentedSubmittable<(text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
-    };
-    proposalsDiscussion: {
-      /**
-       * Adds a post with author origin check.
-       **/
-      addPost: AugmentedSubmittable<(postAuthorId: MemberId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ThreadId, Bytes]>;
-      /**
-       * Updates a post with author origin check. Update attempts number is limited.
-       **/
-      updatePost: AugmentedSubmittable<(postAuthorId: MemberId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ThreadId, PostId, Bytes]>;
-    };
-    proposalsEngine: {
-      /**
-       * Cancel a proposal by its original proposer.
-       **/
-      cancelProposal: AugmentedSubmittable<(proposerId: MemberId | AnyNumber | Uint8Array, proposalId: ProposalId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ProposalId]>;
-      /**
-       * Veto a proposal. Must be root.
-       **/
-      vetoProposal: AugmentedSubmittable<(proposalId: ProposalId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ProposalId]>;
-      /**
-       * Vote extrinsic. Conditions:  origin must allow votes.
-       **/
-      vote: AugmentedSubmittable<(voterId: MemberId | AnyNumber | Uint8Array, proposalId: ProposalId | AnyNumber | Uint8Array, vote: VoteKind | 'Approve' | 'Reject' | 'Slash' | 'Abstain' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, ProposalId, VoteKind]>;
-    };
-    session: {
-      /**
-       * Removes any session key(s) of the function caller.
-       * This doesn't take effect until the next session.
-       * 
-       * The dispatch origin of this function must be signed.
-       * 
-       * # <weight>
-       * - Complexity: `O(1)` in number of key types.
-       * Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
-       * - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
-       * - DbWrites: `NextKeys`, `origin account`
-       * - DbWrites per key id: `KeyOwnder`
-       * # </weight>
-       **/
-      purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      /**
-       * Sets the session key(s) of the function caller to `keys`.
-       * Allows an account to set its session key prior to becoming a validator.
-       * This doesn't take effect until the next session.
-       * 
-       * The dispatch origin of this function must be signed.
-       * 
-       * # <weight>
-       * - Complexity: `O(1)`
-       * Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
-       * - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
-       * - DbWrites: `origin account`, `NextKeys`
-       * - DbReads per key id: `KeyOwner`
-       * - DbWrites per key id: `KeyOwner`
-       * # </weight>
-       **/
-      setKeys: AugmentedSubmittable<(keys: Keys | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Keys, Bytes]>;
-    };
-    staking: {
-      /**
-       * Take the origin account as a stash and lock up `value` of its balance. `controller` will
-       * be the account that controls it.
-       * 
-       * `value` must be more than the `minimum_balance` specified by `T::Currency`.
-       * 
-       * The dispatch origin for this call must be _Signed_ by the stash account.
-       * 
-       * Emits `Bonded`.
-       * 
-       * # <weight>
-       * - Independent of the arguments. Moderate complexity.
-       * - O(1).
-       * - Three extra DB entries.
-       * 
-       * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
-       * unless the `origin` falls below _existential deposit_ and gets removed as dust.
-       * ------------------
-       * Weight: O(1)
-       * DB Weight:
-       * - Read: Bonded, Ledger, [Origin Account], Current Era, History Depth, Locks
-       * - Write: Bonded, Payee, [Origin Account], Locks, Ledger
-       * # </weight>
-       **/
-      bond: AugmentedSubmittable<(controller: LookupSource | string | Uint8Array, value: Compact<BalanceOf> | AnyNumber | Uint8Array, payee: RewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Compact<BalanceOf>, RewardDestination]>;
-      /**
-       * Add some extra amount that have appeared in the stash `free_balance` into the balance up
-       * for staking.
-       * 
-       * Use this if there are additional funds in your stash account that you wish to bond.
-       * Unlike [`bond`] or [`unbond`] this function does not impose any limitation on the amount
-       * that can be added.
-       * 
-       * The dispatch origin for this call must be _Signed_ by the stash, not the controller and
-       * it can be only called when [`EraElectionStatus`] is `Closed`.
-       * 
-       * Emits `Bonded`.
-       * 
-       * # <weight>
-       * - Independent of the arguments. Insignificant complexity.
-       * - O(1).
-       * - One DB entry.
-       * ------------
-       * DB Weight:
-       * - Read: Era Election Status, Bonded, Ledger, [Origin Account], Locks
-       * - Write: [Origin Account], Locks, Ledger
-       * # </weight>
-       **/
-      bondExtra: AugmentedSubmittable<(maxAdditional: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>]>;
-      /**
-       * Cancel enactment of a deferred slash.
-       * 
-       * Can be called by the `T::SlashCancelOrigin`.
-       * 
-       * Parameters: era and indices of the slashes for that era to kill.
-       * 
-       * # <weight>
-       * Complexity: O(U + S)
-       * with U unapplied slashes weighted with U=1000
-       * and S is the number of slash indices to be canceled.
-       * - Read: Unapplied Slashes
-       * - Write: Unapplied Slashes
-       * # </weight>
-       **/
-      cancelDeferredSlash: AugmentedSubmittable<(era: EraIndex | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [EraIndex, Vec<u32>]>;
-      /**
-       * Declare no desire to either validate or nominate.
-       * 
-       * Effects will be felt at the beginning of the next era.
-       * 
-       * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
-       * And, it can be only called when [`EraElectionStatus`] is `Closed`.
-       * 
-       * # <weight>
-       * - Independent of the arguments. Insignificant complexity.
-       * - Contains one read.
-       * - Writes are limited to the `origin` account key.
-       * --------
-       * Weight: O(1)
-       * DB Weight:
-       * - Read: EraElectionStatus, Ledger
-       * - Write: Validators, Nominators
-       * # </weight>
-       **/
-      chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      /**
-       * Force there to be a new era at the end of the next session. After this, it will be
-       * reset to normal (non-forced) behaviour.
-       * 
-       * The dispatch origin must be Root.
-       * 
-       * # <weight>
-       * - No arguments.
-       * - Weight: O(1)
-       * - Write ForceEra
-       * # </weight>
-       **/
-      forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      /**
-       * Force there to be a new era at the end of sessions indefinitely.
-       * 
-       * The dispatch origin must be Root.
-       * 
-       * # <weight>
-       * - Weight: O(1)
-       * - Write: ForceEra
-       * # </weight>
-       **/
-      forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      /**
-       * Force there to be no new eras indefinitely.
-       * 
-       * The dispatch origin must be Root.
-       * 
-       * # <weight>
-       * - No arguments.
-       * - Weight: O(1)
-       * - Write: ForceEra
-       * # </weight>
-       **/
-      forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      /**
-       * Force a current staker to become completely unstaked, immediately.
-       * 
-       * The dispatch origin must be Root.
-       * 
-       * # <weight>
-       * O(S) where S is the number of slashing spans to be removed
-       * Reads: Bonded, Slashing Spans, Account, Locks
-       * Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Account, Locks
-       * Writes Each: SpanSlash * S
-       * # </weight>
-       **/
-      forceUnstake: AugmentedSubmittable<(stash: AccountId | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, u32]>;
-      /**
-       * Increments the ideal number of validators.
-       * 
-       * The dispatch origin must be Root.
-       * 
-       * # <weight>
-       * Same as [`set_validator_count`].
-       * # </weight>
-       **/
-      increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
-      /**
-       * Declare the desire to nominate `targets` for the origin controller.
-       * 
-       * Effects will be felt at the beginning of the next era. This can only be called when
-       * [`EraElectionStatus`] is `Closed`.
-       * 
-       * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
-       * And, it can be only called when [`EraElectionStatus`] is `Closed`.
-       * 
-       * # <weight>
-       * - The transaction's complexity is proportional to the size of `targets` (N)
-       * which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS).
-       * - Both the reads and writes follow a similar pattern.
-       * ---------
-       * Weight: O(N)
-       * where N is the number of targets
-       * DB Weight:
-       * - Reads: Era Election Status, Ledger, Current Era
-       * - Writes: Validators, Nominators
-       * # </weight>
-       **/
-      nominate: AugmentedSubmittable<(targets: Vec<LookupSource> | (LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<LookupSource>]>;
-      /**
-       * Pay out all the stakers behind a single validator for a single era.
-       * 
-       * - `validator_stash` is the stash account of the validator. Their nominators, up to
-       * `T::MaxNominatorRewardedPerValidator`, will also receive their rewards.
-       * - `era` may be any era between `[current_era - history_depth; current_era]`.
-       * 
-       * The origin of this call must be _Signed_. Any account can call this function, even if
-       * it is not one of the stakers.
-       * 
-       * This can only be called when [`EraElectionStatus`] is `Closed`.
-       * 
-       * # <weight>
-       * - Time complexity: at most O(MaxNominatorRewardedPerValidator).
-       * - Contains a limited number of reads and writes.
-       * -----------
-       * N is the Number of payouts for the validator (including the validator)
-       * Weight:
-       * - Reward Destination Staked: O(N)
-       * - Reward Destination Controller (Creating): O(N)
-       * DB Weight:
-       * - Read: EraElectionStatus, CurrentEra, HistoryDepth, ErasValidatorReward,
-       * ErasStakersClipped, ErasRewardPoints, ErasValidatorPrefs (8 items)
-       * - Read Each: Bonded, Ledger, Payee, Locks, System Account (5 items)
-       * - Write Each: System Account, Locks, Ledger (3 items)
-       * 
-       * NOTE: weights are assuming that payouts are made to alive stash account (Staked).
-       * Paying even a dead controller is cheaper weight-wise. We don't do any refunds here.
-       * # </weight>
-       **/
-      payoutStakers: AugmentedSubmittable<(validatorStash: AccountId | string | Uint8Array, era: EraIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, EraIndex]>;
-      /**
-       * Remove all data structure concerning a staker/stash once its balance is zero.
-       * This is essentially equivalent to `withdraw_unbonded` except it can be called by anyone
-       * and the target `stash` must have no funds left.
-       * 
-       * This can be called from any origin.
-       * 
-       * - `stash`: The stash account to reap. Its balance must be zero.
-       * 
-       * # <weight>
-       * Complexity: O(S) where S is the number of slashing spans on the account.
-       * DB Weight:
-       * - Reads: Stash Account, Bonded, Slashing Spans, Locks
-       * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Stash Account, Locks
-       * - Writes Each: SpanSlash * S
-       * # </weight>
-       **/
-      reapStash: AugmentedSubmittable<(stash: AccountId | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId, u32]>;
-      /**
-       * Rebond a portion of the stash scheduled to be unlocked.
-       * 
-       * The dispatch origin must be signed by the controller, and it can be only called when
-       * [`EraElectionStatus`] is `Closed`.
-       * 
-       * # <weight>
-       * - Time complexity: O(L), where L is unlocking chunks
-       * - Bounded by `MAX_UNLOCKING_CHUNKS`.
-       * - Storage changes: Can't increase storage, only decrease it.
-       * ---------------
-       * - DB Weight:
-       * - Reads: EraElectionStatus, Ledger, Locks, [Origin Account]
-       * - Writes: [Origin Account], Locks, Ledger
-       * # </weight>
-       **/
-      rebond: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>]>;
-      /**
-       * Scale up the ideal number of validators by a factor.
-       * 
-       * The dispatch origin must be Root.
-       * 
-       * # <weight>
-       * Same as [`set_validator_count`].
-       * # </weight>
-       **/
-      scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
-      /**
-       * (Re-)set the controller of a stash.
-       * 
-       * Effects will be felt at the beginning of the next era.
-       * 
-       * The dispatch origin for this call must be _Signed_ by the stash, not the controller.
-       * 
-       * # <weight>
-       * - Independent of the arguments. Insignificant complexity.
-       * - Contains a limited number of reads.
-       * - Writes are limited to the `origin` account key.
-       * ----------
-       * Weight: O(1)
-       * DB Weight:
-       * - Read: Bonded, Ledger New Controller, Ledger Old Controller
-       * - Write: Bonded, Ledger New Controller, Ledger Old Controller
-       * # </weight>
-       **/
-      setController: AugmentedSubmittable<(controller: LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource]>;
-      /**
-       * Set `HistoryDepth` value. This function will delete any history information
-       * when `HistoryDepth` is reduced.
-       * 
-       * Parameters:
-       * - `new_history_depth`: The new history depth you would like to set.
-       * - `era_items_deleted`: The number of items that will be deleted by this dispatch.
-       * This should report all the storage items that will be deleted by clearing old
-       * era history. Needed to report an accurate weight for the dispatch. Trusted by
-       * `Root` to report an accurate number.
-       * 
-       * Origin must be root.
-       * 
-       * # <weight>
-       * - E: Number of history depths removed, i.e. 10 -> 7 = 3
-       * - Weight: O(E)
-       * - DB Weight:
-       * - Reads: Current Era, History Depth
-       * - Writes: History Depth
-       * - Clear Prefix Each: Era Stakers, EraStakersClipped, ErasValidatorPrefs
-       * - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake, ErasStartSessionIndex
-       * # </weight>
-       **/
-      setHistoryDepth: AugmentedSubmittable<(newHistoryDepth: Compact<EraIndex> | AnyNumber | Uint8Array, eraItemsDeleted: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<EraIndex>, Compact<u32>]>;
-      /**
-       * Set the validators who cannot be slashed (if any).
-       * 
-       * The dispatch origin must be Root.
-       * 
-       * # <weight>
-       * - O(V)
-       * - Write: Invulnerables
-       * # </weight>
-       **/
-      setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId> | (AccountId | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId>]>;
-      /**
-       * (Re-)set the payment target for a controller.
-       * 
-       * Effects will be felt at the beginning of the next era.
-       * 
-       * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
-       * 
-       * # <weight>
-       * - Independent of the arguments. Insignificant complexity.
-       * - Contains a limited number of reads.
-       * - Writes are limited to the `origin` account key.
-       * ---------
-       * - Weight: O(1)
-       * - DB Weight:
-       * - Read: Ledger
-       * - Write: Payee
-       * # </weight>
-       **/
-      setPayee: AugmentedSubmittable<(payee: RewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [RewardDestination]>;
-      /**
-       * Sets the ideal number of validators.
-       * 
-       * The dispatch origin must be Root.
-       * 
-       * # <weight>
-       * Weight: O(1)
-       * Write: Validator Count
-       * # </weight>
-       **/
-      setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
-      /**
-       * Submit an election result to the chain. If the solution:
-       * 
-       * 1. is valid.
-       * 2. has a better score than a potentially existing solution on chain.
-       * 
-       * then, it will be _put_ on chain.
-       * 
-       * A solution consists of two pieces of data:
-       * 
-       * 1. `winners`: a flat vector of all the winners of the round.
-       * 2. `assignments`: the compact version of an assignment vector that encodes the edge
-       * weights.
-       * 
-       * Both of which may be computed using _phragmen_, or any other algorithm.
-       * 
-       * Additionally, the submitter must provide:
-       * 
-       * - The `score` that they claim their solution has.
-       * 
-       * Both validators and nominators will be represented by indices in the solution. The
-       * indices should respect the corresponding types ([`ValidatorIndex`] and
-       * [`NominatorIndex`]). Moreover, they should be valid when used to index into
-       * [`SnapshotValidators`] and [`SnapshotNominators`]. Any invalid index will cause the
-       * solution to be rejected. These two storage items are set during the election window and
-       * may be used to determine the indices.
-       * 
-       * A solution is valid if:
-       * 
-       * 0. It is submitted when [`EraElectionStatus`] is `Open`.
-       * 1. Its claimed score is equal to the score computed on-chain.
-       * 2. Presents the correct number of winners.
-       * 3. All indexes must be value according to the snapshot vectors. All edge values must
-       * also be correct and should not overflow the granularity of the ratio type (i.e. 256
-       * or billion).
-       * 4. For each edge, all targets are actually nominated by the voter.
-       * 5. Has correct self-votes.
-       * 
-       * A solutions score is consisted of 3 parameters:
-       * 
-       * 1. `min { support.total }` for each support of a winner. This value should be maximized.
-       * 2. `sum { support.total }` for each support of a winner. This value should be minimized.
-       * 3. `sum { support.total^2 }` for each support of a winner. This value should be
-       * minimized (to ensure less variance)
-       * 
-       * # <weight>
-       * The transaction is assumed to be the longest path, a better solution.
-       * - Initial solution is almost the same.
-       * - Worse solution is retraced in pre-dispatch-checks which sets its own weight.
-       * # </weight>
-       **/
-      submitElectionSolution: AugmentedSubmittable<(winners: Vec<ValidatorIndex> | (ValidatorIndex | AnyNumber | Uint8Array)[], compact: CompactAssignments | { votes1?: any; votes2?: any; votes3?: any; votes4?: any; votes5?: any; votes6?: any; votes7?: any; votes8?: any; votes9?: any; votes10?: any; votes11?: any; votes12?: any; votes13?: any; votes14?: any; votes15?: any; votes16?: any } | string | Uint8Array, score: ElectionScore, era: EraIndex | AnyNumber | Uint8Array, size: ElectionSize | { validators?: any; nominators?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ValidatorIndex>, CompactAssignments, ElectionScore, EraIndex, ElectionSize]>;
-      /**
-       * Unsigned version of `submit_election_solution`.
-       * 
-       * Note that this must pass the [`ValidateUnsigned`] check which only allows transactions
-       * from the local node to be included. In other words, only the block author can include a
-       * transaction in the block.
-       * 
-       * # <weight>
-       * See `crate::weight` module.
-       * # </weight>
-       **/
-      submitElectionSolutionUnsigned: AugmentedSubmittable<(winners: Vec<ValidatorIndex> | (ValidatorIndex | AnyNumber | Uint8Array)[], compact: CompactAssignments | { votes1?: any; votes2?: any; votes3?: any; votes4?: any; votes5?: any; votes6?: any; votes7?: any; votes8?: any; votes9?: any; votes10?: any; votes11?: any; votes12?: any; votes13?: any; votes14?: any; votes15?: any; votes16?: any } | string | Uint8Array, score: ElectionScore, era: EraIndex | AnyNumber | Uint8Array, size: ElectionSize | { validators?: any; nominators?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ValidatorIndex>, CompactAssignments, ElectionScore, EraIndex, ElectionSize]>;
-      /**
-       * Schedule a portion of the stash to be unlocked ready for transfer out after the bond
-       * period ends. If this leaves an amount actively bonded less than
-       * T::Currency::minimum_balance(), then it is increased to the full amount.
-       * 
-       * Once the unlock period is done, you can call `withdraw_unbonded` to actually move
-       * the funds out of management ready for transfer.
-       * 
-       * No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`)
-       * can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need
-       * to be called first to remove some of the chunks (if possible).
-       * 
-       * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
-       * And, it can be only called when [`EraElectionStatus`] is `Closed`.
-       * 
-       * Emits `Unbonded`.
-       * 
-       * See also [`Call::withdraw_unbonded`].
-       * 
-       * # <weight>
-       * - Independent of the arguments. Limited but potentially exploitable complexity.
-       * - Contains a limited number of reads.
-       * - Each call (requires the remainder of the bonded balance to be above `minimum_balance`)
-       * will cause a new entry to be inserted into a vector (`Ledger.unlocking`) kept in storage.
-       * The only way to clean the aforementioned storage item is also user-controlled via
-       * `withdraw_unbonded`.
-       * - One DB entry.
-       * ----------
-       * Weight: O(1)
-       * DB Weight:
-       * - Read: EraElectionStatus, Ledger, CurrentEra, Locks, BalanceOf Stash,
-       * - Write: Locks, Ledger, BalanceOf Stash,
-       * </weight>
-       **/
-      unbond: AugmentedSubmittable<(value: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<BalanceOf>]>;
-      /**
-       * Declare the desire to validate for the origin controller.
-       * 
-       * Effects will be felt at the beginning of the next era.
-       * 
-       * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
-       * And, it can be only called when [`EraElectionStatus`] is `Closed`.
-       * 
-       * # <weight>
-       * - Independent of the arguments. Insignificant complexity.
-       * - Contains a limited number of reads.
-       * - Writes are limited to the `origin` account key.
-       * -----------
-       * Weight: O(1)
-       * DB Weight:
-       * - Read: Era Election Status, Ledger
-       * - Write: Nominators, Validators
-       * # </weight>
-       **/
-      validate: AugmentedSubmittable<(prefs: ValidatorPrefs | { commission?: any; blocked?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ValidatorPrefs]>;
-      /**
-       * Remove any unlocked chunks from the `unlocking` queue from our management.
-       * 
-       * This essentially frees up that balance to be used by the stash account to do
-       * whatever it wants.
-       * 
-       * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
-       * And, it can be only called when [`EraElectionStatus`] is `Closed`.
-       * 
-       * Emits `Withdrawn`.
-       * 
-       * See also [`Call::unbond`].
-       * 
-       * # <weight>
-       * - Could be dependent on the `origin` argument and how much `unlocking` chunks exist.
-       * It implies `consolidate_unlocked` which loops over `Ledger.unlocking`, which is
-       * indirectly user-controlled. See [`unbond`] for more detail.
-       * - Contains a limited number of reads, yet the size of which could be large based on `ledger`.
-       * - Writes are limited to the `origin` account key.
-       * ---------------
-       * Complexity O(S) where S is the number of slashing spans to remove
-       * Update:
-       * - Reads: EraElectionStatus, Ledger, Current Era, Locks, [Origin Account]
-       * - Writes: [Origin Account], Locks, Ledger
-       * Kill:
-       * - Reads: EraElectionStatus, Ledger, Current Era, Bonded, Slashing Spans, [Origin
-       * Account], Locks, BalanceOf stash
-       * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators,
-       * [Origin Account], Locks, BalanceOf stash.
-       * - Writes Each: SpanSlash * S
-       * NOTE: Weight annotation is the kill scenario, we refund otherwise.
-       * # </weight>
-       **/
-      withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
-    };
-    storage: {
-      /**
-       * Accept pending invite.
-       **/
-      acceptDistributionBucketInvitation: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, DistributionBucketFamilyId, DistributionBucketId]>;
-      /**
-       * A storage provider signals that the data object was successfully uploaded to its storage.
-       **/
-      acceptPendingDataObjects: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storageBucketId: StorageBucketId | AnyNumber | Uint8Array, bagId: BagId | { Static: any } | { Dynamic: any } | string | Uint8Array, dataObjects: BTreeSet<DataObjectId>) => SubmittableExtrinsic<ApiType>, [WorkerId, StorageBucketId, BagId, BTreeSet<DataObjectId>]>;
-      /**
-       * Accept the storage bucket invitation. An invitation must match the worker_id parameter.
-       **/
-      acceptStorageBucketInvitation: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storageBucketId: StorageBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, StorageBucketId]>;
-      /**
-       * Cancel pending invite. Must be pending.
-       **/
-      cancelDistributionBucketOperatorInvite: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, operatorWorkerId: WorkerId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
-      /**
-       * Cancel pending storage bucket invite. An invitation must be pending.
-       **/
-      cancelStorageBucketOperatorInvite: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId]>;
-      /**
-       * Create a distribution bucket.
-       **/
-      createDistributionBucket: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, acceptingNewBags: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, bool]>;
-      /**
-       * Create a distribution bucket family.
-       **/
-      createDistributionBucketFamily: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-      /**
-       * Create storage bucket.
-       **/
-      createStorageBucket: AugmentedSubmittable<(inviteWorker: Option<WorkerId> | null | object | string | Uint8Array, acceptingNewBags: bool | boolean | Uint8Array, sizeLimit: u64 | AnyNumber | Uint8Array, objectsLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<WorkerId>, bool, u64, u64]>;
-      /**
-       * Delete distribution bucket. Must be empty.
-       **/
-      deleteDistributionBucket: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId]>;
-      /**
-       * Deletes a distribution bucket family.
-       **/
-      deleteDistributionBucketFamily: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId]>;
-      /**
-       * Delete storage bucket. Must be empty. Storage operator must be missing.
-       **/
-      deleteStorageBucket: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId]>;
-      /**
-       * Invite an operator. Must be missing.
-       **/
-      inviteDistributionBucketOperator: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, operatorWorkerId: WorkerId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
-      /**
-       * Invite storage bucket operator. Must be missing.
-       **/
-      inviteStorageBucketOperator: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array, operatorId: WorkerId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId, WorkerId]>;
-      /**
-       * Removes distribution bucket operator.
-       **/
-      removeDistributionBucketOperator: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, operatorWorkerId: WorkerId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
-      /**
-       * Removes storage bucket operator.
-       **/
-      removeStorageBucketOperator: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId]>;
-      /**
-       * Set distribution bucket family metadata.
-       **/
-      setDistributionBucketFamilyMetadata: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, Bytes]>;
-      /**
-       * Set distribution operator metadata for the distribution bucket.
-       **/
-      setDistributionOperatorMetadata: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, DistributionBucketFamilyId, DistributionBucketId, Bytes]>;
-      /**
-       * Sets storage bucket voucher limits.
-       **/
-      setStorageBucketVoucherLimits: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array, newObjectsSizeLimit: u64 | AnyNumber | Uint8Array, newObjectsNumberLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId, u64, u64]>;
-      /**
-       * Sets storage operator metadata (eg.: storage node URL).
-       **/
-      setStorageOperatorMetadata: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storageBucketId: StorageBucketId | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, StorageBucketId, Bytes]>;
-      /**
-       * Create a dynamic bag. Development mode.
-       **/
-      sudoCreateDynamicBag: AugmentedSubmittable<(bagId: DynamicBagId | { Member: any } | { Channel: any } | string | Uint8Array, deletionPrize: Option<DynamicBagDeletionPrize> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [DynamicBagId, Option<DynamicBagDeletionPrize>]>;
-      /**
-       * Upload new data objects. Development mode.
-       **/
-      sudoUploadDataObjects: AugmentedSubmittable<(params: UploadParameters | { bagId?: any; objectCreationList?: any; deletionPrizeSourceAccountId?: any; expectedDataSizeFee?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [UploadParameters]>;
-      /**
-       * Add and remove hashes to the current blacklist.
-       **/
-      updateBlacklist: AugmentedSubmittable<(removeHashes: BTreeSet<Cid>, addHashes: BTreeSet<Cid>) => SubmittableExtrinsic<ApiType>, [BTreeSet<Cid>, BTreeSet<Cid>]>;
-      /**
-       * Updates size-based pricing of new objects uploaded.
-       **/
-      updateDataSizeFee: AugmentedSubmittable<(newDataSizeFee: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Updates 'distributing' flag for the distributing flag.
-       **/
-      updateDistributionBucketMode: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, distributing: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId, bool]>;
-      /**
-       * Updates distribution buckets for a bag.
-       **/
-      updateDistributionBucketsForBag: AugmentedSubmittable<(bagId: BagId | { Static: any } | { Dynamic: any } | string | Uint8Array, familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, addBuckets: BTreeSet<DistributionBucketId>, removeBuckets: BTreeSet<DistributionBucketId>) => SubmittableExtrinsic<ApiType>, [BagId, DistributionBucketFamilyId, BTreeSet<DistributionBucketId>, BTreeSet<DistributionBucketId>]>;
-      /**
-       * Updates "Distribution buckets per bag" number limit.
-       **/
-      updateDistributionBucketsPerBagLimit: AugmentedSubmittable<(newLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
-      /**
-       * Updates a distribution bucket 'accepts new bags' flag.
-       **/
-      updateDistributionBucketStatus: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, acceptingNewBags: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId, bool]>;
-      /**
-       * Update number of distributed buckets used in given dynamic bag creation policy.
-       **/
-      updateFamiliesInDynamicBagCreationPolicy: AugmentedSubmittable<(dynamicBagType: DynamicBagType | 'Member' | 'Channel' | number | Uint8Array, families: BTreeMap<DistributionBucketFamilyId, u32>) => SubmittableExtrinsic<ApiType>, [DynamicBagType, BTreeMap<DistributionBucketFamilyId, u32>]>;
-      /**
-       * Update number of storage buckets used in given dynamic bag creation policy.
-       **/
-      updateNumberOfStorageBucketsInDynamicBagCreationPolicy: AugmentedSubmittable<(dynamicBagType: DynamicBagType | 'Member' | 'Channel' | number | Uint8Array, numberOfStorageBuckets: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DynamicBagType, u64]>;
-      /**
-       * Updates storage buckets for a bag..
-       **/
-      updateStorageBucketsForBag: AugmentedSubmittable<(bagId: BagId | { Static: any } | { Dynamic: any } | string | Uint8Array, addBuckets: BTreeSet<StorageBucketId>, removeBuckets: BTreeSet<StorageBucketId>) => SubmittableExtrinsic<ApiType>, [BagId, BTreeSet<StorageBucketId>, BTreeSet<StorageBucketId>]>;
-      /**
-       * Updates "Storage buckets per bag" number limit.
-       **/
-      updateStorageBucketsPerBagLimit: AugmentedSubmittable<(newLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
-      /**
-       * Update whether new bags are being accepted for storage.
-       **/
-      updateStorageBucketStatus: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array, acceptingNewBags: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId, bool]>;
-      /**
-       * Updates "Storage buckets voucher max limits".
-       **/
-      updateStorageBucketsVoucherMaxLimits: AugmentedSubmittable<(newObjectsSize: u64 | AnyNumber | Uint8Array, newObjectsNumber: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;
-      /**
-       * Updates global uploading flag.
-       **/
-      updateUploadingBlockedStatus: AugmentedSubmittable<(newStatus: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
-    };
-    storageWorkingGroup: {
-      /**
-       * Begin accepting worker applications to an opening that is active.
-       * Require signed leader origin or the root (to accept applications for the leader position).
-       **/
-      acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Add an opening for a worker role.
-       * Require signed leader origin or the root (to add opening for the leader position).
-       **/
-      addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_application_stake_unstaking_period?: any; terminate_role_stake_unstaking_period?: any; exit_role_application_stake_unstaking_period?: any; exit_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader' | 'Worker' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [ActivateOpeningAt, OpeningPolicyCommitment, Bytes, OpeningType]>;
-      /**
-       * Apply on a worker opening.
-       **/
-      applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, OpeningId, AccountId, Option<BalanceOf>, Option<BalanceOf>, Bytes]>;
-      /**
-       * Begin reviewing, and therefore not accepting new applications.
-       * Require signed leader origin or the root (to begin review applications for the leader position).
-       **/
-      beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId]>;
-      /**
-       * Decreases the worker/lead stake and returns the remainder to the worker role_account_id.
-       * Can be decreased to zero, no actions on zero stake.
-       * Require signed leader origin or the root (to decrease the leader stake).
-       **/
-      decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Fill opening for worker/lead.
-       * Require signed leader origin or the root (to fill opening for the leader position).
-       **/
-      fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId, ApplicationIdSet, Option<RewardPolicy>]>;
-      /**
-       * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker
-       * role_account_id to the stake. No limits on the stake.
-       **/
-      increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Leave the role by the active worker.
-       **/
-      leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Sets the capacity to enable working group budget. Requires root origin.
-       **/
-      setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
-      /**
-       * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake.
-       * If slashing balance greater than the existing stake - stake is slashed to zero.
-       * Require signed leader origin or the root (to slash the leader stake).
-       **/
-      slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOf]>;
-      /**
-       * Terminate the worker application. Can be done by the lead only.
-       **/
-      terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-      /**
-       * Terminate the active worker by the lead.
-       * Require signed leader origin or the root (to terminate the leader role).
-       **/
-      terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes, bool]>;
-      /**
-       * Update the reward account associated with a set reward relationship for the active worker.
-       **/
-      updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the reward amount associated with a set reward relationship for the active worker.
-       * Require signed leader origin or the root (to update leader reward amount).
-       **/
-      updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, BalanceOfMint]>;
-      /**
-       * Update the associated role account of the active worker/lead.
-       **/
-      updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
-      /**
-       * Update the associated role storage.
-       **/
-      updateRoleStorage: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storage: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
-      /**
-       * Withdraw the worker application. Can be done by the worker itself only.
-       **/
-      withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
-    };
-    sudo: {
-      /**
-       * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key.
-       * 
-       * The dispatch origin for this call must be _Signed_.
-       * 
-       * # <weight>
-       * - O(1).
-       * - Limited storage reads.
-       * - One DB change.
-       * # </weight>
-       **/
-      setKey: AugmentedSubmittable<(updated: LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource]>;
-      /**
-       * Authenticates the sudo key and dispatches a function call with `Root` origin.
-       * 
-       * The dispatch origin for this call must be _Signed_.
-       * 
-       * # <weight>
-       * - O(1).
-       * - Limited storage reads.
-       * - One DB write (event).
-       * - Weight of derivative `call` execution + 10,000.
-       * # </weight>
-       **/
-      sudo: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
-      /**
-       * Authenticates the sudo key and dispatches a function call with `Signed` origin from
-       * a given account.
-       * 
-       * The dispatch origin for this call must be _Signed_.
-       * 
-       * # <weight>
-       * - O(1).
-       * - Limited storage reads.
-       * - One DB write (event).
-       * - Weight of derivative `call` execution + 10,000.
-       * # </weight>
-       **/
-      sudoAs: AugmentedSubmittable<(who: LookupSource | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [LookupSource, Call]>;
-      /**
-       * Authenticates the sudo key and dispatches a function call with `Root` origin.
-       * This function does not check the weight of the call, and instead allows the
-       * Sudo user to specify the weight of the call.
-       * 
-       * The dispatch origin for this call must be _Signed_.
-       * 
-       * # <weight>
-       * - O(1).
-       * - The weight of this call is defined by the caller.
-       * # </weight>
-       **/
-      sudoUncheckedWeight: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array, weight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Weight]>;
-    };
-    system: {
-      /**
-       * A dispatch that will fill the block weight up to the given ratio.
-       **/
-      fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
-      /**
-       * Kill all storage items with a key that starts with the given prefix.
-       * 
-       * **NOTE:** We rely on the Root origin to provide us the number of subkeys under
-       * the prefix we are removing to accurately calculate the weight of this function.
-       * 
-       * # <weight>
-       * - `O(P)` where `P` amount of keys with prefix `prefix`
-       * - `P` storage deletions.
-       * - Base Weight: 0.834 * P µs
-       * - Writes: Number of subkeys + 1
-       * # </weight>
-       **/
-      killPrefix: AugmentedSubmittable<(prefix: Key | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Key, u32]>;
-      /**
-       * Kill some items from storage.
-       * 
-       * # <weight>
-       * - `O(IK)` where `I` length of `keys` and `K` length of one key
-       * - `I` storage deletions.
-       * - Base Weight: .378 * i µs
-       * - Writes: Number of items
-       * # </weight>
-       **/
-      killStorage: AugmentedSubmittable<(keys: Vec<Key> | (Key | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Key>]>;
-      /**
-       * Make some on-chain remark.
-       * 
-       * # <weight>
-       * - `O(1)`
-       * - Base Weight: 0.665 µs, independent of remark length.
-       * - No DB operations.
-       * # </weight>
-       **/
-      remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
-      /**
-       * Set the new changes trie configuration.
-       * 
-       * # <weight>
-       * - `O(1)`
-       * - 1 storage write or delete (codec `O(1)`).
-       * - 1 call to `deposit_log`: Uses `append` API, so O(1)
-       * - Base Weight: 7.218 µs
-       * - DB Weight:
-       * - Writes: Changes Trie, System Digest
-       * # </weight>
-       **/
-      setChangesTrieConfig: AugmentedSubmittable<(changesTrieConfig: Option<ChangesTrieConfiguration> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<ChangesTrieConfiguration>]>;
-      /**
-       * Set the new runtime code.
-       * 
-       * # <weight>
-       * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
-       * - 1 storage write (codec `O(C)`).
-       * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is expensive).
-       * - 1 event.
-       * The weight of this function is dependent on the runtime, but generally this is very expensive.
-       * We will treat this as a full block.
-       * # </weight>
-       **/
-      setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
-      /**
-       * Set the new runtime code without doing any checks of the given `code`.
-       * 
-       * # <weight>
-       * - `O(C)` where `C` length of `code`
-       * - 1 storage write (codec `O(C)`).
-       * - 1 event.
-       * The weight of this function is dependent on the runtime. We will treat this as a full block.
-       * # </weight>
-       **/
-      setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
-      /**
-       * Set the number of pages in the WebAssembly environment's heap.
-       * 
-       * # <weight>
-       * - `O(1)`
-       * - 1 storage write.
-       * - Base Weight: 1.405 µs
-       * - 1 write to HEAP_PAGES
-       * # </weight>
-       **/
-      setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
-      /**
-       * Set some items of storage.
-       * 
-       * # <weight>
-       * - `O(I)` where `I` length of `items`
-       * - `I` storage writes (`O(1)`).
-       * - Base Weight: 0.568 * i µs
-       * - Writes: Number of items
-       * # </weight>
-       **/
-      setStorage: AugmentedSubmittable<(items: Vec<KeyValue> | (KeyValue)[]) => SubmittableExtrinsic<ApiType>, [Vec<KeyValue>]>;
-      /**
-       * Kill the sending account, assuming there are no references outstanding and the composite
-       * data is equal to its default value.
-       * 
-       * # <weight>
-       * - `O(1)`
-       * - 1 storage read and deletion.
-       * --------------------
-       * Base Weight: 8.626 µs
-       * No DB Read or Write operations because caller is already in overlay
-       * # </weight>
-       **/
-      suicide: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
-    };
-    timestamp: {
-      /**
-       * Set the current time.
-       * 
-       * This call should be invoked exactly once per block. It will panic at the finalization
-       * phase, if this call hasn't been invoked by that time.
-       * 
-       * The timestamp should be greater than the previous one by the amount specified by
-       * `MinimumPeriod`.
-       * 
-       * The dispatch origin for this call must be `Inherent`.
-       * 
-       * # <weight>
-       * - `O(T)` where `T` complexity of `on_timestamp_set`
-       * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in `on_finalize`)
-       * - 1 event handler `on_timestamp_set` `O(T)`.
-       * # </weight>
-       **/
-      set: AugmentedSubmittable<(now: Compact<Moment> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<Moment>]>;
-    };
-    utility: {
-      /**
-       * Send a call through an indexed pseudonym of the sender.
-       * 
-       * Filter from origin are passed along. The call will be dispatched with an origin which
-       * use the same filter as the origin of this call.
-       * 
-       * NOTE: If you need to ensure that any account-based filtering is not honored (i.e.
-       * because you expect `proxy` to have been used prior in the call stack and you do not want
-       * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`
-       * in the Multisig pallet instead.
-       * 
-       * NOTE: Prior to version *12, this was called `as_limited_sub`.
-       * 
-       * The dispatch origin for this call must be _Signed_.
-       **/
-      asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
-      /**
-       * Send a batch of dispatch calls.
-       * 
-       * May be called from any origin.
-       * 
-       * - `calls`: The calls to be dispatched from the same origin.
-       * 
-       * If origin is root then call are dispatch without checking origin filter. (This includes
-       * bypassing `frame_system::Trait::BaseCallFilter`).
-       * 
-       * # <weight>
-       * - Base weight: 14.39 + .987 * c µs
-       * - Plus the sum of the weights of the `calls`.
-       * - Plus one additional event. (repeat read/write)
-       * # </weight>
-       * 
-       * This will return `Ok` in all circumstances. To determine the success of the batch, an
-       * event is deposited. If a call failed and the batch was interrupted, then the
-       * `BatchInterrupted` event is deposited, along with the number of successful calls made
-       * and the error of the failed call. If all were successful, then the `BatchCompleted`
-       * event is deposited.
-       **/
-      batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
-    };
-  }
-
-  export interface SubmittableExtrinsics<ApiType extends ApiTypes> extends AugmentedSubmittables<ApiType> {
-    (extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic<ApiType>;
-  }
-}

+ 0 - 10
types/augment/augment-api.ts

@@ -1,10 +0,0 @@
-// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
-/* eslint-disable */
-
-import '@polkadot/api/augment/rpc';
-import './augment-api-consts';
-import './augment-api-errors';
-import './augment-api-events';
-import './augment-api-query';
-import './augment-api-tx';
-import './augment-api-rpc';

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 4
types/augment/augment-types.ts


+ 5 - 3
types/package.json

@@ -5,14 +5,16 @@
   "main": "index.js",
   "types": "index.d.ts",
   "scripts": {
-    "prepublish": "npm run build",
-    "build": "tsc --build tsconfig.json",
+    "prepublishOnly": "npm run build",
+    "prepack": "npm run build",
+    "compile": "tsc --build tsconfig.json",
+    "build": "git clean -xdf -e node_modules && yarn compile && yarn generate:all",
     "lint": "eslint ./ --ext .ts",
     "format": "prettier ./ --write",
     "check:augment": "tsc --build tsconfig-augment.json && tsc --build tsconfig-augment-codec.json",
     "checks": "yarn build && madge --circular ./ && prettier ./ --check && yarn check:augment && yarn lint",
     "generate:defs": "yarn ts-node node_modules/.bin/polkadot-types-from-defs --package . --input ./augment",
-    "generate:meta": "yarn ts-node node_modules/.bin/polkadot-types-from-chain --package . --endpoint ws://127.0.0.1:9944 --output ./augment --strict",
+    "generate:meta": "yarn ts-node node_modules/.bin/polkadot-types-from-chain --package . --endpoint ../chain-metadata.json --output ./augment --strict",
     "generate:augment-codec": "yarn ts-node ./src/scripts/generateAugmentCodec.ts",
     "generate:registry-json": "yarn ts-node ./src/scripts/generateRegistryJson.ts",
     "generate:augment": "yarn generate:registry-json && yarn generate:defs && yarn generate:meta",

+ 3 - 0
types/src/scripts/generateAugmentCodec.ts

@@ -85,6 +85,9 @@ function generateExportAllFile(filePath: string) {
 }
 
 // ACTUAL SCRIPT:
+if (!fs.existsSync(AUGMENT_CODEC_PATH)) {
+  fs.mkdirSync(AUGMENT_CODEC_PATH)
+}
 // Generate /augment-codec/all.ts file exporting all types ("augment-*" files will import from it)
 generateExportAllFile(EXPORT_ALL_TYPES_FILE_PATH)
 console.log(`Generated all types export file in ${EXPORT_ALL_TYPES_FILE_PATH}\n`)

Vissa filer visades inte eftersom för många filer har ändrats