defs.json 29 KB

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