defs.json 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062
  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. "ProposalId": "u32",
  556. "ProposalStatus": {
  557. "_enum": {
  558. "Active": "Option<ActiveStake>",
  559. "Finalized": "Finalized"
  560. }
  561. },
  562. "ProposalOf": {
  563. "parameters": "ProposalParameters",
  564. "proposerId": "MemberId",
  565. "title": "Text",
  566. "description": "Text",
  567. "createdAt": "u32",
  568. "status": "ProposalStatus",
  569. "votingResults": "VotingResults"
  570. },
  571. "ProposalDetails": {
  572. "_enum": {
  573. "Text": "Text",
  574. "RuntimeUpgrade": "Bytes",
  575. "SetElectionParameters": "ElectionParameters",
  576. "Spending": "(Balance,AccountId)",
  577. "SetLead": "Option<SetLeadParams>",
  578. "SetContentWorkingGroupMintCapacity": "u128",
  579. "EvictStorageProvider": "GenericAccountId",
  580. "SetValidatorCount": "u32",
  581. "SetStorageRoleParameters": "RoleParameters",
  582. "AddWorkingGroupLeaderOpening": "AddOpeningParameters",
  583. "BeginReviewWorkingGroupLeaderApplication": "(OpeningId,WorkingGroup)",
  584. "FillWorkingGroupLeaderOpening": "FillOpeningParameters",
  585. "SetWorkingGroupMintCapacity": "(Balance,WorkingGroup)",
  586. "DecreaseWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  587. "SlashWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  588. "SetWorkingGroupLeaderReward": "(WorkerId,Balance,WorkingGroup)",
  589. "TerminateWorkingGroupLeaderRole": "TerminateRoleParameters"
  590. }
  591. },
  592. "ProposalDetailsOf": {
  593. "_enum": {
  594. "Text": "Text",
  595. "RuntimeUpgrade": "Bytes",
  596. "SetElectionParameters": "ElectionParameters",
  597. "Spending": "(Balance,AccountId)",
  598. "SetLead": "Option<SetLeadParams>",
  599. "SetContentWorkingGroupMintCapacity": "u128",
  600. "EvictStorageProvider": "GenericAccountId",
  601. "SetValidatorCount": "u32",
  602. "SetStorageRoleParameters": "RoleParameters",
  603. "AddWorkingGroupLeaderOpening": "AddOpeningParameters",
  604. "BeginReviewWorkingGroupLeaderApplication": "(OpeningId,WorkingGroup)",
  605. "FillWorkingGroupLeaderOpening": "FillOpeningParameters",
  606. "SetWorkingGroupMintCapacity": "(Balance,WorkingGroup)",
  607. "DecreaseWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  608. "SlashWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  609. "SetWorkingGroupLeaderReward": "(WorkerId,Balance,WorkingGroup)",
  610. "TerminateWorkingGroupLeaderRole": "TerminateRoleParameters"
  611. }
  612. },
  613. "VotingResults": {
  614. "abstensions": "u32",
  615. "approvals": "u32",
  616. "rejections": "u32",
  617. "slashes": "u32"
  618. },
  619. "ProposalParameters": {
  620. "votingPeriod": "u32",
  621. "gracePeriod": "u32",
  622. "approvalQuorumPercentage": "u32",
  623. "approvalThresholdPercentage": "u32",
  624. "slashingQuorumPercentage": "u32",
  625. "slashingThresholdPercentage": "u32",
  626. "requiredStake": "Option<u128>"
  627. },
  628. "VoteKind": {
  629. "_enum": [
  630. "Approve",
  631. "Reject",
  632. "Slash",
  633. "Abstain"
  634. ]
  635. },
  636. "ThreadCounter": {
  637. "author_id": "MemberId",
  638. "counter": "u32"
  639. },
  640. "DiscussionThread": {
  641. "title": "Bytes",
  642. "created_at": "u32",
  643. "author_id": "MemberId"
  644. },
  645. "DiscussionPost": {
  646. "text": "Bytes",
  647. "created_at": "u32",
  648. "updated_at": "u32",
  649. "author_id": "MemberId",
  650. "thread_id": "ThreadId",
  651. "edition_number": "u32"
  652. },
  653. "AddOpeningParameters": {
  654. "activate_at": "ActivateOpeningAt",
  655. "commitment": "WorkingGroupOpeningPolicyCommitment",
  656. "human_readable_text": "Bytes",
  657. "working_group": "WorkingGroup"
  658. },
  659. "FillOpeningParameters": {
  660. "opening_id": "OpeningId",
  661. "successful_application_id": "ApplicationId",
  662. "reward_policy": "Option<RewardPolicy>",
  663. "working_group": "WorkingGroup"
  664. },
  665. "TerminateRoleParameters": {
  666. "worker_id": "WorkerId",
  667. "rationale": "Bytes",
  668. "slash": "bool",
  669. "working_group": "WorkingGroup"
  670. },
  671. "ActiveStake": {
  672. "stake_id": "StakeId",
  673. "source_account_id": "GenericAccountId"
  674. },
  675. "Finalized": {
  676. "proposalStatus": "ProposalDecisionStatus",
  677. "finalizedAt": "u32",
  678. "encodedUnstakingErrorDueToBrokenRuntime": "Option<Vec<u8>>",
  679. "stakeDataAfterUnstakingError": "Option<ActiveStake>"
  680. },
  681. "ProposalDecisionStatus": {
  682. "_enum": {
  683. "Canceled": "Null",
  684. "Vetoed": "Null",
  685. "Rejected": "Null",
  686. "Slashed": "Null",
  687. "Expired": "Null",
  688. "Approved": "Approved"
  689. }
  690. },
  691. "ExecutionFailed": {
  692. "error": "Text"
  693. },
  694. "Approved": {
  695. "_enum": {
  696. "PendingExecution": "Null",
  697. "Executed": "Null",
  698. "ExecutionFailed": "ExecutionFailed"
  699. }
  700. },
  701. "SetLeadParams": "(MemberId,GenericAccountId)",
  702. "Nonce": "u64",
  703. "EntityId": "u64",
  704. "ClassId": "u64",
  705. "CuratorGroupId": "u64",
  706. "VecMaxLength": "u16",
  707. "TextMaxLength": "u16",
  708. "HashedTextMaxLength": "Option<u16>",
  709. "PropertyId": "u16",
  710. "SchemaId": "u16",
  711. "SameController": "bool",
  712. "ClassPermissions": {
  713. "any_member": "bool",
  714. "entity_creation_blocked": "bool",
  715. "all_entity_property_values_locked": "bool",
  716. "maintainers": "Vec<CuratorGroupId>"
  717. },
  718. "PropertyTypeSingle": {
  719. "_enum": {
  720. "Bool": "Null",
  721. "Uint16": "Null",
  722. "Uint32": "Null",
  723. "Uint64": "Null",
  724. "Int16": "Null",
  725. "Int32": "Null",
  726. "Int64": "Null",
  727. "Text": "TextMaxLength",
  728. "Hash": "HashedTextMaxLength",
  729. "Reference": "(ClassId,SameController)"
  730. }
  731. },
  732. "PropertyTypeVector": {
  733. "vec_type": "PropertyTypeSingle",
  734. "max_length": "VecMaxLength"
  735. },
  736. "PropertyType": {
  737. "_enum": {
  738. "Single": "PropertyTypeSingle",
  739. "Vector": "PropertyTypeVector"
  740. }
  741. },
  742. "PropertyLockingPolicy": {
  743. "is_locked_from_maintainer": "bool",
  744. "is_locked_from_controller": "bool"
  745. },
  746. "Property": {
  747. "property_type": "PropertyType",
  748. "required": "bool",
  749. "unique": "bool",
  750. "name": "Text",
  751. "description": "Text",
  752. "locking_policy": "PropertyLockingPolicy"
  753. },
  754. "Schema": {
  755. "properties": "Vec<PropertyId>",
  756. "is_active": "bool"
  757. },
  758. "Class": {
  759. "class_permissions": "ClassPermissions",
  760. "properties": "Vec<Property>",
  761. "schemas": "Vec<Schema>",
  762. "name": "Text",
  763. "description": "Text",
  764. "maximum_entities_count": "EntityId",
  765. "current_number_of_entities": "EntityId",
  766. "default_entity_creation_voucher_upper_bound": "EntityId"
  767. },
  768. "ClassOf": {
  769. "class_permissions": "ClassPermissions",
  770. "properties": "Vec<Property>",
  771. "schemas": "Vec<Schema>",
  772. "name": "Text",
  773. "description": "Text",
  774. "maximum_entities_count": "EntityId",
  775. "current_number_of_entities": "EntityId",
  776. "default_entity_creation_voucher_upper_bound": "EntityId"
  777. },
  778. "EntityController": {
  779. "_enum": {
  780. "Maintainers": "Null",
  781. "Member": "MemberId",
  782. "Lead": "Null"
  783. }
  784. },
  785. "EntityPermissions": {
  786. "controller": "EntityController",
  787. "frozen": "bool",
  788. "referenceable": "bool"
  789. },
  790. "StoredValue": {
  791. "_enum": {
  792. "Bool": "bool",
  793. "Uint16": "u16",
  794. "Uint32": "u32",
  795. "Uint64": "u64",
  796. "Int16": "i16",
  797. "Int32": "i32",
  798. "Int64": "i64",
  799. "Text": "Text",
  800. "Hash": "Hash",
  801. "Reference": "EntityId"
  802. }
  803. },
  804. "VecStoredValue": {
  805. "_enum": {
  806. "Bool": "Vec<bool>",
  807. "Uint16": "Vec<u16>",
  808. "Uint32": "Vec<u32>",
  809. "Uint64": "Vec<u64>",
  810. "Int16": "Vec<i16>",
  811. "Int32": "Vec<i32>",
  812. "Int64": "Vec<i64>",
  813. "Hash": "Vec<Hash>",
  814. "Text": "Vec<Text>",
  815. "Reference": "Vec<EntityId>"
  816. }
  817. },
  818. "VecStoredPropertyValue": {
  819. "vec_value": "VecStoredValue",
  820. "nonce": "Nonce"
  821. },
  822. "StoredPropertyValue": {
  823. "_enum": {
  824. "Single": "StoredValue",
  825. "Vector": "VecStoredPropertyValue"
  826. }
  827. },
  828. "InboundReferenceCounter": {
  829. "total": "u32",
  830. "same_owner": "u32"
  831. },
  832. "Entity": {
  833. "entity_permissions": "EntityPermissions",
  834. "class_id": "ClassId",
  835. "supported_schemas": "Vec<SchemaId>",
  836. "values": "BTreeMap<PropertyId,StoredPropertyValue>",
  837. "reference_counter": "InboundReferenceCounter"
  838. },
  839. "EntityOf": {
  840. "entity_permissions": "EntityPermissions",
  841. "class_id": "ClassId",
  842. "supported_schemas": "Vec<SchemaId>",
  843. "values": "BTreeMap<PropertyId,StoredPropertyValue>",
  844. "reference_counter": "InboundReferenceCounter"
  845. },
  846. "CuratorGroup": {
  847. "curators": "Vec<u64>",
  848. "active": "bool",
  849. "number_of_classes_maintained": "u32"
  850. },
  851. "EntityCreationVoucher": {
  852. "maximum_entities_count": "EntityId",
  853. "entities_created": "EntityId"
  854. },
  855. "Actor": {
  856. "_enum": {
  857. "Curator": "(CuratorGroupId,u64)",
  858. "Member": "MemberId",
  859. "Lead": "Null"
  860. }
  861. },
  862. "EntityReferenceCounterSideEffect": {
  863. "total": "i32",
  864. "same_owner": "i32"
  865. },
  866. "ReferenceCounterSideEffects": "BTreeMap<EntityId,EntityReferenceCounterSideEffect>",
  867. "SideEffects": "Option<ReferenceCounterSideEffects>",
  868. "SideEffect": "Option<(EntityId,EntityReferenceCounterSideEffect)>",
  869. "Status": "bool",
  870. "InputValue": {
  871. "_enum": {
  872. "Bool": "bool",
  873. "Uint16": "u16",
  874. "Uint32": "u32",
  875. "Uint64": "u64",
  876. "Int16": "i16",
  877. "Int32": "i32",
  878. "Int64": "i64",
  879. "Text": "Text",
  880. "TextToHash": "Text",
  881. "Reference": "EntityId"
  882. }
  883. },
  884. "VecInputValue": {
  885. "_enum": {
  886. "Bool": "Vec<bool>",
  887. "Uint16": "Vec<u16>",
  888. "Uint32": "Vec<u32>",
  889. "Uint64": "Vec<u64>",
  890. "Int16": "Vec<i16>",
  891. "Int32": "Vec<i32>",
  892. "Int64": "Vec<i64>",
  893. "TextToHash": "Vec<Text>",
  894. "Text": "Vec<Text>",
  895. "Reference": "Vec<EntityId>"
  896. }
  897. },
  898. "InputPropertyValue": {
  899. "_enum": {
  900. "Single": "InputValue",
  901. "Vector": "VecInputValue"
  902. }
  903. },
  904. "ParameterizedEntity": {
  905. "_enum": {
  906. "InternalEntityJustAdded": "u32",
  907. "ExistingEntity": "EntityId"
  908. }
  909. },
  910. "ParametrizedPropertyValue": {
  911. "_enum": {
  912. "InputPropertyValue": "InputPropertyValue",
  913. "InternalEntityJustAdded": "u32",
  914. "InternalEntityVec": "Vec<ParameterizedEntity>"
  915. }
  916. },
  917. "ParametrizedClassPropertyValue": {
  918. "in_class_index": "PropertyId",
  919. "value": "ParametrizedPropertyValue"
  920. },
  921. "CreateEntityOperation": {
  922. "class_id": "ClassId"
  923. },
  924. "UpdatePropertyValuesOperation": {
  925. "entity_id": "ParameterizedEntity",
  926. "new_parametrized_property_values": "Vec<ParametrizedClassPropertyValue>"
  927. },
  928. "AddSchemaSupportToEntityOperation": {
  929. "entity_id": "ParameterizedEntity",
  930. "schema_id": "SchemaId",
  931. "parametrized_property_values": "Vec<ParametrizedClassPropertyValue>"
  932. },
  933. "OperationType": {
  934. "_enum": {
  935. "CreateEntity": "CreateEntityOperation",
  936. "UpdatePropertyValues": "UpdatePropertyValuesOperation",
  937. "AddSchemaSupportToEntity": "AddSchemaSupportToEntityOperation"
  938. }
  939. },
  940. "InputEntityValuesMap": "BTreeMap<PropertyId,InputPropertyValue>",
  941. "ClassPermissionsType": "Null",
  942. "ClassPropertyValue": "Null",
  943. "Operation": "Null",
  944. "ReferenceConstraint": "Null",
  945. "FailedAt": "u32",
  946. "StorageBucketId": "u64",
  947. "StorageBucketsPerBagValueConstraint": {
  948. "min": "u64",
  949. "max_min_diff": "u64"
  950. },
  951. "DataObjectId": "u64",
  952. "DynamicBagId": {
  953. "_enum": {
  954. "Member": "MemberId",
  955. "Channel": "u64"
  956. }
  957. },
  958. "Voucher": {
  959. "sizeLimit": "u64",
  960. "objectsLimit": "u64",
  961. "sizeUsed": "u64",
  962. "objectsUsed": "u64"
  963. },
  964. "DynamicBagType": {
  965. "_enum": [
  966. "Member",
  967. "Channel"
  968. ]
  969. },
  970. "DynamicBagCreationPolicy": {
  971. "numberOfStorageBuckets": "u64"
  972. },
  973. "DynamicBagDeletionPrize": {
  974. "account_id": "GenericAccountId",
  975. "prize": "u128"
  976. },
  977. "DynamicBagDeletionPrizeRecord": {
  978. "account_id": "GenericAccountId",
  979. "prize": "u128"
  980. },
  981. "Bag": {
  982. "objects": "BTreeMap<DataObjectId,DataObject>",
  983. "stored_by": "StorageBucketIdSet",
  984. "distributed_by": "Vec<DistributionBucketId>",
  985. "deletion_prize": "Option<u128>"
  986. },
  987. "StorageBucket": {
  988. "operator_status": "StorageBucketOperatorStatus",
  989. "accepting_new_bags": "bool",
  990. "voucher": "Voucher",
  991. "metadata": "Bytes"
  992. },
  993. "StaticBagId": {
  994. "_enum": {
  995. "Council": "Null",
  996. "WorkingGroup": "WorkingGroup"
  997. }
  998. },
  999. "Static": {
  1000. "_enum": {
  1001. "Council": "Null",
  1002. "WorkingGroup": "WorkingGroup"
  1003. }
  1004. },
  1005. "Dynamic": {
  1006. "_enum": {
  1007. "Member": "MemberId",
  1008. "Channel": "u64"
  1009. }
  1010. },
  1011. "BagId": {
  1012. "_enum": {
  1013. "Static": "Static",
  1014. "Dynamic": "Dynamic"
  1015. }
  1016. },
  1017. "DataObjectCreationParameters": {
  1018. "size": "u64",
  1019. "ipfsContentId": "Bytes"
  1020. },
  1021. "BagIdType": {
  1022. "_enum": {
  1023. "Static": "Static",
  1024. "Dynamic": "Dynamic"
  1025. }
  1026. },
  1027. "UploadParameters": {
  1028. "authenticationKey": "Bytes",
  1029. "bagId": "BagId",
  1030. "objectCreationList": "Vec<DataObjectCreationParameters>",
  1031. "deletionPrizeSourceAccountId": "GenericAccountId",
  1032. "expectedDataSizeFee": "u128"
  1033. },
  1034. "StorageBucketIdSet": "BTreeSet<StorageBucketId>",
  1035. "DataObjectIdSet": "BTreeSet<DataObjectId>",
  1036. "ContentIdSet": "BTreeSet<Cid>",
  1037. "Cid": "Bytes",
  1038. "StorageBucketOperatorStatus": {
  1039. "_enum": {
  1040. "Missing": "Null",
  1041. "InvitedStorageWorker": "WorkerId",
  1042. "StorageWorker": "WorkerId"
  1043. }
  1044. },
  1045. "DataObject": {
  1046. "accepted": "bool",
  1047. "deletion_prize": "u128",
  1048. "size": "u64"
  1049. },
  1050. "DistributionBucketId": "u64",
  1051. "DistributionBucketFamilyId": "u64",
  1052. "DistributionBucket": {
  1053. "accepting_new_bags": "bool",
  1054. "distributing": "bool",
  1055. "pending_invitations": "Vec<WorkerId>",
  1056. "operators": "Vec<WorkerId>",
  1057. "assigned_bags": "u64"
  1058. },
  1059. "DistributionBucketFamily": {
  1060. "distribution_buckets": "BTreeMap<DistributionBucketId,DistributionBucket>"
  1061. }
  1062. }