12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325 |
- // Auto-generated via `yarn polkadot-types-from-defs`, do not edit
- /* eslint-disable */
- import type { BTreeMap, BTreeSet, Bytes, Enum, GenericAccountId, Null, Option, Struct, Text, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types';
- import type { ITuple } from '@polkadot/types/types';
- import type { AccountId, Balance, Hash } from '@polkadot/types/interfaces/runtime';
- /** @name AcceptingApplications */
- export interface AcceptingApplications extends Struct {
- readonly started_accepting_applicants_at_block: u32;
- }
- /** @name ActivateOpeningAt */
- export interface ActivateOpeningAt extends Enum {
- readonly isCurrentBlock: boolean;
- readonly isExactBlock: boolean;
- readonly asExactBlock: u32;
- }
- /** @name ActiveOpeningStage */
- export interface ActiveOpeningStage extends Enum {
- readonly isAcceptingApplications: boolean;
- readonly asAcceptingApplications: AcceptingApplications;
- readonly isReviewPeriod: boolean;
- readonly asReviewPeriod: ReviewPeriod;
- readonly isDeactivated: boolean;
- readonly asDeactivated: Deactivated;
- }
- /** @name ActiveOpeningStageVariant */
- export interface ActiveOpeningStageVariant extends Struct {
- readonly stage: ActiveOpeningStage;
- readonly applications_added: Vec<ApplicationId>;
- readonly active_application_count: u32;
- readonly unstaking_application_count: u32;
- readonly deactivated_application_count: u32;
- }
- /** @name ActiveStake */
- export interface ActiveStake extends Struct {
- readonly stake_id: StakeId;
- readonly source_account_id: GenericAccountId;
- }
- /** @name Actor */
- export interface Actor extends Null {}
- /** @name ActorId */
- export interface ActorId extends u64 {}
- /** @name AddOpeningParameters */
- export interface AddOpeningParameters extends Struct {
- readonly activate_at: ActivateOpeningAt;
- readonly commitment: OpeningPolicyCommitment;
- readonly human_readable_text: Bytes;
- readonly working_group: WorkingGroup;
- }
- /** @name Address */
- export interface Address extends AccountId {}
- /** @name AddSchemaSupportToEntityOperation */
- export interface AddSchemaSupportToEntityOperation extends Null {}
- /** @name AdjustCapacityBy */
- export interface AdjustCapacityBy extends Enum {
- readonly isSetting: boolean;
- readonly asSetting: u128;
- readonly isAdding: boolean;
- readonly asAdding: u128;
- readonly isReducing: boolean;
- readonly asReducing: u128;
- }
- /** @name AdjustOnInterval */
- export interface AdjustOnInterval extends Struct {
- readonly block_interval: u32;
- readonly adjustment_type: AdjustCapacityBy;
- }
- /** @name Application */
- export interface Application extends Struct {
- readonly opening_id: OpeningId;
- readonly application_index_in_opening: u32;
- readonly add_to_opening_in_block: u32;
- readonly active_role_staking_id: Option<StakeId>;
- readonly active_application_staking_id: Option<StakeId>;
- readonly stage: ApplicationStage;
- readonly human_readable_text: Text;
- }
- /** @name ApplicationDeactivationCause */
- export interface ApplicationDeactivationCause extends Enum {
- readonly isExternal: boolean;
- readonly isHired: boolean;
- readonly isNotHired: boolean;
- readonly isCrowdedOut: boolean;
- readonly isOpeningCancelled: boolean;
- readonly isReviewPeriodExpired: boolean;
- readonly isOpeningFilled: boolean;
- }
- /** @name ApplicationId */
- export interface ApplicationId extends u64 {}
- /** @name ApplicationIdSet */
- export interface ApplicationIdSet extends BTreeSet<ApplicationId> {}
- /** @name ApplicationIdToWorkerIdMap */
- export interface ApplicationIdToWorkerIdMap extends BTreeMap<ApplicationId, WorkerId> {}
- /** @name ApplicationOf */
- export interface ApplicationOf extends Struct {
- readonly role_account_id: GenericAccountId;
- readonly opening_id: OpeningId;
- readonly member_id: MemberId;
- readonly application_id: ApplicationId;
- }
- /** @name ApplicationRationingPolicy */
- export interface ApplicationRationingPolicy extends Struct {
- readonly max_active_applicants: u32;
- }
- /** @name ApplicationStage */
- export interface ApplicationStage extends Enum {
- readonly isActive: boolean;
- readonly isUnstaking: boolean;
- readonly asUnstaking: UnstakingApplicationStage;
- readonly isInactive: boolean;
- readonly asInactive: InactiveApplicationStage;
- }
- /** @name Approved */
- export interface Approved extends Enum {
- readonly isPendingExecution: boolean;
- readonly isExecuted: boolean;
- readonly isExecutionFailed: boolean;
- readonly asExecutionFailed: ExecutionFailed;
- }
- /** @name Backer */
- export interface Backer extends Struct {
- readonly member: GenericAccountId;
- readonly stake: u128;
- }
- /** @name Backers */
- export interface Backers extends Vec<Backer> {}
- /** @name BalanceOfMint */
- export interface BalanceOfMint extends u128 {}
- /** @name BlockAndTime */
- export interface BlockAndTime extends Struct {
- readonly block: u32;
- readonly time: u64;
- }
- /** @name Category */
- export interface Category extends Struct {
- readonly id: CategoryId;
- readonly title: Text;
- readonly description: Text;
- readonly created_at: BlockAndTime;
- readonly deleted: bool;
- readonly archived: bool;
- readonly num_direct_subcategories: u32;
- readonly num_direct_unmoderated_threads: u32;
- readonly num_direct_moderated_threads: u32;
- readonly position_in_parent_category: Option<ChildPositionInParentCategory>;
- readonly moderator_id: GenericAccountId;
- }
- /** @name CategoryId */
- export interface CategoryId extends u64 {}
- /** @name Channel */
- export interface Channel extends Struct {
- readonly owner: ChannelOwner;
- readonly videos: Vec<VideoId>;
- readonly playlists: Vec<PlaylistId>;
- readonly series: Vec<SeriesId>;
- readonly is_censored: bool;
- readonly reward_account: Option<GenericAccountId>;
- }
- /** @name ChannelCategory */
- export interface ChannelCategory extends Struct {}
- /** @name ChannelCategoryCreationParameters */
- export interface ChannelCategoryCreationParameters extends Struct {
- readonly meta: Bytes;
- }
- /** @name ChannelCategoryId */
- export interface ChannelCategoryId extends u64 {}
- /** @name ChannelCategoryUpdateParameters */
- export interface ChannelCategoryUpdateParameters extends Struct {
- readonly new_meta: Bytes;
- }
- /** @name ChannelContentType */
- export interface ChannelContentType extends Null {}
- /** @name ChannelCreationParameters */
- export interface ChannelCreationParameters extends Struct {
- readonly assets: Vec<NewAsset>;
- readonly meta: Bytes;
- readonly reward_account: Option<GenericAccountId>;
- }
- /** @name ChannelCurationStatus */
- export interface ChannelCurationStatus extends Null {}
- /** @name ChannelId */
- export interface ChannelId extends u64 {}
- /** @name ChannelOwner */
- export interface ChannelOwner extends Enum {
- readonly isMember: boolean;
- readonly asMember: MemberId;
- readonly isCurators: boolean;
- readonly asCurators: CuratorGroupId;
- readonly isDao: boolean;
- readonly asDao: DAOId;
- }
- /** @name ChannelOwnershipTransferRequest */
- export interface ChannelOwnershipTransferRequest extends Struct {
- readonly channel_id: ChannelId;
- readonly new_owner: ChannelOwner;
- readonly payment: u128;
- readonly new_reward_account: Option<GenericAccountId>;
- }
- /** @name ChannelOwnershipTransferRequestId */
- export interface ChannelOwnershipTransferRequestId extends u64 {}
- /** @name ChannelPublicationStatus */
- export interface ChannelPublicationStatus extends Null {}
- /** @name ChannelUpdateParameters */
- export interface ChannelUpdateParameters extends Struct {
- readonly assets: Option<Vec<NewAsset>>;
- readonly new_meta: Option<Bytes>;
- readonly reward_account: Option<Option<GenericAccountId>>;
- }
- /** @name ChildPositionInParentCategory */
- export interface ChildPositionInParentCategory extends Struct {
- readonly parent_id: CategoryId;
- readonly child_nr_in_parent_category: u32;
- }
- /** @name Class */
- export interface Class extends Null {}
- /** @name ClassId */
- export interface ClassId extends Null {}
- /** @name ClassOf */
- export interface ClassOf extends Null {}
- /** @name ClassPermissions */
- export interface ClassPermissions extends Null {}
- /** @name ClassPermissionsType */
- export interface ClassPermissionsType extends Null {}
- /** @name ClassPropertyValue */
- export interface ClassPropertyValue extends Null {}
- /** @name ContentActor */
- export interface ContentActor extends Enum {
- readonly isCurator: boolean;
- readonly asCurator: ITuple<[CuratorGroupId, CuratorId]>;
- readonly isMember: boolean;
- readonly asMember: MemberId;
- readonly isLead: boolean;
- }
- /** @name ContentId */
- export interface ContentId extends U8aFixed {}
- /** @name ContentParameters */
- export interface ContentParameters extends Struct {
- readonly content_id: ContentId;
- readonly type_id: DataObjectTypeId;
- readonly ipfs_content_id: Bytes;
- }
- /** @name CreateEntityOperation */
- export interface CreateEntityOperation extends Null {}
- /** @name Credential */
- export interface Credential extends Null {}
- /** @name CredentialSet */
- export interface CredentialSet extends Null {}
- /** @name CurationActor */
- export interface CurationActor extends Null {}
- /** @name Curator */
- export interface Curator extends Null {}
- /** @name CuratorApplication */
- export interface CuratorApplication extends Null {}
- /** @name CuratorApplicationId */
- export interface CuratorApplicationId extends Null {}
- /** @name CuratorApplicationIdSet */
- export interface CuratorApplicationIdSet extends Null {}
- /** @name CuratorApplicationIdToCuratorIdMap */
- export interface CuratorApplicationIdToCuratorIdMap extends Null {}
- /** @name CuratorGroup */
- export interface CuratorGroup extends Struct {
- readonly curators: Vec<CuratorId>;
- readonly active: bool;
- }
- /** @name CuratorGroupId */
- export interface CuratorGroupId extends u64 {}
- /** @name CuratorId */
- export interface CuratorId extends u64 {}
- /** @name CuratorOpening */
- export interface CuratorOpening extends Null {}
- /** @name CuratorOpeningId */
- export interface CuratorOpeningId extends Null {}
- /** @name DAOId */
- export interface DAOId extends u64 {}
- /** @name DataObject */
- export interface DataObject extends Struct {
- readonly owner: StorageObjectOwner;
- readonly added_at: BlockAndTime;
- readonly type_id: DataObjectTypeId;
- readonly liaison: Option<StorageProviderId>;
- readonly liaison_judgement: LiaisonJudgement;
- readonly ipfs_content_id: Text;
- }
- /** @name DataObjectsMap */
- export interface DataObjectsMap extends BTreeMap<ContentId, DataObject> {}
- /** @name DataObjectStorageRelationship */
- export interface DataObjectStorageRelationship extends Struct {
- readonly content_id: ContentId;
- readonly storage_provider: StorageProviderId;
- readonly ready: bool;
- }
- /** @name DataObjectStorageRelationshipId */
- export interface DataObjectStorageRelationshipId extends u64 {}
- /** @name DataObjectType */
- export interface DataObjectType extends Struct {
- readonly description: Text;
- readonly active: bool;
- }
- /** @name DataObjectTypeId */
- export interface DataObjectTypeId extends u64 {}
- /** @name Deactivated */
- export interface Deactivated extends Struct {
- readonly cause: OpeningDeactivationCause;
- readonly deactivated_at_block: u32;
- readonly started_accepting_applicants_at_block: u32;
- readonly started_review_period_at_block: Option<u32>;
- }
- /** @name DiscussionPost */
- export interface DiscussionPost extends Struct {
- readonly text: Bytes;
- readonly created_at: u32;
- readonly updated_at: u32;
- readonly author_id: MemberId;
- readonly thread_id: ThreadId;
- readonly edition_number: u32;
- }
- /** @name DiscussionThread */
- export interface DiscussionThread extends Struct {
- readonly title: Bytes;
- readonly created_at: u32;
- readonly author_id: MemberId;
- }
- /** @name ElectionParameters */
- export interface ElectionParameters extends Struct {
- readonly announcing_period: u32;
- readonly voting_period: u32;
- readonly revealing_period: u32;
- readonly council_size: u32;
- readonly candidacy_limit: u32;
- readonly new_term_duration: u32;
- readonly min_council_stake: u128;
- readonly min_voting_stake: u128;
- }
- /** @name ElectionStage */
- export interface ElectionStage extends Enum {
- readonly isAnnouncing: boolean;
- readonly asAnnouncing: u32;
- readonly isVoting: boolean;
- readonly asVoting: u32;
- readonly isRevealing: boolean;
- readonly asRevealing: u32;
- }
- /** @name ElectionStake */
- export interface ElectionStake extends Struct {
- readonly new: u128;
- readonly transferred: u128;
- }
- /** @name Entity */
- export interface Entity extends Null {}
- /** @name EntityController */
- export interface EntityController extends Null {}
- /** @name EntityCreationVoucher */
- export interface EntityCreationVoucher extends Null {}
- /** @name EntityId */
- export interface EntityId extends Null {}
- /** @name EntityOf */
- export interface EntityOf extends Null {}
- /** @name EntityPermissions */
- export interface EntityPermissions extends Null {}
- /** @name EntityReferenceCounterSideEffect */
- export interface EntityReferenceCounterSideEffect extends Null {}
- /** @name EntryMethod */
- export interface EntryMethod extends Enum {
- readonly isPaid: boolean;
- readonly asPaid: u64;
- readonly isScreening: boolean;
- readonly asScreening: AccountId;
- readonly isGenesis: boolean;
- }
- /** @name EpisodeParemters */
- export interface EpisodeParemters extends Enum {
- readonly isNewVideo: boolean;
- readonly asNewVideo: VideoCreationParameters;
- readonly isExistingVideo: boolean;
- readonly asExistingVideo: VideoId;
- }
- /** @name ExecutionFailed */
- export interface ExecutionFailed extends Struct {
- readonly error: Bytes;
- }
- /** @name FailedAt */
- export interface FailedAt extends Null {}
- /** @name FillOpeningParameters */
- export interface FillOpeningParameters extends Struct {
- readonly opening_id: OpeningId;
- readonly successful_application_id: ApplicationId;
- readonly reward_policy: Option<RewardPolicy>;
- readonly working_group: WorkingGroup;
- }
- /** @name Finalized */
- export interface Finalized extends Struct {
- readonly proposalStatus: ProposalDecisionStatus;
- readonly finalizedAt: u32;
- readonly encodedUnstakingErrorDueToBrokenRuntime: Option<Bytes>;
- readonly stakeDataAfterUnstakingError: Option<ActiveStake>;
- }
- /** @name HashedTextMaxLength */
- export interface HashedTextMaxLength extends Null {}
- /** @name HiringApplicationId */
- export interface HiringApplicationId extends u64 {}
- /** @name InactiveApplicationStage */
- export interface InactiveApplicationStage extends Struct {
- readonly deactivation_initiated: u32;
- readonly deactivated: u32;
- readonly cause: ApplicationDeactivationCause;
- }
- /** @name InboundReferenceCounter */
- export interface InboundReferenceCounter extends Null {}
- /** @name InputEntityValuesMap */
- export interface InputEntityValuesMap extends Null {}
- /** @name InputPropertyValue */
- export interface InputPropertyValue extends Null {}
- /** @name InputValidationLengthConstraint */
- export interface InputValidationLengthConstraint extends Struct {
- readonly min: u16;
- readonly max_min_diff: u16;
- }
- /** @name InputValue */
- export interface InputValue extends Null {}
- /** @name IPNSIdentity */
- export interface IPNSIdentity extends Null {}
- /** @name IsCensored */
- export interface IsCensored extends bool {}
- /** @name Lead */
- export interface Lead extends Null {}
- /** @name LeadId */
- export interface LeadId extends Null {}
- /** @name LiaisonJudgement */
- export interface LiaisonJudgement extends Enum {
- readonly isPending: boolean;
- readonly isAccepted: boolean;
- }
- /** @name LookupSource */
- export interface LookupSource extends AccountId {}
- /** @name MaxNumber */
- export interface MaxNumber extends u32 {}
- /** @name MemberId */
- export interface MemberId extends u64 {}
- /** @name Membership */
- export interface Membership extends Struct {
- readonly handle: Text;
- readonly avatar_uri: Text;
- readonly about: Text;
- readonly registered_at_block: u32;
- readonly registered_at_time: u64;
- readonly entry: EntryMethod;
- readonly suspended: bool;
- readonly subscription: Option<SubscriptionId>;
- readonly root_account: GenericAccountId;
- readonly controller_account: GenericAccountId;
- }
- /** @name MemoText */
- export interface MemoText extends Text {}
- /** @name Mint */
- export interface Mint extends Struct {
- readonly capacity: u128;
- readonly next_adjustment: Option<NextAdjustment>;
- readonly created_at: u32;
- readonly total_minted: u128;
- }
- /** @name MintBalanceOf */
- export interface MintBalanceOf extends u128 {}
- /** @name MintId */
- export interface MintId extends u64 {}
- /** @name ModerationAction */
- export interface ModerationAction extends Struct {
- readonly moderated_at: BlockAndTime;
- readonly moderator_id: GenericAccountId;
- readonly rationale: Text;
- }
- /** @name NewAsset */
- export interface NewAsset extends Enum {
- readonly isUpload: boolean;
- readonly asUpload: ContentParameters;
- readonly isUrls: boolean;
- readonly asUrls: Vec<Url>;
- }
- /** @name NextAdjustment */
- export interface NextAdjustment extends Struct {
- readonly adjustment: AdjustOnInterval;
- readonly at_block: u32;
- }
- /** @name Nonce */
- export interface Nonce extends Null {}
- /** @name ObjectOwner */
- export interface ObjectOwner extends Enum {
- readonly isMember: boolean;
- readonly asMember: MemberId;
- readonly isChannel: boolean;
- readonly asChannel: ChannelId;
- readonly isDao: boolean;
- readonly asDao: DAOId;
- readonly isCouncil: boolean;
- readonly isWorkingGroup: boolean;
- readonly asWorkingGroup: WorkingGroup;
- }
- /** @name Opening */
- export interface Opening extends Struct {
- readonly created: u32;
- readonly stage: OpeningStage;
- readonly max_review_period_length: u32;
- readonly application_rationing_policy: Option<ApplicationRationingPolicy>;
- readonly application_staking_policy: Option<StakingPolicy>;
- readonly role_staking_policy: Option<StakingPolicy>;
- readonly human_readable_text: Text;
- }
- /** @name OpeningDeactivationCause */
- export interface OpeningDeactivationCause extends Enum {
- readonly isCancelledBeforeActivation: boolean;
- readonly isCancelledAcceptingApplications: boolean;
- readonly isCancelledInReviewPeriod: boolean;
- readonly isReviewPeriodExpired: boolean;
- readonly isFilled: boolean;
- }
- /** @name OpeningId */
- export interface OpeningId extends u64 {}
- /** @name OpeningOf */
- export interface OpeningOf extends Struct {
- readonly hiring_opening_id: OpeningId;
- readonly applications: Vec<ApplicationId>;
- readonly policy_commitment: OpeningPolicyCommitment;
- readonly opening_type: OpeningType;
- }
- /** @name OpeningPolicyCommitment */
- export interface OpeningPolicyCommitment extends Struct {
- readonly application_rationing_policy: Option<ApplicationRationingPolicy>;
- readonly max_review_period_length: u32;
- readonly application_staking_policy: Option<StakingPolicy>;
- readonly role_staking_policy: Option<StakingPolicy>;
- readonly role_slashing_terms: SlashingTerms;
- readonly fill_opening_successful_applicant_application_stake_unstaking_period: Option<u32>;
- readonly fill_opening_failed_applicant_application_stake_unstaking_period: Option<u32>;
- readonly fill_opening_failed_applicant_role_stake_unstaking_period: Option<u32>;
- readonly terminate_application_stake_unstaking_period: Option<u32>;
- readonly terminate_role_stake_unstaking_period: Option<u32>;
- readonly exit_role_application_stake_unstaking_period: Option<u32>;
- readonly exit_role_stake_unstaking_period: Option<u32>;
- }
- /** @name OpeningStage */
- export interface OpeningStage extends Enum {
- readonly isWaitingToBegin: boolean;
- readonly asWaitingToBegin: WaitingToBeingOpeningStageVariant;
- readonly isActive: boolean;
- readonly asActive: ActiveOpeningStageVariant;
- }
- /** @name OpeningType */
- export interface OpeningType extends Enum {
- readonly isLeader: boolean;
- readonly isWorker: boolean;
- }
- /** @name Operation */
- export interface Operation extends Null {}
- /** @name OperationType */
- export interface OperationType extends Null {}
- /** @name OptionalText */
- export interface OptionalText extends Null {}
- /** @name PaidMembershipTerms */
- export interface PaidMembershipTerms extends Struct {
- readonly fee: u128;
- readonly text: Text;
- }
- /** @name PaidTermId */
- export interface PaidTermId extends u64 {}
- /** @name ParameterizedEntity */
- export interface ParameterizedEntity extends Null {}
- /** @name ParametrizedClassPropertyValue */
- export interface ParametrizedClassPropertyValue extends Null {}
- /** @name ParametrizedPropertyValue */
- export interface ParametrizedPropertyValue extends Null {}
- /** @name Person */
- export interface Person extends Struct {
- readonly controlled_by: PersonController;
- }
- /** @name PersonActor */
- export interface PersonActor extends Enum {
- readonly isMember: boolean;
- readonly asMember: MemberId;
- readonly isCurator: boolean;
- readonly asCurator: CuratorId;
- }
- /** @name PersonController */
- export interface PersonController extends Enum {
- readonly isMember: boolean;
- readonly asMember: MemberId;
- readonly isCurators: boolean;
- }
- /** @name PersonCreationParameters */
- export interface PersonCreationParameters extends Struct {
- readonly assets: Vec<NewAsset>;
- readonly meta: Bytes;
- }
- /** @name PersonId */
- export interface PersonId extends u64 {}
- /** @name PersonUpdateParameters */
- export interface PersonUpdateParameters extends Struct {
- readonly assets: Option<Vec<NewAsset>>;
- readonly meta: Option<Bytes>;
- }
- /** @name Playlist */
- export interface Playlist extends Struct {
- readonly in_channel: ChannelId;
- }
- /** @name PlaylistCreationParameters */
- export interface PlaylistCreationParameters extends Struct {
- readonly meta: Bytes;
- }
- /** @name PlaylistId */
- export interface PlaylistId extends u64 {}
- /** @name PlaylistUpdateParameters */
- export interface PlaylistUpdateParameters extends Struct {
- readonly new_meta: Bytes;
- }
- /** @name Post */
- export interface Post extends Struct {
- readonly id: PostId;
- readonly thread_id: ThreadId;
- readonly nr_in_thread: u32;
- readonly current_text: Text;
- readonly moderation: Option<ModerationAction>;
- readonly text_change_history: Vec<PostTextChange>;
- readonly created_at: BlockAndTime;
- readonly author_id: GenericAccountId;
- }
- /** @name PostId */
- export interface PostId extends u64 {}
- /** @name PostTextChange */
- export interface PostTextChange extends Struct {
- readonly expired_at: BlockAndTime;
- readonly text: Text;
- }
- /** @name Principal */
- export interface Principal extends Null {}
- /** @name PrincipalId */
- export interface PrincipalId extends Null {}
- /** @name Property */
- export interface Property extends Null {}
- /** @name PropertyId */
- export interface PropertyId extends Null {}
- /** @name PropertyLockingPolicy */
- export interface PropertyLockingPolicy extends Null {}
- /** @name PropertyType */
- export interface PropertyType extends Null {}
- /** @name PropertyTypeSingle */
- export interface PropertyTypeSingle extends Null {}
- /** @name PropertyTypeVector */
- export interface PropertyTypeVector extends Null {}
- /** @name ProposalDecisionStatus */
- export interface ProposalDecisionStatus extends Enum {
- readonly isCanceled: boolean;
- readonly isVetoed: boolean;
- readonly isRejected: boolean;
- readonly isSlashed: boolean;
- readonly isExpired: boolean;
- readonly isApproved: boolean;
- readonly asApproved: Approved;
- }
- /** @name ProposalDetails */
- export interface ProposalDetails extends Enum {
- readonly isText: boolean;
- readonly asText: Bytes;
- readonly isRuntimeUpgrade: boolean;
- readonly asRuntimeUpgrade: Bytes;
- readonly isSetElectionParameters: boolean;
- readonly asSetElectionParameters: ElectionParameters;
- readonly isSpending: boolean;
- readonly asSpending: ITuple<[Balance, AccountId]>;
- readonly isSetLead: boolean;
- readonly asSetLead: Option<SetLeadParams>;
- readonly isSetContentWorkingGroupMintCapacity: boolean;
- readonly asSetContentWorkingGroupMintCapacity: u128;
- readonly isEvictStorageProvider: boolean;
- readonly asEvictStorageProvider: GenericAccountId;
- readonly isSetValidatorCount: boolean;
- readonly asSetValidatorCount: u32;
- readonly isSetStorageRoleParameters: boolean;
- readonly asSetStorageRoleParameters: RoleParameters;
- readonly isAddWorkingGroupLeaderOpening: boolean;
- readonly asAddWorkingGroupLeaderOpening: AddOpeningParameters;
- readonly isBeginReviewWorkingGroupLeaderApplication: boolean;
- readonly asBeginReviewWorkingGroupLeaderApplication: ITuple<[OpeningId, WorkingGroup]>;
- readonly isFillWorkingGroupLeaderOpening: boolean;
- readonly asFillWorkingGroupLeaderOpening: FillOpeningParameters;
- readonly isSetWorkingGroupMintCapacity: boolean;
- readonly asSetWorkingGroupMintCapacity: ITuple<[Balance, WorkingGroup]>;
- readonly isDecreaseWorkingGroupLeaderStake: boolean;
- readonly asDecreaseWorkingGroupLeaderStake: ITuple<[WorkerId, Balance, WorkingGroup]>;
- readonly isSlashWorkingGroupLeaderStake: boolean;
- readonly asSlashWorkingGroupLeaderStake: ITuple<[WorkerId, Balance, WorkingGroup]>;
- readonly isSetWorkingGroupLeaderReward: boolean;
- readonly asSetWorkingGroupLeaderReward: ITuple<[WorkerId, Balance, WorkingGroup]>;
- readonly isTerminateWorkingGroupLeaderRole: boolean;
- readonly asTerminateWorkingGroupLeaderRole: TerminateRoleParameters;
- }
- /** @name ProposalDetailsOf */
- export interface ProposalDetailsOf extends Enum {
- readonly isText: boolean;
- readonly asText: Bytes;
- readonly isRuntimeUpgrade: boolean;
- readonly asRuntimeUpgrade: Bytes;
- readonly isSetElectionParameters: boolean;
- readonly asSetElectionParameters: ElectionParameters;
- readonly isSpending: boolean;
- readonly asSpending: ITuple<[Balance, AccountId]>;
- readonly isSetLead: boolean;
- readonly asSetLead: Option<SetLeadParams>;
- readonly isSetContentWorkingGroupMintCapacity: boolean;
- readonly asSetContentWorkingGroupMintCapacity: u128;
- readonly isEvictStorageProvider: boolean;
- readonly asEvictStorageProvider: GenericAccountId;
- readonly isSetValidatorCount: boolean;
- readonly asSetValidatorCount: u32;
- readonly isSetStorageRoleParameters: boolean;
- readonly asSetStorageRoleParameters: RoleParameters;
- readonly isAddWorkingGroupLeaderOpening: boolean;
- readonly asAddWorkingGroupLeaderOpening: AddOpeningParameters;
- readonly isBeginReviewWorkingGroupLeaderApplication: boolean;
- readonly asBeginReviewWorkingGroupLeaderApplication: ITuple<[OpeningId, WorkingGroup]>;
- readonly isFillWorkingGroupLeaderOpening: boolean;
- readonly asFillWorkingGroupLeaderOpening: FillOpeningParameters;
- readonly isSetWorkingGroupMintCapacity: boolean;
- readonly asSetWorkingGroupMintCapacity: ITuple<[Balance, WorkingGroup]>;
- readonly isDecreaseWorkingGroupLeaderStake: boolean;
- readonly asDecreaseWorkingGroupLeaderStake: ITuple<[WorkerId, Balance, WorkingGroup]>;
- readonly isSlashWorkingGroupLeaderStake: boolean;
- readonly asSlashWorkingGroupLeaderStake: ITuple<[WorkerId, Balance, WorkingGroup]>;
- readonly isSetWorkingGroupLeaderReward: boolean;
- readonly asSetWorkingGroupLeaderReward: ITuple<[WorkerId, Balance, WorkingGroup]>;
- readonly isTerminateWorkingGroupLeaderRole: boolean;
- readonly asTerminateWorkingGroupLeaderRole: TerminateRoleParameters;
- }
- /** @name ProposalId */
- export interface ProposalId extends u32 {}
- /** @name ProposalOf */
- export interface ProposalOf extends Struct {
- readonly parameters: ProposalParameters;
- readonly proposerId: MemberId;
- readonly title: Bytes;
- readonly description: Bytes;
- readonly createdAt: u32;
- readonly status: ProposalStatus;
- readonly votingResults: VotingResults;
- }
- /** @name ProposalParameters */
- export interface ProposalParameters extends Struct {
- readonly votingPeriod: u32;
- readonly gracePeriod: u32;
- readonly approvalQuorumPercentage: u32;
- readonly approvalThresholdPercentage: u32;
- readonly slashingQuorumPercentage: u32;
- readonly slashingThresholdPercentage: u32;
- readonly requiredStake: Option<u128>;
- }
- /** @name ProposalStatus */
- export interface ProposalStatus extends Enum {
- readonly isActive: boolean;
- readonly asActive: Option<ActiveStake>;
- readonly isFinalized: boolean;
- readonly asFinalized: Finalized;
- }
- /** @name RationaleText */
- export interface RationaleText extends Bytes {}
- /** @name Recipient */
- export interface Recipient extends Struct {
- readonly total_reward_received: u128;
- readonly total_reward_missed: u128;
- }
- /** @name RecipientId */
- export interface RecipientId extends u64 {}
- /** @name ReferenceConstraint */
- export interface ReferenceConstraint extends Null {}
- /** @name ReferenceCounterSideEffects */
- export interface ReferenceCounterSideEffects extends Null {}
- /** @name Reply */
- export interface Reply extends Struct {
- readonly owner: GenericAccountId;
- readonly thread_id: ThreadId;
- readonly text: Text;
- readonly moderation: Option<ModerationAction>;
- }
- /** @name ReplyId */
- export interface ReplyId extends u64 {}
- /** @name ReviewPeriod */
- export interface ReviewPeriod extends Struct {
- readonly started_accepting_applicants_at_block: u32;
- readonly started_review_period_at_block: u32;
- }
- /** @name RewardPolicy */
- export interface RewardPolicy extends Struct {
- readonly amount_per_payout: u128;
- readonly next_payment_at_block: u32;
- readonly payout_interval: Option<u32>;
- }
- /** @name RewardRelationship */
- export interface RewardRelationship extends Struct {
- readonly recipient: RecipientId;
- readonly mint_id: MintId;
- readonly account: GenericAccountId;
- readonly amount_per_payout: u128;
- readonly next_payment_at_block: Option<u32>;
- readonly payout_interval: Option<u32>;
- readonly total_reward_received: u128;
- readonly total_reward_missed: u128;
- }
- /** @name RewardRelationshipId */
- export interface RewardRelationshipId extends u64 {}
- /** @name RoleParameters */
- export interface RoleParameters extends Struct {
- readonly min_stake: u128;
- readonly min_actors: u32;
- readonly max_actors: u32;
- readonly reward: u128;
- readonly reward_period: u32;
- readonly bonding_period: u32;
- readonly unbonding_period: u32;
- readonly min_service_period: u32;
- readonly startup_grace_period: u32;
- readonly entry_request_fee: u128;
- }
- /** @name RoleStakeProfile */
- export interface RoleStakeProfile extends Struct {
- readonly stake_id: StakeId;
- readonly termination_unstaking_period: Option<u32>;
- readonly exit_unstaking_period: Option<u32>;
- }
- /** @name SameController */
- export interface SameController extends Null {}
- /** @name Schema */
- export interface Schema extends Null {}
- /** @name SchemaId */
- export interface SchemaId extends Null {}
- /** @name SealedVote */
- export interface SealedVote extends Struct {
- readonly voter: GenericAccountId;
- readonly commitment: Hash;
- readonly stake: ElectionStake;
- readonly vote: Option<GenericAccountId>;
- }
- /** @name Season */
- export interface Season extends Struct {
- readonly episodes: Vec<VideoId>;
- }
- /** @name SeasonParameters */
- export interface SeasonParameters extends Struct {
- readonly assets: Option<Vec<NewAsset>>;
- readonly episodes: Option<Vec<Option<EpisodeParemters>>>;
- readonly meta: Option<Bytes>;
- }
- /** @name Seat */
- export interface Seat extends Struct {
- readonly member: GenericAccountId;
- readonly stake: u128;
- readonly backers: Backers;
- }
- /** @name Seats */
- export interface Seats extends Vec<Seat> {}
- /** @name Series */
- export interface Series extends Struct {
- readonly in_channel: ChannelId;
- readonly seasons: Vec<Season>;
- }
- /** @name SeriesId */
- export interface SeriesId extends u64 {}
- /** @name SeriesParameters */
- export interface SeriesParameters extends Struct {
- readonly assets: Option<Vec<NewAsset>>;
- readonly seasons: Option<Vec<Option<SeasonParameters>>>;
- readonly meta: Option<Bytes>;
- }
- /** @name ServiceProviderRecord */
- export interface ServiceProviderRecord extends Null {}
- /** @name SetLeadParams */
- export interface SetLeadParams extends ITuple<[MemberId, GenericAccountId]> {}
- /** @name SideEffect */
- export interface SideEffect extends Null {}
- /** @name SideEffects */
- export interface SideEffects extends Null {}
- /** @name Slash */
- export interface Slash extends Struct {
- readonly started_at_block: u32;
- readonly is_active: bool;
- readonly blocks_remaining_in_active_period_for_slashing: u32;
- readonly slash_amount: u128;
- }
- /** @name SlashableTerms */
- export interface SlashableTerms extends Struct {
- readonly max_count: u16;
- readonly max_percent_pts_per_time: u16;
- }
- /** @name SlashingTerms */
- export interface SlashingTerms extends Enum {
- readonly isUnslashable: boolean;
- readonly isSlashable: boolean;
- readonly asSlashable: SlashableTerms;
- }
- /** @name Stake */
- export interface Stake extends Struct {
- readonly created: u32;
- readonly staking_status: StakingStatus;
- }
- /** @name Staked */
- export interface Staked extends Struct {
- readonly staked_amount: u128;
- readonly staked_status: StakedStatus;
- readonly next_slash_id: u64;
- readonly ongoing_slashes: BTreeMap<u64, Slash>;
- }
- /** @name StakedStatus */
- export interface StakedStatus extends Enum {
- readonly isNormal: boolean;
- readonly isUnstaking: boolean;
- readonly asUnstaking: Unstaking;
- }
- /** @name StakeId */
- export interface StakeId extends u64 {}
- /** @name StakingAmountLimitMode */
- export interface StakingAmountLimitMode extends Enum {
- readonly isAtLeast: boolean;
- readonly isExact: boolean;
- }
- /** @name StakingPolicy */
- export interface StakingPolicy extends Struct {
- readonly amount: u128;
- readonly amount_mode: StakingAmountLimitMode;
- readonly crowded_out_unstaking_period_length: Option<u32>;
- readonly review_period_expired_unstaking_period_length: Option<u32>;
- }
- /** @name StakingStatus */
- export interface StakingStatus extends Enum {
- readonly isNotStaked: boolean;
- readonly isStaked: boolean;
- readonly asStaked: Staked;
- }
- /** @name Status */
- export interface Status extends Null {}
- /** @name StorageObjectOwner */
- export interface StorageObjectOwner extends Enum {
- readonly isMember: boolean;
- readonly asMember: MemberId;
- readonly isChannel: boolean;
- readonly asChannel: ChannelId;
- readonly isDao: boolean;
- readonly asDao: DAOId;
- readonly isCouncil: boolean;
- readonly isWorkingGroup: boolean;
- readonly asWorkingGroup: WorkingGroup;
- }
- /** @name StorageProviderId */
- export interface StorageProviderId extends u64 {}
- /** @name StoredPropertyValue */
- export interface StoredPropertyValue extends Null {}
- /** @name StoredValue */
- export interface StoredValue extends Null {}
- /** @name SubscriptionId */
- export interface SubscriptionId extends u64 {}
- /** @name TerminateRoleParameters */
- export interface TerminateRoleParameters extends Struct {
- readonly worker_id: WorkerId;
- readonly rationale: Bytes;
- readonly slash: bool;
- readonly working_group: WorkingGroup;
- }
- /** @name TextMaxLength */
- export interface TextMaxLength extends Null {}
- /** @name Thread */
- export interface Thread extends Struct {
- readonly id: ThreadId;
- readonly title: Text;
- readonly category_id: CategoryId;
- readonly nr_in_category: u32;
- readonly moderation: Option<ModerationAction>;
- readonly num_unmoderated_posts: u32;
- readonly num_moderated_posts: u32;
- readonly created_at: BlockAndTime;
- readonly author_id: GenericAccountId;
- }
- /** @name ThreadCounter */
- export interface ThreadCounter extends Struct {
- readonly author_id: MemberId;
- readonly counter: u32;
- }
- /** @name ThreadId */
- export interface ThreadId extends u64 {}
- /** @name TransferableStake */
- export interface TransferableStake extends Struct {
- readonly seat: u128;
- readonly backing: u128;
- }
- /** @name Unstaking */
- export interface Unstaking extends Struct {
- readonly started_at_block: u32;
- readonly is_active: bool;
- readonly blocks_remaining_in_active_period_for_unstaking: u32;
- }
- /** @name UnstakingApplicationStage */
- export interface UnstakingApplicationStage extends Struct {
- readonly deactivation_initiated: u32;
- readonly cause: ApplicationDeactivationCause;
- }
- /** @name UpdatePropertyValuesOperation */
- export interface UpdatePropertyValuesOperation extends Null {}
- /** @name UploadingStatus */
- export interface UploadingStatus extends bool {}
- /** @name Url */
- export interface Url extends Text {}
- /** @name VecInputValue */
- export interface VecInputValue extends Null {}
- /** @name VecMaxLength */
- export interface VecMaxLength extends Null {}
- /** @name VecStoredPropertyValue */
- export interface VecStoredPropertyValue extends Null {}
- /** @name VecStoredValue */
- export interface VecStoredValue extends Null {}
- /** @name Video */
- export interface Video extends Struct {
- readonly in_channel: ChannelId;
- readonly in_series: Option<SeriesId>;
- readonly is_censored: bool;
- }
- /** @name VideoCategory */
- export interface VideoCategory extends Struct {}
- /** @name VideoCategoryCreationParameters */
- export interface VideoCategoryCreationParameters extends Struct {
- readonly meta: Bytes;
- }
- /** @name VideoCategoryId */
- export interface VideoCategoryId extends u64 {}
- /** @name VideoCategoryUpdateParameters */
- export interface VideoCategoryUpdateParameters extends Struct {
- readonly new_meta: Bytes;
- }
- /** @name VideoCreationParameters */
- export interface VideoCreationParameters extends Struct {
- readonly assets: Vec<NewAsset>;
- readonly meta: Bytes;
- }
- /** @name VideoId */
- export interface VideoId extends u64 {}
- /** @name VideoUpdateParameters */
- export interface VideoUpdateParameters extends Struct {
- readonly assets: Option<Vec<NewAsset>>;
- readonly new_meta: Option<Bytes>;
- }
- /** @name VoteKind */
- export interface VoteKind extends Enum {
- readonly isApprove: boolean;
- readonly isReject: boolean;
- readonly isSlash: boolean;
- readonly isAbstain: boolean;
- }
- /** @name VotingResults */
- export interface VotingResults extends Struct {
- readonly abstensions: u32;
- readonly approvals: u32;
- readonly rejections: u32;
- readonly slashes: u32;
- }
- /** @name Voucher */
- export interface Voucher extends Struct {
- readonly size_limit: u64;
- readonly objects_limit: u64;
- readonly size_used: u64;
- readonly objects_used: u64;
- }
- /** @name VoucherLimit */
- export interface VoucherLimit extends u64 {}
- /** @name WaitingToBeingOpeningStageVariant */
- export interface WaitingToBeingOpeningStageVariant extends Struct {
- readonly begins_at_block: u32;
- }
- /** @name WorkerId */
- export interface WorkerId extends u64 {}
- /** @name WorkerOf */
- export interface WorkerOf extends Struct {
- readonly member_id: MemberId;
- readonly role_account_id: GenericAccountId;
- readonly reward_relationship: Option<RewardRelationshipId>;
- readonly role_stake_profile: Option<RoleStakeProfile>;
- }
- /** @name WorkingGroup */
- export interface WorkingGroup extends Enum {
- readonly isStorage: boolean;
- readonly isContent: boolean;
- readonly isOperations: boolean;
- readonly isGateway: boolean;
- }
- /** @name WorkingGroupUnstaker */
- export interface WorkingGroupUnstaker extends Null {}
- export type PHANTOM_ALL = 'all';
|