typedefs.json 25 KB

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