defs.json 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849
  1. {
  2. "ContentId": "Null",
  3. "ContentParameters": "Null",
  4. "DataObjectStorageRelationship": "Null",
  5. "DataObjectStorageRelationshipId": "Null",
  6. "DataObjectType": "Null",
  7. "DataObjectTypeId": "Null",
  8. "NewAsset": "Null",
  9. "ObjectOwner": "Null",
  10. "StorageObjectOwner": "Null",
  11. "UploadingStatus": "Null",
  12. "VoucherLimit": "Null",
  13. "BlockAndTime": {
  14. "block": "u32",
  15. "time": "u64"
  16. },
  17. "ThreadId": "u64",
  18. "PostId": "u64",
  19. "InputValidationLengthConstraint": {
  20. "min": "u16",
  21. "max_min_diff": "u16"
  22. },
  23. "WorkingGroup": {
  24. "_enum": [
  25. "Storage",
  26. "Content",
  27. "OperationsAlpha",
  28. "Gateway",
  29. "Distribution",
  30. "OperationsBeta",
  31. "OperationsGamma"
  32. ]
  33. },
  34. "SlashingTerms": {
  35. "_enum": {
  36. "Unslashable": "Null",
  37. "Slashable": "SlashableTerms"
  38. }
  39. },
  40. "SlashableTerms": {
  41. "max_count": "u16",
  42. "max_percent_pts_per_time": "u16"
  43. },
  44. "MemoText": "Text",
  45. "Address": "AccountId",
  46. "LookupSource": "AccountId",
  47. "ChannelId": "u64",
  48. "Url": "Text",
  49. "EntryMethod": {
  50. "_enum": {
  51. "Paid": "u64",
  52. "Screening": "AccountId",
  53. "Genesis": "Null"
  54. }
  55. },
  56. "MemberId": "u64",
  57. "PaidTermId": "u64",
  58. "SubscriptionId": "u64",
  59. "Membership": {
  60. "handle": "Text",
  61. "avatar_uri": "Text",
  62. "about": "Text",
  63. "registered_at_block": "u32",
  64. "registered_at_time": "u64",
  65. "entry": "EntryMethod",
  66. "suspended": "bool",
  67. "subscription": "Option<SubscriptionId>",
  68. "root_account": "GenericAccountId",
  69. "controller_account": "GenericAccountId"
  70. },
  71. "PaidMembershipTerms": {
  72. "fee": "u128",
  73. "text": "Text"
  74. },
  75. "ActorId": "u64",
  76. "ElectionStage": {
  77. "_enum": {
  78. "Announcing": "u32",
  79. "Voting": "u32",
  80. "Revealing": "u32"
  81. }
  82. },
  83. "ElectionStake": {
  84. "new": "u128",
  85. "transferred": "u128"
  86. },
  87. "SealedVote": {
  88. "voter": "GenericAccountId",
  89. "commitment": "Hash",
  90. "stake": "ElectionStake",
  91. "vote": "Option<GenericAccountId>"
  92. },
  93. "TransferableStake": {
  94. "seat": "u128",
  95. "backing": "u128"
  96. },
  97. "ElectionParameters": {
  98. "announcing_period": "u32",
  99. "voting_period": "u32",
  100. "revealing_period": "u32",
  101. "council_size": "u32",
  102. "candidacy_limit": "u32",
  103. "new_term_duration": "u32",
  104. "min_council_stake": "u128",
  105. "min_voting_stake": "u128"
  106. },
  107. "Seat": {
  108. "member": "GenericAccountId",
  109. "stake": "u128",
  110. "backers": "Backers"
  111. },
  112. "Seats": "Vec<Seat>",
  113. "Backer": {
  114. "member": "GenericAccountId",
  115. "stake": "u128"
  116. },
  117. "Backers": "Vec<Backer>",
  118. "RoleParameters": {
  119. "min_stake": "u128",
  120. "min_actors": "u32",
  121. "max_actors": "u32",
  122. "reward": "u128",
  123. "reward_period": "u32",
  124. "bonding_period": "u32",
  125. "unbonding_period": "u32",
  126. "min_service_period": "u32",
  127. "startup_grace_period": "u32",
  128. "entry_request_fee": "u128"
  129. },
  130. "PostTextChange": {
  131. "expired_at": "BlockAndTime",
  132. "text": "Text"
  133. },
  134. "ModerationAction": {
  135. "moderated_at": "BlockAndTime",
  136. "moderator_id": "GenericAccountId",
  137. "rationale": "Text"
  138. },
  139. "ChildPositionInParentCategory": {
  140. "parent_id": "CategoryId",
  141. "child_nr_in_parent_category": "u32"
  142. },
  143. "CategoryId": "u64",
  144. "Category": {
  145. "id": "CategoryId",
  146. "title": "Text",
  147. "description": "Text",
  148. "created_at": "BlockAndTime",
  149. "deleted": "bool",
  150. "archived": "bool",
  151. "num_direct_subcategories": "u32",
  152. "num_direct_unmoderated_threads": "u32",
  153. "num_direct_moderated_threads": "u32",
  154. "position_in_parent_category": "Option<ChildPositionInParentCategory>",
  155. "moderator_id": "GenericAccountId"
  156. },
  157. "Thread": {
  158. "id": "ThreadId",
  159. "title": "Text",
  160. "category_id": "CategoryId",
  161. "nr_in_category": "u32",
  162. "moderation": "Option<ModerationAction>",
  163. "num_unmoderated_posts": "u32",
  164. "num_moderated_posts": "u32",
  165. "created_at": "BlockAndTime",
  166. "author_id": "GenericAccountId"
  167. },
  168. "Post": {
  169. "id": "PostId",
  170. "thread_id": "ThreadId",
  171. "nr_in_thread": "u32",
  172. "current_text": "Text",
  173. "moderation": "Option<ModerationAction>",
  174. "text_change_history": "Vec<PostTextChange>",
  175. "created_at": "BlockAndTime",
  176. "author_id": "GenericAccountId"
  177. },
  178. "ReplyId": "u64",
  179. "Reply": {
  180. "owner": "GenericAccountId",
  181. "thread_id": "ThreadId",
  182. "text": "Text",
  183. "moderation": "Option<ModerationAction>"
  184. },
  185. "StakeId": "u64",
  186. "Stake": {
  187. "created": "u32",
  188. "staking_status": "StakingStatus"
  189. },
  190. "StakingStatus": {
  191. "_enum": {
  192. "NotStaked": "Null",
  193. "Staked": "Staked"
  194. }
  195. },
  196. "Staked": {
  197. "staked_amount": "u128",
  198. "staked_status": "StakedStatus",
  199. "next_slash_id": "u64",
  200. "ongoing_slashes": "BTreeMap<u64,Slash>"
  201. },
  202. "StakedStatus": {
  203. "_enum": {
  204. "Normal": "Null",
  205. "Unstaking": "Unstaking"
  206. }
  207. },
  208. "Unstaking": {
  209. "started_at_block": "u32",
  210. "is_active": "bool",
  211. "blocks_remaining_in_active_period_for_unstaking": "u32"
  212. },
  213. "Slash": {
  214. "started_at_block": "u32",
  215. "is_active": "bool",
  216. "blocks_remaining_in_active_period_for_slashing": "u32",
  217. "slash_amount": "u128"
  218. },
  219. "MintId": "u64",
  220. "Mint": {
  221. "capacity": "u128",
  222. "next_adjustment": "Option<NextAdjustment>",
  223. "created_at": "u32",
  224. "total_minted": "u128"
  225. },
  226. "MintBalanceOf": "u128",
  227. "BalanceOfMint": "u128",
  228. "NextAdjustment": {
  229. "adjustment": "AdjustOnInterval",
  230. "at_block": "u32"
  231. },
  232. "AdjustOnInterval": {
  233. "block_interval": "u32",
  234. "adjustment_type": "AdjustCapacityBy"
  235. },
  236. "AdjustCapacityBy": {
  237. "_enum": {
  238. "Setting": "u128",
  239. "Adding": "u128",
  240. "Reducing": "u128"
  241. }
  242. },
  243. "RecipientId": "u64",
  244. "RewardRelationshipId": "u64",
  245. "Recipient": {
  246. "total_reward_received": "u128",
  247. "total_reward_missed": "u128"
  248. },
  249. "RewardRelationship": {
  250. "recipient": "RecipientId",
  251. "mint_id": "MintId",
  252. "account": "GenericAccountId",
  253. "amount_per_payout": "u128",
  254. "next_payment_at_block": "Option<u32>",
  255. "payout_interval": "Option<u32>",
  256. "total_reward_received": "u128",
  257. "total_reward_missed": "u128"
  258. },
  259. "ApplicationId": "u64",
  260. "OpeningId": "u64",
  261. "Application": {
  262. "opening_id": "OpeningId",
  263. "application_index_in_opening": "u32",
  264. "add_to_opening_in_block": "u32",
  265. "active_role_staking_id": "Option<StakeId>",
  266. "active_application_staking_id": "Option<StakeId>",
  267. "stage": "ApplicationStage",
  268. "human_readable_text": "Text"
  269. },
  270. "ApplicationStage": {
  271. "_enum": {
  272. "Active": "Null",
  273. "Unstaking": "UnstakingApplicationStage",
  274. "Inactive": "InactiveApplicationStage"
  275. }
  276. },
  277. "ActivateOpeningAt": {
  278. "_enum": {
  279. "CurrentBlock": "Null",
  280. "ExactBlock": "u32"
  281. }
  282. },
  283. "ApplicationRationingPolicy": {
  284. "max_active_applicants": "u32"
  285. },
  286. "OpeningStage": {
  287. "_enum": {
  288. "WaitingToBegin": "WaitingToBeingOpeningStageVariant",
  289. "Active": "ActiveOpeningStageVariant"
  290. }
  291. },
  292. "StakingPolicy": {
  293. "amount": "u128",
  294. "amount_mode": "StakingAmountLimitMode",
  295. "crowded_out_unstaking_period_length": "Option<u32>",
  296. "review_period_expired_unstaking_period_length": "Option<u32>"
  297. },
  298. "Opening": {
  299. "created": "u32",
  300. "stage": "OpeningStage",
  301. "max_review_period_length": "u32",
  302. "application_rationing_policy": "Option<ApplicationRationingPolicy>",
  303. "application_staking_policy": "Option<StakingPolicy>",
  304. "role_staking_policy": "Option<StakingPolicy>",
  305. "human_readable_text": "Text"
  306. },
  307. "WaitingToBeingOpeningStageVariant": {
  308. "begins_at_block": "u32"
  309. },
  310. "ActiveOpeningStageVariant": {
  311. "stage": "ActiveOpeningStage",
  312. "applications_added": "BTreeSet<ApplicationId>",
  313. "active_application_count": "u32",
  314. "unstaking_application_count": "u32",
  315. "deactivated_application_count": "u32"
  316. },
  317. "ActiveOpeningStage": {
  318. "_enum": {
  319. "AcceptingApplications": "AcceptingApplications",
  320. "ReviewPeriod": "ReviewPeriod",
  321. "Deactivated": "Deactivated"
  322. }
  323. },
  324. "AcceptingApplications": {
  325. "started_accepting_applicants_at_block": "u32"
  326. },
  327. "ReviewPeriod": {
  328. "started_accepting_applicants_at_block": "u32",
  329. "started_review_period_at_block": "u32"
  330. },
  331. "Deactivated": {
  332. "cause": "OpeningDeactivationCause",
  333. "deactivated_at_block": "u32",
  334. "started_accepting_applicants_at_block": "u32",
  335. "started_review_period_at_block": "Option<u32>"
  336. },
  337. "OpeningDeactivationCause": {
  338. "_enum": [
  339. "CancelledBeforeActivation",
  340. "CancelledAcceptingApplications",
  341. "CancelledInReviewPeriod",
  342. "ReviewPeriodExpired",
  343. "Filled"
  344. ]
  345. },
  346. "InactiveApplicationStage": {
  347. "deactivation_initiated": "u32",
  348. "deactivated": "u32",
  349. "cause": "ApplicationDeactivationCause"
  350. },
  351. "UnstakingApplicationStage": {
  352. "deactivation_initiated": "u32",
  353. "cause": "ApplicationDeactivationCause"
  354. },
  355. "ApplicationDeactivationCause": {
  356. "_enum": [
  357. "External",
  358. "Hired",
  359. "NotHired",
  360. "CrowdedOut",
  361. "OpeningCancelled",
  362. "ReviewPeriodExpired",
  363. "OpeningFilled"
  364. ]
  365. },
  366. "StakingAmountLimitMode": {
  367. "_enum": [
  368. "AtLeast",
  369. "Exact"
  370. ]
  371. },
  372. "RationaleText": "Bytes",
  373. "ApplicationOf": {
  374. "role_account_id": "GenericAccountId",
  375. "opening_id": "OpeningId",
  376. "member_id": "MemberId",
  377. "application_id": "ApplicationId"
  378. },
  379. "ApplicationIdSet": "BTreeSet<ApplicationId>",
  380. "ApplicationIdToWorkerIdMap": "BTreeMap<ApplicationId,WorkerId>",
  381. "WorkerId": "u64",
  382. "WorkerOf": {
  383. "member_id": "MemberId",
  384. "role_account_id": "GenericAccountId",
  385. "reward_relationship": "Option<RewardRelationshipId>",
  386. "role_stake_profile": "Option<RoleStakeProfile>"
  387. },
  388. "OpeningOf": {
  389. "hiring_opening_id": "OpeningId",
  390. "applications": "BTreeSet<ApplicationId>",
  391. "policy_commitment": "OpeningPolicyCommitment",
  392. "opening_type": "OpeningType"
  393. },
  394. "StorageProviderId": "u64",
  395. "OpeningType": {
  396. "_enum": {
  397. "Leader": "Null",
  398. "Worker": "Null"
  399. }
  400. },
  401. "HiringApplicationId": "u64",
  402. "RewardPolicy": {
  403. "amount_per_payout": "u128",
  404. "next_payment_at_block": "u32",
  405. "payout_interval": "Option<u32>"
  406. },
  407. "OpeningPolicyCommitment": {
  408. "application_rationing_policy": "Option<ApplicationRationingPolicy>",
  409. "max_review_period_length": "u32",
  410. "application_staking_policy": "Option<StakingPolicy>",
  411. "role_staking_policy": "Option<StakingPolicy>",
  412. "role_slashing_terms": "SlashingTerms",
  413. "fill_opening_successful_applicant_application_stake_unstaking_period": "Option<u32>",
  414. "fill_opening_failed_applicant_application_stake_unstaking_period": "Option<u32>",
  415. "fill_opening_failed_applicant_role_stake_unstaking_period": "Option<u32>",
  416. "terminate_application_stake_unstaking_period": "Option<u32>",
  417. "terminate_role_stake_unstaking_period": "Option<u32>",
  418. "exit_role_application_stake_unstaking_period": "Option<u32>",
  419. "exit_role_stake_unstaking_period": "Option<u32>"
  420. },
  421. "RoleStakeProfile": {
  422. "stake_id": "StakeId",
  423. "termination_unstaking_period": "Option<u32>",
  424. "exit_unstaking_period": "Option<u32>"
  425. },
  426. "StorageBucketId": "u64",
  427. "StorageBucketsPerBagValueConstraint": {
  428. "min": "u64",
  429. "max_min_diff": "u64"
  430. },
  431. "DataObjectId": "u64",
  432. "DynamicBagId": {
  433. "_enum": {
  434. "Member": "MemberId",
  435. "Channel": "u64"
  436. }
  437. },
  438. "Voucher": {
  439. "sizeLimit": "u64",
  440. "objectsLimit": "u64",
  441. "sizeUsed": "u64",
  442. "objectsUsed": "u64"
  443. },
  444. "DynamicBagType": {
  445. "_enum": [
  446. "Member",
  447. "Channel"
  448. ]
  449. },
  450. "DynamicBagCreationPolicy": {
  451. "numberOfStorageBuckets": "u64",
  452. "families": "BTreeMap<DistributionBucketFamilyId,u32>"
  453. },
  454. "DynamicBagDeletionPrize": {
  455. "account_id": "GenericAccountId",
  456. "prize": "u128"
  457. },
  458. "DynamicBagDeletionPrizeRecord": {
  459. "account_id": "GenericAccountId",
  460. "prize": "u128"
  461. },
  462. "Bag": {
  463. "stored_by": "BTreeSet<StorageBucketId>",
  464. "distributed_by": "BTreeSet<DistributionBucketId>",
  465. "deletion_prize": "Option<u128>",
  466. "objects_total_size": "u64",
  467. "objects_number": "u64"
  468. },
  469. "StorageBucket": {
  470. "operator_status": "StorageBucketOperatorStatus",
  471. "accepting_new_bags": "bool",
  472. "voucher": "Voucher",
  473. "assigned_bags": "u64"
  474. },
  475. "StaticBagId": {
  476. "_enum": {
  477. "Council": "Null",
  478. "WorkingGroup": "WorkingGroup"
  479. }
  480. },
  481. "Static": {
  482. "_enum": {
  483. "Council": "Null",
  484. "WorkingGroup": "WorkingGroup"
  485. }
  486. },
  487. "Dynamic": {
  488. "_enum": {
  489. "Member": "MemberId",
  490. "Channel": "u64"
  491. }
  492. },
  493. "BagId": {
  494. "_enum": {
  495. "Static": "Static",
  496. "Dynamic": "Dynamic"
  497. }
  498. },
  499. "DataObjectCreationParameters": {
  500. "size": "u64",
  501. "ipfsContentId": "Bytes"
  502. },
  503. "BagIdType": {
  504. "_enum": {
  505. "Static": "Static",
  506. "Dynamic": "Dynamic"
  507. }
  508. },
  509. "UploadParameters": {
  510. "bagId": "BagId",
  511. "objectCreationList": "Vec<DataObjectCreationParameters>",
  512. "deletionPrizeSourceAccountId": "GenericAccountId",
  513. "expectedDataSizeFee": "u128"
  514. },
  515. "StorageBucketIdSet": "BTreeSet<StorageBucketId>",
  516. "DataObjectIdSet": "BTreeSet<DataObjectId>",
  517. "ContentIdSet": "BTreeSet<Cid>",
  518. "Cid": "Bytes",
  519. "StorageBucketOperatorStatus": {
  520. "_enum": {
  521. "Missing": "Null",
  522. "InvitedStorageWorker": "WorkerId",
  523. "StorageWorker": "(WorkerId,GenericAccountId)"
  524. }
  525. },
  526. "DataObject": {
  527. "accepted": "bool",
  528. "deletion_prize": "u128",
  529. "size": "u64",
  530. "ipfsContentId": "Bytes"
  531. },
  532. "DistributionBucketId": {
  533. "distribution_bucket_family_id": "DistributionBucketFamilyId",
  534. "distribution_bucket_index": "DistributionBucketIndex"
  535. },
  536. "DistributionBucketIndex": "u64",
  537. "DistributionBucketFamilyId": "u64",
  538. "DistributionBucket": {
  539. "accepting_new_bags": "bool",
  540. "distributing": "bool",
  541. "pending_invitations": "BTreeSet<WorkerId>",
  542. "operators": "BTreeSet<WorkerId>",
  543. "assigned_bags": "u64"
  544. },
  545. "DistributionBucketFamily": {
  546. "next_distribution_bucket_index": "DistributionBucketIndex"
  547. },
  548. "DataObjectIdMap": "BTreeMap<DataObjectId,DataObject>",
  549. "DistributionBucketIndexSet": "BTreeSet<DistributionBucketIndex>",
  550. "DynamicBagCreationPolicyDistributorFamiliesMap": "BTreeMap<DistributionBucketFamilyId,u32>",
  551. "ProposalId": "u32",
  552. "ProposalStatus": {
  553. "_enum": {
  554. "Active": "Option<ActiveStake>",
  555. "Finalized": "Finalized"
  556. }
  557. },
  558. "ProposalOf": {
  559. "parameters": "ProposalParameters",
  560. "proposerId": "MemberId",
  561. "title": "Bytes",
  562. "description": "Bytes",
  563. "createdAt": "u32",
  564. "status": "ProposalStatus",
  565. "votingResults": "VotingResults"
  566. },
  567. "ProposalDetails": {
  568. "_enum": {
  569. "Text": "Bytes",
  570. "RuntimeUpgrade": "Bytes",
  571. "SetElectionParameters": "ElectionParameters",
  572. "Spending": "(Balance,AccountId)",
  573. "SetLead": "Option<SetLeadParams>",
  574. "SetContentWorkingGroupMintCapacity": "u128",
  575. "EvictStorageProvider": "GenericAccountId",
  576. "SetValidatorCount": "u32",
  577. "SetStorageRoleParameters": "RoleParameters",
  578. "AddWorkingGroupLeaderOpening": "AddOpeningParameters",
  579. "BeginReviewWorkingGroupLeaderApplication": "(OpeningId,WorkingGroup)",
  580. "FillWorkingGroupLeaderOpening": "FillOpeningParameters",
  581. "SetWorkingGroupMintCapacity": "(Balance,WorkingGroup)",
  582. "DecreaseWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  583. "SlashWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  584. "SetWorkingGroupLeaderReward": "(WorkerId,Balance,WorkingGroup)",
  585. "TerminateWorkingGroupLeaderRole": "TerminateRoleParameters"
  586. }
  587. },
  588. "ProposalDetailsOf": {
  589. "_enum": {
  590. "Text": "Bytes",
  591. "RuntimeUpgrade": "Bytes",
  592. "SetElectionParameters": "ElectionParameters",
  593. "Spending": "(Balance,AccountId)",
  594. "SetLead": "Option<SetLeadParams>",
  595. "SetContentWorkingGroupMintCapacity": "u128",
  596. "EvictStorageProvider": "GenericAccountId",
  597. "SetValidatorCount": "u32",
  598. "SetStorageRoleParameters": "RoleParameters",
  599. "AddWorkingGroupLeaderOpening": "AddOpeningParameters",
  600. "BeginReviewWorkingGroupLeaderApplication": "(OpeningId,WorkingGroup)",
  601. "FillWorkingGroupLeaderOpening": "FillOpeningParameters",
  602. "SetWorkingGroupMintCapacity": "(Balance,WorkingGroup)",
  603. "DecreaseWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  604. "SlashWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)",
  605. "SetWorkingGroupLeaderReward": "(WorkerId,Balance,WorkingGroup)",
  606. "TerminateWorkingGroupLeaderRole": "TerminateRoleParameters"
  607. }
  608. },
  609. "VotingResults": {
  610. "abstensions": "u32",
  611. "approvals": "u32",
  612. "rejections": "u32",
  613. "slashes": "u32"
  614. },
  615. "ProposalParameters": {
  616. "votingPeriod": "u32",
  617. "gracePeriod": "u32",
  618. "approvalQuorumPercentage": "u32",
  619. "approvalThresholdPercentage": "u32",
  620. "slashingQuorumPercentage": "u32",
  621. "slashingThresholdPercentage": "u32",
  622. "requiredStake": "Option<u128>"
  623. },
  624. "VoteKind": {
  625. "_enum": [
  626. "Approve",
  627. "Reject",
  628. "Slash",
  629. "Abstain"
  630. ]
  631. },
  632. "ThreadCounter": {
  633. "author_id": "MemberId",
  634. "counter": "u32"
  635. },
  636. "DiscussionThread": {
  637. "title": "Bytes",
  638. "created_at": "u32",
  639. "author_id": "MemberId"
  640. },
  641. "DiscussionPost": {
  642. "text": "Bytes",
  643. "created_at": "u32",
  644. "updated_at": "u32",
  645. "author_id": "MemberId",
  646. "thread_id": "ThreadId",
  647. "edition_number": "u32"
  648. },
  649. "AddOpeningParameters": {
  650. "activate_at": "ActivateOpeningAt",
  651. "commitment": "OpeningPolicyCommitment",
  652. "human_readable_text": "Bytes",
  653. "working_group": "WorkingGroup"
  654. },
  655. "FillOpeningParameters": {
  656. "opening_id": "OpeningId",
  657. "successful_application_id": "ApplicationId",
  658. "reward_policy": "Option<RewardPolicy>",
  659. "working_group": "WorkingGroup"
  660. },
  661. "TerminateRoleParameters": {
  662. "worker_id": "WorkerId",
  663. "rationale": "Bytes",
  664. "slash": "bool",
  665. "working_group": "WorkingGroup"
  666. },
  667. "ActiveStake": {
  668. "stake_id": "StakeId",
  669. "source_account_id": "GenericAccountId"
  670. },
  671. "Finalized": {
  672. "proposalStatus": "ProposalDecisionStatus",
  673. "finalizedAt": "u32",
  674. "encodedUnstakingErrorDueToBrokenRuntime": "Option<Vec<u8>>",
  675. "stakeDataAfterUnstakingError": "Option<ActiveStake>"
  676. },
  677. "ProposalDecisionStatus": {
  678. "_enum": {
  679. "Canceled": "Null",
  680. "Vetoed": "Null",
  681. "Rejected": "Null",
  682. "Slashed": "Null",
  683. "Expired": "Null",
  684. "Approved": "Approved"
  685. }
  686. },
  687. "ExecutionFailed": {
  688. "error": "Bytes"
  689. },
  690. "Approved": {
  691. "_enum": {
  692. "PendingExecution": "Null",
  693. "Executed": "Null",
  694. "ExecutionFailed": "ExecutionFailed"
  695. }
  696. },
  697. "SetLeadParams": "(MemberId,GenericAccountId)",
  698. "CuratorId": "u64",
  699. "CuratorGroupId": "u64",
  700. "CuratorGroup": {
  701. "curators": "BTreeSet<CuratorId>",
  702. "active": "bool"
  703. },
  704. "ContentActor": {
  705. "_enum": {
  706. "Curator": "(CuratorGroupId,CuratorId)",
  707. "Member": "MemberId",
  708. "Lead": "Null",
  709. "Collaborator": "MemberId"
  710. }
  711. },
  712. "StorageAssets": {
  713. "object_creation_list": "Vec<DataObjectCreationParameters>",
  714. "expected_data_size_fee": "u128"
  715. },
  716. "Channel": {
  717. "owner": "ChannelOwner",
  718. "num_videos": "u64",
  719. "is_censored": "bool",
  720. "reward_account": "Option<GenericAccountId>",
  721. "collaborators": "BTreeSet<MemberId>"
  722. },
  723. "ChannelOwner": {
  724. "_enum": {
  725. "Member": "MemberId",
  726. "Curators": "CuratorGroupId"
  727. }
  728. },
  729. "ChannelCategoryId": "u64",
  730. "ChannelCategory": {},
  731. "ChannelCategoryCreationParameters": {
  732. "meta": "Bytes"
  733. },
  734. "ChannelCategoryUpdateParameters": {
  735. "new_meta": "Bytes"
  736. },
  737. "ChannelCreationParameters": {
  738. "assets": "Option<StorageAssets>",
  739. "meta": "Option<Bytes>",
  740. "reward_account": "Option<GenericAccountId>",
  741. "collaborators": "BTreeSet<MemberId>"
  742. },
  743. "ChannelUpdateParameters": {
  744. "assets_to_upload": "Option<StorageAssets>",
  745. "new_meta": "Option<Bytes>",
  746. "reward_account": "Option<Option<GenericAccountId>>",
  747. "assets_to_remove": "BTreeSet<DataObjectId>",
  748. "collaborators": "Option<BTreeSet<MemberId>>"
  749. },
  750. "ChannelOwnershipTransferRequestId": "u64",
  751. "ChannelOwnershipTransferRequest": {
  752. "channel_id": "ChannelId",
  753. "new_owner": "ChannelOwner",
  754. "payment": "u128",
  755. "new_reward_account": "Option<GenericAccountId>"
  756. },
  757. "Video": {
  758. "in_channel": "ChannelId",
  759. "in_series": "Option<SeriesId>",
  760. "is_censored": "bool"
  761. },
  762. "VideoId": "u64",
  763. "VideoCategoryId": "u64",
  764. "VideoCategory": {},
  765. "VideoCategoryCreationParameters": {
  766. "meta": "Bytes"
  767. },
  768. "VideoCategoryUpdateParameters": {
  769. "new_meta": "Bytes"
  770. },
  771. "VideoCreationParameters": {
  772. "assets": "Option<StorageAssets>",
  773. "meta": "Option<Bytes>"
  774. },
  775. "VideoUpdateParameters": {
  776. "assets_to_upload": "Option<StorageAssets>",
  777. "new_meta": "Option<Bytes>",
  778. "assets_to_remove": "BTreeSet<DataObjectId>"
  779. },
  780. "Person": {
  781. "controlled_by": "PersonController"
  782. },
  783. "PersonId": "u64",
  784. "PersonController": {
  785. "_enum": {
  786. "Member": "MemberId",
  787. "Curators": "Null"
  788. }
  789. },
  790. "PersonActor": {
  791. "_enum": {
  792. "Member": "MemberId",
  793. "Curator": "CuratorId"
  794. }
  795. },
  796. "PersonCreationParameters": {
  797. "assets": "StorageAssets",
  798. "meta": "Bytes"
  799. },
  800. "PersonUpdateParameters": {
  801. "assets": "Option<StorageAssets>",
  802. "meta": "Option<Bytes>"
  803. },
  804. "Playlist": {
  805. "in_channel": "ChannelId"
  806. },
  807. "PlaylistId": "u64",
  808. "PlaylistCreationParameters": {
  809. "meta": "Bytes"
  810. },
  811. "PlaylistUpdateParameters": {
  812. "new_meta": "Bytes"
  813. },
  814. "SeriesId": "u64",
  815. "Series": {
  816. "in_channel": "ChannelId",
  817. "seasons": "Vec<Season>"
  818. },
  819. "Season": {
  820. "episodes": "Vec<VideoId>"
  821. },
  822. "SeriesParameters": {
  823. "assets": "Option<StorageAssets>",
  824. "seasons": "Option<Vec<Option<SeasonParameters>>>",
  825. "meta": "Option<Bytes>"
  826. },
  827. "SeasonParameters": {
  828. "assets": "Option<StorageAssets>",
  829. "episodes": "Option<Vec<Option<EpisodeParemters>>>",
  830. "meta": "Option<Bytes>"
  831. },
  832. "EpisodeParemters": {
  833. "_enum": {
  834. "NewVideo": "VideoCreationParameters",
  835. "ExistingVideo": "VideoId"
  836. }
  837. },
  838. "MaxNumber": "u32",
  839. "IsCensored": "bool",
  840. "VideoMigrationConfig": {
  841. "current_id": "VideoId",
  842. "final_id": "VideoId"
  843. },
  844. "ChannelMigrationConfig": {
  845. "current_id": "ChannelId",
  846. "final_id": "ChannelId"
  847. },
  848. "AccountInfo": "AccountInfoWithRefCount"
  849. }