defs.json 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867
  1. {
  2. "MemoText": "Text",
  3. "Credential": "u64",
  4. "CredentialSet": "Vec<Credential>",
  5. "BlockAndTime": {
  6. "block": "u32",
  7. "time": "u64"
  8. },
  9. "ThreadId": "u64",
  10. "PostId": "u64",
  11. "InputValidationLengthConstraint": {
  12. "min": "u16",
  13. "max_min_diff": "u16"
  14. },
  15. "WorkingGroup": {
  16. "_enum": [
  17. "Storage"
  18. ]
  19. },
  20. "SlashingTerms": {
  21. "_enum": {
  22. "Unslashable": "Null",
  23. "Slashable": "SlashableTerms"
  24. }
  25. },
  26. "SlashableTerms": {
  27. "max_count": "u16",
  28. "max_percent_pts_per_time": "u16"
  29. },
  30. "EntryMethod": {
  31. "_enum": {
  32. "Paid": "u64",
  33. "Screening": "AccountId",
  34. "Genesis": "Null"
  35. }
  36. },
  37. "MemberId": "u64",
  38. "PaidTermId": "u64",
  39. "SubscriptionId": "u64",
  40. "Membership": {
  41. "handle": "Text",
  42. "avatar_uri": "Text",
  43. "about": "Text",
  44. "registered_at_block": "u32",
  45. "registered_at_time": "u64",
  46. "entry": "EntryMethod",
  47. "suspended": "bool",
  48. "subscription": "Option<SubscriptionId>",
  49. "root_account": "GenericAccountId",
  50. "controller_account": "GenericAccountId"
  51. },
  52. "PaidMembershipTerms": {
  53. "fee": "u128",
  54. "text": "Text"
  55. },
  56. "ActorId": "u64",
  57. "ElectionStage": {
  58. "_enum": {
  59. "Announcing": "u32",
  60. "Voting": "u32",
  61. "Revealing": "u32"
  62. }
  63. },
  64. "ElectionStake": {
  65. "new": "u128",
  66. "transferred": "u128"
  67. },
  68. "SealedVote": {
  69. "voter": "GenericAccountId",
  70. "commitment": "[u8;32]",
  71. "stake": "ElectionStake",
  72. "vote": "Option<GenericAccountId>"
  73. },
  74. "TransferableStake": {
  75. "seat": "u128",
  76. "backing": "u128"
  77. },
  78. "ElectionParameters": {
  79. "announcing_period": "u32",
  80. "voting_period": "u32",
  81. "revealing_period": "u32",
  82. "council_size": "u32",
  83. "candidacy_limit": "u32",
  84. "new_term_duration": "u32",
  85. "min_council_stake": "u128",
  86. "min_voting_stake": "u128"
  87. },
  88. "Seat": {
  89. "member": "GenericAccountId",
  90. "stake": "u128",
  91. "backers": "Backers"
  92. },
  93. "Seats": "Vec<Seat>",
  94. "Backer": {
  95. "member": "GenericAccountId",
  96. "stake": "u128"
  97. },
  98. "Backers": "Vec<Backer>",
  99. "RoleParameters": {
  100. "min_stake": "u128",
  101. "min_actors": "u32",
  102. "max_actors": "u32",
  103. "reward": "u128",
  104. "reward_period": "u32",
  105. "bonding_period": "u32",
  106. "unbonding_period": "u32",
  107. "min_service_period": "u32",
  108. "startup_grace_period": "u32",
  109. "entry_request_fee": "u128"
  110. },
  111. "PostTextChange": {
  112. "expired_at": "BlockAndTime",
  113. "text": "Text"
  114. },
  115. "ModerationAction": {
  116. "moderated_at": "BlockAndTime",
  117. "moderator_id": "GenericAccountId",
  118. "rationale": "Text"
  119. },
  120. "ChildPositionInParentCategory": {
  121. "parent_id": "CategoryId",
  122. "child_nr_in_parent_category": "u32"
  123. },
  124. "CategoryId": "u64",
  125. "Category": {
  126. "id": "CategoryId",
  127. "title": "Text",
  128. "description": "Text",
  129. "created_at": "BlockAndTime",
  130. "deleted": "bool",
  131. "archived": "bool",
  132. "num_direct_subcategories": "u32",
  133. "num_direct_unmoderated_threads": "u32",
  134. "num_direct_moderated_threads": "u32",
  135. "position_in_parent_category": "Option<ChildPositionInParentCategory>",
  136. "moderator_id": "GenericAccountId"
  137. },
  138. "Thread": {
  139. "id": "ThreadId",
  140. "title": "Text",
  141. "category_id": "CategoryId",
  142. "nr_in_category": "u32",
  143. "moderation": "Option<ModerationAction>",
  144. "num_unmoderated_posts": "u32",
  145. "num_moderated_posts": "u32",
  146. "created_at": "BlockAndTime",
  147. "author_id": "GenericAccountId"
  148. },
  149. "Post": {
  150. "id": "PostId",
  151. "thread_id": "ThreadId",
  152. "nr_in_thread": "u32",
  153. "current_text": "Text",
  154. "moderation": "Option<ModerationAction>",
  155. "text_change_history": "Vec<PostTextChange>",
  156. "created_at": "BlockAndTime",
  157. "author_id": "GenericAccountId"
  158. },
  159. "ReplyId": "u64",
  160. "Reply": {
  161. "owner": "GenericAccountId",
  162. "thread_id": "ThreadId",
  163. "text": "Text",
  164. "moderation": "Option<ModerationAction>"
  165. },
  166. "StakeId": "u64",
  167. "Stake": {
  168. "created": "u32",
  169. "staking_status": "StakingStatus"
  170. },
  171. "StakingStatus": {
  172. "_enum": {
  173. "NotStaked": "Null",
  174. "Staked": "Staked"
  175. }
  176. },
  177. "Staked": {
  178. "staked_amount": "u128",
  179. "staked_status": "StakedStatus",
  180. "next_slash_id": "u64",
  181. "ongoing_slashes": "BTreeMap<u64,Slash>"
  182. },
  183. "StakedStatus": {
  184. "_enum": {
  185. "Normal": "Null",
  186. "Unstaking": "Unstaking"
  187. }
  188. },
  189. "Unstaking": {
  190. "started_at_block": "u32",
  191. "is_active": "bool",
  192. "blocks_remaining_in_active_period_for_unstaking": "u32"
  193. },
  194. "Slash": {
  195. "started_at_block": "u32",
  196. "is_active": "bool",
  197. "blocks_remaining_in_active_period_for_slashing": "u32",
  198. "slash_amount": "u128"
  199. },
  200. "MintId": "u64",
  201. "Mint": {
  202. "capacity": "u128",
  203. "next_adjustment": "Option<NextAdjustment>",
  204. "created_at": "u32",
  205. "total_minted": "u128"
  206. },
  207. "MintBalanceOf": "Balance",
  208. "BalanceOfMint": "Balance",
  209. "NextAdjustment": {
  210. "adjustment": "AdjustOnInterval",
  211. "at_block": "u32"
  212. },
  213. "AdjustOnInterval": {
  214. "block_interval": "u32",
  215. "adjustment_type": "AdjustCapacityBy"
  216. },
  217. "AdjustCapacityBy": {
  218. "_enum": {
  219. "Setting": "u128",
  220. "Adding": "u128",
  221. "Reducing": "u128"
  222. }
  223. },
  224. "RecipientId": "u64",
  225. "RewardRelationshipId": "u64",
  226. "Recipient": {
  227. "total_reward_received": "u128",
  228. "total_reward_missed": "u128"
  229. },
  230. "RewardRelationship": {
  231. "recipient": "u64",
  232. "mint_id": "u64",
  233. "account": "GenericAccountId",
  234. "amount_per_payout": "u128",
  235. "next_payment_at_block": "Option<u32>",
  236. "payout_interval": "Option<u32>",
  237. "total_reward_received": "u128",
  238. "total_reward_missed": "u128"
  239. },
  240. "ApplicationId": "u64",
  241. "OpeningId": "u64",
  242. "Application": {
  243. "opening_id": "u64",
  244. "application_index_in_opening": "u32",
  245. "add_to_opening_in_block": "u32",
  246. "active_role_staking_id": "Option<u64>",
  247. "active_application_staking_id": "Option<u64>",
  248. "stage": "ApplicationStage",
  249. "human_readable_text": "Text"
  250. },
  251. "ApplicationStage": {
  252. "_enum": {
  253. "Active": "Null",
  254. "Unstaking": "UnstakingApplicationStage",
  255. "Inactive": "InactiveApplicationStage"
  256. }
  257. },
  258. "ActivateOpeningAt": {
  259. "_enum": {
  260. "CurrentBlock": "Null",
  261. "ExactBlock": "u32"
  262. }
  263. },
  264. "ApplicationRationingPolicy": {
  265. "max_active_applicants": "u32"
  266. },
  267. "OpeningStage": {
  268. "_enum": {
  269. "WaitingToBegin": "WaitingToBeingOpeningStageVariant",
  270. "Active": "ActiveOpeningStageVariant"
  271. }
  272. },
  273. "StakingPolicy": {
  274. "amount": "u128",
  275. "amount_mode": "StakingAmountLimitMode",
  276. "crowded_out_unstaking_period_length": "Option<u32>",
  277. "review_period_expired_unstaking_period_length": "Option<u32>"
  278. },
  279. "Opening": {
  280. "created": "u32",
  281. "stage": "OpeningStage",
  282. "max_review_period_length": "u32",
  283. "application_rationing_policy": "Option<ApplicationRationingPolicy>",
  284. "application_staking_policy": "Option<StakingPolicy>",
  285. "role_staking_policy": "Option<StakingPolicy>",
  286. "human_readable_text": "Text"
  287. },
  288. "WaitingToBeingOpeningStageVariant": {
  289. "begins_at_block": "u32"
  290. },
  291. "ActiveOpeningStageVariant": {
  292. "stage": "ActiveOpeningStage",
  293. "applications_added": "Vec<HiringApplicationId>",
  294. "active_application_count": "u32",
  295. "unstaking_application_count": "u32",
  296. "deactivated_application_count": "u32"
  297. },
  298. "ActiveOpeningStage": {
  299. "_enum": {
  300. "AcceptingApplications": "AcceptingApplications",
  301. "ReviewPeriod": "ReviewPeriod",
  302. "Deactivated": "Deactivated"
  303. }
  304. },
  305. "AcceptingApplications": {
  306. "started_accepting_applicants_at_block": "u32"
  307. },
  308. "ReviewPeriod": {
  309. "started_accepting_applicants_at_block": "u32",
  310. "started_review_period_at_block": "u32"
  311. },
  312. "Deactivated": {
  313. "cause": "OpeningDeactivationCause",
  314. "deactivated_at_block": "u32",
  315. "started_accepting_applicants_at_block": "u32",
  316. "started_review_period_at_block": "Option<u32>"
  317. },
  318. "OpeningDeactivationCause": {
  319. "_enum": [
  320. "CancelledBeforeActivation",
  321. "CancelledAcceptingApplications",
  322. "CancelledInReviewPeriod",
  323. "ReviewPeriodExpired",
  324. "Filled"
  325. ]
  326. },
  327. "InactiveApplicationStage": {
  328. "deactivation_initiated": "u32",
  329. "deactivated": "u32",
  330. "cause": "ApplicationDeactivationCause"
  331. },
  332. "UnstakingApplicationStage": {
  333. "deactivation_initiated": "u32",
  334. "cause": "ApplicationDeactivationCause"
  335. },
  336. "ApplicationDeactivationCause": {
  337. "_enum": [
  338. "External",
  339. "Hired",
  340. "NotHired",
  341. "CrowdedOut",
  342. "OpeningCancelled",
  343. "ReviewPeriodExpired",
  344. "OpeningFilled"
  345. ]
  346. },
  347. "StakingAmountLimitMode": {
  348. "_enum": [
  349. "AtLeast",
  350. "Exact"
  351. ]
  352. },
  353. "ClassId": "u64",
  354. "EntityId": "u64",
  355. "Class": {
  356. "id": "ClassId",
  357. "properties": "Vec<Property>",
  358. "schemas": "Vec<ClassSchema>",
  359. "name": "Text",
  360. "description": "Text"
  361. },
  362. "Entity": {
  363. "id": "EntityId",
  364. "class_id": "ClassId",
  365. "in_class_schema_indexes": "Vec<u16>"
  366. },
  367. "ClassSchema": {
  368. "properties": "Vec<u16>"
  369. },
  370. "Property": {
  371. "prop_type": "PropertyType",
  372. "required": "bool",
  373. "name": "Text",
  374. "description": "Text"
  375. },
  376. "PropertyType": {
  377. "_enum": {
  378. "None": "Null",
  379. "Bool": "Null",
  380. "Uint16": "Null",
  381. "Uint32": "Null",
  382. "Uint64": "Null",
  383. "Int16": "Null",
  384. "Int32": "Null",
  385. "Int64": "Null",
  386. "Text": "u16",
  387. "Internal": "u64",
  388. "BoolVec": "u16",
  389. "Uint16Vec": "u16",
  390. "Uint32Vec": "u16",
  391. "Uint64Vec": "u16",
  392. "Int16Vec": "u16",
  393. "Int32Vec": "u16",
  394. "Int64Vec": "u16",
  395. "TextVec": "(u16,u16)",
  396. "InternalVec": "(u16,ClassId)"
  397. }
  398. },
  399. "PropertyValue": {
  400. "_enum": {
  401. "None": "Null",
  402. "Bool": "bool",
  403. "Uint16": "u16",
  404. "Uint32": "u32",
  405. "Uint64": "u64",
  406. "Int16": "i16",
  407. "Int32": "i32",
  408. "Int64": "i64",
  409. "Text": "Text",
  410. "Internal": "u64",
  411. "BoolVec": "Vec<bool>",
  412. "Uint16Vec": "Vec<u16>",
  413. "Uint32Vec": "Vec<u32>",
  414. "Uint64Vec": "Vec<u64>",
  415. "Int16Vec": "Vec<i16>",
  416. "Int32Vec": "Vec<i32>",
  417. "Int64Vec": "Vec<i64>",
  418. "TextVec": "Vec<Text>",
  419. "InternalVec": "Vec<EntityId>"
  420. }
  421. },
  422. "ClassPropertyValue": {
  423. "in_class_index": "u16",
  424. "value": "PropertyValue"
  425. },
  426. "EntityPermissions": {
  427. "update": "CredentialSet",
  428. "maintainer_has_all_permissions": "bool"
  429. },
  430. "ReferenceConstraint": {
  431. "_enum": {
  432. "NoReferencingAllowed": "Null",
  433. "NoConstraint": "Null",
  434. "Restricted": "Vec<PropertyOfClass>"
  435. }
  436. },
  437. "ClassPermissionsType": {
  438. "entity_permissions": "EntityPermissions",
  439. "entities_can_be_created": "bool",
  440. "add_schemas": "CredentialSet",
  441. "create_entities": "CredentialSet",
  442. "reference_constraint": "ReferenceConstraint",
  443. "admins": "CredentialSet",
  444. "last_permissions_update": "u32"
  445. },
  446. "Operation": {
  447. "with_credential": "Option<Credential>",
  448. "as_entity_maintainer": "bool",
  449. "operation_type": "OperationType"
  450. },
  451. "OperationType": {
  452. "_enum": {
  453. "CreateEntity": "CreateEntity",
  454. "UpdatePropertyValues": "UpdatePropertyValues",
  455. "AddSchemaSupportToEntity": "AddSchemaSupportToEntity"
  456. }
  457. },
  458. "CreateEntity": {
  459. "class_id": "ClassId"
  460. },
  461. "UpdatePropertyValues": {
  462. "entity_id": "ParametrizedEntity",
  463. "parametrized_property_values": "Vec<ParametrizedClassPropertyValue>"
  464. },
  465. "AddSchemaSupportToEntity": {
  466. "entity_id": "ParametrizedEntity",
  467. "schema_id": "u16",
  468. "parametrized_property_values": "Vec<ParametrizedClassPropertyValue>"
  469. },
  470. "ParametrizedEntity": {
  471. "_enum": {
  472. "InternalEntityJustAdded": "u32",
  473. "ExistingEntity": "u64"
  474. }
  475. },
  476. "ParametrizedClassPropertyValue": {
  477. "in_class_index": "u16",
  478. "value": "ParametrizedPropertyValue"
  479. },
  480. "ParametrizedPropertyValue": {
  481. "_enum": {
  482. "PropertyValue": "PropertyValue",
  483. "InternalEntityJustAdded": "u32",
  484. "InternalEntityVec": "Vec<ParametrizedEntity>"
  485. }
  486. },
  487. "PropertyOfClass": {
  488. "class_id": "ClassId",
  489. "property_index": "u16"
  490. },
  491. "ChannelId": "u64",
  492. "CuratorId": "u64",
  493. "CuratorOpeningId": "u64",
  494. "CuratorApplicationId": "u64",
  495. "LeadId": "u64",
  496. "PrincipalId": "u64",
  497. "OptionalText": "Option<Text>",
  498. "Channel": {
  499. "verified": "bool",
  500. "handle": "Text",
  501. "title": "OptionalText",
  502. "description": "OptionalText",
  503. "avatar": "OptionalText",
  504. "banner": "OptionalText",
  505. "content": "ChannelContentType",
  506. "owner": "MemberId",
  507. "role_account": "GenericAccountId",
  508. "publication_status": "ChannelPublicationStatus",
  509. "curation_status": "ChannelCurationStatus",
  510. "created": "u32",
  511. "principal_id": "PrincipalId"
  512. },
  513. "ChannelContentType": {
  514. "_enum": [
  515. "Video",
  516. "Music",
  517. "Ebook"
  518. ]
  519. },
  520. "ChannelCurationStatus": {
  521. "_enum": [
  522. "Normal",
  523. "Censored"
  524. ]
  525. },
  526. "ChannelPublicationStatus": {
  527. "_enum": [
  528. "Public",
  529. "Unlisted"
  530. ]
  531. },
  532. "CurationActor": {
  533. "_enum": {
  534. "Lead": "Null",
  535. "Curator": "CuratorId"
  536. }
  537. },
  538. "Curator": {
  539. "role_account": "GenericAccountId",
  540. "reward_relationship": "Option<u64>",
  541. "role_stake_profile": "Option<CuratorRoleStakeProfile>",
  542. "stage": "CuratorRoleStage",
  543. "induction": "CuratorInduction",
  544. "principal_id": "PrincipalId"
  545. },
  546. "CuratorApplication": {
  547. "role_account": "GenericAccountId",
  548. "curator_opening_id": "CuratorOpeningId",
  549. "member_id": "MemberId",
  550. "application_id": "HiringApplicationId"
  551. },
  552. "CuratorOpening": {
  553. "opening_id": "u64",
  554. "curator_applications": "Vec<CuratorApplicationId>",
  555. "policy_commitment": "OpeningPolicyCommitment"
  556. },
  557. "Lead": {
  558. "member_id": "MemberId",
  559. "role_account": "GenericAccountId",
  560. "reward_relationship": "Option<u64>",
  561. "inducted": "u32",
  562. "stage": "LeadRoleState"
  563. },
  564. "OpeningPolicyCommitment": {
  565. "application_rationing_policy": "Option<ApplicationRationingPolicy>",
  566. "max_review_period_length": "u32",
  567. "application_staking_policy": "Option<StakingPolicy>",
  568. "role_staking_policy": "Option<StakingPolicy>",
  569. "role_slashing_terms": "SlashingTerms",
  570. "fill_opening_successful_applicant_application_stake_unstaking_period": "Option<u32>",
  571. "fill_opening_failed_applicant_application_stake_unstaking_period": "Option<u32>",
  572. "fill_opening_failed_applicant_role_stake_unstaking_period": "Option<u32>",
  573. "terminate_curator_application_stake_unstaking_period": "Option<u32>",
  574. "terminate_curator_role_stake_unstaking_period": "Option<u32>",
  575. "exit_curator_role_application_stake_unstaking_period": "Option<u32>",
  576. "exit_curator_role_stake_unstaking_period": "Option<u32>"
  577. },
  578. "Principal": {
  579. "_enum": {
  580. "Lead": "Null",
  581. "Curator": "CuratorId",
  582. "ChannelOwner": "ChannelId"
  583. }
  584. },
  585. "WorkingGroupUnstaker": {
  586. "_enum": {
  587. "Lead": "LeadId",
  588. "Curator": "CuratorId"
  589. }
  590. },
  591. "CuratorApplicationIdToCuratorIdMap": "BTreeMap<HiringApplicationId,CuratorId>",
  592. "CuratorApplicationIdSet": "Vec<CuratorApplicationId>",
  593. "CuratorRoleStakeProfile": {
  594. "stake_id": "u64",
  595. "termination_unstaking_period": "Option<u32>",
  596. "exit_unstaking_period": "Option<u32>"
  597. },
  598. "CuratorRoleStage": {
  599. "_enum": {
  600. "Active": "Null",
  601. "Unstaking": "CuratorExitSummary",
  602. "Exited": "CuratorExitSummary"
  603. }
  604. },
  605. "CuratorExitSummary": {
  606. "origin": "CuratorExitInitiationOrigin",
  607. "initiated_at_block_number": "u32",
  608. "rationale_text": "Text"
  609. },
  610. "CuratorExitInitiationOrigin": {
  611. "_enum": [
  612. "Lead",
  613. "Curator"
  614. ]
  615. },
  616. "LeadRoleState": {
  617. "_enum": {
  618. "Active": "Null",
  619. "Exited": "ExitedLeadRole"
  620. }
  621. },
  622. "ExitedLeadRole": {
  623. "initiated_at_block_number": "u32"
  624. },
  625. "CuratorInduction": {
  626. "lead": "LeadId",
  627. "curator_application_id": "CuratorApplicationId",
  628. "at_block": "u32"
  629. },
  630. "RationaleText": "Bytes",
  631. "ApplicationOf": {
  632. "role_account_id": "GenericAccountId",
  633. "opening_id": "u64",
  634. "member_id": "MemberId",
  635. "application_id": "HiringApplicationId"
  636. },
  637. "ApplicationIdSet": "BTreeSet<HiringApplicationId>",
  638. "ApplicationIdToWorkerIdMap": "BTreeMap<HiringApplicationId,WorkerId>",
  639. "WorkerId": "u64",
  640. "WorkerOf": {
  641. "member_id": "MemberId",
  642. "role_account_id": "GenericAccountId",
  643. "reward_relationship": "Option<u64>",
  644. "role_stake_profile": "Option<RoleStakeProfile>"
  645. },
  646. "OpeningOf": {
  647. "hiring_opening_id": "u64",
  648. "applications": "Vec<HiringApplicationId>",
  649. "policy_commitment": "WorkingGroupOpeningPolicyCommitment",
  650. "opening_type": "OpeningType"
  651. },
  652. "StorageProviderId": "u64",
  653. "OpeningType": {
  654. "_enum": {
  655. "Leader": "Null",
  656. "Worker": "Null"
  657. }
  658. },
  659. "HiringApplicationId": "u64",
  660. "RewardPolicy": {
  661. "amount_per_payout": "u128",
  662. "next_payment_at_block": "u32",
  663. "payout_interval": "Option<u32>"
  664. },
  665. "WorkingGroupOpeningPolicyCommitment": {
  666. "application_rationing_policy": "Option<ApplicationRationingPolicy>",
  667. "max_review_period_length": "u32",
  668. "application_staking_policy": "Option<StakingPolicy>",
  669. "role_staking_policy": "Option<StakingPolicy>",
  670. "role_slashing_terms": "SlashingTerms",
  671. "fill_opening_successful_applicant_application_stake_unstaking_period": "Option<u32>",
  672. "fill_opening_failed_applicant_application_stake_unstaking_period": "Option<u32>",
  673. "fill_opening_failed_applicant_role_stake_unstaking_period": "Option<u32>",
  674. "terminate_application_stake_unstaking_period": "Option<u32>",
  675. "terminate_role_stake_unstaking_period": "Option<u32>",
  676. "exit_role_application_stake_unstaking_period": "Option<u32>",
  677. "exit_role_stake_unstaking_period": "Option<u32>"
  678. },
  679. "RoleStakeProfile": {
  680. "stake_id": "u64",
  681. "termination_unstaking_period": "Option<u32>",
  682. "exit_unstaking_period": "Option<u32>"
  683. },
  684. "Url": "Text",
  685. "IPNSIdentity": "Text",
  686. "ServiceProviderRecord": {
  687. "identity": "IPNSIdentity",
  688. "expires_at": "u32"
  689. },
  690. "ContentId": "[u8;32]",
  691. "LiaisonJudgement": {
  692. "_enum": [
  693. "Pending",
  694. "Accepted",
  695. "Rejected"
  696. ]
  697. },
  698. "DataObject": {
  699. "owner": "MemberId",
  700. "added_at": "BlockAndTime",
  701. "type_id": "DataObjectTypeId",
  702. "liaison": "StorageProviderId",
  703. "liaison_judgement": "LiaisonJudgement",
  704. "ipfs_content_id": "Text"
  705. },
  706. "DataObjectStorageRelationshipId": "u64",
  707. "DataObjectStorageRelationship": {
  708. "content_id": "ContentId",
  709. "storage_provider": "StorageProviderId",
  710. "ready": "bool"
  711. },
  712. "DataObjectTypeId": "u64",
  713. "DataObjectType": {
  714. "description": "Text",
  715. "active": "bool"
  716. },
  717. "DataObjectsMap": "BTreeMap<ContentId,DataObject>",
  718. "ProposalId": "u32",
  719. "ProposalStatus": {
  720. "_enum": {
  721. "Active": "Option<ActiveStake>",
  722. "Finalized": "Finalized"
  723. }
  724. },
  725. "ProposalOf": {
  726. "parameters": "ProposalParameters",
  727. "proposerId": "MemberId",
  728. "title": "Text",
  729. "description": "Text",
  730. "createdAt": "u32",
  731. "status": "ProposalStatus",
  732. "votingResults": "VotingResults"
  733. },
  734. "ProposalDetails": {
  735. "_enum": {
  736. "Text": "Text",
  737. "RuntimeUpgrade": "Bytes",
  738. "SetElectionParameters": "ElectionParameters",
  739. "Spending": "(Balance,AccountId)",
  740. "SetLead": "Option<SetLeadParams>",
  741. "SetContentWorkingGroupMintCapacity": "u128",
  742. "EvictStorageProvider": "GenericAccountId",
  743. "SetValidatorCount": "u32",
  744. "SetStorageRoleParameters": "RoleParameters",
  745. "AddWorkingGroupLeaderOpening": "AddOpeningParameters",
  746. "BeginReviewWorkingGroupLeaderApplication": "(u64,WorkingGroup)",
  747. "FillWorkingGroupLeaderOpening": "FillOpeningParameters",
  748. "SetWorkingGroupMintCapacity": "(Balance,WorkingGroup)",
  749. "DecreaseWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  750. "SlashWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  751. "SetWorkingGroupLeaderReward": "(WorkerId,Balance,WorkingGroup)",
  752. "TerminateWorkingGroupLeaderRole": "TerminateRoleParameters"
  753. }
  754. },
  755. "ProposalDetailsOf": {
  756. "_enum": {
  757. "Text": "Text",
  758. "RuntimeUpgrade": "Bytes",
  759. "SetElectionParameters": "ElectionParameters",
  760. "Spending": "(Balance,AccountId)",
  761. "SetLead": "Option<SetLeadParams>",
  762. "SetContentWorkingGroupMintCapacity": "u128",
  763. "EvictStorageProvider": "GenericAccountId",
  764. "SetValidatorCount": "u32",
  765. "SetStorageRoleParameters": "RoleParameters",
  766. "AddWorkingGroupLeaderOpening": "AddOpeningParameters",
  767. "BeginReviewWorkingGroupLeaderApplication": "(u64,WorkingGroup)",
  768. "FillWorkingGroupLeaderOpening": "FillOpeningParameters",
  769. "SetWorkingGroupMintCapacity": "(Balance,WorkingGroup)",
  770. "DecreaseWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  771. "SlashWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  772. "SetWorkingGroupLeaderReward": "(WorkerId,Balance,WorkingGroup)",
  773. "TerminateWorkingGroupLeaderRole": "TerminateRoleParameters"
  774. }
  775. },
  776. "VotingResults": {
  777. "abstensions": "u32",
  778. "approvals": "u32",
  779. "rejections": "u32",
  780. "slashes": "u32"
  781. },
  782. "ProposalParameters": {
  783. "votingPeriod": "u32",
  784. "gracePeriod": "u32",
  785. "approvalQuorumPercentage": "u32",
  786. "approvalThresholdPercentage": "u32",
  787. "slashingQuorumPercentage": "u32",
  788. "slashingThresholdPercentage": "u32",
  789. "requiredStake": "Option<u128>"
  790. },
  791. "VoteKind": {
  792. "_enum": [
  793. "Approve",
  794. "Reject",
  795. "Slash",
  796. "Abstain"
  797. ]
  798. },
  799. "ThreadCounter": {
  800. "author_id": "MemberId",
  801. "counter": "u32"
  802. },
  803. "DiscussionThread": {
  804. "title": "Bytes",
  805. "created_at": "u32",
  806. "author_id": "MemberId"
  807. },
  808. "DiscussionPost": {
  809. "text": "Bytes",
  810. "created_at": "u32",
  811. "updated_at": "u32",
  812. "author_id": "MemberId",
  813. "thread_id": "ThreadId",
  814. "edition_number": "u32"
  815. },
  816. "AddOpeningParameters": {
  817. "activate_at": "ActivateOpeningAt",
  818. "commitment": "WorkingGroupOpeningPolicyCommitment",
  819. "human_readable_text": "Bytes",
  820. "working_group": "WorkingGroup"
  821. },
  822. "FillOpeningParameters": {
  823. "opening_id": "u64",
  824. "successful_application_id": "HiringApplicationId",
  825. "reward_policy": "Option<RewardPolicy>",
  826. "working_group": "WorkingGroup"
  827. },
  828. "TerminateRoleParameters": {
  829. "worker_id": "WorkerId",
  830. "rationale": "Bytes",
  831. "slash": "bool",
  832. "working_group": "WorkingGroup"
  833. },
  834. "ActiveStake": {
  835. "stake_id": "u64",
  836. "source_account_id": "GenericAccountId"
  837. },
  838. "Finalized": {
  839. "proposalStatus": "ProposalDecisionStatus",
  840. "finalizedAt": "u32",
  841. "encodedUnstakingErrorDueToBrokenRuntime": "Option<Vec<u8>>",
  842. "stakeDataAfterUnstakingError": "Option<ActiveStake>"
  843. },
  844. "ProposalDecisionStatus": {
  845. "_enum": {
  846. "Canceled": "Null",
  847. "Vetoed": "Null",
  848. "Rejected": "Null",
  849. "Slashed": "Null",
  850. "Expired": "Null",
  851. "Approved": "Approved"
  852. }
  853. },
  854. "ExecutionFailed": {
  855. "error": "Text"
  856. },
  857. "Approved": {
  858. "_enum": {
  859. "PendingExecution": "Null",
  860. "Executed": "Null",
  861. "ExecutionFailed": "ExecutionFailed"
  862. }
  863. },
  864. "SetLeadParams": "(MemberId,GenericAccountId)",
  865. "Address": "AccountId",
  866. "LookupSource": "AccountId"
  867. }