types.ts 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539
  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, Vec, bool, i16, i32, i64, 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 Enum {
  40. readonly isCurator: boolean;
  41. readonly asCurator: ITuple<[CuratorGroupId, u64]>;
  42. readonly isMember: boolean;
  43. readonly asMember: MemberId;
  44. readonly isLead: boolean;
  45. }
  46. /** @name ActorId */
  47. export interface ActorId extends u64 {}
  48. /** @name AddOpeningParameters */
  49. export interface AddOpeningParameters extends Struct {
  50. readonly activate_at: ActivateOpeningAt;
  51. readonly commitment: WorkingGroupOpeningPolicyCommitment;
  52. readonly human_readable_text: Bytes;
  53. readonly working_group: WorkingGroup;
  54. }
  55. /** @name Address */
  56. export interface Address extends AccountId {}
  57. /** @name AddSchemaSupportToEntityOperation */
  58. export interface AddSchemaSupportToEntityOperation extends Struct {
  59. readonly entity_id: ParameterizedEntity;
  60. readonly schema_id: SchemaId;
  61. readonly parametrized_property_values: Vec<ParametrizedClassPropertyValue>;
  62. }
  63. /** @name AdjustCapacityBy */
  64. export interface AdjustCapacityBy extends Enum {
  65. readonly isSetting: boolean;
  66. readonly asSetting: u128;
  67. readonly isAdding: boolean;
  68. readonly asAdding: u128;
  69. readonly isReducing: boolean;
  70. readonly asReducing: u128;
  71. }
  72. /** @name AdjustOnInterval */
  73. export interface AdjustOnInterval extends Struct {
  74. readonly block_interval: u32;
  75. readonly adjustment_type: AdjustCapacityBy;
  76. }
  77. /** @name Application */
  78. export interface Application extends Struct {
  79. readonly opening_id: OpeningId;
  80. readonly application_index_in_opening: u32;
  81. readonly add_to_opening_in_block: u32;
  82. readonly active_role_staking_id: Option<StakeId>;
  83. readonly active_application_staking_id: Option<StakeId>;
  84. readonly stage: ApplicationStage;
  85. readonly human_readable_text: Text;
  86. }
  87. /** @name ApplicationDeactivationCause */
  88. export interface ApplicationDeactivationCause extends Enum {
  89. readonly isExternal: boolean;
  90. readonly isHired: boolean;
  91. readonly isNotHired: boolean;
  92. readonly isCrowdedOut: boolean;
  93. readonly isOpeningCancelled: boolean;
  94. readonly isReviewPeriodExpired: boolean;
  95. readonly isOpeningFilled: boolean;
  96. }
  97. /** @name ApplicationId */
  98. export interface ApplicationId extends u64 {}
  99. /** @name ApplicationIdSet */
  100. export interface ApplicationIdSet extends BTreeSet<ApplicationId> {}
  101. /** @name ApplicationIdToWorkerIdMap */
  102. export interface ApplicationIdToWorkerIdMap extends BTreeMap<ApplicationId, WorkerId> {}
  103. /** @name ApplicationOf */
  104. export interface ApplicationOf extends Struct {
  105. readonly role_account_id: GenericAccountId;
  106. readonly opening_id: OpeningId;
  107. readonly member_id: MemberId;
  108. readonly application_id: ApplicationId;
  109. }
  110. /** @name ApplicationRationingPolicy */
  111. export interface ApplicationRationingPolicy extends Struct {
  112. readonly max_active_applicants: u32;
  113. }
  114. /** @name ApplicationStage */
  115. export interface ApplicationStage extends Enum {
  116. readonly isActive: boolean;
  117. readonly isUnstaking: boolean;
  118. readonly asUnstaking: UnstakingApplicationStage;
  119. readonly isInactive: boolean;
  120. readonly asInactive: InactiveApplicationStage;
  121. }
  122. /** @name Approved */
  123. export interface Approved extends Enum {
  124. readonly isPendingExecution: boolean;
  125. readonly isExecuted: boolean;
  126. readonly isExecutionFailed: boolean;
  127. readonly asExecutionFailed: ExecutionFailed;
  128. }
  129. /** @name Backer */
  130. export interface Backer extends Struct {
  131. readonly member: GenericAccountId;
  132. readonly stake: u128;
  133. }
  134. /** @name Backers */
  135. export interface Backers extends Vec<Backer> {}
  136. /** @name Bag */
  137. export interface Bag extends Struct {
  138. readonly objects: BTreeMap<DataObjectId, DataObject>;
  139. readonly stored_by: StorageBucketIdSet;
  140. readonly distributed_by: Vec<DistributionBucketId>;
  141. readonly deletion_prize: Option<u128>;
  142. }
  143. /** @name BagId */
  144. export interface BagId extends Enum {
  145. readonly isStatic: boolean;
  146. readonly asStatic: Static;
  147. readonly isDynamic: boolean;
  148. readonly asDynamic: Dynamic;
  149. }
  150. /** @name BagIdType */
  151. export interface BagIdType extends Enum {
  152. readonly isStatic: boolean;
  153. readonly asStatic: Static;
  154. readonly isDynamic: boolean;
  155. readonly asDynamic: Dynamic;
  156. }
  157. /** @name BalanceOfMint */
  158. export interface BalanceOfMint extends u128 {}
  159. /** @name BlockAndTime */
  160. export interface BlockAndTime extends Struct {
  161. readonly block: u32;
  162. readonly time: u64;
  163. }
  164. /** @name Category */
  165. export interface Category extends Struct {
  166. readonly id: CategoryId;
  167. readonly title: Text;
  168. readonly description: Text;
  169. readonly created_at: BlockAndTime;
  170. readonly deleted: bool;
  171. readonly archived: bool;
  172. readonly num_direct_subcategories: u32;
  173. readonly num_direct_unmoderated_threads: u32;
  174. readonly num_direct_moderated_threads: u32;
  175. readonly position_in_parent_category: Option<ChildPositionInParentCategory>;
  176. readonly moderator_id: GenericAccountId;
  177. }
  178. /** @name CategoryId */
  179. export interface CategoryId extends u64 {}
  180. /** @name Channel */
  181. export interface Channel extends Struct {
  182. readonly verified: bool;
  183. readonly handle: Text;
  184. readonly title: OptionalText;
  185. readonly description: OptionalText;
  186. readonly avatar: OptionalText;
  187. readonly banner: OptionalText;
  188. readonly content: ChannelContentType;
  189. readonly owner: MemberId;
  190. readonly role_account: GenericAccountId;
  191. readonly publication_status: ChannelPublicationStatus;
  192. readonly curation_status: ChannelCurationStatus;
  193. readonly created: u32;
  194. readonly principal_id: PrincipalId;
  195. }
  196. /** @name ChannelContentType */
  197. export interface ChannelContentType extends Enum {
  198. readonly isVideo: boolean;
  199. readonly isMusic: boolean;
  200. readonly isEbook: boolean;
  201. }
  202. /** @name ChannelCurationStatus */
  203. export interface ChannelCurationStatus extends Enum {
  204. readonly isNormal: boolean;
  205. readonly isCensored: boolean;
  206. }
  207. /** @name ChannelId */
  208. export interface ChannelId extends u64 {}
  209. /** @name ChannelPublicationStatus */
  210. export interface ChannelPublicationStatus extends Enum {
  211. readonly isPublic: boolean;
  212. readonly isUnlisted: boolean;
  213. }
  214. /** @name ChildPositionInParentCategory */
  215. export interface ChildPositionInParentCategory extends Struct {
  216. readonly parent_id: CategoryId;
  217. readonly child_nr_in_parent_category: u32;
  218. }
  219. /** @name Cid */
  220. export interface Cid extends Bytes {}
  221. /** @name Class */
  222. export interface Class extends Struct {
  223. readonly class_permissions: ClassPermissions;
  224. readonly properties: Vec<Property>;
  225. readonly schemas: Vec<Schema>;
  226. readonly name: Text;
  227. readonly description: Text;
  228. readonly maximum_entities_count: EntityId;
  229. readonly current_number_of_entities: EntityId;
  230. readonly default_entity_creation_voucher_upper_bound: EntityId;
  231. }
  232. /** @name ClassId */
  233. export interface ClassId extends u64 {}
  234. /** @name ClassOf */
  235. export interface ClassOf extends Struct {
  236. readonly class_permissions: ClassPermissions;
  237. readonly properties: Vec<Property>;
  238. readonly schemas: Vec<Schema>;
  239. readonly name: Text;
  240. readonly description: Text;
  241. readonly maximum_entities_count: EntityId;
  242. readonly current_number_of_entities: EntityId;
  243. readonly default_entity_creation_voucher_upper_bound: EntityId;
  244. }
  245. /** @name ClassPermissions */
  246. export interface ClassPermissions extends Struct {
  247. readonly any_member: bool;
  248. readonly entity_creation_blocked: bool;
  249. readonly all_entity_property_values_locked: bool;
  250. readonly maintainers: Vec<CuratorGroupId>;
  251. }
  252. /** @name ClassPermissionsType */
  253. export interface ClassPermissionsType extends Null {}
  254. /** @name ClassPropertyValue */
  255. export interface ClassPropertyValue extends Null {}
  256. /** @name ContentIdSet */
  257. export interface ContentIdSet extends BTreeSet<Cid> {}
  258. /** @name CreateEntityOperation */
  259. export interface CreateEntityOperation extends Struct {
  260. readonly class_id: ClassId;
  261. }
  262. /** @name Credential */
  263. export interface Credential extends u64 {}
  264. /** @name CredentialSet */
  265. export interface CredentialSet extends BTreeSet<Credential> {}
  266. /** @name CurationActor */
  267. export interface CurationActor extends Enum {
  268. readonly isLead: boolean;
  269. readonly isCurator: boolean;
  270. readonly asCurator: CuratorId;
  271. }
  272. /** @name Curator */
  273. export interface Curator extends Struct {
  274. readonly role_account: GenericAccountId;
  275. readonly reward_relationship: Option<RewardRelationshipId>;
  276. readonly role_stake_profile: Option<CuratorRoleStakeProfile>;
  277. readonly stage: CuratorRoleStage;
  278. readonly induction: CuratorInduction;
  279. readonly principal_id: PrincipalId;
  280. }
  281. /** @name CuratorApplication */
  282. export interface CuratorApplication extends Struct {
  283. readonly role_account: GenericAccountId;
  284. readonly curator_opening_id: CuratorOpeningId;
  285. readonly member_id: MemberId;
  286. readonly application_id: ApplicationId;
  287. }
  288. /** @name CuratorApplicationId */
  289. export interface CuratorApplicationId extends u64 {}
  290. /** @name CuratorApplicationIdSet */
  291. export interface CuratorApplicationIdSet extends BTreeSet<CuratorApplicationId> {}
  292. /** @name CuratorApplicationIdToCuratorIdMap */
  293. export interface CuratorApplicationIdToCuratorIdMap extends BTreeMap<ApplicationId, CuratorId> {}
  294. /** @name CuratorExitInitiationOrigin */
  295. export interface CuratorExitInitiationOrigin extends Enum {
  296. readonly isLead: boolean;
  297. readonly isCurator: boolean;
  298. }
  299. /** @name CuratorExitSummary */
  300. export interface CuratorExitSummary extends Struct {
  301. readonly origin: CuratorExitInitiationOrigin;
  302. readonly initiated_at_block_number: u32;
  303. readonly rationale_text: Text;
  304. }
  305. /** @name CuratorGroup */
  306. export interface CuratorGroup extends Struct {
  307. readonly curators: Vec<u64>;
  308. readonly active: bool;
  309. readonly number_of_classes_maintained: u32;
  310. }
  311. /** @name CuratorGroupId */
  312. export interface CuratorGroupId extends u64 {}
  313. /** @name CuratorId */
  314. export interface CuratorId extends u64 {}
  315. /** @name CuratorInduction */
  316. export interface CuratorInduction extends Struct {
  317. readonly lead: LeadId;
  318. readonly curator_application_id: CuratorApplicationId;
  319. readonly at_block: u32;
  320. }
  321. /** @name CuratorOpening */
  322. export interface CuratorOpening extends Struct {
  323. readonly opening_id: OpeningId;
  324. readonly curator_applications: Vec<CuratorApplicationId>;
  325. readonly policy_commitment: OpeningPolicyCommitment;
  326. }
  327. /** @name CuratorOpeningId */
  328. export interface CuratorOpeningId extends u64 {}
  329. /** @name CuratorRoleStage */
  330. export interface CuratorRoleStage extends Enum {
  331. readonly isActive: boolean;
  332. readonly isUnstaking: boolean;
  333. readonly asUnstaking: CuratorExitSummary;
  334. readonly isExited: boolean;
  335. readonly asExited: CuratorExitSummary;
  336. }
  337. /** @name CuratorRoleStakeProfile */
  338. export interface CuratorRoleStakeProfile extends Struct {
  339. readonly stake_id: StakeId;
  340. readonly termination_unstaking_period: Option<u32>;
  341. readonly exit_unstaking_period: Option<u32>;
  342. }
  343. /** @name DataObject */
  344. export interface DataObject extends Struct {
  345. readonly accepted: bool;
  346. readonly deletion_prize: u128;
  347. }
  348. /** @name DataObjectCreationParameters */
  349. export interface DataObjectCreationParameters extends Struct {
  350. readonly ipfsContentId: Bytes;
  351. }
  352. /** @name DataObjectId */
  353. export interface DataObjectId extends u64 {}
  354. /** @name DataObjectIdSet */
  355. export interface DataObjectIdSet extends BTreeSet<DataObjectId> {}
  356. /** @name Deactivated */
  357. export interface Deactivated extends Struct {
  358. readonly cause: OpeningDeactivationCause;
  359. readonly deactivated_at_block: u32;
  360. readonly started_accepting_applicants_at_block: u32;
  361. readonly started_review_period_at_block: Option<u32>;
  362. }
  363. /** @name DiscussionPost */
  364. export interface DiscussionPost extends Struct {
  365. readonly text: Bytes;
  366. readonly created_at: u32;
  367. readonly updated_at: u32;
  368. readonly author_id: MemberId;
  369. readonly thread_id: ThreadId;
  370. readonly edition_number: u32;
  371. }
  372. /** @name DiscussionThread */
  373. export interface DiscussionThread extends Struct {
  374. readonly title: Bytes;
  375. readonly created_at: u32;
  376. readonly author_id: MemberId;
  377. }
  378. /** @name DistributionBucket */
  379. export interface DistributionBucket extends Struct {
  380. readonly accepting_new_bags: bool;
  381. readonly distributing: bool;
  382. readonly pending_invitations: Vec<WorkerId>;
  383. readonly operators: Vec<WorkerId>;
  384. readonly assigned_bags: u64;
  385. }
  386. /** @name DistributionBucketFamily */
  387. export interface DistributionBucketFamily extends Struct {
  388. readonly distribution_buckets: BTreeMap<DistributionBucketId, DistributionBucket>;
  389. }
  390. /** @name DistributionBucketFamilyId */
  391. export interface DistributionBucketFamilyId extends u64 {}
  392. /** @name DistributionBucketId */
  393. export interface DistributionBucketId extends u64 {}
  394. /** @name Dynamic */
  395. export interface Dynamic extends Enum {
  396. readonly isMember: boolean;
  397. readonly asMember: MemberId;
  398. readonly isChannel: boolean;
  399. readonly asChannel: u64;
  400. }
  401. /** @name DynamicBagCreationPolicy */
  402. export interface DynamicBagCreationPolicy extends Struct {
  403. readonly numberOfStorageBuckets: u64;
  404. }
  405. /** @name DynamicBagDeletionPrize */
  406. export interface DynamicBagDeletionPrize extends Struct {
  407. readonly account_id: GenericAccountId;
  408. readonly prize: u128;
  409. }
  410. /** @name DynamicBagDeletionPrizeRecord */
  411. export interface DynamicBagDeletionPrizeRecord extends Struct {
  412. readonly account_id: GenericAccountId;
  413. readonly prize: u128;
  414. }
  415. /** @name DynamicBagId */
  416. export interface DynamicBagId extends Enum {
  417. readonly isMember: boolean;
  418. readonly asMember: MemberId;
  419. readonly isChannel: boolean;
  420. readonly asChannel: u64;
  421. }
  422. /** @name DynamicBagType */
  423. export interface DynamicBagType extends Enum {
  424. readonly isMember: boolean;
  425. readonly isChannel: boolean;
  426. }
  427. /** @name ElectionParameters */
  428. export interface ElectionParameters extends Struct {
  429. readonly announcing_period: u32;
  430. readonly voting_period: u32;
  431. readonly revealing_period: u32;
  432. readonly council_size: u32;
  433. readonly candidacy_limit: u32;
  434. readonly new_term_duration: u32;
  435. readonly min_council_stake: u128;
  436. readonly min_voting_stake: u128;
  437. }
  438. /** @name ElectionStage */
  439. export interface ElectionStage extends Enum {
  440. readonly isAnnouncing: boolean;
  441. readonly asAnnouncing: u32;
  442. readonly isVoting: boolean;
  443. readonly asVoting: u32;
  444. readonly isRevealing: boolean;
  445. readonly asRevealing: u32;
  446. }
  447. /** @name ElectionStake */
  448. export interface ElectionStake extends Struct {
  449. readonly new: u128;
  450. readonly transferred: u128;
  451. }
  452. /** @name Entity */
  453. export interface Entity extends Struct {
  454. readonly entity_permissions: EntityPermissions;
  455. readonly class_id: ClassId;
  456. readonly supported_schemas: Vec<SchemaId>;
  457. readonly reference_counter: InboundReferenceCounter;
  458. }
  459. /** @name EntityController */
  460. export interface EntityController extends Enum {
  461. readonly isMaintainers: boolean;
  462. readonly isMember: boolean;
  463. readonly asMember: MemberId;
  464. readonly isLead: boolean;
  465. }
  466. /** @name EntityCreationVoucher */
  467. export interface EntityCreationVoucher extends Struct {
  468. readonly maximum_entities_count: EntityId;
  469. readonly entities_created: EntityId;
  470. }
  471. /** @name EntityId */
  472. export interface EntityId extends u64 {}
  473. /** @name EntityOf */
  474. export interface EntityOf extends Struct {
  475. readonly entity_permissions: EntityPermissions;
  476. readonly class_id: ClassId;
  477. readonly supported_schemas: Vec<SchemaId>;
  478. readonly reference_counter: InboundReferenceCounter;
  479. }
  480. /** @name EntityPermissions */
  481. export interface EntityPermissions extends Struct {
  482. readonly controller: EntityController;
  483. readonly frozen: bool;
  484. readonly referenceable: bool;
  485. }
  486. /** @name EntityReferenceCounterSideEffect */
  487. export interface EntityReferenceCounterSideEffect extends Struct {
  488. readonly total: i32;
  489. readonly same_owner: i32;
  490. }
  491. /** @name EntryMethod */
  492. export interface EntryMethod extends Enum {
  493. readonly isPaid: boolean;
  494. readonly asPaid: u64;
  495. readonly isScreening: boolean;
  496. readonly asScreening: AccountId;
  497. readonly isGenesis: boolean;
  498. }
  499. /** @name ExecutionFailed */
  500. export interface ExecutionFailed extends Struct {
  501. readonly error: Text;
  502. }
  503. /** @name ExitedLeadRole */
  504. export interface ExitedLeadRole extends Struct {
  505. readonly initiated_at_block_number: u32;
  506. }
  507. /** @name FailedAt */
  508. export interface FailedAt extends u32 {}
  509. /** @name FillOpeningParameters */
  510. export interface FillOpeningParameters extends Struct {
  511. readonly opening_id: OpeningId;
  512. readonly successful_application_id: ApplicationId;
  513. readonly reward_policy: Option<RewardPolicy>;
  514. readonly working_group: WorkingGroup;
  515. }
  516. /** @name Finalized */
  517. export interface Finalized extends Struct {
  518. readonly proposalStatus: ProposalDecisionStatus;
  519. readonly finalizedAt: u32;
  520. readonly encodedUnstakingErrorDueToBrokenRuntime: Option<Bytes>;
  521. readonly stakeDataAfterUnstakingError: Option<ActiveStake>;
  522. }
  523. /** @name HashedTextMaxLength */
  524. export interface HashedTextMaxLength extends Option<u16> {}
  525. /** @name HiringApplicationId */
  526. export interface HiringApplicationId extends u64 {}
  527. /** @name InactiveApplicationStage */
  528. export interface InactiveApplicationStage extends Struct {
  529. readonly deactivation_initiated: u32;
  530. readonly deactivated: u32;
  531. readonly cause: ApplicationDeactivationCause;
  532. }
  533. /** @name InboundReferenceCounter */
  534. export interface InboundReferenceCounter extends Struct {
  535. readonly total: u32;
  536. readonly same_owner: u32;
  537. }
  538. /** @name InputEntityValuesMap */
  539. export interface InputEntityValuesMap extends BTreeMap<PropertyId, InputPropertyValue> {}
  540. /** @name InputPropertyValue */
  541. export interface InputPropertyValue extends Enum {
  542. readonly isSingle: boolean;
  543. readonly asSingle: InputValue;
  544. readonly isVector: boolean;
  545. readonly asVector: VecInputValue;
  546. }
  547. /** @name InputValidationLengthConstraint */
  548. export interface InputValidationLengthConstraint extends Struct {
  549. readonly min: u16;
  550. readonly max_min_diff: u16;
  551. }
  552. /** @name InputValue */
  553. export interface InputValue extends Enum {
  554. readonly isBool: boolean;
  555. readonly asBool: bool;
  556. readonly isUint16: boolean;
  557. readonly asUint16: u16;
  558. readonly isUint32: boolean;
  559. readonly asUint32: u32;
  560. readonly isUint64: boolean;
  561. readonly asUint64: u64;
  562. readonly isInt16: boolean;
  563. readonly asInt16: i16;
  564. readonly isInt32: boolean;
  565. readonly asInt32: i32;
  566. readonly isInt64: boolean;
  567. readonly asInt64: i64;
  568. readonly isText: boolean;
  569. readonly asText: Text;
  570. readonly isTextToHash: boolean;
  571. readonly asTextToHash: Text;
  572. readonly isReference: boolean;
  573. readonly asReference: EntityId;
  574. }
  575. /** @name IPNSIdentity */
  576. export interface IPNSIdentity extends Text {}
  577. /** @name Lead */
  578. export interface Lead extends Struct {
  579. readonly member_id: MemberId;
  580. readonly role_account: GenericAccountId;
  581. readonly reward_relationship: Option<RewardRelationshipId>;
  582. readonly inducted: u32;
  583. readonly stage: LeadRoleState;
  584. }
  585. /** @name LeadId */
  586. export interface LeadId extends u64 {}
  587. /** @name LeadRoleState */
  588. export interface LeadRoleState extends Enum {
  589. readonly isActive: boolean;
  590. readonly isExited: boolean;
  591. readonly asExited: ExitedLeadRole;
  592. }
  593. /** @name LookupSource */
  594. export interface LookupSource extends AccountId {}
  595. /** @name MemberId */
  596. export interface MemberId extends u64 {}
  597. /** @name Membership */
  598. export interface Membership extends Struct {
  599. readonly handle: Text;
  600. readonly avatar_uri: Text;
  601. readonly about: Text;
  602. readonly registered_at_block: u32;
  603. readonly registered_at_time: u64;
  604. readonly entry: EntryMethod;
  605. readonly suspended: bool;
  606. readonly subscription: Option<SubscriptionId>;
  607. readonly root_account: GenericAccountId;
  608. readonly controller_account: GenericAccountId;
  609. }
  610. /** @name MemoText */
  611. export interface MemoText extends Text {}
  612. /** @name Mint */
  613. export interface Mint extends Struct {
  614. readonly capacity: u128;
  615. readonly next_adjustment: Option<NextAdjustment>;
  616. readonly created_at: u32;
  617. readonly total_minted: u128;
  618. }
  619. /** @name MintBalanceOf */
  620. export interface MintBalanceOf extends u128 {}
  621. /** @name MintId */
  622. export interface MintId extends u64 {}
  623. /** @name ModerationAction */
  624. export interface ModerationAction extends Struct {
  625. readonly moderated_at: BlockAndTime;
  626. readonly moderator_id: GenericAccountId;
  627. readonly rationale: Text;
  628. }
  629. /** @name NextAdjustment */
  630. export interface NextAdjustment extends Struct {
  631. readonly adjustment: AdjustOnInterval;
  632. readonly at_block: u32;
  633. }
  634. /** @name Nonce */
  635. export interface Nonce extends u64 {}
  636. /** @name Opening */
  637. export interface Opening extends Struct {
  638. readonly created: u32;
  639. readonly stage: OpeningStage;
  640. readonly max_review_period_length: u32;
  641. readonly application_rationing_policy: Option<ApplicationRationingPolicy>;
  642. readonly application_staking_policy: Option<StakingPolicy>;
  643. readonly role_staking_policy: Option<StakingPolicy>;
  644. readonly human_readable_text: Text;
  645. }
  646. /** @name OpeningDeactivationCause */
  647. export interface OpeningDeactivationCause extends Enum {
  648. readonly isCancelledBeforeActivation: boolean;
  649. readonly isCancelledAcceptingApplications: boolean;
  650. readonly isCancelledInReviewPeriod: boolean;
  651. readonly isReviewPeriodExpired: boolean;
  652. readonly isFilled: boolean;
  653. }
  654. /** @name OpeningId */
  655. export interface OpeningId extends u64 {}
  656. /** @name OpeningOf */
  657. export interface OpeningOf extends Struct {
  658. readonly hiring_opening_id: OpeningId;
  659. readonly applications: Vec<ApplicationId>;
  660. readonly policy_commitment: WorkingGroupOpeningPolicyCommitment;
  661. readonly opening_type: OpeningType;
  662. }
  663. /** @name OpeningPolicyCommitment */
  664. export interface OpeningPolicyCommitment extends Struct {
  665. readonly application_rationing_policy: Option<ApplicationRationingPolicy>;
  666. readonly max_review_period_length: u32;
  667. readonly application_staking_policy: Option<StakingPolicy>;
  668. readonly role_staking_policy: Option<StakingPolicy>;
  669. readonly role_slashing_terms: SlashingTerms;
  670. readonly fill_opening_successful_applicant_application_stake_unstaking_period: Option<u32>;
  671. readonly fill_opening_failed_applicant_application_stake_unstaking_period: Option<u32>;
  672. readonly fill_opening_failed_applicant_role_stake_unstaking_period: Option<u32>;
  673. readonly terminate_curator_application_stake_unstaking_period: Option<u32>;
  674. readonly terminate_curator_role_stake_unstaking_period: Option<u32>;
  675. readonly exit_curator_role_application_stake_unstaking_period: Option<u32>;
  676. readonly exit_curator_role_stake_unstaking_period: Option<u32>;
  677. }
  678. /** @name OpeningStage */
  679. export interface OpeningStage extends Enum {
  680. readonly isWaitingToBegin: boolean;
  681. readonly asWaitingToBegin: WaitingToBeingOpeningStageVariant;
  682. readonly isActive: boolean;
  683. readonly asActive: ActiveOpeningStageVariant;
  684. }
  685. /** @name OpeningType */
  686. export interface OpeningType extends Enum {
  687. readonly isLeader: boolean;
  688. readonly isWorker: boolean;
  689. }
  690. /** @name Operation */
  691. export interface Operation extends Null {}
  692. /** @name OperationType */
  693. export interface OperationType extends Enum {
  694. readonly isCreateEntity: boolean;
  695. readonly asCreateEntity: CreateEntityOperation;
  696. readonly isUpdatePropertyValues: boolean;
  697. readonly asUpdatePropertyValues: UpdatePropertyValuesOperation;
  698. readonly isAddSchemaSupportToEntity: boolean;
  699. readonly asAddSchemaSupportToEntity: AddSchemaSupportToEntityOperation;
  700. }
  701. /** @name OptionalText */
  702. export interface OptionalText extends Option<Text> {}
  703. /** @name PaidMembershipTerms */
  704. export interface PaidMembershipTerms extends Struct {
  705. readonly fee: u128;
  706. readonly text: Text;
  707. }
  708. /** @name PaidTermId */
  709. export interface PaidTermId extends u64 {}
  710. /** @name ParameterizedEntity */
  711. export interface ParameterizedEntity extends Enum {
  712. readonly isInternalEntityJustAdded: boolean;
  713. readonly asInternalEntityJustAdded: u32;
  714. readonly isExistingEntity: boolean;
  715. readonly asExistingEntity: EntityId;
  716. }
  717. /** @name ParametrizedClassPropertyValue */
  718. export interface ParametrizedClassPropertyValue extends Struct {
  719. readonly in_class_index: PropertyId;
  720. readonly value: ParametrizedPropertyValue;
  721. }
  722. /** @name ParametrizedPropertyValue */
  723. export interface ParametrizedPropertyValue extends Enum {
  724. readonly isInputPropertyValue: boolean;
  725. readonly asInputPropertyValue: InputPropertyValue;
  726. readonly isInternalEntityJustAdded: boolean;
  727. readonly asInternalEntityJustAdded: u32;
  728. readonly isInternalEntityVec: boolean;
  729. readonly asInternalEntityVec: Vec<ParameterizedEntity>;
  730. }
  731. /** @name Post */
  732. export interface Post extends Struct {
  733. readonly id: PostId;
  734. readonly thread_id: ThreadId;
  735. readonly nr_in_thread: u32;
  736. readonly current_text: Text;
  737. readonly moderation: Option<ModerationAction>;
  738. readonly text_change_history: Vec<PostTextChange>;
  739. readonly created_at: BlockAndTime;
  740. readonly author_id: GenericAccountId;
  741. }
  742. /** @name PostId */
  743. export interface PostId extends u64 {}
  744. /** @name PostTextChange */
  745. export interface PostTextChange extends Struct {
  746. readonly expired_at: BlockAndTime;
  747. readonly text: Text;
  748. }
  749. /** @name Principal */
  750. export interface Principal extends Enum {
  751. readonly isLead: boolean;
  752. readonly isCurator: boolean;
  753. readonly asCurator: CuratorId;
  754. readonly isChannelOwner: boolean;
  755. readonly asChannelOwner: ChannelId;
  756. }
  757. /** @name PrincipalId */
  758. export interface PrincipalId extends u64 {}
  759. /** @name Property */
  760. export interface Property extends Struct {
  761. readonly property_type: PropertyType;
  762. readonly required: bool;
  763. readonly unique: bool;
  764. readonly name: Text;
  765. readonly description: Text;
  766. readonly locking_policy: PropertyLockingPolicy;
  767. }
  768. /** @name PropertyId */
  769. export interface PropertyId extends u16 {}
  770. /** @name PropertyLockingPolicy */
  771. export interface PropertyLockingPolicy extends Struct {
  772. readonly is_locked_from_maintainer: bool;
  773. readonly is_locked_from_controller: bool;
  774. }
  775. /** @name PropertyType */
  776. export interface PropertyType extends Enum {
  777. readonly isSingle: boolean;
  778. readonly asSingle: PropertyTypeSingle;
  779. readonly isVector: boolean;
  780. readonly asVector: PropertyTypeVector;
  781. }
  782. /** @name PropertyTypeSingle */
  783. export interface PropertyTypeSingle extends Enum {
  784. readonly isBool: boolean;
  785. readonly isUint16: boolean;
  786. readonly isUint32: boolean;
  787. readonly isUint64: boolean;
  788. readonly isInt16: boolean;
  789. readonly isInt32: boolean;
  790. readonly isInt64: boolean;
  791. readonly isText: boolean;
  792. readonly asText: TextMaxLength;
  793. readonly isHash: boolean;
  794. readonly asHash: HashedTextMaxLength;
  795. readonly isReference: boolean;
  796. readonly asReference: ITuple<[ClassId, SameController]>;
  797. }
  798. /** @name PropertyTypeVector */
  799. export interface PropertyTypeVector extends Struct {
  800. readonly vec_type: PropertyTypeSingle;
  801. readonly max_length: VecMaxLength;
  802. }
  803. /** @name ProposalDecisionStatus */
  804. export interface ProposalDecisionStatus extends Enum {
  805. readonly isCanceled: boolean;
  806. readonly isVetoed: boolean;
  807. readonly isRejected: boolean;
  808. readonly isSlashed: boolean;
  809. readonly isExpired: boolean;
  810. readonly isApproved: boolean;
  811. readonly asApproved: Approved;
  812. }
  813. /** @name ProposalDetails */
  814. export interface ProposalDetails extends Enum {
  815. readonly isText: boolean;
  816. readonly asText: Text;
  817. readonly isRuntimeUpgrade: boolean;
  818. readonly asRuntimeUpgrade: Bytes;
  819. readonly isSetElectionParameters: boolean;
  820. readonly asSetElectionParameters: ElectionParameters;
  821. readonly isSpending: boolean;
  822. readonly asSpending: ITuple<[Balance, AccountId]>;
  823. readonly isSetLead: boolean;
  824. readonly asSetLead: Option<SetLeadParams>;
  825. readonly isSetContentWorkingGroupMintCapacity: boolean;
  826. readonly asSetContentWorkingGroupMintCapacity: u128;
  827. readonly isEvictStorageProvider: boolean;
  828. readonly asEvictStorageProvider: GenericAccountId;
  829. readonly isSetValidatorCount: boolean;
  830. readonly asSetValidatorCount: u32;
  831. readonly isSetStorageRoleParameters: boolean;
  832. readonly asSetStorageRoleParameters: RoleParameters;
  833. readonly isAddWorkingGroupLeaderOpening: boolean;
  834. readonly asAddWorkingGroupLeaderOpening: AddOpeningParameters;
  835. readonly isBeginReviewWorkingGroupLeaderApplication: boolean;
  836. readonly asBeginReviewWorkingGroupLeaderApplication: ITuple<[OpeningId, WorkingGroup]>;
  837. readonly isFillWorkingGroupLeaderOpening: boolean;
  838. readonly asFillWorkingGroupLeaderOpening: FillOpeningParameters;
  839. readonly isSetWorkingGroupMintCapacity: boolean;
  840. readonly asSetWorkingGroupMintCapacity: ITuple<[Balance, WorkingGroup]>;
  841. readonly isDecreaseWorkingGroupLeaderStake: boolean;
  842. readonly asDecreaseWorkingGroupLeaderStake: ITuple<[WorkerId, Balance, WorkingGroup]>;
  843. readonly isSlashWorkingGroupLeaderStake: boolean;
  844. readonly asSlashWorkingGroupLeaderStake: ITuple<[WorkerId, Balance, WorkingGroup]>;
  845. readonly isSetWorkingGroupLeaderReward: boolean;
  846. readonly asSetWorkingGroupLeaderReward: ITuple<[WorkerId, Balance, WorkingGroup]>;
  847. readonly isTerminateWorkingGroupLeaderRole: boolean;
  848. readonly asTerminateWorkingGroupLeaderRole: TerminateRoleParameters;
  849. }
  850. /** @name ProposalDetailsOf */
  851. export interface ProposalDetailsOf extends Enum {
  852. readonly isText: boolean;
  853. readonly asText: Text;
  854. readonly isRuntimeUpgrade: boolean;
  855. readonly asRuntimeUpgrade: Bytes;
  856. readonly isSetElectionParameters: boolean;
  857. readonly asSetElectionParameters: ElectionParameters;
  858. readonly isSpending: boolean;
  859. readonly asSpending: ITuple<[Balance, AccountId]>;
  860. readonly isSetLead: boolean;
  861. readonly asSetLead: Option<SetLeadParams>;
  862. readonly isSetContentWorkingGroupMintCapacity: boolean;
  863. readonly asSetContentWorkingGroupMintCapacity: u128;
  864. readonly isEvictStorageProvider: boolean;
  865. readonly asEvictStorageProvider: GenericAccountId;
  866. readonly isSetValidatorCount: boolean;
  867. readonly asSetValidatorCount: u32;
  868. readonly isSetStorageRoleParameters: boolean;
  869. readonly asSetStorageRoleParameters: RoleParameters;
  870. readonly isAddWorkingGroupLeaderOpening: boolean;
  871. readonly asAddWorkingGroupLeaderOpening: AddOpeningParameters;
  872. readonly isBeginReviewWorkingGroupLeaderApplication: boolean;
  873. readonly asBeginReviewWorkingGroupLeaderApplication: ITuple<[OpeningId, WorkingGroup]>;
  874. readonly isFillWorkingGroupLeaderOpening: boolean;
  875. readonly asFillWorkingGroupLeaderOpening: FillOpeningParameters;
  876. readonly isSetWorkingGroupMintCapacity: boolean;
  877. readonly asSetWorkingGroupMintCapacity: ITuple<[Balance, WorkingGroup]>;
  878. readonly isDecreaseWorkingGroupLeaderStake: boolean;
  879. readonly asDecreaseWorkingGroupLeaderStake: ITuple<[WorkerId, Balance, WorkingGroup]>;
  880. readonly isSlashWorkingGroupLeaderStake: boolean;
  881. readonly asSlashWorkingGroupLeaderStake: ITuple<[WorkerId, Balance, WorkingGroup]>;
  882. readonly isSetWorkingGroupLeaderReward: boolean;
  883. readonly asSetWorkingGroupLeaderReward: ITuple<[WorkerId, Balance, WorkingGroup]>;
  884. readonly isTerminateWorkingGroupLeaderRole: boolean;
  885. readonly asTerminateWorkingGroupLeaderRole: TerminateRoleParameters;
  886. }
  887. /** @name ProposalId */
  888. export interface ProposalId extends u32 {}
  889. /** @name ProposalOf */
  890. export interface ProposalOf extends Struct {
  891. readonly parameters: ProposalParameters;
  892. readonly proposerId: MemberId;
  893. readonly title: Text;
  894. readonly description: Text;
  895. readonly createdAt: u32;
  896. readonly status: ProposalStatus;
  897. readonly votingResults: VotingResults;
  898. }
  899. /** @name ProposalParameters */
  900. export interface ProposalParameters extends Struct {
  901. readonly votingPeriod: u32;
  902. readonly gracePeriod: u32;
  903. readonly approvalQuorumPercentage: u32;
  904. readonly approvalThresholdPercentage: u32;
  905. readonly slashingQuorumPercentage: u32;
  906. readonly slashingThresholdPercentage: u32;
  907. readonly requiredStake: Option<u128>;
  908. }
  909. /** @name ProposalStatus */
  910. export interface ProposalStatus extends Enum {
  911. readonly isActive: boolean;
  912. readonly asActive: Option<ActiveStake>;
  913. readonly isFinalized: boolean;
  914. readonly asFinalized: Finalized;
  915. }
  916. /** @name RationaleText */
  917. export interface RationaleText extends Bytes {}
  918. /** @name Recipient */
  919. export interface Recipient extends Struct {
  920. readonly total_reward_received: u128;
  921. readonly total_reward_missed: u128;
  922. }
  923. /** @name RecipientId */
  924. export interface RecipientId extends u64 {}
  925. /** @name ReferenceConstraint */
  926. export interface ReferenceConstraint extends Null {}
  927. /** @name ReferenceCounterSideEffects */
  928. export interface ReferenceCounterSideEffects extends BTreeMap<EntityId, EntityReferenceCounterSideEffect> {}
  929. /** @name Reply */
  930. export interface Reply extends Struct {
  931. readonly owner: GenericAccountId;
  932. readonly thread_id: ThreadId;
  933. readonly text: Text;
  934. readonly moderation: Option<ModerationAction>;
  935. }
  936. /** @name ReplyId */
  937. export interface ReplyId extends u64 {}
  938. /** @name ReviewPeriod */
  939. export interface ReviewPeriod extends Struct {
  940. readonly started_accepting_applicants_at_block: u32;
  941. readonly started_review_period_at_block: u32;
  942. }
  943. /** @name RewardPolicy */
  944. export interface RewardPolicy extends Struct {
  945. readonly amount_per_payout: u128;
  946. readonly next_payment_at_block: u32;
  947. readonly payout_interval: Option<u32>;
  948. }
  949. /** @name RewardRelationship */
  950. export interface RewardRelationship extends Struct {
  951. readonly recipient: RecipientId;
  952. readonly mint_id: MintId;
  953. readonly account: GenericAccountId;
  954. readonly amount_per_payout: u128;
  955. readonly next_payment_at_block: Option<u32>;
  956. readonly payout_interval: Option<u32>;
  957. readonly total_reward_received: u128;
  958. readonly total_reward_missed: u128;
  959. }
  960. /** @name RewardRelationshipId */
  961. export interface RewardRelationshipId extends u64 {}
  962. /** @name RoleParameters */
  963. export interface RoleParameters extends Struct {
  964. readonly min_stake: u128;
  965. readonly min_actors: u32;
  966. readonly max_actors: u32;
  967. readonly reward: u128;
  968. readonly reward_period: u32;
  969. readonly bonding_period: u32;
  970. readonly unbonding_period: u32;
  971. readonly min_service_period: u32;
  972. readonly startup_grace_period: u32;
  973. readonly entry_request_fee: u128;
  974. }
  975. /** @name RoleStakeProfile */
  976. export interface RoleStakeProfile extends Struct {
  977. readonly stake_id: StakeId;
  978. readonly termination_unstaking_period: Option<u32>;
  979. readonly exit_unstaking_period: Option<u32>;
  980. }
  981. /** @name SameController */
  982. export interface SameController extends bool {}
  983. /** @name Schema */
  984. export interface Schema extends Struct {
  985. readonly properties: Vec<PropertyId>;
  986. readonly is_active: bool;
  987. }
  988. /** @name SchemaId */
  989. export interface SchemaId extends u16 {}
  990. /** @name SealedVote */
  991. export interface SealedVote extends Struct {
  992. readonly voter: GenericAccountId;
  993. readonly commitment: Hash;
  994. readonly stake: ElectionStake;
  995. readonly vote: Option<GenericAccountId>;
  996. }
  997. /** @name Seat */
  998. export interface Seat extends Struct {
  999. readonly member: GenericAccountId;
  1000. readonly stake: u128;
  1001. readonly backers: Backers;
  1002. }
  1003. /** @name Seats */
  1004. export interface Seats extends Vec<Seat> {}
  1005. /** @name ServiceProviderRecord */
  1006. export interface ServiceProviderRecord extends Struct {
  1007. readonly identity: IPNSIdentity;
  1008. readonly expires_at: u32;
  1009. }
  1010. /** @name SetLeadParams */
  1011. export interface SetLeadParams extends ITuple<[MemberId, GenericAccountId]> {}
  1012. /** @name SideEffect */
  1013. export interface SideEffect extends Option<ITuple<[EntityId, EntityReferenceCounterSideEffect]>> {}
  1014. /** @name SideEffects */
  1015. export interface SideEffects extends Option<ReferenceCounterSideEffects> {}
  1016. /** @name Slash */
  1017. export interface Slash extends Struct {
  1018. readonly started_at_block: u32;
  1019. readonly is_active: bool;
  1020. readonly blocks_remaining_in_active_period_for_slashing: u32;
  1021. readonly slash_amount: u128;
  1022. }
  1023. /** @name SlashableTerms */
  1024. export interface SlashableTerms extends Struct {
  1025. readonly max_count: u16;
  1026. readonly max_percent_pts_per_time: u16;
  1027. }
  1028. /** @name SlashingTerms */
  1029. export interface SlashingTerms extends Enum {
  1030. readonly isUnslashable: boolean;
  1031. readonly isSlashable: boolean;
  1032. readonly asSlashable: SlashableTerms;
  1033. }
  1034. /** @name Stake */
  1035. export interface Stake extends Struct {
  1036. readonly created: u32;
  1037. readonly staking_status: StakingStatus;
  1038. }
  1039. /** @name Staked */
  1040. export interface Staked extends Struct {
  1041. readonly staked_amount: u128;
  1042. readonly staked_status: StakedStatus;
  1043. readonly next_slash_id: u64;
  1044. readonly ongoing_slashes: BTreeMap<u64, Slash>;
  1045. }
  1046. /** @name StakedStatus */
  1047. export interface StakedStatus extends Enum {
  1048. readonly isNormal: boolean;
  1049. readonly isUnstaking: boolean;
  1050. readonly asUnstaking: Unstaking;
  1051. }
  1052. /** @name StakeId */
  1053. export interface StakeId extends u64 {}
  1054. /** @name StakingAmountLimitMode */
  1055. export interface StakingAmountLimitMode extends Enum {
  1056. readonly isAtLeast: boolean;
  1057. readonly isExact: boolean;
  1058. }
  1059. /** @name StakingPolicy */
  1060. export interface StakingPolicy extends Struct {
  1061. readonly amount: u128;
  1062. readonly amount_mode: StakingAmountLimitMode;
  1063. readonly crowded_out_unstaking_period_length: Option<u32>;
  1064. readonly review_period_expired_unstaking_period_length: Option<u32>;
  1065. }
  1066. /** @name StakingStatus */
  1067. export interface StakingStatus extends Enum {
  1068. readonly isNotStaked: boolean;
  1069. readonly isStaked: boolean;
  1070. readonly asStaked: Staked;
  1071. }
  1072. /** @name Static */
  1073. export interface Static extends Enum {
  1074. readonly isCouncil: boolean;
  1075. readonly isWorkingGroup: boolean;
  1076. readonly asWorkingGroup: WorkingGroup;
  1077. }
  1078. /** @name StaticBagId */
  1079. export interface StaticBagId extends Enum {
  1080. readonly isCouncil: boolean;
  1081. readonly isWorkingGroup: boolean;
  1082. readonly asWorkingGroup: WorkingGroup;
  1083. }
  1084. /** @name Status */
  1085. export interface Status extends bool {}
  1086. /** @name StorageBucket */
  1087. export interface StorageBucket extends Struct {
  1088. readonly operator_status: StorageBucketOperatorStatus;
  1089. readonly accepting_new_bags: bool;
  1090. readonly voucher: Voucher;
  1091. readonly metadata: Bytes;
  1092. }
  1093. /** @name StorageBucketId */
  1094. export interface StorageBucketId extends u64 {}
  1095. /** @name StorageBucketIdSet */
  1096. export interface StorageBucketIdSet extends BTreeSet<StorageBucketId> {}
  1097. /** @name StorageBucketOperatorStatus */
  1098. export interface StorageBucketOperatorStatus extends Enum {
  1099. readonly isMissing: boolean;
  1100. readonly isInvitedStorageWorker: boolean;
  1101. readonly asInvitedStorageWorker: WorkerId;
  1102. readonly isStorageWorker: boolean;
  1103. readonly asStorageWorker: WorkerId;
  1104. }
  1105. /** @name StorageBucketsPerBagValueConstraint */
  1106. export interface StorageBucketsPerBagValueConstraint extends Struct {
  1107. readonly min: u64;
  1108. readonly max_min_diff: u64;
  1109. }
  1110. /** @name StorageProviderId */
  1111. export interface StorageProviderId extends u64 {}
  1112. /** @name StoredPropertyValue */
  1113. export interface StoredPropertyValue extends Enum {
  1114. readonly isSingle: boolean;
  1115. readonly asSingle: StoredValue;
  1116. readonly isVector: boolean;
  1117. readonly asVector: VecStoredPropertyValue;
  1118. }
  1119. /** @name StoredValue */
  1120. export interface StoredValue extends Enum {
  1121. readonly isBool: boolean;
  1122. readonly asBool: bool;
  1123. readonly isUint16: boolean;
  1124. readonly asUint16: u16;
  1125. readonly isUint32: boolean;
  1126. readonly asUint32: u32;
  1127. readonly isUint64: boolean;
  1128. readonly asUint64: u64;
  1129. readonly isInt16: boolean;
  1130. readonly asInt16: i16;
  1131. readonly isInt32: boolean;
  1132. readonly asInt32: i32;
  1133. readonly isInt64: boolean;
  1134. readonly asInt64: i64;
  1135. readonly isText: boolean;
  1136. readonly asText: Text;
  1137. readonly isHash: boolean;
  1138. readonly asHash: Hash;
  1139. readonly isReference: boolean;
  1140. readonly asReference: EntityId;
  1141. }
  1142. /** @name SubscriptionId */
  1143. export interface SubscriptionId extends u64 {}
  1144. /** @name TerminateRoleParameters */
  1145. export interface TerminateRoleParameters extends Struct {
  1146. readonly worker_id: WorkerId;
  1147. readonly rationale: Bytes;
  1148. readonly slash: bool;
  1149. readonly working_group: WorkingGroup;
  1150. }
  1151. /** @name TextMaxLength */
  1152. export interface TextMaxLength extends u16 {}
  1153. /** @name Thread */
  1154. export interface Thread extends Struct {
  1155. readonly id: ThreadId;
  1156. readonly title: Text;
  1157. readonly category_id: CategoryId;
  1158. readonly nr_in_category: u32;
  1159. readonly moderation: Option<ModerationAction>;
  1160. readonly num_unmoderated_posts: u32;
  1161. readonly num_moderated_posts: u32;
  1162. readonly created_at: BlockAndTime;
  1163. readonly author_id: GenericAccountId;
  1164. }
  1165. /** @name ThreadCounter */
  1166. export interface ThreadCounter extends Struct {
  1167. readonly author_id: MemberId;
  1168. readonly counter: u32;
  1169. }
  1170. /** @name ThreadId */
  1171. export interface ThreadId extends u64 {}
  1172. /** @name TransferableStake */
  1173. export interface TransferableStake extends Struct {
  1174. readonly seat: u128;
  1175. readonly backing: u128;
  1176. }
  1177. /** @name Unstaking */
  1178. export interface Unstaking extends Struct {
  1179. readonly started_at_block: u32;
  1180. readonly is_active: bool;
  1181. readonly blocks_remaining_in_active_period_for_unstaking: u32;
  1182. }
  1183. /** @name UnstakingApplicationStage */
  1184. export interface UnstakingApplicationStage extends Struct {
  1185. readonly deactivation_initiated: u32;
  1186. readonly cause: ApplicationDeactivationCause;
  1187. }
  1188. /** @name UpdatePropertyValuesOperation */
  1189. export interface UpdatePropertyValuesOperation extends Struct {
  1190. readonly entity_id: ParameterizedEntity;
  1191. readonly new_parametrized_property_values: Vec<ParametrizedClassPropertyValue>;
  1192. }
  1193. /** @name UploadParameters */
  1194. export interface UploadParameters extends Struct {
  1195. readonly authenticationKey: Bytes;
  1196. readonly bagId: BagId;
  1197. readonly objectCreationList: Vec<DataObjectCreationParameters>;
  1198. readonly deletionPrizeSourceAccountId: GenericAccountId;
  1199. readonly expectedDataSizeFee: u128;
  1200. }
  1201. /** @name Url */
  1202. export interface Url extends Text {}
  1203. /** @name VecInputValue */
  1204. export interface VecInputValue extends Enum {
  1205. readonly isBool: boolean;
  1206. readonly asBool: Vec<bool>;
  1207. readonly isUint16: boolean;
  1208. readonly asUint16: Vec<u16>;
  1209. readonly isUint32: boolean;
  1210. readonly asUint32: Vec<u32>;
  1211. readonly isUint64: boolean;
  1212. readonly asUint64: Vec<u64>;
  1213. readonly isInt16: boolean;
  1214. readonly asInt16: Vec<i16>;
  1215. readonly isInt32: boolean;
  1216. readonly asInt32: Vec<i32>;
  1217. readonly isInt64: boolean;
  1218. readonly asInt64: Vec<i64>;
  1219. readonly isTextToHash: boolean;
  1220. readonly asTextToHash: Vec<Text>;
  1221. readonly isText: boolean;
  1222. readonly asText: Vec<Text>;
  1223. readonly isReference: boolean;
  1224. readonly asReference: Vec<EntityId>;
  1225. }
  1226. /** @name VecMaxLength */
  1227. export interface VecMaxLength extends u16 {}
  1228. /** @name VecStoredPropertyValue */
  1229. export interface VecStoredPropertyValue extends Struct {
  1230. readonly vec_value: VecStoredValue;
  1231. readonly nonce: Nonce;
  1232. }
  1233. /** @name VecStoredValue */
  1234. export interface VecStoredValue extends Enum {
  1235. readonly isBool: boolean;
  1236. readonly asBool: Vec<bool>;
  1237. readonly isUint16: boolean;
  1238. readonly asUint16: Vec<u16>;
  1239. readonly isUint32: boolean;
  1240. readonly asUint32: Vec<u32>;
  1241. readonly isUint64: boolean;
  1242. readonly asUint64: Vec<u64>;
  1243. readonly isInt16: boolean;
  1244. readonly asInt16: Vec<i16>;
  1245. readonly isInt32: boolean;
  1246. readonly asInt32: Vec<i32>;
  1247. readonly isInt64: boolean;
  1248. readonly asInt64: Vec<i64>;
  1249. readonly isHash: boolean;
  1250. readonly asHash: Vec<Hash>;
  1251. readonly isText: boolean;
  1252. readonly asText: Vec<Text>;
  1253. readonly isReference: boolean;
  1254. readonly asReference: Vec<EntityId>;
  1255. }
  1256. /** @name VoteKind */
  1257. export interface VoteKind extends Enum {
  1258. readonly isApprove: boolean;
  1259. readonly isReject: boolean;
  1260. readonly isSlash: boolean;
  1261. readonly isAbstain: boolean;
  1262. }
  1263. /** @name VotingResults */
  1264. export interface VotingResults extends Struct {
  1265. readonly abstensions: u32;
  1266. readonly approvals: u32;
  1267. readonly rejections: u32;
  1268. readonly slashes: u32;
  1269. }
  1270. /** @name Voucher */
  1271. export interface Voucher extends Struct {
  1272. readonly sizeLimit: u64;
  1273. readonly objectsLimit: u64;
  1274. readonly sizeUsed: u64;
  1275. readonly objectsUsed: u64;
  1276. }
  1277. /** @name WaitingToBeingOpeningStageVariant */
  1278. export interface WaitingToBeingOpeningStageVariant extends Struct {
  1279. readonly begins_at_block: u32;
  1280. }
  1281. /** @name WorkerId */
  1282. export interface WorkerId extends u64 {}
  1283. /** @name WorkerOf */
  1284. export interface WorkerOf extends Struct {
  1285. readonly member_id: MemberId;
  1286. readonly role_account_id: GenericAccountId;
  1287. readonly reward_relationship: Option<RewardRelationshipId>;
  1288. readonly role_stake_profile: Option<RoleStakeProfile>;
  1289. }
  1290. /** @name WorkingGroup */
  1291. export interface WorkingGroup extends Enum {
  1292. readonly isStorage: boolean;
  1293. readonly isContent: boolean;
  1294. }
  1295. /** @name WorkingGroupOpeningPolicyCommitment */
  1296. export interface WorkingGroupOpeningPolicyCommitment extends Struct {
  1297. readonly application_rationing_policy: Option<ApplicationRationingPolicy>;
  1298. readonly max_review_period_length: u32;
  1299. readonly application_staking_policy: Option<StakingPolicy>;
  1300. readonly role_staking_policy: Option<StakingPolicy>;
  1301. readonly role_slashing_terms: SlashingTerms;
  1302. readonly fill_opening_successful_applicant_application_stake_unstaking_period: Option<u32>;
  1303. readonly fill_opening_failed_applicant_application_stake_unstaking_period: Option<u32>;
  1304. readonly fill_opening_failed_applicant_role_stake_unstaking_period: Option<u32>;
  1305. readonly terminate_application_stake_unstaking_period: Option<u32>;
  1306. readonly terminate_role_stake_unstaking_period: Option<u32>;
  1307. readonly exit_role_application_stake_unstaking_period: Option<u32>;
  1308. readonly exit_role_stake_unstaking_period: Option<u32>;
  1309. }
  1310. /** @name WorkingGroupUnstaker */
  1311. export interface WorkingGroupUnstaker extends Enum {
  1312. readonly isLead: boolean;
  1313. readonly asLead: LeadId;
  1314. readonly isCurator: boolean;
  1315. readonly asCurator: CuratorId;
  1316. }
  1317. export type PHANTOM_ALL = 'all';