defs.json 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953
  1. {
  2. "MemoText": "Text",
  3. "Credential": "u64",
  4. "CredentialSet": "BTreeSet<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": "Hash",
  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. "ChannelId": "u64",
  354. "CuratorId": "u64",
  355. "CuratorOpeningId": "u64",
  356. "CuratorApplicationId": "u64",
  357. "LeadId": "u64",
  358. "PrincipalId": "u64",
  359. "OptionalText": "Option<Text>",
  360. "Channel": {
  361. "verified": "bool",
  362. "handle": "Text",
  363. "title": "OptionalText",
  364. "description": "OptionalText",
  365. "avatar": "OptionalText",
  366. "banner": "OptionalText",
  367. "content": "ChannelContentType",
  368. "owner": "MemberId",
  369. "role_account": "GenericAccountId",
  370. "publication_status": "ChannelPublicationStatus",
  371. "curation_status": "ChannelCurationStatus",
  372. "created": "u32",
  373. "principal_id": "PrincipalId"
  374. },
  375. "ChannelContentType": {
  376. "_enum": [
  377. "Video",
  378. "Music",
  379. "Ebook"
  380. ]
  381. },
  382. "ChannelCurationStatus": {
  383. "_enum": [
  384. "Normal",
  385. "Censored"
  386. ]
  387. },
  388. "ChannelPublicationStatus": {
  389. "_enum": [
  390. "Public",
  391. "Unlisted"
  392. ]
  393. },
  394. "CurationActor": {
  395. "_enum": {
  396. "Lead": "Null",
  397. "Curator": "CuratorId"
  398. }
  399. },
  400. "Curator": {
  401. "role_account": "GenericAccountId",
  402. "reward_relationship": "Option<u64>",
  403. "role_stake_profile": "Option<CuratorRoleStakeProfile>",
  404. "stage": "CuratorRoleStage",
  405. "induction": "CuratorInduction",
  406. "principal_id": "PrincipalId"
  407. },
  408. "CuratorApplication": {
  409. "role_account": "GenericAccountId",
  410. "curator_opening_id": "CuratorOpeningId",
  411. "member_id": "MemberId",
  412. "application_id": "HiringApplicationId"
  413. },
  414. "CuratorOpening": {
  415. "opening_id": "u64",
  416. "curator_applications": "Vec<CuratorApplicationId>",
  417. "policy_commitment": "OpeningPolicyCommitment"
  418. },
  419. "Lead": {
  420. "member_id": "MemberId",
  421. "role_account": "GenericAccountId",
  422. "reward_relationship": "Option<u64>",
  423. "inducted": "u32",
  424. "stage": "LeadRoleState"
  425. },
  426. "OpeningPolicyCommitment": {
  427. "application_rationing_policy": "Option<ApplicationRationingPolicy>",
  428. "max_review_period_length": "u32",
  429. "application_staking_policy": "Option<StakingPolicy>",
  430. "role_staking_policy": "Option<StakingPolicy>",
  431. "role_slashing_terms": "SlashingTerms",
  432. "fill_opening_successful_applicant_application_stake_unstaking_period": "Option<u32>",
  433. "fill_opening_failed_applicant_application_stake_unstaking_period": "Option<u32>",
  434. "fill_opening_failed_applicant_role_stake_unstaking_period": "Option<u32>",
  435. "terminate_curator_application_stake_unstaking_period": "Option<u32>",
  436. "terminate_curator_role_stake_unstaking_period": "Option<u32>",
  437. "exit_curator_role_application_stake_unstaking_period": "Option<u32>",
  438. "exit_curator_role_stake_unstaking_period": "Option<u32>"
  439. },
  440. "Principal": {
  441. "_enum": {
  442. "Lead": "Null",
  443. "Curator": "CuratorId",
  444. "ChannelOwner": "ChannelId"
  445. }
  446. },
  447. "WorkingGroupUnstaker": {
  448. "_enum": {
  449. "Lead": "LeadId",
  450. "Curator": "CuratorId"
  451. }
  452. },
  453. "CuratorApplicationIdToCuratorIdMap": "BTreeMap<HiringApplicationId,CuratorId>",
  454. "CuratorApplicationIdSet": "BTreeSet<CuratorApplicationId>",
  455. "CuratorRoleStakeProfile": {
  456. "stake_id": "u64",
  457. "termination_unstaking_period": "Option<u32>",
  458. "exit_unstaking_period": "Option<u32>"
  459. },
  460. "CuratorRoleStage": {
  461. "_enum": {
  462. "Active": "Null",
  463. "Unstaking": "CuratorExitSummary",
  464. "Exited": "CuratorExitSummary"
  465. }
  466. },
  467. "CuratorExitSummary": {
  468. "origin": "CuratorExitInitiationOrigin",
  469. "initiated_at_block_number": "u32",
  470. "rationale_text": "Text"
  471. },
  472. "CuratorExitInitiationOrigin": {
  473. "_enum": [
  474. "Lead",
  475. "Curator"
  476. ]
  477. },
  478. "LeadRoleState": {
  479. "_enum": {
  480. "Active": "Null",
  481. "Exited": "ExitedLeadRole"
  482. }
  483. },
  484. "ExitedLeadRole": {
  485. "initiated_at_block_number": "u32"
  486. },
  487. "CuratorInduction": {
  488. "lead": "LeadId",
  489. "curator_application_id": "CuratorApplicationId",
  490. "at_block": "u32"
  491. },
  492. "RationaleText": "Bytes",
  493. "ApplicationOf": {
  494. "role_account_id": "GenericAccountId",
  495. "opening_id": "u64",
  496. "member_id": "MemberId",
  497. "application_id": "HiringApplicationId"
  498. },
  499. "ApplicationIdSet": "BTreeSet<HiringApplicationId>",
  500. "ApplicationIdToWorkerIdMap": "BTreeMap<HiringApplicationId,WorkerId>",
  501. "WorkerId": "u64",
  502. "WorkerOf": {
  503. "member_id": "MemberId",
  504. "role_account_id": "GenericAccountId",
  505. "reward_relationship": "Option<u64>",
  506. "role_stake_profile": "Option<RoleStakeProfile>"
  507. },
  508. "OpeningOf": {
  509. "hiring_opening_id": "u64",
  510. "applications": "Vec<HiringApplicationId>",
  511. "policy_commitment": "WorkingGroupOpeningPolicyCommitment",
  512. "opening_type": "OpeningType"
  513. },
  514. "StorageProviderId": "u64",
  515. "OpeningType": {
  516. "_enum": {
  517. "Leader": "Null",
  518. "Worker": "Null"
  519. }
  520. },
  521. "HiringApplicationId": "u64",
  522. "RewardPolicy": {
  523. "amount_per_payout": "u128",
  524. "next_payment_at_block": "u32",
  525. "payout_interval": "Option<u32>"
  526. },
  527. "WorkingGroupOpeningPolicyCommitment": {
  528. "application_rationing_policy": "Option<ApplicationRationingPolicy>",
  529. "max_review_period_length": "u32",
  530. "application_staking_policy": "Option<StakingPolicy>",
  531. "role_staking_policy": "Option<StakingPolicy>",
  532. "role_slashing_terms": "SlashingTerms",
  533. "fill_opening_successful_applicant_application_stake_unstaking_period": "Option<u32>",
  534. "fill_opening_failed_applicant_application_stake_unstaking_period": "Option<u32>",
  535. "fill_opening_failed_applicant_role_stake_unstaking_period": "Option<u32>",
  536. "terminate_application_stake_unstaking_period": "Option<u32>",
  537. "terminate_role_stake_unstaking_period": "Option<u32>",
  538. "exit_role_application_stake_unstaking_period": "Option<u32>",
  539. "exit_role_stake_unstaking_period": "Option<u32>"
  540. },
  541. "RoleStakeProfile": {
  542. "stake_id": "u64",
  543. "termination_unstaking_period": "Option<u32>",
  544. "exit_unstaking_period": "Option<u32>"
  545. },
  546. "Url": "Text",
  547. "IPNSIdentity": "Text",
  548. "ServiceProviderRecord": {
  549. "identity": "IPNSIdentity",
  550. "expires_at": "u32"
  551. },
  552. "ContentId": "[u8;32]",
  553. "LiaisonJudgement": {
  554. "_enum": [
  555. "Pending",
  556. "Accepted",
  557. "Rejected"
  558. ]
  559. },
  560. "DataObject": {
  561. "owner": "MemberId",
  562. "added_at": "BlockAndTime",
  563. "type_id": "DataObjectTypeId",
  564. "liaison": "StorageProviderId",
  565. "liaison_judgement": "LiaisonJudgement",
  566. "ipfs_content_id": "Text"
  567. },
  568. "DataObjectStorageRelationshipId": "u64",
  569. "DataObjectStorageRelationship": {
  570. "content_id": "ContentId",
  571. "storage_provider": "StorageProviderId",
  572. "ready": "bool"
  573. },
  574. "DataObjectTypeId": "u64",
  575. "DataObjectType": {
  576. "description": "Text",
  577. "active": "bool"
  578. },
  579. "DataObjectsMap": "BTreeMap<ContentId,DataObject>",
  580. "ProposalId": "u32",
  581. "ProposalStatus": {
  582. "_enum": {
  583. "Active": "Option<ActiveStake>",
  584. "Finalized": "Finalized"
  585. }
  586. },
  587. "ProposalOf": {
  588. "parameters": "ProposalParameters",
  589. "proposerId": "MemberId",
  590. "title": "Text",
  591. "description": "Text",
  592. "createdAt": "u32",
  593. "status": "ProposalStatus",
  594. "votingResults": "VotingResults"
  595. },
  596. "ProposalDetails": {
  597. "_enum": {
  598. "Text": "Text",
  599. "RuntimeUpgrade": "Bytes",
  600. "SetElectionParameters": "ElectionParameters",
  601. "Spending": "(Balance,AccountId)",
  602. "SetLead": "Option<SetLeadParams>",
  603. "SetContentWorkingGroupMintCapacity": "u128",
  604. "EvictStorageProvider": "GenericAccountId",
  605. "SetValidatorCount": "u32",
  606. "SetStorageRoleParameters": "RoleParameters",
  607. "AddWorkingGroupLeaderOpening": "AddOpeningParameters",
  608. "BeginReviewWorkingGroupLeaderApplication": "(u64,WorkingGroup)",
  609. "FillWorkingGroupLeaderOpening": "FillOpeningParameters",
  610. "SetWorkingGroupMintCapacity": "(Balance,WorkingGroup)",
  611. "DecreaseWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  612. "SlashWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  613. "SetWorkingGroupLeaderReward": "(WorkerId,Balance,WorkingGroup)",
  614. "TerminateWorkingGroupLeaderRole": "TerminateRoleParameters"
  615. }
  616. },
  617. "ProposalDetailsOf": {
  618. "_enum": {
  619. "Text": "Text",
  620. "RuntimeUpgrade": "Bytes",
  621. "SetElectionParameters": "ElectionParameters",
  622. "Spending": "(Balance,AccountId)",
  623. "SetLead": "Option<SetLeadParams>",
  624. "SetContentWorkingGroupMintCapacity": "u128",
  625. "EvictStorageProvider": "GenericAccountId",
  626. "SetValidatorCount": "u32",
  627. "SetStorageRoleParameters": "RoleParameters",
  628. "AddWorkingGroupLeaderOpening": "AddOpeningParameters",
  629. "BeginReviewWorkingGroupLeaderApplication": "(u64,WorkingGroup)",
  630. "FillWorkingGroupLeaderOpening": "FillOpeningParameters",
  631. "SetWorkingGroupMintCapacity": "(Balance,WorkingGroup)",
  632. "DecreaseWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  633. "SlashWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  634. "SetWorkingGroupLeaderReward": "(WorkerId,Balance,WorkingGroup)",
  635. "TerminateWorkingGroupLeaderRole": "TerminateRoleParameters"
  636. }
  637. },
  638. "VotingResults": {
  639. "abstensions": "u32",
  640. "approvals": "u32",
  641. "rejections": "u32",
  642. "slashes": "u32"
  643. },
  644. "ProposalParameters": {
  645. "votingPeriod": "u32",
  646. "gracePeriod": "u32",
  647. "approvalQuorumPercentage": "u32",
  648. "approvalThresholdPercentage": "u32",
  649. "slashingQuorumPercentage": "u32",
  650. "slashingThresholdPercentage": "u32",
  651. "requiredStake": "Option<u128>"
  652. },
  653. "VoteKind": {
  654. "_enum": [
  655. "Approve",
  656. "Reject",
  657. "Slash",
  658. "Abstain"
  659. ]
  660. },
  661. "ThreadCounter": {
  662. "author_id": "MemberId",
  663. "counter": "u32"
  664. },
  665. "DiscussionThread": {
  666. "title": "Bytes",
  667. "created_at": "u32",
  668. "author_id": "MemberId"
  669. },
  670. "DiscussionPost": {
  671. "text": "Bytes",
  672. "created_at": "u32",
  673. "updated_at": "u32",
  674. "author_id": "MemberId",
  675. "thread_id": "ThreadId",
  676. "edition_number": "u32"
  677. },
  678. "AddOpeningParameters": {
  679. "activate_at": "ActivateOpeningAt",
  680. "commitment": "WorkingGroupOpeningPolicyCommitment",
  681. "human_readable_text": "Bytes",
  682. "working_group": "WorkingGroup"
  683. },
  684. "FillOpeningParameters": {
  685. "opening_id": "u64",
  686. "successful_application_id": "HiringApplicationId",
  687. "reward_policy": "Option<RewardPolicy>",
  688. "working_group": "WorkingGroup"
  689. },
  690. "TerminateRoleParameters": {
  691. "worker_id": "WorkerId",
  692. "rationale": "Bytes",
  693. "slash": "bool",
  694. "working_group": "WorkingGroup"
  695. },
  696. "ActiveStake": {
  697. "stake_id": "u64",
  698. "source_account_id": "GenericAccountId"
  699. },
  700. "Finalized": {
  701. "proposalStatus": "ProposalDecisionStatus",
  702. "finalizedAt": "u32",
  703. "encodedUnstakingErrorDueToBrokenRuntime": "Option<Vec<u8>>",
  704. "stakeDataAfterUnstakingError": "Option<ActiveStake>"
  705. },
  706. "ProposalDecisionStatus": {
  707. "_enum": {
  708. "Canceled": "Null",
  709. "Vetoed": "Null",
  710. "Rejected": "Null",
  711. "Slashed": "Null",
  712. "Expired": "Null",
  713. "Approved": "Approved"
  714. }
  715. },
  716. "ExecutionFailed": {
  717. "error": "Text"
  718. },
  719. "Approved": {
  720. "_enum": {
  721. "PendingExecution": "Null",
  722. "Executed": "Null",
  723. "ExecutionFailed": "ExecutionFailed"
  724. }
  725. },
  726. "SetLeadParams": "(MemberId,GenericAccountId)",
  727. "Nonce": "u64",
  728. "EntityId": "u64",
  729. "ClassId": "u64",
  730. "CuratorGroupId": "u64",
  731. "VecMaxLength": "u16",
  732. "TextMaxLength": "u16",
  733. "HashedTextMaxLength": "Option<u16>",
  734. "PropertyId": "u16",
  735. "SchemaId": "u16",
  736. "SameController": "bool",
  737. "ClassPermissions": {
  738. "any_member": "bool",
  739. "entity_creation_blocked": "bool",
  740. "all_entity_property_values_locked": "bool",
  741. "maintainers": "Vec<CuratorGroupId>"
  742. },
  743. "SinglePropertyType": {
  744. "_enum": {
  745. "Bool": "Null",
  746. "Uint16": "Null",
  747. "Uint32": "Null",
  748. "Uint64": "Null",
  749. "Int16": "Null",
  750. "Int32": "Null",
  751. "Int64": "Null",
  752. "Text": "TextMaxLength",
  753. "Hash": "HashedTextMaxLength",
  754. "Reference": "(ClassId,SameController)"
  755. }
  756. },
  757. "VecPropertyType": {
  758. "vec_type": "SinglePropertyType",
  759. "max_length": "VecMaxLength"
  760. },
  761. "PropertyType": {
  762. "_enum": {
  763. "Single": "SinglePropertyType",
  764. "Vector": "VecPropertyType"
  765. }
  766. },
  767. "PropertyLockingPolicy": {
  768. "is_locked_from_maintainer": "bool",
  769. "is_locked_from_controller": "bool"
  770. },
  771. "Property": {
  772. "property_type": "PropertyType",
  773. "required": "bool",
  774. "unique": "bool",
  775. "name": "Text",
  776. "description": "Text",
  777. "locking_policy": "PropertyLockingPolicy"
  778. },
  779. "Schema": {
  780. "properties": "Vec<PropertyId>",
  781. "is_active": "bool"
  782. },
  783. "Class": {
  784. "class_permissions": "ClassPermissions",
  785. "properties": "Vec<Property>",
  786. "schemas": "Vec<Schema>",
  787. "name": "Text",
  788. "description": "Text",
  789. "maximum_entities_count": "EntityId",
  790. "current_number_of_entities": "EntityId",
  791. "default_entity_creation_voucher_upper_bound": "EntityId"
  792. },
  793. "EntityController": {
  794. "_enum": {
  795. "Maintainers": "Null",
  796. "Member": "MemberId",
  797. "Lead": "Null"
  798. }
  799. },
  800. "EntityPermissions": {
  801. "controller": "EntityController",
  802. "frozen": "bool",
  803. "referenceable": "bool"
  804. },
  805. "StoredValue": {
  806. "_enum": {
  807. "Bool": "bool",
  808. "Uint16": "u16",
  809. "Uint32": "u32",
  810. "Uint64": "u64",
  811. "Int16": "i16",
  812. "Int32": "i32",
  813. "Int64": "i64",
  814. "Text": "Text",
  815. "Hash": "Hash",
  816. "Reference": "EntityId"
  817. }
  818. },
  819. "VecStoredValue": {
  820. "_enum": {
  821. "Bool": "Vec<bool>",
  822. "Uint16": "Vec<u16>",
  823. "Uint32": "Vec<u32>",
  824. "Uint64": "Vec<u64>",
  825. "Int16": "Vec<i16>",
  826. "Int32": "Vec<i32>",
  827. "Int64": "Vec<i64>",
  828. "Hash": "Vec<Hash>",
  829. "Text": "Vec<Text>",
  830. "Reference": "Vec<EntityId>"
  831. }
  832. },
  833. "VecStoredPropertyValue": {
  834. "vec_value": "VecStoredValue",
  835. "nonce": "Nonce"
  836. },
  837. "StoredPropertyValue": {
  838. "_enum": {
  839. "Single": "StoredValue",
  840. "Vector": "VecStoredPropertyValue"
  841. }
  842. },
  843. "InboundReferenceCounter": {
  844. "total": "u32",
  845. "same_owner": "u32"
  846. },
  847. "Entity": {
  848. "entity_permissions": "EntityPermissions",
  849. "class_id": "ClassId",
  850. "supported_schemas": "Vec<SchemaId>",
  851. "reference_counter": "InboundReferenceCounter"
  852. },
  853. "CuratorGroup": {
  854. "curators": "Vec<u64>",
  855. "active": "bool",
  856. "number_of_classes_maintained": "u32"
  857. },
  858. "EntityCreationVoucher": {
  859. "maximum_entities_count": "EntityId",
  860. "entities_created": "EntityId"
  861. },
  862. "Actor": {
  863. "_enum": {
  864. "Curator": "(CuratorGroupId,u64)",
  865. "Member": "MemberId",
  866. "Lead": "Null"
  867. }
  868. },
  869. "EntityReferenceCounterSideEffect": {
  870. "total": "i32",
  871. "same_owner": "i32"
  872. },
  873. "ReferenceCounterSideEffects": "BTreeMap<EntityId,EntityReferenceCounterSideEffect>",
  874. "SideEffects": "Option<ReferenceCounterSideEffects>",
  875. "SideEffect": "Option<(EntityId,EntityReferenceCounterSideEffect)>",
  876. "Status": "bool",
  877. "InputValue": {
  878. "_enum": {
  879. "Bool": "bool",
  880. "Uint16": "u16",
  881. "Uint32": "u32",
  882. "Uint64": "u64",
  883. "Int16": "i16",
  884. "Int32": "i32",
  885. "Int64": "i64",
  886. "Text": "Text",
  887. "TextToHash": "Text",
  888. "Reference": "EntityId"
  889. }
  890. },
  891. "VecInputValue": {
  892. "_enum": {
  893. "Bool": "Vec<bool>",
  894. "Uint16": "Vec<u16>",
  895. "Uint32": "Vec<u32>",
  896. "Uint64": "Vec<u64>",
  897. "Int16": "Vec<i16>",
  898. "Int32": "Vec<i32>",
  899. "Int64": "Vec<i64>",
  900. "TextToHash": "Vec<Text>",
  901. "Text": "Vec<Text>",
  902. "Reference": "Vec<EntityId>"
  903. }
  904. },
  905. "InputPropertyValue": {
  906. "_enum": {
  907. "Single": "InputValue",
  908. "Vector": "VecInputValue"
  909. }
  910. },
  911. "ParameterizedEntity": {
  912. "_enum": {
  913. "InternalEntityJustAdded": "u32",
  914. "ExistingEntity": "EntityId"
  915. }
  916. },
  917. "ParametrizedPropertyValue": {
  918. "_enum": {
  919. "InputPropertyValue": "InputPropertyValue",
  920. "InternalEntityJustAdded": "u32",
  921. "InternalEntityVec": "Vec<ParameterizedEntity>"
  922. }
  923. },
  924. "ParametrizedClassPropertyValue": {
  925. "in_class_index": "PropertyId",
  926. "value": "ParametrizedPropertyValue"
  927. },
  928. "CreateEntityOperation": {
  929. "class_id": "ClassId"
  930. },
  931. "UpdatePropertyValuesOperation": {
  932. "entity_id": "ParameterizedEntity",
  933. "new_parametrized_property_values": "Vec<ParametrizedClassPropertyValue>"
  934. },
  935. "AddSchemaSupportToEntityOperation": {
  936. "entity_id": "ParameterizedEntity",
  937. "schema_id": "SchemaId",
  938. "parametrized_property_values": "Vec<ParametrizedClassPropertyValue>"
  939. },
  940. "OperationType": {
  941. "_enum": {
  942. "CreateEntity": "CreateEntityOperation",
  943. "UpdatePropertyValues": "UpdatePropertyValuesOperation",
  944. "AddSchemaSupportToEntity": "AddSchemaSupportToEntityOperation"
  945. }
  946. },
  947. "ClassPermissionsType": "Null",
  948. "ClassPropertyValue": "Null",
  949. "Operation": "Null",
  950. "ReferenceConstraint": "Null",
  951. "Address": "AccountId",
  952. "LookupSource": "AccountId"
  953. }