defs.json 29 KB

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