diff --git a/node/src/chain_spec/mod.rs b/node/src/chain_spec/mod.rs index e141f70c0e..91191fe8a4 100644 --- a/node/src/chain_spec/mod.rs +++ b/node/src/chain_spec/mod.rs @@ -362,10 +362,6 @@ pub fn testnet_genesis( next_channel_id: 1, next_video_category_id: 1, next_video_id: 1, - next_playlist_id: 1, - next_series_id: 1, - next_person_id: 1, - next_channel_transfer_request_id: 1, } }), proposals_codex: Some(ProposalsCodexConfig { diff --git a/runtime-modules/content/src/lib.rs b/runtime-modules/content/src/lib.rs index 5346786587..64a40d3a26 100644 --- a/runtime-modules/content/src/lib.rs +++ b/runtime-modules/content/src/lib.rs @@ -41,6 +41,7 @@ pub use common::{ }; type Storage = storage::Module; +type DataObjectId = ::DataObjectId; /// Type, used in diffrent numeric constraints representations pub type MaxNumber = u32; @@ -72,9 +73,6 @@ pub trait Trait: /// The overarching event type. type Event: From> + Into<::Event>; - /// Channel Transfer Payments Escrow Account seed for ModuleId to compute deterministic AccountId - type ChannelOwnershipPaymentEscrowId: Get<[u8; 8]>; - /// Type of identifier for Videos type VideoId: NumericIdentifier; @@ -84,18 +82,6 @@ pub trait Trait: /// Type of identifier for Channel Categories type ChannelCategoryId: NumericIdentifier; - /// Type of identifier for Playlists - type PlaylistId: NumericIdentifier; - - /// Type of identifier for Persons - type PersonId: NumericIdentifier; - - /// Type of identifier for Channels - type SeriesId: NumericIdentifier; - - /// Type of identifier for Channel transfer requests - type ChannelOwnershipTransferRequestId: NumericIdentifier; - /// The maximum number of curators per group constraint type MaxNumberOfCuratorsPerGroup: Get; @@ -155,7 +141,7 @@ pub struct ChannelCategoryUpdateParameters { new_meta: Vec, } -/// Type representing an owned channel which videos, playlists, and series can belong to. +/// Type representing an owned channel which videos can belong to. #[cfg_attr(feature = "std", derive(Serialize, Deserialize))] #[derive(Encode, Decode, Default, Clone, PartialEq, Eq, Debug)] pub struct ChannelRecord { @@ -301,155 +287,16 @@ pub struct VideoUpdateParametersRecord { type VideoUpdateParameters = VideoUpdateParametersRecord, DataObjectId>; -/// A video which belongs to a channel. A video may be part of a series or playlist. +/// A video which belongs to a channel #[cfg_attr(feature = "std", derive(Serialize, Deserialize))] #[derive(Encode, Decode, Default, Clone, PartialEq, Eq, Debug)] -pub struct VideoRecord { +pub struct VideoRecord { pub in_channel: ChannelId, - // keep track of which season the video is in if it is an 'episode' - // - prevent removing a video if it is in a season (because order is important) - pub in_series: Option, /// Whether the curators have censored the video or not. pub is_censored: bool, } -type Video = VideoRecord<::ChannelId, ::SeriesId>; - -/// Information about the plyalist being created. -#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] -#[derive(Encode, Decode, Default, Clone, PartialEq, Eq, Debug)] -pub struct PlaylistCreationParameters { - /// Metadata about the playlist. - meta: Vec, -} - -/// Information about the playlist being updated. -#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] -#[derive(Encode, Decode, Default, Clone, PartialEq, Eq, Debug)] -pub struct PlaylistUpdateParameters { - // It is the only field so its not an Option - /// Metadata update for the playlist. - new_meta: Vec, -} - -/// A playlist is an ordered collection of videos. -#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] -#[derive(Encode, Decode, Default, Clone, PartialEq, Eq, Debug)] -pub struct Playlist { - /// The channel the playlist belongs to. - in_channel: ChannelId, -} - -/// Information about the episode being created or updated. -#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] -#[derive(Encode, Decode, Clone, PartialEq, Eq, Debug)] -pub enum EpisodeParameters { - /// A new video is being added as the episode. - NewVideo(VideoCreationParametersRecord), - /// An existing video is being made into an episode. - ExistingVideo(VideoId), -} - -/// Information about the season being created or updated. -#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] -#[derive(Encode, Decode, Default, Clone, PartialEq, Eq, Debug)] -pub struct SeasonParameters { - /// Season assets referenced by metadata - assets: Option, - // ?? It might just be more straighforward to always provide full list of episodes at cost of larger tx. - /// If set, updates the episodes of a season. Extends the number of episodes in a season - /// when length of new_episodes is greater than previously set. Last elements must all be - /// 'Some' in that case. - /// Will truncate existing season when length of new_episodes is less than previously set. - episodes: Option>>>, - - meta: Option>, -} - -/// Information about the series being created or updated. -#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] -#[derive(Encode, Decode, Default, Clone, PartialEq, Eq, Debug)] -pub struct SeriesParameters { - /// Series assets referenced by metadata - assets: Option, - // ?? It might just be more straighforward to always provide full list of seasons at cost of larger tx. - /// If set, updates the seasons of a series. Extend a series when length of seasons is - /// greater than previoulsy set. Last elements must all be 'Some' in that case. - /// Will truncate existing series when length of seasons is less than previously set. - seasons: Option>>>, - meta: Option>, -} - -/// A season is an ordered list of videos (episodes). -#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] -#[derive(Encode, Decode, Default, Clone, PartialEq, Eq, Debug)] -pub struct Season { - episodes: Vec, -} - -/// A series is an ordered list of seasons that belongs to a channel. -#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] -#[derive(Encode, Decode, Default, Clone, PartialEq, Eq, Debug)] -pub struct Series { - in_channel: ChannelId, - seasons: Vec>, -} - -/// The actor the caller/origin is trying to act as for Person creation and update and delete calls. -#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] -#[derive(Encode, Decode, Clone, PartialEq, Eq, Debug)] -pub enum PersonActor { - Member(MemberId), - Curator(CuratorId), -} - -/// The authorized actor that may update or delete a Person. -#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] -#[derive(Encode, Decode, Clone, PartialEq, Eq, Debug)] -pub enum PersonController { - /// Member controls the person - Member(MemberId), - /// Any curator controls the person - Curators, -} - -/// Default trait implemented only because its used in Person which needs to implement a Default trait -/// since it is a StorageValue. -impl Default for PersonController { - fn default() -> Self { - PersonController::Member(MemberId::default()) - } -} - -/// Information for Person being created. -#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] -#[derive(Encode, Decode, Clone, PartialEq, Eq, Debug)] -pub struct PersonCreationParameters { - /// Assets referenced by metadata - assets: StorageAssets, - /// Metadata for person. - meta: Vec, -} - -/// Information for Persion being updated. -#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] -#[derive(Encode, Decode, Default, Clone, PartialEq, Eq, Debug)] -pub struct PersonUpdateParameters { - /// Assets referenced by metadata - assets: Option, - /// Metadata to update person. - new_meta: Option>, -} - -/// A Person represents a real person that may be associated with a video. -#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] -#[derive(Encode, Decode, Default, Clone, PartialEq, Eq, Debug)] -pub struct Person { - /// Who can update or delete this person. - controlled_by: PersonController, -} - -type DataObjectId = ::DataObjectId; +type Video = VideoRecord<::ChannelId>; decl_storage! { trait Store for Module as Content { @@ -461,15 +308,6 @@ decl_storage! { pub VideoCategoryById get(fn video_category_by_id): map hasher(blake2_128_concat) T::VideoCategoryId => VideoCategory; - pub PlaylistById get(fn playlist_by_id): map hasher(blake2_128_concat) T::PlaylistId => Playlist; - - pub SeriesById get(fn series_by_id): map hasher(blake2_128_concat) T::SeriesId => Series; - - pub PersonById get(fn person_by_id): map hasher(blake2_128_concat) T::PersonId => Person; - - pub ChannelOwnershipTransferRequestById get(fn channel_ownership_transfer_request_by_id): - map hasher(blake2_128_concat) T::ChannelOwnershipTransferRequestId => ChannelOwnershipTransferRequest; - pub NextChannelCategoryId get(fn next_channel_category_id) config(): T::ChannelCategoryId; pub NextChannelId get(fn next_channel_id) config(): T::ChannelId; @@ -478,14 +316,6 @@ decl_storage! { pub NextVideoId get(fn next_video_id) config(): T::VideoId; - pub NextPlaylistId get(fn next_playlist_id) config(): T::PlaylistId; - - pub NextPersonId get(fn next_person_id) config(): T::PersonId; - - pub NextSeriesId get(fn next_series_id) config(): T::SeriesId; - - pub NextChannelOwnershipTransferRequestId get(fn next_channel_transfer_request_id) config(): T::ChannelOwnershipTransferRequestId; - pub NextCuratorGroupId get(fn next_curator_group_id) config(): T::CuratorGroupId; /// Map, representing CuratorGroupId -> CuratorGroup relation @@ -881,35 +711,6 @@ decl_module! { Self::deposit_event(RawEvent::ChannelCategoryDeleted(actor, category_id)); } - #[weight = 10_000_000] // TODO: adjust weight - pub fn request_channel_transfer( - _origin, - _actor: ContentActor, - _request: ChannelOwnershipTransferRequest, - ) { - // requester must be new_owner - Self::not_implemented()?; - } - - #[weight = 10_000_000] // TODO: adjust weight - pub fn cancel_channel_transfer_request( - _origin, - _request_id: T::ChannelOwnershipTransferRequestId, - ) { - // origin must be original requester (ie. proposed new channel owner) - Self::not_implemented()?; - } - - #[weight = 10_000_000] // TODO: adjust weight - pub fn accept_channel_transfer( - _origin, - _actor: ContentActor, - _request_id: T::ChannelOwnershipTransferRequestId, - ) { - // only current owner of channel can approve - Self::not_implemented()?; - } - #[weight = 10_000_000] // TODO: adjust weight pub fn create_video( origin, @@ -918,6 +719,8 @@ decl_module! { params: VideoCreationParameters, ) { + let sender = ensure_signed(origin.clone())?; + // check that channel exists let channel = Self::ensure_channel_exists(&channel_id)?; @@ -930,12 +733,12 @@ decl_module! { // next video id let video_id = NextVideoId::::get(); - // atomically upload to storage and return the # of uploaded assets + // atomically upload to storage and return the # of uploaded assets if let Some(upload_assets) = params.assets.as_ref() { Self::upload_assets_to_storage( upload_assets, &channel_id, - &channel.deletion_prize_source_account_id + &sender, )?; } @@ -946,9 +749,6 @@ decl_module! { // create the video struct let video: Video = VideoRecord { in_channel: channel_id, - // keep track of which season the video is in if it is an 'episode' - // - prevent removing a video if it is in a season (because order is important) - in_series: None, /// Whether the curators have censored the video or not. is_censored: false, }; @@ -1029,9 +829,6 @@ decl_module! { &channel.owner, )?; - // ensure video can be removed - Self::ensure_video_can_be_removed(&video)?; - // remove specified assets from channel bag in storage Self::remove_assets_from_storage(&assets_to_remove, &channel_id, &channel.deletion_prize_source_account_id)?; @@ -1050,36 +847,6 @@ decl_module! { Self::deposit_event(RawEvent::VideoDeleted(actor, video_id)); } - #[weight = 10_000_000] // TODO: adjust weight - pub fn create_playlist( - _origin, - _actor: ContentActor, - _channel_id: T::ChannelId, - _params: PlaylistCreationParameters, - ) { - Self::not_implemented()?; - } - - #[weight = 10_000_000] // TODO: adjust weight - pub fn update_playlist( - _origin, - _actor: ContentActor, - _playlist: T::PlaylistId, - _params: PlaylistUpdateParameters, - ) { - Self::not_implemented()?; - } - - #[weight = 10_000_000] // TODO: adjust weight - pub fn delete_playlist( - _origin, - _actor: ContentActor, - _channel_id: T::ChannelId, - _playlist: T::PlaylistId, - ) { - Self::not_implemented()?; - } - #[weight = 10_000_000] // TODO: adjust weight pub fn set_featured_videos( origin, @@ -1158,53 +925,6 @@ decl_module! { Self::deposit_event(RawEvent::VideoCategoryDeleted(actor, category_id)); } - #[weight = 10_000_000] // TODO: adjust weight - pub fn create_person( - _origin, - _actor: PersonActor, - _params: PersonCreationParameters>, - ) { - Self::not_implemented()?; - } - - #[weight = 10_000_000] // TODO: adjust weight - pub fn update_person( - _origin, - _actor: PersonActor, - _person: T::PersonId, - _params: PersonUpdateParameters>, - ) { - Self::not_implemented()?; - } - - #[weight = 10_000_000] // TODO: adjust weight - pub fn delete_person( - _origin, - _actor: PersonActor, - _person: T::PersonId, - ) { - Self::not_implemented()?; - } - - #[weight = 10_000_000] // TODO: adjust weight - pub fn add_person_to_video( - _origin, - _actor: ContentActor, - _video_id: T::VideoId, - _person: T::PersonId - ) { - Self::not_implemented()?; - } - - #[weight = 10_000_000] // TODO: adjust weight - pub fn remove_person_from_video( - _origin, - _actor: ContentActor, - _video_id: T::VideoId - ) { - Self::not_implemented()?; - } - #[weight = 10_000_000] // TODO: adjust weight pub fn update_video_censorship_status( origin, @@ -1239,34 +959,6 @@ decl_module! { Self::deposit_event(RawEvent::VideoCensorshipStatusUpdated(actor, video_id, is_censored, rationale)); } - #[weight = 10_000_000] // TODO: adjust weight - pub fn create_series( - _origin, - _actor: ContentActor, - _channel_id: T::ChannelId, - _params: SeriesParameters> - ) { - Self::not_implemented()?; - } - - #[weight = 10_000_000] // TODO: adjust weight - pub fn update_series( - _origin, - _actor: ContentActor, - _channel_id: T::ChannelId, - _params: SeriesParameters> - ) { - Self::not_implemented()?; - } - - #[weight = 10_000_000] // TODO: adjust weight - pub fn delete_series( - _origin, - _actor: ContentActor, - _series: T::SeriesId, - ) { - Self::not_implemented()?; - } } } @@ -1306,12 +998,6 @@ impl Module { Ok(VideoById::::get(video_id)) } - // Ensure given video is not in season - fn ensure_video_can_be_removed(video: &Video) -> DispatchResult { - ensure!(video.in_series.is_none(), Error::::VideoInSeason); - Ok(()) - } - fn ensure_channel_category_exists( channel_category_id: &T::ChannelCategoryId, ) -> Result> { @@ -1373,10 +1059,6 @@ impl Module { BagIdType::from(dyn_bag) } - fn not_implemented() -> DispatchResult { - Err(Error::::FeatureNotImplemented.into()) - } - fn upload_assets_to_storage( assets: &StorageAssets, channel_id: &T::ChannelId, @@ -1423,12 +1105,6 @@ decl_event!( VideoCategoryId = ::VideoCategoryId, ChannelId = ::ChannelId, ChannelCategoryId = ::ChannelCategoryId, - ChannelOwnershipTransferRequestId = ::ChannelOwnershipTransferRequestId, - PlaylistId = ::PlaylistId, - SeriesId = ::SeriesId, - PersonId = ::PersonId, - ChannelOwnershipTransferRequest = ChannelOwnershipTransferRequest, - Series = Series<::ChannelId, ::VideoId>, Channel = Channel, DataObjectId = DataObjectId, IsCensored = bool, @@ -1436,7 +1112,6 @@ decl_event!( ChannelUpdateParameters = ChannelUpdateParameters, VideoCreationParameters = VideoCreationParameters, VideoUpdateParameters = VideoUpdateParameters, - StorageAssets = StorageAssets, { // Curators CuratorGroupCreated(CuratorGroupId), @@ -1447,6 +1122,7 @@ decl_event!( // Channels ChannelCreated(ContentActor, ChannelId, Channel, ChannelCreationParameters), ChannelUpdated(ContentActor, ChannelId, Channel, ChannelUpdateParameters), + ChannelDeleted(ContentActor, ChannelId), ChannelAssetsRemoved(ContentActor, ChannelId, BTreeSet, Channel), ChannelCensorshipStatusUpdated( @@ -1456,15 +1132,6 @@ decl_event!( Vec, /* rationale */ ), - // Channel Ownership Transfers - ChannelOwnershipTransferRequested( - ContentActor, - ChannelOwnershipTransferRequestId, - ChannelOwnershipTransferRequest, - ), - ChannelOwnershipTransferRequestWithdrawn(ContentActor, ChannelOwnershipTransferRequestId), - ChannelOwnershipTransferred(ContentActor, ChannelOwnershipTransferRequestId), - // Channel Categories ChannelCategoryCreated( ChannelCategoryId, @@ -1500,43 +1167,5 @@ decl_event!( // Featured Videos FeaturedVideosSet(ContentActor, Vec), - - // Video Playlists - PlaylistCreated(ContentActor, PlaylistId, PlaylistCreationParameters), - PlaylistUpdated(ContentActor, PlaylistId, PlaylistUpdateParameters), - PlaylistDeleted(ContentActor, PlaylistId), - - // Series - SeriesCreated( - ContentActor, - SeriesId, - StorageAssets, - SeriesParameters, - Series, - ), - SeriesUpdated( - ContentActor, - SeriesId, - StorageAssets, - SeriesParameters, - Series, - ), - SeriesDeleted(ContentActor, SeriesId), - - // Persons - PersonCreated( - ContentActor, - PersonId, - StorageAssets, - PersonCreationParameters, - ), - PersonUpdated( - ContentActor, - PersonId, - StorageAssets, - PersonUpdateParameters, - ), - PersonDeleted(ContentActor, PersonId), - ChannelDeleted(ContentActor, ChannelId), } ); diff --git a/runtime-modules/content/src/tests/mock.rs b/runtime-modules/content/src/tests/mock.rs index b1ea4f5a0f..4984f2c209 100644 --- a/runtime-modules/content/src/tests/mock.rs +++ b/runtime-modules/content/src/tests/mock.rs @@ -331,9 +331,6 @@ impl Trait for Test { /// The overarching event type. type Event = MetaEvent; - /// Channel Transfer Payments Escrow Account seed for ModuleId to compute deterministic AccountId - type ChannelOwnershipPaymentEscrowId = ChannelOwnershipPaymentEscrowId; - /// Type of identifier for Videos type VideoId = u64; @@ -343,18 +340,6 @@ impl Trait for Test { /// Type of identifier for Channel Categories type ChannelCategoryId = u64; - /// Type of identifier for Playlists - type PlaylistId = u64; - - /// Type of identifier for Persons - type PersonId = u64; - - /// Type of identifier for Channels - type SeriesId = u64; - - /// Type of identifier for Channel transfer requests - type ChannelOwnershipTransferRequestId = u64; - /// The maximum number of curators per group constraint type MaxNumberOfCuratorsPerGroup = MaxNumberOfCuratorsPerGroup; @@ -370,10 +355,6 @@ pub struct ExtBuilder { next_channel_id: u64, next_video_category_id: u64, next_video_id: u64, - next_playlist_id: u64, - next_person_id: u64, - next_series_id: u64, - next_channel_transfer_request_id: u64, next_curator_group_id: u64, } @@ -384,10 +365,6 @@ impl Default for ExtBuilder { next_channel_id: 1, next_video_category_id: 1, next_video_id: 1, - next_playlist_id: 1, - next_person_id: 1, - next_series_id: 1, - next_channel_transfer_request_id: 1, next_curator_group_id: 1, } } @@ -404,10 +381,6 @@ impl ExtBuilder { next_channel_id: self.next_channel_id, next_video_category_id: self.next_video_category_id, next_video_id: self.next_video_id, - next_playlist_id: self.next_playlist_id, - next_person_id: self.next_person_id, - next_series_id: self.next_series_id, - next_channel_transfer_request_id: self.next_channel_transfer_request_id, next_curator_group_id: self.next_curator_group_id, } .assimilate_storage(&mut t) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 5e46608c44..06e814b748 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -433,14 +433,9 @@ parameter_types! { impl content::Trait for Runtime { type Event = Event; - type ChannelOwnershipPaymentEscrowId = ChannelOwnershipPaymentEscrowId; type ChannelCategoryId = ChannelCategoryId; type VideoId = VideoId; type VideoCategoryId = VideoCategoryId; - type PlaylistId = PlaylistId; - type PersonId = PersonId; - type SeriesId = SeriesId; - type ChannelOwnershipTransferRequestId = ChannelOwnershipTransferRequestId; type MaxNumberOfCuratorsPerGroup = MaxNumberOfCuratorsPerGroup; type DataObjectStorage = Storage; } diff --git a/types/augment-codec/all.ts b/types/augment-codec/all.ts new file mode 100644 index 0000000000..e8ecadf68e --- /dev/null +++ b/types/augment-codec/all.ts @@ -0,0 +1,17 @@ +// This file was automatically generated via generate:augment-codec +import { ChannelContentType, ChannelCurationStatus, ChannelPublicationStatus, CurationActor, Curator, CuratorApplication, CuratorApplicationId, CuratorApplicationIdSet, CuratorApplicationIdToCuratorIdMap, CuratorOpening, CuratorOpeningId, Lead, LeadId, OptionalText, Principal, PrincipalId, WorkingGroupUnstaker, Credential, CredentialSet, Nonce, EntityId, ClassId, VecMaxLength, TextMaxLength, HashedTextMaxLength, PropertyId, SchemaId, SameController, ClassPermissions, PropertyTypeSingle, PropertyTypeVector, PropertyType, PropertyLockingPolicy, Property, Schema, Class, Class as ClassOf, EntityController, EntityPermissions, StoredValue, VecStoredValue, VecStoredPropertyValue, StoredPropertyValue, InboundReferenceCounter, Entity, Entity as EntityOf, EntityCreationVoucher, Actor, EntityReferenceCounterSideEffect, ReferenceCounterSideEffects, SideEffects, SideEffect, Status, InputValue, VecInputValue, InputPropertyValue, ParameterizedEntity, ParametrizedPropertyValue, ParametrizedClassPropertyValue, CreateEntityOperation, UpdatePropertyValuesOperation, AddSchemaSupportToEntityOperation, OperationType, InputEntityValuesMap, ClassPermissionsType, ClassPropertyValue, Operation, ReferenceConstraint, FailedAt, IPNSIdentity, ServiceProviderRecord } from '../legacy'; +import { BlockAndTime, ThreadId, PostId, InputValidationLengthConstraint, WorkingGroup, SlashingTerms, SlashableTerms, MemoText, Address, LookupSource, ChannelId, Url } from '../common'; +import { EntryMethod, MemberId, PaidTermId, SubscriptionId, Membership, PaidMembershipTerms, ActorId } from '../members'; +import { ElectionStage, ElectionStake, SealedVote, TransferableStake, ElectionParameters, Seat, Seats, Backer, Backers } from '../council'; +import { RoleParameters } from '../roles'; +import { PostTextChange, ModerationAction, ChildPositionInParentCategory, CategoryId, Category, Thread, Post, ReplyId, Reply } from '../forum'; +import { StakeId, Stake, StakingStatus, Staked, StakedStatus, Unstaking, Slash } from '../stake'; +import { MintId, Mint, MintBalanceOf, BalanceOfMint, NextAdjustment, AdjustOnInterval, AdjustCapacityBy } from '../mint'; +import { RecipientId, RewardRelationshipId, Recipient, RewardRelationship } from '../recurring-rewards'; +import { ApplicationId, OpeningId, Application, ApplicationStage, ActivateOpeningAt, ApplicationRationingPolicy, OpeningStage, StakingPolicy, Opening, WaitingToBeingOpeningStageVariant, ActiveOpeningStageVariant, ActiveOpeningStage, AcceptingApplications, ReviewPeriod, Deactivated, OpeningDeactivationCause, InactiveApplicationStage, UnstakingApplicationStage, ApplicationDeactivationCause, StakingAmountLimitMode } from '../hiring'; +import { RationaleText, Application as ApplicationOf, ApplicationIdSet, ApplicationIdToWorkerIdMap, WorkerId, Worker as WorkerOf, Opening as OpeningOf, StorageProviderId, OpeningType, ApplicationId as HiringApplicationId, RewardPolicy, OpeningPolicyCommitment, RoleStakeProfile } from '../working-group'; +import { StorageBucketId, StorageBucketsPerBagValueConstraint, DataObjectId, DynamicBagId, Voucher, DynamicBagType, DynamicBagCreationPolicy, DynamicBagDeletionPrize, DynamicBagDeletionPrizeRecord, Bag, StorageBucket, StaticBagId, Static, Dynamic, BagId, DataObjectCreationParameters, BagIdType, UploadParameters, StorageBucketIdSet, DataObjectIdSet, ContentIdSet, Cid, StorageBucketOperatorStatus, DataObject, DistributionBucketId, DistributionBucketFamilyId, DistributionBucket, DistributionBucketFamily, DataObjectIdMap, DistributionBucketIdSet, DynamicBagCreationPolicyDistributorFamiliesMap } from '../storage'; +import { ProposalId, ProposalStatus, Proposal as ProposalOf, ProposalDetails, ProposalDetails as ProposalDetailsOf, VotingResults, ProposalParameters, VoteKind, ThreadCounter, DiscussionThread, DiscussionPost, AddOpeningParameters, FillOpeningParameters, TerminateRoleParameters, ActiveStake, Finalized, ProposalDecisionStatus, ExecutionFailed, Approved, SetLeadParams } from '../proposals'; +import { CuratorId, CuratorGroupId, CuratorGroup, ContentActor, StorageAssets, Channel, ChannelOwner, ChannelCategoryId, ChannelCategory, ChannelCategoryCreationParameters, ChannelCategoryUpdateParameters, ChannelCreationParameters, ChannelUpdateParameters, ChannelOwnershipTransferRequestId, ChannelOwnershipTransferRequest, Video, VideoId, VideoCategoryId, VideoCategory, VideoCategoryCreationParameters, VideoCategoryUpdateParameters, VideoCreationParameters, VideoUpdateParameters, MaxNumber, IsCensored } from '../content'; + +export { ChannelContentType, ChannelCurationStatus, ChannelPublicationStatus, CurationActor, Curator, CuratorApplication, CuratorApplicationId, CuratorApplicationIdSet, CuratorApplicationIdToCuratorIdMap, CuratorOpening, CuratorOpeningId, Lead, LeadId, OptionalText, Principal, PrincipalId, WorkingGroupUnstaker, Credential, CredentialSet, Nonce, EntityId, ClassId, VecMaxLength, TextMaxLength, HashedTextMaxLength, PropertyId, SchemaId, SameController, ClassPermissions, PropertyTypeSingle, PropertyTypeVector, PropertyType, PropertyLockingPolicy, Property, Schema, Class, ClassOf, EntityController, EntityPermissions, StoredValue, VecStoredValue, VecStoredPropertyValue, StoredPropertyValue, InboundReferenceCounter, Entity, EntityOf, EntityCreationVoucher, Actor, EntityReferenceCounterSideEffect, ReferenceCounterSideEffects, SideEffects, SideEffect, Status, InputValue, VecInputValue, InputPropertyValue, ParameterizedEntity, ParametrizedPropertyValue, ParametrizedClassPropertyValue, CreateEntityOperation, UpdatePropertyValuesOperation, AddSchemaSupportToEntityOperation, OperationType, InputEntityValuesMap, ClassPermissionsType, ClassPropertyValue, Operation, ReferenceConstraint, FailedAt, IPNSIdentity, ServiceProviderRecord, BlockAndTime, ThreadId, PostId, InputValidationLengthConstraint, WorkingGroup, SlashingTerms, SlashableTerms, MemoText, Address, LookupSource, ChannelId, Url, EntryMethod, MemberId, PaidTermId, SubscriptionId, Membership, PaidMembershipTerms, ActorId, ElectionStage, ElectionStake, SealedVote, TransferableStake, ElectionParameters, Seat, Seats, Backer, Backers, RoleParameters, PostTextChange, ModerationAction, ChildPositionInParentCategory, CategoryId, Category, Thread, Post, ReplyId, Reply, StakeId, Stake, StakingStatus, Staked, StakedStatus, Unstaking, Slash, MintId, Mint, MintBalanceOf, BalanceOfMint, NextAdjustment, AdjustOnInterval, AdjustCapacityBy, RecipientId, RewardRelationshipId, Recipient, RewardRelationship, ApplicationId, OpeningId, Application, ApplicationStage, ActivateOpeningAt, ApplicationRationingPolicy, OpeningStage, StakingPolicy, Opening, WaitingToBeingOpeningStageVariant, ActiveOpeningStageVariant, ActiveOpeningStage, AcceptingApplications, ReviewPeriod, Deactivated, OpeningDeactivationCause, InactiveApplicationStage, UnstakingApplicationStage, ApplicationDeactivationCause, StakingAmountLimitMode, RationaleText, ApplicationOf, ApplicationIdSet, ApplicationIdToWorkerIdMap, WorkerId, WorkerOf, OpeningOf, StorageProviderId, OpeningType, HiringApplicationId, RewardPolicy, OpeningPolicyCommitment, RoleStakeProfile, StorageBucketId, StorageBucketsPerBagValueConstraint, DataObjectId, DynamicBagId, Voucher, DynamicBagType, DynamicBagCreationPolicy, DynamicBagDeletionPrize, DynamicBagDeletionPrizeRecord, Bag, StorageBucket, StaticBagId, Static, Dynamic, BagId, DataObjectCreationParameters, BagIdType, UploadParameters, StorageBucketIdSet, DataObjectIdSet, ContentIdSet, Cid, StorageBucketOperatorStatus, DataObject, DistributionBucketId, DistributionBucketFamilyId, DistributionBucket, DistributionBucketFamily, DataObjectIdMap, DistributionBucketIdSet, DynamicBagCreationPolicyDistributorFamiliesMap, ProposalId, ProposalStatus, ProposalOf, ProposalDetails, ProposalDetailsOf, VotingResults, ProposalParameters, VoteKind, ThreadCounter, DiscussionThread, DiscussionPost, AddOpeningParameters, FillOpeningParameters, TerminateRoleParameters, ActiveStake, Finalized, ProposalDecisionStatus, ExecutionFailed, Approved, SetLeadParams, CuratorId, CuratorGroupId, CuratorGroup, ContentActor, StorageAssets, Channel, ChannelOwner, ChannelCategoryId, ChannelCategory, ChannelCategoryCreationParameters, ChannelCategoryUpdateParameters, ChannelCreationParameters, ChannelUpdateParameters, ChannelOwnershipTransferRequestId, ChannelOwnershipTransferRequest, Video, VideoId, VideoCategoryId, VideoCategory, VideoCategoryCreationParameters, VideoCategoryUpdateParameters, VideoCreationParameters, VideoUpdateParameters, MaxNumber, IsCensored }; \ No newline at end of file diff --git a/types/augment-codec/augment-api-errors.ts b/types/augment-codec/augment-api-errors.ts new file mode 100644 index 0000000000..73ae5d028a --- /dev/null +++ b/types/augment-codec/augment-api-errors.ts @@ -0,0 +1,3673 @@ +// 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 { + authorship: { + /** + * The uncle is genesis. + **/ + GenesisUncle: AugmentedError; + /** + * The uncle parent not in the chain. + **/ + InvalidUncleParent: AugmentedError; + /** + * The uncle isn't recent enough to be included. + **/ + OldUncle: AugmentedError; + /** + * The uncle is too high in chain. + **/ + TooHighUncle: AugmentedError; + /** + * Too many uncles. + **/ + TooManyUncles: AugmentedError; + /** + * The uncle is already included. + **/ + UncleAlreadyIncluded: AugmentedError; + /** + * Uncles already set in the block. + **/ + UnclesAlreadySet: AugmentedError; + }; + balances: { + /** + * Beneficiary account must pre-exist + **/ + DeadAccount: AugmentedError; + /** + * Value too low to create account due to existential deposit + **/ + ExistentialDeposit: AugmentedError; + /** + * A vesting schedule already exists for this account + **/ + ExistingVestingSchedule: AugmentedError; + /** + * Balance too low to send value + **/ + InsufficientBalance: AugmentedError; + /** + * Transfer/payment would kill account + **/ + KeepAlive: AugmentedError; + /** + * Account liquidity restrictions prevent withdrawal + **/ + LiquidityRestrictions: AugmentedError; + /** + * Got an overflow after adding + **/ + Overflow: AugmentedError; + /** + * Vesting balance too high to send value + **/ + VestingBalance: AugmentedError; + }; + content: { + /** + * This content actor cannot own a channel + **/ + ActorCannotOwnChannel: AugmentedError; + /** + * Operation cannot be perfomed with this Actor + **/ + ActorNotAuthorized: AugmentedError; + /** + * Expected root or signed origin + **/ + BadOrigin: AugmentedError; + /** + * Curators can only censor non-curator group owned channels + **/ + CannotCensoreCuratorGroupOwnedChannels: AugmentedError; + /** + * A Channel or Video Category does not exist. + **/ + CategoryDoesNotExist: AugmentedError; + /** + * Channel Contains Assets + **/ + ChannelContainsAssets: AugmentedError; + /** + * Channel Contains Video + **/ + ChannelContainsVideos: AugmentedError; + /** + * Channel does not exist + **/ + ChannelDoesNotExist: AugmentedError; + /** + * Curator authentication failed + **/ + CuratorAuthFailed: AugmentedError; + /** + * Given curator group does not exist + **/ + CuratorGroupDoesNotExist: AugmentedError; + /** + * Curator group is not active + **/ + CuratorGroupIsNotActive: AugmentedError; + /** + * Curator id is not a worker id in content working group + **/ + CuratorIdInvalid: AugmentedError; + /** + * Curator under provided curator id is already a member of curaror group under given id + **/ + CuratorIsAlreadyAMemberOfGivenCuratorGroup: AugmentedError; + /** + * Curator under provided curator id is not a member of curaror group under given id + **/ + CuratorIsNotAMemberOfGivenCuratorGroup: AugmentedError; + /** + * Max number of curators per group limit reached + **/ + CuratorsPerGroupLimitReached: AugmentedError; + /** + * Feature Not Implemented + **/ + FeatureNotImplemented: AugmentedError; + /** + * Channel assets feasibility + **/ + InvalidAssetsProvided: AugmentedError; + /** + * Bag Size specified is not valid + **/ + InvalidBagSizeSpecified: AugmentedError; + /** + * Lead authentication failed + **/ + LeadAuthFailed: AugmentedError; + /** + * Member authentication failed + **/ + MemberAuthFailed: AugmentedError; + /** + * No assets to be removed have been specified + **/ + NoAssetsSpecified: AugmentedError; + /** + * Video does not exist + **/ + VideoDoesNotExist: AugmentedError; + /** + * Video in season can`t be removed (because order is important) + **/ + VideoInSeason: AugmentedError; + }; + contentWorkingGroup: { + /** + * Opening does not exist. + **/ + AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError; + /** + * Opening Is Not in Waiting to begin. + **/ + AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError; + /** + * Opening does not activate in the future. + **/ + AddWorkerOpeningActivatesInThePast: AugmentedError; + /** + * Add worker opening application stake cannot be zero. + **/ + AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError; + /** + * Application stake amount less than minimum currency balance. + **/ + AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError; + /** + * New application was crowded out. + **/ + AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError; + /** + * Opening does not exist. + **/ + AddWorkerOpeningOpeningDoesNotExist: AugmentedError; + /** + * Opening is not in accepting applications stage. + **/ + AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError; + /** + * Add worker opening role stake cannot be zero. + **/ + AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError; + /** + * Role stake amount less than minimum currency balance. + **/ + AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError; + /** + * Stake amount too low. + **/ + AddWorkerOpeningStakeAmountTooLow: AugmentedError; + /** + * Stake missing when required. + **/ + AddWorkerOpeningStakeMissingWhenRequired: AugmentedError; + /** + * Stake provided when redundant. + **/ + AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError; + /** + * Application rationing has zero max active applicants. + **/ + AddWorkerOpeningZeroMaxApplicantCount: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_rationing_policy): + * max_active_applicants should be non-zero. + **/ + ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_staking_policy): + * crowded_out_unstaking_period_length should be non-zero. + **/ + ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_staking_policy): + * review_period_expired_unstaking_period_length should be non-zero. + **/ + ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError; + /** + * Signer does not match controller account. + **/ + ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError; + /** + * Opening does not exist. + **/ + BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError; + /** + * Opening Is Not in Waiting. + **/ + BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError; + /** + * Cannot find mint in the minting module. + **/ + CannotFindMint: AugmentedError; + /** + * There is leader already, cannot hire another one. + **/ + CannotHireLeaderWhenLeaderExists: AugmentedError; + /** + * Cannot fill opening with multiple applications. + **/ + CannotHireMultipleLeaders: AugmentedError; + /** + * Current lead is not set. + **/ + CurrentLeadNotSet: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * exit_role_application_stake_unstaking_period should be non-zero. + **/ + ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * exit_role_stake_unstaking_period should be non-zero. + **/ + ExitRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero. + **/ + FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero. + **/ + FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Reward policy has invalid next payment block number. + **/ + FillOpeningInvalidNextPaymentBlock: AugmentedError; + /** + * Working group mint does not exist. + **/ + FillOpeningMintDoesNotExist: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero. + **/ + FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Applications not for opening. + **/ + FillWorkerOpeningApplicationForWrongOpening: AugmentedError; + /** + * Application does not exist. + **/ + FullWorkerOpeningApplicationDoesNotExist: AugmentedError; + /** + * Application not in active stage. + **/ + FullWorkerOpeningApplicationNotActive: AugmentedError; + /** + * OpeningDoesNotExist. + **/ + FullWorkerOpeningOpeningDoesNotExist: AugmentedError; + /** + * Opening not in review period stage. + **/ + FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError; + /** + * Application stake unstaking period for successful applicants redundant. + **/ + FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Application stake unstaking period for failed applicants too short. + **/ + FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Role stake unstaking period for successful applicants redundant. + **/ + FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Role stake unstaking period for successful applicants too short. + **/ + FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Application stake unstaking period for failed applicants redundant. + **/ + FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Application stake unstaking period for successful applicants too short. + **/ + FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Role stake unstaking period for failed applicants redundant. + **/ + FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Role stake unstaking period for failed applicants too short. + **/ + FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Insufficient balance to apply. + **/ + InsufficientBalanceToApply: AugmentedError; + /** + * Insufficient balance to cover stake. + **/ + InsufficientBalanceToCoverStake: AugmentedError; + /** + * Not a lead account. + **/ + IsNotLeadAccount: AugmentedError; + /** + * Working group size limit exceeded. + **/ + MaxActiveWorkerNumberExceeded: AugmentedError; + /** + * Member already has an active application on the opening. + **/ + MemberHasActiveApplicationOnOpening: AugmentedError; + /** + * Member id is invalid. + **/ + MembershipInvalidMemberId: AugmentedError; + /** + * Unsigned origin. + **/ + MembershipUnsignedOrigin: AugmentedError; + /** + * Minting error: NextAdjustmentInPast + **/ + MintingErrorNextAdjustmentInPast: AugmentedError; + /** + * Cannot get the worker stake profile. + **/ + NoWorkerStakeProfile: AugmentedError; + /** + * Opening does not exist. + **/ + OpeningDoesNotExist: AugmentedError; + /** + * Opening text too long. + **/ + OpeningTextTooLong: AugmentedError; + /** + * Opening text too short. + **/ + OpeningTextTooShort: AugmentedError; + /** + * Origin must be controller or root account of member. + **/ + OriginIsNeitherMemberControllerOrRoot: AugmentedError; + /** + * Origin is not applicant. + **/ + OriginIsNotApplicant: AugmentedError; + /** + * Next payment is not in the future. + **/ + RecurringRewardsNextPaymentNotInFuture: AugmentedError; + /** + * Recipient not found. + **/ + RecurringRewardsRecipientNotFound: AugmentedError; + /** + * Reward relationship not found. + **/ + RecurringRewardsRewardRelationshipNotFound: AugmentedError; + /** + * Recipient reward source not found. + **/ + RecurringRewardsRewardSourceNotFound: AugmentedError; + /** + * Relationship must exist. + **/ + RelationshipMustExist: AugmentedError; + /** + * Require root origin in extrinsics. + **/ + RequireRootOrigin: AugmentedError; + /** + * Require signed origin in extrinsics. + **/ + RequireSignedOrigin: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (role_staking_policy): + * crowded_out_unstaking_period_length should be non-zero. + **/ + RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (role_staking_policy): + * review_period_expired_unstaking_period_length should be non-zero. + **/ + RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError; + /** + * Signer is not worker role account. + **/ + SignerIsNotWorkerRoleAccount: AugmentedError; + /** + * Provided stake balance cannot be zero. + **/ + StakeBalanceCannotBeZero: AugmentedError; + /** + * Already unstaking. + **/ + StakingErrorAlreadyUnstaking: AugmentedError; + /** + * Cannot change stake by zero. + **/ + StakingErrorCannotChangeStakeByZero: AugmentedError; + /** + * Cannot decrease stake while slashes ongoing. + **/ + StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError; + /** + * Cannot increase stake while unstaking. + **/ + StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError; + /** + * Cannot unstake while slashes ongoing. + **/ + StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError; + /** + * Insufficient balance in source account. + **/ + StakingErrorInsufficientBalanceInSourceAccount: AugmentedError; + /** + * Insufficient stake to decrease. + **/ + StakingErrorInsufficientStake: AugmentedError; + /** + * Not staked. + **/ + StakingErrorNotStaked: AugmentedError; + /** + * Slash amount should be greater than zero. + **/ + StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError; + /** + * Stake not found. + **/ + StakingErrorStakeNotFound: AugmentedError; + /** + * Unstaking period should be greater than zero. + **/ + StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError; + /** + * Successful worker application does not exist. + **/ + SuccessfulWorkerApplicationDoesNotExist: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * terminate_application_stake_unstaking_period should be non-zero. + **/ + TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * terminate_role_stake_unstaking_period should be non-zero. + **/ + TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Application does not exist. + **/ + WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError; + /** + * Application is not active. + **/ + WithdrawWorkerApplicationApplicationNotActive: AugmentedError; + /** + * Opening not accepting applications. + **/ + WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError; + /** + * Redundant unstaking period provided + **/ + WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError; + /** + * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE + **/ + WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError; + /** + * Worker application does not exist. + **/ + WorkerApplicationDoesNotExist: AugmentedError; + /** + * Worker application text too long. + **/ + WorkerApplicationTextTooLong: AugmentedError; + /** + * Worker application text too short. + **/ + WorkerApplicationTextTooShort: AugmentedError; + /** + * Worker does not exist. + **/ + WorkerDoesNotExist: AugmentedError; + /** + * Worker exit rationale text is too long. + **/ + WorkerExitRationaleTextTooLong: AugmentedError; + /** + * Worker exit rationale text is too short. + **/ + WorkerExitRationaleTextTooShort: AugmentedError; + /** + * Worker has no recurring reward. + **/ + WorkerHasNoReward: AugmentedError; + /** + * Worker storage text is too long. + **/ + WorkerStorageValueTooLong: AugmentedError; + }; + distributionWorkingGroup: { + /** + * Opening does not exist. + **/ + AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError; + /** + * Opening Is Not in Waiting to begin. + **/ + AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError; + /** + * Opening does not activate in the future. + **/ + AddWorkerOpeningActivatesInThePast: AugmentedError; + /** + * Add worker opening application stake cannot be zero. + **/ + AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError; + /** + * Application stake amount less than minimum currency balance. + **/ + AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError; + /** + * New application was crowded out. + **/ + AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError; + /** + * Opening does not exist. + **/ + AddWorkerOpeningOpeningDoesNotExist: AugmentedError; + /** + * Opening is not in accepting applications stage. + **/ + AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError; + /** + * Add worker opening role stake cannot be zero. + **/ + AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError; + /** + * Role stake amount less than minimum currency balance. + **/ + AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError; + /** + * Stake amount too low. + **/ + AddWorkerOpeningStakeAmountTooLow: AugmentedError; + /** + * Stake missing when required. + **/ + AddWorkerOpeningStakeMissingWhenRequired: AugmentedError; + /** + * Stake provided when redundant. + **/ + AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError; + /** + * Application rationing has zero max active applicants. + **/ + AddWorkerOpeningZeroMaxApplicantCount: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_rationing_policy): + * max_active_applicants should be non-zero. + **/ + ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_staking_policy): + * crowded_out_unstaking_period_length should be non-zero. + **/ + ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_staking_policy): + * review_period_expired_unstaking_period_length should be non-zero. + **/ + ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError; + /** + * Signer does not match controller account. + **/ + ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError; + /** + * Opening does not exist. + **/ + BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError; + /** + * Opening Is Not in Waiting. + **/ + BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError; + /** + * Cannot find mint in the minting module. + **/ + CannotFindMint: AugmentedError; + /** + * There is leader already, cannot hire another one. + **/ + CannotHireLeaderWhenLeaderExists: AugmentedError; + /** + * Cannot fill opening with multiple applications. + **/ + CannotHireMultipleLeaders: AugmentedError; + /** + * Current lead is not set. + **/ + CurrentLeadNotSet: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * exit_role_application_stake_unstaking_period should be non-zero. + **/ + ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * exit_role_stake_unstaking_period should be non-zero. + **/ + ExitRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero. + **/ + FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero. + **/ + FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Reward policy has invalid next payment block number. + **/ + FillOpeningInvalidNextPaymentBlock: AugmentedError; + /** + * Working group mint does not exist. + **/ + FillOpeningMintDoesNotExist: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero. + **/ + FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Applications not for opening. + **/ + FillWorkerOpeningApplicationForWrongOpening: AugmentedError; + /** + * Application does not exist. + **/ + FullWorkerOpeningApplicationDoesNotExist: AugmentedError; + /** + * Application not in active stage. + **/ + FullWorkerOpeningApplicationNotActive: AugmentedError; + /** + * OpeningDoesNotExist. + **/ + FullWorkerOpeningOpeningDoesNotExist: AugmentedError; + /** + * Opening not in review period stage. + **/ + FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError; + /** + * Application stake unstaking period for successful applicants redundant. + **/ + FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Application stake unstaking period for failed applicants too short. + **/ + FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Role stake unstaking period for successful applicants redundant. + **/ + FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Role stake unstaking period for successful applicants too short. + **/ + FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Application stake unstaking period for failed applicants redundant. + **/ + FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Application stake unstaking period for successful applicants too short. + **/ + FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Role stake unstaking period for failed applicants redundant. + **/ + FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Role stake unstaking period for failed applicants too short. + **/ + FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Insufficient balance to apply. + **/ + InsufficientBalanceToApply: AugmentedError; + /** + * Insufficient balance to cover stake. + **/ + InsufficientBalanceToCoverStake: AugmentedError; + /** + * Not a lead account. + **/ + IsNotLeadAccount: AugmentedError; + /** + * Working group size limit exceeded. + **/ + MaxActiveWorkerNumberExceeded: AugmentedError; + /** + * Member already has an active application on the opening. + **/ + MemberHasActiveApplicationOnOpening: AugmentedError; + /** + * Member id is invalid. + **/ + MembershipInvalidMemberId: AugmentedError; + /** + * Unsigned origin. + **/ + MembershipUnsignedOrigin: AugmentedError; + /** + * Minting error: NextAdjustmentInPast + **/ + MintingErrorNextAdjustmentInPast: AugmentedError; + /** + * Cannot get the worker stake profile. + **/ + NoWorkerStakeProfile: AugmentedError; + /** + * Opening does not exist. + **/ + OpeningDoesNotExist: AugmentedError; + /** + * Opening text too long. + **/ + OpeningTextTooLong: AugmentedError; + /** + * Opening text too short. + **/ + OpeningTextTooShort: AugmentedError; + /** + * Origin must be controller or root account of member. + **/ + OriginIsNeitherMemberControllerOrRoot: AugmentedError; + /** + * Origin is not applicant. + **/ + OriginIsNotApplicant: AugmentedError; + /** + * Next payment is not in the future. + **/ + RecurringRewardsNextPaymentNotInFuture: AugmentedError; + /** + * Recipient not found. + **/ + RecurringRewardsRecipientNotFound: AugmentedError; + /** + * Reward relationship not found. + **/ + RecurringRewardsRewardRelationshipNotFound: AugmentedError; + /** + * Recipient reward source not found. + **/ + RecurringRewardsRewardSourceNotFound: AugmentedError; + /** + * Relationship must exist. + **/ + RelationshipMustExist: AugmentedError; + /** + * Require root origin in extrinsics. + **/ + RequireRootOrigin: AugmentedError; + /** + * Require signed origin in extrinsics. + **/ + RequireSignedOrigin: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (role_staking_policy): + * crowded_out_unstaking_period_length should be non-zero. + **/ + RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (role_staking_policy): + * review_period_expired_unstaking_period_length should be non-zero. + **/ + RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError; + /** + * Signer is not worker role account. + **/ + SignerIsNotWorkerRoleAccount: AugmentedError; + /** + * Provided stake balance cannot be zero. + **/ + StakeBalanceCannotBeZero: AugmentedError; + /** + * Already unstaking. + **/ + StakingErrorAlreadyUnstaking: AugmentedError; + /** + * Cannot change stake by zero. + **/ + StakingErrorCannotChangeStakeByZero: AugmentedError; + /** + * Cannot decrease stake while slashes ongoing. + **/ + StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError; + /** + * Cannot increase stake while unstaking. + **/ + StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError; + /** + * Cannot unstake while slashes ongoing. + **/ + StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError; + /** + * Insufficient balance in source account. + **/ + StakingErrorInsufficientBalanceInSourceAccount: AugmentedError; + /** + * Insufficient stake to decrease. + **/ + StakingErrorInsufficientStake: AugmentedError; + /** + * Not staked. + **/ + StakingErrorNotStaked: AugmentedError; + /** + * Slash amount should be greater than zero. + **/ + StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError; + /** + * Stake not found. + **/ + StakingErrorStakeNotFound: AugmentedError; + /** + * Unstaking period should be greater than zero. + **/ + StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError; + /** + * Successful worker application does not exist. + **/ + SuccessfulWorkerApplicationDoesNotExist: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * terminate_application_stake_unstaking_period should be non-zero. + **/ + TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * terminate_role_stake_unstaking_period should be non-zero. + **/ + TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Application does not exist. + **/ + WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError; + /** + * Application is not active. + **/ + WithdrawWorkerApplicationApplicationNotActive: AugmentedError; + /** + * Opening not accepting applications. + **/ + WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError; + /** + * Redundant unstaking period provided + **/ + WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError; + /** + * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE + **/ + WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError; + /** + * Worker application does not exist. + **/ + WorkerApplicationDoesNotExist: AugmentedError; + /** + * Worker application text too long. + **/ + WorkerApplicationTextTooLong: AugmentedError; + /** + * Worker application text too short. + **/ + WorkerApplicationTextTooShort: AugmentedError; + /** + * Worker does not exist. + **/ + WorkerDoesNotExist: AugmentedError; + /** + * Worker exit rationale text is too long. + **/ + WorkerExitRationaleTextTooLong: AugmentedError; + /** + * Worker exit rationale text is too short. + **/ + WorkerExitRationaleTextTooShort: AugmentedError; + /** + * Worker has no recurring reward. + **/ + WorkerHasNoReward: AugmentedError; + /** + * Worker storage text is too long. + **/ + WorkerStorageValueTooLong: AugmentedError; + }; + finalityTracker: { + /** + * Final hint must be updated only once in the block + **/ + AlreadyUpdated: AugmentedError; + /** + * Finalized height above block number + **/ + BadHint: AugmentedError; + }; + gatewayWorkingGroup: { + /** + * Opening does not exist. + **/ + AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError; + /** + * Opening Is Not in Waiting to begin. + **/ + AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError; + /** + * Opening does not activate in the future. + **/ + AddWorkerOpeningActivatesInThePast: AugmentedError; + /** + * Add worker opening application stake cannot be zero. + **/ + AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError; + /** + * Application stake amount less than minimum currency balance. + **/ + AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError; + /** + * New application was crowded out. + **/ + AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError; + /** + * Opening does not exist. + **/ + AddWorkerOpeningOpeningDoesNotExist: AugmentedError; + /** + * Opening is not in accepting applications stage. + **/ + AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError; + /** + * Add worker opening role stake cannot be zero. + **/ + AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError; + /** + * Role stake amount less than minimum currency balance. + **/ + AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError; + /** + * Stake amount too low. + **/ + AddWorkerOpeningStakeAmountTooLow: AugmentedError; + /** + * Stake missing when required. + **/ + AddWorkerOpeningStakeMissingWhenRequired: AugmentedError; + /** + * Stake provided when redundant. + **/ + AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError; + /** + * Application rationing has zero max active applicants. + **/ + AddWorkerOpeningZeroMaxApplicantCount: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_rationing_policy): + * max_active_applicants should be non-zero. + **/ + ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_staking_policy): + * crowded_out_unstaking_period_length should be non-zero. + **/ + ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_staking_policy): + * review_period_expired_unstaking_period_length should be non-zero. + **/ + ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError; + /** + * Signer does not match controller account. + **/ + ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError; + /** + * Opening does not exist. + **/ + BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError; + /** + * Opening Is Not in Waiting. + **/ + BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError; + /** + * Cannot find mint in the minting module. + **/ + CannotFindMint: AugmentedError; + /** + * There is leader already, cannot hire another one. + **/ + CannotHireLeaderWhenLeaderExists: AugmentedError; + /** + * Cannot fill opening with multiple applications. + **/ + CannotHireMultipleLeaders: AugmentedError; + /** + * Current lead is not set. + **/ + CurrentLeadNotSet: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * exit_role_application_stake_unstaking_period should be non-zero. + **/ + ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * exit_role_stake_unstaking_period should be non-zero. + **/ + ExitRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero. + **/ + FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero. + **/ + FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Reward policy has invalid next payment block number. + **/ + FillOpeningInvalidNextPaymentBlock: AugmentedError; + /** + * Working group mint does not exist. + **/ + FillOpeningMintDoesNotExist: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero. + **/ + FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Applications not for opening. + **/ + FillWorkerOpeningApplicationForWrongOpening: AugmentedError; + /** + * Application does not exist. + **/ + FullWorkerOpeningApplicationDoesNotExist: AugmentedError; + /** + * Application not in active stage. + **/ + FullWorkerOpeningApplicationNotActive: AugmentedError; + /** + * OpeningDoesNotExist. + **/ + FullWorkerOpeningOpeningDoesNotExist: AugmentedError; + /** + * Opening not in review period stage. + **/ + FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError; + /** + * Application stake unstaking period for successful applicants redundant. + **/ + FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Application stake unstaking period for failed applicants too short. + **/ + FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Role stake unstaking period for successful applicants redundant. + **/ + FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Role stake unstaking period for successful applicants too short. + **/ + FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Application stake unstaking period for failed applicants redundant. + **/ + FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Application stake unstaking period for successful applicants too short. + **/ + FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Role stake unstaking period for failed applicants redundant. + **/ + FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Role stake unstaking period for failed applicants too short. + **/ + FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Insufficient balance to apply. + **/ + InsufficientBalanceToApply: AugmentedError; + /** + * Insufficient balance to cover stake. + **/ + InsufficientBalanceToCoverStake: AugmentedError; + /** + * Not a lead account. + **/ + IsNotLeadAccount: AugmentedError; + /** + * Working group size limit exceeded. + **/ + MaxActiveWorkerNumberExceeded: AugmentedError; + /** + * Member already has an active application on the opening. + **/ + MemberHasActiveApplicationOnOpening: AugmentedError; + /** + * Member id is invalid. + **/ + MembershipInvalidMemberId: AugmentedError; + /** + * Unsigned origin. + **/ + MembershipUnsignedOrigin: AugmentedError; + /** + * Minting error: NextAdjustmentInPast + **/ + MintingErrorNextAdjustmentInPast: AugmentedError; + /** + * Cannot get the worker stake profile. + **/ + NoWorkerStakeProfile: AugmentedError; + /** + * Opening does not exist. + **/ + OpeningDoesNotExist: AugmentedError; + /** + * Opening text too long. + **/ + OpeningTextTooLong: AugmentedError; + /** + * Opening text too short. + **/ + OpeningTextTooShort: AugmentedError; + /** + * Origin must be controller or root account of member. + **/ + OriginIsNeitherMemberControllerOrRoot: AugmentedError; + /** + * Origin is not applicant. + **/ + OriginIsNotApplicant: AugmentedError; + /** + * Next payment is not in the future. + **/ + RecurringRewardsNextPaymentNotInFuture: AugmentedError; + /** + * Recipient not found. + **/ + RecurringRewardsRecipientNotFound: AugmentedError; + /** + * Reward relationship not found. + **/ + RecurringRewardsRewardRelationshipNotFound: AugmentedError; + /** + * Recipient reward source not found. + **/ + RecurringRewardsRewardSourceNotFound: AugmentedError; + /** + * Relationship must exist. + **/ + RelationshipMustExist: AugmentedError; + /** + * Require root origin in extrinsics. + **/ + RequireRootOrigin: AugmentedError; + /** + * Require signed origin in extrinsics. + **/ + RequireSignedOrigin: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (role_staking_policy): + * crowded_out_unstaking_period_length should be non-zero. + **/ + RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (role_staking_policy): + * review_period_expired_unstaking_period_length should be non-zero. + **/ + RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError; + /** + * Signer is not worker role account. + **/ + SignerIsNotWorkerRoleAccount: AugmentedError; + /** + * Provided stake balance cannot be zero. + **/ + StakeBalanceCannotBeZero: AugmentedError; + /** + * Already unstaking. + **/ + StakingErrorAlreadyUnstaking: AugmentedError; + /** + * Cannot change stake by zero. + **/ + StakingErrorCannotChangeStakeByZero: AugmentedError; + /** + * Cannot decrease stake while slashes ongoing. + **/ + StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError; + /** + * Cannot increase stake while unstaking. + **/ + StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError; + /** + * Cannot unstake while slashes ongoing. + **/ + StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError; + /** + * Insufficient balance in source account. + **/ + StakingErrorInsufficientBalanceInSourceAccount: AugmentedError; + /** + * Insufficient stake to decrease. + **/ + StakingErrorInsufficientStake: AugmentedError; + /** + * Not staked. + **/ + StakingErrorNotStaked: AugmentedError; + /** + * Slash amount should be greater than zero. + **/ + StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError; + /** + * Stake not found. + **/ + StakingErrorStakeNotFound: AugmentedError; + /** + * Unstaking period should be greater than zero. + **/ + StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError; + /** + * Successful worker application does not exist. + **/ + SuccessfulWorkerApplicationDoesNotExist: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * terminate_application_stake_unstaking_period should be non-zero. + **/ + TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * terminate_role_stake_unstaking_period should be non-zero. + **/ + TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Application does not exist. + **/ + WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError; + /** + * Application is not active. + **/ + WithdrawWorkerApplicationApplicationNotActive: AugmentedError; + /** + * Opening not accepting applications. + **/ + WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError; + /** + * Redundant unstaking period provided + **/ + WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError; + /** + * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE + **/ + WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError; + /** + * Worker application does not exist. + **/ + WorkerApplicationDoesNotExist: AugmentedError; + /** + * Worker application text too long. + **/ + WorkerApplicationTextTooLong: AugmentedError; + /** + * Worker application text too short. + **/ + WorkerApplicationTextTooShort: AugmentedError; + /** + * Worker does not exist. + **/ + WorkerDoesNotExist: AugmentedError; + /** + * Worker exit rationale text is too long. + **/ + WorkerExitRationaleTextTooLong: AugmentedError; + /** + * Worker exit rationale text is too short. + **/ + WorkerExitRationaleTextTooShort: AugmentedError; + /** + * Worker has no recurring reward. + **/ + WorkerHasNoReward: AugmentedError; + /** + * Worker storage text is too long. + **/ + WorkerStorageValueTooLong: AugmentedError; + }; + grandpa: { + /** + * Attempt to signal GRANDPA change with one already pending. + **/ + ChangePending: AugmentedError; + /** + * A given equivocation report is valid but already previously reported. + **/ + DuplicateOffenceReport: AugmentedError; + /** + * An equivocation proof provided as part of an equivocation report is invalid. + **/ + InvalidEquivocationProof: AugmentedError; + /** + * A key ownership proof provided as part of an equivocation report is invalid. + **/ + InvalidKeyOwnershipProof: AugmentedError; + /** + * Attempt to signal GRANDPA pause when the authority set isn't live + * (either paused or already pending pause). + **/ + PauseFailed: AugmentedError; + /** + * Attempt to signal GRANDPA resume when the authority set isn't paused + * (either live or already pending resume). + **/ + ResumeFailed: AugmentedError; + /** + * Cannot signal forced change so soon after last. + **/ + TooSoon: AugmentedError; + }; + imOnline: { + /** + * Duplicated heartbeat. + **/ + DuplicatedHeartbeat: AugmentedError; + /** + * Non existent public key. + **/ + InvalidKey: AugmentedError; + }; + members: { + /** + * Avatar url is too long. + **/ + AvatarUriTooLong: AugmentedError; + /** + * Controller account required. + **/ + ControllerAccountRequired: AugmentedError; + /** + * Handle already registered. + **/ + HandleAlreadyRegistered: AugmentedError; + /** + * Handle must be provided during registration. + **/ + HandleMustBeProvidedDuringRegistration: AugmentedError; + /** + * Handle too long. + **/ + HandleTooLong: AugmentedError; + /** + * Handle too short. + **/ + HandleTooShort: AugmentedError; + /** + * Screening authority attempting to endow more that maximum allowed. + **/ + InitialBalanceExceedsMaxInitialBalance: AugmentedError; + /** + * Member profile not found (invalid member id). + **/ + MemberProfileNotFound: AugmentedError; + /** + * New memberships not allowed. + **/ + NewMembershipsNotAllowed: AugmentedError; + /** + * A screening authority is not defined. + **/ + NoScreeningAuthorityDefined: AugmentedError; + /** + * Not enough balance to buy membership. + **/ + NotEnoughBalanceToBuyMembership: AugmentedError; + /** + * Origin is not the screeing authority. + **/ + NotScreeningAuthority: AugmentedError; + /** + * Only new accounts can be used for screened members. + **/ + OnlyNewAccountsCanBeUsedForScreenedMembers: AugmentedError; + /** + * Paid term id not active. + **/ + PaidTermIdNotActive: AugmentedError; + /** + * Paid term id not found. + **/ + PaidTermIdNotFound: AugmentedError; + /** + * Root account required. + **/ + RootAccountRequired: AugmentedError; + /** + * Invalid origin. + **/ + UnsignedOrigin: AugmentedError; + }; + operationsWorkingGroupAlpha: { + /** + * Opening does not exist. + **/ + AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError; + /** + * Opening Is Not in Waiting to begin. + **/ + AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError; + /** + * Opening does not activate in the future. + **/ + AddWorkerOpeningActivatesInThePast: AugmentedError; + /** + * Add worker opening application stake cannot be zero. + **/ + AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError; + /** + * Application stake amount less than minimum currency balance. + **/ + AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError; + /** + * New application was crowded out. + **/ + AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError; + /** + * Opening does not exist. + **/ + AddWorkerOpeningOpeningDoesNotExist: AugmentedError; + /** + * Opening is not in accepting applications stage. + **/ + AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError; + /** + * Add worker opening role stake cannot be zero. + **/ + AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError; + /** + * Role stake amount less than minimum currency balance. + **/ + AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError; + /** + * Stake amount too low. + **/ + AddWorkerOpeningStakeAmountTooLow: AugmentedError; + /** + * Stake missing when required. + **/ + AddWorkerOpeningStakeMissingWhenRequired: AugmentedError; + /** + * Stake provided when redundant. + **/ + AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError; + /** + * Application rationing has zero max active applicants. + **/ + AddWorkerOpeningZeroMaxApplicantCount: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_rationing_policy): + * max_active_applicants should be non-zero. + **/ + ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_staking_policy): + * crowded_out_unstaking_period_length should be non-zero. + **/ + ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_staking_policy): + * review_period_expired_unstaking_period_length should be non-zero. + **/ + ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError; + /** + * Signer does not match controller account. + **/ + ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError; + /** + * Opening does not exist. + **/ + BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError; + /** + * Opening Is Not in Waiting. + **/ + BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError; + /** + * Cannot find mint in the minting module. + **/ + CannotFindMint: AugmentedError; + /** + * There is leader already, cannot hire another one. + **/ + CannotHireLeaderWhenLeaderExists: AugmentedError; + /** + * Cannot fill opening with multiple applications. + **/ + CannotHireMultipleLeaders: AugmentedError; + /** + * Current lead is not set. + **/ + CurrentLeadNotSet: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * exit_role_application_stake_unstaking_period should be non-zero. + **/ + ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * exit_role_stake_unstaking_period should be non-zero. + **/ + ExitRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero. + **/ + FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero. + **/ + FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Reward policy has invalid next payment block number. + **/ + FillOpeningInvalidNextPaymentBlock: AugmentedError; + /** + * Working group mint does not exist. + **/ + FillOpeningMintDoesNotExist: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero. + **/ + FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Applications not for opening. + **/ + FillWorkerOpeningApplicationForWrongOpening: AugmentedError; + /** + * Application does not exist. + **/ + FullWorkerOpeningApplicationDoesNotExist: AugmentedError; + /** + * Application not in active stage. + **/ + FullWorkerOpeningApplicationNotActive: AugmentedError; + /** + * OpeningDoesNotExist. + **/ + FullWorkerOpeningOpeningDoesNotExist: AugmentedError; + /** + * Opening not in review period stage. + **/ + FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError; + /** + * Application stake unstaking period for successful applicants redundant. + **/ + FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Application stake unstaking period for failed applicants too short. + **/ + FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Role stake unstaking period for successful applicants redundant. + **/ + FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Role stake unstaking period for successful applicants too short. + **/ + FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Application stake unstaking period for failed applicants redundant. + **/ + FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Application stake unstaking period for successful applicants too short. + **/ + FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Role stake unstaking period for failed applicants redundant. + **/ + FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Role stake unstaking period for failed applicants too short. + **/ + FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Insufficient balance to apply. + **/ + InsufficientBalanceToApply: AugmentedError; + /** + * Insufficient balance to cover stake. + **/ + InsufficientBalanceToCoverStake: AugmentedError; + /** + * Not a lead account. + **/ + IsNotLeadAccount: AugmentedError; + /** + * Working group size limit exceeded. + **/ + MaxActiveWorkerNumberExceeded: AugmentedError; + /** + * Member already has an active application on the opening. + **/ + MemberHasActiveApplicationOnOpening: AugmentedError; + /** + * Member id is invalid. + **/ + MembershipInvalidMemberId: AugmentedError; + /** + * Unsigned origin. + **/ + MembershipUnsignedOrigin: AugmentedError; + /** + * Minting error: NextAdjustmentInPast + **/ + MintingErrorNextAdjustmentInPast: AugmentedError; + /** + * Cannot get the worker stake profile. + **/ + NoWorkerStakeProfile: AugmentedError; + /** + * Opening does not exist. + **/ + OpeningDoesNotExist: AugmentedError; + /** + * Opening text too long. + **/ + OpeningTextTooLong: AugmentedError; + /** + * Opening text too short. + **/ + OpeningTextTooShort: AugmentedError; + /** + * Origin must be controller or root account of member. + **/ + OriginIsNeitherMemberControllerOrRoot: AugmentedError; + /** + * Origin is not applicant. + **/ + OriginIsNotApplicant: AugmentedError; + /** + * Next payment is not in the future. + **/ + RecurringRewardsNextPaymentNotInFuture: AugmentedError; + /** + * Recipient not found. + **/ + RecurringRewardsRecipientNotFound: AugmentedError; + /** + * Reward relationship not found. + **/ + RecurringRewardsRewardRelationshipNotFound: AugmentedError; + /** + * Recipient reward source not found. + **/ + RecurringRewardsRewardSourceNotFound: AugmentedError; + /** + * Relationship must exist. + **/ + RelationshipMustExist: AugmentedError; + /** + * Require root origin in extrinsics. + **/ + RequireRootOrigin: AugmentedError; + /** + * Require signed origin in extrinsics. + **/ + RequireSignedOrigin: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (role_staking_policy): + * crowded_out_unstaking_period_length should be non-zero. + **/ + RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (role_staking_policy): + * review_period_expired_unstaking_period_length should be non-zero. + **/ + RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError; + /** + * Signer is not worker role account. + **/ + SignerIsNotWorkerRoleAccount: AugmentedError; + /** + * Provided stake balance cannot be zero. + **/ + StakeBalanceCannotBeZero: AugmentedError; + /** + * Already unstaking. + **/ + StakingErrorAlreadyUnstaking: AugmentedError; + /** + * Cannot change stake by zero. + **/ + StakingErrorCannotChangeStakeByZero: AugmentedError; + /** + * Cannot decrease stake while slashes ongoing. + **/ + StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError; + /** + * Cannot increase stake while unstaking. + **/ + StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError; + /** + * Cannot unstake while slashes ongoing. + **/ + StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError; + /** + * Insufficient balance in source account. + **/ + StakingErrorInsufficientBalanceInSourceAccount: AugmentedError; + /** + * Insufficient stake to decrease. + **/ + StakingErrorInsufficientStake: AugmentedError; + /** + * Not staked. + **/ + StakingErrorNotStaked: AugmentedError; + /** + * Slash amount should be greater than zero. + **/ + StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError; + /** + * Stake not found. + **/ + StakingErrorStakeNotFound: AugmentedError; + /** + * Unstaking period should be greater than zero. + **/ + StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError; + /** + * Successful worker application does not exist. + **/ + SuccessfulWorkerApplicationDoesNotExist: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * terminate_application_stake_unstaking_period should be non-zero. + **/ + TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * terminate_role_stake_unstaking_period should be non-zero. + **/ + TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Application does not exist. + **/ + WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError; + /** + * Application is not active. + **/ + WithdrawWorkerApplicationApplicationNotActive: AugmentedError; + /** + * Opening not accepting applications. + **/ + WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError; + /** + * Redundant unstaking period provided + **/ + WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError; + /** + * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE + **/ + WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError; + /** + * Worker application does not exist. + **/ + WorkerApplicationDoesNotExist: AugmentedError; + /** + * Worker application text too long. + **/ + WorkerApplicationTextTooLong: AugmentedError; + /** + * Worker application text too short. + **/ + WorkerApplicationTextTooShort: AugmentedError; + /** + * Worker does not exist. + **/ + WorkerDoesNotExist: AugmentedError; + /** + * Worker exit rationale text is too long. + **/ + WorkerExitRationaleTextTooLong: AugmentedError; + /** + * Worker exit rationale text is too short. + **/ + WorkerExitRationaleTextTooShort: AugmentedError; + /** + * Worker has no recurring reward. + **/ + WorkerHasNoReward: AugmentedError; + /** + * Worker storage text is too long. + **/ + WorkerStorageValueTooLong: AugmentedError; + }; + operationsWorkingGroupBeta: { + /** + * Opening does not exist. + **/ + AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError; + /** + * Opening Is Not in Waiting to begin. + **/ + AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError; + /** + * Opening does not activate in the future. + **/ + AddWorkerOpeningActivatesInThePast: AugmentedError; + /** + * Add worker opening application stake cannot be zero. + **/ + AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError; + /** + * Application stake amount less than minimum currency balance. + **/ + AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError; + /** + * New application was crowded out. + **/ + AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError; + /** + * Opening does not exist. + **/ + AddWorkerOpeningOpeningDoesNotExist: AugmentedError; + /** + * Opening is not in accepting applications stage. + **/ + AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError; + /** + * Add worker opening role stake cannot be zero. + **/ + AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError; + /** + * Role stake amount less than minimum currency balance. + **/ + AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError; + /** + * Stake amount too low. + **/ + AddWorkerOpeningStakeAmountTooLow: AugmentedError; + /** + * Stake missing when required. + **/ + AddWorkerOpeningStakeMissingWhenRequired: AugmentedError; + /** + * Stake provided when redundant. + **/ + AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError; + /** + * Application rationing has zero max active applicants. + **/ + AddWorkerOpeningZeroMaxApplicantCount: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_rationing_policy): + * max_active_applicants should be non-zero. + **/ + ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_staking_policy): + * crowded_out_unstaking_period_length should be non-zero. + **/ + ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_staking_policy): + * review_period_expired_unstaking_period_length should be non-zero. + **/ + ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError; + /** + * Signer does not match controller account. + **/ + ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError; + /** + * Opening does not exist. + **/ + BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError; + /** + * Opening Is Not in Waiting. + **/ + BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError; + /** + * Cannot find mint in the minting module. + **/ + CannotFindMint: AugmentedError; + /** + * There is leader already, cannot hire another one. + **/ + CannotHireLeaderWhenLeaderExists: AugmentedError; + /** + * Cannot fill opening with multiple applications. + **/ + CannotHireMultipleLeaders: AugmentedError; + /** + * Current lead is not set. + **/ + CurrentLeadNotSet: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * exit_role_application_stake_unstaking_period should be non-zero. + **/ + ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * exit_role_stake_unstaking_period should be non-zero. + **/ + ExitRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero. + **/ + FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero. + **/ + FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Reward policy has invalid next payment block number. + **/ + FillOpeningInvalidNextPaymentBlock: AugmentedError; + /** + * Working group mint does not exist. + **/ + FillOpeningMintDoesNotExist: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero. + **/ + FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Applications not for opening. + **/ + FillWorkerOpeningApplicationForWrongOpening: AugmentedError; + /** + * Application does not exist. + **/ + FullWorkerOpeningApplicationDoesNotExist: AugmentedError; + /** + * Application not in active stage. + **/ + FullWorkerOpeningApplicationNotActive: AugmentedError; + /** + * OpeningDoesNotExist. + **/ + FullWorkerOpeningOpeningDoesNotExist: AugmentedError; + /** + * Opening not in review period stage. + **/ + FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError; + /** + * Application stake unstaking period for successful applicants redundant. + **/ + FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Application stake unstaking period for failed applicants too short. + **/ + FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Role stake unstaking period for successful applicants redundant. + **/ + FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Role stake unstaking period for successful applicants too short. + **/ + FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Application stake unstaking period for failed applicants redundant. + **/ + FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Application stake unstaking period for successful applicants too short. + **/ + FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Role stake unstaking period for failed applicants redundant. + **/ + FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Role stake unstaking period for failed applicants too short. + **/ + FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Insufficient balance to apply. + **/ + InsufficientBalanceToApply: AugmentedError; + /** + * Insufficient balance to cover stake. + **/ + InsufficientBalanceToCoverStake: AugmentedError; + /** + * Not a lead account. + **/ + IsNotLeadAccount: AugmentedError; + /** + * Working group size limit exceeded. + **/ + MaxActiveWorkerNumberExceeded: AugmentedError; + /** + * Member already has an active application on the opening. + **/ + MemberHasActiveApplicationOnOpening: AugmentedError; + /** + * Member id is invalid. + **/ + MembershipInvalidMemberId: AugmentedError; + /** + * Unsigned origin. + **/ + MembershipUnsignedOrigin: AugmentedError; + /** + * Minting error: NextAdjustmentInPast + **/ + MintingErrorNextAdjustmentInPast: AugmentedError; + /** + * Cannot get the worker stake profile. + **/ + NoWorkerStakeProfile: AugmentedError; + /** + * Opening does not exist. + **/ + OpeningDoesNotExist: AugmentedError; + /** + * Opening text too long. + **/ + OpeningTextTooLong: AugmentedError; + /** + * Opening text too short. + **/ + OpeningTextTooShort: AugmentedError; + /** + * Origin must be controller or root account of member. + **/ + OriginIsNeitherMemberControllerOrRoot: AugmentedError; + /** + * Origin is not applicant. + **/ + OriginIsNotApplicant: AugmentedError; + /** + * Next payment is not in the future. + **/ + RecurringRewardsNextPaymentNotInFuture: AugmentedError; + /** + * Recipient not found. + **/ + RecurringRewardsRecipientNotFound: AugmentedError; + /** + * Reward relationship not found. + **/ + RecurringRewardsRewardRelationshipNotFound: AugmentedError; + /** + * Recipient reward source not found. + **/ + RecurringRewardsRewardSourceNotFound: AugmentedError; + /** + * Relationship must exist. + **/ + RelationshipMustExist: AugmentedError; + /** + * Require root origin in extrinsics. + **/ + RequireRootOrigin: AugmentedError; + /** + * Require signed origin in extrinsics. + **/ + RequireSignedOrigin: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (role_staking_policy): + * crowded_out_unstaking_period_length should be non-zero. + **/ + RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (role_staking_policy): + * review_period_expired_unstaking_period_length should be non-zero. + **/ + RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError; + /** + * Signer is not worker role account. + **/ + SignerIsNotWorkerRoleAccount: AugmentedError; + /** + * Provided stake balance cannot be zero. + **/ + StakeBalanceCannotBeZero: AugmentedError; + /** + * Already unstaking. + **/ + StakingErrorAlreadyUnstaking: AugmentedError; + /** + * Cannot change stake by zero. + **/ + StakingErrorCannotChangeStakeByZero: AugmentedError; + /** + * Cannot decrease stake while slashes ongoing. + **/ + StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError; + /** + * Cannot increase stake while unstaking. + **/ + StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError; + /** + * Cannot unstake while slashes ongoing. + **/ + StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError; + /** + * Insufficient balance in source account. + **/ + StakingErrorInsufficientBalanceInSourceAccount: AugmentedError; + /** + * Insufficient stake to decrease. + **/ + StakingErrorInsufficientStake: AugmentedError; + /** + * Not staked. + **/ + StakingErrorNotStaked: AugmentedError; + /** + * Slash amount should be greater than zero. + **/ + StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError; + /** + * Stake not found. + **/ + StakingErrorStakeNotFound: AugmentedError; + /** + * Unstaking period should be greater than zero. + **/ + StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError; + /** + * Successful worker application does not exist. + **/ + SuccessfulWorkerApplicationDoesNotExist: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * terminate_application_stake_unstaking_period should be non-zero. + **/ + TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * terminate_role_stake_unstaking_period should be non-zero. + **/ + TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Application does not exist. + **/ + WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError; + /** + * Application is not active. + **/ + WithdrawWorkerApplicationApplicationNotActive: AugmentedError; + /** + * Opening not accepting applications. + **/ + WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError; + /** + * Redundant unstaking period provided + **/ + WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError; + /** + * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE + **/ + WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError; + /** + * Worker application does not exist. + **/ + WorkerApplicationDoesNotExist: AugmentedError; + /** + * Worker application text too long. + **/ + WorkerApplicationTextTooLong: AugmentedError; + /** + * Worker application text too short. + **/ + WorkerApplicationTextTooShort: AugmentedError; + /** + * Worker does not exist. + **/ + WorkerDoesNotExist: AugmentedError; + /** + * Worker exit rationale text is too long. + **/ + WorkerExitRationaleTextTooLong: AugmentedError; + /** + * Worker exit rationale text is too short. + **/ + WorkerExitRationaleTextTooShort: AugmentedError; + /** + * Worker has no recurring reward. + **/ + WorkerHasNoReward: AugmentedError; + /** + * Worker storage text is too long. + **/ + WorkerStorageValueTooLong: AugmentedError; + }; + operationsWorkingGroupGamma: { + /** + * Opening does not exist. + **/ + AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError; + /** + * Opening Is Not in Waiting to begin. + **/ + AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError; + /** + * Opening does not activate in the future. + **/ + AddWorkerOpeningActivatesInThePast: AugmentedError; + /** + * Add worker opening application stake cannot be zero. + **/ + AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError; + /** + * Application stake amount less than minimum currency balance. + **/ + AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError; + /** + * New application was crowded out. + **/ + AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError; + /** + * Opening does not exist. + **/ + AddWorkerOpeningOpeningDoesNotExist: AugmentedError; + /** + * Opening is not in accepting applications stage. + **/ + AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError; + /** + * Add worker opening role stake cannot be zero. + **/ + AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError; + /** + * Role stake amount less than minimum currency balance. + **/ + AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError; + /** + * Stake amount too low. + **/ + AddWorkerOpeningStakeAmountTooLow: AugmentedError; + /** + * Stake missing when required. + **/ + AddWorkerOpeningStakeMissingWhenRequired: AugmentedError; + /** + * Stake provided when redundant. + **/ + AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError; + /** + * Application rationing has zero max active applicants. + **/ + AddWorkerOpeningZeroMaxApplicantCount: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_rationing_policy): + * max_active_applicants should be non-zero. + **/ + ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_staking_policy): + * crowded_out_unstaking_period_length should be non-zero. + **/ + ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_staking_policy): + * review_period_expired_unstaking_period_length should be non-zero. + **/ + ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError; + /** + * Signer does not match controller account. + **/ + ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError; + /** + * Opening does not exist. + **/ + BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError; + /** + * Opening Is Not in Waiting. + **/ + BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError; + /** + * Cannot find mint in the minting module. + **/ + CannotFindMint: AugmentedError; + /** + * There is leader already, cannot hire another one. + **/ + CannotHireLeaderWhenLeaderExists: AugmentedError; + /** + * Cannot fill opening with multiple applications. + **/ + CannotHireMultipleLeaders: AugmentedError; + /** + * Current lead is not set. + **/ + CurrentLeadNotSet: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * exit_role_application_stake_unstaking_period should be non-zero. + **/ + ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * exit_role_stake_unstaking_period should be non-zero. + **/ + ExitRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero. + **/ + FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero. + **/ + FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Reward policy has invalid next payment block number. + **/ + FillOpeningInvalidNextPaymentBlock: AugmentedError; + /** + * Working group mint does not exist. + **/ + FillOpeningMintDoesNotExist: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero. + **/ + FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Applications not for opening. + **/ + FillWorkerOpeningApplicationForWrongOpening: AugmentedError; + /** + * Application does not exist. + **/ + FullWorkerOpeningApplicationDoesNotExist: AugmentedError; + /** + * Application not in active stage. + **/ + FullWorkerOpeningApplicationNotActive: AugmentedError; + /** + * OpeningDoesNotExist. + **/ + FullWorkerOpeningOpeningDoesNotExist: AugmentedError; + /** + * Opening not in review period stage. + **/ + FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError; + /** + * Application stake unstaking period for successful applicants redundant. + **/ + FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Application stake unstaking period for failed applicants too short. + **/ + FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Role stake unstaking period for successful applicants redundant. + **/ + FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Role stake unstaking period for successful applicants too short. + **/ + FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Application stake unstaking period for failed applicants redundant. + **/ + FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Application stake unstaking period for successful applicants too short. + **/ + FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Role stake unstaking period for failed applicants redundant. + **/ + FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Role stake unstaking period for failed applicants too short. + **/ + FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Insufficient balance to apply. + **/ + InsufficientBalanceToApply: AugmentedError; + /** + * Insufficient balance to cover stake. + **/ + InsufficientBalanceToCoverStake: AugmentedError; + /** + * Not a lead account. + **/ + IsNotLeadAccount: AugmentedError; + /** + * Working group size limit exceeded. + **/ + MaxActiveWorkerNumberExceeded: AugmentedError; + /** + * Member already has an active application on the opening. + **/ + MemberHasActiveApplicationOnOpening: AugmentedError; + /** + * Member id is invalid. + **/ + MembershipInvalidMemberId: AugmentedError; + /** + * Unsigned origin. + **/ + MembershipUnsignedOrigin: AugmentedError; + /** + * Minting error: NextAdjustmentInPast + **/ + MintingErrorNextAdjustmentInPast: AugmentedError; + /** + * Cannot get the worker stake profile. + **/ + NoWorkerStakeProfile: AugmentedError; + /** + * Opening does not exist. + **/ + OpeningDoesNotExist: AugmentedError; + /** + * Opening text too long. + **/ + OpeningTextTooLong: AugmentedError; + /** + * Opening text too short. + **/ + OpeningTextTooShort: AugmentedError; + /** + * Origin must be controller or root account of member. + **/ + OriginIsNeitherMemberControllerOrRoot: AugmentedError; + /** + * Origin is not applicant. + **/ + OriginIsNotApplicant: AugmentedError; + /** + * Next payment is not in the future. + **/ + RecurringRewardsNextPaymentNotInFuture: AugmentedError; + /** + * Recipient not found. + **/ + RecurringRewardsRecipientNotFound: AugmentedError; + /** + * Reward relationship not found. + **/ + RecurringRewardsRewardRelationshipNotFound: AugmentedError; + /** + * Recipient reward source not found. + **/ + RecurringRewardsRewardSourceNotFound: AugmentedError; + /** + * Relationship must exist. + **/ + RelationshipMustExist: AugmentedError; + /** + * Require root origin in extrinsics. + **/ + RequireRootOrigin: AugmentedError; + /** + * Require signed origin in extrinsics. + **/ + RequireSignedOrigin: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (role_staking_policy): + * crowded_out_unstaking_period_length should be non-zero. + **/ + RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (role_staking_policy): + * review_period_expired_unstaking_period_length should be non-zero. + **/ + RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError; + /** + * Signer is not worker role account. + **/ + SignerIsNotWorkerRoleAccount: AugmentedError; + /** + * Provided stake balance cannot be zero. + **/ + StakeBalanceCannotBeZero: AugmentedError; + /** + * Already unstaking. + **/ + StakingErrorAlreadyUnstaking: AugmentedError; + /** + * Cannot change stake by zero. + **/ + StakingErrorCannotChangeStakeByZero: AugmentedError; + /** + * Cannot decrease stake while slashes ongoing. + **/ + StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError; + /** + * Cannot increase stake while unstaking. + **/ + StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError; + /** + * Cannot unstake while slashes ongoing. + **/ + StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError; + /** + * Insufficient balance in source account. + **/ + StakingErrorInsufficientBalanceInSourceAccount: AugmentedError; + /** + * Insufficient stake to decrease. + **/ + StakingErrorInsufficientStake: AugmentedError; + /** + * Not staked. + **/ + StakingErrorNotStaked: AugmentedError; + /** + * Slash amount should be greater than zero. + **/ + StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError; + /** + * Stake not found. + **/ + StakingErrorStakeNotFound: AugmentedError; + /** + * Unstaking period should be greater than zero. + **/ + StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError; + /** + * Successful worker application does not exist. + **/ + SuccessfulWorkerApplicationDoesNotExist: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * terminate_application_stake_unstaking_period should be non-zero. + **/ + TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * terminate_role_stake_unstaking_period should be non-zero. + **/ + TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Application does not exist. + **/ + WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError; + /** + * Application is not active. + **/ + WithdrawWorkerApplicationApplicationNotActive: AugmentedError; + /** + * Opening not accepting applications. + **/ + WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError; + /** + * Redundant unstaking period provided + **/ + WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError; + /** + * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE + **/ + WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError; + /** + * Worker application does not exist. + **/ + WorkerApplicationDoesNotExist: AugmentedError; + /** + * Worker application text too long. + **/ + WorkerApplicationTextTooLong: AugmentedError; + /** + * Worker application text too short. + **/ + WorkerApplicationTextTooShort: AugmentedError; + /** + * Worker does not exist. + **/ + WorkerDoesNotExist: AugmentedError; + /** + * Worker exit rationale text is too long. + **/ + WorkerExitRationaleTextTooLong: AugmentedError; + /** + * Worker exit rationale text is too short. + **/ + WorkerExitRationaleTextTooShort: AugmentedError; + /** + * Worker has no recurring reward. + **/ + WorkerHasNoReward: AugmentedError; + /** + * Worker storage text is too long. + **/ + WorkerStorageValueTooLong: AugmentedError; + }; + proposalsCodex: { + /** + * Invalid 'decrease stake proposal' parameter - cannot decrease by zero balance. + **/ + DecreasingStakeIsZero: AugmentedError; + /** + * Invalid content working group mint capacity parameter + **/ + InvalidContentWorkingGroupMintCapacity: AugmentedError; + /** + * Invalid council election parameter - announcing_period + **/ + InvalidCouncilElectionParameterAnnouncingPeriod: AugmentedError; + /** + * Invalid council election parameter - candidacy-limit + **/ + InvalidCouncilElectionParameterCandidacyLimit: AugmentedError; + /** + * Invalid council election parameter - council_size + **/ + InvalidCouncilElectionParameterCouncilSize: AugmentedError; + /** + * Invalid council election parameter - min_council_stake + **/ + InvalidCouncilElectionParameterMinCouncilStake: AugmentedError; + /** + * Invalid council election parameter - min-voting_stake + **/ + InvalidCouncilElectionParameterMinVotingStake: AugmentedError; + /** + * Invalid council election parameter - new_term_duration + **/ + InvalidCouncilElectionParameterNewTermDuration: AugmentedError; + /** + * Invalid council election parameter - revealing_period + **/ + InvalidCouncilElectionParameterRevealingPeriod: AugmentedError; + /** + * Invalid council election parameter - voting_period + **/ + InvalidCouncilElectionParameterVotingPeriod: AugmentedError; + /** + * Invalid 'set lead proposal' parameter - proposed lead cannot be a councilor + **/ + InvalidSetLeadParameterCannotBeCouncilor: AugmentedError; + /** + * Invalid balance value for the spending proposal + **/ + InvalidSpendingProposalBalance: AugmentedError; + /** + * Invalid validator count for the 'set validator count' proposal + **/ + InvalidValidatorCount: AugmentedError; + /** + * Invalid working group mint capacity parameter + **/ + InvalidWorkingGroupMintCapacity: AugmentedError; + /** + * Require root origin in extrinsics + **/ + RequireRootOrigin: AugmentedError; + /** + * Provided WASM code for the runtime upgrade proposal is empty + **/ + RuntimeProposalIsEmpty: AugmentedError; + /** + * The size of the provided WASM code for the runtime upgrade proposal exceeded the limit + **/ + RuntimeProposalSizeExceeded: AugmentedError; + /** + * Invalid 'slash stake proposal' parameter - cannot slash by zero balance. + **/ + SlashingStakeIsZero: AugmentedError; + /** + * Provided text for text proposal is empty + **/ + TextProposalIsEmpty: AugmentedError; + /** + * The size of the provided text for text proposal exceeded the limit + **/ + TextProposalSizeExceeded: AugmentedError; + }; + proposalsDiscussion: { + /** + * Post cannot be empty + **/ + EmptyPostProvided: AugmentedError; + /** + * Discussion cannot have an empty title + **/ + EmptyTitleProvided: AugmentedError; + /** + * Max number of threads by same author in a row limit exceeded + **/ + MaxThreadInARowLimitExceeded: AugmentedError; + /** + * Author should match the post creator + **/ + NotAuthor: AugmentedError; + /** + * Post doesn't exist + **/ + PostDoesntExist: AugmentedError; + /** + * Post edition limit reached + **/ + PostEditionNumberExceeded: AugmentedError; + /** + * Post is too long + **/ + PostIsTooLong: AugmentedError; + /** + * Require root origin in extrinsics + **/ + RequireRootOrigin: AugmentedError; + /** + * Thread doesn't exist + **/ + ThreadDoesntExist: AugmentedError; + /** + * Title is too long + **/ + TitleIsTooLong: AugmentedError; + }; + proposalsEngine: { + /** + * The proposal have been already voted on + **/ + AlreadyVoted: AugmentedError; + /** + * Description is too long + **/ + DescriptionIsTooLong: AugmentedError; + /** + * Proposal cannot have an empty body + **/ + EmptyDescriptionProvided: AugmentedError; + /** + * Stake cannot be empty with this proposal + **/ + EmptyStake: AugmentedError; + /** + * Proposal cannot have an empty title" + **/ + EmptyTitleProvided: AugmentedError; + /** + * Insufficient balance for operation. + **/ + InsufficientBalance: AugmentedError; + /** + * Approval threshold cannot be zero + **/ + InvalidParameterApprovalThreshold: AugmentedError; + /** + * Slashing threshold cannot be zero + **/ + InvalidParameterSlashingThreshold: AugmentedError; + /** + * Max active proposals number exceeded + **/ + MaxActiveProposalNumberExceeded: AugmentedError; + /** + * Not an author + **/ + NotAuthor: AugmentedError; + /** + * Proposal is finalized already + **/ + ProposalFinalized: AugmentedError; + /** + * The proposal does not exist + **/ + ProposalNotFound: AugmentedError; + /** + * Require root origin in extrinsics + **/ + RequireRootOrigin: AugmentedError; + /** + * Stake differs from the proposal requirements + **/ + StakeDiffersFromRequired: AugmentedError; + /** + * Stake should be empty for this proposal + **/ + StakeShouldBeEmpty: AugmentedError; + /** + * Title is too long + **/ + TitleIsTooLong: AugmentedError; + }; + session: { + /** + * Registered duplicate key. + **/ + DuplicatedKey: AugmentedError; + /** + * Invalid ownership proof. + **/ + InvalidProof: AugmentedError; + /** + * No associated validator ID for account. + **/ + NoAssociatedValidatorId: AugmentedError; + /** + * No keys are associated with this account. + **/ + NoKeys: AugmentedError; + }; + staking: { + /** + * Stash is already bonded. + **/ + AlreadyBonded: AugmentedError; + /** + * Rewards for this era have already been claimed for this validator. + **/ + AlreadyClaimed: AugmentedError; + /** + * Controller is already paired. + **/ + AlreadyPaired: AugmentedError; + /** + * The call is not allowed at the given time due to restrictions of election period. + **/ + CallNotAllowed: AugmentedError; + /** + * Duplicate index. + **/ + DuplicateIndex: AugmentedError; + /** + * Targets cannot be empty. + **/ + EmptyTargets: AugmentedError; + /** + * Attempting to target a stash that still has funds. + **/ + FundedTarget: AugmentedError; + /** + * Incorrect previous history depth input provided. + **/ + IncorrectHistoryDepth: AugmentedError; + /** + * Incorrect number of slashing spans provided. + **/ + IncorrectSlashingSpans: AugmentedError; + /** + * Can not bond with value less than minimum balance. + **/ + InsufficientValue: AugmentedError; + /** + * Invalid era to reward. + **/ + InvalidEraToReward: AugmentedError; + /** + * Invalid number of nominations. + **/ + InvalidNumberOfNominations: AugmentedError; + /** + * Slash record index out of bounds. + **/ + InvalidSlashIndex: AugmentedError; + /** + * Can not schedule more unlock chunks. + **/ + NoMoreChunks: AugmentedError; + /** + * Not a controller account. + **/ + NotController: AugmentedError; + /** + * Items are not sorted and unique. + **/ + NotSortedAndUnique: AugmentedError; + /** + * Not a stash account. + **/ + NotStash: AugmentedError; + /** + * Can not rebond without unlocking chunks. + **/ + NoUnlockChunk: AugmentedError; + /** + * Error while building the assignment type from the compact. This can happen if an index + * is invalid, or if the weights _overflow_. + **/ + OffchainElectionBogusCompact: AugmentedError; + /** + * The submitted result has unknown edges that are not among the presented winners. + **/ + OffchainElectionBogusEdge: AugmentedError; + /** + * The election size is invalid. + **/ + OffchainElectionBogusElectionSize: AugmentedError; + /** + * One of the submitted nominators has an edge to which they have not voted on chain. + **/ + OffchainElectionBogusNomination: AugmentedError; + /** + * One of the submitted nominators is not an active nominator on chain. + **/ + OffchainElectionBogusNominator: AugmentedError; + /** + * The claimed score does not match with the one computed from the data. + **/ + OffchainElectionBogusScore: AugmentedError; + /** + * A self vote must only be originated from a validator to ONLY themselves. + **/ + OffchainElectionBogusSelfVote: AugmentedError; + /** + * One of the submitted winners is not an active candidate on chain (index is out of range + * in snapshot). + **/ + OffchainElectionBogusWinner: AugmentedError; + /** + * Incorrect number of winners were presented. + **/ + OffchainElectionBogusWinnerCount: AugmentedError; + /** + * The submitted result is received out of the open window. + **/ + OffchainElectionEarlySubmission: AugmentedError; + /** + * One of the submitted nominators has an edge which is submitted before the last non-zero + * slash of the target. + **/ + OffchainElectionSlashedNomination: AugmentedError; + /** + * The submitted result is not as good as the one stored on chain. + **/ + OffchainElectionWeakSubmission: AugmentedError; + /** + * The snapshot data of the current window is missing. + **/ + SnapshotUnavailable: AugmentedError; + }; + storage: { + /** + * Blacklist size limit exceeded. + **/ + BlacklistSizeLimitExceeded: AugmentedError; + /** + * Cannot delete non empty dynamic bag. + **/ + CannotDeleteNonEmptyDynamicBag: AugmentedError; + /** + * Cannot delete a non-empty storage bucket. + **/ + CannotDeleteNonEmptyStorageBucket: AugmentedError; + /** + * Data object hash is part of the blacklist. + **/ + DataObjectBlacklisted: AugmentedError; + /** + * Data object doesn't exist. + **/ + DataObjectDoesntExist: AugmentedError; + /** + * Data object id collection is empty. + **/ + DataObjectIdCollectionIsEmpty: AugmentedError; + /** + * The `data_object_ids` extrinsic parameter collection is empty. + **/ + DataObjectIdParamsAreEmpty: AugmentedError; + /** + * Invalid extrinsic call: data size fee changed. + **/ + DataSizeFeeChanged: AugmentedError; + /** + * Invalid operation with invites: another storage provider was invited. + **/ + DifferentStorageProviderInvited: AugmentedError; + /** + * Distribution bucket doesn't accept new bags. + **/ + DistributionBucketDoesntAcceptNewBags: AugmentedError; + /** + * Distribution bucket doesn't exist. + **/ + DistributionBucketDoesntExist: AugmentedError; + /** + * Distribution bucket family doesn't exist. + **/ + DistributionBucketFamilyDoesntExist: AugmentedError; + /** + * Distribution bucket id collections are empty. + **/ + DistributionBucketIdCollectionsAreEmpty: AugmentedError; + /** + * Distribution bucket is bound to a bag. + **/ + DistributionBucketIsBoundToBag: AugmentedError; + /** + * Distribution bucket is not bound to a bag. + **/ + DistributionBucketIsNotBoundToBag: AugmentedError; + /** + * The new `DistributionBucketsPerBagLimit` number is too high. + **/ + DistributionBucketsPerBagLimitTooHigh: AugmentedError; + /** + * The new `DistributionBucketsPerBagLimit` number is too low. + **/ + DistributionBucketsPerBagLimitTooLow: AugmentedError; + /** + * Distribution family bound to a bag creation policy. + **/ + DistributionFamilyBoundToBagCreationPolicy: AugmentedError; + /** + * Distribution provider operator already invited. + **/ + DistributionProviderOperatorAlreadyInvited: AugmentedError; + /** + * Distribution provider operator doesn't exist. + **/ + DistributionProviderOperatorDoesntExist: AugmentedError; + /** + * Distribution provider operator already set. + **/ + DistributionProviderOperatorSet: AugmentedError; + /** + * Dynamic bag doesn't exist. + **/ + DynamicBagDoesntExist: AugmentedError; + /** + * Cannot create the dynamic bag: dynamic bag exists. + **/ + DynamicBagExists: AugmentedError; + /** + * Upload data error: empty content ID provided. + **/ + EmptyContentId: AugmentedError; + /** + * Insufficient balance for an operation. + **/ + InsufficientBalance: AugmentedError; + /** + * Insufficient module treasury balance for an operation. + **/ + InsufficientTreasuryBalance: AugmentedError; + /** + * Upload data error: invalid deletion prize source account. + **/ + InvalidDeletionPrizeSourceAccount: AugmentedError; + /** + * Invalid storage provider for bucket. + **/ + InvalidStorageProvider: AugmentedError; + /** + * Invalid operation with invites: storage provider was already invited. + **/ + InvitedStorageProvider: AugmentedError; + /** + * Max data object size exceeded. + **/ + MaxDataObjectSizeExceeded: AugmentedError; + /** + * Max distribution bucket family number limit exceeded. + **/ + MaxDistributionBucketFamilyNumberLimitExceeded: AugmentedError; + /** + * Max distribution bucket number per bag limit exceeded. + **/ + MaxDistributionBucketNumberPerBagLimitExceeded: AugmentedError; + /** + * Max distribution bucket number per family limit exceeded. + **/ + MaxDistributionBucketNumberPerFamilyLimitExceeded: AugmentedError; + /** + * Max number of pending invitations limit for a distribution bucket reached. + **/ + MaxNumberOfPendingInvitationsLimitForDistributionBucketReached: AugmentedError; + /** + * Invalid operations: must be a distribution provider operator for a bucket. + **/ + MustBeDistributionProviderOperatorForBucket: AugmentedError; + /** + * No distribution bucket invitation. + **/ + NoDistributionBucketInvitation: AugmentedError; + /** + * Empty "data object creation" collection. + **/ + NoObjectsOnUpload: AugmentedError; + /** + * Invalid operation with invites: there is no storage bucket invitation. + **/ + NoStorageBucketInvitation: AugmentedError; + /** + * Cannot move objects within the same bag. + **/ + SourceAndDestinationBagsAreEqual: AugmentedError; + /** + * The storage bucket doesn't accept new bags. + **/ + StorageBucketDoesntAcceptNewBags: AugmentedError; + /** + * The requested storage bucket doesn't exist. + **/ + StorageBucketDoesntExist: AugmentedError; + /** + * Storage bucket id collections are empty. + **/ + StorageBucketIdCollectionsAreEmpty: AugmentedError; + /** + * The requested storage bucket is already bound to a bag. + **/ + StorageBucketIsBoundToBag: AugmentedError; + /** + * The requested storage bucket is not bound to a bag. + **/ + StorageBucketIsNotBoundToBag: AugmentedError; + /** + * Object number limit for the storage bucket reached. + **/ + StorageBucketObjectNumberLimitReached: AugmentedError; + /** + * Objects total size limit for the storage bucket reached. + **/ + StorageBucketObjectSizeLimitReached: AugmentedError; + /** + * `StorageBucketsPerBagLimit` was exceeded for a bag. + **/ + StorageBucketPerBagLimitExceeded: AugmentedError; + /** + * The new `StorageBucketsPerBagLimit` number is too high. + **/ + StorageBucketsPerBagLimitTooHigh: AugmentedError; + /** + * The new `StorageBucketsPerBagLimit` number is too low. + **/ + StorageBucketsPerBagLimitTooLow: AugmentedError; + /** + * Invalid operation with invites: storage provider was already set. + **/ + StorageProviderAlreadySet: AugmentedError; + /** + * Storage provider must be set. + **/ + StorageProviderMustBeSet: AugmentedError; + /** + * Storage provider operator doesn't exist. + **/ + StorageProviderOperatorDoesntExist: AugmentedError; + /** + * Uploading of the new object is blocked. + **/ + UploadingBlocked: AugmentedError; + /** + * Max object number limit exceeded for voucher. + **/ + VoucherMaxObjectNumberLimitExceeded: AugmentedError; + /** + * Max object size limit exceeded for voucher. + **/ + VoucherMaxObjectSizeLimitExceeded: AugmentedError; + /** + * Upload data error: zero object size. + **/ + ZeroObjectSize: AugmentedError; + }; + storageWorkingGroup: { + /** + * Opening does not exist. + **/ + AcceptWorkerApplicationsOpeningDoesNotExist: AugmentedError; + /** + * Opening Is Not in Waiting to begin. + **/ + AcceptWorkerApplicationsOpeningIsNotWaitingToBegin: AugmentedError; + /** + * Opening does not activate in the future. + **/ + AddWorkerOpeningActivatesInThePast: AugmentedError; + /** + * Add worker opening application stake cannot be zero. + **/ + AddWorkerOpeningApplicationStakeCannotBeZero: AugmentedError; + /** + * Application stake amount less than minimum currency balance. + **/ + AddWorkerOpeningAppliicationStakeLessThanMinimum: AugmentedError; + /** + * New application was crowded out. + **/ + AddWorkerOpeningNewApplicationWasCrowdedOut: AugmentedError; + /** + * Opening does not exist. + **/ + AddWorkerOpeningOpeningDoesNotExist: AugmentedError; + /** + * Opening is not in accepting applications stage. + **/ + AddWorkerOpeningOpeningNotInAcceptingApplicationStage: AugmentedError; + /** + * Add worker opening role stake cannot be zero. + **/ + AddWorkerOpeningRoleStakeCannotBeZero: AugmentedError; + /** + * Role stake amount less than minimum currency balance. + **/ + AddWorkerOpeningRoleStakeLessThanMinimum: AugmentedError; + /** + * Stake amount too low. + **/ + AddWorkerOpeningStakeAmountTooLow: AugmentedError; + /** + * Stake missing when required. + **/ + AddWorkerOpeningStakeMissingWhenRequired: AugmentedError; + /** + * Stake provided when redundant. + **/ + AddWorkerOpeningStakeProvidedWhenRedundant: AugmentedError; + /** + * Application rationing has zero max active applicants. + **/ + AddWorkerOpeningZeroMaxApplicantCount: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_rationing_policy): + * max_active_applicants should be non-zero. + **/ + ApplicationRationingPolicyMaxActiveApplicantsIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_staking_policy): + * crowded_out_unstaking_period_length should be non-zero. + **/ + ApplicationStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (application_staking_policy): + * review_period_expired_unstaking_period_length should be non-zero. + **/ + ApplicationStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError; + /** + * Signer does not match controller account. + **/ + ApplyOnWorkerOpeningSignerNotControllerAccount: AugmentedError; + /** + * Opening does not exist. + **/ + BeginWorkerApplicantReviewOpeningDoesNotExist: AugmentedError; + /** + * Opening Is Not in Waiting. + **/ + BeginWorkerApplicantReviewOpeningOpeningIsNotWaitingToBegin: AugmentedError; + /** + * Cannot find mint in the minting module. + **/ + CannotFindMint: AugmentedError; + /** + * There is leader already, cannot hire another one. + **/ + CannotHireLeaderWhenLeaderExists: AugmentedError; + /** + * Cannot fill opening with multiple applications. + **/ + CannotHireMultipleLeaders: AugmentedError; + /** + * Current lead is not set. + **/ + CurrentLeadNotSet: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * exit_role_application_stake_unstaking_period should be non-zero. + **/ + ExitRoleApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * exit_role_stake_unstaking_period should be non-zero. + **/ + ExitRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_failed_applicant_application_stake_unstaking_period should be non-zero. + **/ + FillOpeningFailedApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_failed_applicant_role_stake_unstaking_period should be non-zero. + **/ + FillOpeningFailedApplicantRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Reward policy has invalid next payment block number. + **/ + FillOpeningInvalidNextPaymentBlock: AugmentedError; + /** + * Working group mint does not exist. + **/ + FillOpeningMintDoesNotExist: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * fill_opening_successful_applicant_application_stake_unstaking_period should be non-zero. + **/ + FillOpeningSuccessfulApplicantApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Applications not for opening. + **/ + FillWorkerOpeningApplicationForWrongOpening: AugmentedError; + /** + * Application does not exist. + **/ + FullWorkerOpeningApplicationDoesNotExist: AugmentedError; + /** + * Application not in active stage. + **/ + FullWorkerOpeningApplicationNotActive: AugmentedError; + /** + * OpeningDoesNotExist. + **/ + FullWorkerOpeningOpeningDoesNotExist: AugmentedError; + /** + * Opening not in review period stage. + **/ + FullWorkerOpeningOpeningNotInReviewPeriodStage: AugmentedError; + /** + * Application stake unstaking period for successful applicants redundant. + **/ + FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Application stake unstaking period for failed applicants too short. + **/ + FullWorkerOpeningSuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Role stake unstaking period for successful applicants redundant. + **/ + FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Role stake unstaking period for successful applicants too short. + **/ + FullWorkerOpeningSuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Application stake unstaking period for failed applicants redundant. + **/ + FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Application stake unstaking period for successful applicants too short. + **/ + FullWorkerOpeningUnsuccessfulApplicationStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Role stake unstaking period for failed applicants redundant. + **/ + FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodRedundant: AugmentedError; + /** + * Role stake unstaking period for failed applicants too short. + **/ + FullWorkerOpeningUnsuccessfulRoleStakeUnstakingPeriodTooShort: AugmentedError; + /** + * Insufficient balance to apply. + **/ + InsufficientBalanceToApply: AugmentedError; + /** + * Insufficient balance to cover stake. + **/ + InsufficientBalanceToCoverStake: AugmentedError; + /** + * Not a lead account. + **/ + IsNotLeadAccount: AugmentedError; + /** + * Working group size limit exceeded. + **/ + MaxActiveWorkerNumberExceeded: AugmentedError; + /** + * Member already has an active application on the opening. + **/ + MemberHasActiveApplicationOnOpening: AugmentedError; + /** + * Member id is invalid. + **/ + MembershipInvalidMemberId: AugmentedError; + /** + * Unsigned origin. + **/ + MembershipUnsignedOrigin: AugmentedError; + /** + * Minting error: NextAdjustmentInPast + **/ + MintingErrorNextAdjustmentInPast: AugmentedError; + /** + * Cannot get the worker stake profile. + **/ + NoWorkerStakeProfile: AugmentedError; + /** + * Opening does not exist. + **/ + OpeningDoesNotExist: AugmentedError; + /** + * Opening text too long. + **/ + OpeningTextTooLong: AugmentedError; + /** + * Opening text too short. + **/ + OpeningTextTooShort: AugmentedError; + /** + * Origin must be controller or root account of member. + **/ + OriginIsNeitherMemberControllerOrRoot: AugmentedError; + /** + * Origin is not applicant. + **/ + OriginIsNotApplicant: AugmentedError; + /** + * Next payment is not in the future. + **/ + RecurringRewardsNextPaymentNotInFuture: AugmentedError; + /** + * Recipient not found. + **/ + RecurringRewardsRecipientNotFound: AugmentedError; + /** + * Reward relationship not found. + **/ + RecurringRewardsRewardRelationshipNotFound: AugmentedError; + /** + * Recipient reward source not found. + **/ + RecurringRewardsRewardSourceNotFound: AugmentedError; + /** + * Relationship must exist. + **/ + RelationshipMustExist: AugmentedError; + /** + * Require root origin in extrinsics. + **/ + RequireRootOrigin: AugmentedError; + /** + * Require signed origin in extrinsics. + **/ + RequireSignedOrigin: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (role_staking_policy): + * crowded_out_unstaking_period_length should be non-zero. + **/ + RoleStakingPolicyCrowdedOutUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter (role_staking_policy): + * review_period_expired_unstaking_period_length should be non-zero. + **/ + RoleStakingPolicyReviewPeriodUnstakingPeriodIsZero: AugmentedError; + /** + * Signer is not worker role account. + **/ + SignerIsNotWorkerRoleAccount: AugmentedError; + /** + * Provided stake balance cannot be zero. + **/ + StakeBalanceCannotBeZero: AugmentedError; + /** + * Already unstaking. + **/ + StakingErrorAlreadyUnstaking: AugmentedError; + /** + * Cannot change stake by zero. + **/ + StakingErrorCannotChangeStakeByZero: AugmentedError; + /** + * Cannot decrease stake while slashes ongoing. + **/ + StakingErrorCannotDecreaseWhileSlashesOngoing: AugmentedError; + /** + * Cannot increase stake while unstaking. + **/ + StakingErrorCannotIncreaseStakeWhileUnstaking: AugmentedError; + /** + * Cannot unstake while slashes ongoing. + **/ + StakingErrorCannotUnstakeWhileSlashesOngoing: AugmentedError; + /** + * Insufficient balance in source account. + **/ + StakingErrorInsufficientBalanceInSourceAccount: AugmentedError; + /** + * Insufficient stake to decrease. + **/ + StakingErrorInsufficientStake: AugmentedError; + /** + * Not staked. + **/ + StakingErrorNotStaked: AugmentedError; + /** + * Slash amount should be greater than zero. + **/ + StakingErrorSlashAmountShouldBeGreaterThanZero: AugmentedError; + /** + * Stake not found. + **/ + StakingErrorStakeNotFound: AugmentedError; + /** + * Unstaking period should be greater than zero. + **/ + StakingErrorUnstakingPeriodShouldBeGreaterThanZero: AugmentedError; + /** + * Successful worker application does not exist. + **/ + SuccessfulWorkerApplicationDoesNotExist: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * terminate_application_stake_unstaking_period should be non-zero. + **/ + TerminateApplicationStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Invalid OpeningPolicyCommitment parameter: + * terminate_role_stake_unstaking_period should be non-zero. + **/ + TerminateRoleStakeUnstakingPeriodIsZero: AugmentedError; + /** + * Application does not exist. + **/ + WithdrawWorkerApplicationApplicationDoesNotExist: AugmentedError; + /** + * Application is not active. + **/ + WithdrawWorkerApplicationApplicationNotActive: AugmentedError; + /** + * Opening not accepting applications. + **/ + WithdrawWorkerApplicationOpeningNotAcceptingApplications: AugmentedError; + /** + * Redundant unstaking period provided + **/ + WithdrawWorkerApplicationRedundantUnstakingPeriod: AugmentedError; + /** + * UnstakingPeriodTooShort .... // <== SHOULD REALLY BE TWO SEPARATE, ONE FOR EACH STAKING PURPOSE + **/ + WithdrawWorkerApplicationUnstakingPeriodTooShort: AugmentedError; + /** + * Worker application does not exist. + **/ + WorkerApplicationDoesNotExist: AugmentedError; + /** + * Worker application text too long. + **/ + WorkerApplicationTextTooLong: AugmentedError; + /** + * Worker application text too short. + **/ + WorkerApplicationTextTooShort: AugmentedError; + /** + * Worker does not exist. + **/ + WorkerDoesNotExist: AugmentedError; + /** + * Worker exit rationale text is too long. + **/ + WorkerExitRationaleTextTooLong: AugmentedError; + /** + * Worker exit rationale text is too short. + **/ + WorkerExitRationaleTextTooShort: AugmentedError; + /** + * Worker has no recurring reward. + **/ + WorkerHasNoReward: AugmentedError; + /** + * Worker storage text is too long. + **/ + WorkerStorageValueTooLong: AugmentedError; + }; + sudo: { + /** + * Sender must be the Sudo account + **/ + RequireSudo: AugmentedError; + }; + system: { + /** + * Failed to extract the runtime version from the new runtime. + * + * Either calling `Core_version` or decoding `RuntimeVersion` failed. + **/ + FailedToExtractRuntimeVersion: AugmentedError; + /** + * The name of specification does not match between the current runtime + * and the new runtime. + **/ + InvalidSpecName: AugmentedError; + /** + * Suicide called when the account has non-default composite data. + **/ + NonDefaultComposite: AugmentedError; + /** + * There is a non-zero reference count preventing the account from being purged. + **/ + NonZeroRefCount: AugmentedError; + /** + * The specification version is not allowed to decrease between the current runtime + * and the new runtime. + **/ + SpecVersionNeedsToIncrease: AugmentedError; + }; + } + + export interface DecoratedErrors extends AugmentedErrors { + } +} diff --git a/types/augment-codec/augment-api-events.ts b/types/augment-codec/augment-api-events.ts new file mode 100644 index 0000000000..763b403dd2 --- /dev/null +++ b/types/augment-codec/augment-api-events.ts @@ -0,0 +1,1524 @@ +// 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, ChannelUpdateParameters, Cid, ContentActor, CuratorGroupId, CuratorId, DataObjectId, DistributionBucketFamilyId, DistributionBucketId, DynamicBagDeletionPrizeRecord, DynamicBagId, DynamicBagType, EntryMethod, IsCensored, MemberId, MintBalanceOf, MintId, OpeningId, PostId, ProposalId, ProposalStatus, RationaleText, 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 { + balances: { + /** + * A balance was set by root. \[who, free, reserved\] + **/ + BalanceSet: AugmentedEvent; + /** + * Some amount was deposited (e.g. for transaction fees). \[who, deposit\] + **/ + Deposit: AugmentedEvent; + /** + * An account was removed whose balance was non-zero but below ExistentialDeposit, + * resulting in an outright loss. \[account, balance\] + **/ + DustLost: AugmentedEvent; + /** + * An account was created with some free balance. \[account, free_balance\] + **/ + Endowed: AugmentedEvent; + /** + * Some balance was reserved (moved from free to reserved). \[who, value\] + **/ + Reserved: AugmentedEvent; + /** + * 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; + /** + * Transfer succeeded. \[from, to, value\] + **/ + Transfer: AugmentedEvent; + /** + * Some balance was unreserved (moved from reserved to free). \[who, value\] + **/ + Unreserved: AugmentedEvent; + }; + content: { + ChannelAssetsRemoved: AugmentedEvent, Channel]>; + ChannelCategoryCreated: AugmentedEvent; + ChannelCategoryDeleted: AugmentedEvent; + ChannelCategoryUpdated: AugmentedEvent; + ChannelCensorshipStatusUpdated: AugmentedEvent; + ChannelCreated: AugmentedEvent; + ChannelDeleted: AugmentedEvent; + ChannelUpdated: AugmentedEvent; + CuratorAdded: AugmentedEvent; + CuratorGroupCreated: AugmentedEvent; + CuratorGroupStatusSet: AugmentedEvent; + CuratorRemoved: AugmentedEvent; + FeaturedVideosSet: AugmentedEvent]>; + VideoCategoryCreated: AugmentedEvent; + VideoCategoryDeleted: AugmentedEvent; + VideoCategoryUpdated: AugmentedEvent; + VideoCensorshipStatusUpdated: AugmentedEvent; + VideoCreated: AugmentedEvent; + VideoDeleted: AugmentedEvent; + VideoUpdated: AugmentedEvent; + }; + contentWorkingGroup: { + /** + * Emits on accepting application for the worker opening. + * Params: + * - Opening id + **/ + AcceptedApplications: AugmentedEvent; + /** + * Emits on terminating the application for the worker/lead opening. + * Params: + * - Worker application id + **/ + ApplicationTerminated: AugmentedEvent; + /** + * Emits on withdrawing the application for the worker/lead opening. + * Params: + * - Worker application id + **/ + ApplicationWithdrawn: AugmentedEvent; + /** + * Emits on adding the application for the worker opening. + * Params: + * - Opening id + * - Application id + **/ + AppliedOnOpening: AugmentedEvent; + /** + * Emits on beginning the application review for the worker/lead opening. + * Params: + * - Opening id + **/ + BeganApplicationReview: AugmentedEvent; + /** + * Emits on setting the leader. + * Params: + * - Worker id. + **/ + LeaderSet: AugmentedEvent; + /** + * Emits on un-setting the leader. + * Params: + **/ + LeaderUnset: AugmentedEvent; + /** + * Emits on changing working group mint capacity. + * Params: + * - mint id. + * - new mint balance. + **/ + MintCapacityChanged: AugmentedEvent; + /** + * Emits on adding new worker opening. + * Params: + * - Opening id + **/ + OpeningAdded: AugmentedEvent; + /** + * Emits on filling the worker opening. + * Params: + * - Worker opening id + * - Worker application id to the worker id dictionary + **/ + OpeningFilled: AugmentedEvent; + /** + * Emits on decreasing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeDecreased: AugmentedEvent; + /** + * Emits on increasing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeIncreased: AugmentedEvent; + /** + * Emits on slashing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeSlashed: AugmentedEvent; + /** + * Emits on terminating the leader. + * Params: + * - leader worker id. + * - termination rationale text + **/ + TerminatedLeader: AugmentedEvent; + /** + * Emits on terminating the worker. + * Params: + * - worker id. + * - termination rationale text + **/ + TerminatedWorker: AugmentedEvent; + /** + * Emits on exiting the worker. + * Params: + * - worker id. + * - exit rationale text + **/ + WorkerExited: AugmentedEvent; + /** + * Emits on updating the reward account of the worker. + * Params: + * - Member id of the worker. + * - Reward account id of the worker. + **/ + WorkerRewardAccountUpdated: AugmentedEvent; + /** + * Emits on updating the reward amount of the worker. + * Params: + * - Id of the worker. + **/ + WorkerRewardAmountUpdated: AugmentedEvent; + /** + * Emits on updating the role account of the worker. + * Params: + * - Id of the worker. + * - Role account id of the worker. + **/ + WorkerRoleAccountUpdated: AugmentedEvent; + /** + * Emits on updating the worker storage role. + * Params: + * - Id of the worker. + * - Raw storage field. + **/ + WorkerStorageUpdated: AugmentedEvent; + }; + council: { + CouncilTermEnded: AugmentedEvent; + NewCouncilTermStarted: AugmentedEvent; + }; + councilElection: { + AnnouncingEnded: AugmentedEvent; + AnnouncingStarted: AugmentedEvent; + Applied: AugmentedEvent; + CouncilElected: AugmentedEvent; + /** + * A new election started + **/ + ElectionStarted: AugmentedEvent; + Revealed: AugmentedEvent; + RevealingEnded: AugmentedEvent; + RevealingStarted: AugmentedEvent; + Voted: AugmentedEvent; + VotingEnded: AugmentedEvent; + VotingStarted: AugmentedEvent; + }; + distributionWorkingGroup: { + /** + * Emits on accepting application for the worker opening. + * Params: + * - Opening id + **/ + AcceptedApplications: AugmentedEvent; + /** + * Emits on terminating the application for the worker/lead opening. + * Params: + * - Worker application id + **/ + ApplicationTerminated: AugmentedEvent; + /** + * Emits on withdrawing the application for the worker/lead opening. + * Params: + * - Worker application id + **/ + ApplicationWithdrawn: AugmentedEvent; + /** + * Emits on adding the application for the worker opening. + * Params: + * - Opening id + * - Application id + **/ + AppliedOnOpening: AugmentedEvent; + /** + * Emits on beginning the application review for the worker/lead opening. + * Params: + * - Opening id + **/ + BeganApplicationReview: AugmentedEvent; + /** + * Emits on setting the leader. + * Params: + * - Worker id. + **/ + LeaderSet: AugmentedEvent; + /** + * Emits on un-setting the leader. + * Params: + **/ + LeaderUnset: AugmentedEvent; + /** + * Emits on changing working group mint capacity. + * Params: + * - mint id. + * - new mint balance. + **/ + MintCapacityChanged: AugmentedEvent; + /** + * Emits on adding new worker opening. + * Params: + * - Opening id + **/ + OpeningAdded: AugmentedEvent; + /** + * Emits on filling the worker opening. + * Params: + * - Worker opening id + * - Worker application id to the worker id dictionary + **/ + OpeningFilled: AugmentedEvent; + /** + * Emits on decreasing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeDecreased: AugmentedEvent; + /** + * Emits on increasing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeIncreased: AugmentedEvent; + /** + * Emits on slashing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeSlashed: AugmentedEvent; + /** + * Emits on terminating the leader. + * Params: + * - leader worker id. + * - termination rationale text + **/ + TerminatedLeader: AugmentedEvent; + /** + * Emits on terminating the worker. + * Params: + * - worker id. + * - termination rationale text + **/ + TerminatedWorker: AugmentedEvent; + /** + * Emits on exiting the worker. + * Params: + * - worker id. + * - exit rationale text + **/ + WorkerExited: AugmentedEvent; + /** + * Emits on updating the reward account of the worker. + * Params: + * - Member id of the worker. + * - Reward account id of the worker. + **/ + WorkerRewardAccountUpdated: AugmentedEvent; + /** + * Emits on updating the reward amount of the worker. + * Params: + * - Id of the worker. + **/ + WorkerRewardAmountUpdated: AugmentedEvent; + /** + * Emits on updating the role account of the worker. + * Params: + * - Id of the worker. + * - Role account id of the worker. + **/ + WorkerRoleAccountUpdated: AugmentedEvent; + /** + * Emits on updating the worker storage role. + * Params: + * - Id of the worker. + * - Raw storage field. + **/ + WorkerStorageUpdated: AugmentedEvent; + }; + forum: { + /** + * A category was introduced + **/ + CategoryCreated: AugmentedEvent; + /** + * 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, Option]>; + /** + * Given account was set as forum sudo. + **/ + ForumSudoSet: AugmentedEvent, Option]>; + /** + * Post with given id was created. + **/ + PostAdded: AugmentedEvent; + /** + * Post with givne id was moderated. + **/ + PostModerated: AugmentedEvent; + /** + * Post with given id had its text updated. + * The second argument reflects the number of total edits when the text update occurs. + **/ + PostTextUpdated: AugmentedEvent; + /** + * A thread with given id was created. + **/ + ThreadCreated: AugmentedEvent; + /** + * A thread with given id was moderated. + **/ + ThreadModerated: AugmentedEvent; + }; + gatewayWorkingGroup: { + /** + * Emits on accepting application for the worker opening. + * Params: + * - Opening id + **/ + AcceptedApplications: AugmentedEvent; + /** + * Emits on terminating the application for the worker/lead opening. + * Params: + * - Worker application id + **/ + ApplicationTerminated: AugmentedEvent; + /** + * Emits on withdrawing the application for the worker/lead opening. + * Params: + * - Worker application id + **/ + ApplicationWithdrawn: AugmentedEvent; + /** + * Emits on adding the application for the worker opening. + * Params: + * - Opening id + * - Application id + **/ + AppliedOnOpening: AugmentedEvent; + /** + * Emits on beginning the application review for the worker/lead opening. + * Params: + * - Opening id + **/ + BeganApplicationReview: AugmentedEvent; + /** + * Emits on setting the leader. + * Params: + * - Worker id. + **/ + LeaderSet: AugmentedEvent; + /** + * Emits on un-setting the leader. + * Params: + **/ + LeaderUnset: AugmentedEvent; + /** + * Emits on changing working group mint capacity. + * Params: + * - mint id. + * - new mint balance. + **/ + MintCapacityChanged: AugmentedEvent; + /** + * Emits on adding new worker opening. + * Params: + * - Opening id + **/ + OpeningAdded: AugmentedEvent; + /** + * Emits on filling the worker opening. + * Params: + * - Worker opening id + * - Worker application id to the worker id dictionary + **/ + OpeningFilled: AugmentedEvent; + /** + * Emits on decreasing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeDecreased: AugmentedEvent; + /** + * Emits on increasing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeIncreased: AugmentedEvent; + /** + * Emits on slashing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeSlashed: AugmentedEvent; + /** + * Emits on terminating the leader. + * Params: + * - leader worker id. + * - termination rationale text + **/ + TerminatedLeader: AugmentedEvent; + /** + * Emits on terminating the worker. + * Params: + * - worker id. + * - termination rationale text + **/ + TerminatedWorker: AugmentedEvent; + /** + * Emits on exiting the worker. + * Params: + * - worker id. + * - exit rationale text + **/ + WorkerExited: AugmentedEvent; + /** + * Emits on updating the reward account of the worker. + * Params: + * - Member id of the worker. + * - Reward account id of the worker. + **/ + WorkerRewardAccountUpdated: AugmentedEvent; + /** + * Emits on updating the reward amount of the worker. + * Params: + * - Id of the worker. + **/ + WorkerRewardAmountUpdated: AugmentedEvent; + /** + * Emits on updating the role account of the worker. + * Params: + * - Id of the worker. + * - Role account id of the worker. + **/ + WorkerRoleAccountUpdated: AugmentedEvent; + /** + * Emits on updating the worker storage role. + * Params: + * - Id of the worker. + * - Raw storage field. + **/ + WorkerStorageUpdated: AugmentedEvent; + }; + grandpa: { + /** + * New authority set has been applied. \[authority_set\] + **/ + NewAuthorities: AugmentedEvent; + /** + * Current authority set has been paused. + **/ + Paused: AugmentedEvent; + /** + * Current authority set has been resumed. + **/ + Resumed: AugmentedEvent; + }; + imOnline: { + /** + * At the end of the session, no offence was committed. + **/ + AllGood: AugmentedEvent; + /** + * A new heartbeat was received from `AuthorityId` \[authority_id\] + **/ + HeartbeatReceived: AugmentedEvent; + /** + * At the end of the session, at least one validator was found to be \[offline\]. + **/ + SomeOffline: AugmentedEvent]>; + }; + members: { + MemberRegistered: AugmentedEvent; + MemberSetControllerAccount: AugmentedEvent; + MemberSetRootAccount: AugmentedEvent; + MemberUpdatedAboutText: AugmentedEvent; + MemberUpdatedAvatar: AugmentedEvent; + MemberUpdatedHandle: AugmentedEvent; + }; + memo: { + MemoUpdated: AugmentedEvent; + }; + 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; + }; + operationsWorkingGroupAlpha: { + /** + * Emits on accepting application for the worker opening. + * Params: + * - Opening id + **/ + AcceptedApplications: AugmentedEvent; + /** + * Emits on terminating the application for the worker/lead opening. + * Params: + * - Worker application id + **/ + ApplicationTerminated: AugmentedEvent; + /** + * Emits on withdrawing the application for the worker/lead opening. + * Params: + * - Worker application id + **/ + ApplicationWithdrawn: AugmentedEvent; + /** + * Emits on adding the application for the worker opening. + * Params: + * - Opening id + * - Application id + **/ + AppliedOnOpening: AugmentedEvent; + /** + * Emits on beginning the application review for the worker/lead opening. + * Params: + * - Opening id + **/ + BeganApplicationReview: AugmentedEvent; + /** + * Emits on setting the leader. + * Params: + * - Worker id. + **/ + LeaderSet: AugmentedEvent; + /** + * Emits on un-setting the leader. + * Params: + **/ + LeaderUnset: AugmentedEvent; + /** + * Emits on changing working group mint capacity. + * Params: + * - mint id. + * - new mint balance. + **/ + MintCapacityChanged: AugmentedEvent; + /** + * Emits on adding new worker opening. + * Params: + * - Opening id + **/ + OpeningAdded: AugmentedEvent; + /** + * Emits on filling the worker opening. + * Params: + * - Worker opening id + * - Worker application id to the worker id dictionary + **/ + OpeningFilled: AugmentedEvent; + /** + * Emits on decreasing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeDecreased: AugmentedEvent; + /** + * Emits on increasing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeIncreased: AugmentedEvent; + /** + * Emits on slashing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeSlashed: AugmentedEvent; + /** + * Emits on terminating the leader. + * Params: + * - leader worker id. + * - termination rationale text + **/ + TerminatedLeader: AugmentedEvent; + /** + * Emits on terminating the worker. + * Params: + * - worker id. + * - termination rationale text + **/ + TerminatedWorker: AugmentedEvent; + /** + * Emits on exiting the worker. + * Params: + * - worker id. + * - exit rationale text + **/ + WorkerExited: AugmentedEvent; + /** + * Emits on updating the reward account of the worker. + * Params: + * - Member id of the worker. + * - Reward account id of the worker. + **/ + WorkerRewardAccountUpdated: AugmentedEvent; + /** + * Emits on updating the reward amount of the worker. + * Params: + * - Id of the worker. + **/ + WorkerRewardAmountUpdated: AugmentedEvent; + /** + * Emits on updating the role account of the worker. + * Params: + * - Id of the worker. + * - Role account id of the worker. + **/ + WorkerRoleAccountUpdated: AugmentedEvent; + /** + * Emits on updating the worker storage role. + * Params: + * - Id of the worker. + * - Raw storage field. + **/ + WorkerStorageUpdated: AugmentedEvent; + }; + operationsWorkingGroupBeta: { + /** + * Emits on accepting application for the worker opening. + * Params: + * - Opening id + **/ + AcceptedApplications: AugmentedEvent; + /** + * Emits on terminating the application for the worker/lead opening. + * Params: + * - Worker application id + **/ + ApplicationTerminated: AugmentedEvent; + /** + * Emits on withdrawing the application for the worker/lead opening. + * Params: + * - Worker application id + **/ + ApplicationWithdrawn: AugmentedEvent; + /** + * Emits on adding the application for the worker opening. + * Params: + * - Opening id + * - Application id + **/ + AppliedOnOpening: AugmentedEvent; + /** + * Emits on beginning the application review for the worker/lead opening. + * Params: + * - Opening id + **/ + BeganApplicationReview: AugmentedEvent; + /** + * Emits on setting the leader. + * Params: + * - Worker id. + **/ + LeaderSet: AugmentedEvent; + /** + * Emits on un-setting the leader. + * Params: + **/ + LeaderUnset: AugmentedEvent; + /** + * Emits on changing working group mint capacity. + * Params: + * - mint id. + * - new mint balance. + **/ + MintCapacityChanged: AugmentedEvent; + /** + * Emits on adding new worker opening. + * Params: + * - Opening id + **/ + OpeningAdded: AugmentedEvent; + /** + * Emits on filling the worker opening. + * Params: + * - Worker opening id + * - Worker application id to the worker id dictionary + **/ + OpeningFilled: AugmentedEvent; + /** + * Emits on decreasing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeDecreased: AugmentedEvent; + /** + * Emits on increasing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeIncreased: AugmentedEvent; + /** + * Emits on slashing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeSlashed: AugmentedEvent; + /** + * Emits on terminating the leader. + * Params: + * - leader worker id. + * - termination rationale text + **/ + TerminatedLeader: AugmentedEvent; + /** + * Emits on terminating the worker. + * Params: + * - worker id. + * - termination rationale text + **/ + TerminatedWorker: AugmentedEvent; + /** + * Emits on exiting the worker. + * Params: + * - worker id. + * - exit rationale text + **/ + WorkerExited: AugmentedEvent; + /** + * Emits on updating the reward account of the worker. + * Params: + * - Member id of the worker. + * - Reward account id of the worker. + **/ + WorkerRewardAccountUpdated: AugmentedEvent; + /** + * Emits on updating the reward amount of the worker. + * Params: + * - Id of the worker. + **/ + WorkerRewardAmountUpdated: AugmentedEvent; + /** + * Emits on updating the role account of the worker. + * Params: + * - Id of the worker. + * - Role account id of the worker. + **/ + WorkerRoleAccountUpdated: AugmentedEvent; + /** + * Emits on updating the worker storage role. + * Params: + * - Id of the worker. + * - Raw storage field. + **/ + WorkerStorageUpdated: AugmentedEvent; + }; + operationsWorkingGroupGamma: { + /** + * Emits on accepting application for the worker opening. + * Params: + * - Opening id + **/ + AcceptedApplications: AugmentedEvent; + /** + * Emits on terminating the application for the worker/lead opening. + * Params: + * - Worker application id + **/ + ApplicationTerminated: AugmentedEvent; + /** + * Emits on withdrawing the application for the worker/lead opening. + * Params: + * - Worker application id + **/ + ApplicationWithdrawn: AugmentedEvent; + /** + * Emits on adding the application for the worker opening. + * Params: + * - Opening id + * - Application id + **/ + AppliedOnOpening: AugmentedEvent; + /** + * Emits on beginning the application review for the worker/lead opening. + * Params: + * - Opening id + **/ + BeganApplicationReview: AugmentedEvent; + /** + * Emits on setting the leader. + * Params: + * - Worker id. + **/ + LeaderSet: AugmentedEvent; + /** + * Emits on un-setting the leader. + * Params: + **/ + LeaderUnset: AugmentedEvent; + /** + * Emits on changing working group mint capacity. + * Params: + * - mint id. + * - new mint balance. + **/ + MintCapacityChanged: AugmentedEvent; + /** + * Emits on adding new worker opening. + * Params: + * - Opening id + **/ + OpeningAdded: AugmentedEvent; + /** + * Emits on filling the worker opening. + * Params: + * - Worker opening id + * - Worker application id to the worker id dictionary + **/ + OpeningFilled: AugmentedEvent; + /** + * Emits on decreasing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeDecreased: AugmentedEvent; + /** + * Emits on increasing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeIncreased: AugmentedEvent; + /** + * Emits on slashing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeSlashed: AugmentedEvent; + /** + * Emits on terminating the leader. + * Params: + * - leader worker id. + * - termination rationale text + **/ + TerminatedLeader: AugmentedEvent; + /** + * Emits on terminating the worker. + * Params: + * - worker id. + * - termination rationale text + **/ + TerminatedWorker: AugmentedEvent; + /** + * Emits on exiting the worker. + * Params: + * - worker id. + * - exit rationale text + **/ + WorkerExited: AugmentedEvent; + /** + * Emits on updating the reward account of the worker. + * Params: + * - Member id of the worker. + * - Reward account id of the worker. + **/ + WorkerRewardAccountUpdated: AugmentedEvent; + /** + * Emits on updating the reward amount of the worker. + * Params: + * - Id of the worker. + **/ + WorkerRewardAmountUpdated: AugmentedEvent; + /** + * Emits on updating the role account of the worker. + * Params: + * - Id of the worker. + * - Role account id of the worker. + **/ + WorkerRoleAccountUpdated: AugmentedEvent; + /** + * Emits on updating the worker storage role. + * Params: + * - Id of the worker. + * - Raw storage field. + **/ + WorkerStorageUpdated: AugmentedEvent; + }; + proposalsDiscussion: { + /** + * Emits on post creation. + **/ + PostCreated: AugmentedEvent; + /** + * Emits on post update. + **/ + PostUpdated: AugmentedEvent; + /** + * Emits on thread creation. + **/ + ThreadCreated: AugmentedEvent; + }; + 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; + /** + * Emits on proposal status change. + * Params: + * - Id of a updated proposal. + * - New proposal status + **/ + ProposalStatusUpdated: AugmentedEvent; + /** + * Emits on voting for the proposal + * Params: + * - Voter - member id of a voter. + * - Id of a proposal. + * - Kind of vote. + **/ + Voted: AugmentedEvent; + }; + session: { + /** + * New session has happened. Note that the argument is the \[session_index\], not the block + * number as the type might suggest. + **/ + NewSession: AugmentedEvent; + }; + 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; + /** + * 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; + /** + * An old slashing report from a prior era was discarded because it could + * not be processed. \[session_index\] + **/ + OldSlashingReportDiscarded: AugmentedEvent; + /** + * The staker has been rewarded by this amount. \[stash, amount\] + **/ + Reward: AugmentedEvent; + /** + * One validator (and its nominators) has been slashed by the given amount. + * \[validator, amount\] + **/ + Slash: AugmentedEvent; + /** + * A new solution for the upcoming election has been stored. \[compute\] + **/ + SolutionStored: AugmentedEvent; + /** + * A new set of stakers was elected with the given \[compute\]. + **/ + StakingElection: AugmentedEvent; + /** + * An account has unbonded this amount. \[stash, amount\] + **/ + Unbonded: AugmentedEvent; + /** + * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance` + * from the unlocking queue. \[stash, amount\] + **/ + Withdrawn: AugmentedEvent; + }; + storage: { + /** + * Bag objects changed. + * Params + * - bag id + * - new total objects size + * - new total objects number + **/ + BagObjectsChanged: AugmentedEvent; + /** + * Emits on changing the size-based pricing of new objects uploaded. + * Params + * - new data size fee + **/ + DataObjectPerMegabyteFeeUpdated: AugmentedEvent; + /** + * Emits on data objects deletion from bags. + * Params + * - account ID for the deletion prize + * - bag ID + * - data object IDs + **/ + DataObjectsDeleted: AugmentedEvent]>; + /** + * Emits on moving data objects between bags. + * Params + * - source bag ID + * - destination bag ID + * - data object IDs + **/ + DataObjectsMoved: AugmentedEvent]>; + /** + * Emits on uploading data objects. + * Params + * - data objects IDs + * - initial uploading parameters + * - deletion prize for objects + **/ + DataObjectsUploaded: AugmentedEvent, UploadParameters, Balance]>; + /** + * Emits on creating distribution bucket. + * Params + * - distribution bucket family ID + * - accepting new bags + * - distribution bucket ID + **/ + DistributionBucketCreated: AugmentedEvent; + /** + * Emits on deleting distribution bucket. + * Params + * - distribution bucket family ID + * - distribution bucket ID + **/ + DistributionBucketDeleted: AugmentedEvent; + /** + * Emits on creating distribution bucket family. + * Params + * - distribution family bucket ID + **/ + DistributionBucketFamilyCreated: AugmentedEvent; + /** + * Emits on deleting distribution bucket family. + * Params + * - distribution family bucket ID + **/ + DistributionBucketFamilyDeleted: AugmentedEvent; + /** + * Emits on setting the metadata by a distribution bucket family. + * Params + * - distribution bucket family ID + * - metadata + **/ + DistributionBucketFamilyMetadataSet: AugmentedEvent; + /** + * Emits on accepting a distribution bucket invitation for the operator. + * Params + * - worker ID + * - distribution bucket family ID + * - distribution bucket ID + **/ + DistributionBucketInvitationAccepted: AugmentedEvent; + /** + * Emits on canceling a distribution bucket invitation for the operator. + * Params + * - distribution bucket family ID + * - distribution bucket ID + * - operator worker ID + **/ + DistributionBucketInvitationCancelled: AugmentedEvent; + /** + * Emits on setting the metadata by a distribution bucket operator. + * Params + * - worker ID + * - distribution bucket family ID + * - distribution bucket ID + * - metadata + **/ + DistributionBucketMetadataSet: AugmentedEvent; + /** + * Emits on storage bucket mode update (distributing flag). + * Params + * - distribution bucket family ID + * - distribution bucket ID + * - distributing + **/ + DistributionBucketModeUpdated: AugmentedEvent; + /** + * Emits on creating a distribution bucket invitation for the operator. + * Params + * - distribution bucket family ID + * - distribution bucket ID + * - worker ID + **/ + DistributionBucketOperatorInvited: AugmentedEvent; + /** + * Emits on the distribution bucket operator removal. + * Params + * - distribution bucket family ID + * - distribution bucket ID + * - distribution bucket operator ID + **/ + DistributionBucketOperatorRemoved: AugmentedEvent; + /** + * Emits on changing the "Distribution buckets per bag" number limit. + * Params + * - new limit + **/ + DistributionBucketsPerBagLimitUpdated: AugmentedEvent; + /** + * Emits on storage bucket status update (accepting new bags). + * Params + * - distribution bucket family ID + * - distribution bucket ID + * - new status (accepting new bags) + **/ + DistributionBucketStatusUpdated: AugmentedEvent; + /** + * Emits on updating distribution buckets for bag. + * Params + * - bag ID + * - storage buckets to add ID collection + * - storage buckets to remove ID collection + **/ + DistributionBucketsUpdatedForBag: AugmentedEvent, BTreeSet]>; + /** + * Emits on creating a dynamic bag. + * Params + * - dynamic bag ID + * - optional DynamicBagDeletionPrize instance + * - assigned storage buckets' IDs + * - assigned distribution buckets' IDs + **/ + DynamicBagCreated: AugmentedEvent, BTreeSet, BTreeSet]>; + /** + * Emits on deleting a dynamic bag. + * Params + * - account ID for the deletion prize + * - dynamic bag ID + **/ + DynamicBagDeleted: AugmentedEvent; + /** + * Emits on dynamic bag creation policy update (distribution bucket families). + * Params + * - dynamic bag type + * - families and bucket numbers + **/ + FamiliesInDynamicBagCreationPolicyUpdated: AugmentedEvent]>; + /** + * Emits on updating the number of storage buckets in dynamic bag creation policy. + * Params + * - dynamic bag type + * - new number of storage buckets + **/ + NumberOfStorageBucketsInDynamicBagCreationPolicyUpdated: AugmentedEvent; + /** + * Emits on accepting pending data objects. + * Params + * - storage bucket ID + * - worker ID (storage provider ID) + * - bag ID + * - pending data objects + **/ + PendingDataObjectsAccepted: AugmentedEvent]>; + /** + * 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, bool, u64, u64]>; + /** + * Emits on storage bucket deleting. + * Params + * - storage bucket ID + **/ + StorageBucketDeleted: AugmentedEvent; + /** + * Emits on accepting the storage bucket invitation. + * Params + * - storage bucket ID + * - invited worker ID + **/ + StorageBucketInvitationAccepted: AugmentedEvent; + /** + * Emits on cancelling the storage bucket invitation. + * Params + * - storage bucket ID + **/ + StorageBucketInvitationCancelled: AugmentedEvent; + /** + * Emits on the storage bucket operator invitation. + * Params + * - storage bucket ID + * - operator worker ID (storage provider ID) + **/ + StorageBucketOperatorInvited: AugmentedEvent; + /** + * Emits on the storage bucket operator removal. + * Params + * - storage bucket ID + **/ + StorageBucketOperatorRemoved: AugmentedEvent; + /** + * Emits on changing the "Storage buckets per bag" number limit. + * Params + * - new limit + **/ + StorageBucketsPerBagLimitUpdated: AugmentedEvent; + /** + * Emits on storage bucket status update. + * Params + * - storage bucket ID + * - new status + **/ + StorageBucketStatusUpdated: AugmentedEvent; + /** + * Emits on updating storage buckets for bag. + * Params + * - bag ID + * - storage buckets to add ID collection + * - storage buckets to remove ID collection + **/ + StorageBucketsUpdatedForBag: AugmentedEvent, BTreeSet]>; + /** + * Emits on changing the "Storage buckets voucher max limits". + * Params + * - new objects size limit + * - new objects number limit + **/ + StorageBucketsVoucherMaxLimitsUpdated: AugmentedEvent; + /** + * Emits on setting the storage bucket voucher limits. + * Params + * - storage bucket ID + * - new total objects size limit + * - new total objects number limit + **/ + StorageBucketVoucherLimitsSet: AugmentedEvent; + /** + * Emits on setting the storage operator metadata. + * Params + * - storage bucket ID + * - invited worker ID + * - metadata + **/ + StorageOperatorMetadataSet: AugmentedEvent; + /** + * Emits on updating the blacklist with data hashes. + * Params + * - hashes to remove from the blacklist + * - hashes to add to the blacklist + **/ + UpdateBlacklist: AugmentedEvent, BTreeSet]>; + /** + * Emits on changing the size-based pricing of new objects uploaded. + * Params + * - new status + **/ + UploadingBlockStatusUpdated: AugmentedEvent; + /** + * Emits on changing the voucher for a storage bucket. + * Params + * - storage bucket ID + * - new voucher + **/ + VoucherChanged: AugmentedEvent; + }; + storageWorkingGroup: { + /** + * Emits on accepting application for the worker opening. + * Params: + * - Opening id + **/ + AcceptedApplications: AugmentedEvent; + /** + * Emits on terminating the application for the worker/lead opening. + * Params: + * - Worker application id + **/ + ApplicationTerminated: AugmentedEvent; + /** + * Emits on withdrawing the application for the worker/lead opening. + * Params: + * - Worker application id + **/ + ApplicationWithdrawn: AugmentedEvent; + /** + * Emits on adding the application for the worker opening. + * Params: + * - Opening id + * - Application id + **/ + AppliedOnOpening: AugmentedEvent; + /** + * Emits on beginning the application review for the worker/lead opening. + * Params: + * - Opening id + **/ + BeganApplicationReview: AugmentedEvent; + /** + * Emits on setting the leader. + * Params: + * - Worker id. + **/ + LeaderSet: AugmentedEvent; + /** + * Emits on un-setting the leader. + * Params: + **/ + LeaderUnset: AugmentedEvent; + /** + * Emits on changing working group mint capacity. + * Params: + * - mint id. + * - new mint balance. + **/ + MintCapacityChanged: AugmentedEvent; + /** + * Emits on adding new worker opening. + * Params: + * - Opening id + **/ + OpeningAdded: AugmentedEvent; + /** + * Emits on filling the worker opening. + * Params: + * - Worker opening id + * - Worker application id to the worker id dictionary + **/ + OpeningFilled: AugmentedEvent; + /** + * Emits on decreasing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeDecreased: AugmentedEvent; + /** + * Emits on increasing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeIncreased: AugmentedEvent; + /** + * Emits on slashing the worker/lead stake. + * Params: + * - worker/lead id. + **/ + StakeSlashed: AugmentedEvent; + /** + * Emits on terminating the leader. + * Params: + * - leader worker id. + * - termination rationale text + **/ + TerminatedLeader: AugmentedEvent; + /** + * Emits on terminating the worker. + * Params: + * - worker id. + * - termination rationale text + **/ + TerminatedWorker: AugmentedEvent; + /** + * Emits on exiting the worker. + * Params: + * - worker id. + * - exit rationale text + **/ + WorkerExited: AugmentedEvent; + /** + * Emits on updating the reward account of the worker. + * Params: + * - Member id of the worker. + * - Reward account id of the worker. + **/ + WorkerRewardAccountUpdated: AugmentedEvent; + /** + * Emits on updating the reward amount of the worker. + * Params: + * - Id of the worker. + **/ + WorkerRewardAmountUpdated: AugmentedEvent; + /** + * Emits on updating the role account of the worker. + * Params: + * - Id of the worker. + * - Role account id of the worker. + **/ + WorkerRoleAccountUpdated: AugmentedEvent; + /** + * Emits on updating the worker storage role. + * Params: + * - Id of the worker. + * - Raw storage field. + **/ + WorkerStorageUpdated: AugmentedEvent; + }; + sudo: { + /** + * The \[sudoer\] just switched identity; the old key is supplied. + **/ + KeyChanged: AugmentedEvent; + /** + * A sudo just took place. \[result\] + **/ + Sudid: AugmentedEvent; + /** + * A sudo just took place. \[result\] + **/ + SudoAsDone: AugmentedEvent; + }; + system: { + /** + * `:code` was updated. + **/ + CodeUpdated: AugmentedEvent; + /** + * An extrinsic failed. \[error, info\] + **/ + ExtrinsicFailed: AugmentedEvent; + /** + * An extrinsic completed successfully. \[info\] + **/ + ExtrinsicSuccess: AugmentedEvent; + /** + * An \[account\] was reaped. + **/ + KilledAccount: AugmentedEvent; + /** + * A new \[account\] was created. + **/ + NewAccount: AugmentedEvent; + }; + utility: { + /** + * Batch of dispatches completed fully with no error. + **/ + BatchCompleted: AugmentedEvent; + /** + * Batch of dispatches did not complete fully. Index of first failing dispatch given, as + * well as the error. \[index, error\] + **/ + BatchInterrupted: AugmentedEvent; + }; + } + + export interface DecoratedEvents extends AugmentedEvents { + } +} diff --git a/types/augment-codec/augment-api-query.ts b/types/augment-codec/augment-api-query.ts new file mode 100644 index 0000000000..3c71c5f253 --- /dev/null +++ b/types/augment-codec/augment-api-query.ts @@ -0,0 +1,1428 @@ +// 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, 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, Post, PostId, ProposalDetailsOf, ProposalId, ProposalOf, Recipient, RecipientId, RewardRelationship, RewardRelationshipId, SealedVote, Seats, 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 { + authorship: { + /** + * Author of current block. + **/ + author: AugmentedQuery Observable>, []>; + /** + * Whether uncles were already set in this block. + **/ + didSetUncles: AugmentedQuery Observable, []>; + /** + * Uncles + **/ + uncles: AugmentedQuery Observable>, []>; + }; + babe: { + /** + * Current epoch authorities. + **/ + authorities: AugmentedQuery Observable>>, []>; + /** + * Current slot number. + **/ + currentSlot: AugmentedQuery Observable, []>; + /** + * Current epoch index. + **/ + epochIndex: AugmentedQuery Observable, []>; + /** + * The slot at which the first epoch actually started. This is 0 + * until the first block of the chain. + **/ + genesisSlot: AugmentedQuery Observable, []>; + /** + * Temporary value (cleared at block finalization) which is `Some` + * if per-block initialization has already been called for current block. + **/ + initialized: AugmentedQuery Observable>, []>; + /** + * 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 Observable, []>; + /** + * Next epoch configuration, if changed. + **/ + nextEpochConfig: AugmentedQuery Observable>, []>; + /** + * Next epoch randomness. + **/ + nextRandomness: AugmentedQuery Observable, []>; + /** + * 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 Observable, []>; + /** + * 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 Observable, []>; + /** + * TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay. + **/ + underConstruction: AugmentedQuery Observable>, [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 Observable, [AccountId]>; + /** + * Any liquidity locks on some account balances. + * NOTE: Should only be accessed when setting, changing and freeing a lock. + **/ + locks: AugmentedQuery Observable>, [AccountId]>; + /** + * Storage version of the pallet. + * + * This is set to v2.0.0 for new networks. + **/ + storageVersion: AugmentedQuery Observable, []>; + /** + * The total units issued in the system. + **/ + totalIssuance: AugmentedQuery Observable, []>; + }; + content: { + channelById: AugmentedQuery Observable, [ChannelId]>; + channelCategoryById: AugmentedQuery Observable, [ChannelCategoryId]>; + /** + * Map, representing CuratorGroupId -> CuratorGroup relation + **/ + curatorGroupById: AugmentedQuery Observable, [CuratorGroupId]>; + nextChannelCategoryId: AugmentedQuery Observable, []>; + nextChannelId: AugmentedQuery Observable, []>; + nextCuratorGroupId: AugmentedQuery Observable, []>; + nextVideoCategoryId: AugmentedQuery Observable, []>; + nextVideoId: AugmentedQuery Observable, []>; + videoById: AugmentedQuery Observable