types.ts 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325
  1. // Auto-generated via `yarn polkadot-types-from-defs`, do not edit
  2. /* eslint-disable */
  3. import type { BTreeMap, BTreeSet, Bytes, Enum, GenericAccountId, Null, Option, Struct, Text, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types';
  4. import type { ITuple } from '@polkadot/types/types';
  5. import type { AccountId, Balance, Hash } from '@polkadot/types/interfaces/runtime';
  6. /** @name AcceptingApplications */
  7. export interface AcceptingApplications extends Struct {
  8. readonly started_accepting_applicants_at_block: u32;
  9. }
  10. /** @name ActivateOpeningAt */
  11. export interface ActivateOpeningAt extends Enum {
  12. readonly isCurrentBlock: boolean;
  13. readonly isExactBlock: boolean;
  14. readonly asExactBlock: u32;
  15. }
  16. /** @name ActiveOpeningStage */
  17. export interface ActiveOpeningStage extends Enum {
  18. readonly isAcceptingApplications: boolean;
  19. readonly asAcceptingApplications: AcceptingApplications;
  20. readonly isReviewPeriod: boolean;
  21. readonly asReviewPeriod: ReviewPeriod;
  22. readonly isDeactivated: boolean;
  23. readonly asDeactivated: Deactivated;
  24. }
  25. /** @name ActiveOpeningStageVariant */
  26. export interface ActiveOpeningStageVariant extends Struct {
  27. readonly stage: ActiveOpeningStage;
  28. readonly applications_added: Vec<ApplicationId>;
  29. readonly active_application_count: u32;
  30. readonly unstaking_application_count: u32;
  31. readonly deactivated_application_count: u32;
  32. }
  33. /** @name ActiveStake */
  34. export interface ActiveStake extends Struct {
  35. readonly stake_id: StakeId;
  36. readonly source_account_id: GenericAccountId;
  37. }
  38. /** @name Actor */
  39. export interface Actor extends Null {}
  40. /** @name ActorId */
  41. export interface ActorId extends u64 {}
  42. /** @name AddOpeningParameters */
  43. export interface AddOpeningParameters extends Struct {
  44. readonly activate_at: ActivateOpeningAt;
  45. readonly commitment: OpeningPolicyCommitment;
  46. readonly human_readable_text: Bytes;
  47. readonly working_group: WorkingGroup;
  48. }
  49. /** @name Address */
  50. export interface Address extends AccountId {}
  51. /** @name AddSchemaSupportToEntityOperation */
  52. export interface AddSchemaSupportToEntityOperation extends Null {}
  53. /** @name AdjustCapacityBy */
  54. export interface AdjustCapacityBy extends Enum {
  55. readonly isSetting: boolean;
  56. readonly asSetting: u128;
  57. readonly isAdding: boolean;
  58. readonly asAdding: u128;
  59. readonly isReducing: boolean;
  60. readonly asReducing: u128;
  61. }
  62. /** @name AdjustOnInterval */
  63. export interface AdjustOnInterval extends Struct {
  64. readonly block_interval: u32;
  65. readonly adjustment_type: AdjustCapacityBy;
  66. }
  67. /** @name Application */
  68. export interface Application extends Struct {
  69. readonly opening_id: OpeningId;
  70. readonly application_index_in_opening: u32;
  71. readonly add_to_opening_in_block: u32;
  72. readonly active_role_staking_id: Option<StakeId>;
  73. readonly active_application_staking_id: Option<StakeId>;
  74. readonly stage: ApplicationStage;
  75. readonly human_readable_text: Text;
  76. }
  77. /** @name ApplicationDeactivationCause */
  78. export interface ApplicationDeactivationCause extends Enum {
  79. readonly isExternal: boolean;
  80. readonly isHired: boolean;
  81. readonly isNotHired: boolean;
  82. readonly isCrowdedOut: boolean;
  83. readonly isOpeningCancelled: boolean;
  84. readonly isReviewPeriodExpired: boolean;
  85. readonly isOpeningFilled: boolean;
  86. }
  87. /** @name ApplicationId */
  88. export interface ApplicationId extends u64 {}
  89. /** @name ApplicationIdSet */
  90. export interface ApplicationIdSet extends BTreeSet<ApplicationId> {}
  91. /** @name ApplicationIdToWorkerIdMap */
  92. export interface ApplicationIdToWorkerIdMap extends BTreeMap<ApplicationId, WorkerId> {}
  93. /** @name ApplicationOf */
  94. export interface ApplicationOf extends Struct {
  95. readonly role_account_id: GenericAccountId;
  96. readonly opening_id: OpeningId;
  97. readonly member_id: MemberId;
  98. readonly application_id: ApplicationId;
  99. }
  100. /** @name ApplicationRationingPolicy */
  101. export interface ApplicationRationingPolicy extends Struct {
  102. readonly max_active_applicants: u32;
  103. }
  104. /** @name ApplicationStage */
  105. export interface ApplicationStage extends Enum {
  106. readonly isActive: boolean;
  107. readonly isUnstaking: boolean;
  108. readonly asUnstaking: UnstakingApplicationStage;
  109. readonly isInactive: boolean;
  110. readonly asInactive: InactiveApplicationStage;
  111. }
  112. /** @name Approved */
  113. export interface Approved extends Enum {
  114. readonly isPendingExecution: boolean;
  115. readonly isExecuted: boolean;
  116. readonly isExecutionFailed: boolean;
  117. readonly asExecutionFailed: ExecutionFailed;
  118. }
  119. /** @name Backer */
  120. export interface Backer extends Struct {
  121. readonly member: GenericAccountId;
  122. readonly stake: u128;
  123. }
  124. /** @name Backers */
  125. export interface Backers extends Vec<Backer> {}
  126. /** @name BalanceOfMint */
  127. export interface BalanceOfMint extends u128 {}
  128. /** @name BlockAndTime */
  129. export interface BlockAndTime extends Struct {
  130. readonly block: u32;
  131. readonly time: u64;
  132. }
  133. /** @name Category */
  134. export interface Category extends Struct {
  135. readonly id: CategoryId;
  136. readonly title: Text;
  137. readonly description: Text;
  138. readonly created_at: BlockAndTime;
  139. readonly deleted: bool;
  140. readonly archived: bool;
  141. readonly num_direct_subcategories: u32;
  142. readonly num_direct_unmoderated_threads: u32;
  143. readonly num_direct_moderated_threads: u32;
  144. readonly position_in_parent_category: Option<ChildPositionInParentCategory>;
  145. readonly moderator_id: GenericAccountId;
  146. }
  147. /** @name CategoryId */
  148. export interface CategoryId extends u64 {}
  149. /** @name Channel */
  150. export interface Channel extends Struct {
  151. readonly owner: ChannelOwner;
  152. readonly videos: Vec<VideoId>;
  153. readonly playlists: Vec<PlaylistId>;
  154. readonly series: Vec<SeriesId>;
  155. readonly is_censored: bool;
  156. readonly reward_account: Option<GenericAccountId>;
  157. }
  158. /** @name ChannelCategory */
  159. export interface ChannelCategory extends Struct {}
  160. /** @name ChannelCategoryCreationParameters */
  161. export interface ChannelCategoryCreationParameters extends Struct {
  162. readonly meta: Bytes;
  163. }
  164. /** @name ChannelCategoryId */
  165. export interface ChannelCategoryId extends u64 {}
  166. /** @name ChannelCategoryUpdateParameters */
  167. export interface ChannelCategoryUpdateParameters extends Struct {
  168. readonly new_meta: Bytes;
  169. }
  170. /** @name ChannelContentType */
  171. export interface ChannelContentType extends Null {}
  172. /** @name ChannelCreationParameters */
  173. export interface ChannelCreationParameters extends Struct {
  174. readonly assets: Vec<NewAsset>;
  175. readonly meta: Bytes;
  176. readonly reward_account: Option<GenericAccountId>;
  177. }
  178. /** @name ChannelCurationStatus */
  179. export interface ChannelCurationStatus extends Null {}
  180. /** @name ChannelId */
  181. export interface ChannelId extends u64 {}
  182. /** @name ChannelOwner */
  183. export interface ChannelOwner extends Enum {
  184. readonly isMember: boolean;
  185. readonly asMember: MemberId;
  186. readonly isCurators: boolean;
  187. readonly asCurators: CuratorGroupId;
  188. readonly isDao: boolean;
  189. readonly asDao: DAOId;
  190. }
  191. /** @name ChannelOwnershipTransferRequest */
  192. export interface ChannelOwnershipTransferRequest extends Struct {
  193. readonly channel_id: ChannelId;
  194. readonly new_owner: ChannelOwner;
  195. readonly payment: u128;
  196. readonly new_reward_account: Option<GenericAccountId>;
  197. }
  198. /** @name ChannelOwnershipTransferRequestId */
  199. export interface ChannelOwnershipTransferRequestId extends u64 {}
  200. /** @name ChannelPublicationStatus */
  201. export interface ChannelPublicationStatus extends Null {}
  202. /** @name ChannelUpdateParameters */
  203. export interface ChannelUpdateParameters extends Struct {
  204. readonly assets: Option<Vec<NewAsset>>;
  205. readonly new_meta: Option<Bytes>;
  206. readonly reward_account: Option<Option<GenericAccountId>>;
  207. }
  208. /** @name ChildPositionInParentCategory */
  209. export interface ChildPositionInParentCategory extends Struct {
  210. readonly parent_id: CategoryId;
  211. readonly child_nr_in_parent_category: u32;
  212. }
  213. /** @name Class */
  214. export interface Class extends Null {}
  215. /** @name ClassId */
  216. export interface ClassId extends Null {}
  217. /** @name ClassOf */
  218. export interface ClassOf extends Null {}
  219. /** @name ClassPermissions */
  220. export interface ClassPermissions extends Null {}
  221. /** @name ClassPermissionsType */
  222. export interface ClassPermissionsType extends Null {}
  223. /** @name ClassPropertyValue */
  224. export interface ClassPropertyValue extends Null {}
  225. /** @name ContentActor */
  226. export interface ContentActor extends Enum {
  227. readonly isCurator: boolean;
  228. readonly asCurator: ITuple<[CuratorGroupId, CuratorId]>;
  229. readonly isMember: boolean;
  230. readonly asMember: MemberId;
  231. readonly isLead: boolean;
  232. }
  233. /** @name ContentId */
  234. export interface ContentId extends U8aFixed {}
  235. /** @name ContentParameters */
  236. export interface ContentParameters extends Struct {
  237. readonly content_id: ContentId;
  238. readonly type_id: DataObjectTypeId;
  239. readonly ipfs_content_id: Bytes;
  240. }
  241. /** @name CreateEntityOperation */
  242. export interface CreateEntityOperation extends Null {}
  243. /** @name Credential */
  244. export interface Credential extends Null {}
  245. /** @name CredentialSet */
  246. export interface CredentialSet extends Null {}
  247. /** @name CurationActor */
  248. export interface CurationActor extends Null {}
  249. /** @name Curator */
  250. export interface Curator extends Null {}
  251. /** @name CuratorApplication */
  252. export interface CuratorApplication extends Null {}
  253. /** @name CuratorApplicationId */
  254. export interface CuratorApplicationId extends Null {}
  255. /** @name CuratorApplicationIdSet */
  256. export interface CuratorApplicationIdSet extends Null {}
  257. /** @name CuratorApplicationIdToCuratorIdMap */
  258. export interface CuratorApplicationIdToCuratorIdMap extends Null {}
  259. /** @name CuratorGroup */
  260. export interface CuratorGroup extends Struct {
  261. readonly curators: Vec<CuratorId>;
  262. readonly active: bool;
  263. }
  264. /** @name CuratorGroupId */
  265. export interface CuratorGroupId extends u64 {}
  266. /** @name CuratorId */
  267. export interface CuratorId extends u64 {}
  268. /** @name CuratorOpening */
  269. export interface CuratorOpening extends Null {}
  270. /** @name CuratorOpeningId */
  271. export interface CuratorOpeningId extends Null {}
  272. /** @name DAOId */
  273. export interface DAOId extends u64 {}
  274. /** @name DataObject */
  275. export interface DataObject extends Struct {
  276. readonly owner: StorageObjectOwner;
  277. readonly added_at: BlockAndTime;
  278. readonly type_id: DataObjectTypeId;
  279. readonly liaison: Option<StorageProviderId>;
  280. readonly liaison_judgement: LiaisonJudgement;
  281. readonly ipfs_content_id: Text;
  282. }
  283. /** @name DataObjectsMap */
  284. export interface DataObjectsMap extends BTreeMap<ContentId, DataObject> {}
  285. /** @name DataObjectStorageRelationship */
  286. export interface DataObjectStorageRelationship extends Struct {
  287. readonly content_id: ContentId;
  288. readonly storage_provider: StorageProviderId;
  289. readonly ready: bool;
  290. }
  291. /** @name DataObjectStorageRelationshipId */
  292. export interface DataObjectStorageRelationshipId extends u64 {}
  293. /** @name DataObjectType */
  294. export interface DataObjectType extends Struct {
  295. readonly description: Text;
  296. readonly active: bool;
  297. }
  298. /** @name DataObjectTypeId */
  299. export interface DataObjectTypeId extends u64 {}
  300. /** @name Deactivated */
  301. export interface Deactivated extends Struct {
  302. readonly cause: OpeningDeactivationCause;
  303. readonly deactivated_at_block: u32;
  304. readonly started_accepting_applicants_at_block: u32;
  305. readonly started_review_period_at_block: Option<u32>;
  306. }
  307. /** @name DiscussionPost */
  308. export interface DiscussionPost extends Struct {
  309. readonly text: Bytes;
  310. readonly created_at: u32;
  311. readonly updated_at: u32;
  312. readonly author_id: MemberId;
  313. readonly thread_id: ThreadId;
  314. readonly edition_number: u32;
  315. }
  316. /** @name DiscussionThread */
  317. export interface DiscussionThread extends Struct {
  318. readonly title: Bytes;
  319. readonly created_at: u32;
  320. readonly author_id: MemberId;
  321. }
  322. /** @name ElectionParameters */
  323. export interface ElectionParameters extends Struct {
  324. readonly announcing_period: u32;
  325. readonly voting_period: u32;
  326. readonly revealing_period: u32;
  327. readonly council_size: u32;
  328. readonly candidacy_limit: u32;
  329. readonly new_term_duration: u32;
  330. readonly min_council_stake: u128;
  331. readonly min_voting_stake: u128;
  332. }
  333. /** @name ElectionStage */
  334. export interface ElectionStage extends Enum {
  335. readonly isAnnouncing: boolean;
  336. readonly asAnnouncing: u32;
  337. readonly isVoting: boolean;
  338. readonly asVoting: u32;
  339. readonly isRevealing: boolean;
  340. readonly asRevealing: u32;
  341. }
  342. /** @name ElectionStake */
  343. export interface ElectionStake extends Struct {
  344. readonly new: u128;
  345. readonly transferred: u128;
  346. }
  347. /** @name Entity */
  348. export interface Entity extends Null {}
  349. /** @name EntityController */
  350. export interface EntityController extends Null {}
  351. /** @name EntityCreationVoucher */
  352. export interface EntityCreationVoucher extends Null {}
  353. /** @name EntityId */
  354. export interface EntityId extends Null {}
  355. /** @name EntityOf */
  356. export interface EntityOf extends Null {}
  357. /** @name EntityPermissions */
  358. export interface EntityPermissions extends Null {}
  359. /** @name EntityReferenceCounterSideEffect */
  360. export interface EntityReferenceCounterSideEffect extends Null {}
  361. /** @name EntryMethod */
  362. export interface EntryMethod extends Enum {
  363. readonly isPaid: boolean;
  364. readonly asPaid: u64;
  365. readonly isScreening: boolean;
  366. readonly asScreening: AccountId;
  367. readonly isGenesis: boolean;
  368. }
  369. /** @name EpisodeParemters */
  370. export interface EpisodeParemters extends Enum {
  371. readonly isNewVideo: boolean;
  372. readonly asNewVideo: VideoCreationParameters;
  373. readonly isExistingVideo: boolean;
  374. readonly asExistingVideo: VideoId;
  375. }
  376. /** @name ExecutionFailed */
  377. export interface ExecutionFailed extends Struct {
  378. readonly error: Bytes;
  379. }
  380. /** @name FailedAt */
  381. export interface FailedAt extends Null {}
  382. /** @name FillOpeningParameters */
  383. export interface FillOpeningParameters extends Struct {
  384. readonly opening_id: OpeningId;
  385. readonly successful_application_id: ApplicationId;
  386. readonly reward_policy: Option<RewardPolicy>;
  387. readonly working_group: WorkingGroup;
  388. }
  389. /** @name Finalized */
  390. export interface Finalized extends Struct {
  391. readonly proposalStatus: ProposalDecisionStatus;
  392. readonly finalizedAt: u32;
  393. readonly encodedUnstakingErrorDueToBrokenRuntime: Option<Bytes>;
  394. readonly stakeDataAfterUnstakingError: Option<ActiveStake>;
  395. }
  396. /** @name HashedTextMaxLength */
  397. export interface HashedTextMaxLength extends Null {}
  398. /** @name HiringApplicationId */
  399. export interface HiringApplicationId extends u64 {}
  400. /** @name InactiveApplicationStage */
  401. export interface InactiveApplicationStage extends Struct {
  402. readonly deactivation_initiated: u32;
  403. readonly deactivated: u32;
  404. readonly cause: ApplicationDeactivationCause;
  405. }
  406. /** @name InboundReferenceCounter */
  407. export interface InboundReferenceCounter extends Null {}
  408. /** @name InputEntityValuesMap */
  409. export interface InputEntityValuesMap extends Null {}
  410. /** @name InputPropertyValue */
  411. export interface InputPropertyValue extends Null {}
  412. /** @name InputValidationLengthConstraint */
  413. export interface InputValidationLengthConstraint extends Struct {
  414. readonly min: u16;
  415. readonly max_min_diff: u16;
  416. }
  417. /** @name InputValue */
  418. export interface InputValue extends Null {}
  419. /** @name IPNSIdentity */
  420. export interface IPNSIdentity extends Null {}
  421. /** @name IsCensored */
  422. export interface IsCensored extends bool {}
  423. /** @name Lead */
  424. export interface Lead extends Null {}
  425. /** @name LeadId */
  426. export interface LeadId extends Null {}
  427. /** @name LiaisonJudgement */
  428. export interface LiaisonJudgement extends Enum {
  429. readonly isPending: boolean;
  430. readonly isAccepted: boolean;
  431. }
  432. /** @name LookupSource */
  433. export interface LookupSource extends AccountId {}
  434. /** @name MaxNumber */
  435. export interface MaxNumber extends u32 {}
  436. /** @name MemberId */
  437. export interface MemberId extends u64 {}
  438. /** @name Membership */
  439. export interface Membership extends Struct {
  440. readonly handle: Text;
  441. readonly avatar_uri: Text;
  442. readonly about: Text;
  443. readonly registered_at_block: u32;
  444. readonly registered_at_time: u64;
  445. readonly entry: EntryMethod;
  446. readonly suspended: bool;
  447. readonly subscription: Option<SubscriptionId>;
  448. readonly root_account: GenericAccountId;
  449. readonly controller_account: GenericAccountId;
  450. }
  451. /** @name MemoText */
  452. export interface MemoText extends Text {}
  453. /** @name Mint */
  454. export interface Mint extends Struct {
  455. readonly capacity: u128;
  456. readonly next_adjustment: Option<NextAdjustment>;
  457. readonly created_at: u32;
  458. readonly total_minted: u128;
  459. }
  460. /** @name MintBalanceOf */
  461. export interface MintBalanceOf extends u128 {}
  462. /** @name MintId */
  463. export interface MintId extends u64 {}
  464. /** @name ModerationAction */
  465. export interface ModerationAction extends Struct {
  466. readonly moderated_at: BlockAndTime;
  467. readonly moderator_id: GenericAccountId;
  468. readonly rationale: Text;
  469. }
  470. /** @name NewAsset */
  471. export interface NewAsset extends Enum {
  472. readonly isUpload: boolean;
  473. readonly asUpload: ContentParameters;
  474. readonly isUrls: boolean;
  475. readonly asUrls: Vec<Url>;
  476. }
  477. /** @name NextAdjustment */
  478. export interface NextAdjustment extends Struct {
  479. readonly adjustment: AdjustOnInterval;
  480. readonly at_block: u32;
  481. }
  482. /** @name Nonce */
  483. export interface Nonce extends Null {}
  484. /** @name ObjectOwner */
  485. export interface ObjectOwner extends Enum {
  486. readonly isMember: boolean;
  487. readonly asMember: MemberId;
  488. readonly isChannel: boolean;
  489. readonly asChannel: ChannelId;
  490. readonly isDao: boolean;
  491. readonly asDao: DAOId;
  492. readonly isCouncil: boolean;
  493. readonly isWorkingGroup: boolean;
  494. readonly asWorkingGroup: WorkingGroup;
  495. }
  496. /** @name Opening */
  497. export interface Opening extends Struct {
  498. readonly created: u32;
  499. readonly stage: OpeningStage;
  500. readonly max_review_period_length: u32;
  501. readonly application_rationing_policy: Option<ApplicationRationingPolicy>;
  502. readonly application_staking_policy: Option<StakingPolicy>;
  503. readonly role_staking_policy: Option<StakingPolicy>;
  504. readonly human_readable_text: Text;
  505. }
  506. /** @name OpeningDeactivationCause */
  507. export interface OpeningDeactivationCause extends Enum {
  508. readonly isCancelledBeforeActivation: boolean;
  509. readonly isCancelledAcceptingApplications: boolean;
  510. readonly isCancelledInReviewPeriod: boolean;
  511. readonly isReviewPeriodExpired: boolean;
  512. readonly isFilled: boolean;
  513. }
  514. /** @name OpeningId */
  515. export interface OpeningId extends u64 {}
  516. /** @name OpeningOf */
  517. export interface OpeningOf extends Struct {
  518. readonly hiring_opening_id: OpeningId;
  519. readonly applications: Vec<ApplicationId>;
  520. readonly policy_commitment: OpeningPolicyCommitment;
  521. readonly opening_type: OpeningType;
  522. }
  523. /** @name OpeningPolicyCommitment */
  524. export interface OpeningPolicyCommitment extends Struct {
  525. readonly application_rationing_policy: Option<ApplicationRationingPolicy>;
  526. readonly max_review_period_length: u32;
  527. readonly application_staking_policy: Option<StakingPolicy>;
  528. readonly role_staking_policy: Option<StakingPolicy>;
  529. readonly role_slashing_terms: SlashingTerms;
  530. readonly fill_opening_successful_applicant_application_stake_unstaking_period: Option<u32>;
  531. readonly fill_opening_failed_applicant_application_stake_unstaking_period: Option<u32>;
  532. readonly fill_opening_failed_applicant_role_stake_unstaking_period: Option<u32>;
  533. readonly terminate_application_stake_unstaking_period: Option<u32>;
  534. readonly terminate_role_stake_unstaking_period: Option<u32>;
  535. readonly exit_role_application_stake_unstaking_period: Option<u32>;
  536. readonly exit_role_stake_unstaking_period: Option<u32>;
  537. }
  538. /** @name OpeningStage */
  539. export interface OpeningStage extends Enum {
  540. readonly isWaitingToBegin: boolean;
  541. readonly asWaitingToBegin: WaitingToBeingOpeningStageVariant;
  542. readonly isActive: boolean;
  543. readonly asActive: ActiveOpeningStageVariant;
  544. }
  545. /** @name OpeningType */
  546. export interface OpeningType extends Enum {
  547. readonly isLeader: boolean;
  548. readonly isWorker: boolean;
  549. }
  550. /** @name Operation */
  551. export interface Operation extends Null {}
  552. /** @name OperationType */
  553. export interface OperationType extends Null {}
  554. /** @name OptionalText */
  555. export interface OptionalText extends Null {}
  556. /** @name PaidMembershipTerms */
  557. export interface PaidMembershipTerms extends Struct {
  558. readonly fee: u128;
  559. readonly text: Text;
  560. }
  561. /** @name PaidTermId */
  562. export interface PaidTermId extends u64 {}
  563. /** @name ParameterizedEntity */
  564. export interface ParameterizedEntity extends Null {}
  565. /** @name ParametrizedClassPropertyValue */
  566. export interface ParametrizedClassPropertyValue extends Null {}
  567. /** @name ParametrizedPropertyValue */
  568. export interface ParametrizedPropertyValue extends Null {}
  569. /** @name Person */
  570. export interface Person extends Struct {
  571. readonly controlled_by: PersonController;
  572. }
  573. /** @name PersonActor */
  574. export interface PersonActor extends Enum {
  575. readonly isMember: boolean;
  576. readonly asMember: MemberId;
  577. readonly isCurator: boolean;
  578. readonly asCurator: CuratorId;
  579. }
  580. /** @name PersonController */
  581. export interface PersonController extends Enum {
  582. readonly isMember: boolean;
  583. readonly asMember: MemberId;
  584. readonly isCurators: boolean;
  585. }
  586. /** @name PersonCreationParameters */
  587. export interface PersonCreationParameters extends Struct {
  588. readonly assets: Vec<NewAsset>;
  589. readonly meta: Bytes;
  590. }
  591. /** @name PersonId */
  592. export interface PersonId extends u64 {}
  593. /** @name PersonUpdateParameters */
  594. export interface PersonUpdateParameters extends Struct {
  595. readonly assets: Option<Vec<NewAsset>>;
  596. readonly meta: Option<Bytes>;
  597. }
  598. /** @name Playlist */
  599. export interface Playlist extends Struct {
  600. readonly in_channel: ChannelId;
  601. }
  602. /** @name PlaylistCreationParameters */
  603. export interface PlaylistCreationParameters extends Struct {
  604. readonly meta: Bytes;
  605. }
  606. /** @name PlaylistId */
  607. export interface PlaylistId extends u64 {}
  608. /** @name PlaylistUpdateParameters */
  609. export interface PlaylistUpdateParameters extends Struct {
  610. readonly new_meta: Bytes;
  611. }
  612. /** @name Post */
  613. export interface Post extends Struct {
  614. readonly id: PostId;
  615. readonly thread_id: ThreadId;
  616. readonly nr_in_thread: u32;
  617. readonly current_text: Text;
  618. readonly moderation: Option<ModerationAction>;
  619. readonly text_change_history: Vec<PostTextChange>;
  620. readonly created_at: BlockAndTime;
  621. readonly author_id: GenericAccountId;
  622. }
  623. /** @name PostId */
  624. export interface PostId extends u64 {}
  625. /** @name PostTextChange */
  626. export interface PostTextChange extends Struct {
  627. readonly expired_at: BlockAndTime;
  628. readonly text: Text;
  629. }
  630. /** @name Principal */
  631. export interface Principal extends Null {}
  632. /** @name PrincipalId */
  633. export interface PrincipalId extends Null {}
  634. /** @name Property */
  635. export interface Property extends Null {}
  636. /** @name PropertyId */
  637. export interface PropertyId extends Null {}
  638. /** @name PropertyLockingPolicy */
  639. export interface PropertyLockingPolicy extends Null {}
  640. /** @name PropertyType */
  641. export interface PropertyType extends Null {}
  642. /** @name PropertyTypeSingle */
  643. export interface PropertyTypeSingle extends Null {}
  644. /** @name PropertyTypeVector */
  645. export interface PropertyTypeVector extends Null {}
  646. /** @name ProposalDecisionStatus */
  647. export interface ProposalDecisionStatus extends Enum {
  648. readonly isCanceled: boolean;
  649. readonly isVetoed: boolean;
  650. readonly isRejected: boolean;
  651. readonly isSlashed: boolean;
  652. readonly isExpired: boolean;
  653. readonly isApproved: boolean;
  654. readonly asApproved: Approved;
  655. }
  656. /** @name ProposalDetails */
  657. export interface ProposalDetails extends Enum {
  658. readonly isText: boolean;
  659. readonly asText: Bytes;
  660. readonly isRuntimeUpgrade: boolean;
  661. readonly asRuntimeUpgrade: Bytes;
  662. readonly isSetElectionParameters: boolean;
  663. readonly asSetElectionParameters: ElectionParameters;
  664. readonly isSpending: boolean;
  665. readonly asSpending: ITuple<[Balance, AccountId]>;
  666. readonly isSetLead: boolean;
  667. readonly asSetLead: Option<SetLeadParams>;
  668. readonly isSetContentWorkingGroupMintCapacity: boolean;
  669. readonly asSetContentWorkingGroupMintCapacity: u128;
  670. readonly isEvictStorageProvider: boolean;
  671. readonly asEvictStorageProvider: GenericAccountId;
  672. readonly isSetValidatorCount: boolean;
  673. readonly asSetValidatorCount: u32;
  674. readonly isSetStorageRoleParameters: boolean;
  675. readonly asSetStorageRoleParameters: RoleParameters;
  676. readonly isAddWorkingGroupLeaderOpening: boolean;
  677. readonly asAddWorkingGroupLeaderOpening: AddOpeningParameters;
  678. readonly isBeginReviewWorkingGroupLeaderApplication: boolean;
  679. readonly asBeginReviewWorkingGroupLeaderApplication: ITuple<[OpeningId, WorkingGroup]>;
  680. readonly isFillWorkingGroupLeaderOpening: boolean;
  681. readonly asFillWorkingGroupLeaderOpening: FillOpeningParameters;
  682. readonly isSetWorkingGroupMintCapacity: boolean;
  683. readonly asSetWorkingGroupMintCapacity: ITuple<[Balance, WorkingGroup]>;
  684. readonly isDecreaseWorkingGroupLeaderStake: boolean;
  685. readonly asDecreaseWorkingGroupLeaderStake: ITuple<[WorkerId, Balance, WorkingGroup]>;
  686. readonly isSlashWorkingGroupLeaderStake: boolean;
  687. readonly asSlashWorkingGroupLeaderStake: ITuple<[WorkerId, Balance, WorkingGroup]>;
  688. readonly isSetWorkingGroupLeaderReward: boolean;
  689. readonly asSetWorkingGroupLeaderReward: ITuple<[WorkerId, Balance, WorkingGroup]>;
  690. readonly isTerminateWorkingGroupLeaderRole: boolean;
  691. readonly asTerminateWorkingGroupLeaderRole: TerminateRoleParameters;
  692. }
  693. /** @name ProposalDetailsOf */
  694. export interface ProposalDetailsOf extends Enum {
  695. readonly isText: boolean;
  696. readonly asText: Bytes;
  697. readonly isRuntimeUpgrade: boolean;
  698. readonly asRuntimeUpgrade: Bytes;
  699. readonly isSetElectionParameters: boolean;
  700. readonly asSetElectionParameters: ElectionParameters;
  701. readonly isSpending: boolean;
  702. readonly asSpending: ITuple<[Balance, AccountId]>;
  703. readonly isSetLead: boolean;
  704. readonly asSetLead: Option<SetLeadParams>;
  705. readonly isSetContentWorkingGroupMintCapacity: boolean;
  706. readonly asSetContentWorkingGroupMintCapacity: u128;
  707. readonly isEvictStorageProvider: boolean;
  708. readonly asEvictStorageProvider: GenericAccountId;
  709. readonly isSetValidatorCount: boolean;
  710. readonly asSetValidatorCount: u32;
  711. readonly isSetStorageRoleParameters: boolean;
  712. readonly asSetStorageRoleParameters: RoleParameters;
  713. readonly isAddWorkingGroupLeaderOpening: boolean;
  714. readonly asAddWorkingGroupLeaderOpening: AddOpeningParameters;
  715. readonly isBeginReviewWorkingGroupLeaderApplication: boolean;
  716. readonly asBeginReviewWorkingGroupLeaderApplication: ITuple<[OpeningId, WorkingGroup]>;
  717. readonly isFillWorkingGroupLeaderOpening: boolean;
  718. readonly asFillWorkingGroupLeaderOpening: FillOpeningParameters;
  719. readonly isSetWorkingGroupMintCapacity: boolean;
  720. readonly asSetWorkingGroupMintCapacity: ITuple<[Balance, WorkingGroup]>;
  721. readonly isDecreaseWorkingGroupLeaderStake: boolean;
  722. readonly asDecreaseWorkingGroupLeaderStake: ITuple<[WorkerId, Balance, WorkingGroup]>;
  723. readonly isSlashWorkingGroupLeaderStake: boolean;
  724. readonly asSlashWorkingGroupLeaderStake: ITuple<[WorkerId, Balance, WorkingGroup]>;
  725. readonly isSetWorkingGroupLeaderReward: boolean;
  726. readonly asSetWorkingGroupLeaderReward: ITuple<[WorkerId, Balance, WorkingGroup]>;
  727. readonly isTerminateWorkingGroupLeaderRole: boolean;
  728. readonly asTerminateWorkingGroupLeaderRole: TerminateRoleParameters;
  729. }
  730. /** @name ProposalId */
  731. export interface ProposalId extends u32 {}
  732. /** @name ProposalOf */
  733. export interface ProposalOf extends Struct {
  734. readonly parameters: ProposalParameters;
  735. readonly proposerId: MemberId;
  736. readonly title: Bytes;
  737. readonly description: Bytes;
  738. readonly createdAt: u32;
  739. readonly status: ProposalStatus;
  740. readonly votingResults: VotingResults;
  741. }
  742. /** @name ProposalParameters */
  743. export interface ProposalParameters extends Struct {
  744. readonly votingPeriod: u32;
  745. readonly gracePeriod: u32;
  746. readonly approvalQuorumPercentage: u32;
  747. readonly approvalThresholdPercentage: u32;
  748. readonly slashingQuorumPercentage: u32;
  749. readonly slashingThresholdPercentage: u32;
  750. readonly requiredStake: Option<u128>;
  751. }
  752. /** @name ProposalStatus */
  753. export interface ProposalStatus extends Enum {
  754. readonly isActive: boolean;
  755. readonly asActive: Option<ActiveStake>;
  756. readonly isFinalized: boolean;
  757. readonly asFinalized: Finalized;
  758. }
  759. /** @name RationaleText */
  760. export interface RationaleText extends Bytes {}
  761. /** @name Recipient */
  762. export interface Recipient extends Struct {
  763. readonly total_reward_received: u128;
  764. readonly total_reward_missed: u128;
  765. }
  766. /** @name RecipientId */
  767. export interface RecipientId extends u64 {}
  768. /** @name ReferenceConstraint */
  769. export interface ReferenceConstraint extends Null {}
  770. /** @name ReferenceCounterSideEffects */
  771. export interface ReferenceCounterSideEffects extends Null {}
  772. /** @name Reply */
  773. export interface Reply extends Struct {
  774. readonly owner: GenericAccountId;
  775. readonly thread_id: ThreadId;
  776. readonly text: Text;
  777. readonly moderation: Option<ModerationAction>;
  778. }
  779. /** @name ReplyId */
  780. export interface ReplyId extends u64 {}
  781. /** @name ReviewPeriod */
  782. export interface ReviewPeriod extends Struct {
  783. readonly started_accepting_applicants_at_block: u32;
  784. readonly started_review_period_at_block: u32;
  785. }
  786. /** @name RewardPolicy */
  787. export interface RewardPolicy extends Struct {
  788. readonly amount_per_payout: u128;
  789. readonly next_payment_at_block: u32;
  790. readonly payout_interval: Option<u32>;
  791. }
  792. /** @name RewardRelationship */
  793. export interface RewardRelationship extends Struct {
  794. readonly recipient: RecipientId;
  795. readonly mint_id: MintId;
  796. readonly account: GenericAccountId;
  797. readonly amount_per_payout: u128;
  798. readonly next_payment_at_block: Option<u32>;
  799. readonly payout_interval: Option<u32>;
  800. readonly total_reward_received: u128;
  801. readonly total_reward_missed: u128;
  802. }
  803. /** @name RewardRelationshipId */
  804. export interface RewardRelationshipId extends u64 {}
  805. /** @name RoleParameters */
  806. export interface RoleParameters extends Struct {
  807. readonly min_stake: u128;
  808. readonly min_actors: u32;
  809. readonly max_actors: u32;
  810. readonly reward: u128;
  811. readonly reward_period: u32;
  812. readonly bonding_period: u32;
  813. readonly unbonding_period: u32;
  814. readonly min_service_period: u32;
  815. readonly startup_grace_period: u32;
  816. readonly entry_request_fee: u128;
  817. }
  818. /** @name RoleStakeProfile */
  819. export interface RoleStakeProfile extends Struct {
  820. readonly stake_id: StakeId;
  821. readonly termination_unstaking_period: Option<u32>;
  822. readonly exit_unstaking_period: Option<u32>;
  823. }
  824. /** @name SameController */
  825. export interface SameController extends Null {}
  826. /** @name Schema */
  827. export interface Schema extends Null {}
  828. /** @name SchemaId */
  829. export interface SchemaId extends Null {}
  830. /** @name SealedVote */
  831. export interface SealedVote extends Struct {
  832. readonly voter: GenericAccountId;
  833. readonly commitment: Hash;
  834. readonly stake: ElectionStake;
  835. readonly vote: Option<GenericAccountId>;
  836. }
  837. /** @name Season */
  838. export interface Season extends Struct {
  839. readonly episodes: Vec<VideoId>;
  840. }
  841. /** @name SeasonParameters */
  842. export interface SeasonParameters extends Struct {
  843. readonly assets: Option<Vec<NewAsset>>;
  844. readonly episodes: Option<Vec<Option<EpisodeParemters>>>;
  845. readonly meta: Option<Bytes>;
  846. }
  847. /** @name Seat */
  848. export interface Seat extends Struct {
  849. readonly member: GenericAccountId;
  850. readonly stake: u128;
  851. readonly backers: Backers;
  852. }
  853. /** @name Seats */
  854. export interface Seats extends Vec<Seat> {}
  855. /** @name Series */
  856. export interface Series extends Struct {
  857. readonly in_channel: ChannelId;
  858. readonly seasons: Vec<Season>;
  859. }
  860. /** @name SeriesId */
  861. export interface SeriesId extends u64 {}
  862. /** @name SeriesParameters */
  863. export interface SeriesParameters extends Struct {
  864. readonly assets: Option<Vec<NewAsset>>;
  865. readonly seasons: Option<Vec<Option<SeasonParameters>>>;
  866. readonly meta: Option<Bytes>;
  867. }
  868. /** @name ServiceProviderRecord */
  869. export interface ServiceProviderRecord extends Null {}
  870. /** @name SetLeadParams */
  871. export interface SetLeadParams extends ITuple<[MemberId, GenericAccountId]> {}
  872. /** @name SideEffect */
  873. export interface SideEffect extends Null {}
  874. /** @name SideEffects */
  875. export interface SideEffects extends Null {}
  876. /** @name Slash */
  877. export interface Slash extends Struct {
  878. readonly started_at_block: u32;
  879. readonly is_active: bool;
  880. readonly blocks_remaining_in_active_period_for_slashing: u32;
  881. readonly slash_amount: u128;
  882. }
  883. /** @name SlashableTerms */
  884. export interface SlashableTerms extends Struct {
  885. readonly max_count: u16;
  886. readonly max_percent_pts_per_time: u16;
  887. }
  888. /** @name SlashingTerms */
  889. export interface SlashingTerms extends Enum {
  890. readonly isUnslashable: boolean;
  891. readonly isSlashable: boolean;
  892. readonly asSlashable: SlashableTerms;
  893. }
  894. /** @name Stake */
  895. export interface Stake extends Struct {
  896. readonly created: u32;
  897. readonly staking_status: StakingStatus;
  898. }
  899. /** @name Staked */
  900. export interface Staked extends Struct {
  901. readonly staked_amount: u128;
  902. readonly staked_status: StakedStatus;
  903. readonly next_slash_id: u64;
  904. readonly ongoing_slashes: BTreeMap<u64, Slash>;
  905. }
  906. /** @name StakedStatus */
  907. export interface StakedStatus extends Enum {
  908. readonly isNormal: boolean;
  909. readonly isUnstaking: boolean;
  910. readonly asUnstaking: Unstaking;
  911. }
  912. /** @name StakeId */
  913. export interface StakeId extends u64 {}
  914. /** @name StakingAmountLimitMode */
  915. export interface StakingAmountLimitMode extends Enum {
  916. readonly isAtLeast: boolean;
  917. readonly isExact: boolean;
  918. }
  919. /** @name StakingPolicy */
  920. export interface StakingPolicy extends Struct {
  921. readonly amount: u128;
  922. readonly amount_mode: StakingAmountLimitMode;
  923. readonly crowded_out_unstaking_period_length: Option<u32>;
  924. readonly review_period_expired_unstaking_period_length: Option<u32>;
  925. }
  926. /** @name StakingStatus */
  927. export interface StakingStatus extends Enum {
  928. readonly isNotStaked: boolean;
  929. readonly isStaked: boolean;
  930. readonly asStaked: Staked;
  931. }
  932. /** @name Status */
  933. export interface Status extends Null {}
  934. /** @name StorageObjectOwner */
  935. export interface StorageObjectOwner extends Enum {
  936. readonly isMember: boolean;
  937. readonly asMember: MemberId;
  938. readonly isChannel: boolean;
  939. readonly asChannel: ChannelId;
  940. readonly isDao: boolean;
  941. readonly asDao: DAOId;
  942. readonly isCouncil: boolean;
  943. readonly isWorkingGroup: boolean;
  944. readonly asWorkingGroup: WorkingGroup;
  945. }
  946. /** @name StorageProviderId */
  947. export interface StorageProviderId extends u64 {}
  948. /** @name StoredPropertyValue */
  949. export interface StoredPropertyValue extends Null {}
  950. /** @name StoredValue */
  951. export interface StoredValue extends Null {}
  952. /** @name SubscriptionId */
  953. export interface SubscriptionId extends u64 {}
  954. /** @name TerminateRoleParameters */
  955. export interface TerminateRoleParameters extends Struct {
  956. readonly worker_id: WorkerId;
  957. readonly rationale: Bytes;
  958. readonly slash: bool;
  959. readonly working_group: WorkingGroup;
  960. }
  961. /** @name TextMaxLength */
  962. export interface TextMaxLength extends Null {}
  963. /** @name Thread */
  964. export interface Thread extends Struct {
  965. readonly id: ThreadId;
  966. readonly title: Text;
  967. readonly category_id: CategoryId;
  968. readonly nr_in_category: u32;
  969. readonly moderation: Option<ModerationAction>;
  970. readonly num_unmoderated_posts: u32;
  971. readonly num_moderated_posts: u32;
  972. readonly created_at: BlockAndTime;
  973. readonly author_id: GenericAccountId;
  974. }
  975. /** @name ThreadCounter */
  976. export interface ThreadCounter extends Struct {
  977. readonly author_id: MemberId;
  978. readonly counter: u32;
  979. }
  980. /** @name ThreadId */
  981. export interface ThreadId extends u64 {}
  982. /** @name TransferableStake */
  983. export interface TransferableStake extends Struct {
  984. readonly seat: u128;
  985. readonly backing: u128;
  986. }
  987. /** @name Unstaking */
  988. export interface Unstaking extends Struct {
  989. readonly started_at_block: u32;
  990. readonly is_active: bool;
  991. readonly blocks_remaining_in_active_period_for_unstaking: u32;
  992. }
  993. /** @name UnstakingApplicationStage */
  994. export interface UnstakingApplicationStage extends Struct {
  995. readonly deactivation_initiated: u32;
  996. readonly cause: ApplicationDeactivationCause;
  997. }
  998. /** @name UpdatePropertyValuesOperation */
  999. export interface UpdatePropertyValuesOperation extends Null {}
  1000. /** @name UploadingStatus */
  1001. export interface UploadingStatus extends bool {}
  1002. /** @name Url */
  1003. export interface Url extends Text {}
  1004. /** @name VecInputValue */
  1005. export interface VecInputValue extends Null {}
  1006. /** @name VecMaxLength */
  1007. export interface VecMaxLength extends Null {}
  1008. /** @name VecStoredPropertyValue */
  1009. export interface VecStoredPropertyValue extends Null {}
  1010. /** @name VecStoredValue */
  1011. export interface VecStoredValue extends Null {}
  1012. /** @name Video */
  1013. export interface Video extends Struct {
  1014. readonly in_channel: ChannelId;
  1015. readonly in_series: Option<SeriesId>;
  1016. readonly is_censored: bool;
  1017. }
  1018. /** @name VideoCategory */
  1019. export interface VideoCategory extends Struct {}
  1020. /** @name VideoCategoryCreationParameters */
  1021. export interface VideoCategoryCreationParameters extends Struct {
  1022. readonly meta: Bytes;
  1023. }
  1024. /** @name VideoCategoryId */
  1025. export interface VideoCategoryId extends u64 {}
  1026. /** @name VideoCategoryUpdateParameters */
  1027. export interface VideoCategoryUpdateParameters extends Struct {
  1028. readonly new_meta: Bytes;
  1029. }
  1030. /** @name VideoCreationParameters */
  1031. export interface VideoCreationParameters extends Struct {
  1032. readonly assets: Vec<NewAsset>;
  1033. readonly meta: Bytes;
  1034. }
  1035. /** @name VideoId */
  1036. export interface VideoId extends u64 {}
  1037. /** @name VideoUpdateParameters */
  1038. export interface VideoUpdateParameters extends Struct {
  1039. readonly assets: Option<Vec<NewAsset>>;
  1040. readonly new_meta: Option<Bytes>;
  1041. }
  1042. /** @name VoteKind */
  1043. export interface VoteKind extends Enum {
  1044. readonly isApprove: boolean;
  1045. readonly isReject: boolean;
  1046. readonly isSlash: boolean;
  1047. readonly isAbstain: boolean;
  1048. }
  1049. /** @name VotingResults */
  1050. export interface VotingResults extends Struct {
  1051. readonly abstensions: u32;
  1052. readonly approvals: u32;
  1053. readonly rejections: u32;
  1054. readonly slashes: u32;
  1055. }
  1056. /** @name Voucher */
  1057. export interface Voucher extends Struct {
  1058. readonly size_limit: u64;
  1059. readonly objects_limit: u64;
  1060. readonly size_used: u64;
  1061. readonly objects_used: u64;
  1062. }
  1063. /** @name VoucherLimit */
  1064. export interface VoucherLimit extends u64 {}
  1065. /** @name WaitingToBeingOpeningStageVariant */
  1066. export interface WaitingToBeingOpeningStageVariant extends Struct {
  1067. readonly begins_at_block: u32;
  1068. }
  1069. /** @name WorkerId */
  1070. export interface WorkerId extends u64 {}
  1071. /** @name WorkerOf */
  1072. export interface WorkerOf extends Struct {
  1073. readonly member_id: MemberId;
  1074. readonly role_account_id: GenericAccountId;
  1075. readonly reward_relationship: Option<RewardRelationshipId>;
  1076. readonly role_stake_profile: Option<RoleStakeProfile>;
  1077. }
  1078. /** @name WorkingGroup */
  1079. export interface WorkingGroup extends Enum {
  1080. readonly isStorage: boolean;
  1081. readonly isContent: boolean;
  1082. readonly isOperations: boolean;
  1083. readonly isGateway: boolean;
  1084. }
  1085. /** @name WorkingGroupUnstaker */
  1086. export interface WorkingGroupUnstaker extends Null {}
  1087. export type PHANTOM_ALL = 'all';